Nukin’ Twitter account

Here is the case – you’ve been using your Twitter account for a couple of years now and you feel like making a change in your life, starting all over again. Of course, you don’t want to delete the account cause that implies deleting all the people you follow or are followed by. There is this site called TwitterWipe that supposedly does the thing. Well, it doesn’t. The service is too damn slow and though they say that it might take a few hours it didn’t do anything for me after 9h. So, useless.

So, we need a plan B. And this one comes with a bit of hacking. I’ve found a service that actually works – TwitLan The down side is that you have to click on every single twit in order to “delete them all”. If you happen to have 1000+ messages that can be pain in the ass.  We need a Swiss knife for this issue – Firefox plugin called CheckFox. Install this small plugin, restart your browser and go to TwitLan. Authorize it to access your account an list ~100 messages. Then just select the whole page, or just part of the page where your tweets are displayed, right click and select Check All. This will mark all the tweets on that page selected. Then just delete.

This page has a rather low execution time set for code so be careful not to select too many tweets – after 30 seconds the page will crash. I suggest going for 60 at a time. Far better than doing it all manually.

This service doesn’t remove retweeted messages but neither does TwitterWipe. You’ll have to remove those yourself.

Tags: ,
Posted in Tools Web by riddler. No Comments
It's you and me.. and billions of bugs. of bugs.

Great link – some useful notes on GCC

I was looking for how to set a breakpoint within my source code in gcc, and stumbled upon this really nice collection of gcc tips that I would like to share:

http://www.pixelbeat.org/programming/gcc/c_c++_notes.html

in general the whole site is worth checking!

Posted in C++ by akiko. No Comments

Qt and GCC 4.7.0 -std=c++0x

Another bump. Switching to gcc 4.7.0 and trying to compile my qt code with -std=c++0x, fails legendary. The error message is intuitive like ever. It says something like:

error: inconsistent user-defined literal suffixes '_FILE_' and 'QTOSTRING' in string literal

According to this

https://bugreports.qt-project.org/browse/QTBUG-22847?focusedCommentId=168644&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

According to this, here is the solution, at least until we get new qt, or recompile it ourselves, or I don’t know what:

Magick: override fix for qt and c++0x
#define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)

Add this before any Qt includes. It solved my problem.

 

Posted in C++ Qt by akiko. No Comments

GCC 4.7.0 on Ubuntu 10.10

I needed to have gcc 4.6+ on my laptop to compile some c++11 code, which my gcc 4.4.4 from synaptic wasn’t able to handle. Yes, yes ‘update your ubuntu’ is the default warcry in such situations, but I didn’t want that to happen, not yet. So I needed a second gcc in my system. This is a reminder post to myself, nothing spectacular, it’s a bit dirty as well, and it’s already thoroughly documented here http://gcc.gnu.org/faq.html#multiple

What I did was, checked out the latest gcc from svn.  Configured it with ./configure –prefix=/usr/local/gcc-4.7.0 –program-suffix=-4.7.0 (btw that suffix is completely unnecessary because all files will anyway be dumped in a folder named gcc-4.7.0) and than called make -j10 (yes I went out, grabbed some food, a coffee, got back and it at that very second it was done). make install finally to install it into /usr/local/gcc-4.7.0/

Additionally I’ve overridden the existing symlinks to let me use the new gcc as default gcc:

ln -s /usr/local/gcc-4.7.0/bin/g++-4.7.0 /usr/bin/g++ -f

ln -s /usr/local/gcc-4.7.0/bin/gcc-4.7.0 /usr/bin/gcc -f

And one last thing, for programs compiled with 4.7.0 you need to tie in the new libstdc++ as well, otherwise you’ll get an expected error message when executing them. Each libstdc++ covers all previous versions, but cannot cover future versions. For example, with my gcc 4.4.4 from synaptic the libstdc++ version was: 6.0.7. The new gcc 4.7.0 comes with libstdc++ 6.0.14.

Just like the gcc and g++ a symlink for libstdc++ exists in /usr/lib. We need to override that one as well:

ln -s /usr/lib/libstdc++.so.6 libstdc++.so.6.0.14 -f

And that’s it. Of course, there are some other libs like the one for objective c etc. that need to be symlinked. OR you can make your own shell script that sets LD and exe paths accordingly, and while working in that context, you can use the selected gcc version. I will try this out, and add it to this post, one day .. soon?

Posted in C++ Ubuntu by akiko. 1 Comment

Owlboy – when my heart goes ta-dum-ta-dum

It started snowing, it’s christmas, and I am a great fan of 2d games. And that’s particularly true when they are made of pixels. Ok, all games are made of pixels, but what I meant is – real pixel art, sprites and bobs, limited number of colors, blocky esthetics, everything that smells like amiga.

