Converting caffeine to code, shooting pics, and cruising the roads of life.

Archive for the ‘Reading’ Category

How to become a myspace spammer and look legit

Thursday, October 12th, 2006

Many of you have seen my post from a few weeks ago that talked about theming your myspace without ads. (This Post) Well, after that post, my fake test account has gotten quite a few interesting requests from spammers. So guess what, I’m going to break down how these accounts draw you into becoming their friends so they can send you ads.

From what I’ve seen, there are two types of these accounts. You have the fake accounts with modified layouts which disguise the number of friends, and you have the accounts that have been stolen. The ones I have been receiving come from the first time. So, let’s begin.

The first thing you need to do is make an account. I suggest creating a fake email account just for this purpose, but that’s up to you. Once you have your account created, you’ll need to log in and find a teenage girl styled theme. These usually consist of clashing colors with pink, green, blue, and maybe even yellow. The main point here is to think like a designer with an iq lower than one hundred.

This next step is an all important step. You need to get your image. Usually, these consist of fake pictures of high schoolers, high school girls, guys playing football, models, etc. The goal here is to stand out.

Now, we come to the hook. Set the profile to private so people have to be your friend to see your profile. (This is why you want an attention getting picture) Okay, so people will be your friend, now what? Hide the real number of friends. This is an amazing strategy that would fool most people without the firefox web developer toolbar. (I immediately disable embedded css on myspace pages, which is how I found this out) All you have to do is fill out your “about me” fields with fake, but interesting information, then in the “I’d like to meet” section, paste the code located at http://codymays.net/files/myspacecode.txt (Note: this is not my code. I ripped it from a spammer’s account, so change the images and stuff) and save your profile.

Amazing isn’t it? In this small amount of time, you have a spam system ready to go. All you have to do now is google for some myspace pages, start adding friends and sending messages saying that people should add you as a friend since myspace gives you errors when you try.

In all seriousness though, this is the exact reason the myspace revolution is going to have to come to an end. It is a whole new system for spammers to hit a target audience with, and it works quite well. Ask the developers of myspace. They are probably floating on a yacht somewhere. My intentions in writing this article is that people will stop falling for such stupid setups… I can wish can’t I?

Example profiles made by real spammers here and here

Funny IRC moment from the past

Wednesday, September 13th, 2006

Check it out:
http://www.codymays.net/files/OWNED.txt

PowahPC

Wednesday, August 9th, 2006

Well, i spent the last hour and a half reading up on PowerPC assembly code. It’s definitely interesting coming from an 80×86 background. (Even though I knew very little x86 assembly) I will say one thing right now, I can imagine it being pretty odd pulling all nighters with ppc asm, since there is no way to distinguish the type or register you are modifying. They are identified by just a digit, 1-32.

I definitely find the architecture to be cool though. One of the really nice things about it, is the insane backwards compatibility with 32bit ppc apps on ppc64 machines. The binaries usually work just great. Unlike going to longmode, where you have to actually try in the kernel so you have 32bit support.

For those of you who don’t know, I’m planning on porting my OS to my BeBox as soon as I have enough knowledge of the architecture. Hopefully, I can manage to get another OS going in the process too, maybe updating the netbsd port of porting haiku?

I would also like to say that the ThreadBound teaser page has done better than I thought it would in one day. We’ve already got quite a few email address sign up for the updates. Keep them coming. :)

If I don’t update for a while, I’m rushing to get my summer assignment finished. I have a huge precal packet to do and a report on Fahrenheit 451 and I haven’t started to read it yet…

High Traffic Web Development

Sunday, April 16th, 2006

Over the past week and a half, I have been in the process of reading up on developing for high traffic sites. It is very interesting that it only requires small optimizations here and there.

One thing I’ve found in common with all large sites and that should be pretty obvious, is a PHP compiler cache and some type of caching system. Some of the more popular ones are APC, Bware Afterburner, Turck MMCache, and the Zend Accelerator. PHP caching systems are easy to write and can speed up template calls a ton.

You can speed up your site by using output buffering. What this does is use writev() instead of write(). The write() calls were sent to apache as 4kb buffers, where as the writev() calls aren’t.

Another speed up can be accomplished by setting Apache’s SendBufferSize to PageSize. This allows the page to be handed over to the kernel, to be sent, without blocking.

To reduce bandwidth, you may want to look into gzipping the contents of your page. I have seen this shrink 80gb backups down by almost a third the size, except for when most of the contents were images. So you should gain a lot for this if you can afford the overhead of the operations to compress your data.

There are also some simple thinks you can do to speed up your code. To speed up database calls, only query for that data you need. No need to SELECT * when you only need to SELECT id. You should also only query a table once. Get the data you need from it and store it, don’t query it again.

If you are using PHP5 or higher, you may also want to use MySQLi. This new MySQL API is much faster than the old API and includes both a functional and OOP interface. Most applications can be easily converted to use it. Plus, you get support for prepared statements and bind statements.

Optimization can also be made during the design of your database. Make sure you realize the differences between MyISAM and the InnoDB storage engines. MyISAM is very efficient for either very high volume writes or reads, but has table level locking. InnoDB has non-locking reads and row level updates, plus high concurrency.

You may also want to cache query results if they are not expected to update as often. An example I often use for this is CMS systems. Why query all of the blocks you want on one page, when you can cache the results of the original query for 6 hours and have them quickly accessible? Plus, if the owner of the site changes them, just clear the cache…

Now, back to what I’ve been up to. Besides reading up on the above, I have also been messing with my new project for the last two weeks straight. It is amazing how many hacks IE5-IE6 requires. I know I’ve used at least four to get my new site to display correctly. While the thing worked in Firefox, Safari, Epiphany, Konqeror, Opera, and IE7 the _whole_ time.

I hope most people will like the design though. I have shown it to around 20 people on IRC, and only one person hasn’t liked it a lot. So I would say I’ve done pretty good considering this was the first site I had designed entirely in Photoshop and then converted it to CSS/XHTML by hand. The core work for this new project starts this week and will probably continue for the next few months to a year.

Reference for high volume PHP: http://www.oreillynet.com/onlamp/blog/2006/04/digg_phps_scalability_and_perf.html

The ultraSPARC T1 is amazing

Saturday, February 25th, 2006

I’ve been reading this blog since the first linux ultraSPARC T1 dmesg was posted there and I must say that these processors seem amazing. I had read an article in InformationWeek about them a few weeks ago and was truely amazed. Each core can run 8 simultaneous threads at once and the processor only draws 72watts.

I hope that this architecture survives, it looks extremely fun to program for. I wait for the day that these processors come into some cheaper machines, as the cheapest machine right now is $2300. I don’t have $2300 just to play with, so I’m going to have to wait. :( Reading the docs though, I do think I’m going to try and obtain an older SPARC, they look extremely fun to port my OS to. >:)

In other news, buy this and support your favorite osdeving blogger.