Enjoy working together

Had heard about IRC many times, today I learnt using it with the help of Avneet Kaur, a good company to hangout with.ย Also helped filling her forms and had fun. ๐Ÿ˜‰ Its always useful to sit next to the mentors while working.

Sir, being out of station, has great impact from there too. I always wonder how he manages his time and do everything.

Seems like I am near to the end, then I doubt, if I am? Tried to solve the error, there might be some problem with the versions of django, mysql, haystack or solr. Haven’t got satisfactory reply from mailing-lists. Jasvir is trying to use ElasticSearch. I’ll be very very very happy to see spelling suggestions in the search ๐Ÿ˜€ May be a party coming soon!

A big picture

Yesterday’s error was removed in the morning.ย I don’t know how it happened but pysolr was to be installed again. That small success made me happy. ^_^

Tried to stand back from what I was doing and see the bigger picture. I reread what I had done and what not. Now database connectivity is remaining. Its not making indexes from models.

Seeing a big picture is equally important, when you are lost in details. Currently, hoping for the best results to come ๐Ÿ™‚

 

Redirect your energy :)

These two days disappointed me. Working with Haystack, installing ApacheSolr and pysolr. Some error was there while configuring it with S/W. Reading the documentation again and again, studying from other sites, scrolling down the web-pages, disturbed my mental peace. Haystack is actually a search like Google, supports search after indexing the data. Do I need it? A question arose and stressed me. Then I diverted my mind from stress.

Why to waste my energy on negativity? When I’ve got other things to do? Found a function that imports difflib and finds the closest match for a word entered. Trying to implement it. Hope it will work.

I have a list of tasks today, this search has got the highest priority. Its not letting me do other things. Want to complete it as soon as possible.

Push for what you want!!

Was not able to install ApacheSolr till 3:00pm, it was the problem with its version given in the documentation. I had seen the link was not working, but couldn’t find what was needed. Finally Inder helped.

It has been a good day indeed. Just did what I felt like doing. Looked for all colorful things, pens, pencils. Persued some creative work. Remained happy throught the day or I have learned to remain so? It may or may not be ๐Ÿ˜› Rather it must be ๐Ÿ˜› as the purpose of our life is to be happy ^_^

Again there

Started with ElasticSearch, cloned a repo from Github, it needed Java installed. Due to network problem, JDK was not installed properly and gave dependencies error. It was solved with the help of askubuntu.com.

Installed nautilus-image-converter, came to know about Google search box, that can be added to Django projects, gives results from different search engines in the project itself.

Elastic search is actually a part of Django-Haystack, searched for it, found many links, finally came to official website, the same that was opened the first time, when came to know about Haystack. Strange but true!ย  ๐Ÿ™‚

There are Solr, ElasticSearch, Whoosh and Xapian. Solr seems suitable too. Must go with one at a time.

Turning away..

Came to know that regex will not work for the requirement. They were confusing too! Found some Django search engines, will study them today.

How to reach GNDEC…. Work in progress ๐Ÿ™‚ After using <iframe> tag to embed OSM routing service websites into the page, to make things more clear, static maps will also be added. Sir told us to make our laptop, our pet, for a better output.

Learned to record terminal sessions and changed the name of system. ^_^

How to Record Terminal Session in LINUX

Screenshot from 2013-07-24 00:12:30You may come across situations where you need to copy the output of a script for future reference. For such cases, you may want to record the terminal session to obtain the log file of all the input commands you have entered and their outputs. Here is one way that you can use to record terminal session in Ubuntu.

Open a terminal and install bsdutils

$ sudo apt-get install bsdutils

The usage is pretty simple. To start the recording, you just need to use the command:

$ script -t -a 2> /home/<PCname>/timing.txt /home/<PCname>/recording.txt

The โ€œ-tโ€ flag instructs the script to output the timing data while the โ€œ-aโ€ flag instructs the script to append the output.

Once you entered the command, you should see the line โ€œScript started...โ€œ. Everything that you enter in the Terminal (including its output) will now be recorded. Once you are done with the recording, simply type:

$ exit

to end the recording. You should see the line โ€œScript done,...โ€ that denotes the end of recording.

To view the recording, you can either open the saved file (recording.txt) in your text editor or use the command scriptreplay .

$ scriptreplay ~/timing.txt ~/recording.txt

Wow…Thatโ€™s it. While it is simple, it can be really useful.

Is this helpful to you? What uses can you think of?

“The following signatures were invalid: BADSIGโ€ Error

How to Solve โ€œThe following signatures were invalid: BADSIGโ€ Error in Ubuntu Updates

Ubuntu is quite fond of providing updates on a regular basis, I was expecting loads of updates to be provided by Ubuntu today. The sudo apt-get update command came up with an error:

updateingerrorSolution:

To remove the bad signature error, open the terminal (Ctrl+Alt+T) and use the commands given below one by one:

$ sudo apt-get clean 
$ cd /var/lib/apt 
$ sudo mv lists lists.old 
$ sudo mkdir -p lists/partial 
$ sudo apt-get clean 
$ sudo apt-get update

After using these commands you should get rid of the errors and your Update Manager should be working fine. Enjoy ๐Ÿ™‚

Knock knock!

It was the first day of FEM event. Almost a week of preparations followed by layers of last minute preparations, the event was about to start when I reached, took a quick scan of the seminar hall and went to TCC office.

Windows 8 drives were not opening in Ubuntu, fixed this problem. Watched television today ๐Ÿ˜›

Unable to mount Windows (NTFS) filesystem on Ubuntu due to hibernation?

Couldn’t open Windows 8 partitions in Ubuntu on my system, showed the error ” Unable to mount 31GB volume”.

picTried to mount them on ubuntu, it didn’t work.

Explanation: Why Linux can’t open hibernated Windows partitions:

I was seeing this error because I hibernated Windows instead of turning it off the normal way (in newer versions of Windows, hibernate is the default option).

  • Hibernating saves the current state information to the hard disk and then powers down the computer.
  • Shutting down the computer closes all programs and ends all running processes before powering down the computer.

When I turned off Windows by hibernating it, I was essentially pausing the system and saving all of that information (into a big file called hiberfil.sys) . It also sets a flag in hiberfil.sys to let other Operating Systems know that Windows is hibernated.

Making changes to Windows (ntfs) partition while it is hibernated could be dangerous–it could cause Windows to not resume from hibernation or to crash after resuming. Because of this, the tool (ntfs-3g) that mounts (opens) the partition did not mount it in read-write mode after seeing a hibernation flag. As such, Nautilus, the default file browser, was not able to automatically open this partition–hence the error message that I saw–because it was trying to open it in read-write mode.

Solution: Windows 8

Came to know that there is a new feature in Windows 8 called Fast Startup. If this feature is enabled (which it is by default), Windows 8 does not actually completely shutdown when you choose shutdown. Instead, it does a “hybrid shutdown”. This is something like hibernating; it makes booting Windows 8 back up faster. So, you need to disable this feature to be able to shut it down properly, and be able to mount the Windows partitions. To do this, boot into your Windows 8 and:

1) Open the Windows 8 Control Panel
2) Select Power Options icon from within the Control Panel

pic13) From the Power Options panel, select Choose what the power buttons do from the left column:

pic2

4) Next, click on Change settings that are currently unavailable. You will need to be logged in as an Administrator to change this setting. Then you will notice the setting Turn on fast startup (recommended) will no longer be greyed out. Remove the check box and click Save changes to confirm.

Followed same steps and now I am able to open Windows 8 partitions in Ubuntu 13.04. Hope this solves your issue too. ๐Ÿ™‚