Archive for the ‘Geekdom’ Category

Is there a good website editor for mac?

Monday, April 21st, 2008

Essentially ive started using a mac a lot lately and the one thing i still cant find is a editor for websites. Currently i use homesite for windows. Its super lightweight and easy to use. Simply retarded that i even have to ask about this, but does anyone know of a good editor?

Update:
So I was referred to the software Taco as a software solution to what i want. However and the huge downfall with this software(unless I’m just being lame and cant find it) is that it doesn’t have a built in ftp to automatically upload to a live website. On a better note i dig the interface and ease of use. Definitely a software i will use on projects.

jason

Another couple cool sites

Thursday, March 27th, 2008

This was a site my friend kevin let me in on. Check it out, kinda cool list of sites. All of the sites listed or those of the top web 2.0 sites out there. Maybe sometime soon ill have a site worthy of putting up there

http://www.go2web20.net/

Jason Rogers

Cant decide what colors to pick for you design?

Wednesday, March 19th, 2008

So, im not the greatest designer out there. Actually im by far really bad at it. So one of the things i have a major problem is with picking out colors for my design. Here are two sites i find very invaluable to my daily designing needs.

http://www.colourlovers.com/
http://www.colorschemer.com/

Hope that helps a tad

Jason Rogers

Things that make a great ecommerce site: Tip #1

Wednesday, March 12th, 2008

I was talking to the marketing manager here where I work at greenculture today. I had him go to this site to evaluate anything I could do to improve usability and bring up my overall traffic. The first thing he told me was I have no niche. I write about whatever the h3ll I want. Well I sat down and really thought about it, and there is nothing I know better then ecommerce.

