A for Andreas and S for Schipplock http://blog.as.tl un planeta con desilusión Thu, 03 Sep 2009 20:23:43 +0000 http://wordpress.org/?v=2.8.4 en hourly 1 Ubuntu 9.04 Netbook Remixed UNR WPA2 on Asus 900A w. La Fonera http://blog.as.tl/2009/09/03/ubuntu-904-netbook-remixed-unr-wpa2-on-asus-900a-w-la-fonera/ http://blog.as.tl/2009/09/03/ubuntu-904-netbook-remixed-unr-wpa2-on-asus-900a-w-la-fonera/#comments Thu, 03 Sep 2009 20:23:43 +0000 Andreas Schipplock http://blog.as.tl/?p=355 Oi!
Despite all the posts about UNR not being able to connect to a WPA2-secured network on the Asus 900A because of the WPA/WPA2 mixed setting in your wlan router I can only tell you it’s the opposite.

If you are heading into problems with your Asus 900A netbook, Ubuntu Netbook Remix 9.04 and your fonera, you can simply configure your fonera for “wpa/wpa2 mixed” with protocol “mixed”. This is even the only way my Asus 900A can connect to the wlan. All other options except no security and WEP don’t work. Set it to only WPA and it will fail. Set it to WPA2 only and it will fail, too. Set it to WPA/WPA2 mixed and it will work…

Hope it helps :).

Cheers,
Andreas.

]]>
http://blog.as.tl/2009/09/03/ubuntu-904-netbook-remixed-unr-wpa2-on-asus-900a-w-la-fonera/feed/ 0
A quick dig example http://blog.as.tl/2009/07/12/a-quick-dig-example/ http://blog.as.tl/2009/07/12/a-quick-dig-example/#comments Sun, 12 Jul 2009 20:49:14 +0000 Andreas Schipplock http://blog.as.tl/2009/07/12/a-quick-dig-example/ Hi, sometimes you are about to register a domainname beneath some “strange” topleveldomain like .tl, .pe, .ec and so on and in all cases you have to enter a nameserver which is responsible for that domainname you will register and I once got into trouble with cocca.cx which is the registry for .tl. I registered a name and told the nameservers but after a few months users complained that they can’t resolve my domainname but I also had a lot of users who could resolve that domainname so I believed it was a misconfigured nameserver of the side of the users…

But in the end I was utterly wrong.

The real problem was that the responsible dns servers of cocca weren’t synchronized so a that a bunch were up and running with correct nameserver information and some others weren’t.

I could easily find out with “dig”:

1.) dig

This gives you a list of all root nameservers. Pick one, e.g. “L.ROOT-SERVERS.NET.”.

2.) dig @L.ROOT-SERVERS.NET. as.tl

…where “as.tl” is your desired domainname like “heise.de” e.g. It will give you a list of responsible nameservers of the associated registry which controls the topleveldomain. Pick one!

3.) dig @ns.anycast.nic.tl. as.tl

Do not forget to append your domainname again…you should now get a list of _your_ nameservers or the ones of your provider. If that works, the chosen nameserver “ns.anycast.nic.tl.” works and has valid records…you now have to cycle through all of them to find out if they are all synchronized!

I’m sure you can automate all this but I just wanted to give a straight “way” to walk through to find out if your registrys nameservers are well configured…

Hope it will help some day :P…

]]>
http://blog.as.tl/2009/07/12/a-quick-dig-example/feed/ 0
Jamendo makes fun of me http://blog.as.tl/2009/05/02/jamendo-makes-fun-of-me/ http://blog.as.tl/2009/05/02/jamendo-makes-fun-of-me/#comments Sat, 02 May 2009 10:52:21 +0000 Andreas Schipplock http://blog.as.tl/?p=349 Today I felt like downloading _some_ album from jamendo so I chose some electronic stuff to download and that’s where the fun started to begin…because it puts you in a queue and it started with number 25…24…23..22..15..wow!…7…fast!…1….yay!…25….what??…20…15…25…wtf?

I closed the window then…sad for the artist.

I simply don’t get it! If there are no download slots available, why are you offering it then?
Plus I don’t get the lost potential because I’m pretty sure people are willing to pay for the ability to download. I am willing to pay because I want to listen to music and not to wait for a download which makes fun of you…

Jamendo, you suck.

]]>
http://blog.as.tl/2009/05/02/jamendo-makes-fun-of-me/feed/ 0
Wordpress: getting all posts from a specific category http://blog.as.tl/2009/01/05/wordpress-getting-all-posts-from-a-specific-category/ http://blog.as.tl/2009/01/05/wordpress-getting-all-posts-from-a-specific-category/#comments Mon, 05 Jan 2009 21:40:33 +0000 Andreas Schipplock http://blog.as.tl/?p=340 I wanted to grab all posts from a certain category with a single non-wp-php script and I wrote the following mysql statement to accomplish this task:

SELECT wp_posts.post_title, wp_posts.post_date, wp_posts.post_content, wp_posts.guid 
FROM wp_posts WHERE wp_posts.post_type='post' 
AND wp_posts.post_status='publish' 
AND (
  SELECT wp_term_relationships.object_id 
  FROM wp_term_relationships
  WHERE wp_term_relationships.term_taxonomy_id = (
    SELECT wp_term_taxonomy.term_taxonomy_id 
    FROM wp_term_taxonomy 
    WHERE term_id = 3
    AND taxonomy = 'category'
  )
  AND wp_term_relationships.object_id=wp_posts.id
)
ORDER BY wp_posts.id DESC

Where “3″ is the category id you want the posts from.

]]>
http://blog.as.tl/2009/01/05/wordpress-getting-all-posts-from-a-specific-category/feed/ 0
Compiling Io on Ubuntu 8.10 http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/ http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/#comments Sun, 04 Jan 2009 05:30:51 +0000 Andreas Schipplock http://blog.as.tl/?p=330 Compiling Io on Ubuntu is really easy but getting all addons to work properly is a different story.

The following steps are needed:

  1. install all needed libraries for Io
  2. compile and install libevent-1.4.8
  3. compile and install libsgml-1.1.4
  4. compile and install Io

Install all needed libraries

The following packages are needed to be installed. Some are optional and some aren’t. I suggest to install all of them.

  • build-essential
  • checkinstall
  • libavformat-dev
  • libgmp3-dev
  • libcairo2-dev
  • libncurses5-dev
  • libdbi0-dev
  • libfreetype6-dev
  • libgl1-mesa-dev
  • libglfw-dev, zlib1g-dev
  • libpng12-dev
  • libtiff4-dev
  • libjpeg62-dev
  • libsndfile1-dev
  • libxml2-dev
  • libmysqlclient15-dev
  • libode0-dev
  • libgnustep-gui-dev
  • libqdbm-dev
  • libglu1-mesa-dev
  • libglut3-dev
  • libportaudio-dev
  • libpq-dev
  • python2.5-dev
  • libreadline5-dev
  • libpcre3-dev
  • libsqlite0-dev
  • libsqlite3-dev
  • libsamplerate0-dev
  • libssl-dev
  • libstdc++6
  • libsoundtouch1-dev
  • uuid-dev
  • libedit-dev
sudo apt-get install build-essential checkinstall libavformat-dev libgmp3-dev libcairo2-dev libncurses5-dev libdbi0-dev libfreetype6-dev libgl1-mesa-dev libglfw-dev zlib1g-dev libpng12-dev libtiff4-dev libjpeg62-dev libsndfile1-dev libxml2-dev libmysqlclient15-dev libode0-dev libgnustep-gui-dev libqdbm-dev libglu1-mesa-dev libglut3-dev libportaudio-dev libpq-dev python2.5-dev libreadline5-dev libpcre3-dev libsqlite0-dev libsqlite3-dev libsamplerate0-dev libssl-dev libstdc++6 libsoundtouch1-dev libtokyocabinet-dev uuid-dev libedit-dev

Compile libevent 1.4.8

  1. Download libevent-1.4.8-stable.tar.gz
  2. gzip -d libevent-1.4.8-stable.tar.gz && tar -xf libevent-1.4.8-stable.tar && rm libevent-1.4.8-stable.tar
  3. cd libevent*
  4. ./configure –prefix=/usr
  5. make
  6. sudo checkinstall -D

In the checkinstall press “2″ to change the name to just “libevent” and then press “3″ to change the version to “1.4.8″ because its default value with this package is “stable” which is wrong because checkinstall won’t create a *.deb because the package name will be invalid. Press “3″ in the checkinstall menu and enter “1.4.8″. Enter again and the deb should be build.

Compile libsgml-1.1.4

  1. Download libsgml-1.1.4.tar.gz
  2. gzip -d libsgml-1.1.4.tar.gz && tar -xf libsgml-1.1.4.tar && rm libsgml-1.1.4.tar
  3. cd libsgml*
  4. ./configure

Now you have to edit the “Makefile” in the root directory of libsgml* so that it looks like this:

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
33
all:
	cd src && make
	cd examples && make
 
