Solution to CuteFTP Pro 8 hanging problem under Vista; Can’t find transfer engine…

To fix this issue, open CuteFTP and go to:

Tools > Global Options > Connection > Smart Keep Alive

And disable “Smart Keep Alive”, apparently it’s not very smart…

Solution to CuteFTP Pro 8 hanging problem under Vista; Can’t find transfer engine…
Comments (0)   Filed under: Annoying Stuff, General, Web Development   Posted by: Codehead

Understanding Pointers In C – C Pointers Tutorial

We need to cover some ground so be patient and you will learn all about pointers.

A computer stores variables in it’s memory and the memory is basically a series of zeros and ones.

So if you could see the raw contents of your RAM you would see something similar to this:

010010010111111101010010101001010100101111001010100111001

Although your memory will have much more number of zeros and ones but it’s basically laid out like this.

In C when you say:

int x = 5;

This line basically telling the compiler to store 5 in variable x that is of type int.

The int datatype is 2 or 4 bytes depending on the implementation – and on my computer it’s 4

bytes but I assume 2 bytes here – so the compiler allocates 2 bytes of memory to store the number 5.

It will convert it to binary for you and 5 is 101 in binary but your compiler will store this in 2 bites so it will look like this:

0000000000000101

Note that it’s just padded with zeros so it can fit in a 2 byte space.

Depending on your operating system this could look like this:

1010000000000000

The first one looks more intuitive and mathematically correct so we use the first type in our examples. It is also called big endian architecture.

So if you were to map the memory, it would look something like this:

0100100101111111010100100000000000001010101001010100101111001010100111001

Can you see our number in there? How about now:

01001001011111110101001|0000000000000101|0101001010100101111001010100111001

Let’s define a pointer and set it to point to our number in memory:

int x = 5;
int *y = &x;

The second line is telling the compiler that y is a pinter to int, pointer is the address of our

variable in memory so y is basically this:

01001001011111110101001->|0000000000000101|0101001010100101111001010100111001

The & operator behind x returns it’s position in memory, if you count it’s 23.

So if you print y it will print the address of the variable which in our simple example is 23 so:

printf("%d", y);

Would print 23, but the cool thing is that you can do this:

printf("%d", *y);

The * is derefrancing operator, what it does is simple asks the compiler to dereference y and find the variable it’s pointing to and print that, so the program won’t print the number 23 anymore, instead it goes to the address 23 and grabs the value that is sitting there and prints that:

01001001011111110101001->|0000000000000101|0101001010100101111001010100111001

But you see, there are so many zeros and ones there, how does the compiler know how many of them

are actually part of our variable, because it picks only 5 of them:

01001001011111110101001->|00000|<-00000000101|0101001010100101111001010100111001

They will all be zeros and we know that this is wrong, our value was 5 not zero.

That’s why you defined a pointer to int, the compiler knows that it’s looking for an int so when you say *y – or derefrence y – the compiler goes to address 23 and grabs 2 bytes from there:

01001001011111110101001->|0000000000000101|<-0101001010100101111001010100111001

This is basically what a pointer is and one of the thing that can be done with a pointer is to modify the original variable without touching the original variable, so if you where to do this:

int x = 5;
int *y = &x;
*y = 20;

The compiler would look at y and go to address 23 and modify the contents in there to 20 rather than 5, so if you print x, you will get 20 rather than 5.

Pointers enable us to do some advanced stuff using C, that would be the subject of my next post.

Note: this tutorials are meant to be as simple as possible so a lot of details such as how pointers are stored are omitted to prevent confusion and will be discussed at some future point.

Understanding Pointers In C – C Pointers Tutorial
Comments (0)   Filed under: C Programming, Data Structures, Programming   Posted by: Codehead

Results5.Google.Com (Google Search Forwarding Trojan)

Follow these instructions and you will be fine:

http://codingrecipes.com/malware-spyware-virus-keeps-coming-back-how-to-remove-malware-spyware-virus-from-your-computer-for-free

