Archive for the ‘linux’ Category

Common, Tel Aviv, where's the Firefox spirit?

Sunday, July 13th, 2008

So I’m going to live in the place in that picture. But why did I have to go through an ordeal just to get tel-aviv’s free for all gis site to actually give me this shit? First it doesn’t show you the overview – so you guess where florentine is and do an initial zoom in. After several tries you get it. Then there is that annoying “loading” graphic that doesn’t disappear, ever. Arghh. On the bright side – I’m moving to Tel Aviv!

gis.tel-aviv.gov.il admins/developers, hear this, hear this: firefox is not a 0.1% market anymore, more like 20%. Linux FF users, like moi, are not that many, but growing. Please fix. I’m hereby volunteering to beta test any improvement you throw at me.

And before anybody asks: this was done on FF3, with both the profile in the picture and a relatively clean one without any addons, and FF2 didn’t even get this far. All on ubuntu hardy (or is it intrepid now? but that hardly matters to the firefox version).

My Place for the next bits of life

Rotated Hebrew text

Sunday, July 13th, 2008

Try writing a “wanted” add for an apartment to rent in hebrew in any of the following programs: openoffice (2.4), kword, abiword, scribus, scribus-ng (1.3 something). It doesn’t work. I finally found one program that made it pretty easy – inkscape. The rant goes on:

  • openoffice
    • hard to find – it appears to support rotated text (under char settings – would have expected it to be paragraph settings).
    • rendering – Just try: overlap of words, some words are not rotated (if they are short enough – may be good behavior, but not by default), and numbers are reversed (that is, they should be shown normally, but are reversed like the hebrew r
  • abiword – just can’t do it (in the bug list)
  • kword – ditto
  • scribus – great support for rotation, lousy support for hebrew – you can rotate a whole text box, but that includes any english or numbers therein.

So finally I thought – SVG, and immediately went to inkscape – this worked great, except for the fact that there are no tables, but you can create a text box, fill it, then clone with ^D and then there are nifty layout tools to spread them like a table. Some guessing makes it align with the page width.

Anyone with other experiences? I’m adding the final result so people understand what the aim was.

if you’re interested, email me

Meme me

Tuesday, April 29th, 2008

Everybody’s doing it, so here goes: on amber:

history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’ |sort -rn|head

107 cd
100 ls
73 git
14 cat
13 vim
11 less
9 sudo
8 texmacs
8 mv
7 ./src/GeoXPlanet.py

on root@rolf: (yes, it’s a laptop, and I don’t use NetworkManager)

51 ping
50 ifconfig
43 ifup
35 ifdown
33 iwconfig
30 ls
29 dmesg
27 cd
25 iwlist
19 apt-get

but as a normal user:

121 cd
116 ls
45 git
22 cat
16 sudo
14 make
14 ipython
11 ssh
9 vim
9 sed

Yes, these history files are a little short. Let’s do this again next year!

Changing location with dnsmasq

Friday, April 4th, 2008

Recently I have been working on a new site, citytree. I’m doing some of the work on my laptop (asus eee 4g surf), I am sometimes in the same network as my repository (git through ssh), and sometimes on an external network. Previously I would go to the .git/config or .git/remotes and change the address before git push/git pull. That gets tiresome quick, and it isn’t even remotely the correct solution. The solution is to get the same name to resolve to two different ip’s, one when you are local and another when you aren’t. The way I did it, and the correct way I think (unless someone tells me otherwise), is through the dns server giving different responses. Since I already use dnsmaq, anyone with a dhcp lease is resolved correctly. So I switched the git server to be dhcp’d, told dnsmasq to give it the ip address which was previously static, and voila. This also means I’ve got a single dnsmasq.conf file to handle all the ip’s in my network, a big plus. In addition I made sure the same fqdn translated to the public ip I have (the same ip you’re reading this from), and now I have what I wanted!

Some random text from info (proof that you should read manual pages)

Wednesday, January 2nd, 2008

     Our units of temporal measurement, from seconds on up to months,
are so complicated, asymmetrical and disjunctive so as to make
coherent mental reckoning in time all but impossible.  Indeed, had
some tyrannical god contrived to enslave our minds to time, to
make it all but impossible for us to escape subjection to sodden
routines and unpleasant surprises, he could hardly have done
better than handing down our present system.  It is like a set of
trapezoidal building blocks, with no vertical or horizontal
surfaces, like a language in which the simplest thought demands
ornate constructions, useless particles and lengthy
circumlocutions.  Unlike the more successful patterns of language
and science, which enable us to face experience boldly or at least
level-headedly, our system of temporal calculation silently and
persistently encourages our terror of time.

…  It is as though architects had to measure length in feet,
width in meters and height in ells; as though basic instruction
manuals demanded a knowledge of five different languages.  It is
no wonder then that we often look into our own immediate past or
future, last Tuesday or a week from Sunday, with feelings of
helpless confusion.  …

— Robert Grudin, `Time and the Art of Living’.

It is kinda appropriate, this being my birthday.

Xorg

Tuesday, October 2nd, 2007

Should I develop on Xorg? I’m thinking this is a good idea for several reasons:

* I lack a pet c++ project (or c project for that matter). I’m doing python all day, and I’m losing c++/c.

* I have some pet peeves. The most annoying is problems with my new laptop’s intel driver. I specifically set out to get a laptop with OSS drivers, and got one (for video at least), and now they suck! I get hangs when running qemu, some games don’t have iDTS (spring RTS). And another thing is Xephyr, which I’d like to improve in a small manner.

The con is of course that Xorg is a motherfuckingly huge project, with autoconf etc. At least it is modularaized.

And then again I have three dual core machines that should be seeing some action some way..

Will see.

Enlightenment e17 on ubuntu

Sunday, September 16th, 2007

The easy way:

http://e17blog.tuxfamily.org/e17blog_en.php/post/2007/08/09/E17-repository-for-Ubuntu-Gutsy-Gibbon

the juicy parts:

  • wget http://lut1n.ifrance.com/repo_key.asc
  • sudo apt-key add repo_key.asc
  • edit sources to include ## Elbuntu
    deb http://e17.dunnewind.net/ubuntu gutsy e17
  • sudo apt-get update
  • sudo apt-get install e17

Or you could go directly to the source, use this diagram to see what to compile first, basically libs/evas…, apps/e and then killall metacity; enlightenment_start

  • cvs -z3 -d :pserver:anonymous@anoncvs.enlightenment.org:/var/cvs/e co e17
  • http://enlightenment.sourceforge.net/Libraries/images/_images/efl.png
    • This isn’t entirely uptodate, but ./autogen.sh will tell you what is obsolete.

Network problems

Saturday, July 7th, 2007

I’m having problems editing my posts from within the network – actually this isn’t the only thing that kills my net connection, but it is one of them. I tried having a tcpdump and a continous ping to diagnose, here is what I found:

64 bytes from 192.168.1.1: icmp_seq=131 ttl=64 time=0.852 ms
ping: sendmsg: No buffer space available

the tcpdump didn’t give me anything, except that it kept showing arp request, and maybe mdns something? I tried adding mdns off to /etc/host.conf. Hope to have an update soon.

Desktop Search, Forth and Extreme Programming

Friday, June 29th, 2007

The books on forth (especially thinking forth) mentioned in this post in lambda the ultimate about forth talk about stuff like iterative development, mixing design and implementation, don’t be afraid to start from scratch, start with a simple implementation, and they are about 20 years old!

Looking for a desktop search tool for my home directory but using ssh to access that computer, I have a page for the effort here, trying tracker right now.

Sean is a Genious

Thursday, June 28th, 2007

“Free Your Phone” February 2007

neo1973 picture

OpenMoko, for anyone who hasn’t heard, is the next big thing in mobile phones. Or maybe the next next big thing. Anyway it’s my next phone. Recap of the above marketing talk: open phone leads to ubiquitous computing, and Sean is a god. And they can make money from it. But *I* can call everybody automatically and annoy them until hell freezes over, or they find some way to block me! Only minus is that there is no keyboard. A OpenMokoZaurus would have been too much to ask for I guess..

And about getting it – it should be available for 300$ or 450$ if you want the developer package (wonder if you can update the kernel with the 300$ kit?) – see the latest announcement