Skip to main content

Posts

Showing posts with the label Technology

Proxy Server and its uses

I used to use many public proxy servers for accessing sites which are blocked by intranet or restricted sites. But recently the company policy started to block many of the public proxy sites, thus pushing me back to square one. !! I saw a great article from Amit (labnol) , to setup a proxy of your own !! That's really cool. That link gives step by step instructions to setup your own proxy server within "appspot"  , i.e. google app engine site. You could try out one sample at :  http://whatitem.appspot.com (if you really can't setup your own) You could give your URL directly by appending it to the proxy application .. eg  http://whatitem.appspot.com/google.com DON'T try to include keyword Proxy in your app address as most of the intranet filters checks for those keywords.    

Samsung Galaxy S3 Reviews and Technical Details

Samsung Galaxy S3 is one of the most awaited mobile phones for first half of 2012.  Especially the news of Samsung pushing out Nokia and the business strategy of Galaxy products provided the well welcomed Galaxy series (more than 40million handsets sold !!) and S3 being official product for London 2012 Olympics. S3 is perfectly designed to compete with high end phones especially Apple Iphone 4S  (unless Apple comes up with completely innovative 5th Generation) Some technical details though you might not notice everything... !! Metal touch and feel, Curved corners, Slick and thin design. 133g weight. Marble White and Pebble Blue colours available. Exynos 4 Quad Core Processor - ARMv7 - 1.4GHz ARM Cortex A9. Benchmarking here . Further benchmarks 1 GB RAM . External Micro SD storage upto 64GB 4.8 HD Super AMOLED display, 720 x 1280 px (306ppi),  to rival Retina Display which is 326ppi Camera: 8 MPix rear with flash; 1.9 MP front. Various shooting modes like Single Shot, Burst

Huawei Ascend G300 Phone Reviews and Unlocking

Last year, it was the Orange San Francisco which stole techies heart by being value for money. 2012 has been already hit by another gem "Huawei Ascend G300" Vodafone is having exclusive sale Why G300? 1. Simple comparison of SAMSUNG GALAXY ACE S5830 vs Huawei Ascend G300 Shows how better G300 is !! 2. Pure technical details Keythings with Huawei Ascend G300 aka Huawei U8815 Processor: Qualcomm Snapdragon S1, 1 GHz, MSM7227A RISC 32bit , ARMv7-A, ARM Cortex-A5 GSM 850 / 900 / 1800 / 1900 , GPRS Class 10, and 3G EDGE Class 10, HSDPA 7.2, HSUPA 5.76 RAM: 512 MiB, 393MiB usable (which is very good compared to other phones) ROM: 4GB built in, external SD upto 32GB (microSD, microSDHC) Bluetooth, USB Hi-Speed Micro-B (Micro-USB) connector, Wireless 802.11 b/g/n GPS, FM radio with headset, Geotagging capacitive touch screen, TFT screen, 480 x 800 pixels, 4.0 inches, 232.3 pixel/inch (much better than other rivals) Size: 122.5 x 63 x 10.5 mm and 140g weight Battery

Find process listening on a port

How to Find process listening on a port I recently had an issue while implementing my web-server as the default port was used by something else. I used below commands in AIX to find more details of that process 1. Use netstat command to find the protocol control block or PCB which is a protocol layer for UDP or TCP sockets eg.  netstat -Aan | grep <port_number> netstat -Aan | grep 30501 output will be something like $ netstat -Aan | grep 30501 f1000e0001363bb8 tcp4     0     0  *.30501     *.*     LISTEN 2. As "root" user, run rmsock command. Don't worry it won't remove anything as specified in the documentation . usage: rmsock Address TypeofAddress eg. rmsock f1000e0001363bb8 tcpcb output: The socket f1000e0001363bb8 is being held by proccess 15854120 (perl). You can further diagnose the process using "ps -ef | grep <process_id>" and see the real process. A good documentation can be found in IBM site which caters for Windows as well.

Perl Convert Epoch to Human timestamp YYYY-MM-DD HH:MM:SS

Ready made module in Perl to convert epoch time to DB2 or Human timestamp formats  (YYYY-MM-DD HH:MM:SS) Write a function convertEpochToHumanTimestamp and call this from the required sub.     # Function    : convertEpochToHumanTimestamp # Description : Convert Epoch into a formatted time suitable for insertion into a Human database timestamp #               column. The output format is "YYYY-MM-DD HH:MM:SS" my $inputEpoch = shift; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($inputEpoch); $mon++; $year = $year + 1900; my $humanTime = sprintf ("%04d-%02d-%02d %02d:%02d:%02d", $year, $mon, $mday, $hour, $min, $sec); return ($humanTime);

