Friday, March 23, 2012

Love my cricket team, yeah it's my team

I love their nerves. How much pressure they can withhold and take down. It's amazing Mash-A-Allah. Insh-A-Allah, we're gonna get the World Cup some day. Go on guys, don't look down, just don't look down.

Sunday, March 18, 2012

Ubuntu graphics driver Issues

Truth be told, it's hard to find a topic nowadays that has not been discussed by someone else. Since I've been scratching my head for several months with the Ubuntu Graphics Problems (Particularly the X.Org servers) I've been browsing through the net and was successfully failing gaining knowledge every time. So instead of posting anything that eventually looks like someone else's post, I'll just list up some links that seem or are useful.

Ubuntu Video Driver Repair
How To Install Latest Intel Driver 2.12 On Ubuntu 10.04 (Lucid Lynx)
How do I recover from this broken upgrade(?)?
Matter solved in my own blog :)

Tuesday, March 06, 2012

[UVa] 10940 - Throwing Cards Away II

This is a problem of case study and math. Create a program that simulates the process and find the pattern.

Inputs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Outputs:
1
2
2
4
2
4
6
8
2
4
6
8
10
12
14
16
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32

Once you find the pattern its straightforward.
1. Find the nearest 2^X such that 2^X <= N
2. If 2^X == N, output N
    Else output (N-2^X)*2

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...