Skip to main content

Posts

Showing posts with the label Tech

How to Add Python to the Windows Path Variable: A Simple Solution

If you've ever installed Python on a Windows machine but encountered issues running Python commands in the terminal, you might be facing a missing Path variable entry. Recently, I solved this issue by manually adding Python to the Windows environment variables. Here’s how you can do it too. The Problem After installing Python, you might open the Command Prompt and type: python --version and receive an error stating that Python is not recognized as an internal or external command. This happens when Python’s installation path isn’t added to the system’s environment variables. The Solution To fix this, follow these steps: Step 1: Locate the Python Installation Directory Open the Windows search bar and type Python . Click on Open file location to navigate to the installed Python folder. Inside this directory, locate the Scripts folder. The path should look something like this: C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX\Scripts (where PythonXX represents your instal...

Erlang on Linux: Configuration and Installation

Erlang is a fast growing language and is used in many key applications. Being concurrent and fast..it is used in many applications where multiple service are required simultaneously.  It can be installed on linux via it package  or  simply from the terminal using : sudo apt-get install erlang I did using the source file from the erlang site. The following steps made me complete the installation: 1>download the tar file. 2> cd to the folder and unzip it. 3> go the unzipped folder. 4> Now, Erlang needs some other files to fully complete installations and generate documentations.   So the following steps needs to be done: sudo apt­-get install fop  sudo apt­-get install libncurses-5­-dev sudo apt­-get install openjdk­6­-jdk sudo apt­-get install unixodbc-­dev sudo apt­-get install g++ sudo apt­-get install libssl­-dev Still, Erlang requires wx libraries so we will do the following: sudo apt­-get install libwxbase2.8 sudo apt­-ge...

Boot problem in Ubuntu dual boot os: Solved

I had been using Ubuntu for quite a long time. Sometimes, problems arise as such like:  Windows cannot boot. or Ubuntu cannot boot. Solving this problem is easy: however it requires you to have: Internet connection. Ubuntu live cd or bootable pendrive. Now lets go through how we could solve this using a software: Boot from the pendrive or cd. Use the Try Ubuntu mode on first page. Connect to the net Open the terminal using ctrl+alt+t and do the following steps: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && (boot-repair &) Now a window will pop up after installation and it will give you the options. Choose whichever is appropriate and it will solve the problem. It also provides link to the error log file from where you can know more of the problem or ask the community about it. .......So don't worry next time...just do the steps listed above...If it does not solve ...leave a com...

How to create a bootable USB pendrive in Linux

If it was windows, it would be much easier ...for we have the universal USB installer. In Linux, we can't use that: however, we need not worry, guys have done a great job by creating a much easier tool to do the work. The tool is called gparted. It is a nice GUI tool to do our work. So lets see how we shall do it. >Open the terminal . >Now type: sudo apt-get install gparted ......This will install the tool ...well and good if you had it from before. >Now type: sudo apt-get install-3g ( gparted installed this as default for me...just see if it did for you). >Now open the tool via: System>Administration>Gparted Partition Tool >Now you are almost done....Click the File and choose the drive for the particular USB. >Right click on the drive when it is enlisted. See Manage Flag menu and click to enable boot. >Now go to Partition menu at the top panel and format the drive as ntfs . This will keep the work as pending operation ...click the cor...

How to find the difference between two files from windows shell

Well I was just wondering how could I see the difference between two files in windows. Searching the net, I saw some softwares  that would do the job for me..But I wanted simple and fast not so sophisticated ... I found out we could do using a simple tool...fc..from the DOS prompt. FC is a command to view the difference of two files or set of files.. So the steps are: 1> go the directory where the files are.. 2>type  fc first-filename second-filename ....and there you go..You will get the result each different section divided by line of stars.. ...Its simple ...right?? I love it....The following explains the full usage method ------------------------------------------------------------------------------------------- Syntax: FC [d:][path]filename [d:][path]filename [/A][/C][/L][/Lb n] [/N][/T][/W][/(number)] for binary comparisons FC [d:][path]filename [d:][path]filename [/B][/number]  FC reports differences between the two files you specify. FC firs...

GIT : Terminal Shortcuts..to help you..and us..

