I was just in the Hardware & Softwre Chat. Here are a few lines Mon 1:31 pm savedlema I see Reverend Jim here...you have answered so much of my difficult questions on VB.NET...Thank you so much. Mon 2:04 pm savedlema nobody is here..time expired? Mon 11:06 am DaveAmour Hi Mon 11:25 am Reverend Jim Glad I could help. Just scanning the log quickly, the eyes see Mon Mon Mon... and it isn't immediately obvious that one or more weeks passed between `Mon 2:04` and `Mon 11:06`. Would it be possible (and reasonably easy) to modifly the chat log display code …

Member Avatar
Member Avatar
+1 forum 9

I'm wondering is there anything specific I should take into account when writing CMS logging (debug/alerts) into a plain text file? To specify more what I have in mind, think of logging into SQL database, and how stuff need to be escaped to be sure there won't be injection-attack thru log-mechanisms. In my personal project, there's logging into MySQL database, but I've left out plenty of (perhaps) useful data to minimize possibilities for security-holes, as I'm not entirely convinced that *mysqli_real_escape_string()* is "do it all"-solution. It's flawed too, so there's need for rewrite anyways. If it wouldn't be my CMS, …

Member Avatar
Member Avatar
+0 forum 4

I've been trying to find a way to filter the Event Viewer in Windows by the description instead of the event type/source etc. I figure that i need to use the XML tab to customise it as there is no option in the basic filtering for what I want. One reason why I want to do this is to find when I service was started. The sytem logs show when services stop and start but they all have the same event ID, Event Type and Source. The "description" I'm referring to is the text you see in the "General" tab. …

Member Avatar
Member Avatar
+0 forum 4

Hi, I changed my wodrpress URL manually and after then i saved and loged out from admin panel . now i can't login to my wordpress Admin page after changing The URL 's and whenever i want to log in it redirects to other page that i changed in URL . now i can't login to Admin page to correct URL's . what should i do to solve this problem . Thanks so much ,

Member Avatar
Member Avatar
+0 forum 4

When I open a page the page loads for a very long time and no errors appear in the logs. I've run it through a syntax checker which told me there was one more opening parenthasis than expected, but didn't give me a line number, so I have no idea where the error is happening. I know it is bad practise to paste all of your code, but in this scenario I have no alternative! I've removed most of the totally static HTML and javascript. <?php require_once("models/config.php"); if(!isUserLoggedIn()){ header('Location: login'); } define('OKAY','fine'); include('models/db/imgconnect.php'); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" …

Member Avatar
Member Avatar
+0 forum 5

i need help for my project.. we are tasked to create a website yet i don't have codes for the LOG IN button can please give me ?

Member Avatar
Member Avatar
+0 forum 4

Hi there, Recently I've started using a client called Tribot which allows me to automate playing a game. The Client has been crashing (for example I was running 8 clients simultaniously last night) and one by one, they crashed over time and produced there error logs in the start-up directory http://gyazo.com/433e92435372a28cccd859c0aaee76e7 Computer Specs: Itel i7 2600k 3.4Gz Quad Core CPU AMD Radeon HD 6800 Series GPU ASUS P8Z77-V Motherboard 16GB DDR3 1333Mhz RAM My hard-drive is not full, or close to. (>30gb of space free) http://gyazo.com/f450d3f08baf89bc86c3bb00626449db Is there any chance somebody could help me understand what is going wrong and …

Member Avatar
Member Avatar
+0 forum 2

Hi evry1, I am currently doing an assignment on a video streaming website where I need to register users, log them in and out, upload videos, stream them, comment on them, etc Everything works out fine just tat after some seconds my session gets killed automatically or should I say tat any1 who is logged gets logged out. It works like this: - I have a master page which changes dynamically depending if and who logs in - When som1 logs in his username and accountype is retrieved from the database and stored in separate session variables - These variables …

Member Avatar
Member Avatar
+0 forum 1

Hello! I'm currently running in to an issue where I need to loop through a specific log file until a string of text occurs, which indiciates that I can continue on with the application. Here is my code and logic: Dim process As New Process() Dim serverLog As String Dim instance As String Dim server As String Dim list As New ArrayList() server = cmdTextbox1.Text instance = cmdInstance.Text Dim rdsLog As String = "\\" & server & "\c$\rds\server\" & instance & "\log\server.log" Dim i As Integer Dim ItemList As New ArrayList() process.StartInfo.UseShellExecute = False process.StartInfo.RedirectStandardOutput = True process.StartInfo.RedirectStandardError = True …

Member Avatar
Member Avatar
+0 forum 3

**hello every body i am trying to filter alog file witch is save as txt file on my computer so i want to filter the log file depend on a particular word and this word apper in 3 column but the column i want is th 3rd one for example ,now i know that i must use the split function but i cant figure how i must use it i will atatch my code mybe you can understand it and help me to make it work ** #include <iostream> #include <string> #include <fstream> using namespace std; int main() { string …

Member Avatar
Member Avatar
+0 forum 7

