Friday, October 21, 2011

Building Node.js 0.5.9 on Cygwin

Default build fails on compile, complaining about _SC_PAGESIZE (and a few more symbols) undefined. To fix that, edit deps/uv/src/unix/cygwin.c, add unistd.h header so it looks like this:

include "uv.h"


include <assert.h>
include <stdint.h>
include <stddef.h>
include <errno.h>
include <time.h>
include <unistd.h>

Next, it will fail when linking, like so:

collect2: ld terminated with signal 11 [Segmentation fault], core dumped
Can't open .lib file: default/libnode.dll.a
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: Can't open output def file default/libnode.def


To address that, create a directory: out/default

mkdir out/default


Now you should be able to complete the build. Enjoy using NodeJS!

Wednesday, October 06, 2010

Making Qt Creator 2.0.1 ignore __attribute__((packed))

What brought you here is that you are annoyed by the fact that Qt Creator does not recognize types, declared with GCC __attribute__() extension syntax. It is an easily fixed issue though, which I have also sent a comment about in Qt Creators JIRA(http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1358?focusedCommentId=128773&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_128773). To overcome it, simply add the following to your project's .config file:

#define __attribute__(spec)

At which point the Qt Creator should re-parse your project and update code database. You might have to close then open currently loaded documents, though.

Thursday, January 17, 2008

Perl.com is screwed?


Just went to check on the progress of perl dying at http://perl.com -- some crap showed up in the best traditions of mistyped domain names. WTF?

Thursday, December 20, 2007

Problem with downloading 2008 express editions of MS visual studio line?

You here because you were stoned waiting for downloads to begin from this page http://www.microsoft.com/express/download/default.aspx , but they didn't. Apparently due to a simple javascript error -- doDownload() function is not defined. But do2005Download() is. But no worries, simply open the page's source and you will find the links in value attributes of OPTION HTML elements...

Monday, September 24, 2007

Web illusions

Web 2.0 is a buzzword, make money out of it while you can, but do not bet on it to stay around for very long. There is no such thing as Web 2.0, but hacks around so called "AJAX" and DHTML. Hacks, which have been silently around for years, until recently, until someone clever realized that money can be made by blowing the buzzword trumpet.

What standards Web 2.0 is based on? "AJAX" -- give me a break -- it's not a standard, but hacks around Microsoft originally introduced XmlHttpRequest class... Else is just DHTML and DOM in plain JS.

As long as HTTP/HTML is around, Web 2.0 is not going to happen. It's inefficient, as of now, and never will be. The whole concept has to change. We need a paradigm shift, not desperate hacks. Do not beat tachnology into submission, don't violate it, or rape. Right now technology is a harlot, a hostage. Not money, but pure practicality must drive webolution. Just like abacus got replaced by more efficient tools, it has to become a necessity, not just fashion trends.

Try to wear those podium designer clothes in your daily commute.

Web 2.0 is just that--a beautiful and expensive cage bird, unable to fly. We need a meteorite impact to cleanse the web from HTTP/HTML/Web2.0 dinosaurs

Friday, September 21, 2007

Safari shows Google coupon feed API page last modified on December 31, 1969

Pretty cool, I wasn't even born yet. http://code.google.com/apis/coupons. Perhaps they have fixed that already by the time you gonna click this link...

Whatever trademarks, mentioned on this page are property of their respective owners

Friday, August 31, 2007

symbol cerr: referenced symbol not found

This happens when you dlopen. Figure which shared object causes it and explicitly link yours against it.

BW_GLOBAL_TRUSTED_CA_STORE - getting it to work on UNIX

If you have ever experienced pain while deploying your EAR in UNIX - something about IO errors in the log... Now the funny part: just use four slashes in the URL, like so:

file:////etc/trustedCertificates

Tuesday, August 28, 2007

Monday, June 18, 2007

Compiling Fluxbox 1.0rc3 on Cygwin

It would choke up on ./configure. To overcome I used:

LDFLAGS='-L/usr/X11R6/lib' LIBS='-lX11' ./configure

Friday, February 09, 2007

Giuliani next US president

How about Giuliani is going to be next US president. Why? Because I have seen it in my dream: a copy of Washington Post dated sometime in November 2008 with Rudy's smiling photo, hands raised -- one with a victory sign, and a headline "Giuliani Won". And for other reasons: the Americans just aren't ready for neither first woman nor first black president. First woman president will will also be black, guess who?

Monday, February 05, 2007

Where the hell am I?

I've been travelling a lot as of late. Switched jobs, you know. Countries too. I've been doing a lot of driving recently, perhaps will start a blog about it one day. Wrecked my old car already, hit a damn deer. The thing was a thousand pounds in weight, at least, totalled the car!

Thursday, March 30, 2006

IE and <pre> tags in the blog text

A couple of stories ago I mentioned that this blog looks broken when viewed in IE. I thought 'float' style, used in the blog template was a culprit. Turned out that it was due to <pre> tags I freely scattered around in text of some blog entries, featuring patches and code samples. Jist another thing to watch for when using blogger.

Links to the site and front page redirects

COPYRIGHT NOTICE: Certain below used words and phrases may be registered trademarks of their respective owners


A quick observation, it seems that Google might have certain issues counting links to your site if it redirects from its main page "inland" of the site, i.e. for instance:



http://my.site.com |-(HTTP_MOVED_PERMANENTLY)-> http://my.site.com/news

Meanwhile, other sites, linking to yours are using base URL, i.e. http://my.site.com. Looks like a sure way to get zero page rank on the front page.

Monday, February 27, 2006

Can't click links in Google Adsense?

COPYRIGHT NOTICE: Certain below used words and phrases may be registered trademarks of their respective owners


When it comes to earning a buck from online advertisement on your site, almost everyone turns to Google Adsense. It's nice, it's non intrusive (for the most part), and better yet - it's free. It's no sweat to put it on your site, it's customizable and blends in...

However, even if it looks good, it does not mean you'll start getting clicks right away, even if your visitors are willing. Why? There are certain peculiarities with links on a top of alpha transparent backgrounds in IE. Sometimes such links become non-clickable, the behavior described by Holger Rüprich and Justin Koivisto. There is a workaroud also suggested, but it works for links, which are already on the page. The way Adsense works is dynamic, links are produced by means of javascript. So the workaround does not work on them .

The solution would be to script a fix using DOM: pull elements of a particular type (A) and then apply a position style. I am working on this fix now. Once done, I'll publish it here. So stay tuned!

Saturday, February 25, 2006

Broken sidebar...

I noticed that this blog (at least in this particular theme) looks kind of wierd in some versions of IE. Side bar does not appear where it supposed to be, instead it shows up below the text area. This is, perhaps, due to some perks in IE regarding "float" style. Blogger could also be IE frendlier a bit... I'll fix this later.