search for: write_log

Displaying 9 results from an estimated 9 matches for "write_log".

Did you mean: write_loc
2006 Jul 30
3
Accessing @org.id yields internal number, not record id
...but otherwise a veteran VB6/SQL programmer. My code: <snip> sSQL = "SELECT id, org_name FROM organizations WHERE user_id = ''#{sUserId}'' AND user_password = ''#{sPassword}''" @org = Organization.find_by_sql sSQL if @org write_log("Org found. Id = #{@org.id}") </snip> My log file contains: Org found. Id = 30382648 I am expecting Id to be 1. There are only two records in the organizations table: 1 and 2. Thanks for putting me straight! Michael -- Posted via http://www.ruby-forum.com/.
2004 Aug 06
0
[PATCH] Configurable privileges and chroot jail
...if } +void drop_privileges() +{ +#ifdef _WIN32 + return; +#else + struct passwd *pwd; + uid_t uid, cuid; + gid_t gid; + + if (info.icecast_user != 0) { + pwd = getpwnam(info.icecast_user); + if (!pwd) { + write_log (LOG_DEFAULT, "ERROR: icecast_user %s doesn't exist", + info.icecast_user); + clean_shutdown (&info); + } + + /* These will get clobbered during the chroot, so save them */ + uid...
2012 Mar 09
0
Re: WINE fails in directories with Question Marks in name
...eFile close access file theFile set cmd to "(sleep 300 ; /usr/bin/nice -n 2 '/Library/Application Support/ETVComskip/MarkCommercials.app/Contents/MacOS/MarkCommercials' --log " & unique ID of recordingID & ") &> /dev/null &" commonScript's write_log(cmd) do shell script cmd RecordingDone snippet Code: set origRecordingID to recordingID set recordingID to recording id (recordingID as integer) delay 15 set theFile to (path to temporary items from user domain as string) & origRecordingID & "- Title" open for a...
2006 Aug 02
1
Object is populated but attributes are unavailable
Will someone please tell me why this code... -------------------------------------------- def test org = Organization.find(1) write_log("Org: #{org.inspect}") write_log("Org name: #{org.org_name}") end ---------------------------------------------- ...is returning the blank org_name below? Am I accessing the object''s attribute wrong? ---------------------------------------------- Org: #<Org...
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl, Thanks for your help, About the "Connection:" header, you are right, it's: "Connection: close" and NOT "Connection: keep-alive". The protocol when the SERVER sends the data is http 1.0. It's http 1.1 when the browser requests the data. I don't understand the "Content-Length: 54000000" header either. Also I noticed the flash player on
2004 Aug 06
2
Transparent Proxy
Hi, The only need I have for icecast is as a transparent proxy. The problem is I can't get it to work as one, is this feature implemented? When I setup XMMS with a proxy of the computer running icecast (1.3.11) I get this in the logs when trying to connect to a stream: [16/Sep/2001:23:59:31] [9:Connection Handler] Accepted encoder on mountpoint 205.188.234.34:8004/ from
2004 Aug 06
0
Transparent Proxy
...00:02, Alex Stansfield wrote: > Hi, > > The only need I have for icecast is as a transparent proxy. The problem > is I can't get it to work as one, is this feature implemented I fixed the problem, it seemed that in source.c in the function source_login in this piece of code: -- write_log (LOG_DEFAULT, "Accepted encoder on mountpoint %s from %s. %d sources connected", source->audiocast.mount, con_host (con), info.num_sources); thread_mutex_lock(&info.source_mutex); avl_insert(info.sources, con); thread_mutex_unlock(&info.source_mutex); -- I found that the cod...
2004 Aug 06
6
URGENT: security exploit fix
...=========================================== RCS file: /cvsroot/icecast/src/avl_functions.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- avl_functions.c 26 May 2000 15:47:55 -0000 1.8 +++ avl_functions.c 10 Apr 2002 21:36:27 -0000 1.9 @@ -156,8 +156,8 @@ write_log (LOG_DEFAULT, "WARNING: compare_relays() called with NULL pointers!"); } - sprintf (cfirst, "%s:%d%s", r1->req.host, r1->req.port, r1->req.path); - sprintf (csecond, "%s:%d%s", r2->req.host, r2->req.port, r2->req.path); + snprintf (cfirst,...
2004 Aug 06
6
URGENT: security exploit fix
...=========================================== RCS file: /cvsroot/icecast/src/avl_functions.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- avl_functions.c 26 May 2000 15:47:55 -0000 1.8 +++ avl_functions.c 10 Apr 2002 21:36:27 -0000 1.9 @@ -156,8 +156,8 @@ write_log (LOG_DEFAULT, "WARNING: compare_relays() called with NULL pointers!"); } - sprintf (cfirst, "%s:%d%s", r1->req.host, r1->req.port, r1->req.path); - sprintf (csecond, "%s:%d%s", r2->req.host, r2->req.port, r2->req.path); + snprintf (cfirst,...