[Flashcoders] How to find dimensions of my own component, resized in auth. env.?

2007-03-23 Thread Alexander Farber
Hello, I have a simple component, it is a multiline TextField with wordWrap switched on and with a yellow rectangle drawn underneath: http://preferans.de/flash/ - the files Bubble.* I'd like the users of my component to be able to resize its width in the authoring environment, so that they

Re: [Flashcoders] Flash crashing dilemna - when adding an input textfield

2007-03-23 Thread Alexander Farber
Hello, here an idea from a total newbie - do you catch any keystrokes (like for controlling your player character)? On 3/22/07, Paul Steven [EMAIL PROTECTED] wrote: Basically the game crashes if I type into a text input field. If I do not then it doesn't. Regards Alex -- http://preferans.de

[Flashcoders] Re: How to find dimensions of my own component, resized in auth. env.?

2007-03-23 Thread Alexander Farber
width=160, 100 On 3/23/07, Alexander Farber [EMAIL PROTECTED] wrote: I have a simple component, it is a multiline TextField with wordWrap switched on and with a yellow rectangle drawn underneath: http://preferans.de/flash/ - the files Bubble.* I'd like the users of my component to be able

Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-22 Thread Alexander Farber
Looks wrong to me because the drawing code (the setBgColor()) is called outside of the draw() method. Flash Help says to call invalidate() from the set methods instead... On 3/21/07, Johannes Nel [EMAIL PROTECTED] wrote: he checks if the component is init'd On 3/21/07, Alexander Farber [EMAIL

[Flashcoders] createClassObject(OwnComponent) displays nothing on stage

