Online accounting homework help someone to write literature review on voting behaviour

How to buy literature review dissertation writing services south africa

Best Essay Custom Writing Service

[​IMG]

Essay Writing Help Online – CLICK THE LINK

The Milky Way captured in all its glory by top night-sky photographers Spinning Water Droplets That Seemingly Defy…

Online accounting homework help someone to write literature review on voting behaviour

weird behaviour doing simple XMMATRIX multiplications

I have the following function:

void AnimatedModelShaderClass::PrepareToDraw(ID3D11DeviceContext* deviceContext, XMMATRIX worldMatrix, XMMATRIX viewMatrix, XMMATRIX projectionMatrix, ID3D11ShaderResourceView* mesh) {  WVP = worldMatrix * viewMatrix * projectionMatrix; cbPerObj.WVP = XMMatrixTranspose(WVP); cbPerObj.World = XMMatrixTranspose(worldMatrix); [...]  } 

WVP is defined in the AnimatedModelShaderClass class as

XMMATRIX WVP; 

The world, view and projection matrices are correctly received by the function, but as soon as the first line is executed, i can see that WVP contains some very weird values.

If i substitute the first line with the (supposedly) equivalent:

WVP = XMMatrixMultiply( XMMatrixMultiply(worldMatrix,viewMatrix), projectionMatrix); 

then WVP is evaluated correctly and the numbers inside make sense.

Aren’t the two ways equivalent? What am i missing?

Thanks in advance.

Palo Alto GlobalProtect VPN disconnects in Mac OS after random time, have to manually connect it again. Behaviour not persistent in Windows

I have deployed PA GlobalProtect to few users consisting of Windows and Mac OS. All the users can connect correctly with same security rules and can access internal resources as expected. The problem happens with Mac OS clients. After random amount of time (between 1 minute and 20 minutes), the GP client will disconnect from the Gateway. It will log the user out. The user then has to manually type in the username/password to connect again. Windows clients stay connected till the user manually disconnects or reaches inactivity timeout which is set to 4 hours.

We enabled third party extensions as well. I collected the troubleshooting logs from one of the Mac GP clients. Below is the GPA log:

P22011-T34819 Mar 25 20:32:32:98834 Debug(1258): ===> response sent to Mac = <response><type>status</type><state>Connected</state><error></error></response> P22011-T35083 Mar 25 20:32:35:346851 Debug( 797): Send command to Pan Service P22011-T35083 Mar 25 20:32:35:346874 Debug( 823): Command = <request><type>status</type></request> P22011-T35083 Mar 25 20:32:35:346940 Debug( 880): PanClient sent successful with 64 bytes P22011-T34819 Mar 25 20:32:35:349570 Debug(  93): Received data from Pan Service P22011-T34819 Mar 25 20:32:35:350062 Debug( 332): ### Download parameters ###: m_dwLatestDownlaod=1553569989, m_bDownloadStarted=0, bCheckTunnelOK=1, m_bOnDemandRead=0, bUsingCachedPortal=0, lastfaileddownload=0, m_nUpgradeMethod=2 P22011-T34819 Mar 25 20:32:35:350080 Debug( 169): username field is not empty. not override the username. P22011-T34819 Mar 25 20:32:35:350086 Debug( 190): CPanBaseReceiver::HandleStatus - found discover-ready tag. value = yes. P22011-T34819 Mar 25 20:32:35:350108 Debug( 269): message type from the service = status  <?xml version="1.0" encoding="UTF-8"?> <response>     <type>status</type>     <status>Connected</status>     <protocol>SSL</protocol>     <portal-config-version>4100</portal-config-version>     <error-must-show/>     <error/>     <uptime>1058</uptime>     <byte-received>23474224</byte-received>     <byte-sent>9658283</byte-sent>     <packet-received>67736</packet-received>     <packet-sent>51499</packet-sent>     <incorrect-packet-received>0</incorrect-packet-received>     <incorrect-packet-sent>0</incorrect-packet-sent>     <server-ip>xx.xx.xx.xx</server-ip>     <local-ip>yy.yy.yy.yy</local-ip>     <local-ipv6/>     <connect-mode>0</connect-mode>     <product-version>5.0.0-87</product-version>     <product-code/>     <portal-status>Connected</portal-status>     <user-name>user1</user-name>     <username-type>regular</username-type>     <state>Connected</state>     <check-version>no</check-version>     <portal>xx.xx.xx.xx</portal>     <discover-ready>yes</discover-ready>     <mdm-is-enabled>no</mdm-is-enabled>     <gateway-list name="gateway-list" type="external">         <entry>             <gateway>xx.xx.xx.xx</gateway>             <tunnel>yes</tunnel>             <description>Gateway</description>             <allow-tunnel>yes</allow-tunnel>             <passwd-expire-days>-1</passwd-expire-days>             <priority>1</priority>             <internal>no</internal>             <authenticated>yes</authenticated>         </entry>     </gateway-list> </response>  P22011-T34819 Mar 25 20:32:35:350192 Debug(1258): ===> response sent to Mac = <response><type>status</type><state>Connected</state><error></error></response> P22011-T34819 Mar 25 20:32:36:333783 Info ( 246): agent ui socket closed! P22011-T26371 Mar 25 20:32:36:346785 Info ( 211): InitConnection ... P22011-T26371 Mar 25 20:32:36:346798 Debug(  57): fd still open before connect P22011-T26371 Mar 25 20:32:36:346905 Error(  78): Failed to connect to server at port:4767 P22011-T26371 Mar 25 20:32:36:346911 Error( 215): Cannot connect to service, error: 61 P22011-T35083 Mar 25 20:32:38:446825 Info ( 211): InitConnection ... P22011-T35083 Mar 25 20:32:38:446849 Debug(  57): fd still open before connect P22011-T35083 Mar 25 20:32:38:447043 Debug( 330): decryptPwd - encrypted object is empty. P22011-T35083 Mar 25 20:32:38:447535 Debug( 330): decryptPwd - encrypted object is empty. P22011-T35083 Mar 25 20:32:38:447563 Debug( 424): GetSamlAttribute - samlsessionid or samlusername is null. P22011-T35083 Mar 25 20:32:38:447699 Debug( 378): CPanSocket::OnConnect - portal message sent. P22011-T35083 Mar 25 20:32:38:447705 Info ( 223): Connecting to Pan MS Service end P22011-T35083 Mar 25 20:32:38:447707 Debug( 765): CPanCommand::Send - not connected, and reintialized connection to service. P22011-T35083 Mar 25 20:32:38:746876 Debug( 797): Send command to Pan Service P22011-T35083 Mar 25 20:32:38:746888 Debug( 823): Command = <request><type>status</type></request> P22011-T35083 Mar 25 20:32:38:746929 Debug( 880): PanClient sent successful with 64 bytes P22011-T34819 Mar 25 20:32:38:751446 Debug(  93): Received data from Pan Service P22011-T34819 Mar 25 20:32:38:751690 Debug( 169): username field is not empty. not override the username. P22011-T34819 Mar 25 20:32:38:751696 Debug( 190): CPanBaseReceiver::HandleStatus - found discover-ready tag. value = no. P22011-T35083 Mar 25 20:32:38:751705 Debug( 797): Send command to Pan Service P22011-T35083 Mar 25 20:32:38:751721 Debug( 812): Command = <request><type>portal</type><portal>xx.xx.xx.xx</portal><pid>22011</pid><user>user1</user><passwd>*</passwd><path>/Users/user1/Library/Application Support/PaloAltoNetworks/GlobalProtect</path><checkupdate>no</checkupdate><allow-cached-portal>yes</allow-cached-portal><remember-me>no</remember-me><retrieve-cache-only>no</retrieve-cache-only><manual-select-gateway-ip></manual-select-gateway-ip><portal-certificate-verification>yes</portal-certificate-verification><win-user>user1</win-user><user-profile-type>0</user-profile-type><saved-user>user1</saved-user><saved-passwd></saved-passwd><portal-2fa>no</portal-2fa><gid>20</gid><domain></domain></request> P22011-T34819 Mar 25 20:32:38:751725 Debug( 269): message type from the service = status  <?xml version="1.0" encoding="UTF-8"?> <response>     <type>status</type>     <status>Disconnected</status>     <protocol/>     <portal-config-version>0</portal-config-version>     <error-must-show/>     <error/>     <product-version>5.0.0-87</product-version>     <product-code/>     <portal-status>Invalid portal</portal-status>     <user-name/>     <username-type>sso</username-type>     <state/>     <check-version>no</check-version>     <portal>xx.xx.xx.xx</portal>     <discover-ready>no</discover-ready>     <mdm-is-enabled>no</mdm-is-enabled>     <gateway-list name="gateway-list" type="external">         <no-gateway>true</no-gateway>     </gateway-list> </response> 

As seen, the disconnects happens when it is not able to reach the server. Gateway is always up, there was no change of network on client end or anything changed on the rules.