SHORTCUTS Key/Command Description Ctrl + A Go to the beginning of the line you are currently typing on Ctrl + E Go to the end of the line you are currently typing on Ctrl + L Clears the Screen Command + K Clears the Screen Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. Ctrl + H Same as backspace Ctrl + R Lets you search through previously used commands Ctrl + C Kill whatever you are running Ctrl + D Exit the current shell Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it. Ctrl + W Delete the word before the cursor Ctrl + K Clear the line after the cursor Ctrl + T Swap the last two characters before the cursor Esc + T Swap the last two words before the cursor Alt + F Move cursor forward one word on the current line Alt + B Move cursor backward one word on the current line Tab Auto-complete files and folder names CORE   COMMANDS cd Home directory cd [f...

Macbuntu theme destroyed my Ubuntu

I have been using Linux on my PC using dual boot. This time I was using Ubuntu 11.10 ultimate edition.  As like many windows users ..I have been tempted my Mac-OS..and I have been using Mac theme for my PC too.. Recently I got too ambitious and I went on to install Macbuntu theme for my Linux ...(I thought I could be satisfied than I did on my windows)...Lo....During installation ...It got too complex...many downloads...and that too ...unverified..... After it was half way through ..the system tray could be seen...but it was not functioning at all... .....It was going too frustrating ...so I did a force shut down...(It was the last time I could see my GUI ...)...After this, I could never go back to the gui...All it was left was the tty..(and what much could we do in there..??).. I am careful now..I won't install any theme again...  

Linking to a hosted Cloud JQuery library is better than localized link: The Reasons

Well, we all know what and how JQuery has revolutionized the UI design and development of websites and web applications. Given its robustness for browser support, familiar syntax ,built-in animations and  not impact content gives it immense credibility and avenues for use in many great applications.. In its development novice developers sometimes makes the mistake of linking the lib from their own local site..However this is wrong ..which I can say confidently at least for the case of deployment of your app. The reason is: Using Cloud Scripts Keeps Your Pages Fast Linking to script libraries such as jQuery from an internet location  (such as http:/ /code.jquery.com/jquery-1.5.2.min.js in the HTML here) is a way of using a content  delivery network (CDN). When many developers link to the same location for a script, that script is more likely to be cached by your readers and load more quickly. Also, your browser may have a limit of as few as two connections to...

Android Studio Windows installation problem solved.

Well..It has been almost fascinating to try the new IntelliJ IDEA  based android IDE on my windows machine. It has been not been working since I installed it. I followed all the Stackoverflow and other blogs....regarding my problem... My problem was:  >I was using JDK 1.6.21...which probably was too old for the studio to get up with. >I did not add the JDK_HOME... ............I downloaded the new latest version of JDK and finally got the nice new thing running.. So,,update your system and don't forget to add the JDK _HOME directory to the system path....Its gonna be all ok then.. way to goo...                

MongoDB: Setting up and basic operations

Lets talk about some starting points of the mongoDB.. First..installation is easy as easiest: >Just go to the Mongo site and download the whichever package is needed for your system. Though it is recommended to work with th 64 bit version for production ..fear not you can do with any package that suits your system..remember...the version with the even no. in the middle means the stable release for the time. > Now extract the compressed filed and create a folder in a location of your choice. In the uncompressed folder..there will be bin folder..copy all its content to the folder you just created...And there it is the starting point for working on  mongodb. > When you have done all the above ...just open the command shell and go to the directory and type mongod...the mongo shell daemon. and it will start the mongo server. > You can type db( It is the command which you will use in every operation for it starting point for every command). This will print test...whi...

MongoDB: The pioneer of NoSQL....Easy and really quick to learn..

I just signed up for 10gen free class on MongoDB...and wow..its so easy and interesting to follow. I wondered what was all this buzz about NoSQL...but seeing it and coding it on my own has really made me believe that it is going to grow larger and more effective over the years to come. One thing that sets this new trend apart from others is its ability integrate easily with the client code: It can be just accessed from the code using the OOP approach that we are all accustomed to( I mean if you had been programming!).. Its schemaless ..meaning it does away with all those CRUD statements that we all use for RDBMS..though it has an adequate means of addressing all of that through a simple syntax and various APIs it provide for the same. One thing that it is critical about is the lack of: >Transactions >and Joins Still it has enough for all the uses it is meant for..where you would really have to do a big maintenance of bank accounts spanning over many countries...say in...

Building firefox code base on windows: long process but worthwhile..

I have always been a firefox fan...right from the start...It always kept me wondering what makes this good piece of software work so well until I downloaded the source code and built it on my own.. I required the following: 1> Visual Studia 2010 2> Directx 3> Msys 4> Windows SDK You can download the source code from the mozilla website..Once you are done with that .. You can get all the detatils from the website on how to build the code . I had a simple problem...the Python path problem.. I had installed Python earlier and the build tool uses the Python embedded in the Msys... Once I removed the original Python path from my environment variables and replaced with that of the Msys ..It was all done.. The final part of build process gives you a firefox nightly .although it takes about 4 hours in my core 2 duo machine...Its such a neat and nice ..you would love it.. Thanks to the firefox team ...and all the supporters :)) 

Blue Screen: Problem and the Solution