Enjoy this wonderful trailer, I can’t wait for the game to come out – Owlboy, we welcome you!

Access box.com (box.net) from your Ubuntu

Several ways found so far, the suggested ‘through the nautilus’ webdav connection approach never worked for me on both 10.10 and 10.04. Maybe it works with a later version, I don’t know.

But here is an easy way to set it up.
* Open terminal
* sudo vim /etc/fstab
* append this line to the bottom:
https://www.box.com/dav /home/youruser/box.com davfs rw,user,noauto 0 0
Naturally change youruser to match your actual user.
* Save and exit vim
* cd ~
* mkdir box.com
* mount box.com/
* type your full user name, don’t forget the email part! (ie. name@email.com)
* enter password

That’s it.

After that you can use rsync, cp, mc or any other tool to copy data back and forth.

Posted in Ubuntu Uncategorized by akiko. 10 Comments

Amiga C Book accompanying floppy – “Grafik in C”

What a wonderful, inspiring weekend, spent writing some C in Cygnus Editor. Few months ago a coder from my demo group from the nineties found his Amiga 1200 with a fully functional and kicking hard disk. In one of its deeply nested, completely deprived of any systematical approach, ‘drawers’ (that’s how folders were called on amiga), I’ve bumped into the contents of one of the rarest books for amiga, low profile, cheaply done, published only in Germany, never translated to english, called: Grafik In C. But it has tons of hints (quite valuable today) on how to do some advanced gfx coding in C (copper, blitter, viewports, pixel manipulation, basic 3d etc.).

SO, I decided to share it with anyone who might be in need of good tutorials:

http://almagest.modmancer.com/data/grafik_in_c.zip

 

 

Posted in Amiga C++ Demoscene by akiko. No Comments

Protozoa by Almagest – Demo in browser (html5/js)

Ok, here is the story. The amiga demoscene group i was coding for back in the nineties has called for reunion, so here we are, with our first public appearance after 15 years, since the age of BBS’s :)


Protozoa
, by Almagest, 2011
Music: BLAME, “convergent fields” album.

 

 

Credits: akiko (code), BLAME (music), blue imp (closing words)

Readme file: agt-protozoa.txt

Youtube:

I’ve chosen html5/js as the platform for this demo (ok, technically it’s a trackmo), because it’s a simple and easy way to do it, and it’s online.. well, times have changed, people got accustomed to different ways of thinking, downloading and installing files seems to have become quite an effort for a common user, so here we go – one click away from it – everything online, just click and watch.. or at least that’s what you can do if you have HTML5 capable browser, and I actually suggest: Firefox 4 (version 3 is too slow), Chrome or IE9 (official). I think Opera would do as well, they used to have quite a fast js engine, and html5 (especially canvas pixel pushing) was pleasingly fast, last time I tested it.

JS, HTML5, Chrome and Uncaught Error: SECURITY_ERR: DOM Exception 18

Firefox has it. Chrome has it too. You cannot do some funky things with the files coming from different domains than the script you are running. I was just trying to load image from http://www.modmancer.com, and then to do some simple image manipulation code starting with:

var data = context.getImageData(0,0,100,100);

and both Firefox and Chrome choked on that snippet.

Discussion about this issue is too long and boring, if you want, you can follow it from this link, it’s your funeral: http://code.google.com/p/chromium/issues/detail?id=40787&q=ajax%20local&colspec=ID%20Stars%20Pri%20Area%20Feature%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS

Anyway – how to avoid this ANNOYING issue while doing local development? Simply start chrome with ‘–allow-file-access-from-files’ argument, and you are done. Don’t forget to clear this argument when finished, it could eventually become a threat to your browser’ safety.

Didn’t figure out how to disable this idiocy in firefox yet.

Tags:
Posted in HTML5 Js by akiko. 2 Comments

Ubuntu 10.10 – How to disable Nouveau kernel driver

Usually I look after this over and over again, each time I set up ubutntu 10.04 or 10.10. So, this time I will post the link to the quick solution:

http://ubuntuforums.org/showpost.php?p=10324779&postcount=8

Just in case the link is unavailable, here is what it says:

Re: Disable nouveau
Quote:
Originally Posted by bmeakings View Post
You can edit the modprobe blacklist file (terminal: gksu gedit /etc/modprobe.d/blacklist.conf) and add these entries at the bottom:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
Then reboot and they shouldn't be loaded. I had to do the same with my system.
You also have to type "sudo update-initramfs -u" to create a new image and reboot before nouveau is actually removed.