Posts tagged as ' Nerd Rage ' ...

25 Jan 2010 @ 6:42 PM 

JQuery Negation

 if(!$(stuff).length > 5){
   // If element ISNT LARGER THAN 5 so in our case the number of elements must be 0 1 2 3 4 and 5
  $(this).doSomething();
}
else {
 // The number of elements is GRATER THAN 5 // do another thing
}

Basically this is a negation of the following, god damnit my head hurts

 if($(stuff).length < 5){
 $(this).doSomething();
}
else {
 $(this).doAnotherThing();
}

Oh well new day, new learned things. God Bless Amerika

Tags

Tags: , ,

Categories: jQuery

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Dec 2010 @ 02:04 PM

EmailPermalinkComments (0)

28 Dec 2009 @ 6:28 PM 

Hello

After working on the google shortcuts for a while, i decided to open up IE 8 and see if the application works or not. I was surprised and started to do the old alert("hax") thing every dozen lines. The problem is with the $(window).keypress(function(e){}). It seems that IE doesnt understand at all the $(window) property at all when it comes with keypress/keydown/keyup events.

+ Continue Reading This Article

Tags

Tags: , ,

Categories: IE6 Bugs, jQuery

Posted By: Dinulescu Alexandru Adrian

Last Edit: 07 Jan 2010 @ 06:17 PM

EmailPermalinkComments (0)

03 Dec 2009 @ 4:06 AM 

Evening All

MS messed up again, as always, Windows vista task bar is superior to windows 7 taskbar, both in look and feel (as well as polishing) and as functionality.

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 07 Jan 2010 @ 08:09 PM

EmailPermalinkComments (0)

08 May 2009 @ 8:04 PM 

Hello

Sometimes if your wordpress DB is down, you should normally get an error saying that the DB is unavailable and then some messages will appear with the possible cause of this, like the DB name is not found, the settings in the wp-config folder are wrong, and the like. However there is a case that surprise surprise you get on the page with the INSTALLATION of wordpress and you’ve just lost your WP blog.

The file is found in wp-admin/install.php

As a good rule of thumb, it’s advisable to delete all readme.txt, nfo, info files from all plug-ins, there have been reports of some chinese bots crawling wordpress blogs for these, so save yourself some bandwidth and delete those

In order to make sure this doesnt happen at all, there are 3 methods

  • Method 1: JUST NUKE the INSTALL.php file. After the blog has been installed you dont need this file anymore so just delete it
  • Method 2: htaccess file
    # PROTECT install.php
    <Files install.php>
     Order Allow,Deny
     Deny from all
     Satisfy all
    </Files>
  • Method 3: Replace it entirely with something else that is written by you from the start

Problem Fixed

Posted By: Dinulescu Alexandru Adrian

Last Edit: 07 Jan 2010 @ 11:14 PM

EmailPermalinkComments (0)