Friday, December 11, 2009

new wave swiss racism

As more examples of european islamophobia, no masjid minarets. The swiss should hold a referendum to outlaw crosses on churches, that would be fair.

Seems Hitler has finally gained a foothold on the swiss. But nothing against muslims are illegal in europe.

enough berak obama and the nobel

Never ending news on this just doesn't stop. Nothing is making me more sick to my stomach, see a murderer get a peace prize. Just goes to show how racist europe has become. What do you get when you kill muslims and invade a country, a nobel prize.

And what is the value of muslims, 0.

Tuesday, October 27, 2009

cloverfield is bullshit

just tried to watch this movie. It was crap. The moving camera gives me a headache and the story don't exist. It just follow these assholes and that's it.

Don't waste your time, I paid $2 for it, should have just downloaded it.

Friday, July 31, 2009

winxp sound disappeared

I was trying to install hauppage pvr150mce, a biatch of a device because it may not output sound. I install, uninstal many times, then the sound disappeared.

The solution is here:
http://www.techsupportforum.com/microsoft-support/windows-xp-support/368757-no-sound-drivers-installed-no-conflicts-but-hardware-not-seen-software.html

this was not the site that I used but i think its the same. the part about the swenum.sys was not necessary. Just copy the machine.inf , mod the machine.inf then add new hardware.

I don't know how the hell this guy figured it out but thanks, heaps.

trying to buildroot

Boy another pain in the neck. This thing has so many build options, something is bound to go wrong, and it does. I'm still trying to build it after 3-4 days!

It has to download then all the incomplete dependencies/combo. What a nightmare.

to get past vm86:
See https://bugs.gentoo.org/show_bug.cgi?id=235789
2008-09-09 Martin von Gagern

--- xorg-server-1.5.0.orig/hw/kdrive/vesa/vm86.h 2008-09-09 17:24:59.000000000 +0200
+++ xorg-server-1.5.0/hw/kdrive/vesa/vm86.h 2008-09-09 18:01:53.000000000 +0200
@@ -67,6 +67,13 @@
#include "os.h"
#endif

+#ifndef IF_MASK
+#define IF_MASK X86_EFLAGS_IF
+#endif
+#ifndef IOPL_MASK
+#define IOPL_MASK X86_EFLAGS_IOPL
+#endif
+
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned int U32;

Don't forget to add wchar (or wide char) support at the top level (and if not propergate to uClibc)
there as well. Also large file support is good too.

APE is crap again

