Showing posts with label Internet. Show all posts
Showing posts with label Internet. Show all posts

Wednesday, December 23, 2009

Codepad and Ideone - a new kind of pastebin

Codepad and Ideone are pastebins that let you execute code. Ideone also accepts input:
http://ideone.com/P7WKrT2I
http://ideone.com/o1GGFBV4

This would make an awesome learning tool for schools and such. Make it into some kind of appliance, add a bunch of examples, problems, tests and such and it can teach kids collaborative debugging and the basics of programming.

If I had to guess it's running User Mode Linux (or some similar jail) and ptrace (or some similar systrace or syscall tracer).

I poked a bit with perl "Config" (eg: perl -V) and it looks like they're running Gentoo.. all accounts seem to be on the same instance (nobody). So it's most likely a jail.

osname=linux, osvers=2.6.28-gentoo-r5, archname=i686-linux
uname='linux devel 2.6.28-gentoo-r5 #1 smp sun apr 26 22:00:57 cest 2009 i686 intel(r) core(tm)2 quad cpu q9550 @ 2.83ghz genuineintel gnulinux '

It looks like they did a very good job though, especially with the number of people poking around or running forkbombs :-).

Sunday, March 29, 2009

Firefox Firebug vs. Internet Explorer 8 Developer Tools

Looks like IE 8 has a pretty neat feature called "Developer Tools". It's _very_ similar to Firebug:



Being able to import Firefox and Opera settings and adding quite a few of their features makes IE 8 pretty interesting.

Friday, March 06, 2009

Deja Vu Sans Mono / BitStream Vera

Tuesday, March 03, 2009

Deleting Flash10a.ocx after uninstalling / updating ActiveX Flash

When updating Flash it sometimes leaves some files behind you cannot delete, even though there is no lock on the file (handle, unlocker, whatever).

You need to unregister it using regsvr32:

regsvr32 "C:\Windows\SYSTEM32\Macromed\Flash\Flash10a.ocx" /u


Now you can update your Flash...

Thursday, February 19, 2009

Configure Firefox to perform DNS lookups via proxy

If you've configured a proxy in Firefox it still may leak DNS requests. Type in:

about:config

in the address bar, and look for:
network.proxy.socks_remote_dns

Wednesday, December 31, 2008

Download HQ MP4 or FLV movies from youtube

Just add the following without the quotes after the youtube film URL and use something like FlashGot (or grab the full URL with Firebug) to download it:

"&fmt=18" for HQ MP4 format
or
"&fmt=6" for HQ FLV format.

The "Flash Video Resources Downloader" Firefox addon seems to get this right and is able to download FLV, HQ FLV and HQ MP4 format movies from Youtube and can also handle similar sites. The downside is reliance on a web hosted php script (it means visiting this site every time you want to download something to grab the URL).

Thursday, November 13, 2008

DHCP Server on AIX

# vi /etc/dhcpsd.cnf

leaseTimeDefault 30 minutes
leaseExpireInterval 3 minutes
supportBOOTP yes
supportUnlistedClients yes

network 192.168.0.1 255.255.255.0
{
 subnet 192.168.0.0 192.168.0.11-192.168.0.16
}


# startsrc -s dhcpsd
0513-059 The dhcpsd Subsystem has been started. Subsystem PID is 335890.

# lssrc -ls dhcpsd
Log file: /usr/tmp/dhcpsd.log
Log Level: 0x16
Client Expire Interval: 3600
Reserve Expire Interval: 900
Bad Addr Reclaim Interval: 4394967295
Database Save Interval: 3600

 
IP Address Status Duration Time Stamp Client ID
---------- ------ -------- ----- ------- ---------
192.168.0.11 Leased Infinite Nov 13 12:22 1-deadbeefcafe
192.168.0.12 Leased Infinite Nov 13 12:24 1-abadcafebabe
192.168.0.13 Free
192.168.0.14 Free
192.168.0.15 Free
192.168.0.16 Free

Friday, November 07, 2008

Bitlbee - Yahoo and IM console client on AIX