If needed, I can also attach GPS logs. We have tried every different combinations of configuration on PA. We even tried to use different versions of GlobalProtect. I do not think there is any problem with GP or PA. What can be done on Mac side to prevent user getting disconnected?

GP Version: 4.0.10/5.0.0/5.0.1 Mac OS: Mojave 10.14 

Events lists and lookup relation behaviour

I’m working on SP2016 OnPremise. I have two lists, the first one is a commone one (let’s call it C) and the second one is an events list (let’s call it E). In the list E I need a reference to C so I create a LookupField. It works. But then I’d like to have the cascade behaviour in order to delete all related items when the main item is deleted. When I try to set the behaviour I get an error which says the list has incompatible columns.

Any hints?

Proper separation of behaviour and data structure when the data structure is complex?

The code in its full glory, complete with unit tests is here: https://github.com/edemo/PDEngine/pull/277/files (And also some discussion of the issue)

I am struggling with how the principle of separating data structures and behaviour applies here.

This would be the data structure, only with public fields:

package org.rulez.demokracia.pdengine;  import java.util.HashMap; import java.util.Map;  import javax.persistence.ElementCollection;  public class BeatTableEntity {      @ElementCollection     public Map<Choice, HashMap<Choice, Integer>> table;      public BeatTableEntity() {         super();     }  } 

And this would be the behaviour, no data fields:

package org.rulez.demokracia.pdengine;  import java.util.HashMap;  import org.rulez.demokracia.pdengine.exception.IsNullException;  public class BeatTable extends BeatTableEntity {     public enum Direction {         DIRECTION_FORWARD, DIRECTION_BACKWARD     }      public BeatTable() {         table = new HashMap<>();     }      public int beatInformation(Choice choice1, Choice choice2, Direction direction) throws IsNullException {         if(direction == null)             throw new IllegalArgumentException("Null direction");          int result = 0;          if(direction.equals(Direction.DIRECTION_FORWARD))             result = getBeatValue(choice1, choice2);         else             result = getBeatValue(choice2, choice1);          return result;     }      private HashMap<Choice, Integer> getBeatRow(Choice choice) {         if (table.get(choice) == null)             throw new IllegalArgumentException("Not existing row key");         return table.get(choice);     }      private int getBeatValue(Choice choiceF, Choice choiceS) throws IsNullException {         if (choiceF == null || choiceS == null)             throw new IsNullException("Choice");         HashMap<Choice, Integer> row = getBeatRow(choiceF);         if (row.get(choiceS) == null)             throw new IllegalArgumentException("Not existing column key");         return row.get(choiceS);     }  } 

This is obviously badly encapsulated; an example is the test which changes a whole row to an empty one, and calls beatInformation() to throw an exception. That test fiddles around with the internals of the data representation (which should have no internals in the first place), and results in an error which is not exactly making sense in the business logic level.

My question is: what would be the right data structure to back this behaviour.

We came up with two possible solutions, none of them could really convince me:

  1. have table as a simple map , where key is effectively the (Choice choice1, Choice choice2) tuple (e.g. choice1.id + choice2.id, as those are strings). This way the data structure have no internals to hide, but it is slow for a non-sparse matrix, and I do believe that good design is not slow.
  2. come up with a Matrix class which we think of as a “primitive type”. Matrix would itself use an internal data structure fully encapsulated, and implement its own serialization. The reasoning of this would be that this complexity of data cannot work without internals, and as the compiler can hide the internals of e.g. a HashMap, we just do the same, and thus we can use Matrix as a building block in properly separated code.
  3. ???

What are the points to consider here, and what would be the Right Solution(tm) ?

Changing default behaviour of the Contacts app in Oreo

When you open up the Contacts app second or the following time, it always shows last view (i.e. where I left it), i.e. the most recent contact search.

I am using this app purely for searching the contacts, so the need of tapping Back to go back to recent search results list and then tapping X to clear the last query each time I want to search for another contact simply kills me. This is as stupid UX approach as it can be.

Is there any way to change the default view, in which Contacts app opens by default each time?

My stack:

  • Motorola Moto Z2 Play,
  • Android 8.0 Oreo.

I am using the default, system Contacts app. No 3rd party solution.

Changing default behaviour of the Phone app in Oreo

Each time when I open the Phone app, I see Favourites tab (first one) as default.

This is completely useless for me, because Google uses its weird logic to tell me which contacts are my so called favourites and this logic produces completely wrong results — i.e. I see “favourite” contacts which aren’t truly my favourite ones.