2007-03-22 Thread Alexander Farber
Hello, I have written my own component (please see Bubble.* in http://preferans.de/flash/ ) which works ok - but only if I pull its instance onto the stage manually. If I try to instantiate it during runtime with - bubble_mc = createClassObject(Bubble, 'bubble_mc', 10, { _width: 80,

Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-21 Thread Alexander Farber
Thank you and sorry - I've missed the Color type in Flash help. But what is the role of __hasInitialized in your example? Why can't I just: [Inspectable(defaultValue=#66,type=Color)] public function get bgcolor():Number { return __bgcolor; }

[Flashcoders] Entering hex number (a color) as component parameter

2007-03-20 Thread Alexander Farber
Hello flash coders, I have a mostly working component (please see Bubble.* in http://preferans.de/flash/ ), but wonder how to make the background color to be a parameter. Currently I have: class Bubble extends UIComponent { [Inspectable(defaultValue=0x66, type='Number')]

Re: [Flashcoders] Inspectable parameters ignored in my 1st component

2007-03-18 Thread Alexander Farber
Hello Nel and others, On 3/14/07, Johannes Nel [EMAIL PROTECTED] wrote: [Inspectable(defaultValue=8, type=Number)] On 3/14/07, Alexander Farber [EMAIL PROTECTED] wrote: I'm trying to create a component representing a comic-like chat bubble and while it mostly functions fine, I have

Re: [Flashcoders] Inspectable parameters ignored in my 1st component

2007-03-18 Thread Alexander Farber
Thanks, I see - On 3/18/07, Michael Boski [EMAIL PROTECTED] wrote: what you want to do is add an inittext varible to hold the param until you finish initializing you text box and then push it in. this code works/ I tested it. the lines I added are 3 and have // line added MOB at the end of

[Flashcoders] Inspectable parameters ignored in my 1st component

2007-03-14 Thread Alexander Farber
Hello Flash coders, I'm trying to create a component representing a comic-like chat bubble and while it mostly functions fine, I have a problem, that the 2 parameters here are ignored (full source code: http://preferans.de/flash/Bubble.as ): class Bubble extends UIComponent { ...

Re: [Flashcoders] Site Check

2007-03-14 Thread Alexander Farber
Works for me, nice fotos On 3/14/07, white song [EMAIL PROTECTED] wrote: it's ok it's working :) On 3/14/07, Adrian Lynch [EMAIL PROTECTED] wrote: Could I get some of you to check this site: http://www.simon-mills.co.uk/test/ Some people are saying that it gets stuck at 1% or 2%. Can

FreeBSD Announces Intel Approval for Redistribution of Wireless Firmware

2007-03-08 Thread Alexander Farber
FYI (sorry if this already been mentioned here): http://www.prweb.com/releases/2007/03/prweb509818.htm In order to use the firmware provided by Intel, FreeBSD users must first agree with the license. FreeBSD developers have added a simple mechanism to the operating system to agree to the license

[Flashcoders] clearInterval(0);

2007-03-04 Thread Alexander Farber
Hello, is it maybe safe to call clearInterval(0) (same way as calling free(NULL) in C language) or should I better not rely on this? Here is my web chat function and I wonder if I could get rid of the very first line in it: var intervalID:Number = 0; var resp_lv:LoadVars = new LoadVars(); var

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-02 Thread Alexander Farber
Hello all, I have received many nice replies, thank you! Unfortunately none of them worked for me yet, lest editing C:\Program Files\Vim\vim70\syntax\syncolor.vim which is not what I need (please read below why). May I rephrase my question please? Does anybody please have a line, which I

hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-01 Thread Alexander Farber
Hello, I've spent several hours, but just can't figure out, why wouldn't Vim 7.0 on my english Win Xp Pro PC execute the highlight commands from my .vimrc. I'd like to have my Comments inverted and thus I have: hi Commentguifg=white guibg=black in my file C:\Documents and

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-01 Thread Alexander Farber
Hello Yakov, On 3/1/07, Yakov Lerner [EMAIL PROTECTED] wrote: Defining 'hi...' in vimrc is not good because 'color ...' commands, and possibly by 'syntax on' commands. sorry, I don't understand what you mean above. The better method to customize colors is to copy the colorscheme under your

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-01 Thread Alexander Farber
Hello, On 3/1/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 3/1/07, Alexander Farber [EMAIL PROTECTED] wrote: When I enter :hi Commentguifg=white guibg=black manually or :so ~/.vimrc then it does work. It's not ignored. It's overwritten later. 1. Try 'syn off' 'syntax on' after

hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-01 Thread Alexander Farber
Hello Hugh, On 3/1/07, Hugh Sasse [EMAIL PROTECTED] wrote: On Thu, 1 Mar 2007, Alexander Farber wrote: I'd like to have my Comments inverted and thus I have: hi Commentguifg=white guibg=black If I recall correctly, this will affect gvim, because you have have used GUIfg and GUIbg

Re: hi Comment guifg=white guibg=black in ~/.vimrc ignored

2007-03-01 Thread Alexander Farber
Hello Hugh, On 3/1/07, Hugh Sasse [EMAIL PROTECTED] wrote: :scriptnames 1: C:\Documents and Settings\afarber\.vimrc 2: C:\Program Files\Vim\vim70\syntax\syntax.vim 3: C:\Program Files\Vim\vim70\syntax\synload.vim 4: C:\Program Files\Vim\vim70\syntax\syncolor.vim 5: C:\Program

ActionScript (for Flash) files: non-english chars broken

2007-02-28 Thread Alexander Farber
Hello, is anybody using the Vim editor on Windows for editing ActionsScript files? My problem is that the cyrillic letters which are being displayed ok by Macromedia/Adobe Flash IDE appear broken in Vim 7.0. The russian text is displayed broken and twice as long as it should be and there are

[Flashcoders] Editing .as files with vim editor (non-english chars broken)

2007-02-28 Thread Alexander Farber
Hello, is anybody using the Vim editor on Windows for editing ActionsScript files? My problem is that the cyrillic letters which are being displayed ok by Macromedia Flash IDE appear broken in Vim 7.0. The russian text is displayed twice as long as it should be and there are repeatable P and C

[Flashcoders] Which components are used at spiegel.de?

2007-02-23 Thread Alexander Farber
Hello, does anybody please know, which Flash components are used at http://www.spiegel.de/static/flash/flashvideo-420-7.swf I've recognized the toolbars and a v2 DataGrid with custom cells, but what are the rest (some tabs)? Are they available anywhere? Regards Alex -- http://preferans.de

Re: apache security

2007-01-24 Thread Alexander Farber
Joachim, could you share your config files for that? On 1/23/07, Joachim Schipper [EMAIL PROTECTED] wrote: The simple solution is to not allow the web server to write anywhere but /tmp. Regards Alex -- http://preferans.de

Why setresuid() and not setuid() is used?

2007-01-22 Thread Alexander Farber
Hello, I'm writing a small network daemon program and want it to drop priviliges after it opens a listening port. I've looked at the several programs in /usr/src/usr.sbin and many do it in the similar way: 1) getpwnam(NTPD_USER) to find its home dir 2) check that the home dir belongs to root

Re: Why setresuid() and not setuid() is used?

2007-01-22 Thread Alexander Farber
Oops I meant Privilege revocation, like here: http://www.openbsd.org/papers/ven05-deraadt/mgp00033.html On 1/22/07, Alexander Farber [EMAIL PROTECTED] wrote: Also is there maybe a good guide on priv. sep. on OpenBSD?

Re: Why setresuid() and not setuid() is used?

2007-01-22 Thread Alexander Farber
Hello Stuart, On 1/22/07, Stuart Henderson [EMAIL PROTECTED] wrote: On 2007/01/22 12:19, Alexander Farber wrote: 1) Can't a compromised process change back to its saved root uid? setresuid/setresgid: set real, effective, *and saved* uid/gid ok! 2) Why is setresuid() used and not setuid

[maemo-developers] bora/INSTALL.txt - maemo-explicit: Depends: libosso-abook-dev but it is not going to be installed