Bitlbee supports XMPP/Jabber (including Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ and creates a localhost IRC server you can connect to with say EMACS ERC irc client. Great for the whole ssh -> screen -> EMACS -> ERC deal.

It's quite nice for consolidating all your communication inside of Emacs (IRC via ERC, mail and news via GNUS, IM via bitlbee), etc.

Luckily, Bitlbee compiles out of the box on AIX, and you don't even need root permissions to use it.

Simply download it and compile it with say gcc:

% gunzip -c bitlbee-1.2.3.tar.gz| tar xf -
% cd bitlbee-1.2.3
% ./configure --ssl=openssl
% gmake
% ./bitlbee -D -n -v -i 127.0.0.1 -p 12345 -c ./bitlbee.conf
Now connect your IRC client to localhost port 12345 and create your account.
register password
account add yahoo username password
account on

Thursday, September 11, 2008

Adding more speeddial boxes to Opera.

By default, Opera uses a 3x3 grid for the speeddial. You can change this to whatever you want by editing the speeddial.ini file.

Open a new opera tab and type in opera:config and search for "speeddial" in the Quick Find bar.

You now have the location of speeddial.ini from User Prefs - Speed Dial File. Edit this file.

Make sure you close Opera, and edit this file.

Add the following lines to the top of the speeddial.ini file:

[Size]
Rows=4
Columns=4

This should give you a solid 16 speeddial boxes.

Sunday, September 07, 2008

Making VMware Console work with Firefox 3.0.1

If you're running VMware Server 2 and require the console plugin to work with Firefox, you can use this trick to make it work once you update to Mozilla Firefox 3.0.1:

Just edit the VMware Console plugin install.rdf and change the:

3.0.0.*

to

3.0.*
or
3.0.1.*

and restart Firefox. Now update Firefox and all should work fine.

The install.rdf should be located in the plugin folder (~/.mozilla or similar on UNIX and Document and Settings or User/username/Application Data on Windows. Example:

C:\Documents and Settings\cmihai\Application Data\Mozilla\Firefox\Profiles\eqz4a1i8.default\extensions\VMwareVMRC@vmware.com

Just search for VMwareVMRC.

Thursday, July 24, 2008

Sun announced intentions to release SunWebServer under BSD license

Sun will opensource part of their web stack under a BSD license.

"Sun announced
that it is open sourcing the core components of the Sun Java(TM) System Web Server 7.0 and Sun Java(TM) System Web Proxy technologies under a BSD (Berkeley Software Distribution) license in the Web Stack sub-project of the OpenSolaris community. The Web and Proxy source code will be available in CY08Q3."

http://www.opensolaris.org/os/project/webstack/

"We're pleased to announce that the Web Stack project will be taking on the Open Source releases of the Sun Web and Proxy Server.... under a BSD license. Read about this and other plans in the Sun press release"

Thursday, May 15, 2008

Digg down, suggests you watch some p0rn while they restart the servers

Digg was down for a couple of minutes. Check the highlighted links :-). I'm wondering if that's a bug or a feature...




Doesn't look like anything was hacked though, google indexed it and all.



Either way, some of the links aren't exactly "Safe for Work" and it seems pretty irresponsible to put them on the front page like that, heh.

Tuesday, April 01, 2008

International High IQ Society

TA3 is the most difficult standardized IQ test provided by the International High IQ Society. It's geared for accurate higher IQ levels, rather than 90-110 IQ levels. Nice if you're sick of all those online IQ tests where you always score 160...

Sunday, March 09, 2008

Communigate Pro - Mail and Communications on OpenVMS

Communigate Pro is by far one of the best communications suite, and can easily replace even an Exchange / LCS / OCS suite (Unified Communications and all that). It can do clustering, VoIP, interface with Windows phones and has integrated WebMail, mailing lists, and so on.

The installation is pretty straight forward too. First, disable OpenVMS POP3 and IMAP services, and make sure nothing is running on port 8010 and 8100. Then unzip and proceed to install the POLYCENTER package.

$ PRODUCT INSTALL CGatePro

Once the installation is over, start CommuniGate Pro services and login to the administrative interface withing 15 minutes. Enjoy.

@SYS$COMMON:[CommuniGate]STARTUP.COM START



The WebMail is pretty nice too:



It also has Calendar function and a few themes (the XCHANGE one looks like OWA from Exchange).



By default, CommuniGate Pro supports the following features:

+ Mail + POP + IMAP + PWD + ACAP + WebMail + WebSite + Relay + Mobile + FTP
+ MAPI + TLS + S/MIME + LDAP + WebCAL + RADIUS + SIP + PBX + XMPP + XIMSS

Here's a screenshot of the WebMail SSL (HTTPS) interface with the XCHANGE skin:



So now you can have a fully encrypted, secure, highly available enterprise communications suite with E-Mail and VoIP features on your OpenVMS cluster :-).

HP OpenVMS Secure WebServer (Apache)

Now that we've tested WASD, we can also try HP Secure WebServer (ex Compaq WebServer). It's basically Apache + SSL and OpenVMS patches.

FTP upload or download or get the packages on the server.

$ DIR SYS$SYSROOT:[SYSMGR.hpweb]

Directory SYS$SYSROOT:[SYSMGR.hpweb]

CPQ-AXPVMS-CSWS-V0201-1-1.PCSI_SFX_AXPEXE;1

Total of 1 file.
$ SET DEF SYS$SYSROOT:[SYSMGR.hpweb]


$ RUN SYS$SYSROOT:[SYSMGR.hpweb]CPQ-AXPVMS-CSWS-

V0201-1-1.PCSI_SFX_AXPEXE;1
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-

Bugs@lists.wku.edu).
inflating: CPQ-AXPVMS-CSWS-V0201-1-

1.PCSI$COMPRESSED
inflating: CPQ-AXPVMS-CSWS-V0201-1-

1.PCSI$COMPRESSED_ESW


$ DIR/SIZE

Directory SYS$SYSROOT:[SYSMGR.hpweb]

