avatar
Today is Sunday
May 20, 2012

February 10, 2012

OSX jcurses – Java Ncurses solved

by admin — Categories: ProgrammingComments Off

Spent the last 4 hours suffering, trying to compile JCurses, the Java Ncurses library on OSX Lion.

So here is the solution:

  1. Download the lib: http://sourceforge.net/projects/javacurses/files/javacurses/0.9.5/jcurses-src-0.9.5.tar.gz/download
  2. Unpack it
  3. ./configure; make
  4. You will have a problem around the Toolkit sources.src/native/include/jcurses_system_Toolkit.h:2:17: error: jni.h: No such file or directory
    In file included from src/native/Toolkit.c:1:
    src/native/include/jcurses_system_Toolkit.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
  5. Reason one : Makefile has a wrong have home. so set it toJAVAHOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents//Home/ instead ofJAVAHOME=/usr/
  6. Reason two : in Lion a symlink is missing to jni.h (actually a whole directory). Solution is:  to go to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/, then sudo ln -s /System/Library/Frameworks/JavaVM.framework/Headers include
  7. You now have 2 files in lib, a jar and a so :  jcurses.jar and libjcurses.so
  8. Include jcurses.jar in your project and you most likely want to have libjcurses.so in  dist/lib (I am a netbeans user, so that is where I compile)

 

Credits go to Matt Gumbley for the last step: https://discussions.apple.com/thread/2630649?start=0&tstart=0

 

Hope it helps someone. You can see the compile list on the next page

(more…)

February 2, 2012

Ownership

by admin — Categories: ThoughtsComments Off

You cannot get enough of what you never wanted – true. Money does not make you happy – but you can buy stuff you might want/need with it. How much is enough – is it ever enough?

I spent two hours sitting in a room, listening how business was not that good, but how our new product could bring a significant amount of money to the company. I was also listening how we could bring in new people and even offer them a “piece”, while again for a year I did not get a fucking raise. In the biggest crunch time while trying to finish a product, the general manager goes to the beach for 5 days after stressing the shit out of everyone.

My colleagues and family are playing with their new iPhone 4S while I have an old iMac, and old iPad, and old iPhone and an old Mac Mini. I am an IT professional who actually loves this stuff, but I just cannot justify buying ANYTHING anymore. I listen to greed and wanting more, but I cannot justify any of it for myself. I want more time. For myself. For family. Would a new iPhone make me happy? Probably not. Does it make me unhappy that everyone is getting nice stuff, gadgets, stuff and seem happy with it? A little. Solution? Leave society. For real. I am sick and tired of working hard and playing catch-up to something I do not really give a shit about.

 

January 28, 2012

Success

by admin — Categories: Food for your mind - Just imagesComments Off

Image without words

Megaupload users to sue FBI

by admin — Categories: Freedom of speech, Politics — Tags: , , , , , Comments Off

According to http://RT.com megaupload users might sue the Feds. I am waiting curiously how that might work out. The argument is, that megaupload also hosted a lot of completely legal content for individuals and companies as well that (might have) caused monetary and other damages.

The way to happiness does not exist

by admin — Categories: Religion / BeliefsComments Off

There is no way to happyness

Think about faith/religion for a minute

by admin — Categories: Religion / Beliefs — Tags: , , , Comments Off

Video without comments necessary:

January 12, 2012

OSX reconnect VPN with BTGuard

by admin — Categories: Uncategorized — Tags: , , , Comments Off

The problem: you download torrents then you get some warning from your ISP saying that the RIA/BSA/you name it is pissed about what you downloaded ….

So you subscribe to a VPN or torrent proxy, such as BTGuard that gives you privacy.

But then your connection breaks and there is no auto-reconnect in OSX. So you start downloading/sharing your goodies through your normal IP address, because your torrent client does now know that it should stop downloading.

The solution:

The following will run in a loop, checking every second whether your VPN is connected (with the name BTGuard). If it is not, it kills uTorrent and keeps trying to reconnect. If it is connected it starts uTorrent ……

I am sure you can tweak this and make it nicer, do other fancy stuff, but that is what works for me. You need to save this as an application and check “stay open”.

——————————- file begin ——————–
on idle
tell application “System Events”
tell current location of network preferences
set myConnection to the service “BTGuard”
if current configuration of myConnection is not connected then
try
tell application “uTorrent”
quit
end tell
connect myConnection
–say “Retrying connection”
end try
else
tell application “uTorrent”
run
end tell
end if
end tell
return 1
end tell
end idle

——————————- file end ———————-

Hope this helps others out there

May 16, 2011

IOIO is available

by admin — Categories: Uncategorized — Tags: , , , , , Comments Off

The long-awaited IOIO board is now available at Sparkfun.com. The board allows the Android developer to talk through USB to this card, and through this to any other micro controller. So nothing else keeps you from buying a cheap android phone ($150) with GPS and camera and use it as a robot brain. Before that, you had to buy all the sensors separately, and just the GPS + arduino set you back with $200….. yeeeeeaoaoaoaoaoao!!!

May 13, 2011

6.0 quake shook entire Costa Rica

by admin — Categories: UncategorizedComments Off

Wow, this felt huge in Heredia. My sister in law ran out of their house crying… I grabbed my son and ran out as the house made cracking sounds and was shaking like mofo.

April 21, 2011

X10 experia vs iPhone – first impression

by admin — Categories: Android, Gadgets, TechComments Off

I use my phone maybe 1-2 times a day for phone calls. Sometimes once or twice a week, and calls are short 1-2 mins tops.

I am an iPhone user for the last 3 years or so. While I do not love the device I find it reasonably functional and extremely stable/usable. It is not a Swiss Army knife of devices, but the interface works fast, accurate and uniform.

There came the curious me and I started looking at Android powered devices. First cheap $200 tablets, but anything remotely matching my iPad was in the $500+ class. No sensors or mobile calls/data, so the search continued on the $200-300 phones. Complete trash quality. Blu and Huawei were the better quality ones, but both had tiny displays and bad reviews or posts of people looking for drivers… no thanks. I hate HTC for their crackling plastic and ugly finishes. Finally I went with the Sony Experia X10a (a=Americas), 850mhz HDSPA is what I needed.

(more…)

© 2012 ::Lost Sync:: All rights reserved - Wallow theme v0.44 by ([][]) TwoBeers - Powered by WordPress - Have fun!