install:
        mkdir -p /usr/include/sgml
	install -o root -g root --directory /usr/include/sgml
	install -m 644 -o root -g root include/Variant.h /usr/include/sgml/Variant.h	
	install -m 644 -o root -g root include/DomComment.h /usr/include/sgml/DomComment.h
	install -m 644 -o root -g root include/DomDocument.h /usr/include/sgml/DomDocument.h
	install -m 644 -o root -g root include/DomElement.h /usr/include/sgml/DomElement.h
	install -m 644 -o root -g root include/DomNode.h /usr/include/sgml/DomNode.h
	install -m 644 -o root -g root include/DomNodeList.h /usr/include/sgml/DomNodeList.h
	install -m 644 -o root -g root include/DomText.h /usr/include/sgml/DomText.h
	install -m 644 -o root -g root include/SgmlParser.h /usr/include/sgml/SgmlParser.h
	install -m 644 -o root -g root include/SgmlExtensionHtml.h /usr/include/sgml/SgmlExtensionHtml.h
	install -m 644 -o root -g root include/SgmlExtensionXml.h /usr/include/sgml/SgmlExtensionXml.h
	install -m 644 -o root -g root include/libsgml.h /usr/include/sgml/libsgml.h
	install -m 644 -o root -g root libsgml.a /usr/lib/libsgml.a
	install -m 644 -o root -g root libsgml.so /usr/lib/libsgml.so
        ln -s /usr/include/sgml /usr/include/libsgml-1.1.4
 
uninstall:
	rm -rf /usr/include/sgml /usr/lib/libsgml.a /usr/lib/libsgml.so
 
clean:
	cd src && make clean
	cd examples && make clean
 
distclean:
	cd src && make distclean
	cd examples && make distclean
	rm -f config.* Makefile

In ./src there is another “Makefile” and it has a line that looks like this:

CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3

Change it to:

CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -fPIC

Now go back to the root directory of “libsgml*”: cd ..
And execute the following:

  1. make
  2. sudo checkinstall -D

Compile Io

Now it’s time to compile Io.

  1. Download Io
  2. untar it and cd to its directory
  3. edit “Makefile” and change the INSTALL_PREFIX in the first line to “/usr”
  4. make
  5. sudo checkinstall -D –requires “libavformat-dev, libgmp3-dev, libcairo2-dev, libncurses5-dev, libdbi0-dev, libfreetype6-dev, libgl1-mesa-dev, libglfw-dev, zlib1g-dev, libpng12-dev, libtiff4-dev, libjpeg62-dev, libsndfile1-dev, libxml2-dev, libmysqlclient15-dev, libode0-dev, libgnustep-gui-dev, libqdbm-dev, libglu1-mesa-dev, libglut3-dev, libportaudio-dev, libpq-dev, python2.5-dev, libreadline5-dev, libpcre3-dev, libsqlite0-dev, libsqlite3-dev, libsamplerate0-dev, libssl-dev, libstdc++6, libsoundtouch1-dev, libtokyocabinet-dev, uuid-dev, libedit-dev” –fstrans=no

That should be it! Now just type “io” in your shell to see if “io” has been successfully installed.


Kind regards,
Andreas Schipplock.

]]>
http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/feed/ 0
FlickGrab.io in Io http://blog.as.tl/2009/01/02/flickgrabio-in-io/ http://blog.as.tl/2009/01/02/flickgrabio-in-io/#comments Fri, 02 Jan 2009 21:43:27 +0000 Andreas Schipplock http://blog.as.tl/?p=327 Yesterday I hacked a little piece of code in Io, a tiny programming language which might turn out to be very easy to learn, easy to use, highly dynamic etc…blabla…

In fact I just wanted to get in touch with that language because I’m generally interested in all kinds of programming and scripting languages and what’s best to learn is to get your hands dirty with it.

Here is my dirt: http://as.tl/io/flickgrab.io

]]>
http://blog.as.tl/2009/01/02/flickgrabio-in-io/feed/ 0
libsgml and gcc 4.3.x problem with linking http://blog.as.tl/2009/01/01/libsgml-and-gcc-43x-problem-with-linking/ http://blog.as.tl/2009/01/01/libsgml-and-gcc-43x-problem-with-linking/#comments Thu, 01 Jan 2009 19:45:28 +0000 Andreas Schipplock http://blog.as.tl/?p=319 Today I wanted to compile libsgml 1.1.4 on Ubuntu Intrepid AMD64 and I came across the following error message when I tried to link it:

/usr/bin/ld: DomComment.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
DomComment.o: could not read symbols: Bad value

So I just did what the error message wanted me to do: I opened ./src/Makefile and modified line 10 so that it looked like:

CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -fPIC

I did “make clean” and “make” again which worked this time.

That’s it!

For the guys who are compiling libsgml for “io”, you also have to edit the main Makefile in the root of where you untarred libsgml:

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
# Generated automatically from Makefile.in by configure.
all:
	cd src && make
	cd examples && make
 
