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…
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.
Follow these instructions and you will be fine:
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&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=$2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&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
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!
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…
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!
if ($('#myDiv').length) $('#myDiv').show();
Source:
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F