Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~25.6K People Reached
Favorite Tags
Member Avatar for jp071

Hello, I am doing simple read/write program for serial port. I am faceing a error that i donĀ“t understand. Error is: "error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [5]' to 'LPCWSTR' " My whole program: #include <windows.h> #include <iostream> #include <string> using namespace std; void set_com_pin(bool …

Member Avatar for zeroliken
0
2K
Member Avatar for jen140

Hello. I've been doing a small application that will go (using only unsigned integer values) from 0 to 4026531840 and print them out. My code is next: [CODE]#include <stdio.h> #include <inttypes.h> int main(void){ uint64_t cnt; for(cnt=0;cnt<=4026531840;cnt++){ printf("%d\n",cnt); } } [/CODE] The only problem that i have is the last numbers …

Member Avatar for jen140
0
185
Member Avatar for jen140

Hello everyone. I've been googling for a while but couldn't find any complete reference for the next question. So the question is, what do i need(cables, cards, etc) to connect a Fibre Channel Hard Drive on a normal desktop computer, by that i mostly think about the pci-e slots. Please …

Member Avatar for rubberman
0
236
Member Avatar for jen140

Hello all. I was trying to do some text recovery ([url]http://www.cyberciti.biz/tips/linuxunix-recover-deleted-files.html[/url]) but after running grep -b 'TEXT' /dev/ad0 > good.txt i only see "Binary file /dev/ad0 matches" in the good.txt, whats wrong here ? =) Thanks in advance.

0
117
Member Avatar for jen140

Hello again. I was trying to login to my web server protected with basic auth, and after i understood that it would be nice to automatically detect the realm so now i want to know on how to do so. Thanks in advance.

Member Avatar for jen140
0
433
Member Avatar for jen140

Hello all. I have a small problem, the next code finds the neden content, but it doenst print it: [CODE]$string = "#324423asdd asd 'BecamePosters' "; if($string =~ m/'[a-zA-Z]{1,40}'/) { print "ok!\n"; print $1; } else { print "not ok!\n"; }[/CODE] It only prints "ok!\n" but nothing more. Also triyed m/'*'/ …

Member Avatar for jen140
0
97
Member Avatar for jen140

Hello all, i've tryied to setup a mail server using thise guide: [url]http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html[/url] I can easily recieve it, but have problems sending it. My main.cf : [code] biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = server alias_maps = …

Member Avatar for jen140
0
261
Member Avatar for jen140

Hello again. Thise time i'm looking for an app, that will do packet sniffing (using pcap) and make a nice statistics by service and by destination showing the ips from local computers and from internet computers, the ideia is to see in with some web browser client. Example log: FROM …

0
81
Member Avatar for jen140

Hello all, i would like to know how it is possible to remove for example last 20 characters, or by specifing the string to remove. For example i have 2 rows (in reality there are more than 100, thats why im not working it out by hand) with the next …

Member Avatar for nav33n
0
171
Member Avatar for jen140

Hello all. I have a small problem, i need to recieve a 8 digit number for example: 12345678 87654321 and so on. After i need to devide the value and use the int as a array, something like int i=123; System.out.println(i[1]); It should return 2 (therocially), but obviously the doesnt …

Member Avatar for jen140
0
399
Member Avatar for jen140

Hello all. After passing for some days trying to configure ip forwarding under debian i've understood that there is some problem with them. So now i'm looking for any stand-alone app, not a firewall to handle the port forwarding. Would be glad for any information. If you have some skill …

Member Avatar for jen140
0
599
Member Avatar for jen140

Hello all. I have a string that will contain the username, for the security reasons i want it to be checked it if its diferent from the specific charset. I think it could be done by looping the check 1 character from the username at a time till the end …

Member Avatar for EvolutionFallen
0
95
Member Avatar for jen140

Hello all. I was trying to execute wget from the perl under windows vista. In cmd i can easily run wget because its in \windows\system32 folder. But from perl,when i try both system('wget --h'); and system('c:\windows\system32\wget --h'); i get the next error : 'wget' is not recognized as an internal …

Member Avatar for jen140
-1
90
Member Avatar for jen140

Hello all. With help on forum i've got the ideia of making the script to check if the file was created today and if its so,print its name. Here it is: [CODE] #!/bin/bash for file in *; do filedate= "date -r $file +%Y-%m-%d" currentdate= "date +%Y-%m-%d" if["$filedate" == "$currentdate"]; then …

Member Avatar for rhousand
0
135
Member Avatar for jen140

Hello all. I was looking for a way to make some grafical stats of recieved files on my honeypot. After thinking on the way to do so, i understood that the easiest way would be parsing the filename with regullar expression or using dir() command. But for parsing the data …

Member Avatar for jen140
0
97
Member Avatar for jen140

Hello all. I have a small problem, i would like to make a statistics website. What i need is to show only two columns(creation date, filename) when i do "ls" to be like: 2009-2-2 filename Reading the man didnt helped much. Thanks in advance.

Member Avatar for jen140
0
123
Member Avatar for jen140

Good day. I want to create a small app that would take out the content from a rss feed and posteriorly from the url . I know that would be easily done in perl with regular expressions, but in php it seams a bit more difficult. So i want to …

Member Avatar for jen140
0
109
Member Avatar for jen140

Hello all. I have a small db, that has news. I want to update the field "content" to add the phraze "<br>Aproved by Admin" for every row in the database. A better explanation, i have table news, with 1 table that is defined : create table news (id int, creator …

Member Avatar for jen140
0
175
Member Avatar for jen140

Hello all. I want to add the mysql to ODBC sources. Im currently running windows vista, and in the control panel, Data Sources (ODBC) when i try to add a system Dns as source i cant find mysql in the list. Here is a pic(so you dont spam [url]http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-windows.html#connector-odbc-configuration-dsn-windows-5-1[/url] or …

Member Avatar for jen140
0
100
Member Avatar for jen140

Hello all. I have a small problem with sql. I have a table that has name and rank. For example the ranks would be getted like : select name,score from scores order by score desc So the first line i would see would be person with rank 1, second line …

Member Avatar for jen140
0
91
Member Avatar for jen140

Hello all. I have a small app that only runs on FreeBSD, and have a host where i dont have root. That app requires many libraries, most of them i have, but the problem , that app doesnt look for libs at current folder. I tryied running the app on …

Member Avatar for jen140
0
135
Member Avatar for jen140

Hello all. I get a small problem compiling it. And get the next error: \client/windows/handler/exception_handler.h(72) : fatal error C1083: Cannot open include file: 'client/windows/crash_generation/crash_generation_client.h': No such file or directory So how i proceeded : Installed mozilla-build 1.4, reinstalled the windows sdk(to the latest version), and have Visual Studio 2008 Professional …

Member Avatar for jen140
0
145
Member Avatar for sara khan

Hello..,, I have read about a function used in file handling named as "peek". If anyone knows about this function then plz tell me.....

Member Avatar for VernonDozier
0
213
Member Avatar for jen140

Hello again. I'm now looking for a way to see if the current user has admin rights. I tryied the Iczelions way, and it always says that i dont have admin rights (on vista) . The next code i dont remember where i found, but it always says that the …

Member Avatar for jen140
0
148
Member Avatar for jen140

Hello all. I want to show a boolean value with MessageBox. But it only accepts strings. I'm currently looking throught win32 sdk but cant find any function to convert a bool to a string(something like .Tostring in c#). Any help ?

Member Avatar for jen140
0
229
Member Avatar for jen140

Hello all, i have a small question. In mysql i can do "select 'abc' into outfile 'c:\out';" is it possible to be done only with sql querry (to be executed at the server manager). I tryied select 'abc' into outfile 'c:\out.txt' and got the error : Incorrect syntax near 'c:\out.txt'.

0
56
Member Avatar for jen140

Hello all. As always i have another problem with my Visual Studio 2008 Professional edition. I am running it on windows vista ultimate x64 edition. And i couldnt get my apps made here to work under any other xp machine (x32). I have created an empty c++ project ( Framework …

Member Avatar for jen140
0
177
Member Avatar for licktress

Hey guys. I am trying to make a program that prompts the user to enter in a directory path, and then the program goes to that directory and displays what is inside. [CODE]string cString; cin >> cString; system("cd " cString); //this is what i am having trouble with. system("DIR"); system("PAUSE");[/CODE] …

Member Avatar for Ancient Dragon
0
215
Member Avatar for NimaJ

Hi, I'm trying to read the HTTP URL string using C++, and I was wondering if it is possible. Here is my situation: There is a server listening to a socket. This socket receives an HTTP Request such as: [url]http://localhost/MyApplication[/url] ? userID = x All I need to do is …

Member Avatar for jen140
0
166
Member Avatar for jen140

Hello all. I have some problems with compilation while working with WinApi. Here is the code: [code=c++]// include the basic windows header file #include <windows.h> #include <windowsx.h> // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program …

Member Avatar for jen140
0
234