install:
	install -o root -g root --directory /usr/local/include/sgml
	install -m 644 -o root -g root include/Variant.h /usr/local/include/sgml/Variant.h	
	install -m 644 -o root -g root include/DomComment.h /usr/local/include/sgml/DomComment.h
	install -m 644 -o root -g root include/DomDocument.h /usr/local/include/sgml/DomDocument.h
	install -m 644 -o root -g root include/DomElement.h /usr/local/include/sgml/DomElement.h
	install -m 644 -o root -g root include/DomNode.h /usr/local/include/sgml/DomNode.h
	install -m 644 -o root -g root include/DomNodeList.h /usr/local/include/sgml/DomNodeList.h
	install -m 644 -o root -g root include/DomText.h /usr/local/include/sgml/DomText.h
	install -m 644 -o root -g root include/SgmlParser.h /usr/local/include/sgml/SgmlParser.h
	install -m 644 -o root -g root include/SgmlExtensionHtml.h /usr/local/include/sgml/SgmlExtensionHtml.h
	install -m 644 -o root -g root include/SgmlExtensionXml.h /usr/local/include/sgml/SgmlExtensionXml.h
	install -m 644 -o root -g root include/libsgml.h /usr/local/include/sgml/libsgml.h
	install -m 644 -o root -g root libsgml.a /usr/local/lib/libsgml.a
	install -m 644 -o root -g root libsgml.so /usr/local/lib/libsgml.so
 
uninstall:
	rm -rf /usr/local/include/sgml /usr/local/lib/libsgml.a /usr/local/lib/libsgml.so
 
clean:
	cd src && make clean
	cd examples && make clean
 
distclean:
	cd src && make distclean
	cd examples && make distclean
	rm -f config.* Makefile

BUT be careful with that because the paths are hardcoded. It’s kinda odd but if you have installed “io” in /usr instead of /usr/local which is the case for me you have to edit these hardcoded paths as well :). Yep, ligsgml is a big old PITA.

So my Makefile looks like that:

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
# Generated automatically from Makefile.in by configure.
all:
	cd src && make
	cd examples && make
 
install:
	install -o root -g root --directory /usr/include/sgml
	install -m 644 -o root -g root include/Variant.h /usr/include/sgml/Variant.h	
	install -m 644 -o root -g root include/DomComment.h /usr/include/sgml/DomComment.h
	install -m 644 -o root -g root include/DomDocument.h /usr/include/sgml/DomDocument.h
	install -m 644 -o root -g root include/DomElement.h /usr/include/sgml/DomElement.h
	install -m 644 -o root -g root include/DomNode.h /usr/include/sgml/DomNode.h
	install -m 644 -o root -g root include/DomNodeList.h /usr/include/sgml/DomNodeList.h
	install -m 644 -o root -g root include/DomText.h /usr/include/sgml/DomText.h
	install -m 644 -o root -g root include/SgmlParser.h /usr/include/sgml/SgmlParser.h
	install -m 644 -o root -g root include/SgmlExtensionHtml.h /usr/include/sgml/SgmlExtensionHtml.h
	install -m 644 -o root -g root include/SgmlExtensionXml.h /usr/include/sgml/SgmlExtensionXml.h
	install -m 644 -o root -g root include/libsgml.h /usr/include/sgml/libsgml.h
	install -m 644 -o root -g root libsgml.a /usr/lib/libsgml.a
	install -m 644 -o root -g root libsgml.so /usr/lib/libsgml.so
 
uninstall:
	rm -rf /usr/include/sgml /usr/lib/libsgml.a /usr/lib/libsgml.so
 
clean:
	cd src && make clean
	cd examples && make clean
 
distclean:
	cd src && make distclean
	cd examples && make distclean
	rm -f config.* Makefile

And before you compile “io” do…

cp -R /usr/include/sgml /usr/include/libsgml-1.1.4

…depending on the install location.

If you have any questions, you may ask them here.

]]>
http://blog.as.tl/2009/01/01/libsgml-and-gcc-43x-problem-with-linking/feed/ 0
Simplewidget Last.fm html widget http://blog.as.tl/2008/12/27/simplewidget-lastfm-html-widget/ http://blog.as.tl/2008/12/27/simplewidget-lastfm-html-widget/#comments Sat, 27 Dec 2008 21:20:05 +0000 Andreas Schipplock http://blog.as.tl/2008/12/27/simplewidget-lastfm-html-widget/ I am a last.fm user, I scrobble each day and I wanted to use the existent flash widget last.fm is offering its users but to be honest I’m not the biggest fan of flash, especially not in cases where it’s not really needed so I thought about developing my own widget and was happy to discover the last.fm api.

Now I just did it. I developed an html widget for last.fm and everyone can get it at http://simplewidget.as.tl and you can see a live demo on my website http://schipplock.de.

Hope you enjoy it like me :D.

]]>
http://blog.as.tl/2008/12/27/simplewidget-lastfm-html-widget/feed/ 0