2007-01-19 Thread Alexander Farber
Hello maemo developers, I'm trying to install Maemo on a RHEL4 PC and am following http://repository.maemo.org/stable/bora/INSTALL.txt but unfortunately I am stuck at this step (more details below): [sbox-SDK_X86: ~] fakeroot apt-get install maemo-explicit Reading Package Lists... Done

Re: Flash Player 9 on OpenBSD

2007-01-18 Thread Alexander Farber
Hi, On 1/17/07, Darrin Chandler [EMAIL PROTECTED] wrote: most real content in flash is about using the newest coolest features to get across what could easily be done in plain old HTML. Most clicked item on the web: Skip Intro sorry, you are wrong: there is some very cool flash stuff: like

[Flashcoders] A v2 Window with a Checkbox and a Button

2007-01-17 Thread Alexander Farber
Hi, I've drawn a red rectangle, then pulled a v2 Checkbox and a Button inside of it, named them my_checkbox and my_button and then converted all of that into a MovieClip which I called Settings and removed from the stage. Finally I've pulled a Window on the stage and called it my_win. While

[GENERAL] Knowing the length(convert(username using windows_1251_to_utf8))

2007-01-11 Thread Alexander Farber
Hello PostgreSQL users! I have this data stored in WIN1251 encoding, which is being fetched by a libpq application I'm developing: phpbb= show client_encoding; - WIN1251 (1 row) phpbb= \d phpbb_users; username | character varying(25) | not null default

Re: [GENERAL] Knowing the length(convert(username using windows_1251_to_utf8))

2007-01-11 Thread Alexander Farber
And additional question please: Can I still be sure that the data returned in the convert(username using windows_1251_to_utf8) column will be 0-terminated or should I fetch the data length using PQgetlength and maintain that value in my C-program? Thank you Alex On 1/11/07, Alexander Farber

Re: [GENERAL] Knowing the length(convert(username using windows_1251_to_utf8))

2007-01-11 Thread Alexander Farber
Hi Martijn, On 1/11/07, Martijn van Oosterhout kleptog@svana.org wrote: If you need the string in UTF-8, why not just set the client_encoding to utf8 and then the server will only send you strings in utf8, not conversion necessary. actually you are right, because I need all my data in UTF8

Re: [GENERAL] convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.

2006-12-28 Thread Alexander Farber
Hello Alvaro, On 12/24/06, Alvaro Herrera [EMAIL PROTECTED] wrote: Alexander Farber wrote: I started to prepare a test case and realized I had a bug. So convert() works for me, sorry for my previous message! In any case, it's probably saner if you SET client_encoding at the start

TALQ_LAST and TAILQ_PREV macros broken

2006-12-27 Thread Alexander Farber
Hello, the TAILQ_LAST and TAILQ_PREV macros in sys/queue.h only work because by coincidence the head and the entry struct are similar (they both have 2 pointers: struct type* and struct type**). If you insert a char dummy in between: #define TAILQ_ENTRY(type)\

[GENERAL] convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.

2006-12-23 Thread Alexander Farber
Hello, I'm programming a small Flash game with PostgreSQL 8.1.4 and phpBB serving as backend. The data in the database is in windows_1251 encoding. For my game I have to convert it into utf8, and at the command prompt it seems to work (I recon this because 7 win1251 chars seem to produce 14 utf8

Re: [GENERAL] convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.

2006-12-23 Thread Alexander Farber
I started to prepare a test case and realized I had a bug. So convert() works for me, sorry for my previous message! Regards Alex -- http://preferans.de ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: Moving from tcsh to pdksh: how to recall partially typed in command? (ESC-p)

2006-12-02 Thread Alexander Farber
Hi Otto, On 12/2/06, Otto Moerbeek [EMAIL PROTECTED] wrote: It looks like ESC-p cycles, but ESC-n not. If you have a terminal that has a beep, you'll hear a beep when ESC-p wraps, but ESC-n keeps beeping when the end is reached. I'll take a look at this. thank you. IMHO it would be better,

Re: Moving from tcsh to pdksh: how to recall partially typed in command? (ESC-p)

2006-12-01 Thread Alexander Farber
Hello Otto, On 11/30/06, Otto Moerbeek [EMAIL PROTECTED] wrote: Turns out matthieu@ already made an updated diff some time ago. Here it is. thank you for the patch. There seems to be a problem: I type an l (ell) and then use ESC-p to cycle through the previously typed commands starting with

Re: [Flashcoders] LoadVars+php

2006-11-30 Thread Alexander Farber
On 11/20/06, Andrea Maran [EMAIL PROTECTED] wrote: PHP : ip.php ? $ip=$_SERVER['REMOTE_ADDR']; $vars =; $vars = ip_num= . $ip ; echo $vars; ? And don't forget the X-Forwarded-For inserted by some proxies (Squid) Regards Alex -- http://preferans.de