CPQ-AXPVMS-CSWS-V0201-1-1.PCSI$COMPRESSED;1
24952
CPQ-AXPVMS-CSWS-V0201-1-1.PCSI$COMPRESSED_ESW;1
18
CPQ-AXPVMS-CSWS-V0201-1-1.PCSI_SFX_AXPEXE;1
19887


$ PRODUCT INSTALL
_Product name (* to show list): *
The following product has been selected:
CPQ AXPVMS CSWS V2.1-1 Layered Product


Once the package is installed, configure it:

@SYS$MANAGER:APACHE$CONFIG

Now you can start apache:

$ @SYS$STARTUP:APACHE$STARTUP.COM

$ TELNET deimos 80
GET / HTTP/1.1
HTTP/1.1 200 OK
Date: Sun, 09 Mar 2008 10:20:05 GMT
Server: Apache/2.0.52 (OpenVMS)


Let's say we'd like to patch our webserver instead, using Web Server Suite Software Patch Kits.

Stop Apache:

$ @SYS$STARTUP:APACHE$SHUTDOWN.COM

$ RUN CPQ-AXPVMS-CSWS211_UPDATE-V0100--4.PCSI_SFX_AXPEXE;1
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: CPQ-AXPVMS-CSWS211_UPDATE-V0100--4.PCSI$COMPRESSED
inflating: CPQ-AXPVMS-CSWS211_UPDATE-V0100--4.PCSI$COMPRESSED_ESW
$ PRODUCT INSTALL
_Product name (* to show list): *

The following product has been selected:
CPQ AXPVMS CSWS211_UPDATE V1.0 Patch (remedial update)

[...]

The following product has been installed (and a recovery data set created):
CPQ AXPVMS CSWS211_UPDATE V1.0 Patch (maintenance update)

CPQ AXPVMS CSWS211_UPDATE V1.0: Functional update for CSWS V2.1-1

Post-installation tasks are not required.

Now you can start the webserver:

$ @SYS$STARTUP:APACHE$STARTUP

You can now just drop stuff in SYS$COMMON:[APACHE.HTDOCS]

WASD VMS Hypertext Services

Time to take a look at the "non-stop webserver", aka WASD VMS Hypertext Services.

To install this webserver, we're going to need the compiler suited we've previously installed (C and CXX-V products).

To install WASD, you need to download and unpack 2 images: HTROOT921.ZIP, the platform independent pack, and HTROOT921-AXP.ZIP (or VAX or IA64) - the platform specific files.

The installation process will largely go like this:

$ SET DEFAULT DKA0:[000000]
$ UNZIP "-V" SYS$SYSROOT:[SYSMGR.wasdkit]HTROOT921.ZIP;1
$ UNZIP "-V" SYS$SYSROOT:[SYSMGR.wasdkit]htroot921-axp.zip;1
$ @dka0:[HT_ROOT]INSTALL
$ @HT_ROOT:[INSTALL]DEMO.COM

%HTTPD-I-SOFTWAREID, HTTPd-WASD/9.2.1 OpenVMS/AXP SSL


The INSTALL procedure will take a while to compile then link the package. If you do not have the OpenVMS SSL product (Compaq/HP) you'll require the OpenSSL toolkit.

Friday, March 07, 2008

Steve Wozniak - iWoz

Here's a great talk by Steve Wozniak (the guy that co-founded Apple with Steve Jobs). He's the guy that created Apple I and Apple II.



He talks about his life, and how Steve Jobs lived the life of a hippie, etc :-). Cool stuff. Plus, he's a great engineer.

"Where really smart people work, there's generally doors unlocked"
Steve Wozniak - on how he managed to obtain documentation to learn stuff.

Sunday, January 27, 2008

And justice for all...

Looks like hackers strike again to deface a government page... Guess it doesn't matter what type of target you are. Even the "High Court of Cassation and Justice" has something to worry about.

Saturday, January 12, 2008

Eating your own dogfood

A quick look on netcraft reveals that Microsoft is running Windows 2008 / IIS 7 on their main webservers. I must say, they must have a great deal of confidence in the thing... microsoft.com is a *very* loaded website, and tends to be a big target for various attacks.

Microsoft Corp One Microsoft Way Redmond WA US 98052 207.46.19.190 Windows Server 2008 Microsoft-IIS/7.0 9-Jan-2008

Even the ones marked "Unknown" are Windows 2008 / IIS 7. A simple telnet / netcat on port 80 and a GET / HTTP/1.0 will reveal that.

HTTP/1.1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /en/us/default.aspx
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
X-Powered-By: ASP.NET
Date: Fri, 11 Jan 2008 23:50:57 GMT
Connection: keep-alive
Content-Length: 136

Friday, January 11, 2008

eComStation - a modern OS/2 Warp

eComStation is an operating system based on IBM's OS/2 Warp. They are soon about to launch the 2.0 version containing bootable JFS and SMP support. It also contains interesting open source software such as OpenOffice 2 and Firefox 2.

Overall, it is a very polished OS/2 with new features to bring it in the 21st century. They also have a server version of eComStation.

Just like OS/2, it seems to dislike VMware or VirtualBox, so it runs a bit better in Microsoft's VirtualPC (which seems to have been made for OS/2 in the first place).