b0j3 logo

Mount over SSH in Mountain Lion

0
Filed under Uncategorized

After upgrading Macbook pro to ML (clean installation) the Fuse (mounting over SSH) didn’t work anymore.

I have tried all different GUI solutions and then managed to get everything working with using Homebrew solution.

Just installed sshfs using brew install sshfs and it works … no GUI though.

 

ibook with ubuntu 12.04

0
Filed under general
Apple iBook G3 M6497 JapanModel G3 500MHz/128M...

Apple iBook G3 M6497 JapanModel G3 500MHz/128MB/10GB/DVD (Photo credit: Wikipedia)

I have decided to install ubuntu 12.04 on the PowerPC iBook.

The procedure is pretty straight forward. Download the image, put it on CD and

1. reboot and hold C

2. install the distribution as you like (just Linux, double boot …)

I have chosen xfce desktop since it’s not that system intensive.

3. To install wireless card just type in: sudo apt-get install firmware-b43-installer

4. To get battery icon add pmu_battery to /etc/modules

This is currently all.

I might add new things, but it’s ok for now :)

Enhanced by Zemanta

easy_install and MacOSX

0
Filed under python

Wanted to install some new packages in Python using easy_install on Mac OSX and there was an error message.

It appears OSX breaks something on Python for easy_install. Web is full of suggestions what to do, but  nothing helped.

Finally I managed to resolve the issue by following this page.

Even though I had easy_install installed it seems it was broken somehow and I had to reinstall it.

Oh well, another day in the office.

ARM

0
Filed under electronics

After some playing with AVR microcontrollers I dug old LPC2103-Silica board and installed ARM devel environment for MacOSX, compiled lpc21isp. Interesting that version 1.80 can be compiled on Lion, but not the newer version. Go figure.

Plugged the board and here we go the thing still works.

Oh. And I had to check a tutorial to download some other files and Makefile.

I plan to attach LCD graphics display to it and play with that, but more about that some other time :)

electronics are back

0
Filed under Uncategorized

Some time ago I was programming microcontrollers eps. Atmel ones. Hey I even posted few instructables pages as AVR mini board with additional boards and pic 12f675 mini protoboard.

I think I was first or at least one of the first to use connectors like that (connecting directly to the breadboard).

I’m thinking about starting to play with electronics again. We’ll see. I have to check the market to see what changed from that time and there might be better connectors to use.
There is also problem of having PCB made, since I hate doing it myself.
But for the starts I need to get back to use Kicad EDA suit, again.

String to date conversion in Python

0
Filed under Uncategorized

Needed to convert date as a string to datetime format, so I did:

import time
import datetime
 
ret = time.strptime(indate_in_string,"%d-%m-%Y") #format of date is in the string
print datetime.date(ret.tm_year,ret.tm_mon, ret.tm_mday)

emacs, shortcuts and solution

0
Filed under Uncategorized

I’ve decided to start using Emacs … again. But on Mac this time.

 

Sure you have Aquamacs, but it wasn’t that stable for me. At the end I’ve decided to compile my own version of Emacs.

 

It’s really just a straight compilation of Emacs to support Cocoa GUI.

 

Since I use Slovene keyboard and mapping I had trouble inserting some characters regularly useful in programming or web page creation (e.g. {, [, \). Sure you can just copy&paste, but you still need to create at least first character.

And it’s a hassle. So I finally found the time to prepare .emacs file and include following:

 

(global-set-key (kbd "M-š") (kbd "["))
(global-set-key (kbd "M-Š") (kbd "{"))
(global-set-key (kbd "M-đ") (kbd "]"))
(global-set-key (kbd "M-Đ") (kbd "}"))
(global-set-key (kbd "M-ž") (kbd "\\"))
(global-set-key (kbd "M-Ž") (kbd "|"))
(global-set-key (kbd "M-ć") (kbd "^"))
(global-set-key (kbd "M-\"") (kbd "@"))

 

Enhanced by Zemanta

Blogging or not, here I come…

0
Filed under Uncategorized

I had … well I still have (not for long I hope) blog opened at Tumblr. It’s nice and everything, but I would like to have more control and also I’d like to add some marketing stuff, so I’ve decided to move all the blogs to me – using WordPress as a platform.

The funny thing is that I never learned php and tried to avoid it as a plague. Not sure if it is time for me too check php seriously, but I’ll still do Python as much as possible :)

Enhanced by Zemanta

Twitter and Follow Friday

0
Filed under general

Anybody using twitter knows the term: Follow Friday (#FF). It was Friday yesterday and I thought to do it a bit different.

Image representing Twitter as depicted in Crun...

Image via CrunchBase

I decided to write every recommendation in its own tweet with extensive (well in 140 chars) explanation why I recommend that person.

Interesting thing happened. Almost everybody who I recommended was pleased (well at least I hope   they were), but I lost one follower.

As he explained his decision was (my interpretation) that he’s fed up with that shit.

Apparently all the tweets seemed like spam to him.

Interesting.

Is there a deeper meaning to that or just a coincidence I don’t know? Was the problem that I was too nice to others or just too chatty?

Enhanced by Zemanta

Apache 2.2.17 & mod_proxy

0
Filed under webapps

So…you’ve did everything as advertised on other pages to get your proxy working, but the damn thing doesn’t work.

Been there… done that…

What was the problem?

Had to add only ProxyPass and ProxyPassReverse to enabled sites.

The important thing is to do setting in proxy.conf (in mods-enabled) according to comments in the file.

Mine settings are:

#ProxyRequests On
<Proxy *>
 AddDefaultCharset off
 Order deny,allow
 #Deny from all
 Allow from 127.0.0.1
</Proxy>

If you’ll try to add these settings to enabled sites instead of proxy.conf the proxy doesn’t work.