You are viewing [info]farjumper's journal

Previous 10

Feb. 22nd, 2009

OpenBVE Train Simulator

I've just found an amazing video: http://www.youtube.com/watch?gl=GB&hl=en-GB&v=QtITwxTWLyM&fmt=18

I'm wondering how an opensource (or freeware in case of BVE) project can be better than fat comercial titles. I spend much time in simulators like Auran Trainz or MSTS but they have never given me the feel of power, the power of several tons of metal.

This project looks perfect in its beta stage. An environment shocks, the sound of engine is unsurpassed.

I had some troubles with running it on my Ubuntu 9.04. The binary downloaded from the home page can't find Tao.Sdl assembly, so I compiled it from sources:

1. Install mono, libmono-i18n2.0-cil, libmono-winforms2.0-cil, libtaoframework-openal1.1-cil, libtaoframework-opengl2.1-cil, libtaoframework-sdl1.2-cil, mono-gmcs
2. Download sources from the OpenBVE home
3. Compile (you have to invoke this from the directory with *.cs files ./openBVE/OpenBve)

gmcs2 -define:LINUX -define:DEBUG -define:TRACE -debug -lib:/usr/lib/mono/2.0,/usr/lib/mono/taoframework-2.1.0,/usr/lib/cli/tao-opengl-2.1,/usr/lib/cli/tao-openal-1.1,/usr/lib/cli/tao-sdl-1.2 -out:OpenBve09025.exe -r:Tao.OpenGl,Tao.OpenAl,Tao.Sdl,System,System.Windows.Forms,System.Drawing *.cs

4. Now you have your own executable. Replace the old OpenBve.exe with this one.
5. Download content to play (i suggest to start from here http://www.railsimroutes.co.uk/x-city_south/downloads.html)
6. Play and enjoy!

mono OpenBve.exe

Home page: http://openbve.uuuq.com

PS: Looking forward for more content and something like cataloguer for routes and trains (right now it's weakness of this game).

Feb. 21st, 2009

VIA's RND

XSTORE instruction (opcode 0x0F 0xA7 0xC0)

Registers and commands. The RNG is controlled through a 32-bit status/configuration register (MSR 0x110B), which is accessible only to ring 0 code. RNG data are read via the XSTORE instruction, a Nehemiah specific x86 command. Based on the 2-bit divisor setting, 1 to 8 bytes of the FIFO memory are copied to user memory on each successful XSTORE call. The XSTORE command also copies the contents of the MSR to user memory.

Jan. 6th, 2009

Wine with antialiasing... At last.

WINE 1.1.12 brought a new cool feature: support for sub-pixel font rendering. From now we can see antialiased text rendering everywhere in wine applications (like with ClearType enabled). The only thing you need before is to apply changes below to the registry:

============
REGEDIT4

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
"FontSmoothingType"=dword:00000002
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001
============

Before:
7.25 КБ

After:
14.30 КБ

See also: http://bugs.winehq.org/show_bug.cgi?id=16729

Dec. 22nd, 2008

Android and "Error generating final archive: null" [Micro-HOWTO]

1. Remove gcj or other non-vanilla JVMs and check if your 'keytool' points to Sun jdk.
2. If it stilll doesn't work delete ~/.android/debug.keystore and try again
3. If file debug.keystore is empty (filesize=0), try to create it by hand:
keytool -genkey -alias AndroidDebugKey -keyalg RSA -dname "CN=Android Debug, O=Android, C=US" -validity 365 -keypass android -keystore ~/.android/debug.keystore -storepass android

Aug. 26th, 2008

Photos

Test


Посмотреть в полный размер, 751.71 КБ, 1872x1176 )

Jun. 7th, 2008

Default Java in ubuntu? Don't panic..

When I installed Ubuntu first time I was a bit shocked why it use gij as a jvm (I was wrong at the time. gcj/cij is a perfect thing). Installing Sun's JVM didn't change anything so I decided to remove gcj completely. And only now I've read a doc about how to change default jvm in ubuntu. Heh, why i always don't Read That F$$$ing Manuals??? :)