Results5.Google.Com (Google Search Forwarding Trojan)
Comments (0)   Filed under: Security   Posted by: Codehead

PHP: Converting YouTube and Vimeo Links To YouTube Player and Vimeo Player

Here is a simple function that will do this for you:

function convert_videos($string) {
	$rules = array(
		'#http://(www\.)?youtube\.com/watch\?v=([^ &\n]+)(&.*?(\n|\s))?#i' => '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$2"></param><embed src="http://www.youtube.com/v/$2" type="application/x-shockwave-flash" width="425" height="350"></embed></object>',
 
		'#http://(www\.)?vimeo\.com/([^ ?\n/]+)((\?|/).*?(\n|\s))?#i' => '<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=$2&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=$2&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>'
	);
 
	foreach ($rules as $link => $player)
		$string = preg_replace($link, $player, $string);
 
	return $string;
}

Use it simply like this:

echo convert_videos($the_string_that_might_contain_the_link);

I hope this helps someone :)

PHP: Converting YouTube and Vimeo Links To YouTube Player and Vimeo Player
Comments (4)   Filed under: PHP, Web Development   Posted by: Codehead

SEO: Fastest Way To Get Indexed By Google

The fastest way to get indexed by Google is to sign-up and verify your site here:

https://www.google.com/webmasters/tools/

And then submit a sitemap…

Your site will be indexed in a day or 2!

SEO: Fastest Way To Get Indexed By Google
Comments (0)   Filed under: SEO   Posted by: Codehead

Malwares & Spywares Detected In _avast5_/temp/ Folder

This is very interesting, the reason for this is that you have multiple anti-malware programs but I still don’t like the fact that this happens because Avast uses this folder to unpack stuff and test them for malware, but it either fails to find these malwares or finds them and doesn’t report them…

Let me know if I’m missing something…

Malwares & Spywares Detected In _avast5_/temp/ Folder
Comments (0)   Filed under: Malware, Security, Spyware, Virus   Posted by: Codehead

Must Have Free Anti-Spyware, Anti-Malware Software

Sadly, you will need more than one, not all of them will detect everything so here is the list I suggest:

1 – Microsoft Security Essentials; this one is the lamest but provides real-time protection, maybe Microsoft will assign a team of real developers to this one day; I truly think that this was done by a team of interns as a summer project :)

Download it here: http://www.microsoft.com/security_essentials/

2 – SUPERAntiSpyware, this one is the real deal, it detects and removes Spyware, Adware and Remove Malware, Trojans, Dialers, Worms, KeyLoggers, HiJackers, Parasites, Rootkits, Rogue Security Products and many other types of threats, not the easy ones but also the hard ones, the ones that Security Essentials, Norton and McAfee can’t detect!

The paid version provides real-time protection and it’s only $9.99, I think it’s worth it.

Download it here: http://www.superantispyware.com/

3 – Malwarebytes, this one is also a great one.

Download it here: http://www.malwarebytes.org/

And yes, you need them all, make sure to update them right before every scan and you know what? I think you should install #2 and #3 now, update them then boot into Safe Mode and run a full system scan, I promise that you will be surprised!

Must Have Free Anti-Spyware, Anti-Malware Software
Comments (0)   Filed under: Malware, Security, Spyware, Virus   Posted by: Codehead

Malware/Spyware/Virus Keeps Coming Back; how to remove Malware/Spyware/Virus from your computer for free…

To fix this, you must follow all these instructions without missing even one.

Note: do this at your own risk, these worked for me and if by doing these something
happens to your computer, I’m not responsible!

Preparing

0 – Remove your browser’s proxy settings: http://www.library.kent.edu/page/14299 if you have special proxy settings, make sure it wasn’t altered…
1 – Restart your computer, hit f8 while booting and login to “Safe Mode With Networking”
2 – Download and install the free version of: http://www.superantispyware.com/
3 – Download and install the free version of: http://www.malwarebytes.org/
4 – Download and install: http://free.antivirus.com/hijackthis/
5 – Download and install: http://housecall.trendmicro.com/
6 – Download and install: http://forums.majorgeeks.com/chaslang/files/MGtools.exe
Save this file to c:\MGtools.exe and run it.
7 – Download and install: http://www.piriform.com/ccleaner

