Quering for Windows Event log data [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am trying to query Windows Event log for events and am a bit stuck at which approach to use. Windows Developer documentation lists two examples (and approaches) of querying log data.
Querying for Events
http://msdn.microsoft.com/en-us/library/aa385650%28v=vs.85%29.aspx
using EvtQuery function
Querying for Event Information
http://msdn.microsoft.com/en-us/library/windows/desktop/bb427356%28v=vs.85%29.aspx
If anyone has experience querying for event data, are these two approaches equal? Or is any of them outdated or not recommended for actual use? I am new to Windows programming and not really found any recommendations regarding any of these approaches on MSDN.

http://msdn.microsoft.com/en-us/library/aa385650%28v=vs.85%29.aspx using EvtQuery function
The difference is in the use of header. This approach is simpler but you will need to design either an XML or structured XML query.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb427356%28v=vs.85%29.aspx
If you need more flexibility in the format of the returned events (like time stamp format) use this approach. This is harder but gives more flexibility if you need control over the format of the extracted data.

Related

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 => What is form data precisely? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 months ago.
Improve this question
Hail all:
Though I am 52, and active with computers since 1986 (those were more oversized calculators, to be correct), i have no idea what is meant with Form Data.
I know, I know, this is insane, but i just never came across this before.
Might be, I DO know it, but by a different name, maybe Dutch.
Still I am quite stuck, to be quite honest.
Tried to google it, got heaps on information as to how to clear it, restore it, save it, unsave it, ... , but nowhere an in-depth explanation of what is meant with form Data.
Now, I am building a Batch File, for speed-cleaning of certain data, when my Firefox starts to get slow ... .
Came across the "erase Form Data" command, but nae clue as to what Form Data is.
Thank you.
Ben
That rundll32 command only applies to Internet Explorer and will not touch Firefox.
Anyway, form data is data entered into html forms like your name, address and telephone etc. These form fields are edit boxes, check/radio buttons and drop-down selectors.
Firefox has its own setting to clear form data when you close the browser. Form data is very low on the list of what slows down your browser...

The meaning of the rundll32 command [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
rundll32 url.dll,FileProtocolHandler https://bsu.by
What does each word mean and why does it eventually open this link in the default browser?
It's a rather old utility that loads a DLL (with LoadLibrary), finds an exported function (GetProcAddress), makes its best guess about the expected parameter types from the looks of its command line, and invokes said function. In this case, since there's one parameter and it's not a number, rundll would assume - a single string (LPCWSTR).

Data sets for realistic random/test data generation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where to get data sets for random or test data generation, such as names/surnames with distribution, address data, university/school names, company names etc.?
I've found the list of English names and surnames, with the count of them (unfortunately I haven't noted from where I got that). I got address database from Poland. However these data sets from other countries would also be very useful for me. So with university and school names.
What data do you need as source for such information? Could you provide links to such data? (of course, only those who are free publicly available)
I think you will find answer to your question in following topics:
Sample database for exercise
https://stackoverflow.com/questions/202092/where-can-i-find-free-and-open-data
There are many open source and commericial test data generators on internet. Below 2 are good ones
http://www.sqledit.com/dg/
http://www.generatedata.com/#about
for random numbers/strings: http://www.random.org/
Amazon has made several public data sets available for free download:
http://aws.amazon.com/publicdatasets/
Try http://www.mockaroo.com
You can generate up to 100,000 rows of data in CSV, tab-delimited and SQL formats, save & reuse schemas, and automate test data generation using curl.
There is a free API at http://randomprofile.com/api-for-developers/ for generating test user profiles which include name, surname, address, bank info, CC number, blood type etc. Not sure about the schools, but useful if you're looking after data on Asian users.

looking for an open source text editor with very fast 'search in files' capability [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have this 100.000 files codebase that i need to tame and i need to very often search for the occurences of a specific function call or a function definition.
Currently with notepad++ it takes me more than 5 minutes to do the search.
Do you know of a programmer's editor that would make the job ?
Thank you for your help
Jerome Wagner
Maybe you should use a specific search tool for the search, rather than a text-editor...
Depending on your platform, there are various tools available such as GREP (command line), Windows Search Service (which creates indexes of the files in advance to make queries faster) or even Google desktop search.
http://www.google.co.uk/search?q=file%20search%20tool
(Tip: Add Windows / Linux etc to the search)
grep should be most forward implementation of what you are looking for.
I tested it on an older system with 11k source files and it took 20s.
Assuming avg file size of 1k you are dealing with 100MB of text. Assuming avg file size of 10k you are dealing with 1GB of text.
Searching that much data will take time.
If you expect to be much faster then 5 minutes you will need to build indexes.
There are specialized tools that will allow you to do that:
doxygen
cscope
sxt
For more visit wikipedia
Yes, Grep is good and popular to be integrated in many tool on many platform.One free for win:http://www.pspad.com/
The BEST one I ever used is built into
PSPad (www.pspad.com / freeware) it
displays a list and you can change
anything or all the strings, or search
and see where they appear. You can
also search specific directories only.
You can also be interested in ack, or cscope.
You can integrate ack inside vim with the following:
set grepprg=ack
nnoremap <f1> :grep<space>
nnoremap <f1> :grepapp<space>

google ajax api results differ from normal search, why? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I read about the Ajax API here Scraping/Parsing Google search results in Ruby
For some reason, I get completely different results from the same query when using the Ajax API than I do from normal search. Is there a simple explanation?
here are the two:
http://www.google.com/search?hl=en&rls=en&q=site%3Ahttp%3A%2F%2Ftwitter.com%2F+following&aq=f&oq=&aqi=0
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&hl=en&rls=en&q=site%3Ahttp%3A%2F%2Ftwitter.com%2F+following&aq=f&oq=&aqi=0
both have parameters hl=en&rls=en&q=site%3Ahttp%3A%2F%2Ftwitter.com%2F+following&aq=f&oq=&aqi=0
run at the same time, they never give me the same results, often they're very different (depending on the search parameters.
what's going on?
Also, the
I'm guessing here, but usually if you do a google search using your regular account and have the history enabled, google will use your previous search to give you more accurate results. There are a bunch of things like that that may cause differences between searches with the exact same keyword(s)
The Axaj API is suspected to offer slightly different results to avoid the automatic harvesting of search result (SERP) info.
This is the same reason they only return 8 results per page and upto 8 pages via their AJAX api.
In principal they don't want people collecting this data, as it is usually used for SEO purposes in an attempt to coerce certain sites higher unduly.

Resources