Mar. 31st, 2008

Subversion server on Hardy

There are many different tutorials about how to istall subversion on ubuntu. (yes, i have totally adjoined to ubuntu/fedora/any_easy_friendly_distribution lovers). But the best solution for server installation as for me is stated by Joachim in his blog. Works great!

Mar. 9th, 2008

Pidgin and russian charset. Fixing offline messages.

I spent a lot of time some time ago for resolving problem when offline messages comes in bad charset (it looks like ????? ?? ???????) while online messages works great. It have relations for russian and ukrainian languages and as far as I know most people (and I is the one of them) use cp1251 as charset in pidgin account pregerences.

Today I found solution for this prob here and it works.

For some unknown reason cp1251 and windows-1251 isn't the same charsets for pidgin! What he devil..? Using windows-1251 resolved all problems.

Jan. 14th, 2008

Nortel VPN & Linux

Nortel's big problem is their client. At least while you are working under *nix.

There are several clients for linux with Nortel support: linux client on Nortel site. But its version is a bit outdated (3.3) and, moreover, goes to 404 :( Although, there is another product compatible with Nortel, ApaniVPN [1] that works under linux. (I think actually it is the same as Nortel's). But it seems that Apani guys are very busy and my Evaluation Request is still unanswered. The third is the Novel VPN, but its sources is unavailable (I believe they're not proprietary) moreover it doesn't work for me.

The only way I managed to connect to VPN server is using vpnc.

There is nortel branch for vpnc in their SVN [2] [3]. So you can get it via:

svn co http://svn.unix-ag.uni-kl.de/vpnc/branches/vpnc-nortel/

Unfortunately, it produced error "xauth packet unsupported: ATTRIBUTES_NOT_SUPPORTED" for our VPN server.

This problem resolves by a simple patch:

===================================================================
--- vpnc.c (revision 277)
+++ vpnc.c (working copy)
@@ -1443,7 +1443,7 @@
   for (ap = a; ap && reject == 0; ap = ap->next)
    switch (ap->type) {
    case ISAKMP_XAUTH_ATTRIB_TYPE:
- if (ap->af != isakmp_attr_16 || ap->u.attr_16 != 0)
+ if (ap->af != isakmp_attr_16 || !(ap->u.attr_16 == 0 || ap->u.attr_16 == 5))
      reject = ISAKMP_N_ATTRIBUTES_NOT_SUPPORTED;
     break;
    case ISAKMP_XAUTH_ATTRIB_USER_NAME:


Great. It works now! Now I can work even from home...

Links:
------
[1] http://www.apani.com/vpn-clients/nortel-linux.php - Apani Linux VPN Client
[2] http://www.earth.li/~noodles/blog/nortel-vpn-linux.html - Jonathan McDowell's blog
[3] http://ubuntuforums.org/showthread.php?t=441042 - Forum thread about Nortel in Ubuntu

Nov. 9th, 2007

Tweaking Eclipse's UI

Not long ago I found this article about font customization of Eclipse in Linuxes. One of the comments of this article made me happy. Wesley have proposed his .gtkrc-2.0 file - the tiny but superb GTK configuration which I used as basis.

Theme by wesley:




Wesley's config tweaks only data widgets like trees and lists and such widgets as Toolbar, Statusbar and Editor tab still remains in unconfortable appearance. I modified file a little so these widgets now occupied less space than before.

~/.gtkrc-2.0:

style "gtkcompact" {
font_name="Sans 8"
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkExpander::expander_size=10
GtkExpander::expander_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::expander-size=8
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class "GtkWidget" style "gtkcompact"

style "gtkcompactextra" {
xthickness=0
ythickness=0
}
class "GtkButton" style "gtkcompactextra"
class "GtkToolbar" style "gtkcompactextra"
class "GtkPaned" style "gtkcompactextra"



Tweaked version:

Previous 10

February 2009

S M T W T F S
1234567
891011121314
15161718192021
22232425262728

Syndicate

RSS Atom
Powered by LiveJournal.com