Writing by shinda on Thursday, 17 of August , 2006
Wikipedia is probably the most used site (outside of Google) for research and just generally passing time. With that known I was kind of surprised to find this as being at the home page as there featured article of the day: Sikhism.
Millions of people log onto Wikipedia daily, so that means potentially a million people have read that article.
One small step for man, one giant leap for the Sikh kind …. or is it?
Category: Announcement, Sikhi, Tech
Writing by shinda on Wednesday, 2 of August , 2006
One of the biggest pains in hosting a website comes when you realize that you need to switch servers, or mirror a website. Ideally your initial server should do you just fine, but theres always those times when you find a better deal, the initial server gets hacked and you need to move, or for whatever reason you need to move your site, to another server.
Now if your site hosts a lot of files, this can present itself to be a problem in fact become a quite cumbersome ordeal especially if you have a slow Internet connection or limited bandwidth.
It is in that problem that lies the solution which is this script. I searched around for a bit to find a script that could help me mirror a copy of a website, but there was nothing that was simple.
Luckily PHP can handle FTP protocol seamlessly so creating a script wasn’t all that much of an ordeal.
Usage
1) Fill out the FTP connection information
$ftp_server = "ftp.yourftpaddress.com";
$ftp_user_name = "ftp-username";
$ftp_user_pass = "ftp-password";
$ftp_dir = "/your/folder/here/";
2) Enter the URL where you want to copy all files from ftp to.
$dirLocal = "/your/local/folder/goes/here/";
*** Make sure that the folder is writable (CHMOD 777)..
3) Save and upload to your server.
4) Run ftp.php by visiting the URL or running the cron job.
Notes
The only testing this script got was when I used it to copy over all my sites from the old server over, and it worked, so theres no super bugs to report.
This is version 1, I doubt that I’ll make a version 2, and don’t think that a nice front-end is necessary. After all the fact that you’re responsible for copying over the site dictates that you have some degree of computer/programming knowledge.
If the script seems to hang up then just stop the page and refresh. Script is smart enough to not replace existing files (if they match that is, and if your server supports ftp_size() );.
No idea if file resume works. I tried to code it in, but never came abouts to testing it.
Warning
This script has the potential to mess up your server if used improperly. By reading and using this, you agree that I am not liable in any shape or manner for any damages and or loss of data that may occur. With that said, I don’t expect the script to wreak all that much havoc on a properly configured server, however you have been warned.
Download
PHP Server Copy V .01
Category: Tech
Writing by shinda on Tuesday, 11 of April , 2006
For a while now I’ve been looking to find ways to improve my torrent download speeds, after all the only thing better then being able to download anything, is to be able to download anything fast.
Firstly, if you have no clue what Torrents are, then understand them to be the latest fad in downloading and sharing files. I could go into more depth on it, but if you havn’t needed or used torrents yet, the chances of you needed using torrents is pretty slim.
Firstly let’s deal with the basics:
The Client
The client is the program used to actually download the files. Now I’ve used most of them out there and I can cleary say that BitComet is by far the best.
- Azereus slowed down my computer, making it a pain to download and work normally , but it does come loaded with features.
- BitTornado, didn’t deliver on the speed, and lacked the User Interface,
- BitLord an adware / spyware version of BitCommet.
So my advice is to get BitComet. It works, its fast, doesn’t have problems, what more could you ask for.
Change your DMZ settings
If you’re using a router, chances are your computer doesn’t have direct access to the internet. You can change that by enabling DMZ or port forwarding, that way your computer can get direct access to the internet (indeed making your computer more susceptible to being hacked, and getting a virus, but you may get faster downloads).
Choose your Torrent Files wisely.
Nearly all torrent sites list the number of seeds and peers. A good torrent file is one where the seeds:peer ratio is closest or greater then 1. So a file with a seed-peer ratio of 50:50 is better then one with a ratio of 50:1000.
Disable Windows firewall.
Yes it puts you at the mercy of hackers and virus’s, but it also helps improve download speeds.
To disable windows firewall:
- Go to Control Panel.
- Click Windows Firewall.
- Click on off and go OK.
You could configure your settings and all that, and still have your firewall on, but that would require further explanation and I don’t want type all that up. Also chances are you got other firewalls that came installed with windows, that you may need to configure / turn off, which I’ll leave you to figure out on how to do on your own.
Now that we got the basics out of the way, there are a few other things you could try, such as patching your windows and changing the number of open ports and also capping your upload speeds.For more info on how to do those and some other tips check out this thread on torrentfreak.com.
As always, I can’t guarantee that doing all the above will fix things but if you are having problems, then you can try each step individually and one of these may just work for you.
Category: Tech
Writing by shinda on Monday, 3 of April , 2006
Add the Satnam Singh Banner to your blog or site.
Just add the following code right after the body tag in your site template.
[code lang=”java”]\n’);
}
//–>
[/code][code lang=”html”]
[/code]
Category: Protest, Tech
Writing by shinda on Thursday, 9 of March , 2006
If any of you are forum goers, then you probably know about this whole beef going on with Amanpreet and some Concerned Individuals. For those who don’t know the just of the story, is that Amanpreet is the man behind a few popular Sikhi Websites and he got booked doing/saying thing’s that are not appropriate for a Singh. Apparently Singh’s approached Amanpreet, but he decided to make things a public issue and well that only backfired on him when the other side aired him out by making their own website against him.
Now I don’t know Amanpreet, so I won’t go into the whole issue, other then the fact that at its base seems to be the ever so popular MSN Messenger. Now Amanpreet’s not the first to get booked. There have been other Singh’s who got put into similar situations, such as Jatinder who got faded not so long ago, Manjit who’s now facing criminal charges for the things he’s done, even most the fights I got into back in High School came courtesy of these chat programs. Many people back in the Turner days also got screwed, when almost every desi’s ICQ history went public, and once people learned about Key Loggers, well let’s just say that hell froze over for many.
Realizing that no ones perfect, and that everyone’s has their faults, I write this in an attempt to help many you youngin’s protect yourselves, from making similar mistakes that many others have made throughout the ages. I thought I’d share whatever giaan I had on this topic, (considering I was around since ICQ first dropped, and been alive throughout the entire MSN, Yahoo, AIM revolution).
So I humbly present to all my Singhs, (Bibian you can use this advice too, just relate all the parts about Bibian to Singhs instead):
The 10 MSN Commandments. (You can apply this to other IM’s also)
Rule #1
Don’t add Bibian looking to start a relationship or get close. Unless you got a plan, be a man and do the right thing (Don’t add them with future hopes).
Rule #2
Now listen close, because this one really gets ya, don’t add random people trying to make your list grow, because by now you should know, that the bigger your list the more people you got that can potentially screw you. (Don’t add people unless they add you first, is always a good thing to live by).
Rule #3
I think should have been number 1, but if a Bibi says she loves ya, then drop everything and run. Don’t stand still, because that shit always comes back to haunt you, and that’s just never any fun. A Bibi whose jonzed is as bad as aids, you’re just asking to get screwed over. Keep your kashera on tight boys, this rule you must remember.
Rule #4
Is often overlooked, but if someone’s acting bad, that mans probably shook. Don’t fight, never start internet beefs, block them cowards and give them a time and place that you can meet.
Rule #5
Be weary of strangers. More often then not random people who add you and spend hours talking to you often have other interests in mind, so be smart and pay attention and keep the things you say, in line.
Rule #6
Your msn list isn’t protected. Use protection and caution when you let your fingers speak. Last thing you want and need are your convo’s being shown to the world, and having the complete internet thinking you’re half of a man with his tail between his legs, chasing after girls.
Rule #7
Be smart with what you say and to whom, copy and pasting isn’t hard. Most people can copy and paste faster then they can type.
Rule #8
Is my favourite, I follow this one real close, when mans send you files, never accept unless you know that their safe. Your foes can be disguised as friends, so like Yoda, precaution you must take.
Rule #9
Watch the links that people send. Unless they tell you what their sending, don’t click it. At the very least make sure that they know their sending you a link. Don’t click on it first and ask questions later, because by then it could be too late, for both you and your computer.
Rule #10
Realize that your MSN’s always tapped. If it’s really important and you want to keep conversations private then tell your mans to call you or better yet discuss things when you meet up in person.
Now there are a few other tips that you should always remember such as it’s not wrong to block people. If someone gets annoying block them someone starts jonzing block them, someone says something stupid, block them. This feature is so highly underrated, yet can save you so many head aches.
Now follow these rules, and unlike others you may just be safe. For all you Singhs, if you can’t show your conversation to the panj pyarai without feeling guilty, then that’s a conversation you shouldn’t be having.
Now if you felt like I wasted your time, then you should have been smart enough to stop reading ages ago. If you’re offended by things I may have said, then there’s not much I can do for you.
So till next time,
Keep fit, and have fun..
Category: Advice, Sikhi, Tech
Writing by shinda on Tuesday, 7 of March , 2006
So you wanna be a hacker? code cracker? sittin in your room talking smack typa rapper?
Then try your skills at: http://www.area-6.net.
Basically its a bunch of hacking challenges, where you’re basically hacking for a password. Once you get it, you can use that password to try the next challange.
I remember back in highschool I came across one of these and I got pretty far, but seems like I’ve lost much of the creative thinking needed to do most of these, but I manage ;).
Anyways try your hand at it. I got up to challenge number 3 no problem, but ran into a bit of a wall (damn you GOOOGLE!!!).
Anyways if you do try it, let me know how you do. (Why do I always find these things when I got mad work to do??)
Category: Question of the Moment, Tech
Writing by shinda on Thursday, 26 of January , 2006
The other day I was checking out AshSingh’s blog and he was featuring a new project of his, which utilized the Google Map API.
Similarly a while ago, I was able to work on a similar project for GursikhiJeevan, when we made the Gurdwara Index.
Apart from looking cool, such Gurdwara map’s also help show some traits about the Sikh population in different areas. For instance let each Nishaan Sahib represent about 100 Sikh families. So for every nishaan sahib you can take that as meaning that there are 100 Sikh families in a 20 km radius of that Gurdwara.
Check out Ontario for instance, you can easily see that the majority of the Sikh population in Ontario lives in the GTA. With Sangat scattered around with some in Ottawa, some in Kitchener etc.
Then when you look closer at the GTA you see that the majority of the Sikh populous in the GTA is located in Brampton, with each Gurdwara less then 30 km away from the next.
If any of you ever played StartCraft, you’ll remember that in order to build anything with the Protoss, you needed to first build a Crystal, and then you could build within a given radius of it.
It seems like the same applies for Sikhs, because we only exist in and around our Gurdwara’s. So what’s this mean? Well, like the old saying goes, “if you build it they shall come”, same applies for our communities. If they build the Gurdwara then Sangat is bound to follow.
Now if the above holds true, then it should only be a matter of time before Sangat moves to Hawaii, after all there is a Gurdwara there. Now imagine that, an AKJ International Smagaam in Hawaii, that’s one Smaggam outside of Toronto that I wouldn’t mind hitting up.
So what was the point of all this? Nothing really, I jus wanted to try out this new blogger word plugin that lets you blog from word. So if your reading this, then well it worked. Good stuff.
Category: Sikhi, Tech