Skip to main content

Posts

Showing posts with the label Technology

Chromecast vs AppleTV vs Raspberry Pi vs Roku vs Others (2015)

Never waste your money on buying SMART TV's :)  But buy one of these to make your LED/LCD tv smart and control with your phone/home automation Let's compare between  Chromecast vs AppleTV vs Raspberry Pi vs Roku vs Others in 2015. Previous version comparison can be found here Chromecast 2 Google came with a new design for Chromecast 2, with a much better antenna (802.11ac) and perfect price ($35) Built in apps like HBO, Spotify, Youtube, Netflix (but all its competitors have these apps) Though aesthetic is much better, In my opinion it doesn't matter as it sits behind the Television Much improved casting from your phone, Laptop.. almost any devices with a cast option Also I liked that it doesn't have a remote, coz you can control from your phone Lacking power to play games Apple TV4 Coming with Top Specs and a cool Remote Control (Though I feel your iPhone is more than sufficient), Apple TV4 released in 2015-September boasts of (Price around $150

IMDB API's and URL based search parameters

Advanced Search in IMDB I'm a big fan of IMDB and everytime if you really want to do detailed search, you need to use IMDB Advanced Search . But this is not practical each time, but seems you could tweak IMDB URL's to do magic searches. Few examples below. If you look the search tag, everything is self explanatory Most Popular English/Hindi-Language Feature Films Released 1 January 1980 Or Later With User Rating Between 7.5 And 10 and At Least 500 Votes http://www.imdb.com/search/title?languages=en,hi&num_votes=500,&release_date=1980-01-01,&title_type=feature&user_rating=7.5, Highest Rated Feature Films Not In "watchlist" Released 2011 Or Later With At Least 5,000 Votes http://www.imdb.com/search/title?num_votes=5000,&release_date=2011,&sort=user_rating,desc,&title_type=feature&my_ratings=exclude&lists=!watchlist IMDB Top TV Series - Highest Rated TV Series With At Least 2,000 Votes http://www.imdb.com/sea

Certification authority and applying certificate to your domain

Generating a Certificate Signing Request and applying the certificate is  very frequent. Some companies require 2048 bit signatures. The following steps will create certificates with 2048 bit and later apply to relevant httpd (apache) server. Certificate Hierarchy Creating a CSR Values Country Name (2 letter code) [AU]:GB State or Province Name (full name) [Some-State]:London Locality Name (eg, city) []:Croydon Organization Name (eg, company) [Internet Widgits Pty Ltd]:My company Organizational Unit Name (eg, section) []:diaryfolio.com Common Name (eg, YOUR name) []:subdomain.diaryfolio.com Email Address []: Things to remember In most cases, ensure "Email address is left blank". But consult your certificate signing authority on this. Ensure "Common Name" matches exactly the "ServerName" specified in your httpd.conf (or httpd/conf/extra/httpd-ssl.conf) Actual Creation Below creates CSR with 2048 bit # CSR Key generation # Generate a

Dawn of Satellite Communication (Sat phones)

With the aftermath of MH370 flight, it has become clear how important is to deliver communication at a much robust & reliable levels. It is essential to use satellite communication as primary mode rather than tower/cell based telephony. inmarsat isatphone2 coverage Some of the ideas we want to explore are Crowd funded satellite communication Reduced cost of satellite based communication More competition among satellite based operations Apple and Google similar companies into Satellite phones manufacturing and publicity Inmarsat IsatPhone v2 Highly dependendable (reliable & robust) phones Satellite coverage upto 99.9% of land area

Chromecast vs Miracast and Miracast devices review

Many of you would have seen Google announcing "Chromecast" device across many countries. You might also have seen references of "Miracast" too in many blogs. So what are they and how they differ? Chromecast is a hardware device (dongle shaped) developed and marketed by Google. The device plugs into the HDMI port of your television/projector and, plays audio/video pushed via Wifi from a limited set of support devices and softwares/apps. The apps are limited and following link shows supported apps . Miracast is a wireless screen-mirroring/casting standard using Wifi. This can be equated to bluemooth media transfer which you might be familiar already. Miracast thus is NOT a hardware, not a software , but just a standard so that corporations/developers can build their devices (laptop, smartphone, tablets etc..) to push media content to your Television or projectors. Miracast can be better compared to Airplay rather than Chromecast . Thus Chromecast and Mi

Create your own United States Passport , India OCI photo using GIMP

Folks, this is in continuation to existing article of how to create UK passport photo (3.5cm x 4.5cm) using GIMP . Please read that article for full understanding of how to take photo/lightings etc. American Passport Photo requires 50.8mm x 50.8mm (2" x 2") photos. So do Overseas citizen of India application ( OCI photo ). As you are all aware, GIMP is very powerful too for image editing.  This article provides a very cost effective way to print   (2" x 2")  photos from nearby print enabled stores (like Boots in the UK etc..) for less than 30pence (40 cents approx) !!  For further details on United states photo requirement, please read this article Pre-requisite Read main article of taking photography and software requirements Step by step method of editing photo From your gimp “ Toolbox ”, click the “ Rectangular Select ” tool. (Ensure that the ”Fixed Aspect Ratio” is unticked).  Draw a small rectangle surrounding your face. In the left hand-pane, choos

Hadoop Install Steps Tutorial for beginners

Many of you folks would be trying to install Hadoop (v2.3.0 & above) and its components to learn/try-out into the world of big-data. This Hadoop installation is done in 64-bit Ubuntu machine which is hosted in Windows 8.1 machine using Virtualbox (type 2) . I have allocated 3GB of RAM and 2 cpu-cores for Virtulbox Ubuntu which is pretty enough for " Pseudo-Distributed Operation " (aka Single Node Cluster) of Hadoop. Hadoop Installation on Ubuntu : Guide Prerequisites JavaTM 1.6.x  or above ( I used OpenJDK 1.7.0_51 Java ) ssh, sshd,  root access Hadoop 2.3.0, Hadoop 2.4.0   Environment and User setup Steps are shown in greyed boxes and can be copy pasted.  Install java (JDK) from Ubuntu Software Centre.  Locate installation path and softlink to a simplified location. (Mine was installed into  /usr/lib/jvm/java-7-openjdk-amd64/ ) # Install Java 7 JDK version sudo apt-get install java-1.7.0-openjdk-devel # creates a java folder for future u

Intranet Single SignOn (SSO) and Trusted URIs for locked Firefox

Firefox can be customised to any extend using config files. Hence your corporate admin would be playing with certain files as mentioned in this post  (and this ). In Summary, they edit "local-settings.js" or "channel-prefs.js" file. They add an entry to link to a mozilla.cfg file (or any config file), to put all the settings. pref("general.config.filename", "mozilla.cfg"); You could manipulate the "mozilla.cfg" file of your own (but next update from your company would wipe it down) or override those updates. A  simple way to update & enable Single Sign-on on my Company's internally locked firefox.  Steps to follow.. about:config Search and add/edit following "network.negotiate-auth.trusted-uris" =  "google.com,sso.department.abcd.com:443"      #<list of your exceptions comma separated> "network.negotiate-auth.delegation-uris" =  "google.com,sso.department.abcd.com:443"   

Arithmetic/Math calculations using shell script & Perl

Unix Shell scripts are perfect when it comes to simple automation tasks. But the in-built calculations are quite poor compared to rest of its functionality. The main issues I've faced using out-of-box shell script functions like expr, bc, echo are Unable to calculate decimal places correctly Error handling very poor (even divide by 0) and goes out of control. Hard to control precision Escape characters and regex increases complexity with formula Object Oriented programs like Java/Python/.NET are excellent for arithmetic calculations. But this involves another level of coding and program installation. The trick I used is to use PERL which is built in almost all *nix distributions. Some of the advantages of using PERL within shell script are Easy to embed Perl commands into shell scripts Most of *nix distro have PERL inbuilt Reduced regex or escape character usage Can put formulae into config file and can loop them into the shell script precision, error handling

cURL-Siteminder Automation (Automating Authentication)

I have discovered that cURL is intelligent than humans !! cURL is surrounded by a huge list of command-line options which makes it even powerful than browser itself Scenario in our company Siteminder protects web-pages and web-services under particular FQDN/realm Siteminder integrates with SSO/LDAP. Hence a Userid/Password is always displayed when u enter our FQDN We wanted to automate data collection and measurement via automated mechanism and cannot bypass siteminder security Some Definitions Siteminder Realm - A domain which shares an authentication database and servers. There is a single name-space for principal name/instance pairs within a realm. A realm is also a logical collection of clients and servers registered in the database. SSO - Single Sign-on by various mechanisms. We had One time password (OTP) also in our devices which needs manual entry as its tied to a human user. How it can be achieved cURL can do the magic !! Install cURL (hopefully most of *

Putty Tunnels and Accessing remote IP blocked via firewall

This article will show step by step instructions How to setup tunnelling in Putty . This is extremely useful if a port is not opened over firewall but you can hop to a server with access and from there you can hop to another and so on.. Essentially it forwards port if you have access to atleast one port. Create a new SSH session - and save it. And click on load to load the settings. Choose the server and port  where you have already got access and firewall works. (eg.  ServerA, Port: 22) Select Tunnels from the Left Menu, specify the Source Port and Destination: The tunnel is created between the REMOTE UNIX box and your local machine (localhost). So, the source port will be the port on the REMOTE UNIX box  to which you want to talk to at a specific port which you can't access (eg Port 37150). And the destination will be your localhost, which will act as the other end your tunnel session [ad#ad-3] Click Save after selecting the"Session" Open the saved sessi

Google Chromecast vs Raspberry Pi vs Apple TV vs Roku vs Cubieboard (&others)

Let the "Living Room" media entertainment start ....  Who will be the winner? Dont know, but surely, everyone loves to have a bite including samsung, htc, lg etc..   Let's try to compare the strategy , specifications and Tech Specs of Google Chromecast , Raspberry Pi, Apple TV and other less known brands For an updated list for 2015, please visit this link Apple TV  I have owned Apple TV3 from when it was released. Cost varies around £60 - £100 in the UK from various sellers.  Apple TV3 is very powerful at time of launch. A5 chip, Wi-Fi (b/g/n), HDMI, 1080p full HD, Airplay support  ( Full Specs here ) within Highly restrictive and till now NOT able to jailbreak AppleTV3 (at time of writing). Very limited set of inbuilt apps unless jailbroken. This would feel restrictive for advanced users and for poor apps (like Lovefilm) which doesn't have airplay support.  In Summary, AppleTV requires more of an apple Environment. You could buy mirroring softwares like

VMware - Ubuntu - Git - Installation experience

I was trying to install Git into a *NIX system to for testing purposes. Hence the overall steps included Installing VMware into Windows XP (Host) machine Installing Ubuntu (Guest) into VMware Sharing Folder between "Host" and "Guest" machine Proxy protected using username and password. Installing "git" into Guest virtual OS Just thought of noting down the issues I faced VMware settings and Network Adapter I have chosen 20GB hard disk space and 1GB memory (RAM) for the virtual machine.  I've disabled Floppy from the hardware list.  Choose "NAT" in Network Adapter and share host's IP address Ubuntu Installation and 3D acceleration Issues After installing Ubuntu 12.04, 12.10 and 13.04 (tried all), I found that Ubuntu desktop showed blank with no Icons. The desktop had no visible sidebar nor any menu options. These were enabled and active but corrupted and blacked out.   The fix is to disable "3D graphics" option within VM

Firefox - Remove slow and wave effect from high resolution monitors

I am using laptop (with no special graphics card, but only inbuilt) and extending it to external monitor. The external monitor is high contrast and supports upto 1920 x 1080 (full HD) resolution. When Mozilla Firefox is opened in this high definition Monitor, it becomes very slow and wavy.  The dragging effect is too much and discourages from using Firefox !! A solution to this is to "Disable Hardware Acceleration" within Firefox settings. To do this Firefox -> Tools -> Options -> Advanced -> General Remove the "tick"  from (Uncheck) "Use Hardware Acceleration when available" Firefox fix has been tested on Samsung SyncMaster BX2240,  Syncmaster 2443 monitors  Advanced Users about:config   -> layers.acceleration.disabled  -> change value to " true "

Putty Session automation and portability

Hope you all have "Putty" as your favourite ssh client? For me too..   But sometimes, I felt there are some issues when you are working with 100's of servers and multiple locations.  This article will guide you to achieve Putty portability: by storing sessions in files rather than in windows Registry Automate creation of Putty sessions:  No more manual entries one by one Consistent coloring of Putty sessions for team Consistent naming conventions for Putty sessions "Keepass" to putty integration: Password management and automated login Use "SuperPutty" to allow multiple putty sessions in a single Tab Pre-requisite   Full package available to download at end of this document Basic knowledge of coding. Overall understanding of tools Portable Putty: Ability to store sessions to file ( http://jakub.kotrla.net/putty/ ) Optional: AutoIT ( http://www.autoitscript.com/site/autoit/ ) : For automation purpose in Windows PC's. (Alternatively

Keepass Password Safe - Bulk Actions using field references

Keepass password vault and the simplicity of the tool are essential if your day to day work. But I always encountered problem when it came to bulk actions; especially when passwords were the same for a set of servers (group) Bulk Actions on Keepass To do bulk actions (mass batch changes) , it is always advisable to have your list organized into groups. So that in future you can make it more granular. Below is a sample to reference a single master password for a group of NON-PROD Unix Servers Create a MASTER entry into the group.  (eg  MASTER_NON_PROD_UNIX) Put your group password into this entry Edit the individual entries which you want to reference this MASTER entry Within the Edit Window -> Remove any entries from "Password" and "Repeat" fields Within the Edit Window -> Tools -> Insert Field Reference -> "In password Field"  Select the MASTER entry from the list. Identify source entry by "UUID"   , Source field to refe

Windows Defender Errors and solution

If you are using Windows 8, you have got Windows Defender for free. This is one of the best protection programs available for home and personal use and replaces Windows Security Essentials from Windows 7 and previous versions.  (Please see  http://www.techsupportalert.com/best-free-anti-virus-software.htm  ) Recently I've faced issues with Windows 8 - Windows Defender automatically not downloading the update files. I thought it was related to updates not working.  The fix mentioned in Microsoft Website   is not suitable for Windows 8. The easy way to fix is Go to Control Panel  (Windows Key + R -> control ) In System & Security -> Find and Fix Problems Fix Problems with Windows Update Run and it should fix automatically Try Windows Defender update once again

Windows Remote Desktop copy-paste workaround

Hope many guys had issues with windows remote desktop and ability to copy-paste items from your local machine to remote desktop? This guide shows how to fix if windows remote desktop copy-paste NOT working Workaround Connect to the development box using remote desktop  (or alternatively run  mstsc from run option) eg. 11.12.21.33 Put in your credentials and login to the Windows Server Verify if clip is disabled ######### Below steps in Windows Server ############ In Windows Server -> Start -> Run -> cmd   to initiate the command prompt Type in .. reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp" /v fDisableClip The output might show fDisableClip    REG_DWORD    0x1 This means the clip got disabled. To enable fDisableClip ######### Below are the Actions in  Windows Server ############ Start -> Run -> cmd -> regedit Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Ser

ssh equivalent of telnet

We will look into a method to do ssh equivalent for telnet You guys must be familiar with running SSH. Using Standardport it would be ssh <serverIP> If you want to run ssh on a non-standard port it is ssh -p <portNumber> <serverIp>     #eg    ssh -p 5443   10.112.12.13 But recently many Admins started removing "telnet" from *NIX machines. Previously Telnet was used to check if the remote machine was listening to a port and the connectivity. We used telnet as below telnet <serverIP> <portNumber>  #eg   telnet  10.112.12.13 5443 You could simulate telnet using ssh command line. Though SSH is a protocol and not a debug tool, we could do some tricks.The equivalent of above telnet would be ssh -vv -p 5443  10.112.12.13 ssh -p <portNumber> <serverIp>  telnet <serverIP> <portNumber> ssh -vv -p 5443  10.112.12.13

Keystore Errors and possible causes

You might have played with the keystore and java security objects many times.Some of these errors happen when you install it first time # Java's default cacerts password is "changeit", unless you're on a Mac, where it's "changeme". # Better to execute it as root, hence sudo su sudo su - -c /usr/java6_64/bin/keytool -import -trustcacerts -file /tmp/ServerCertficate.crt -keystore /usr/java6_64/jre/lib/security/cacerts -alias diaryfolio_Certificate #No need of any password while viewing (Just press enter) /usr/java6_64/bin/keytool -list -v -keystore /usr/java6_64/jre/lib/security/cacerts   >/tmp/java6.abc Common Errors 1.  Keytool Error with Java lang Exception  keytool error: java.lang.Exception: Input not an X.509 certificate This may be caused due to - Not specifying an alias name correctly? - Space or incorrect blanks - Check in the certificate (.crt file), if there are any headers or footers before —–BEGIN CERTIFICATE—– or a