Each logfile is titled based on the date it was created in the format YYYY-MM-DD.txt. I need to search each file for five different keywords and output five files prepended with the specific keyword and then the original logfile name. Example: Test-YYYY-MM-DD.txt
grep -i -w 'keyword1' YYYY-MM-DD.txt Keyword1-YYYY-MM-DD.txt
If it's also possible to email each new file to a different person, that would be helpful as well.
I'm doing something very similar to the stackoverflow question preview only much more basic.
user types in text area - keyup shows what they've typed in preview
new lines aren't working
$('input, textarea').keyup(function(){
var value = $this.attr('value').replace('\n', '<br />').replace('\r', '<br />');
$('p.preview').html(value);
})
I think there are people who may be able to answer this, this is a question out of curiosity:
The generic CreateInstance method from System.Activator, introduced in .NET v2 has no type constraints on the generic argument but does require a default constructor on the activated type, otherwise a MissingMethodException is thrown. To me it seems obvious that this method should have a type constraint like
Activator.CreateInstance<T>() where T : new() {
...
}
Just an omission or some anecdote lurking here?
Say you have a directory with tens of thousands of messages in it. And you want to separate the spam from the non-spam.
Specifically, you would like to:
Run spamassassin against the directory, tagging each message with an X-Spam-Flag: YES if it thinks it's spam
Have a tcsh shell or perl one-liner grep all mail with the flag and move those mails to /tmp/spam
What command can you run to accomplish this? For example, some pseudocode:
/usr/local/bin/spamassassin -eL ./Maildir/cur/* | grep "X-Spam-Flag: YES" | mv %1 /tmp/spam
I like to configure my keys my way, so I wrote a keyboard symbols file and I put it in /usr/share/X11/xkb/symbols/cat
I use it by running setxkbmap cat -variant dvorak (and it works), but it doesn't show up in the console configuration (dpkg-reconfigure console-setup) nor in the Gnome keyboard settings... nor anywhere else, so I have to run setxkbmap every time.
I suppose that I have to register it somewhere, but where? Any hints?
Thanks!
hello,
i m new to sharepoint and bit confuse,
i don't understand where coding take place in sharepoint as other asp.net application.
how it work if i have to create a page for adding record to database.
I'm looking to see if anyone knows of slick tricks to test connections to remote server ports from Windows server 2008 and variants that don't include the telnet client installed by default. Reason being, I sometimes have clients that want to connect to port 25 for example on a remote server and say they can't. I used to run a quick test by using "telent mailserver.tld 25" or whatever to see if I could get a response on that port. I don't want to have to install the telnet client just to test this if I dont have to - are there any other native windows utilities that will allow me to connect to a remote port?
Have a maildir with tens of thousands of messages in it, about 70% of which are spam.
Would like to:
Run /usr/local/bin/spamassassin against it, tagging each message if the score is 10 or greater
Have a tcsh shell or perl one-liner grep all mails with a spam score of over 10 and move those mails to /tmp/spam
What commands can I run to accomplish this? Pseudocode:
/usr/local/bin/spamassassin ./Maildir/cur/* -tagscore10
grep "X-Spam-Score: [10-100]" ./Maildir/cur/* | mv %1 /tmp/spam
How can I open a new browser tab in ASP.NET and write to it? I don't want to redirect to a page but I want to write/output the content directly from source.
I have attempted bringing up a new farm and performing a stsadm backup/restore with no success. I have also tried doing a stsadm export/import with similar results.
I need to migrate/copy PWA to another server for testing purposes and I am at a standstill.
What is the best method to accomplish this?
I have 50 svg animations named animation0, animation1, animation2 etc. and I want to load them when the integer 0 to 49 is passed to this function:
function loadAnimation(value){
var whichswiffy = "animation" + value;
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), whichswiffy);
stage.start();
}
It doesn't work at the moment, maybe it's passing 'whichswiffy' rather than 'animation10'?
Any ideas?
Hi All,
Previously Ctrl + D was assigned to an application by a shortcut on Desktop.
The shortcut is now deleted but shortcut key is still assigned to the same application.
I need to reassign Ctrl + D to a new application.
Regards and Thanks,
Hello everyone
I have been coding procedural php for a while and I feel I got a pretty good hang of it.
I feel like learning something new. Any ideas on what is good/hot to know?
I have read some about zend mvc and it seems interesting, but im not sure..
I feel like procedural php is so unorganized and hard to debug when the project grows big.
help me out thanks
I am asking bc i know dell is going to give me a problem.
How do i know if my DVD is broken on my laptop? i burnt 4 DL disc and they ALL failed, i called and dell suggested roxio. I used it and burnt 1 disc without error and the 2nd disc with an error. With both apps there were no 'problems' during the burning process only failed on the verification process.
Some of these bad disc dont work on other PCs and one locks up windows when i click a specific file.
Does that sound like a broken burner to you guys? when i called dell they told me since it can read disc properly 100% of the time and software doesnt fail in the burning process its not a broken drive _. They forward me to software support who demand a fee (i think $100) to help me fix my software. I am annoyed bc i dont want to be on the phone for them to watch me burn a dvd and since i burned it once correctly i dont want to happen to burn correctly again to have them say they solved my problem (doing nothing) and charge me refusing to refund.
-edit- The errors i got were
1) the request could not be performed because of an I/O device error
2) Windows locking up when opening 1 specific file
3) Cannot copy : Data error (crc)
NOTE: the file that causes the problems are random every disc
I want to change my splash screen. But when I download any splash screen to my computer, I cannot install them. Every time, the computer gives me the same warning "that packet is not a format wanted" -warning like this-
I am asking "is there any other way to install splash screens?".
Note: I have also used 'Art manager' but it did not work properly.
Right now when I use Facebook's new OAuth2 system, it tells the user that my app is requesting to "Publish content to your Wall". How do I disable this (for fear of scaring off users), as I don't need this enabled. Possible?
I am going to rebuild my server and I am wondering whether I should install GCC 32 or 64 bit. I develop in Python and I use some libraries that would benefit from a 64 bit GCC installation but I am not sure if I am going to run into problems with other programs / libraries. What are your thoughts?
I want to overide a style thats in a stylesheet on another server. However, I dodnt want to enter new values, I just want to cancel out that style somehow. Is that possible? The competing style is overiding some of my other styles and I just want to basically filter the remote style out.
Hello
Can I call constructor explicitly, without using new, if I already have a memory for object?
// class Object1{char *str;public:Object1(char*str):str(str){puts("ctor");puts(str);};~Object1(){puts("dtor");puts(str);}};
Object1 ooo[2] = {Object1("I'm the first object"), Object1("I'm the 2nd")};
do_smth_useful(ooo);
ooo[0].~Object1(); // call destructor
ooo[0].Object1("I'm the 3rd object in place of first"); // ???? - reuse memory
I see that the most time on computer I loose just for searching a suitable software.
How you do it? what is your way to find a software?
you first go on Forum?, google? Which torrent site? which P2P prog.? website, server?
my problem - my way is:
For example: "I need a software that have function remote and also leaves you to copy and paste (drag and drop - file manage). And after few hours searching on Google I download LOGMEIN pro2, but than I see that is just trial. so if I need to find alternative I will spend another whole day
Where to go?
I am not big amateur but I need better system.
I need better intorudction how to find what is the suitable software for you and where you can download it?
Does executing EntityManagerFactory.createEntityManager() reutrn new instance each time? or it returns the cached copy of the same EntityManager each time?