Moving from tcsh to pdksh: how to recall partially typed in command? (ESC-p)

2006-11-30 Thread Alexander Farber
Hello, I'm trying to switch to ksh as my login shell. It seems to me, that the vi mode is more capable than emacs-mode in ksh and so I've switched to it (set -o vi in my ~/.kshrc) and I do know that I can hit ESC, then / and type a part of my command to search for it. However I just can't find

Re: Moving from tcsh to pdksh: how to recall partially typed in command? (ESC-p)

2006-11-30 Thread Alexander Farber
Hmm doesn't seem to work: I type ll /va then press CTRL-r and the line I've typed (the ll /va) is deleted (in emacs mode) And in the vi mode I just see ll /va^R On 11/30/06, Han Boetes [EMAIL PROTECTED] wrote: Alexander Farber wrote: So what do you do in ksh, when you start to type a command

syslog.conf question: log into a separate file, but not into /var/log/messages

2006-11-24 Thread Alexander Farber
Hi, I've read man syslog.conf several times, especially this passage: !!prog causes the subsequent block to abort evaluation when a message matches, ensuring that only a single set of actions is taken. !* can be used to ensure that any ensuing blocks are further evaluated (i.e.

Re: syslog.conf question: log into a separate file, but not into /var/log/messages

2006-11-24 Thread Alexander Farber
Hi Marcus, On 11/24/06, Marcus Popp [EMAIL PROTECTED] wrote: Can anyone please give me a hint? read man syslog.conf read my original mail. Can you imagine, that I've read the man page, but it is just not good enough for me (or vice versa)? Regards Alex -- http://preferans.de

Re: syslog.conf question: log into a separate file, but not into /var/log/messages

2006-11-24 Thread Alexander Farber
Thanks Otto, that was it On 11/24/06, Otto Moerbeek [EMAIL PROTECTED] wrote: !!pref *.*/var/log/pref Now no messages at all are written into /var/log/messages :-/ Add the end marker !* after the *.* line -Otto

Is inetd needed on a web server + PostgreSQL?

2006-11-07 Thread Alexander Farber
Hello, I have a small web server (OpenBSD 4.0 stable) running phpBB with PostgreSQL. Then there is sshd @ port 443 and default sendmail @ localhost.25. Do you think I still need to run inetd? I've looked through the /etc/inetd.conf and there are only 2 time services + ident. I think I don't

Re: OpenBSD AJAX

2006-10-24 Thread Alexander Farber
Sam, the easiest way for you would probably to use the stock Apache 1.3.x coming with OpenBSD and then the CGI::Ajax Perl module (just install it using perl -MCPAN -e shell; ): http://www.perl.com/lpt/a/977 On 10/24/06, Sam Fourman Jr. [EMAIL PROTECTED] wrote: my next question is

[Flashcoders] A button-like MC with TextField on it - my_txt.text disappears

2006-09-28 Thread Alexander Farber
Hello, I'm trying to create an MC which acts as a Button and additionally has a text label on the top of it. For that I have created 3 Frames: _up, _over, _down and a dummy onRelease() method. This works ok. I have also a TextField my_txt on the top of my MC and a method setText(str:String) to

Re: [Flashcoders] A button-like MC with TextField on it - my_txt.text disappears

2006-09-28 Thread Alexander Farber
Thank you for your comments Julien and Helen. I'll try it out (it always takes me some time, because I do Flash on evenings only, when the kid shuts up ;-) The invisible layer to prevent button-flipping makes sense too, I'll add it. Also I think there is a 3rd method - to use a variable bound

[Flashcoders] Can't get buttons and mouse wheel working in an mc

2006-09-23 Thread Alexander Farber
Hello, I had a chat consisting of a text field, a text area and 2 buttons to scroll the text area up and down. It worked fine. Then I've decided to put all that stuff together inside of 1 mc, the AS 2.0 style. Unfortunately the buttons and the mouse wheel have stopped working and I haven't

Re: [Flashcoders] Video chat

2006-09-23 Thread Alexander Farber
Search for FMS on Google On 9/23/06, Batista Mihai [EMAIL PROTECTED] wrote: Hello! Where can I find a tutorial about how to make a video chat using Flash? Regards Alex -- http://preferans.de ___ Flashcoders@chattyfig.figleaf.com To change your

Re: automate changing strcpy() to strlcpy()

2006-09-22 Thread Alexander Farber
On 9/22/06, Siju George [EMAIL PROTECTED] wrote: http://fredrik.rambris.com/files/sleezeball-0.6.tar.gz I used sleezeball and other filters for squid earlier too, but now I've just switched to the Adblock Plus plugin for Firefox: https://addons.mozilla.org/ IMHO the only effective way to

[Flashcoders] Scaling image to fit into a box - can't find the bug

