Search found 225 matches

by byrdman
Tue May 11, 2010 12:43 pm
Forum: Programming
Topic: MySQL help
Replies: 9
Views: 10006

Perfect, it worked. Now on to another plea for help. I have the data correctly in the database, and even the year is not hardcoded. If I did a select * from database it would give me: May 2 18:19:17 user1 x.x.x.1 May 2 18:19:18 user2 x.x.x.2 May 2 18:19:21 user3 x.x.x.3 May 3 18:19:26 user1 x.x.x.1 ...
by byrdman
Thu May 06, 2010 1:00 pm
Forum: Programming
Topic: MySQL help
Replies: 9
Views: 10006

Thank you! I will try it. The year was hard-coded for testing reasons. I was having issues with pulling it from the array and got tired of guessing cause it was getting late, I think. Thanks again for your help...!!
by byrdman
Thu May 06, 2010 10:47 am
Forum: Programming
Topic: MySQL help
Replies: 9
Views: 10006

my INSERT looks like:

$sql = 'INSERT into ncl';
$sql .= '(`month`,`day`,`year`,`time`,`client_venue`,`client_ip`)';
$sql .= "VALUES ('$cur_line[0]','$cur_line[1]','2010','$cur_line[2]','$cur_line[3]','$cur_line[4]')";

how would I get it so $cur_line 0, 1, and 2 all go into a single DATETIME field?
by byrdman
Wed May 05, 2010 8:04 pm
Forum: Programming
Topic: MySQL help
Replies: 9
Views: 10006

MySQL help

I was wondering if anyone out there could help me. I have a 'log file' generated from the /var/log/secure that tells me my clients logging in. I have the file trimmed down so I see the following: May 2 18:19:17 user1 x.x.x.1 May 2 18:19:18 user2 x.x.x.2 May 2 18:19:21 user3 x.x.x.3 May 3 18:19:26 us...
by byrdman
Tue Mar 16, 2010 9:17 am
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

another regex request for help. I have a request from a client to get them NCAA scores. my feed gives me: March 13, 2010: Team A 68* vs. Team B 61 (NCAAB) March 13, 2010: North Team A 82* vs. South Team B 75 (NCAAB) how could I take the above to $date = matches[1] $team_a = matches[2] $score_a = mat...
by byrdman
Mon Feb 22, 2010 3:58 pm
Forum: Fedora/Red Hat
Topic: open gui's on remote displays
Replies: 1
Views: 3954

open gui's on remote displays

I was wondering if someone could help. I can create a cron script that will kill my browser in my logged in display...but how can I create a cron script to start a browser (opera) on the logged in display? everytime I try and envoke it, I get : ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot...
by byrdman
Thu Feb 11, 2010 9:32 am
Forum: Programming
Topic: PHP log viewer
Replies: 4
Views: 6145

Yeah, I was looking at that but never got around to installing it. is it resource intensive? would it kill my server if it was on the same server I am logging? or should I get my own splunk server?
by byrdman
Wed Feb 10, 2010 12:04 pm
Forum: Programming
Topic: PHP log viewer
Replies: 4
Views: 6145

PHP log viewer

Does anyone know of a php script that can view/parse any log file in question? More specifically, the secure log? I want to make an admin page for my guys to view the /var/log/secure and see the logins for the past day. Some google responses mentioned placing into a mysql db first...? is that a good...
by byrdman
Tue Jan 26, 2010 6:33 pm
Forum: Fedora/Red Hat
Topic: three screens - video wall
Replies: 0
Views: 3728

three screens - video wall

I was curious if anyone has seen/done/heard of a video wall in linux? Speciffically three 42 inch LCDs turned 90 degrees and the desktop spanned across all three for one image?
by byrdman
Mon Jan 18, 2010 8:40 am
Forum: Fedora/Red Hat
Topic: SSH server
Replies: 1
Views: 3929

SSH server

I have a question about SSH. I have a server set up as a SSH server. I have 10 systems in the field that automatically rsync over ssh into my ssh server. Over the weekend I was hit with a potential problem that I may have found the answer to but wanted to verify. 1. ) If I lose my ssh server and hav...
by byrdman
Fri Dec 11, 2009 3:34 pm
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

THANK YOU!! it worked!!
by byrdman
Fri Dec 11, 2009 11:34 am
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

for ($x=0;$x<count($title_array);$x++) { //insert rss item into database store $title = $title_array[$x]->title; $newdesc = $title_array[$x]->description; preg_match_all("/^\slast:\s?([\d,\-\+\.]*),change:\s?([\d,\-\+\.}*),percent:\s?([\d,\-\+\.%]*)$/", $newdesc, $matches); $price = $matches[1]; $c...
by byrdman
Fri Dec 11, 2009 11:02 am
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

yes, my apologies. the original has [$x]
by byrdman
Fri Dec 11, 2009 8:32 am
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

perfect! thank you!! now for a more difficult one. I found a cheatsheet on regex and was doing some practicing and ran into a bump. my php reads from a xml file. it loops through each of the nodes and pulls the data correctly. the second varible it grabs from the xml is in this format: last: 1,345.3...
by byrdman
Mon Dec 07, 2009 5:11 pm
Forum: Programming
Topic: regex help
Replies: 9
Views: 9671

regex help

I was wondering if anyone would have a solution to my problem: I am trying to get stock information from a site and use it in a way that is better for me. the site I am using lets me pull the company name and symbol but it returns it as one line so when I pull google's stock the first line I get is ...