I am attempting to search through all the files in a directory for text matching the pattern of any arbitrary directory. The output of this I hope to use to make a list of all directories referenced in the files (this part I think I can figure out on my own).
I have looked at various regex resources and made my own expression that seems to work in the browser based tool but not with grep in the command line.
/\w+[(/\w+)]+
My understanding so far is the above expression will look for the beginning / of a directory then look for an indeterminate number of characters before looking for a repeating block of the same thing.
Any guidance would be greatly appreciated.
I have much of my family's doings on a Blogspot blog. I would like to print this out in a nice book.
The actual printing I plan to just send to CostCo as Photo Prints.
But I need some kind of software to reformat the posts into printable paper size sheets. I would like it if I could retain my blog's background and let me adjust how the pictures fit on the screen.
Now I could do all of this with MS Publisher or Word. But I am curious if there is any other software out there that does this nice and easy.
Anyone know of some cool software that will do this for me? Free is nice, but I am not above paying a modest fee for cool software. I would prefer to avoid another website that will charge for the printing as well as the converting.
I have this code in /etc/procmailrc:
DROPPRIVS=yes
DEFAULT=$HOME/Maildir/
:0
* ? /usr/bin/test -d $DEFAULT || /bin/mkdir $DEFAULT
{ }
:0 E
{
# Bail out if directory could not be created
EXITCODE=127
HOST=bail.out
}
MAILDIR=$HOME/Maildir/
But, when the directory already exists, sometimes it will send a return email with this error: 554 5.3.0 unknown mailer error 127. The email still gets delivered, mind you, but it sends back an error code to the sending user as well.
I fixed this temporarily by commenting out the EXITCODE and HOST lines, but I'd like to know if there is a better solution.
I found this block of code in multiple places across the net, but couldn't really find why this error was coming back to me. It seems to happen when I send an email to a local user. Sometimes the user has a .forward file to send it on to other users, sometimes not, but the result has been the same. I also tried removing DROPPRIVS, just in case it was messing up the forwarding, but it did not seem to affect it.
Is the line starting with * ? /usr/bin/test a problem?
The * signifies a regex, but the ? makes it return an integer value, correct?
What is the integer being matched against? Or is it just comparing the integer return value?
Do I need a space between the two blocks?
Thanks for the help.
I have completed a very complex Excel spreadsheet with a lot of equations, except ...
I forgot to include September
I have Jan through Dec, all the months, except the calculations for September. Of course all
the equations are currently perfect for the data that's here.
How do I add a whole new column without ruining the previous equations?
PS: tomorrow is my holidays and I have to go to work to finish this table, so bad.
would really appreciate some kind expertise :) cheers craig.
I'm trying to get iRST working on a SSD I installed in my lenovo u410.
As part of that process, I created a hibernation partition and was fiddling around with RAID/AHCI settings. I managed to make my computer unbootable. No sweat, I just restored it with Lenovo's 1 key system.
Now, however, I can't do anything with that hybernation partition! I can see it:
(It's the 7.81 GB partition).
But when I try to delete it in Diskpart.exe to reclaim the space and try the formatting again I only see this:
I can't do anything with the partition in Disk Management either. Right clicking only shows the 'help' option.
Can anyone suggest a way to edit these partitions with windows or, at least, reccomend a program that might help me fix this?
Note, I'd rather not delete the 16 GB OEM partition that I believe holds the backup for this computer.
A client sent me some vertical pics but they show up on my server as horizontal images. I viewed them via the browser -did not use an email client to view them. I forwarded his email to him and he says when he opens it the images are vertical. I don't have a clue.
is there a way with rsyslog or syslog-ng to allow tab delimited messages? I'm currently using rsyslog and the c syslog() function to generate syslog messages from within my app. The problem is that I use \t and they get translated into #011 when I view the logs. Ideally I'd like to have the other control chars translated except tab. is something like this possible?
Hi, I have some really sensitive data that I am trying to compress and back up so I can reformat. It's absolutely imperative that nothing happens to these files. I'm a developer so I have very little room for error... plus I'd really hate it if any of my .mp3's got corrupted!
File Formats Include...
.mp3
.php
.js
.ai - .psd - .flv
(and many more)
Is the mac OSX file compression safe enough? Or should I look elsewhere?
Is there a more efficient/secure file-format other than .zip (i'm assuming so...)
I'm trying to open a CR2 file shoot by a Canon EOS 5D Mark II, but it doesn't show up on Mac OS X 10.6
When I go to file info, it shows me the Device make, Device Model, focal length, ecc. but Dimensions are 0x0 and the photos doesn't show up.
What is happening? You can give a try on this image file
I have HTML with following structure
<html>
<...>
<div>
Something
</div>
<...>
Text
</html>
If «Something» contains an unclosed <b> tag «Text» also becomes bold. I want to close this tag using [User]CSS, [User]JS, HTML or fixed number of PCRE regexs. I do not know how many unclosed tags Something contains, but div's around Something are added by me using Privoxy.
I would like to install Linux on a laptop. So I have emptied the hard drive, and can boot off a CD. So far I have failed to format the hard drive to Linux, to install Linux, and to change it so that I don't have to hit escape when loading in order to boot from CD (or get Linux on the hard drive and boot to it).
The old laptop has 640 MB RAM, 600*800 screen, a CD drive and USB mouse and floppy drives. I eventually mean to use it to look at PDFs if possible, or RTFs that I converted from PDFs if not.
I have Outlook syncing with my cell phone (WinMo 6.1) and vice versa. Everything works fine, but my numbers are all in different formats. I have some contacts with numbers of 5555551234, some are 555.555.1234, some are (555) 555-1234, some are 555-555-1234, etc. I don't really care how it's displayed, because they all dial fine on my phone. But I want to clean them up so they all look the same. Any easy ways to do this?
We are in the process of backing up our hard drives to Blu Rays. I am creating tar.gz files and burning them to Blu Ray.
Is it possible to use a simple (preferably Python-based) solution for creating images of those tar.gz files, of a predetermined size (to fit in the Blu Ray), and simply burn this images to the disc?
Do you have any other approach for creating physical back-up of your hard drives?
After trialling Empathy which was included with Gnome/Ubuntu 10.04 I decided to go back to Kopete since I was losing chat messages.
However, for some reason, Kopete is now displaying all popups in a big, ugly window with four options (ok, cancel, view, ignore, or something like that) that actually all seem to do nothing.
I tried looking for options in Kopete to change the popup style to the nicer Gnome style one which goes up in the top-right of my desktop, but it doesn't seem to be possible with this release. So I had to resort to removing all popup messages from Kopete to prevent my screen being taking over by a popup requiring action for every incoming chat message.
Unfortunately, this now means that I do not get any notifications when people message me - and so I can go a couple of hours without realising that they did.
Anyone know how to get the nice, unobtrusive popups working in this version?
When reformatting, Windows XP ask me to choose from
these formatting methods.
(Implying that ALL of them are "formatting methods"... even #3)
Reformat using NTFS (quick)
Reformat using NTFS
Leave the current file-system intact (no changes)
What choice #3 really mean?
Does it mean:
A. Leave the current file-system (whatever file-system is already in use) and reformat to match that.
(ie. If you current have NTFS, reformat to that again. If you currently have FAT32, reformat to that again.
That is: Reformat without changing to a different file-system. Leave the current type.)
or...
B. Do absolutely nothing. Don't format. Don't delete any of my files. Abort the formatting process entirely.
Hi Folks,
I've just switched to zsh. However, I really don't like how the time builtin command also outputs the command that it's timing. I much prefer the bash style output. Anyone know how to switch it over?
Zsh:
[casqa1:~/temp]$ time grep foo /dev/null
/usr/local/gnu/bin/grep --color -i foo /dev/null 0.00s user 0.00s system 53% cpu 0.004 total
Bash:
[casqa1:~/temp]$ bash
casqa1.nyc:~/temp> time grep foo /dev/null
real 0.0
user 0.0
sys 0.0
Thanks,
/YGA
I want to authenticate users for a folder from a MySQL 5.1 database with AuthType Basic.
The passwords are stored in plain text (they are not really passwords, so doesn't matter).
The password format for apache however only allows for SHA1, MD5 on Linux systems as described here.
How could I generate the right format with an SQL query ? Seems like apache format is a binary format with a lenght of 20, but the mysql SHA1 function return 40 long.
My SQL query is something like this:
SELECT CONCAT('{SHA}', BASE64_ENCODE(SHA1(access_key))) FROM user_access_keys INNER JOIN users ON user_access_keys.user_id = users.id WHERE name = %s
where base64_encode is a stored function (Mysql 5.1 doesn't have TO_BASE64 yet). This query returns a 61 byte BLOB which is not the same format that apache uses. How could I generate the same format ?
You can suggest other method for this too. The point is that I want to authenticate users from a MySQL5.1 database using plain text as password.
After trialling Empathy which was included with Gnome/Ubuntu 10.04 I decided to go back to Kopete since I was losing chat messages.
However, for some reason, Kopete is now displaying all popups in a big, ugly window with four options (ok, cancel, view, ignore, or something like that) that actually all seem to do nothing.
I tried looking for options in Kopete to change the popup style to the nicer Gnome style one which goes up in the top-right of my desktop, but it doesn't seem to be possible with this release. So I had to resort to removing all popup messages from Kopete to prevent my screen being taking over by a popup requiring action for every incoming chat message.
Unfortunately, this now means that I do not get any notifications when people message me - and so I can go a couple of hours without realising that they did.
Anyone know how to get the nice, unobtrusive popups working in this version?
I have a DVD full of video clips. I want to exact only some of these clips. I tried to use mplayer/mencoder's nice feature of Edit Decision List (EDL). However, the video timer seems to constantly reset with each video clip (less than 20 seconds) and its EDL does not have a video clip number or anything like that.
I've tried using VLC to extract the video into an MPG file, but the same timer problem persists. What's a good way to splice out part of these clips from the DVD? I'm willing to write a small program in any language to make this work.
I am trying to query IP addresses from Forefront Firewall logs, and I am a little stuck on the IP formatting
C0A8E008-FFFF-0000-0000-000000000000
Can anyone give me the MSSQL command to turn this into standard human redable?
UPDATE, I now see that I kust need to convert the first 8 charecters from hex to decimal....which I can then convert to IP. the trick is to parse those first charecters from the field with SQL
Is there any single application that convert all the following video file formats (3g2, 3gp, 3gp2, 3gpp, 3p, asf, avi, divx, dv, dvx, flv, gif, moov, mov, mp4, mpeg4, mpg4, mpe, mpeg, mpg, qt, wmv, xvid) to Flv?
Im trying to recursively get an html page to get everything that's there and save it to my directory. Lwp-rget from perl allows me to do this but I'm having the problem that its getting all the files and changing them from .rpm, .xml, .html, etc to .bin. I've been trying to maybe use the --keepext=application/xml or any type but it continues to save the file as .bin. Any way I can stop that auto formatting? Thanks.
ffmpeg's -vol parameter is confusing me.
256 => normal (i guess meaning same as input volume, no change)
512 => (double the volume - read this somewhere).
So what to do for 3 times the volume? 1.5 times the volume?
Basically, lets say I have the max sound amplitudes (audacity levels) in 3 files as:
0.8
0.6
0.9
I want to amplify in the first two files, so that max=0.9 in all files. What parameters of -vol I would use?
Description
I have a big (7.4G) .mkv file (1080p) which I want to convert to H.264 (using x264)
Problem
MediaCoder and GSpot are unable to detect the codec. They don't display anything. Just that the file is a matroska Container Video with a MIMEtype of video/x-matroska. No bitrate, profile etc.
But the source tells me that is VC-1 encoded.
Question
So how do I encode this file. as in, using what encoding software, since MediaCoder has failed.