2006-09-14 Thread Alexander Farber
Hello, I have written an mc to load an external image and to fit it into an 80 x 60 container and it works fine the 1st time I call my load_avatar() method. On the repeated load_avatar() calls however the image gets distorted. Does anybody have an idea how to fix this? I've reduced my code to

[Flashcoders] Re: Addressing several mc instances in auth. env. through an array

2006-09-14 Thread Alexander Farber
Hello again and sorry for the typos in my original mail. I am listing my actual and working code at the bottom. Still my question is: is it possible to replace private var user0_mc:MovieClip; private var user1_mc:MovieClip; private var user2_mc:MovieClip; by an array, if

[Flashcoders] Addressing several mc instances in auth. env. through an array

2006-09-14 Thread Alexander Farber
Hi, I'm trying to create a playing table mc, which would act as a button (you click it in order to sit down and play cards at that table), with 3 player mc's attached to it. The player mc works fine for me - I call something like: user_mc.update('3,Alex,avatar3.jpg'); and it will turn

Re: [Flashcoders] this['box_ratio'] works but this.box_ratio or just box_ratio does not

2006-09-12 Thread Alexander Farber
Hello John, On 9/12/06, John Axel Eriksson [EMAIL PROTECTED] wrote: You could look into Delegate or Proxy... makes these I've looked up the Delegate and it is for Components and I don't use them. And the Proxy is a bad keyword for searching - could you please give me an URL? I have put my

Re: [Flashcoders] this['box_ratio'] works but this.box_ratio or just box_ratio does not

2006-09-12 Thread Alexander Farber
Thank you John, the Delegate has been just what I needed - I've just replaced the 2 lines and it works: listener.onLoadProgress = Delegate.create(this, display_progress); listener.onLoadInit = Delegate.create(this,

[Flashcoders] this['box_ratio'] works but this.box_ratio or just box_ratio does not

2006-09-11 Thread Alexander Farber
Hello, I have an mc which loads an external image file (a user avatar) using MovieClipLoader.loadClip and while doing so displays percentage of currently loaded bytes in a TextField loaded_txt: class User extends MovieClip { private var loaded_txt:TextField; private var

Re: PostgreSQL 8 debs on Debian 3.1r2

2006-08-25 Thread Alexander Farber
Yes that was it - postgresql-8.1. Thank you all $ dpkg -l | grep pq ii libpq-dev 8.1.4-4bpo1header files for libpq4 (PostgreSQL library) ii libpq4 8.1.4-4bpo1PostgreSQL C client library $ dpkg -l | grep postgres ii postgresql-8.1 8.1.4-4bpo1object-relational SQL

[GENERAL] undefined reference to `PQprepare' with postgresql-dev 7.4.7-6sarge2

2006-08-24 Thread Alexander Farber
Hello, I'm trying to compile a libpq program under Debian 3.1r2 with these packages installed: $ dpkg -l | grep postgres ii postgresql 7.4.7-6sarge2 object-relational SQL database management sy ii postgresql-cli 7.4.7-6sarge2 front-end programs for PostgreSQL ii postgresql-con

Re: [GENERAL] undefined reference to `PQprepare' with postgresql-dev 7.4.7-6sarge2

2006-08-24 Thread Alexander Farber
, to detect an older PostgreSQL version? The headers /usr/include/postgresql/libpq-fe.h and /usr/include/postgresql/postgres_ext.h don't have any PG_VERSION or similar define... On 8/24/06, Alexander Farber [EMAIL PROTECTED] wrote: I'm trying to compile a libpq program under Debian 3.1r2

Re: [GENERAL] undefined reference to `PQprepare' with postgresql-dev 7.4.7-6sarge2

2006-08-24 Thread Alexander Farber
Lane [EMAIL PROTECTED] wrote: Alexander Farber [EMAIL PROTECTED] writes: Does anybody have an idea please, what could I be doing wrong? Trying to use a subroutine added in 8.0 in 7.4. Regards Alex -- http://preferans.de ---(end of broadcast)--- TIP

Re: [GENERAL] undefined reference to `PQprepare' with postgresql-dev 7.4.7-6sarge2

2006-08-24 Thread Alexander Farber
Ok, I've upgraded to: $ dpkg -l | grep postgres ii postgresql-8.1 8.1.4-4bpo1object-relational SQL database, version 8.1 ii postgresql-cli 8.1.4-4bpo1front-end programs for PostgreSQL 8.1 ii postgresql-cli 57bpo1 manager for multiple PostgreSQL client versi ii

Re: Apt-get upgrade: sendmail etc kept back

2006-08-24 Thread Alexander Farber
This has worked for me http://www.debian-administration.org/articles/69 On 8/24/06, Robert S [EMAIL PROTECTED] wrote: # apt-get upgrade -s Reading Package Lists... Done Building Dependency Tree... Done The following packages have been kept back: rmail sendmail sendmail-base sendmail-bin

Re: Apt-get upgrade: sendmail etc kept back

2006-08-24 Thread Alexander Farber
There is a new mail about libsasl2 on debian-security On 8/24/06, Robert S [EMAIL PROTECTED] wrote: http://www.debian-administration.org/articles/69 The following packages have unmet dependencies: sendmail-bin: Depends: libsasl2 (= 2.1.19.dfsg1) but 2.1.19-1.5sarge1 is to be installed

Re: now for ssh

2006-08-24 Thread Alexander Farber
This is easy PuTTY and WinSCP - they both can https-tunnel web-proxies :-) Just add the line Port 443 to your /etc/ssh/sshd_config and then just use PuTTY under windows: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe 1) Enter the port 443 instead of 22 there 2) Specify