I find that the JSF side is a little unreliable on firefox/linux (haven't tried any other combo). Sometimes (50%) it doesn't join the channel. ???

Why, donno.

Maybe I should reverse engineer anyterm. At least it's a better use of my time than this shite.

Sunday, July 26, 2009

i've been hit by ... i've been hit by ... win32:vitro win32:virut

yes a smooth criminal indeed.

I have been hit by this evil virus. Reminds me of something I got ages ago and couldn't remove and had to not trust anything in my old archives until a scanner can definitely detect it. Avast is the only thing that can detect post infection but not during running as it seems to still spread even with avast running! Better than nothing. It's now doing a scan and boy basically all the exe's are infected. I'm glad there's laws for virus creators, we just have to catch the b*****d.

So now I have to do the same thing. Install windows and download everything again. I'll prolly have to zip password my new backups and sum archive a list. Man dotnet, SP3 and SFU are huge files.

Friday, July 24, 2009

at last I fixed it

After hours of reading, learning javascript, mootools, firebugging, wiresharking, ddd, gdb it works. It's exactly what I wanted but what a way to learn it. Anyways below is what I used to get a working controller demo working.

First the apache configuration. I got this from someones post, something about APE on ubuntu, see http://www.blogger.com/post-create.g?blogID=1847386878976174462.

Here's my apache config:
create
/etc/apache2/sites-available/ape.conf

Contents:
<VirtualHost *:80>
ServerName ape.ape-test.local
ServerAlias *.ape.ape-test.local

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://localhost:6969/
ProxyPassReverse / http://localhost:6969/

</VirtualHost>

Then run the following to enable the config
sudo a2ensite ape.conf

Then restart apache
sudo /etc/init.d/apache2 restart

Put the demo into a directory served by apache, loading the script is another missing part.
demo.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en">
<head>

</head>
<body>
<script type="text/javaScript" src="../../Clients/mootools-core.js"></script>
<script type="text/javaScript" src="../../Clients/MooTools.js"></script>
<script type="text/javaScript" src="../config.js"></script>
<script type="text/javaScript" src="demo.js"></script>
<script type="text/javaScript">
var client = new APE.Client();
var debug=true;
client.load({
identifier: 'mailnotif',
channel: 'testchannel',
complete: function(ape){
var ape_c = new APE.Controller(ape, {container: $('ape_master_container')});
},
'scripts': APE.Config.scripts //Scripts to load for APE JSF
});
</script>
To try this demo, you need :
<ul>
<li>mod controller on APE server enabled</li>
<li>mod chat on APE server disabled</li>
<li>Set your APE server adresse in the controller/test.php</li>
</ul>
Then load this page and go to <a href="./test.php" target="_blank">controller/test.php</a> and you will see a message appear here.
<br/>
<br/>
<div id="ape_master_container" style="border:1px solid #000;padding:10px;background:#CCC;"></div>
<div id="debug"></div>
</body>
</html>

My demo.js, the join is the important missing part. It creates the channel.
APE.Controller = new Class({

Implements: [APE.Client, Options],

options:{
container: null,
logs_limit: 10
},


initialize: function(core, options){
this.core = core;

this.setOptions(options);
this.options.container = $(this.options.container) || document.body;
this.els = {};

this.onRaw('mailnotif', this.raw_data);

this.core.start();
// this.core.join('testchannel')
},
init: function() {
this.core.join('testchannel');
},

raw_data: function(raw, pipe){
new Element('div', {
'class': 'css_class',
'html': decodeURIComponent(raw.datas.value)
}).inject(this.options.container);
}

});

The ../config.js, the inclusion of mootools-core was missing as it defined the 'Class'. Also why the f*** is there 2 mootools-core? One in the Source directory and the other in Client, and they are different! Why not follow the common sense rule of using different names?
APE.Config.baseUrl = 'http://ape-test.local/jpscc/APE_JSF/Source'; //APE JSF
APE.Config.domain = 'ape-test.local'; //Your domain, must be the same than the domain in aped.conf of your server
APE.Config.server = 'ape.ape-test.local'; //APE server URL

//Scripts to load for APE JSF
(function(){
for (var i = 0; i < arguments.length; i++)
APE.Config.scripts.push(APE.Config.baseUrl + '/' + arguments[i] + '.js');
})('mootools-core','Core/Events', 'Pipe/Pipe', 'Pipe/PipeProxy', 'Pipe/PipeMulti', 'Pipe/PipeSingle', 'Core/Core', 'Core/Utility','Core/Session');

the /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

127.0.0.1 0.ape.ape-test.local
127.0.0.1 1.ape.ape-test.local
127.0.0.1 2.ape.ape-test.local
127.0.0.1 3.ape.ape-test.local
127.0.0.1 4.ape.ape-test.local
127.0.0.1 5.ape.ape-test.local
127.0.0.1 6.ape.ape-test.local
127.0.0.1 7.ape.ape-test.local
127.0.0.1 8.ape.ape-test.local
127.0.0.1 9.ape.ape-test.local
127.0.0.1 10.ape.ape-test.local
127.0.0.1 11.ape.ape-test.local
127.0.0.1 12.ape.ape-test.local
127.0.0.1 13.ape.ape-test.local
127.0.0.1 14.ape.ape-test.local
127.0.0.1 15.ape.ape-test.local
127.0.0.1 *.ape.ape-test.local
127.0.0.1 ape.ape-test.local
127.0.0.1 ape-test.local


Finally test.php
<?php
$ape_server = 'http://0.ape.ape-test.local';
file_get_contents($ape_server.'/?control&testpwd&testchannel&POSTMSG&mailnotif&testmsg&anticache');
echo 'Message sent!';
?>

Or if you prefer:
wget -c "http://0.ape.ape-test.local//?control&testpwd&testchannel&POSTMSG&mailnotif&hello_there&anticache"

There, that should work if I didn't miss anything. Phew all this just to scroll output from the console into a web page. APE doco and demo sucks but hope this helps you.

Wednesday, July 22, 2009

APE (ajax push engine) is shite

yes I was hoping to use some nifty (hopefully) asynchronous streaming using this shit but what I got was days of aggravation.

Yeah you will know something (as I have not finished yet) but from their lack of any useful documentation and their crappy demos which don't work. I'm trying to debug the bastard to see what's going on.

I'M STILL DEBUGGING!

Please god give me an alternative that does work! Somebody!

Friday, July 3, 2009

Greenspan are assholes

We recently received a document from these people. It was a simple request for data exchange. We got it but we also got some personal shit about our project. It was not part of what we asked of them. The comments basically said that our contractor was incompetent and our data was no good. They had no proof no real technical assessment and yet they threw this in to make them look good. It gave the impression that they were 'professional' and were somehow qualified whereas we are just monkeys in the jungle.

Do they know what equipment we used, our sensors. What the output is? No.
The output for wind is 4-20mA, why? because its more tolerant. Regardless of what is between the sensor and the datalogger the output will be 4-20mA. Same with soil moisture, nothing is gonna effect the frequency between the sensor and the logger. The water quality? It all digital!

Only voltage output is where it is most tricky.

This is what you can expect from Greenspan. Don't bother with condescending people like these.

Thursday, July 2, 2009

ubuntu live ... finally

I was scratching like crazy to find why I cannot just copy the casper-rw the casper directory and the .disk files n dirs into a partition and tell grub to boot it. It works but it wasn't persistent.

Now after debugging the casper script I have found the solution but not tested yet. Have to wait till I get home. It's this line in casper-helpers in the find_cow_device function

elif [ "$(get_fstype ${devname})" = "vfat" ]; then # FIXME: all supported block devices should be scanned

Funny how the fixme is actually the solution to the problem. What I had done is placed the casper-rw file on an ext3 partition. The loader only caters for the vfat file system. The solution is to add a condition when the persistent file is in an ext3 partition. Quick hack is to change the vfat to ext3, a better solution is to copy the 10 lines and change the vfat to ext3 or add an 'or' condition to the test.

That should fix it. Can't wait to go home or the office.

Monday, June 29, 2009

mounting win98 via samba

use this form
mount -t cifs //192.168.x.x/c /mnt/pc/x -o servern=pc1

adaptec storage manager

this app will run on RHEL5 but will not log in. What it quietly needs is the stdc++ compat libs.
Go to the RHEL cd and install the:
compat-libstdc++-296-2.96-138.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm

Now you can login.

Monday, June 22, 2009

carrefour subang are crooks

yes only in this country.

One day I went to carrefour, through the carrefour security, bought something (webcam) I thought was covered by carrefour return policy, see carrefour people walking around, paid at the carrefour counter.

It was a piece of crap, tried to return it to carrefour then they tell me it's consignment. Sorry no refund.

WHAT!

The shops outside the carrefour area I know don't belong to carrefour, but this was within the carrefour area. Big W in Australia tried this and lost in court! Only in this fucking country they can get away with this. Frenchies are never known for playing by the rules, or gentlemenly conduct.

I was in a rush because the removalist was taking my household and I needed to be at the endpoint before they got there. Wanted to see the manager but he wasn't around. If I wasn't in a hurry I would've chased the damn manager until I skinned his yellow hide.

This is one time I wish I was a lawyer. Fuckin carrefour...go to hell.

Tuesday, June 16, 2009

kicking astro installation in the butt

and saving $50 or $100 or both.

I had to move from taiping to shah alam. It's a fair distance. But what about the astro. $50 to remove and another $100 to reinstall. Bugger it, I'' do it myself. I'll use my superior human intelligernce and figure out a strategy to do it for free.

First the satellite is not going to go anywhere so it will always be at the same spot in space. But you will move thought. This will effect the vertical and horizontal postion of the dish. First the reference point. Before moving let's mark the reference point. This is so that whatever happens you know that it had worked where you are. To do this you will need a marker pen and compass. Use the marker pen to mark the

have to remind myself to finish this

Wednesday, May 27, 2009

roundup issue tracker have issues

please note that the directory directive in the config file has been reinterpreted by the web server and thus is missing.


support
I'm trying to use ubuntu, apache and mysql to get this thing working.
It needs some additional info to work.
Here's my apache config file..I installed my files at /var/www/support

#################################################
# Roundup Issue tracker
#################################################
# enable Python optimizations (like 'python -O')
PythonOptimize On
# let apache handle static files from 'html' directories
AliasMatch /support/(.+)/@@file/(.*) /var/www/support/$1/$2
# everything else is handled by roundup web UI
AliasMatch /support/([^/]+)/(?!@@file/)(.*) /var/www/support/$1/dummy.py/$2
# roundup requires a slash after tracker name - add it if missing
RedirectMatch permanent ^/support/([^/]+)$ /support/$1/
# common settings for all roundup trackers
<Directory /var/www/support/*>
Order allow,deny
Allow from all
AllowOverride None
Options None
AddHandler python-program .py
PythonHandler roundup.cgi.apache
# uncomment the following line to see tracebacks in the browser
# (note that *some* tracebacks will be displayed anyway)
PythonDebug On
</Directory>

# roundup tracker homes
<Directory /var/www/support>
PythonOption TrackerHome /var/www/support
PythonOption TrackerLanguage en
</Directory>

#
# PythonOption TrackerHome /var/db/roundup/devel
#

in config.ini
add:
web = http://localhost/support/html/

the end part is the important thing ie the html/

Thursday, May 14, 2009

the difference between managers and engineers

it's the manager's job to find faults, it's the engineer's job to find solutions

Wednesday, April 29, 2009

hp dv1000 wireless button

to turn this bugger on
rmmod ipw2100
then
modprobe ipw2100

Tuesday, April 21, 2009

our society sucks

The world we live in favours the rich. The rich gets to make more money and gets more benefits and discounts. The poor gets more interest, penalties and fines.

What I have unfortunately experienced is that if you cannot afford it or run into money problems you have to spend more. Late paying your house loans, they increase your interest rates. Late for anything else, gets fines.

Fucked up, totally unislamic.

Saturday, March 28, 2009

the muslim's dilema

what good is power if you can't use it for evil

Tuesday, March 24, 2009

nokia N73 is a piece of crap

yes, this phone is a piece of crap. do not buy or accept it as a gift. Dispose as soon as you get it.

I bought one for my wife, she complained and I offered to use it. After 3 days I wanted to smash it against the wall but I paid so much, 1700 for it that held me back. If I was well off I would smash it and save someone the agony of using it.

Here's why. The camera application takes forever to load. Over 60s is not uncommon. Not only that it resets itself several times before starting and frequently resets itself when trying to record video. I'm guessing it's out of memory but I only have 2 other things running, google maps and an antivirus. Sometimes I get fed up I just pull the battery out (since shutting down takes forever too). Restarting although >60s is faster than trying to fuck with the phone and getting it to work. If you want to get that sudden plane crash forget it, by the time you get the camera working it would have carshed and been cleaned up.

Another problem is the SMS messaging. Another SLOW application. When you press the 'show' option from the main screen it takes >30s to get there by which time the screen lock has kicked in and you have to enter the unlock code, what a frickin hassle. Even under normal circumstances its slow. Just to get to the message screen takes a while. By the time the phone is ready for input I've forgotten what I wanted to write!

Memory is another problem, 64Meg is not longer sufficient. Seems just the basic applications needs RAM memory, heaps of it. Seems the 'out of memory' error comes up too frequently. Unbelievable.

The web browser is another RAM memory HOG. After a couple of pages it complains that there is insufficient memory. And sometimes exits. Fucked up!

Apologies for the profanities but this phone is definitely not worth it, even for free. Borrow one first if you really want it. Try it for about 4 days.

Conclusion, get something better. Get a basic phone that works fast and get a separate digital camera.