Skip to content

about:sleep (or lack thereof)

about:sleep (or lack thereof) published on No Comments on about:sleep (or lack thereof)
wp-1472924260023.jpg
I’m kind of embarrassed to admit this but this is the best time I’ve manage to track so far.

One of the most useful things for me with the Xiaomi Mi Band is the sleep tracker. I check my sleep data pretty much every morning and it helps me decide if I’ve had enough sleep the previous night and what to do if when I haven’t.

Something I always knew for a long time is that I’m usually not having enough sleep at night, and I’m not entirely proud of it either. I find it much easier to concentrate at night because it feels much more peaceful and calm. While some of you “early to bed early to rise” types would struggle to understand this, I’m sure the night owls would totally get this.

But whatever your sleep preferences are, there’s one thing that we should all agree on; there are some serious health concerns when you are not having enough sleep. Seriously, Google it right now! You’d find a ton of research that explains how damaging lack of sleep can be… I was actually going to include links to some of the articles I read regarding this in the past, and googling to find those flooded me with a bunch more. I read a couple of those and it was so scary, that instead of finishing this post last night around 12am, I went straight to bed!

Anyway, I’ve been tracking my sleep for a few weeks now and I now know that I need to improve. Don’t get me wrong, I always knew that I’m not having enough sleep, I just didn’t have the numbers… or I was just lazy to actively measure my sleep durations. This is why the Mi Band is so much helpful. It does everything for me and now I know that I usually sleep between 3 to 5 hours at night. Around 3 if I stay up too late… and just over 5 if I come to bed a little “early”.

Now that I have some clear idea about how much sleep I get and what to do to improve it, ย I have one less thing to worry about in life. And honestly, if you see my numbers you’d see that I don’t really have too much to do to fix my sleep habits. Since I work from home pretty much all the time, I have the freedom to sleep anytime I want and get up anytime I want to. Some of you who has to get up at a certain time because you have to commute to work would think that It’s harder for you to improve your sleep, trust me, it isn’t! I can argue that it’s actually harder for me because I lack that push to have a fixed sleep schedule. And I tend to stay up too late and for some strange reason, get up earlier than I should.

My point is that whether you have the freedom to choose when you wake up, or you don’t, you’d almost always have some way to allow yourself to have enough time to sleep (If you don’t, You should change whatever you are doing. Because you are probably better off alive) This is something I’ve personally been neglecting for a long time and something that I am planning to change.

So how do we do this? Simple, just have a way to measure your daily sleep habits and act accordingly, that is to get your daily schedules sorted out until you have a minimum of 6 hours (Maybe 7 depending on how you feel about it) for sleep. I highly recommend you getting some sort of a sleep tracker because it has helped me so much. I’ve tried a few android apps sometime back and it wasn’t very helpful for me. Part of it because I don’t feel too comfortable keeping the phone so close to me on the bed, and I’m also not so certain about their accuracy. So get yourself a proper sleep tracker (after all, $20+ for a chance at good health is a killer deal =) )

Once you know how much sleep you get (or how little, in case you are like me) Decide how much more you need to get in order to have a healthy amount of sleep and prepare a schedule.

And most importantly, try to stick to your sleep schedule as if your life depends on it because it most probably does!

~SeeJay

Messenger app only working on WiFi?

Messenger app only working on WiFi? published on No Comments on Messenger app only working on WiFi?

I’m a huge fan of the Telegram Messenger. I’ve been using it for a couple of months now and it’s nothing short of amazing. I have it installed in almost every device I use. I kept trying to get Randy and Chanux to switch to using it and even managed to finally get Chanux to set it up on his android but I don’t see him using it much. Randy kept disappointing me as he usually does these days and simply refused to try it (he also refused to watch Star Wars, so yes, my dear Internet, I think we can safely give up on the guy now).

Never_seen_Star_Wars

