Re: Fetchting UTF8 data with DBD::Pg, adding more and storing it back

2009-03-15 Thread Alexander Farber
Hi, On Sun, Mar 15, 2009 at 10:05 PM, Ron Savage r...@savage.net.au wrote: When I fetch player names from the database above, they don't seem to be recognized as UTF8: I set this in httpd.conf, but you may want to set it in BEGIN{...}: PerlSetEnv PGCLIENTENCODING UTF8 unfortunately

[Flashcoders] AS3: Troubles styling the List

2009-03-14 Thread Alexander Farber
Hello, I'm trying to change the font size in a fl.controls.List: private static const SMALL:TextFormat = new TextFormat('Arial', 18, 0x00); list = new List(); list.setStyle('textFormat', SMALL); but the size of the font in the List doesn't seem to change. Has

Re: Adding group to AD: 0000207B: UpdErr: DSID-03050FB5, problem 6002 (OBJ_CLASS_VIOLATION)

2009-03-12 Thread Alexander Farber
Hello, additional information: On Thu, Mar 12, 2009 at 1:32 PM, Alexander Farber alexander.far...@gmail.com wrote: use constant ROOTDN   = 'OU=NIS Groups,DC=internal,DC=mycompany,DC=com'; ... while (my ($key, $value) = each %passwd) {        print $key - $value\n;        my ($Name

Re: Adding group to AD: 0000207B: UpdErr: DSID-03050FB5, problem 6002 (OBJ_CLASS_VIOLATION)

2009-03-12 Thread Alexander Farber
Also for creating groups I've tried to mimic the http://techtasks.com/code/viewbookcode/1616 and: use constant ROOTDN = 'OU=NIS Groups,DC=internal,DC=mycompany,DC=com'; use constant ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 4; use constant ADS_GROUP_TYPE_GLOBAL_GROUP = 2; use constant

[GENERAL] Log SQL code before executing it

2009-03-06 Thread Alexander Farber
Dear PgSQL users, is there please a way to display the executed SQL code? I'm using phpBB 3.0.4 / PostgreSQL 8.2.6 / PHP 5.2.5 / OpenBSD 4.3 to develop a card game in Flash / C / Perl (at http://preferans.de ) and would like to log each game round by simply posting and replying in one of the

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
Hello, On Thu, Mar 5, 2009 at 12:44 PM, Brian McKerr bmck...@gmail.com wrote: http://technet.microsoft.com/en-us/library/dd316373.aspx thank you, I have the forward zones replicated from the prim. DNS hosted at our Windows DC fine with this config: # cat /etc/*release CentOS release 5.2

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
On Fri, Mar 6, 2009 at 10:05 AM, Alain RICHARD alain.rich...@equation.fr wrote: But the replication of the reverse zone doesn't work yet - I get errors: named[30219]: zone 42.121.10.in-addr.arpa/IN: refresh: unexpected rcode (NXDOMAIN) from master 10.121.42.40#53 (source 0.0.0.0#0) You need

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-06 Thread Alexander Farber
Ok, figured it out: # cat /var/named/chroot/etc/named.conf options { directory /var/named; }; zone internal.mycompany.com IN { type slave; file slaves/internal.mycompany.com; masters { 10.121.42.40 port 53;}; check-names ignore; }; zone 121.10.in-addr.arpa IN {

Re: [Flashcoders] advice to ms word/xml

2009-03-05 Thread Alexander Farber
vim user here (I use :set encoding=utf8) On Thu, Mar 5, 2009 at 11:54 PM, Nate Beck n...@tldstudio.com wrote: . emacs ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-05 Thread Alexander Farber
Hello, we have a mixed environment at work: CentOS + Win2003 servers. The Win2k3 part contains: AD, DNS (inlc. dyndns), DHCP, DFS, Exchange. The CentOS part: NIS passwords + also a DNS server. So currently we have to update the Linux DNS server zone infos by hand: I export a text file from

Re: [CentOS] How to setup a secondary DNS server pulling zones from Win2k3?

2009-03-05 Thread Alexander Farber
On Thu, Mar 5, 2009 at 2:47 PM, Les Mikesell lesmikes...@gmail.com wrote: You can specify multiple forwarders if you have more than one server already set up the way you want.  Named will find one that works and cache the results locally for its time to live.  Once you have a couple of robust

HP Proliant DL385 with Squid at a Gigabit-switch - bad network performance

2009-02-27 Thread Alexander Farber
Hello, our web proxy for 400 users (actually at the moment less than 100, but we are going to switch the others to use it soon) is slow. It is a HP Proliant DL385 running OpenBSD 4.4-stable with the squid-2.7.STABLE3 from packages (dmesg below). Does anybody please have a good advice how to

Re: HP Proliant DL385 with Squid at a Gigabit-switch - bad network performance

2009-02-27 Thread Alexander Farber
On Fri, Feb 27, 2009 at 3:43 PM, Han Boetes h...@mijncomputer.nl wrote: cache_dir aufs xxx yyy Thank you, I've switched to aufs, I hope it works ok on OpenBSD (docs mention POSIX threads). The netstat actually doesn't show I/O errors: afar...@ablprx01:squid netstat -I bge0 NameMtu

[GENERAL] Rotating WAL files

2009-02-24 Thread Alexander Farber
Hello, I've just read about WAL and tried to set these 2 commands for my test database (which is doing nothing 99% of time): archive_command = 'cp -v %p /var/lib/pgsql/data/archive/%f' archive_timeout = 300 # force a logfile segment switch after this

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Hello, On Fri, Feb 13, 2009 at 2:31 PM, John Doe jd...@yahoo.com wrote: Still using 2.x here but, isn't there a commands.cfg file with some check_http definition? In doubt, take a working check_xyz and grep it in all the conf files and see if you missed any... thanks - yes, I always grep

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
On Fri, Feb 13, 2009 at 2:45 PM, John Doe jd...@yahoo.com wrote: What I meant was that there should also be a definition in the commands.cfg file (if it is like 2.x)... Allright - that was it: I should have added the commands to the /etc/nagios/objects/commands.cfg and not to the

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Hello, On Fri, Feb 13, 2009 at 3:06 PM, Rainer Duffner rai...@ultra-secure.de wrote: Alexander Farber schrieb: I should have added the commands to the /etc/nagios/objects/commands.cfg and not to the /etc/nagios/command-plugins.cfg Well, you can include those, too (I think in nagios.cfg

Re: [CentOS] Nagios: Error: Service check command ... not defined anywhere!

2009-02-13 Thread Alexander Farber
Oops a typo - I actually mean: unfortunately you can't put cfg_file=/etc/nagios/command-plugins.cfg into /etc/nagios/nagios.cfg - it will bail out with an error message. ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
Thank you, On Mon, Feb 2, 2009 at 3:32 PM, John Doe jd...@yahoo.com wrote: From: Alexander Farber alexander.far...@gmail.com [r...@ablprx01 squid]# rpm -qa|grep -i squid squid-2.6.STABLE6-5.el5_1.3 Sadly, CentOS squid packages are quite old. Squid recent releases are: 2.7.STABLE5 and 3.0

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
Uh oh http://people.redhat.com/mnagy/squid/ doesn't have them yet... On Wed, Feb 4, 2009 at 1:06 PM, John Doe jd...@yahoo.com wrote: Talking about squid versions: Advisory SQUID-2009:1 Due to an internal error Squid is vulnerable to a denial of service attack when processing specially crafted

Re: [CentOS] squid stops working several times a day

2009-02-04 Thread Alexander Farber
On Wed, Feb 4, 2009 at 5:16 PM, Les Mikesell lesmikes...@gmail.com wrote: Ramon Nieto wrote: CentOS supplied Squid is running just fine here. Here too, 1300+ users, 80+ acl's and squidguard. Likewise here, working as an internal cache for data used by a very busy web server farm with

[CentOS] squid stops working several times a day

2009-02-02 Thread Alexander Farber
Hello, I have a problem here with: [r...@ablprx01 squid]# cat /etc/*release CentOS release 5.2 (Final) [r...@ablprx01 squid]# rpm -qa|grep -i squid squid-2.6.STABLE6-5.el5_1.3 The web proxy process (used by 300-400 users) seems to run ok: [r...@ablprx01 squid]# ps uawwwx|grep squid root

Re: [Flashcoders] Adding a property to an AS3-component

2009-01-26 Thread Alexander Farber
Thanks Dave, I've read up on it and understand this now. Too bad Flash docs do not mention which class is dynamic Regards Alex On Sat, Jan 24, 2009 at 6:14 PM, Dave Watts dwa...@figleaf.com wrote: is it actually possible to add a new property to an AS3-component, like button? In AS3,

[Flashcoders] Adding a property to an AS3-component

2009-01-24 Thread Alexander Farber
Hello, is it actually possible to add a new property to an AS3-component, like button? I try: import fl.controls.Button; var button:Button = new Button(); button['old_item'] = 42; //button.old_item = 42; addChild(button); but get the run-time error: ReferenceError: Error #1056:

[Flashcoders] updateAll event to notify List that dp changed - gone in AS3?

2009-01-23 Thread Alexander Farber
Hello, I'm porting a webchat-like application from AS2 to AS3 with a list of usernames displayed in a List component. In AS2 I had to save those usernames into an Array and then send an event updateAll to the List component to let it know that its dataProvider (an Array with webchat-usernames)

[Flashcoders] AS3: accessing loaderInfo.parameters.XXX from non-document class

2009-01-21 Thread Alexander Farber
Hello flash coders, in my document class I check loaderInfo.parameters.debug: public class MyGame extends Sprite { public static const DEBUG:Boolean = loaderInfo.parameters.debug; public static const SERVER:String = DEBUG ? 'http://192.168.111.43' : 'http://preferans.de';

Re: [Flashcoders] AS3: accessing loaderInfo.parameters.XXX from non-document class

2009-01-21 Thread Alexander Farber
= this.stage.loaderInfo.url; if ( -1 != _url.indexOf(file://)) { _path = . + _path; } _inited = true; } } Alexander Farber wrote: in my document class I check loaderInfo.parameters.debug: public class MyGame

[CentOS] Generating password string in /var/nis/passwd with Perl

2009-01-20 Thread Alexander Farber
/.:10154153:5725:Alexander Farber,jn-05/02:/home/farber:/bin/bash Has anybody already figured out, how to do it from Perl? I'm sure there must be some way (smth. with Perl's crypt). Regards Alex PS: Here is my script: http://pastebin.com/m46057a70 feel free to modify and use

[Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Dear flash coders, I'm struggling since a week already with several elements in my application not acting as I want them to do. And they all could be reduced to a rectangle button which has a TextField on top of it and which should lighten up on a mouse over and scale down on a mouse down event.

Re: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Wow that was the missing piece, I've just fixed a lot of annoyances in my program :-) On Sat, Jan 17, 2009 at 1:55 PM, Cor c...@chello.nl wrote: MyButton.mouseChildren= false; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Thank you Cor that was it! On Sat, Jan 17, 2009 at 1:55 PM, Cor c...@chello.nl wrote: MyButton.mouseChildren= false; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Re: AS3: Rotating menu - looking for advice with 3 issues

2009-01-10 Thread Alexander Farber
); } private function handleMouseOut(event:MouseEvent):void { addEventListener(Event.ENTER_FRAME, handleEnterFrame); } On Sat, Jan 10, 2009 at 7:45 PM, Alexander Farber set a variable on mouse click and stop rotating. ___ Flashcoders mailing list

[Flashcoders] Re: AS3: Rotating menu - looking for advice with 3 issues

2009-01-10 Thread Alexander Farber
I've figured out how to sort depths (added an Array for them) + set a variable on mouse click and stop rotating. Here is my rotating menu for the archives (one thing I still don't like is that because the objects on the bottom are scaled down the angle between them seems too big) package {

[Flashcoders] AS3: Rotating menu - looking for advice with 3 issues

2009-01-09 Thread Alexander Farber
Hello guys, I'm struggling with my rotating menu and have prepared a short test case - please see http://pastebin.com/m40cf66ec and I'll also paste the code at the bottom of this mail. In my rotating menu I'd like to rotate button like objects in an ellipse. 1) I'd like to stop rotating if the

Re: [Flashcoders] AS3: Dispatching events to further listeners, but not to itself

2008-12-28 Thread Alexander Farber
Hello, may I please rephrase my question, maybe someone will have a hint for me? By my PlayingCard objects I'd like to dispatch 2 events: Event.CHANGE and MouseEvent.CLICK I do it because in my game you can drag cards, but also you can select them from a list and click a button. So I could use

[Flashcoders] Scope of variables declared in for loop

2008-12-23 Thread Alexander Farber
Hello, has anybody else noticed, that the code like: stop(); for (var i:Number = 0; i 10; i++) { trace('1st loop: ' + i); } for (var i:Number = 0; i 10; i++) { trace('2nd loop: ' + i); } won't be accepted by compiler? Is there an explanation for that? The other languages

Re: [Flashcoders] Scope of variables declared in for loop

2008-12-23 Thread Alexander Farber
Hello, yes in AS3, but I think AS2 had the same irritating issue. Sure you can put var i:int above. But in many other languages (like C++, Java, Perl) you write something like for (my $i = 0; $i 10; $i++) { # XXX } an the scope of variable is limited to the loop only. Regards Alex On

Re: [Flashcoders] Scope of variables declared in for loop

2008-12-23 Thread Alexander Farber
How do you define a code section then? Regards Alex On Tue, Dec 23, 2008 at 11:25 AM, Paul Andrews p...@ipauland.com wrote: Is there an explanation for that? Flash doesn't scope the variables to the loop block, but to the code section. ___

[Flashcoders] AS3: Dispatching events to further listeners, but not to itself

2008-12-23 Thread Alexander Farber
Hello, I have 2 classes: PlayingCard and PlayingTable. The PlayingCard listens on MOUSE_UP, DOWN and MOVE to call startDrag() and stopDrag(). I do not want to introduce custom events, so I try to subscribe the PlayingTable to MOUSE_MOVE and MOUSE_UP events of each PlayingCard, so that the table

ypbind hangs - how to debug?

2008-12-23 Thread Alexander Farber
Hello, we have around 20 RHEL/CentOS machines (one of them acting as NIS server) and 3 NetApps at work, but also have 1 OpenBSD (virtual) machine acting as an openvpn-Gateway. Until recently it worked well, but now whenever I reboot it the ypbind would just hang. Does anybody has an idea, how to

[Flashcoders] AS3: non-latin characters not displayed

2008-12-22 Thread Alexander Farber
Dear flash coders, I'm porting a small russian card game from AS2 to AS3 and currently struggle with the problem that the playing card (which is a sprite) indices (which are TextFields) do not display cyrillic letters (for jack, queen, king, ace). The digits (7,8,9,10) are displayed just fine.

Re: [Flashcoders] AS3: non-latin characters not displayed

2008-12-22 Thread Alexander Farber
Thanks but neither On Mon, Dec 22, 2008 at 2:18 PM, Cor c...@chello.nl wrote: Change the indexN_txt.defaultTextFormat = BLACK; into indexN_txt.setTextFormat(BLACK); nor Quick guess: set indexN_txt.embedFonts = true; right after the ... NewTextField(); have worked for me. I've ended up

Re: [CentOS] yum-updatesd or similar for CentOS 4

2008-12-12 Thread Alexander Farber
Thank you all, I'll go with yum service On Thu, Dec 11, 2008 at 10:20 PM, Barry Brimer li...@brimer.org wrote: chkconfig yum on service yum start ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] yum-updatesd or similar for CentOS 4

2008-12-11 Thread Alexander Farber
Hello, we have enabled yum-updatesd on our dozen real and virtual machines running CentOS 5.2 some time ago and are very satisfied: afar...@ablsw01:~ grep -v ^# /etc/yum/yum-updatesd.conf [main] run_interval = 7200 updaterefresh = 1200 emit_via = email dbus_listener = no do_update = yes

Re: [CentOS] Watchdog process?

2008-12-11 Thread Alexander Farber
Can't you just add an entry to /etc/inittab? This worked well for me On Thu, Dec 11, 2008 at 5:52 AM, Greg Bailey gbai...@lxpro.com wrote: Is there a generic built-in way on CentOS to overlook that a specific process is alive and re-spawn it (or just run a configured command) when it dies?

[GENERAL] 8.2.6 - 8.1.11: syntax error at or near OWNED BY

2008-12-10 Thread Alexander Farber
Hello, I've pg_dump'ed a database from PostgreSQL 8.2.6 / openSUSE 10.3 and now trying to load it as a postgres user at 8.1.1 / CentOS 5.2 and get numerous errors like: CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE psql:denkwerk.sql:1156: ERROR: syntax error at or near OWNED at character

Re: [GENERAL] 8.2.6 - 8.1.11: syntax error at or near OWNED BY

2008-12-10 Thread Alexander Farber
Thank you for replies, I've decided to upgrade by adding http://yum.pgsqlrpms.org/ to the yum config at my CentOS server -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] 8.2.6 - 8.1.11: syntax error at or near OWNED BY

2008-12-10 Thread Alexander Farber
Hello, On Wed, Dec 10, 2008 at 3:49 PM, Scott Marlowe [EMAIL PROTECTED] wrote: We run pgsql 8.3 on Centos 5.2 and are VERY happy with the PGDG rpms on it. thanks for the confirmation Scott. I have installed PGDG with pgsql 8.2 at my CentOS 5.2 server and it seems to work now. I hope any

Re: [CentOS] Centos 5.2 on Vmware Server: Disk space not preallocated - no disk found by installer

2008-12-07 Thread Alexander Farber
CentOS 5.2 and 4.7 work for me at the latest VMWare Workstation, Server and ESX :-) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: Setting LDAP_SERVER_PERMISSIVE_MODIFY_OID to allow empty values in AD

2008-12-06 Thread Alexander Farber
Thank you Graham, On Thu, Dec 4, 2008 at 4:32 PM, Graham Barr [EMAIL PROTECTED] wrote: On Dec 4, 2008, at 8:33 AM, Alexander Farber wrote: $mod = $ldap-modify($entry, control = [ { type = LDAP_SERVER_PERMISSIVE_MODIFY_OID, critical = 1

Re: Setting LDAP_SERVER_PERMISSIVE_MODIFY_OID to allow empty values in AD

2008-12-04 Thread Alexander Farber
On Wed, Dec 3, 2008 at 6:43 PM, Graham Barr [EMAIL PROTECTED] wrote: On Dec 2, 2008, at 8:20 AM, A. Farber wrote: I have a script which reads phone numbers from a CSV file and stores them in Active Directory (w2k3), so that you can find a user phone number in the address book of Exchange.

[CentOS] iptables-save: INPUT DROP [26:8260]

2008-12-02 Thread Alexander Farber
Hello, why does iptables-save print 2 numbers in square brackets? Is it used for anything? Is it number of inspected packets (and what's the other number then)? And what does *filter mean? Thank you Alex $ sudo iptables-save # Generated by iptables-save v1.3.5 on Tue Dec 2 23:53:56 2008

[CentOS] Installing CentOS security updates to RHEL machines? (RHN subscription expired)

2008-11-30 Thread Alexander Farber
Hello, I hope my question is not annoying. I work as sysadmin at a 400 users firm and we have around 20 CentOS 4/5 servers and VMs and CentOS is awesome, thank you! However we have 4 important SAP-servers running RHEL5 and our RHN subscription has unforunately expired and buying it again is not

Re: [CentOS] Installing CentOS security updates to RHEL machines?(RHN subscription expired)

2008-11-30 Thread Alexander Farber
You don't know our situation and already have an opinion. We already spent 40 Euro for SW licenses this year (and we have only 400 users). And we're an automotive business, so I can understand that management tries to save some money. Regards Alex On Sun, Nov 30, 2008 at 7:10 PM, Jim

Re: Automounting home dirs using amd: No value component in ...

2008-11-11 Thread Alexander Farber
Ok, I've got it: autofs format != amd format and the former is not supported on OpenBSD On Tue, Nov 11, 2008 at 2:55 PM, Alexander Farber [EMAIL PROTECTED] wrote: I'm trying to automount home dirs from an OpenBSD 4.4: # amq -v amd 1.1.1.1 of 1995/10/18 08:47:13 bsd44. # uname -a OpenBSD

Automounting home dirs using amd: No value component in ...

2008-11-11 Thread Alexander Farber
Hello, I'm trying to automount home dirs from an OpenBSD 4.4: # amq -v amd 1.1.1.1 of 1995/10/18 08:47:13 bsd44. # uname -a OpenBSD ablvpn01.internal.novero.com 4.4 GENERIC#1021 i386 And have the problem that the amd doesn't seem to understand the NIS format here in our RHEL 3,4,5 + Solaris 10

Re: setresuid not available in OpenBSD's perl

2008-08-18 Thread Alexander Farber
On Mon, Aug 18, 2008 at 12:11 AM, Philip Guenther [EMAIL PROTECTED] wrote: This question doesn't really have anything to do with OpenBSD. Thanks, but I think it has to do with OpenBSD, because the question is about implementation at this platform. I'll try using following for now: drop_root()

setresuid not available in OpenBSD's perl

2008-08-17 Thread Alexander Farber
Hello, I hope I don't ask somtething too stupid, but I'm trying to port a C-program to Perl and for the drop privileges part of it I'd need to call setresuid(). The following test at 4.3 returns a failure though: $ perl -M'POSIX qw(setresuid)' -e 1 setresuid is not exported by the POSIX module

Re: Force the new AD user to change password - pwdLastSet

2008-07-11 Thread Alexander Farber
Hi Don, On Fri, Jul 11, 2008 at 5:33 PM, Miller, Don C. [EMAIL PROTECTED] wrote: Alex, does setting 'pwdLastSet' = 0 not work for you? You can't set the value to anything else but you should be able to set it to zero which will force the expiration. $ldap-modify($dn, replace = {

Re: [Flashcoders] Is Key Object Changed With New Plugin Update?

2008-01-08 Thread Alexander Farber
On MSIE, don't you need to click the flash lugin first? On Jan 8, 2008 9:43 AM, [EMAIL PROTECTED] wrote: It works fine in Firefox, but this is related to IE 7,and it's fairly new. This is on Windows XP, I have not been able to test any other configs. It has to be something updated in IE7 or

[Flashcoders] Making a flash game safe for work

2008-01-08 Thread Alexander Farber
Hello flashcoders, I'm developing a small multiplayer card game in AS2 (and embedded in a phpBB 3 forum). I'd like to target corporate users too and have spent extra efforts to keep the game playable through proxies+firewalls. Additionally I'd like to offer an option to the users, so that they

[Flashcoders] Graphical resources in a v2 component - not visible

2008-01-07 Thread Alexander Farber
Hello, I'm programming a small card game, where most of the objects are packed as custom v2 components: playing cards, playing table, user avatars. And I have a very frustrating issue with the graphical resources. For example the Card component has a folder in its library, holding the card

Re: [Flashcoders] Graphical resources in a v2 component - not visible

2008-01-07 Thread Alexander Farber
Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 9:43 AM Subject: [Flashcoders] Graphical resources in a v2 component - not visible I'm programming a small card game, where most of the objects

Re: [Flashcoders] Graphical resources in a v2 component - not visible

2008-01-07 Thread Alexander Farber
Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 10:57 AM Subject: Re: [Flashcoders] Graphical resources in a v2 component - not visible Hello Muzak, On Jan 7, 2008 10:13 AM, Muzak [EMAIL

Re: Ap1: Reading POST-requests buggy? (not 0-terminated)

2007-10-19 Thread Alexander Farber
That's why!! Thank you Nick. On 10/19/07, Nick Kew [EMAIL PROTECTED] wrote: On Fri, 19 Oct 2007 10:49:27 +0200 Alexander Farber [EMAIL PROTECTED] wrote: the libapreq calls util_read() function - http://search.cpan.org/src/DOUGM/libapreq-0.31/c/apache_request.c which allocates a buffer

Ap1: Reading POST-requests buggy? (not 0-terminated)

2007-10-19 Thread Alexander Farber
Hello, the libapreq calls util_read() function - http://search.cpan.org/src/DOUGM/libapreq-0.31/c/apache_request.c which allocates a buffer with (r-remaining + 1) bytes. Then it reads up to r-remaining bytes by calling ap_get_client_block() and memcpy() repeatedly. Neither util_read(), nor

Re: Ap1: Reading POST-requests buggy? (not 0-terminated)

2007-10-19 Thread Alexander Farber
Hello, I think it is a bug in the libapreq-1.33: util_read() doesn't 0-terminate the received POST data, but after that calls ap_getword() on it repeatedly. Regards Alex -- http://preferans.de

Ap1: should I call for my GET-handling module?

2007-10-17 Thread Alexander Farber
Hello, I'm developing an Apache 1.3.x module which is supposed to process GET and POST requests: if (M_GET == r-method_number) { if ((rc = ap_discard_request_body(r)) != OK) return rc; if (NULL == r-args)

Re: Ap1: should I call for my GET-handling module?

2007-10-17 Thread Alexander Farber
Whoops too late for this here in Germany, sorry. I meant the subject to be: Ap1: should I call ap_discard_request_body() for my GET-handling module?

Xbox 360 controller at the -current

2007-10-06 Thread Alexander Farber
Hi, /bsd: ugen0 at uhub0 port 1 /bsd: ugen0: Microsoft product 0x028f, rev 2.00/1.05, addr 2 /bsd: ugen0 detached has anyone tried to use it? :-) (Yes I'd read the news about the old Xbox port, but this here is an Xbox 360 controller) Regards Alex

Re: Xbox 360 controller at the -current

2007-10-06 Thread Alexander Farber
. On 10/6/07, Marc Espie [EMAIL PROTECTED] wrote: On Sat, Oct 06, 2007 at 03:26:58PM +0200, Alexander Farber wrote: /bsd: ugen0 at uhub0 port 1 /bsd: ugen0: Microsoft product 0x028f, rev 2.00/1.05, addr 2 /bsd: ugen0 detached Did you connect it directly, or use the microsoft adaptator

Re: [Flashcoders] How do you delete child movieclips?

2007-09-12 Thread Alexander Farber
Thank you - a good idea! On 9/3/07, Steven Sacks [EMAIL PROTECTED] wrote: I highly recommend putting all your child clips into a container clip and then just remove the container clip rather than iterate through it and remove the child clips one by one.

[Flashcoders] How do you delete child movieclips?

2007-08-30 Thread Alexander Farber
Hello flash coders, what is your usual method for deleting child movieclips (which were previously attached by attachMovie)? I suspect, that the method I'm using: public function reset():Void { for (var key:String in this) if (typeof(this[key]) ==

[Flashcoders] Re: How do you delete child movieclips?

2007-08-30 Thread Alexander Farber
Here you can see my problem: http://preferans.de/flash/Ellipse.gif Sorry for a bit chaotic mail. I get ghost movieclips, but can't localize why it's happenning :-( Regards Alex On 8/27/07, Alexander Farber [EMAIL PROTECTED] wrote: I suspect, that the method I'm using: public

[Flashcoders] Re: How do you delete child movieclips?

2007-08-30 Thread Alexander Farber
I think I've figured it out now - I was assigning negative depth to some of the attached movies... On 8/27/07, Alexander Farber [EMAIL PROTECTED] wrote: I get ghost movieclips, but can't localize why it's happenning :-( ___ Flashcoders

[Flashcoders] Take movieclips from one mc and attach to another

2007-08-23 Thread Alexander Farber
Hello! I've found a nice code (pasted at the bottom of this mail) to display a rotating set of movieclips. One problem with it is though that it assumes a hardcoded set of 7 movieclips in the library, called 0, 1, ... 6 and attaches them to the stage by calling attachMovie(i, mc+i, i); I'd like

Re: [Flashcoders] Take movieclips from one mc and attach to another

2007-08-23 Thread Alexander Farber
in AS2. You could make your class control arbitrary MovieClips as if they were reparented with a lot of math and localToGlobal() calls, though. Probably not a great idea, though. On 8/23/07, Alexander Farber [EMAIL PROTECTED] wrote: MovieClip-based class which would take an arbitary array

Re: [Flashcoders] attachMovie from library - fails to work with preloader

2007-06-19 Thread Alexander Farber
Hello John and others, On 6/16/07, John VanHorn [EMAIL PROTECTED] wrote: you must force those movieclips to load before you use have access to them. what i usually do is to set the export frame for classes to 2, and then go through the library and uncheck 'export in first frame' for all

Re: [Flashcoders] Re: External preloader using loadClip() - is it a good idea?

2007-06-19 Thread Alexander Farber
Hi, one more small comment: On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote: I've solved my problem of the loadClip('Main.swf', ...) delivering the same old version of the Main.swf by the standard trick of appending a random string. I've realized, that an external preloader doesn't work

Re: [Flashcoders] Confused by preloading sounds and components

2007-06-19 Thread Alexander Farber
Sorry, but what will that change? I don't see a big difference On 6/19/07, Muzak [EMAIL PROTECTED] wrote: Place everything in frame 10. - Original Message - From: Alexander Farber [EMAIL PROTECTED] 1) Why are the Components and MovieClips placed in frame 20 displayed

Re: [Flashcoders] Re: External preloader using loadClip() - is it agood idea?

2007-06-19 Thread Alexander Farber
Hello Danny, On 6/19/07, Danny Kodicek [EMAIL PROTECTED] wrote: On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote: It should send an If-Modified-Since request to the web server and serve the .swf file only if the web server has replied with a 304 Not Modified. But instead the flash

Re: [Flashcoders] AS2.0 Class Question

2007-06-19 Thread Alexander Farber
Maybe by setting classpath in Publish settings-Flash ? On 6/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't really want to drop Class A into the folder where Class B is as there are about 15 other class files and SWF(A)/Class A doesn't really need them to run. Is there a way to avoid

[Flashcoders] External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber
Dear flash coders, I wonder, if it is a good idea at all and surprisingly can't find any related discussions in the archive - I have a bigger Main.swf (224 KB, because of playing card pictures + v2 components) and for preloading it I've created this (only 400 bytes small) Load.swf of the same

[Flashcoders] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber
Sorry, a small copy-paste typo - the function below is onLoadProgress On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote: function onLoadInit(target_mc:MovieClip, loaded:Number, total:Number):Void { load_txt.text = Math.ceil(loaded * 100 / total

Re: [Flashcoders] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber
Thank you, but unfortunately this: On 6/18/07, Digg Yeah [EMAIL PROTECTED] wrote: [to prevent cacheing, ToolsInternet optionstemporary internet files settingscheck every visit to page ] won't clear the flash cache for me: I don't see my preloader Load.swf anymore, I see the Main.swf

Re: [Flashcoders] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber
Hello all again, I've solved my problem of the loadClip('Main.swf', ...) delivering the same old version of the Main.swf by the standard trick of appending a random string. The minor problem left is that I have to copy my authentication variables manually by doing: target_mc.userid =

Re: [Flashcoders] converting .mov to .flv

2007-06-18 Thread Alexander Farber
Maybe you could do it with mencoder? http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html Available for all systems, incl. Win + Mac From: Jim Greiner I'm looking for an easy, inexpensive way to convert my .mov QuickTime movies ( 2 to 10 minutes long) to .flv in order for me to put them on

[Flashcoders] There is no method with the name 'createClassChildAtDepth'.

2007-05-29 Thread Alexander Farber
Hello Flashcoders, is there please a way to use DepthManager from a MovieClip-based class? I have prepared this short test code which compiles fine: import mx.core.UIComponent; import mx.events.EventDispatcher; import mx.managers.DepthManager; class TestCase extends UIComponent {

[Flashcoders] Re: TransitionManager type Fly breaks coordinates of my MovieClips

2007-05-03 Thread Alexander Farber
the static method start() for the 2nd or 3rd time... On 4/30/07, Alexander Farber [EMAIL PROTECTED] wrote: I have a v2 component displaying up to 12 playing cards at the bottom of the stage and slightly rotating them from left to right: private function placeCards(new_array:Array):Void

[Flashcoders] TransitionManager type Fly breaks coordinates of my MovieClips

2007-04-30 Thread Alexander Farber
Hello, I have a v2 component displaying up to 12 playing cards at the bottom of the stage and slightly rotating them from left to right: private function placeCards(new_array:Array):Void { var gap:Number = 40; for (var i:Number = 0,

[Flashcoders] Re: TransitionManager type Fly breaks coordinates of my MovieClips

2007-04-30 Thread Alexander Farber
The funny thing is that it only happens with Fly: On 4/30/07, Alexander Farber [EMAIL PROTECTED] wrote: //TransitionManager.start(card_mc, {type:Fly, direction:Transition.IN, // duration:3, easing:Strong.easeOut, startPoint:(1 + i % 3)}); When I take some other

[Flashcoders] _parent and _root in custom component have same dimensions as the latter?

2007-04-20 Thread Alexander Farber
Hello, I have a probably very stupid problem: I'm trying to create a custom v2 component representing a playing card (full source code at the bottom). It works mostly ok, but when I try to get _parent's _width and _height in its onPress handler in order to restrict dragging: private

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Alexander Farber
Are you missing a stop(); maybe? On 4/20/07, Michael King [EMAIL PROTECTED] wrote: The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Regards Alex --

Re: [Flashcoders] PLEASE help with advanced dataset issues

2007-04-20 Thread Alexander Farber
Hello Don, maybe a totally wrong idea, but do you send an updateAll event? http://www.flash-communications.net/technotes/mappingSharedObjectsToArrays/ On 4/20/07, Gaia-Tek [EMAIL PROTECTED] wrote: So I tried to fill the dataset manually, by populating it with an array... This works fine,

[Flashcoders] Compiler chokes when using a class method as event handler

2007-04-19 Thread Alexander Farber
Hello, I'm trying to create a v2 component representing a deck of playing cards and I have a problem, which I believe is very common, but I can't find a solution on the net yet. My code is simple and is listed completely at the bottom. And the problem is, that when I assign an event handler to

Re: [Flashcoders] Compiler chokes when using a class method as event handler

2007-04-19 Thread Alexander Farber
Hello Robert, On 4/19/07, Robert Brisita [EMAIL PROTECTED] wrote: The compiler says: **Error** Deck.as: There is no method with the name 'setDepthTo'. this.setDepthTo(DepthManager.kTop); And from your code I don't see it either: this.setDepthTo or this.filters. When you say it

Re: [Flashcoders] Compiler chokes when using a class method as event handler

2007-04-19 Thread Alexander Farber
Found my error - was missing _parent.evt_obj in the last line below: On 4/19/07, Alexander Farber [EMAIL PROTECTED] wrote: PS: Below is my almost working code (the card event doesn't dispatch yet for some reason, but the rest works - card can be dragged etc.): function

Re: [Flashcoders] Compiler chokes when using a class method as eventhandler

2007-04-19 Thread Alexander Farber
Hello Muzak, On 4/19/07, Muzak [EMAIL PROTECTED] wrote: Because each card instance now uses the EventDispatcher class you can easily determine which card instance was pressed/released through the argument passed to the event handler. your suggestion is excellent as always - I'll try that!

[Flashcoders] import own class (use SOME_CONST instead of MyUtils.SOME_CONST)

2007-04-04 Thread Alexander Farber
Hi, I'd like to move few constants and functions my project is using into a separate class, called Util. How could I please make them importable, i.e. so that I could write just import Util; trace(SOME_CONSTANT); instead of always prepending Util. in front of the variables:

Re: [Flashcoders] OT - Installing PHP, MySQL?

2007-03-27 Thread Alexander Farber
Hello Dave, my advice (and I have to deal with RH Linux 80% of my work time) to you and other designer guys here is: don't fall for Linux hype, go with OpenBSD. You install the core system, which already has Apache 1 with many security improvements (compared to the original Apache code) and

<    5   6   7   8   9   10   11   12   13   14   >