JavaScript Debugging in Internet Explorer
This is to bookmark to an article on how to debug JS in Internet Explorer.
This is to bookmark to an article on how to debug JS in Internet Explorer.
This is a blog site by Andy, a serial entrepreneur and angel investor. I found entries by him very inspirational. I often read his posts. Here’s the link.
Many developers heard/use/implement/develop RESTful web services daily basis including myself. It seems likely that we all know what it is and how it works. However, if we ask ourselves why we are using it, what would be your answer?
My answer to this question is this:
To make *services* more sense.
We all know that RESTful web services utilizes http methods such as GET, POST, PUT, and DELETE. Most commonly used methods to me are GET and POST. And technical aspects of discussion can keep going. However, the question is how we can utilize RESTful web services and how we can make it so that other developers can consume them in easy way? Eventually RESTful web services is for openness. Facebook opens up their RESTful API so that other developers or 3rd party application of facebook can pull up information on users or something like that.
With RESTful API, it is *possible* that you can organize calls.
Let’s look at this imaginable API path for getting a particular movie info.
http://RESTfulAPIHost:Port/movie/
By just looking at the API path, you can take a good guess of what it might return to you. And then after that, you naturally think ahead and append movies name to it.
http://RESTfulAPIHost:Port/movie/dark-knight/
Looking at the API path, I would naturally think that I could expect movie information for the movie “Dark Knight”. This natural thought process leads to more details API paths like these:
http://RESTfulAPIHost:Port/movie/dark-knight/actors/
http://RESTfulAPIHost:Port/movie/dark-knight/credits/
http://RESTfulAPIHost:Port/movie/dark-knight/showtimes/
I just realized that writing down knowledge or techniques that I’ve already known or practices for a long time helps me organize them in the brain well. Some people talk about a particular topic and I just hear over what they talk thinking “I know about it and have used it already” and then do not join the conversation. That’s a big mistake that I make every single day.
It’s like this: Let’s imagine for seconds. There are many post-its on a table with specific instructions on them for tasks. When there are 10 of them, you can easily find them. However, when there are over 100 or 1000 of them, finding the right post-it note is merely impossible or it will take at least several minutes to several hours. Over time, those post-its will get stacked more and more.
Organizing post-its will definitely get you to find the right one much faster. I think brain works that way. You gain so much knowledge daily basis and if you don’t organize your knowledge well it will be like you have 1000 or move post-its notes everywhere on your desk. I think writing down those things helps you organize your knowledge. Also it can be your future references when you need to recall how you did it in the past.
I recently ordered Samsung 46 inch LCD TV, which of model number is LN46B650. Actually it has not arrived yet. So I can’t really give a review yet. However, when I receive the TV (which is supposed to be delivered this Sunday), I will definitely update this post as I play with it.
Here’s the photo of the TV set (links to amazon product page):
I came crossed geolocation feature that was introduced in Firefox 3.5. That is very neat functionality that marketings will love for targeted ads. And also for web developer/engineers, it’s something that we can customize the web content based on the users’ location.
It used to require somewhat complex process to get (not technology side tho) the information.
Anyways, in this link you get to see how to access the core API for.
And then here’s the properties of position object:
And interestingly position.coords has some unique properties:
As you can see it has speed property. So in theory, with the available properties you can make GPS system on the web.
I was working on a feed project at work and dealing with lots of XML and JSON data. If data were well indented and formatted, my tasks would have been a lot smooth. However, the reality was not like how I imagined as usual.
At first I googled about it. I kinda found one but the application required actual file, which could be okay. However, I could see myself copying and pasting xml into a file and upload, which is not quite ideal.
So I decided to make one for myself and my tasks. Let me know if it works well for you or you find a bug.
Here they are:
http://www.shinstudio.com/tools/pretty-xml
http://www.shinstudio.com/tools/pretty-json
Honestly I’ve been too bush with my full time work. You know when you have a full time job, you become really busy for anything else unless you slack.
At work, I’m doing some platform migration work for the news section of Yahoo TV these days. That’s all I can say. This work does not enhance the page features at all. It’s “migration” work. That’s all. It gives me some challenges though, which keeps me interested at least.
Setting up nginx http server was not so bad I thought. Setting up Codeigniter on my server was easy (Just follow the instruction in their documentation).
However, codeigniter redirect was not working except the one that is set up in $route['default_controller'] = “blahblah”;…
If you encounter the same problem as I struggled from, find the config.php from /application/config/ directory and search for “$config['uri_protocol'] = “blahblah”;
When you look at its documentation carefully, it says :
If your links do not seem to work, try one of the other delicious flavors:
So I changed it to “REQUEST_URI” and my Codeigniter’s rewrite rule started working!
If you wonder what my conf file looks like, here it is:
server {
listen 80;
server_name domain.com;
location ~ /\. {
deny all;
}
rewrite ^/(.*) http://www.domain.com/$1 permanent;
}
server {
listen 80;
server_name www.domain.com;
access_log /path/to/your/app/log/access.log;
error_log /path/to/your/app/log/error.log;
location ~ /\. {
deny all;
}
location / {
index index.php;
root /path/to/your/app/public;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
location ~ /index.php/ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/your/app/public/$fastcgi_script_name;
}
}I read most of emails that were piled up during my vacation and made myself familiarized with all the same protocols and procedures again in the office.
As I just finished my vacation, it’s time to do things that I wanted to do before vacation.
Here’s some photos that I took during my trip to South Korea and Japan: