Viewing JSON

From time to time I need to examine data in JSON format. Now unformatted JSON is very hard to read, for example: {“movies”:[{“id”:”770739679″,”title”:”Captain America: The First Avenger”,”year”:2011,”mpaa_rating”:”PG-13″,”runtime”:121,”critics_consensus”:”With plenty of pulpy action, a pleasantly…”,”release_dates”:{“theater”:”2011-07-22″},”ratings”:{“critics_rating”:”Fresh”,”critics_score”:71,”audience_score”:96},”synopsis”:”Captain America: The First Avenger will focus on the early days…”,”posters”:{“thumbnail”:”http://content9.flixster.com/movie/11/15/83/11158339_tmb.jpg”,”profile”:”http://content9.flixster.com/movie/11/15/83/11158339_tmb.jpg”,”detailed”:”http://content9.flixster.com/movie/11/15/83/11158339_tmb.jpg”,”original”:”http://content9.flixster.com/movie/11/15/83/11158339_tmb.jpg”},”abridged_cast”:[{“name”:”Chris Evans”,”characters”:[“Captain America/Steve Rogers”,”Steve Rogers / Captain America”,”Steve Rogers/Captain America”]},{“name”:”Hayley Atwell”,”characters”:[“Peggy Carter”]},{“name”:”Sebastian Stan”,”characters”:[“Bucky […]

My First Electricity Calculator

I have built my first online electricity calculator. It’s very simple and there are lots of similar calculators out there but it’s a start. Behold: Electricity Calculator Here’s how it works. Let’s say you are wondering how much it would cost to run a nightlight if you leave it on all the time. This nightlight has 0.2 watt […]

How to Configure Windows 7 to Put Your Computer to Sleep Automatically

I used to leave my computer on all the time – just so that I don’t have to wait for it to start. Then, I upgraded my computer. As part of the upgrade I switched from Windows XP to Windows 7. What I noticed is now my computer goes to sleep automatically when I don’t […]

Front Page with a Big Image in WordPress

I’m going to continue with setting up my photography website using WordPress and Twenty Twelve theme (see the first post in the series). As a reminder, this is how the home page should look like: By default, WordPress shows latest blog posts on the home page of your site. Here is how to make it […]

How to Set Up a Photography Website Using WordPress

Let’s say I’m a professional photographer and I need a new website. The best thing to do generally is to ask someone else to do it. But what if I’m just starting out and don’t have money to spend on a fancy website? I can get a basic website for free using WordPress. First of […]

Command History in Far Manager

Far Manager has powerful suppport for command history. ConEmu author even suggests using Far Manager with panels turned off instead of standard command prompt. Ctrl+E gives you previous command entered. You can press it multiple times to get older entries. Ctrl+X moves you forward in the history. Press Alt+F8 to view command history in the […]

Far Manager and Console Output

One of the strongest features of Far Manager is the ability to start any program or script from command prompt. You can type anything there, just like in standard command prompt. Ctrl+Enter shortcut greatly helps here – it inserts selected file name to command prompt (Ctrl+F inserts full path). If you launch a console program […]

PowerShell Exit Codes

Recently I came across an interesting quirk in PowerShell: exit codes from powershell.exe are inconsistent. As you may know there are two ways of launching PowerShell script: you can use -File or -Command parameter. powershell -File test.ps1 or powershell -Command .\test.ps1 -Command could be ommitted: powershell .\test.ps1 Now let’s say you want to execute PowerShell […]