One of the first things people ask when doing a start up is “Where do i start? This might not be such a good idea.. :(”. Most people have this problem where they have know one to tell them a good focal point to start. So here is a list of things to get you started.

1. The first thing is figure out what product/service you are going to sell. Dont worry about how to sell them at this point, just figure out what you want to sell. An example of something I chose is on my website Lilyputts which sells gift baskets. I chose this product mostly becuase after step 2 i got really discouraged by the competition, so I kept re-choosing.

2. The next step involved would be to check the competition. Go to google and type in what your selling, think of yourself as the customer and check other sites and see what there doing to sell the product you’ve chosen. I’ve had to do this countless times, and its no fun.

Nugget of knowledge*: They say it takes about 2 years to have a presence on the web. So you have plenty of time to figure out what you want to do.

ps. More to come on this
Author: Jason Rogers

My Call Of Duty 4: Modern Warfare Review

Monday, February 25th, 2008

51td5rq1wvl.jpgWell i bought Call of Duty 4: Modern Warfare about 4-5 days ago for a whopping $64 total. After getting home and popping it into my Ps3 I was pretty dissapointed. Actaully to the fact that i turned it off, and proceeded to complain and whine. My biggest mistake was going into believing it was going to be super tactical, something like Ghost Recon or Rainbow Six. So i cant really take it back so sunday i turned it back on. This time however i realised i just hated the first few levels.

The game is remarkable realistic. From the start picking up grenades and throwing them back at people sounds simple, but actually doing it in a game is uber. One of my only complaints is that in the PC version you can lean around a corner, however the Ps3 cannot do this. It’s pretty upsetting, but i can see why the developers didn’t do this….becuase there aren’t enough buttons on the controller. Another up is the sniping, pretty well done. If you click the left stick and hold it down your character will take a deep breath and the gun will steady until he cant hold it any more. The game is not just realistic visually, but story wise also. I wont give anything away, but they dramatisize several aspects of the story. Kinda hard to stomach some of the things they do. Reminds of a old war movie that makes you want to cringe at some of the things they do to people.

Im not sure of the value of reply however. After beating it i went back and tried to play certain missions again, and found myself bored. However im ready to try the online gameplay. We’ll see how that goes next week.

All and all the game was pretty good had some difficulty getting into it, but thats probably just me being retarded. I give it a 8.5/10. Oh yeah when you finish it, wait till the end of the credits.

Author: Jason Rogers

Oops! I accidentally did a rm -rf * in root

Tuesday, January 29th, 2008

Well i didnt do it accidentally. So ive always wanted to try this. If your wondering what this is then ill enlighten you. ‘rm’ is for remove, and ‘-r’ is to recursive remove from current directory, and ‘f’ is to force shutdown the process so it can be removed. No say your did this in the root of the linux server. Would it actually remove the kernel? Now onto the story. We had a web server being put out of commission. I took 3 screenshots as i did it.

So the first screenshot here is me just typing it.

1.jpg
This next one i kept typing ‘ls’ and eventually the ‘rm’ deleted the command ‘ls’.
2.jpg
Then when the commands were deleted i had nothing else to do but shut it down.
3.jpg

As im sure you know, it was very much fun to be destructive.

Jason Rogers

I have redone the site look.

Sunday, January 20th, 2008

Well i finally did it. I took the time to update the look to more current standards. Heres the old and new, let me know what you think. Criticism welcome.

neurotic.jpgnew.gif

Macbook Air

Friday, January 18th, 2008

I want one….Go out and buy me one now…. This things is awesome. So sleek and thin.

Watch the video. I think the touch is awesome with the pinch for zooming in and out. Also the solid state hard drives in the more expensive ones is a nice touch.

Jason Rogers

Build a php search with myql

Sunday, January 6th, 2008

So this is big. Most company want a very indepth search on there website, so what do you do. Well most people just do a simple SQL query with the like operator in there. However search is much much more than that. Several things to take in account are stop words, relevancy, uppercase/lowercase, trimming, multiple words, and so much more. Hopefully this will help you a little.

Things to remember

  • Never run the user supplied information straight to the database
  • Trim off the extra spaces
  • Convert to lower case
  • Clean out stop words like: ‘and’, ‘if’, ‘or’……
  • Strip out punctuation

To start:

1
2
3
4
5
6
7
8
9
//Make this bigger for what you need
$stop_words = array(" if", " and ", " other ", " dont ", " never ");
$punctuation = array('/','\\','\'','<','>','(','*','&','?',';',':','[',']','{','}','|'
                             ,'=','+','"',',','.','-','_',')','^','%','$','#','@','!','~','`');
 
$string = strtolower($_GET['search']);
$string = str_replace($stop_words, ' ',$string);
$string = str_replace($punctuation, ' ',$string);
$string = trim($string);

Porter Stemming Algorithm

Check this out, Porter Stemming Alorithm. You should become acquainted with this algorithm if u want to build a great search. Basically every word has multiple variations, and what you want to do it dumb down all words to there basic.

For example: The word ‘Visual’ can also be Visuals, Visualization. If you just do a basic search and type Visualization, things like visual wont show up. What do you do? Well download a class that applies this algorith to your string.
This article is still being written

What Now?!

Now is time to think. Go figure. So on to the actual query. You can write it with a simple query like this:

1
$sql = "select * from table where column like '%$string%';"

The only problem with that is the search is gonna have to be near exact, so what you need to do is search with an or and split the string by words.

1
$sql = "select * from table where (column like '%$word1%' or column like '%$word2%');"

So now you have all these results.. Now is the hard part and the part i leave you at. Your gonna have to write an algorithim or a means of reordering the list. Some things to remember. More exact results should show up higher on the list.

Author: Jason Rogers

So, im still experiencing lots of database load.

Monday, November 5th, 2007

Well to start i thought i was a genius for setting up the MYSQL replication server. Well im not….. Anyways i found it really helped but it wasnt a complete solution the load is still intense. After much research i found that what i did would be completly awesome in a read only enviroment, but there is writing involved. Because of this the replication still bottlenecks at certain places. What do i do?!?!?! Well after a weekend of research i have another solution im going to try. Caching. I noticed that we get roughly 60k page views a day. Thats a crap load of queries given that every page has some sort of database connection. Ive decided that for this im going to use Memcached. “Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.”–Taken right off there site. Well so we have database connections cached, what about static html and images? For that im going to implement Squid and set it up as a reverse proxy server.

The Rundown of Memcached

Memchached can cache database queries, flat out bad ass. However all these queries are being put into memory, and whats cool about memcached is that you can have it hosted on another server. Basically you run a query on a page, the same query gets hit by users say every 4 seconds. Well cache the results of the query and keep them cached for 5 seconds. This will add about a 5 second delay to when items get updated, but will alleviate all those queries to huge monolithic poorly designed databases! :)

Sharding the database

Sharding, try searching it. Took me forever to find some descent sources to learn what the heck this is. As far as i knew before this, it was when you died in EQ2 and needed to find your shard so you don’t have an exp penalty :). Any who. Sharding. What it means is to break your database/database server into many. Only storing a certain region of the data on each shard. Now each shard can be replicated and clustered all you want, but the overall concept of separating the data across several servers has to remain. Whats the point you ask? Why would you waste time and effort? But managing it would suck, right? Ill tell you the point. When you do a write to a table in a database it locks it temporarily to change the data. Say you have a very intensive back end that needs updating a lot…well thats a lot of locking and will cause the reading to get backed up. So what you do is split the data across several servers, so that the weight of writing to one server is now spread across many causing less backups. The downfall however is you’ll have to teach your program to know what server to connect to for its information.

Author: Jason Rogers

Jason Rogers of the Neurotic Geeks is proudly powered by WordPress
Entries (RSS) and Comments (RSS).