PostgreSQL 8 debs on Debian 3.1r2

2006-08-24 Thread Alexander Farber
Hello, where could I get good and trustworth postgresql 8 debs which would be updated in case of security issues? On www.postgresql.org there are only rpms... I'm using at the moment 7.x debs, but I need 8.x for a libpq-program I'm developing... $ cat /etc/debian_version 3.1 $ dpkg -l | grep

Re: PostgreSQL 8 debs on Debian 3.1r2

2006-08-24 Thread Alexander Farber
Hello Roberto, On 8/24/06, Roberto C. Sanchez [EMAIL PROTECTED] wrote: On Thu, Aug 24, 2006 at 05:25:57PM +0200, Alexander Farber wrote: $ dpkg -l | grep postgres ii postgresql 7.4.7-6sarge2 object-relational SQL database management ii postgresql-cli 7.4.7-6sarge2 front-end programs

Re: remote access via ssh?

2006-08-24 Thread Alexander Farber
Other login shell, wrong permissions, ... What does ssh -V show? A workaround: ~/.ssh/environment On 8/24/06, Ishwar Rattan [EMAIL PROTECTED] wrote: Remote system is debian derivative. When I access this system using ssh, the connection does not execute $HOME/.bashrc on remote system.

Re: [GENERAL] select * from users where user_id NOT in (select

2006-08-18 Thread Alexander Farber
Hello, thank you and sorry for asking a FAQ. I've fixed my problem now by: select user_id, username from phpbb_users where user_id not in (select ban_userid from phpbb_banlist where ban_userid is not null); but still your explanation feels illogical to me even though I know you're right... On

Re: SMS from OpenBSD

2006-08-18 Thread Alexander Farber
Try comms/gnokii from ports? On 8/18/06, Tomas [EMAIL PROTECTED] wrote: I was wondering is there any way to send SMS messages from OpenBSD OS? May be there is any program to do such task? -- http://preferans.de

Re: Get the ip address without using root?

2006-08-18 Thread Alexander Farber
/sbin/ifconfig eth0 | awk '/^ +inet addr:/ { split($2, a, :); print a[2] } or /sbin/ifconfig eth0 | sed -ne 's,^.*inet addr:\([0-9.]*\).*,\1,p' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: [Red5] Moved config files to /etc: No bean named 'red5.common' is defined

2006-08-17 Thread Alexander Farber
Hello, I'd like to package Red5 for OpenBSD and that's why I'm trying to move the Red5 config files into /etc/red5 to match their packaging policy. I'm using now trunk and have moved a step further in solving this problem: by trying and cursing I've found that there are two combinations that do

Re: [Red5] Moved config files to /etc: No bean named 'red5.common' is defined

2006-08-17 Thread Alexander Farber
Sorry there was a typo - I actually run: /usr/local/jdk-1.5.0/bin/java -Djava.security.manager -Djava.security.policy=/etc/red5/red5.policy -cp /home/afarber/src/trunk/red5.jar:/ org.red5.server.Standalone /etc/red5/red5.xml On 8/17/06, Alexander Farber [EMAIL PROTECTED] wrote: I'm using now

[GENERAL] select * from users where user_id NOT in (select ban_userid from banlist)

2006-08-17 Thread Alexander Farber
Hello, I have this strange problem that the following statement works: phpbb= select user_id, username from phpbb_users phpbb- where user_id in (select ban_userid from phpbb_banlist); user_id | username -+-- 3 | La-Li (1 row) But the negative one returns nothing:

Flash Media Server by Adobe/Macromedia

2006-08-16 Thread Alexander Farber
Hello, I wonder if anyone has been successful with running Adobe's FMS on OpenBSD. I've got FMS_2_0_2_r51_linux installed on -current the following way: 0) Installed redhat_base-8.0p8 package and set kern.emul.linux=1 in /etc/sysctl.conf 1) Downloaded these 4 rpms:

Re: [Red5] problems with service wrapper

2006-08-15 Thread Alexander Farber
Dan! I am confident you can debug it on your own. Remove @echo off from the top of red5.bat and don't be a pussy! ;-) No offense! Regards Alex On 8/15/06, Dan Rossi [EMAIL PROTECTED] wrote: Alexander Farber wrote: this error is because of the quotes missing in red5.bat: http://mirror1