I have just recovered from the usual blue screen problem with my laptop. I just thought it was going to be an "All Over Thing" for my hard drive...So I went to hp repair store-(www.laptopstore.in) ...man..they are stupid peoples ...commercials...having no knowledge nor commitment to solve problems. I came back ...and did these simple things . >Sanitized my hard drive through BIOS screen.. >Self tested the hard drive...aha...now it was working for me ...(probably those guys don't know about). Then I reinstalled my OS both Windows and Linux..as I usually do.. Now Its working..all fine...only thing I miss are those files I lost... I saved me huge..Those guys had told me to change my hard drive ... Thank God...I didn't .. Always test hard drive for error constantly and keep up the anti virus.... Adieu..

How to install Google Chrome on Ubuntu

I installed Google Chrome today. Its easy, I just followed the following steps: 1> Download the .rpm package from the google chrome site. 2> Once that is done ...cd to the directory where it is located. 3> Now, type: sudo dpkg -i google_chrome.rpm( replace google_chrome with the actual file name) 4> It may not be done...due to lack of certain files...so do the following:     type: sudo apt-get install -f 5> There you go...you can get the chrome via Unity...so launch it and do the nice works.. /> Cheers...

Ubuntu Problems solved for installing new softwares.

I had a problem in Ubuntu of not being able to install a software. It gave me the following errors: E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   or like this one:   E: Malformed Description-md5 line; includes invalid character 'fc1f7600accbcc"07ef9954ba3306c14' E: The package lists or status file could not be parsed or opened But it was an easy problem to solve: The reasons for the problem arise from failed update attempt or may be when you try mess around with /var/lib/dpkg/status     Or may be you have too many sources in your repo,,,,that could also be a problem. To solve this is simple,,just do the following steps:   1> Open the terminal with ctrl+alt+t; 2> Type: sudo rm /var/lib/apt/lists/* -vf  3> Now type: sudo apt-get ...

Android: Understanding Intents and starting activity from it..

Basic understandings of Android Intents and starting activity from it.. .................................................................................................................... Toast and its simplest work to show the text: Toast.maketext(getActivity(),textview.getText().toString(),Toast.LENGTH_SHORT).show(); Starting Activity: >startActivity(i); //if i is a defined Intent object already; >startActivity(new Intent("name of the class from manifest.xml"); >startActivity(new Intent(this, "name of the java class"); Intents in Android and its invocations  1>Intent i = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://website")); startActivity(i); 2> Intent i = new Intent(android.content.Intent.ACTION_VIEW); i.setData(Uri.parse("http://website")); startActivity(i); **************** Uri.parse can take values as such to be shown: Like :> geo---for map application or activity; tel---...

Why study of algorithms are still very important in computing

Algorithms is the mother of computing science(If Mathematics is the father!!). The very first concept of computing was the algorithm on which depended the first simple operations and all that followed.              Yes, it was algorithms which preceded all the fancy big and small systems and electronics that has enabled us to visualize  all the fascinating results it yields according to it.  Derived from the name of Al Khwarizmi, the great mathematician who invented algebra, it lays down the basic step of realizing the solution to any problem being dealt. One great thing about it is that it involves all the mathematical details of the problem and gives a worthy information about its speed and space complexity. And hence, it provides a summative look on how the problem is going to be solved and all its estimates for the operation. A great thing one might want to know is that " Good algorithms are better than  Supercom...

How to compete online programming competitions

It so happened to me this month that I broke the final barrier of not being a rated member of Codechef and Codeforces.  It has been a bit of time since I registered at both the reputed online programming platforms. Though I have been practicing some problems, still it didn't occur to me to make it a point when it came to the contests on this two sites- The coveted Long and Short contest of Codechef and regular contest for Codeforces. About how I did....Nothing so extra ordinary because all it needed was just one thought and determination that "I had to do it this time..at all cost". It paid off and now I am rated in both the platforms. Its a small step yet it is a big leap because it makes me motivated in all that I do now and  yes, I can say that I am more confident now than I was and this will help me in doing better. If there is anyone still not being a part of these things, I sincerely invite you to it. Not just that we can improve our skills but that it makes u...

Machine Learning: Creating Efficient Intelligence

Advent of Machine Learning  Artificial Intelligence has been used extensively in many applications over the last 3 decades. Areas of prime importance such as manufacturing, research, healthcare,finances and banking has been using AI on an extensive and intensive basis.      Over the recent years, researches has been conducted on the sidelines of AI to make its application much more productive. Things such as Data Mining popped up following the internet explosion and took a very pleasing growth proving its use in industrial scale applications.      One question has though  been asked since its inception:"Whether the machine themselves can be made to learn on its own?". This lead the researchers to conceive the idea of "Machine Learning",where the machine itself will learn from its own experience and derive appropriate action for a thing in future based on this, without having to write any program necessarily for the same. This almost...

Unable to open drives on double-click: How to solve it

Sometimes we get a buggy thing happening with us when most of our USB slots are filled up and we try to open a disk-drive by double clicking and we can't open except using  right-click options.  Well, many post and many suggestions go for checking the virus-stuff in the USB drive providing links to many third party tools and other anti-virus options. On the contrary of all these superficial tweets....I found my problem solved through a simple handling with the computer management tool for disk management. Before jumping on to the steps for solving the problem, I would like to highlight that the main cause for this problem is due to external disk(s) connected with the system bus. Each disk drive is allotted a unique letter from C - Z. Sometimes due to multiple connection, there may perhaps be a collison for the names and the system cannot recognize them. So,it does not allow it to be open through d-clicking! How to solve it.. You must be logged on as an administrator ...