How to check if DOM is ready on ajax?

Maybe you need to check if the DOM is already loaded but you need to do it with ajax, you can use the code below or as I named, the equivalent of windows.load on jquery is: var chkReadyState = setInterval(function() { if (document.readyState == «complete») { // clear the interval clearInterval(chkReadyState); // finally your page … Continúa leyendo How to check if DOM is ready on ajax?

Android L

If you are like me, and can’t wait for the update, and get an error that said archive does not contain ‘boot.sig‘, just follow this steps: 1. Create a backup of your phone. 2. Download the Factory Image on these link: https://developers.google.com/android/nexus/images 3. Start the device in fast boot mode, one way to do this is: Using … Continúa leyendo Android L

host key error

In case you get this error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent … Continúa leyendo host key error

ERROR: Error installing pg -v ‘0.16.0’ Failed to build gem native extension.

If you get the error ERROR: Error installing pg: ERROR: Failed to build gem native extension. It’s because you probably have your pg_config on other location, in my case was located on /library/ you can use locate pg_config and add the option –with-pg-config=/path_of_pg_config. If you get the error: invalid option: –with-pg-config=/library/PostgreSQL….. You must separate the … Continúa leyendo ERROR: Error installing pg -v ‘0.16.0’ Failed to build gem native extension.

WSUS

All command line options for the wuauclt: From a dump of the .exe (W2k3 R2 version ) we can extract the following options: /DetectNow /ReportNow /RunHandlerComServer /RunStoreAsComServer /ShowSettingsDialog /ResetAuthorization /ResetEulas /ShowWU /ShowWindowsUpdate /SelfUpdateManaged /SelfUpdateUnmanaged /UpdateNow /ShowWUAutoScan /ShowFeaturedUpdates /ShowOptions /ShowFeaturedOptInDialog /DemoUI Windows update service can be started from command line(CMD) using the below command. net start … Continúa leyendo WSUS

SNMP on windows

To modify the traps or the access to the SNMP you can open the services console, and find SNMP services in case the Security tap it’s lock you can modify the information on the registries: HKLM\SOFTWARE\Policies\SNMP\Parameters\ValidCommunities HKLM\SOFTWARE\Policies\SNMP\Parameters\PermittedManagers To add a host on the accept snmp packets, create a new string key on the ValidCommunities regestry, … Continúa leyendo SNMP on windows