-
Torn
I am so torn between writing on tumblr and installing Wordpress back onto my personal blog. I would like to keep my tumblr blog more about programming and my personal blog more about what is going on.
I guess the first thing to do is to start writing again. That would be better then trying to figure out where to put everything. Now I am off to work.
-
Javascript, line breaks, single quotes
If you are going to assign a string with line breaks into a variable with single quotes, because maybe it contains double quotes then at the end of each line before a line break escape it like the following code with an \
<script>
var new_html = ‘\
<div id=”hello”>\
<p>This is the new data</p>\
</div>\
’;
</script>
This should help you with any issues you have.
-
Page Accessed By jQuery or Http?
Here is a little code snippet I have been working with to integrate into the cms I am building with Codeigniter. It is used to determine if the controller is accessed by jQuery ( an ajax request ) or by a normal http request.
/* Access() * returns http if requested by http request * returns ajax if requested by ajax request */ function access() { if( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && ( 'XMLHttpRequest' == $_SERVER['HTTP_X_REQUESTED_WITH'] OR 'ActiveXObject' == $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) { // Request identified as ajax request return 'ajax'; } else { // Requested through basic http request return 'http'; } }
Any suggestions and help would be greatly appreciated.>
You can comment over at my blog http://willayers.net/
-
"The man who stops advertising to save money is like the man who stops his clocks to save time. - Henry Ford"
(via dr1v3n)
-
Here is the first day using the iPhone app Sleep Cycle, I was able to see where in the night I was in a dead sleep and where I was still in a dream / light sleep. I ended up waking up an hour before I was suppose to and could see that I feel back into a very deep sleep right before my alarm went off.
In the next couple days the app should be able to figure out the best time for me to wake up without feeling very tired.
-
Testing Driving Sleep Cycle iPhone App
Sleep Cycle: an iPhone app that tracks your sleep cycles and wakes you at your lightest phase. http://www.lexwarelabs.com/sleepcycle/ (via @plasticmind)
I will be testing this very interesting little app out for the next week or so and will post my findings here. I will be very happy if this helps me sleep better, wake up better and even be able to wake up without an alarm like I would in high school.
-
Codeigniter has a Cart Class!?!
I am hoping here in the next couple weeks to a month I will get the chance to use the new cart class Codeigniter has in an application. I will document my experience here when I begin.
-
Magento E-commerce oh how I $*%^@(* hate you
I really hate the over complicatedness of Magento … but I have not found a better e-comerce solution yet. So we have a classic Love/Hate relationship. Oh how I love the word classic. Have you seen The Hangover? “That’s Classic” was heard through out the entire movie by Allan. Anyway, the whole point of this little post was to rant about how much I hate and love Magento and that I get to migrate it over to a new server here in a couple days. Yay me!
-
Linking phone numbers on an iPhone website
I have began to create a website for a client as an iPhone site. Here is a simple way to link to a phone number as if you were creating a book now link.
<a href="tel:+1-800-555-5555"> <img src="/images/book_now.jpg" alt="Call 1-800-555-5555" />
</a>
-
hey babe, wanna come over to myspace and twitter my yahoo ‘til I google all over your facebook? #talk_nerdy_to_me