Anyways I didn’t really write this blog post only to talk about Randy and his awful tastes. About a week ago I noticed that Telegram stopped working in the background while on mobile data and only started working while I’m connected to WiFi. This was really annoying because more than a couple of times I missed all my messages while on the road only to realize that Telegram was offline during my travels. When I get back on WiFi Telegram would notify me about all the messages that I didn’t receive during the day.

This obviously looked like a problem with my data settings that would restrict Telegram from using any mobile data and to my surprise it was all set to normal. Then I thought it was a restriction from the Power saving mode in android and that was also not the case.

A quick search on google led me to a bunch of forums that showed this is not just a problem with Telegram but also happens to be a problem common to a lot of apps that uses background data. And none of them seem to have solved the issue.

I kept looking through the threads and found one suggestion that finally worked for me. It was to reset all app preferences in android. This looked crazy at first but after trying everything I gave up and just did it, and guess what! Telegram now works well on mobile broadband.

So if your messenger app is not working and nothing else works you can do the following:

Go to Settings -> Applications -> Applications manager

Select Reset app preferences from the “MORE” menu and you’re done.

reset_app_preferences_android

Be warned though. This would reset the preferences for all the apps in your android phone. So only do this if nothing else works for you.

This trick should also fix apps like Slack, Snapchat, Viber or any other app not working on mobile data.

~SeeJay

Using Huawei E220 HSDPA modem in GNU/Linux

Using Huawei E220 HSDPA modem in GNU/Linux published on No Comments on Using Huawei E220 HSDPA modem in GNU/Linux

If you’ve been following me on twitter you already know that I got a mobile broadband connection. But if you don’t know it yet, thats a good reason you should follow me on twitter. Anyways! the modem I got with my connection is the Huawei E220, And I’m very happy to say that it works perfectly fine under GNU/Linux. I was actually planning to write a blog post on that but was busy by some projects done with our local kde developer siraj ๐Ÿ™‚ (nothing related to KDE by the way)

Few days back I stumbled upon a blog which the blog owner has written a post on switching to GNU/Linux. One of his consernce was getting his Huawei e220 working on Linux. Well, of course its a piece of cake, but I could risk a new linux user steping away from linux because he had a small prob with his 3g modem ๐Ÿ˜› so wrote this comment on his blog to realize that I almost wrote a complete blog post on how to get it done. And decided that I should publish it on my blog so anyone else having problems with 3G connectivity on linux can solve them. so here goes my mini tutorial. Btw, I did some adjestments to it so it fits in.

*******************************

E220 works perfectly with wvdial on ubuntu Hardy Haron.
Here are the stepsโ€ฆ
(1) Plug in the modem and run
sudo wvdialconf
(2) Then edit the wvdial.conf fileโ€ฆ
sudo vim /etc/wvdial.conf Uncomment Username and Password lines in wvdial.conf and add the following to the end of the file “stupid mode = yes
(3) Save the wvdial.conf
(4) run wvdial to get connected ๐Ÿ™‚

If you are using ubuntu 8.10 then the Graphical Network Manager recognizes the modem and connects you within seconds.

I usually use kppp with my Slackware installation and it runs really well too. I prefer kppp over wvdial because it even logs the data usage of the modem.

*******************************
Thats all folks! if anyone needs help, I’m just a blog comment away, or just send me an @message on twitter and yes I’m the seejay on twitter.

~seejay~

Get Atheros 5007eg working under GNU/Linux

Get Atheros 5007eg working under GNU/Linux published on 14 Comments on Get Atheros 5007eg working under GNU/Linux

The Wifi card in my new ASUS lappy was Atheros 5007eg and unlike intel’s wifi cards, Atheros doesn’t seems to be working “out of the box” in any Linux distributions ๐Ÿ™ But you can use MadWifi tools to get them working right??? well, thats what i thought until i tried madWifi, I’ve seen many success stories on the web which madWifi worked for Atheros 5006 cards but apparently 5007eg is relatively new and doesn’t seems to be working with madWifi “yet”
After typing sudo iwconfig in the Terminal here’s what i got…

