Tag Info

New answers tagged

0

Here is how you would do it in Perl: $ cat a.txt .artnau.com .bar.foo.example.org .chatserve.com .css.artnau.com .eagles.chatserve.com .example.com .foo.example.org $ cat a.txt | perl -ne 'BEGIN { my %h; } $h{$_} = ""; END { foreach (keys %h) { $orig = $_; $_ =~ s/^\..*?\./\./; print $orig if not exists $h{$_} } }' | sort > b.txt $ cat b.txt .artnau.com ...


1

This doesn’t seem like it’s encrypted. It looks like formatted text; the \s and \t items sprinkled throughout the text hint at that. So it’s possibly a chunk of LaTeX formatted text. But knowing that it is formatted text, let’s look at the code again: {kätkö\son\spiilotettu\sLinnainmaalle.\t\t\sfbhfiozönbiou(gseii¤hghioöghi/ejihohnbishgui ...


1

Fix available!! I installed the fix from http://support.microsoft.com/kb/3037639 and everything is hunky-dory again.


1

This is due to installing KB3013455. You can do 2 things, either not use the Arial font or uninstall the windows update. Uninstall the windows update To uninstall the windows update, do the following: Go to control panel, Programs and features. On the left side, click View installed updates From the list on the right, find KB3013455 and uninstall it. ...


0

You can use $ regular expression anchor to match only end of line characters: Get-Content in.txt| ForEach-Object {$_-replace'-TA$','.NO'}| Set-Content out.txt If you want to save results in the same file, then you have to preload entire file into memory: @(Get-Content test.txt)| ForEach-Object {$_-replace'-TA$','.NO'}| Set-Content test.txt


2

Python: cpath="C:/Path/to/File" infile=cpath+"/data.txt" with open(infile) as f: for line in f: content = line.split() outfile = cpath + "/" + content[0] + ".txt" with open(outfile,'a') as f2: f2.write(line)


3

This works: -vf "drawtext=text=string1 string2 string3 string4 string5 string6 string7 :expansion=normal:fontfile=foo.ttf: y=h-line_h-10:x=(mod(5*n\,w+tw)-tw): fontcolor=white: fontsize=40: shadowx=2: shadowy=2" See Desmos for how it works. x-axis is the video width. y-axis is time. The black line is the width of the image (adjustable in Desmos ...


2

Use tw. From the drawtext filter documentation: text_w, tw the width of the rendered text Using your example you would simply add: x=(2*n)-tw


3

You can use the drawtext filter. dynamic text The text can be changed during encoding if you use textfile and reload options: textfile A text file containing text to be drawn. The text must be a sequence of UTF-8 encoded characters. reload If set to 1, the textfile will be reloaded before each frame. Be sure to update it atomically, or it may be read ...


0

Another way is to increase(or change) space after the paragraph(s):



Top 50 recent answers are included