Updating

8 – Launch superantispyware and update it to the latest version.
9 – Launch malwarebytes and update it to the latest version.
10 – Removed for now due to potential error…
11 – Goto c:\MGtools and double click on DisableUAC.reg confirm the action.

UPDATE:

These additional steps were added on 6/9/2010 and must be taken at this stage
a – You must rewrite your MBR (master boot record) this won’t delete your files but it’s required.
b – Instructions on how to do it could be found here: (or you could search on Google)
http://helpdeskgeek.com/how-to/fix-mbr-xp-vista/
http://www.ehow.com/how_4836283_repair-mbr-windows.html
c – *After this stage, do not boot into normal mode.*

Continue

12 – Restart your computer to “Safe Mode” (no networking this time)

Scanning And Cleaning

13 – Run ccleaner, don’t touch the options just hit “run cleaner”
14 – Launch superantispyware and run a “complete scan” if asked let it remove everything
15 – Launch malwarebytes and run a “full scan” if asked let it remove everything
16 – Restart your computer to “Safe Mode With Networking”
17 – Run hijackthis, hit “scan” and then “save log” a notepad window opens, copy and paste
the contents into the textbox here: http://www.hijackthis.de/ and hit analyze.
18 – You will get a list of entries with a check box, or another icon in front of it, the ones
that get an X mark are problems so go back to hijackthis and check the box next to those
and hit: “fix checked”.
19 – Restart your computer to “Safe Mode With Networking” again.
20 – Launch trendmicro housecall and run a full scan, let it clean everything.

Updating Your Computer

21 – Restart your computer to “Normal Mode”. Don’t open anything…
22 – Uninstall Java (all instances) then go here and download and install the latest version: http://www.java.com/en/download/manual.jsp. Don’t restart yet.
23 – Go to: http://windowsupdate.microsoft.com/ run the update, update *everything*. Don’t restart yet.
24 – Update your browser to it’s latest version if you use IE, then step 23 should take care of it
but if you use other browsers go to www.google.com and search for: “update X” where X should be
whatever browser you have, like: update google chrome
25 – Goto: c:\MGtools and double click on EnableUAC.reg confirm the action.
26 – Turn off system restore so that it deletes the old restore points then turn it back on right away: http://www.pchell.com/virus/systemrestore.shtml
(Make sure that you create a new restore point right away)

Final Cleanup

27 – Restart your computer into “Normal Mode”
28 – Run hijackthis, hit “scan” and then “save log” a notepad window opens, copy and paste
the contents into the textbox here: http://www.hijackthis.de/ and hit analyze.
29a – If you don’t get any Xs then you are probably safe and you should run a full system scan using
superantispyware and malwarebytes over night; again…
29b – If you get Xs then you will need more help, a good place to seek help is here:
http://forums.majorgeeks.com/forumdisplay.php?f=35
30 – If this doesn’t take care of it, then goto: http://forums.majorgeeks.com/forumdisplay.php?f=35 and
seek help.

I hope this helps someone…

Good Luck :)

Malware/Spyware/Virus Keeps Coming Back; how to remove Malware/Spyware/Virus from your computer for free…
Comments (3)   Filed under: Annoying Stuff, Security   Posted by: Codehead

Opera’s Response To Google Chrome’s Speed Test Ad

:)

Opera’s Response To Google Chrome’s Speed Test Ad
Comments (0)   Filed under: Web Browsers   Posted by: Codehead

jQuery: How To Check If An Object Exists

   if ($('#myDiv').length)
      $('#myDiv').show();

Source:
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F

jQuery: How To Check If An Object Exists
Comments (0)   Filed under: JavaScript, Web Design, Web Development, jQuery   Posted by: Codehead
« Newer PostsOlder Posts »