Sunday, February 5, 2017

Interesting Dialogue

1- I've read the Aeneid Mr. Thurman: "Do not trust the horse Trojans. I fear the Greeks even when they bring gifts". The Crown (S1, E4).

2- Is she making life difficult for you and peter?
yes, she wants to delay the engagement
Well it serves you right quite frankly, you both seem far too happy and far too in love.

3- "... I predict you'll spill the beverage over the saintly pair's feet, and be hauled off ..."
"I see it turning out quite differently" (Joseph and his brothers P 695

4- "How did your past become your present" (Joseph and his brothers P 728

5- Threw himself into it, with missionary intensity
https://www.youtube.com/watch?v=VymRHoSiWWU


Tuesday, August 2, 2016

Life Hacks

1- Few downsides for buying a new car:

  • the car loses it's value fast
  • you pay for still unproven and technology that is not tested enough, give others 10 years to be the cars test drivers. 
2- COSTCO:
  • Costco is known for it's credit card that gives you 2% back on all purchases in store. You can beat that by getting Chase Freedom CC, which gives you 5% money back every few quarters for COSTCO and similar stores. Also, DISCOVER, while not acceptable at the counter, gives you the same discount at COSTCO's website. So you can buy COSTCO prepaid cards that get mailed to your address and you get your 5% money back.  
  • Costco sends a mailer about items that WILL be sold at a discount in 2 weeks. Some of these items have a limit on how many you can purchase. You can game that system by buying these items withing 2 weeks before the discount kicks in. Then you show up with your receipt and you will get a refund for the discount if the purchase was within 2 week. However, these items don't count towards the limit of that discounted item
3- Bonds
  •  In the US. Banks give you a very low interest rate in checking accounts. I will list numbers of 2020 Jan
    • Checking accounts (around .01%).
    •  A better place to save your cash is to open a savings account online. Discover, for instance gives you around 1.7% these days. While this is way better than a checking accounts (or a savings account in a brick and morter bank) you can still do better
    • Treasury bonds, Series I pays 2.2%! These are considered the next safest thing after cash. You buy a 30 year loan from the government at a fixed rate + inflation adjustment. In fact, you pay no fed taxes on the earnings. And they can be purchased online, for no fee. The money compound tax free until you withdraw it, or if you designated to for college education for your kids they are Tax free! There is a 10k limit, per person, per tax year. see Treasuredirect.gov

Saturday, March 5, 2016

Error with apt-get

Recently I tried to update ubuntu software and I got the following error:

dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 install-info
I think it had to do with a resent MySQL update I made. Any way, the only solution that worked for
me was:
sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad
which seems a bit drastic. Oh well, it can be reversed: 
 sudo mv /var/lib/dpkg/info/install-info.postinst.bad /var/lib/dpkg/info/install-info.postinst
 reference: http://ubuntuforums.org/showthread.php?t=1578263 
and update: Similar problem occurred to me when I updated to Ubuntu 16.04. 
/usr/sbin/update-info-dir: 2: /etc/environment: source: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
 
This time I opened the etc/environment file, and by trial I commented the second line
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/mysql/server-5.6/bin"
#source /etc/environment  
It worked! 
 

Thursday, December 24, 2015

Fixing wifi at my Dell Inspiron E1505

This is a common issue among Linux users. Every time you make a fresh install there is big chance that your Wifi will not work. This was the case for me when I removed the partitioning and decided to go all UBUNTU. The fix was reasonable (after finding the right solution of course)

first step, know exactly what is your Wifi drive:

$lspci -v
Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
    Subsystem: Dell Wireless 1390 WLAN Mini-Card [1028:0007]
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-     Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at efdfc000 (32-bit, non-prefetchable) [size=16K]


so my drive is The infamous Broadcom BC4. Now I need to install it

$sudo apt-get install firmware-b43-installer b43-fwcutter

then a reboot is in order (it is better to disconnect the Ethernet while doing this step)

now try turning it on
$sudo modprobe b43

Tada! Know it can see the signal and life is good.

http://askubuntu.com/questions/271044/getting-wireless-to-work-dell-inspiron-e1505-bcm4311

Tuesday, February 24, 2015

Touch pad wasin't responding for Dell Inspiron 17 - 7547

When instiall Ubuntu 12.04 on Dell 15 Inspiron machine, the fancy touch pad wasn't working. After some research the suggested fix was to update the kernel:

the current Kernel was:

$uname -r

3.13.1


To update to a newer Kernel (I read that 3.17 or 3.18 solved this problem) we do the following (64-Bit):

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801_3.18.1-031801.201412170637_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-image-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb

$ sudo dpkg -i linux-headers-3.18.1*.deb linux-image-3.18.1*.deb  ## to install the Kernel

$ sudo update-grub   ## to update grup to fetch the new Kernel
$ sudo reboot

It worked like magic. How ever, the "right click" is still an issue, you can over come it by the double touch (two fingers at the same time). This gie the same effect as a right click. 




Source: http://www.linuxandubuntu.com/home/how-to-install-upgrade-linux-kernel-3181-in-ubuntu

Reloading voice credentials for UBUNTU

 
Sometimes, after long hourse of usage, I lose the voice in my laptop. Here is a nice fix. 
 
$pulseaudio -k && sudo alsa force-reload

Tuesday, February 17, 2015

Mergin /home and / in UBUNTU

After install ubuntu on the DELL machine (see last post). I noticed that the home drive was limited to only 8GB, while the root (/) directory had over 400GB size. The solution was to merge them both.

I followed this link (the section after the partitioning is the relevant one).

https://help.ubuntu.com/community/Partitioning/Home/Moving