There is a cheap trick being played by one of those social networking sites (Siliconindia.com , Siliconindia.net, Siliconindia etc.), which has even managed to avoid the very good spam filter google has in gmail. They use different pictures of girls (mostly good looking), different from addresses. Opt out does nothing, and both ‘Yes’ and ‘No’ take you to the same page.
I tried opting out and even the powerful Spam button, some improvement… but no, not a full solution.
So this week when I saw the one more spam email from them, I had enough. I Just decided to put a ban on emails from this domain to my inbox using a simple filter. This is very simple in Gmail. But I’m pretty sure all the other mail providers have the same kind of facilities.
Step 1 – Create a filter
Step 2 – Enter your filter criteria, Make sure to delete ‘From email address’, so the filter is effective. In my case I just said stop anything from this site coming to me. I had enough of them.
Click on test search at the end to see if this working cool and then click ‘Next Step’
Step 3 – Then click Create Filter. Voila you are done. You will never see one more evil email like this. But as the spammers evolve we need to evolve too..
Ever searched google for some nice background stripe tile images only to be stuck at god awful pattern sites with patterns like dead wood and rusty steel to pink flowers. I DID!! like a gazillion times.
Finally someone to the rescue.
http://www.stripgenrator.com/
Pick choose create and download your own stripes all for FREE. Pretty much on the lines of ajaxload.info. These guys are cool, they make the web a better place and web development an interesting job, with discoveries to be made every day.
And don’t forget to click on ‘Your Stripes‘ to get inspired.
Just go there and check out for your self.
Have you ever had to work on a live site and while uploading the changes something goes bad with whatever and your live copy gets deleted and that’s the only copy you have at the moment. (This can happen easily if you are using those file manager tools provided by hosting accounts which edit files in browser)
Anyway the quickest solution would be to get the files from the browser cache. If you have been testing the site simultaneously. I had to do this recently and it saved me lot of time and embarrassment. So here is how you can do it ….
On Firefox 3 (My favourite browser)
Type about:cache in address bar and voila you get access to all the cache. The view is functional and easy to use.
On Opera 9.5(Increasingly competing for my favourite browser spot, can even do that with one plugin like Firebug)
Type opera:cache in address bar and voila you go.. the best cache browser in the industry. Opera has some more cool features like SpeedDial.. anyway you can discover all that yourself by downloading it.
On IE 7. This takes just a bit longer. Click on Tools>Internet Options>Browsing History>Settings>View Files.. pretty logical huh!
Anyway it does the job…
A particular session variable’s value disappearing from $_SESSION in PHP… ??
Just check to make sure you DON’T have register_globals turned On. This took me a few hour’s to figure out..
Example scenario..
Form Bean class
class FormBean
{
public $email;
public $name;
}
page1.php
$form = new FormBean();
$form->email = "someone@something.com.au";
$_SESSION['form'] = serialize($form);
header("location:page2.php");
page2.php
$form =NULL;
if(isset($_SESSION['form']))
{
$form = unserialize($_SESSION['form']);
}
echo $form->email;
Expected to print “someone@something.com.au” right. Usually it does. If it doesn’t and you see that all other session variables are intact except ‘form’, then it’s time to look at your ‘register_globals’ setting. One of my client uses this pretty lax hosting which had this on what it has done is ….
page2.php
$form =NULL; //This sets the form bean to NULL.. wherever it is stored. Throughout the entire website. (Even IN $_SESSION)
if(isset($_SESSION['form']))
{
$form = unserialize($_SESSION['form']);
}
echo $form->email;
So the lesson learnt for me was… Just check to make sure register_globals is Off whenever you switch to new hosting.. coz that is pure EVIL.
How you can turn it off.. There are two different ways.
This also makes me feel that PHP’s OOP implementation is either misleading , buggy or at least fundamentally different to other OOP languages like Java or C#.
Consider this in Java:
FormBean.java
class FormBean
{
public String email;
}
TestFormBean.java
class TestFormBean
{
public static void main(String[] args)
{
FormBean form1 = new FormBean(); //Create new form bean
form1.email = "someone@something.com.au"; //populate form bean
FormBean form2 = form1; //Assign created form bean object to another reference variable
form1 = null;
System.out.println(form2.email);
//would still print "someone@something.com.au"
//i.e. Just setting one reference to NULL won't kill its object instance.
}
}
I have tested similar code with PHP though… I have only realised register_globals seems to affect the ways objects and their references are handled. Like setting one reference of an object to NULL killing the object instance, which essentially renders all my other references useless.
Is your RAD/Eclipse Java debugger timing out before starting the server?
Have a gazillion projects in RAD/Eclipse which all have to be deployed in server for debugging all the time like I do?
There is an easy way to increase RAD/Eclipse debugger timeout.
- Go to Windows > Preferences > Java > Debug
- Increase both “Debugger time-out” and “Launch time-out” value to be much larger. Try values like 180000/360000 respectively for time-out values of 3 and 6 mins.
Full article at IBM
http://www-1.ibm.com/support/docview.wss?rs=2042&context=SSRTLW&context=SSJM4G&context=SSSTY3&context=SSCGQ7C&context=SSDV2W&uid=swg21212755&loc=en_US&cs=UTF-8&lang=en
Download Firefox 3 now.
It should available for download sometime today according to mozilla developer news posting
Lets all download latest version of our favourite browser Firefox today and help set the
.
Go Firefox !!!
Get your own ajax loading images…. absolutely for free.
You have choice of different styles like…. bar,snakes, arrows, flower and lots more
You have choice of colours foreground ,background and even transparent.
Why wait.. go get your own.
If you use XAMPP for web development and have skype running at the same time. Specifically if you start Skype before you start apache, you will realize that you are getting blank page’s on your webserver. If you notice the apache console, There should be an error on the lines.
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Quick fix: Start apache before Skype(i.e. take out skype out of startup)
Better Fix: Go into Skype>Tools>Options>Advanced>Connection and Uncheck ‘Use port 80 and 443 as alternatives for incoming connection‘
If you have ‘Firewall’ like I do. Open the port specified by Skype on the same options page for TCP/UDP for the best performance,.
If you have a router based NAT firewall .. then do it through the web console, or if it’s Zone Alarm or any other windows based firewall.. add the port number to exceptions.
Some usefull links
http://www.skype.com/help/guides/firewall.html
http://support.skype.com/index.php?_a=knowledgebase&_j=questiondetails&_i=148
http://forum.skype.com/lofiversion/index.php/t16779.html
Ever wondered how to delete files matching a certain patten from within all sub-directories in DOS (aka Windows).
Simple
At your command prompt type simply DEL /S *.ext
eg:
To delete all .bak files within D:Workspace
D:/workspace>del/s *.bak
But be careful.. there is no confirmation dialog.
Looks like sun hired a web designer finally.. Evidence a second cool website from Sun. Here by cool I mean simple, elegant and informative.
Check it out for your self.










Recent Comments