[Red5] Moved config file to /etc: No bean named 'red5.common' is defined

2006-08-14 Thread Alexander Farber
Hello, I've tried using red5 0.5 and -trunk on OpenBSD -current (with its jdk-1.5.0p19 package) and it seems to work ok. Now I'd like to submit an official red5-package to OpenBSD. However for that the config files _must_ be placed under /etc (and not somewhere under /usr/... because the latter

Re: [Red5] Moved config files to /etc: No bean named 'red5.common' is defined

2006-08-14 Thread Alexander Farber
, Alexander Farber [EMAIL PROTECTED] wrote: So I've moved conf/* under /etc/red5/ and modified the red5.sh script to pass an arg to Standalone.main: exec $JAVA -Djava.security.manager \ -Djava.security.policy=conf/red5.policy \ -cp red5.jar:conf:$CLASSPATH

Re: [Red5] Minimal app to publish and playback a live webcam video?

2006-08-13 Thread Alexander Farber
Hi, On 8/13/06, Sascha [EMAIL PROTECTED] wrote: he wants that only HIS client.swf is able to connect to rtmp:/HISapp and no one elses swf.. that is right: I'm programming a small multi-player card game, integrated with phpBB-forum. When a user logins to the php-webpage, I do: select

Re: (Solved) Re: why sarge can't power off PC

2006-08-09 Thread Alexander Farber
Hello, I have same problem with my dual-PIII HP Kayak XAs (dmesg attached below) running Debian 3.1 r2 and kernel-image-2 2.6.8-16sarge4. Could you please elaborate, how could I use APM instead of ACPI? Regards Alex -- http://preferans.de On 8/8/06, Serena Cantor [EMAIL PROTECTED] wrote:

[Flashcoders] LoadVars - sending an array

2006-08-04 Thread Alexander Farber
Hello, I'm working on a flash game sending data to an Apache module through the LoadVars.sendAndLoad() (i.e. I use neither XML, nor AMF, but send the application/x-www-form-urlencoded strings around). I wonder, how do the other folks send arrays, since you unfortunately can't send a key more

Flash Media Server: fmsini fails with Abort trap

2006-07-26 Thread Alexander Farber
Hello, has anybody please succeeded in installing and running Macromedia's Flash Media Server for Linux on OpenBSD? I'm currently stuck with the fmsini tool failing to run on OpenBSD: it prints Abort trap and quits: gate:FMS_2_0_2_r51_linux {1008} sudo sh -x ./installFMS -platformWarnOnly +

Re: Flash Media Server: fmsini fails with Abort trap

2006-07-26 Thread Alexander Farber
On 7/26/06, Alexander Farber [EMAIL PROTECTED] wrote: I'm going to run fmsini on real Linux and copy the produced files to OpenBSD, but still I wonder, what call is this fmsini missing in the Linux emulation. Is there a way to find this out? Actually copying the files from Linux won't help

Re: Flash Media Server: fmsini fails with Abort trap

2006-07-26 Thread Alexander Farber
I have kern.emul.linux=1 in /etc/sysctl.conf and have installed the newest redhat_base-8.0p8 package. Also I've updated to the newest -current. Then I've copied these libraries from a RH Linux PC: # ll /usr/local/emul/redhat/RHEL4 2848 -rwxr-xr-x 1 afarber users 1438761 Jul 26 17:12

Re: Flash Media Server: fmsini fails with Abort trap

2006-07-26 Thread Alexander Farber
On 7/26/06, Alexander Farber [EMAIL PROTECTED] wrote: # ~/FMS_2_0_2_r51_linux/fmsini ~/FMS_2_0_2_r51_linux/fmsini: relocation error: /RHEL4/libc.so.6: symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference I've found that symbol in /lib/ld

[GENERAL] Optimizing query: select ... where id = 4 and md5(...) = '...'

2006-07-03 Thread Alexander Farber
Hello, in my application I'm trying to authenticate users against a table called users. The integer column id should match, but also an md5 hash of the password column (salted with a string) should match. My authentication function (written in C, using libpq) should return a username (is a

Re: [GENERAL] Optimizing query: select ... where id = 4 and md5(...) = '...'

2006-07-03 Thread Alexander Farber
-- Index Scan using users_pkey on users (cost=0.00..5.95 rows=1 width=156) Index Cond: (id = 4) (2 rows) Regards Alex On 7/3/06, Martijn van Oosterhout kleptog@svana.org wrote: On Mon, Jul 03, 2006 at 03:13:15PM +0200, Alexander Farber wrote: in my application I'm

Re: [GENERAL] Optimizing query: select ... where id = 4 and md5(...) = '...'

2006-07-03 Thread Alexander Farber
Hi Alban, On 7/3/06, Alban Hertroys [EMAIL PROTECTED] wrote: Alexander Farber wrote: punbb= select username, md5('deadbeef' || password) from users where id = 4; username | md5 --+-- Vasja| dcde745cc304742e26d62e683a9ecb0a (1 row

[GENERAL] libpq: bind message supplies 2 parameters, but prepared statement requires 1

2006-07-02 Thread Alexander Farber
Hello, these 2 statements work fine for me on the psql-prompt: punbb= select id, username, md5('deadbeef' || password) from users where id = 7; id | username | md5 +--+-- 7 | Alex | b962415469222eeb31e739c3afbc8a4a (1 row) punbb=

[Flashcoders] Drawing and resizing

2006-06-18 Thread Alexander Farber
Hello! I'd like to draw a green rectangle underneath 2 TextFields. As my flash app. will have WIDTH=100% in the HTML-page, I'd like to handle the eventual resizing of it. For that I've registered an onResize-listener at the Stage (see the resize() function below). While resizing works ok for

Re: Which free board software for PostgeSQL?

2006-06-09 Thread Alexander Farber
http://forums.punbb.org/viewtopic.php?id=8112 On 6/8/06, Terry [EMAIL PROTECTED] wrote: PunBB isn't bad. Look in the archives, somebody gave some instructions how to set it up. As far as PhpBB goes, it's been plagued with security problems.

Re: Which free board software for PostgeSQL?

2006-06-08 Thread Alexander Farber
I use PunBB 1.2.12 with -current OpenBSD and postgresql from ports here: http://preferans.de/ On 6/7/06, Michael Lechtermann [EMAIL PROTECTED] wrote: anyone can recommend a free PHP board/forums software for use with PostgreSQL 8.x?

Re: CGI in C: getenv(CONTENT_LENGTH)

2006-05-31 Thread Alexander Farber
On 5/30/06, vladas [EMAIL PROTECTED] wrote: I am concerned for the cases where URL given by the cliend side is like 2MB. In my understanding, there is a gap between the server opening a socket for the connection and starting reading in the data from the client until the end of that readining-in

Re: CGI in C: getenv(CONTENT_LENGTH)

2006-05-31 Thread Alexander Farber
This is bad because CONTENT_LENGTH could be sizeof(buff): On 5/30/06, vladas [EMAIL PROTECTED] wrote: char buff[1]; const char *len1 = getenv(CONTENT_LENGTH); contentlength=strtol(len1, endptr, 10); fread(buff, contentlength, 1, stdin);

Re: CGI in C: getenv(CONTENT_LENGTH)

2006-05-31 Thread Alexander Farber
Hi Why 8190? IMHO just malloc() a buffer of any length you like (depends on what data len your app would typically receive), then read() into it and if you exceed its sizeof while read() still returns positive values (i.e. not -1 and not 0), realloc() the buffer. On 5/31/06, vladas [EMAIL

Re: Lynx starting vi with strange -c arg

2006-05-22 Thread Alexander Farber
/usr/src/gnu/usr.bin/lynx/src/LYEdit.c calls in edit_temporary_file(): char *editor_arg = ; ... format = %s +%s%s %s; HTAddXpand(command, format, params++, editor); HTAddParam(command, format, params++, position); HTAddParam(command, format, params++,

Re: Lynx starting vi with strange -c arg

2006-05-22 Thread Alexander Farber
In /usr/src/usr.bin/vi/common/main.c: ... * Change + into -c$. ... if (argv[0][0] == '+') { if (argv[0][1] == '\0') { argv[0] = strdup(-c$); On 5/22/06, Alexander Farber [EMAIL PROTECTED] wrote: /usr/src/gnu/usr.bin

Re: FYI, 1and1 hosting fun (ip subnet zero)

2006-05-11 Thread Alexander Farber
Hello, I probably have a similar setup at strato.de and use Kili's trick: h754815:afarber {103} cat /etc/hostname.fxp0 inet 81.169.186.95 255.255.255.255 NONE !route add 81.169.186.1 -link \$if: -interface See the explanation at http://www.dettus.net/ Regards Alex PS: I wonder if

Re: FYI, 1and1 hosting fun (ip subnet zero)

2006-05-11 Thread Alexander Farber
Do you see any kernel output at all? I believe one should always see at least the boot prompt - unless the serial speed of the console doesn't match Do you see the boot prompt and have you tried verbose? On 5/11/06, Robert [EMAIL PROTECTED] wrote: Alexander Farber wrote: h754815:afarber

J2ME Wireless Toolkit 1.0.4

2006-04-28 Thread Alexander Farber
Just for the archives: Sun's J2ME Wireless Toolkit version 1.0.4 (the self-extracting j2me_wireless_toolkit-1_0_4_02-linux-i386.bin ) works ok on OpenBSD -current when using the jdk-1.4.2 port (with the jdk1.3.1-linux it has GUI problems and jdk-1.5.0 can't build). You have however to make a link

<    6   7   8   9   10   11   12   13   14   >