Hi there, I have been trying to fix the problem in the below code for a long time, it did work for me at some point. Then, it suddenly stopped storing user's details in a session. $user = $_POST['username']; $pass = $_POST['password']; $query = "SELECT username, password FROM USERS WHERE username = '$user' AND password='$pass' "; $result = mysql_query($query) or mysql_error(); $row = mysql_fetch_assoc($result); if( $row['username'] == $user ){ $_SESSION['username'] = $row['username']; $_SESSION['password'] = $row['password']; header('Location:settings.php'); } and this is the form where the above mentioned script gets the values from echo "<form action='log_in.php' method='post' >"; echo "<input type='text' name='username' …

Member Avatar
Member Avatar
+0 forum 12

Hello, i need your help. Does anybody knows the code for automatically records who logged in and the other users cannot edit what they have inputed, only the datas they input can be edited? i have the log in form already, and the database as well. the only problem is what i have said above, the datas can be edited by other people as well. hope you guys can help me. :D

Member Avatar
Member Avatar
+0 forum 27

So im trying to make a password login and im getting errors. i got past my Unable to jump to row 0 error with this: **mysql_num_rows($result) >= 1** but now it wont jump to the row when the password is correct ether :/ here is the code; whats wrong with it? $result = mysql_query("SELECT * FROM users WHERE CallSign LIKE '".$_POST['signin']."'"); $result1 = mysql_query("SELECT * FROM users WHERE Password1 LIKE '".$_POST['password']."'"); if (mysql_num_rows($result) >= 1 || mysql_num_rows($result1) >= 1) { die('Could not connect: ' . mysql_error()); } else if (mysql_result($result, 0) == mysql_result($result1, 0)) { echo "<br>CallSign matches password"; setcookie("user", …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I am trying to write a code for logout, and I want to clear session My code Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Session.Abandon() Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", "logAccount")) Response.Redirect("WebForm5.aspx") End Sub and i want to disabling browser's to go back please hellp !!!!

Member Avatar
Member Avatar
+0 forum 4

Hi all, I'm looking for a good tool for analysing Windows Server Event Logs. Basicaly, I want to be able to filter by types of entries or content, and search. If it has some smarts built in for things like highlighting suspicious behaviour that would be great too. I need to be able to monitor/review IIS activity and Active Directory access. Any recommendations? cheers /H

Member Avatar
Member Avatar
+1 forum 6

Hi, Can someone help me on this. I need to make here a log when request is start and when is end. I want to see how much time is taken for request/response. WebResponse response = webRequest.GetResponse(); //Console.WriteLine(((HttpWebResponse)response).StatusDescription); // Get the stream containing content returned by the server. Stream dataStreamResponse = response.GetResponseStream(); // Open the stream using a StreamReader for easy access. StreamReader reader = new StreamReader(dataStreamResponse); // Read the content. string responseFromServer = reader.ReadToEnd(); // Display the content. Console.WriteLine(responseFromServer); //<---- // Clean up the streams. reader.Close(); dataStreamResponse.Close(); response.Close();

Member Avatar
Member Avatar
+0 forum 4

gud day... i just wanna ask if someone could give me a sample code of a user's activity log ..where it records the time of login and logout of the user .. and also records the users deleted, created and updated data... .tnx :D and should i also create a table in the database for activity log?

Member Avatar
Member Avatar
+0 forum 9

In working on a logfile for an application, I needed to limit the size of the logfile to 1000 bytes. Since it is not possible to delete lines from a file in C++, I used the following steps: Rename the logfile to a temporary name. Read the temporary file. Write the last 1000 bytes to a new logile. Delete the temporary file. I tested my code on another machine (location: Desktop) and it worked perfectly. When I tested the exact same code inside the application (location of the logfile: /var/HHPVideoServer/log.txt, application is run as sudo), it has no effect. Here …

Member Avatar
Member Avatar
+0 forum 3

Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks

Member Avatar
Member Avatar
+0 forum 10

I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ?

Member Avatar
Member Avatar
+0 forum 4

I am writing a program that writes log entries to an external text file and returns them upon request. When called, the return function should output the log entries between two user- submitted dates or outputs the last 100kb of the file if that's what's requested. The logfile stores each entry like: [ICODE]YYYY-MM-DD Logmessage[/ICODE] But I can't get my program to compare only dates. It compares each string it grabs, and when it compares text to a date, it doens't behave properly. Here's the code: [CODE]int returntouser() { std::stringstream returnstr; std::string begdate, enddate; int validdate = 0; while (validdate == …

Member Avatar
Member Avatar
+0 forum 1

In writing a logger for an application, the datestamp ends up adding a new line. The datestamp function is as follows: [CODE]string log_class::get_time() { time_t rawtime; time (&rawtime); string timestamp; timestamp = (ctime (&rawtime)); return timestamp; } [/CODE] This outputs something like [ICODE]Tue Sep 6 14:58:35 2011[/ICODE], but when called in the main function with [ICODE]logfile << get_time() << " " << logmessage_to_write << endl;[/ICODE], it produces a newline after the datestamp like: [CODE]Tue Sep 6 14:58:35 2011 data goes here[/CODE] I would like it to be on one line, as in [ICODE]Tue Sep 6 14:58:35 2011 data goes here[/ICODE], …

Member Avatar
Member Avatar
+0 forum 5

Hi, I am new in a python2.7. Please help how efficiently we parse and store the fields in dictionary for later retrieval. my log file example #Version: 1.0 #Fields: date time c-ip s-dns x-proto s-parser cs-resource s-resource sc-response-code sc-response s-candidate-ips x-preferred-location x-location cs-user-agent s-ip c-port #Software: vx-logfeed 1.3 #Start-Date: 2011-04-20 14:05:00 2011-04-20 14:07:30.3 192.0.2.1 us1.isp1loc1s1.abc dns vxdns wp-1234000000000000.id.abc.example.com wp-1234000000000000 NOERROR 198.51.100.201,198.51.100.211 198.51.100.101,198.51.100.102 n.isp1.serv.us.ny n.isp1.serv.us.ma - 198.51.100.101 2323 #End-Date: 2011-04-20 14:10:00 #X-Records: 1 thanks

Member Avatar
Member Avatar
+0 forum 2

I recently wrote a java jar file that takes the current date and time and puts it into a text file. What i want to do is put this into a users startup folder so i know when they got on to the computer. However, if the jar is in the folder nothing happens. If i put a .bat file in the folder with the code [CODE]javaw -jar LoginLogger.jar[/CODE] it gives me an error saying that LoginLogger.jar could not be accessed. But if I double click the bat it works fine. Just not at startup. Does anyone know whats wrong …

Member Avatar
Member Avatar
+0 forum 5

Introduction How to capture the errors from application and write it in a log file. We have to mention the directory path in Webconfig file. Background This code is to capture the error log in log file with all information. The code Code: CSharp [CODE] public class LogError { private DateTime errorDt; private string src; private Exception errorInfo; public static string strDirectoryPath; public DateTime ErrorDate { get {return errorDt; } set { errorDt = value;} } public string ErrorSrc { get { return src; } set { src = value; } } public Exception ErrorInformation { get { return errorInfo; …

Member Avatar
Member Avatar
+0 forum 2

i have netbook with 4gb ssd for windows installation. i need to reinstall it so the documents and settings is on main hard drive (100gb) and program files are also on main drive. got my xp installation, and I extracted iso into actual folder with winrar, searched for WINNT.sif i put the following commands under the unattandedgui section: ProfilesDir = D:\ Programfilesdir = D:\ then i took the folder and rebuilt it with imgburn and i got the edited iso to boot. then when installation came, i chose to install on ssd 4 gig, installation was going good, then reboot, …

Member Avatar
Member Avatar
+0 forum 1

Problem with storing extracted values in SQLite - How to adress or index list of values for proper insertion into table. The Regex works fine: input logging data looks like: 0.0.0(06026104) 1.6.1(0.1501)(1011111000) 1.6.1*32(0.1446)(1010190800) 1.8.1(02484.825) 1.8.1*32(02449.574) correct regex output: 06026104 0.1501 02484.796 [CODE] with open("usage.log") as fp: for line in fp: match = re.match(r'(0\.0\.0|1\.6\.1|1\.8\.1)\(([0-9\.]+)', line) if not match: continue version, value = match.groups() mylist.append(value) for item in mylist: t = (item) cursor.execute('INSERT INTO energielog(sernr) values (?)', [t]) cursor.execute('INSERT INTO energielog(peak) values (?)', [t]) cursor.execute('INSERT INTO energielog(kwh) values (?)', [t]) [/CODE] How can I achieve the proper line by line read into …

Member Avatar
Member Avatar
+0 forum 4

Hi, Is there anyone who know which complexity these functions are? I mean O(n), O(n^2), O(n^3), n log(n) or log(n) 1. --------------------------------------------- [CODE]void bogosort_array(double a[], int length) { do shuffle_array(a, length); while (! is_array_sorted(a, length)); }[/CODE] 2. --------------------------------------------- [CODE]void reverse_string(char* s) { int n = strlen(s); for (int i = 0; i < n / 2; ++i) { char temp = s[i]; s[i] = s[n - i - 1]; s[n - i - 1] = temp; } } [/CODE] 3. ------------------------------------------------------------- [CODE]double arrays_are_equal(double a[], double b[], int length) { for (int i = 0; i < length; ++i) { if …

Member Avatar
Member Avatar
+0 forum 2

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Member Avatar
Member Avatar
+0 forum 2

I have a new requirement telling me to roll out the log every 8 hours.. I mean.. a new log file must be created every 8 hours.. taking back up of previous logs Is is possible in log4j.prop As far i have searched in Internet, rolling out every 1 hour or 1 day etc... are available But how to roll out for 8 hours or something like that. If the above is not possible I think I must go by rolling out according to some specific file size. Kindly do lemme know whether rolling for specified no of hours is …

Member Avatar
+0 forum 0

The End.