This tab is also useless, if your contacts have more than one phone number, because instead of showing a list in this case and letting you pick the number, it always calls the default number. This isn’t working in my case, because I have a lot of contacts which I contact both privately (i.e. during weekends and evenings; using private phone number) and on business grounds (using company phone number). So using the default phone number and Favourites tab is pointless in my case.

For the above reasons, I am not using Favourites tab at all and I am always forced to switch manually to recent phones / call history tab.

Is there any way to make that tab displayed as default each time I open up the Phone app.

My stack:

  • Motorola Moto Z2 Play,
  • Android 8.0 Oreo.

I am using the default, system Phone app. No 3rd party solution.

Extrange behaviour on terminator split vertically shortcut

I have used terminator since eight years. I love splitting my terminal in several layouts depending on the task I am doing.

I upgraded (install from scratch) to Ubuntu 18.10 and I installed terminator. Current package version is:

dpkg -l|grep terminator ii  terminator              1.91-1        all          multiple GNOME terminals in one window 

I don’t have idea about what is happening. I suppose system key binding is in conflict with terminator, but I’m not sure.

os.chdir() caused unexpected behaviour with pyhton multithreading

I’m new to multi-threading in Python. In my code, I called a function which changes its working directory with chdir() as follows.

import threading import os import shutil  def sayHello(dirName,userName):     if not os.path.exists(dirName):         os.makedirs(dirName)     else:         shutil.rmtree(dirName)         os.makedirs(dirName)      os.chdir(dirName)     f = open("hello.txt","w")     f.write("Hello %s\n" %userName)     f.close()  thread1 = threading.Thread(target=sayHello,args=('hiDir1','Andrew')) thread2 = threading.Thread(target=sayHello,args=('hiDir2','Michael'))  thread1.start() thread2.start()  thread1.join() thread2.join() 

Expected behavior is,

  1. thread1 : Create “hiDir1” directory, create “hello.txt” inside “hiDir1” and print “Hello Andrew” in “hello.txt”
  2. thread2 : Create “hiDir2” directory, create “hello.txt” inside “hiDir2” and print “Hello Michael” in “hello.txt”

When I ran the code for the first time, it ran without errors. All files were generated correctly. But “hiDir2” was inside “hiDir1”.

Without deleting the generated files, I ran it for the second time. Both directories were there. But only “hiDir2” had the correct text file with correct message printed on file. “hiDir1” didn’t have the text file. Following error was popped.

Exception in thread Thread-1: Traceback (most recent call last):   File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner     self.run()   File "/usr/lib/python3.5/threading.py", line 862, in run     self._target(*self._args, **self._kwargs)   File "threadingError.py", line 9, in sayHello     shutil.rmtree(dirName)   File "/usr/lib/python3.5/shutil.py", line 478, in rmtree     onerror(os.rmdir, path, sys.exc_info())   File "/usr/lib/python3.5/shutil.py", line 476, in rmtree     os.rmdir(path) FileNotFoundError: [Errno 2] No such file or directory: 'hiDir1'ode here 

When I ran it for 3rd time without deleting the files, vice versa of the second time run occurred. Both directories were there. But only “hiDir1” had the text file with correct output. ‘hiDir2’ was empty. Following error message was there.

Exception in thread Thread-2: Traceback (most recent call last):   File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner     self.run()   File "/usr/lib/python3.5/threading.py", line 862, in run     self._target(*self._args, **self._kwargs)   File "threadingError.py", line 12, in sayHello     os.chdir(dirName) FileNotFoundError: [Errno 2] No such file or directory: 'hiDir2' 

When I ran this repeatedly, 2nd and 3rd occurrences occurred exactly one after other.(How can this happen? It should give the same output each time, isn’t it?)

As I understood, the issue is with ‘chdir()’. So I rearranged the code getting rid of ‘chdir()’ as follows.

import threading import os import shutil  def sayHello(dirName,userName):     if not os.path.exists(dirName):         os.makedirs(dirName)     else:         shutil.rmtree(dirName)         os.makedirs(dirName)      filePath1 = dirName+'/hello.txt'     print("filePath1: ", filePath1)     # os.chdir(dirName)     f = open(dirName+'/hello.txt',"w")     f.write("Hello %s\n" %userName)     f.close()  thread1 = threading.Thread(target=sayHello,args=('hiDir1','Andrew')) thread2 = threading.Thread(target=sayHello,args=('hiDir2','Michael'))  thread1.start() thread2.start()  thread1.join() thread2.join() 

Then, there was no issue. Code ran as expected. Is there anything wrong with os.chdir() when used in python multi-threading? Is this a bug in python threading module?

Thanks.