Use listConfig: { listeners: { } }
Update WCF Reference.cs
In Visual Studio, under Connected Services, right click on the service you want to update and choose “Update….”.
Ext JS View controller control property
View controllers in Ext JS can only listen to events coming from controls within the parent view.
It cannot listens to events from other sources outside of the parent view, or global events.
Use Controllers to facilitate collaboration between view controllers and different views.
FaultException with WCF
One of the reasons why a connection to WCF services cannot be made due to security issue is due to time difference between the client and the server machine.
If you found this issue, synchronizing the time between the client and the server may resolve it.
Hibernate mapping for decimal scale is wrong
When mapping a SQL table to a model using Hibernate or NHibernate, if you configure the mapping like following
<property name=”MyDecCol” type=”Decimal” precision=”28″ scale=”15″>
<column name=”MyDecCol” sql-type=”decimal” not-null=”false” />
</property>
For some reason, Hibernate/NHibernate will treat the field as a decimal with scale = 5 (5 decimal digits on the right side of the decimal separator). So if you save a value to this column with more decimal digits, it will be truncated to only 5 decimal digits.
I’m not sure why, but if you move the attributes to the inner column element, Hibernate and NHibernate will map the values correctly.
<property name=”MyDecCol” type=”Decimal”>
<column name=”MyDecCol” sql-type=”decimal” not-null=”false” precision=”28″ scale=”15″ />
</property>
.NET versions and technologies
Check this stackoverflow answer out:
https://stackoverflow.com/a/51391202/9191495
It’s really confusing, Microsoft really needs to work on naming things.
Debug ASP.NET WebAPI or MVC routing
Follow this StackOverflow answer:
https://stackoverflow.com/a/39349008/9191495
Summary
Override method Init of global.asax.cs
Add a handler for AcquireRequestState event.
Write a handler for AcquireRequestState event to get the route data of the request from route table.
Set a breakpoint to peak into the route data when debugging.
Cannot perform remote desktop to virtual machine
Not sure why but following works
-Open the VM manager, detach the virtual network adapters.
-Reattach the network adapters/
After this, RDP starts working.
Check if host have ssl3 enabled
Use nmap in linux or cygwin/mingw
nmap –script ssl-enum-ciphers [hostname]
Cannot run Python application after installing using pip
I was trying to install qark, an android security program, through pip.
After installation, the readme say to run qark –help. However the system cannot find this command.
After trying python -m quark.py, python quark.py, etc with no result. I managed to solve by finding out that the Script folder of the Python installation contains the .exe file for qark, qark.exe.
Adding this folder to my PATH environment variable allows running this command in the command prompt.
This should be something to be mentioned in the readme at least.