Here is a screencast showing some ways that you can speed up start up and shut down times.
I have an emachine at home, I just put in a new motherboard and it keeps looking up after about 15 min of use. This may be a good way to fix that.
Daily Cup of Tech: Screencast
Wednesday, July 18
Random: Cast Spells at Your Computer
An article on how to make your computer do things by saying a magical spell. Neat idea, I may install it!
Instructables
Instructables
Random: "Where did I come from"
So my son, who is 8 years old, has been asking me about "relationships" and where he came from.
I got this great recommendation from a friend.
"Where did I come from" by Peter Mayle
I'll let you know how it works out.
I got this great recommendation from a friend.
"Where did I come from" by Peter Mayle
I'll let you know how it works out.
Journal: Seeing the Forest AND the Trees
There are two types of developers. One likes to focus on the details, optimization and algorithms to solve a problem. The other likes to view the problem from a distance and figure out a better solution.
Any development solution has to be looked at and developed from these two perspectives. First is a large view or the "whole picture" as soom of us like to say. The other is the details, the nitty gritty of the problem. All good developers have the ability to "zoom" in and out, changing their perspectives as needed.
What accured to me is what perspective do we tend to naturally fall into. Give yourself this scenario: Let's say you are half way through a project and you starting a new day. Do you start with the "whole picture" and "zoom" in? Or do you find out where you left off, do a little coding and "zoom" out to make sure you have the whole picture in mind?
I like to zoom in. I tend to start my day by looking at things from the big picture and zooming into the detail.
I don't think either way is necessarily better, they are just different.
Any development solution has to be looked at and developed from these two perspectives. First is a large view or the "whole picture" as soom of us like to say. The other is the details, the nitty gritty of the problem. All good developers have the ability to "zoom" in and out, changing their perspectives as needed.
What accured to me is what perspective do we tend to naturally fall into. Give yourself this scenario: Let's say you are half way through a project and you starting a new day. Do you start with the "whole picture" and "zoom" in? Or do you find out where you left off, do a little coding and "zoom" out to make sure you have the whole picture in mind?
I like to zoom in. I tend to start my day by looking at things from the big picture and zooming into the detail.
I don't think either way is necessarily better, they are just different.
Monday, July 16
Interesting: Web Based Web Crawler
Interesting bit of code, I would like to "play" with and see how it works.
http://snippets.dzone.com/posts/show/3853
http://snippets.dzone.com/posts/show/3853
"This is based on Web crawler code I found on this site. This version allows your to run the crawler from a Web page, instead of from a command line, and output the results to the Web page. This would be useful for someone who wants to harvest links for a search engine or for someone who works for a Web security company and wants to harvest suspicious URLs for inclusion in a database."
PHP Code: Validate Email Address String
A bit of code that will use reqular expressions to
validate an email address.
URL: http://snippets.dzone.com/posts/show/4022
<?
function validate_email($email){
$exp = "^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
if(eregi($exp,$email)){
if(checkdnsrr(array_pop(explode("@",$email)),"MX")){
print("$email is ok.
");
}else{
print("$email is ok. But domain is not.
");
}
}else{
print("$email is not ok.
");
}
}
validate_email("shantanu.ok");
validate_email("shantanu.ok@gmail.com");
validate_email("shantanu.ok@fsjaldkfjlsfjsljflsfjsldk.com");
?>
validate an email address.
URL: http://snippets.dzone.com/posts/show/4022
<?
function validate_email($email){
$exp = "^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
if(eregi($exp,$email)){
if(checkdnsrr(array_pop(explode("@",$email)),"MX")){
print("$email is ok.
");
}else{
print("$email is ok. But domain is not.
");
}
}else{
print("$email is not ok.
");
}
}
validate_email("shantanu.ok");
validate_email("shantanu.ok@gmail.com");
validate_email("shantanu.ok@fsjaldkfjlsfjsljflsfjsldk.com");
?>
PHP Code: Get Root Folder
The following snippet will return the root path of a file. This is usfull when running an include within an included file. Sometimes you don't know what directory it will be excuted from
ULR: http://snippets.dzone.com/posts/show/4210
function getCurrentDirectory() {
ULR: http://snippets.dzone.com/posts/show/4210
function getCurrentDirectory() {
$path = dirname($_SERVER['PHP_SELF']);
$position = strrpos($path,'/') + 1;
return substr($path,$position);
}
Link: Display Images in Folder
Displays all the images in a folder
From Snippets:
http://snippets.dzone.com/posts/show/4259
From Snippets:
http://snippets.dzone.com/posts/show/4259
Great Quote
Found this great quote:
The statistics on sanity are that one out of every four Americans is suffering from some form of mental illness. Think of your three best friends. If they're okay, then it's you.
-Rita Mae Brown
I don't have any friends I would say are crazy just different. Does that make me the crazy one?
The statistics on sanity are that one out of every four Americans is suffering from some form of mental illness. Think of your three best friends. If they're okay, then it's you.
-Rita Mae Brown
I don't have any friends I would say are crazy just different. Does that make me the crazy one?
New Game: Blade Warriors
Haven't posted in a while, I figured I'd let all seven of my readers know what was going on.
I built a new game called Blade Warriors. It came out of some of the previous blog entries.
It's got a couple of cool things going on. There is an isometric grid being displayed. This grid is built with javascript and css. I used a familiar layering technique.
I'm going to go back and examine my analytics log and see what's happening there.
I built a new game called Blade Warriors. It came out of some of the previous blog entries.
It's got a couple of cool things going on. There is an isometric grid being displayed. This grid is built with javascript and css. I used a familiar layering technique.
- Build the floor first
- Each tile is it's own div with a unique id (IE: tile_x_y)
- Lots of complicated mathmatics to get the exact positioning right, I just kinda played with the numbers till they all fell into place.
- Once the floor is built I then place objects on top of the tiles
- Once the objects are there I placed the unit images on top
I'm going to go back and examine my analytics log and see what's happening there.
Followers
Copyright 2009 mobeamer. Powered by Blogger
Blogger Templates created by Deluxe Templates
Wordpress by Nattywp