lo no wireless extensions.

eth0 no wireless extensions.

So i decided to do it the other way. By using the windows driver with “ndiswrapper” and after few hours of hard work ๐Ÿ˜‰ i was able to get wifi up and running :D. And the first thing came to my mind was “I gotta blog about this so that no one else will have to waste their time finding ways to get Atheros 5007 working with linux” ๐Ÿ™‚

So, here i’ll describe how to get Atheros 5007eg working with Ubuntu. I’m also planning to write a post on how to get it working with Slackware as soon as i get some time to try. ๐Ÿ˜€ ok here’s what i did.

First go to system>>administration>>Restricted Drivers Manager, Disable HAL and then reboot.

Then you’ll have to install ndiswrapper from Synaptic. Here are the three packages you are gonna install.
ndisgtk
ndiswrapper-common
ndiswrapper-utils-1.9

After installing ndiswrapper you’ll need the windows driver of your wifi card in my case. I had the Atheros 5007eg driver in a DVD which came with my lappy and if you don’t have, you can get appropriate driver from the Atheros website. its http://www.atheros.cz/

Open the Terminal. Go to the folder where you got the windows driver(the .inf file) for your Atheros card and type
ndiswrapper -i xxx.inf (replace xxx with the name of the inf file)

Now we have to blacklist ath_pci for type gksu gedit /etc/modprobe.d/blacklist in the terminal

Add the following line to the end of the file.

blacklist ath_pci

Then type ndiswrapper -l to list the installed drivers if your driver is working you should see something like the following

net5211 : driver installed
device (168C:001C) present (alternate driver: ath_pci)

Type these commands in the terminal one after other

sudo depmod -a

sudo modprobe ndiswrapper

sudo ndiswrapper -m

And type gksudo gedit /etc/modules
and add ndiswrapper to the end of the file and save it.

That’s all folks! ๐Ÿ˜€ now reboot the machine and you can check whether the wifi is working (of course it is!) by typing sudo iwconfig in the Terminal here’s what i get after the process.

lo no wireless extensions.

eth0 no wireless extensions.

ath0 IEEE 802.11g ESSID:off/any
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:54 Mb/s
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Ok! Have fun! and feel free to let me know if you have any problems or any unclear steps in this post
~seejay~

Easily Stop Firefox from Consuming Your Cpu Cycles

Easily Stop Firefox from Consuming Your Cpu Cycles published on No Comments on Easily Stop Firefox from Consuming Your Cpu Cycles

You may be thinking that you have done all the things to stop this nasty habit of Firefox. But have you tried this? Iโ€™ve done this is Firefox 2.0.0.3 but this will work with all the other versions of Firefox. Ok! hereโ€™s the trick.

1. Type about:config in the address bar and press Enter to get the Firefox expert configuration page.
2. Type browser.cache.disk.capacity in the Filter text box.
3. Modify the value to 16384
4. Restart Firefox and there you go!
After doing this, CPU usage for Firefox should stay under 10%
-SeeJay

Keyboard Shortcut to create a New Folder

Keyboard Shortcut to create a New Folder published on No Comments on Keyboard Shortcut to create a New Folder

Many of us loves keyboard shortcuts. I canโ€™t imagine how to handle my stuff without them. Very basic shortcuts, like Ctrl+C And Ctrl+V makes it lot more easier to copy and paste files in your computer. But what would you do when you want to create a New Folder? Take your hand off the keyboard and walk all the way to the mouse? Luckily I found this cool trick.

post1

post1 published on No Comments on post1

Hi Guys!
I’m sorry i couldn’t bring any new stuff during the previous week. But I got good excuse for that ๐Ÿ˜€ Guess what! I’m up to some thing new! something really fresh!! and something with a spirit!!! Got Lot to tell you……….But reallly busy……will atell you everything with in few hours……..and thats a promise………

C.J.