Handheld Futuristic weapons and society

Everyone must have seen in sci-fi movies about the handheld guns with lasers and waves going. But I would say the modern weapons are more advanced than that. Its more fearful that governments are now officially supporting it. Recent article from Russia http://www.dailymail.co.uk/news/article-2123415/Putin-targets-foes-zombie-gun-attack-victims-central-nervous-system.html Technologies might include direct-energy weapons - http://en.wikipedia.org/wiki/Directed-energy_weapon wave-energy weapons genetic weapons - all for mass destruction geophysical weapons - like weather modification, changing layers of atmosphere  (check HAARP project) psychotronic weapons - Brain manipulation remotely. Of course no one can gurantee these technologies won't reach others who are NOT intended for !! All these I feel are dangerous to human kind.

Apple TV3 - Review of Apple TV (March 2012)

Apple is all about quality products and intutive design. Not so far is Mr.Apple TV. Not sure still why the Internet TV revolution is still not caught up, but there is great opportunity out there. Thought of putting forward my review about latest Apple TV, released in March 2012. (let's call it Apple TV3) Some details which could be interesting for you Size and Weight Height: 23 mm (0.9 inches) Width: 98 mm (3.9 inches) Depth: 98 mm (3.9 inches) Weight: 0.27 kg (0.6 pounds)1 Detailed specs:  http://www.apple.com/uk/appletv/specs.html Some tech details 1080 full HD support, airplay full support even with new ipad , use facility of Apple Cloud etc.. Sleek design that’s small, quiet, and energy efficient. (less than 6W) Video formats supported: H.264; M-JPEG; MPEG4 ..m4v, .mp4 and .mov. Hence youtube, high quality movies easily playable. (Only H264 supported at 1080p) Image formats supported: GIF; JPG; TIF (Great to watch your digital images) Wi-Fi (802.11a, b, g or n) ( 802.

Data visualisation and HTML playground

For those who are working on Web development and data visualisation, below links are very useful. Some are for providing the much needed data visualization techniques, while others provide CSS and javascript integration http://code.google.com/apis/ajax/playground/ http://jsfiddle.net/wkCNm/ http://www.fusioncharts.com/demos/gallery/ http://www.w3schools.com/css/default.asp http://960.gs http://freemarker.sourceforge.net/docs/index.html http://www.w3schools.com/xpath/default.asp http://formalize.me/ http://www.1stwebdesigner.com/css/powerful-css-tools-generators-automate-workflow/   #To test various CSS features http://www.tutorialsbucket.com/draw-basic-shapes-css3-tips-and-tricks http://thejit.org/static/v20/Jit/Examples/Spacetree/example1.code.html  #alernative graphs http://www.visualcomplexity.com/vc/  # visualisation samples

db2 one liners

Some very helpful one liners for db2. If you are a fan like me to execute db2 commands within the Unix/AIX prompt, rather than going into DB2 inbuilt prompt then all commands run on the fly. Much powerful is Unix prompt as you can modify data in whichever way you want. db2 list database directory;    #Lists all databases within the installation db2 list node directory; db2 "SELECT SCHEMANAME FROM SYSCAT.SCHEMATA";  #Shows all schema within the Database Instance db2 set schema myschema01   # Setting schema before execution db2 "LIST TABLES FOR SCHEMA myschema01" | more db2 describe indexes for table <table_name> show detail | tr -s " "   # shows details about the table including primary key and indexes db2 get snapshot for application agentid 228 | more # db2 "force applicatioin (228) "   #Careful as it forces the session 228 out of DB2 db2pd -d myDB01 -wlocks db2 export to C:\CSVFiles\OutputmyTable.csv of del select * fr

db2top utility

Recently I had learnt about a great utility within DB2 to view the dynamic queries and session details.  The utility is called " db2top "   (Careful db2stop will stop DB !!) To access it 1. Login to db2 user..  (say db2iuser1) 2. db2top -d myDB  # myDB is my database name 3. click on "l" key. It will show all the sessions hitting the database 4. Click on "a" key to interrogate a specific session. And enter the session number shown in above screen 5. Press "f" to force the session out. (Be careful). You might need to try twice as sometimes the session might come up again. Enter key is for "action" and "refresh" etc. Ensure that the command is not let run continously, as it takes fair bit of memory in long run. A good quide within IBM   is for command line execution, and also with batch mode options.  

AIX and Unix filesystem commands

Everyone who works in IT industry and with Unix systems should have suffered filesystem related issues. The most common one is the filesystem getting filled up. The scenario is Filesystem is filled up Determine largest files Filesystem is using different mounts. So the files you see are not within the filesystem. But there is a trick to find the largest files within the same filesystem   # Shows the largest 20 files within the same filesystem # xdev will make sure its within the filesystem find . -xdev -ls | sort +6 -nr | head -20   Some other helpful commands in AIX to see the filesystem volume groups and if all disk is used lsvg -o  # displays all volume groups lsvg -l <lvname> # list  (including mounts) lsvg <lvname>  # show details like free space etc

Playing with Tar and gz commands

I was amused by Unix utilities. They are very powerful, but they are tricky for use. Let me note down some of them as they come along. #To tar up *.log in the current directory into a tarball called abc.tar.gz, issue this command: tar cfz abc.tar.gz *.log #untar tar xvf something.tar #To see a list of the files within a tarball, issue the following command: # Helpful as its without untarring the file tar -tzf blah.tar.gz # gunzip -c $file | tar xf -     #AIX # Series of files while read file; do gunzip -c $file | tar xf - done < filelist #If you only want certain directories from the tarball, do this: tar xvzf something.tar.gz */dir.you.want/*  

Unix Search - Search for a keyword in all the files

I know everyone knows how to search for a file or directory in Unix. Have you encountered a major issue and wanted to search for a keyword? Its like finding needle in a haystack. Believe me its very simple in Unix and *nix servers.  Let me call it as "Deep Search" !! Please find the simple command # This will search all the *.log files for keyword "test" # .  will mean all directories under the pwd. Change "." to "/" to search whole of the system. But remember to redirect errors find . -name "*.log" -exec grep -l "test" {} \;

Google Search Options - URL parameters and syntax

  Search where? Operators Web Search allinanchor:, allintext:, allintitle:, allinurl:, cache:, define:,filetype:, id:, inanchor:, info:, intext:, intitle:, inurl:, link:,related:, site: Image Search allintext:, allintitle:, author:, group:, insubject:, intext:,intitle: Directory allintext:, allintitle:, allinurl:, intext:, intitle:, inurl:,location:, source: News allintext:, allintitle:, allinurl:, intext:, intitle:, inurl:,location:, source: Product Search allintext:, allintitle:

Arrow shapes using CSS

CSS is wonderful when it comes to presentation. Its all about how you tweak the colours.  I have managed to created "Single Headed" arrows and "Double Headed" arrows using pure CSS. Very useful if you want to change colours of arrows dynamically based on given criteria.   Please download the file at:   cssArrow The two main components are : Arrow Head, Arrow Body   which will have horizontal and Vertical types.  Below is the full HTML to test out Arrows using CSS.   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8″ /> <title>CSS Arrow Example</title> <meta name="revisit-after" content=" 30 days " /> <meta name="robots" content="index,follow" /> <meta name="rating" content="General" /> <meta name="MSSmartTagsPreventPar

Data visualization and future of having Data

Ever wondered how it will be in next 5 - 10 years with data? Data is the king and as much data as you collect, (don't worry about presentation) there will be a method to interpret it. Your boss might say "Discard the data which is useless".. but DON'T :) Let's see some "wonders of the world"  in data analysis. Of course , google comes here too Google ngram  -  http://books.google.com/ngrams Google ngram data sets ->  http://books.google.com/ngrams/datasets Google public data ->  http://www.google.com/publicdata/directory Worldbank Datavisualizer ->  http://devdata.worldbank.org/DataVisualizer/   Yahoo Visualize ->  http://visualize.yahoo.com/

Google fonts for download

Various Google fonts for you to download. All are Open Source . Here is one sample  (Kaushan script)   Below are the main list   Great font selection tool: http://www.google.com/webfonts#ChoosePlace:select Android font Roboto: https://developer.android.com/design/style/typography.html Huge directory of fonts: https://googlefontdirectory.googlecode.com/hg/

Android Version naming

Google developers are so clever with Android nomenclature!! Everyone took it funny as the names were food names. I recently noticed that each version of  Android versions are in alphabetical order too !! A - Android B -  <>   C - Cupcake D - Donut E - Eclair F - Froyo G - Gingerbread H - Honeycomb I - Ice-Cream Sandwich J - Jellly Bean.  (hopefully)

e-paper epad or epad3?

Well.. I'm disappointed with March 2012 Apple Keynote presentation. I expected an innovation into one of their products, but didn't see any.. Agree that ipad3 or whatever it's called has better backend power. But I can't find anything to switch from my ipad2 to this release. Any idea of companies investing in electronic paper? Wished I could invest all my $1000 available savings into that technology. Hopefully it might turn into another Apple ?! My simple idea is  paper thin ipad .. that's it.  It will replace every single paper in this world.  That's what called as resolutionary !! Waiting for next revolution in post-pc, post-tablet era..