Tag Info

Hot answers tagged

30

Pipe Viewer has this feature. cat /dev/urandom | pv -L 3k | foo


11

Here's a couple: fold echo "Hello there" | fold -w 1 H e l l o t h e r e Perl echo "Hello there" | perl -pe 's/(.)/$1\n/g;' H e l l o t h e r e


10

I'd say that Juliano has got the right answer if you have that tool, but I'd also suggest that this is a neat little K&R style exercise: just write a specialized version of cat that reads one character at a time from stdin, outputs each to stdout and then usleeps before moving on. Be sure to unbuffer the standard output, or this will run rather jerkily. ...


10

It's an IPv6 address. The fe80:: block is reserved for link-local addresses. Link local addresses are used for packets sent only to directly connected devices (not routed). The network discovery protocol (NDP) is the biggest user of link-local addresses (NDP sorta replaces ARP and DHCP in IPv6). Each of your interfaces will have a different link-local ...


10

awk is probably the canonical tool for this kind of problem. $ cat data foo 200 bar foo 200 baz bar 4 baz $ cat data | awk '$2 != 200 { print $0 }' bar 4 baz


8

On Windows, uTorrent has this function. It's still Beta for Mac, but worth a try: http://www.utorrent.com/downloads/mac


6

Firefox has a way to change the console logging level for specific extensions from about:config. Chrome doesn’t have this capability. Your options: Filter out all messages from a particular source file by right-clicking the white (blank) part of console message line and choosing Filter > Hide Messages from foo.js. You can undo this filtering from the same ...


5

You can use sed to do this. It's a little more lightweight than perl but still allows you to use regular expressions to express your heart's desires. $ echo "Hello world" | sed -r 's/./&\n/g' H e l l o w o r l d


5

I would use a hardware firewall to protect the machine from both the Internet access and intranet access. I hardware firewall will give you reliability and speed. I would start with the machine having all the traffic blocked and then only allow those IP address, ports, protocols and directions that are needed for it to work. For example, if there will be ...


5

Rules that depend on a client side action, like marking an email as read, can not be processed by the server as the server has no mechanism to mark messages as read, so this becomes a client side rule as it relies on the email client to perform the action. Rules that depend on actions that the server can perform, like copying a message to another folder in ...


5

It's not the most intuitive of things, but you can do it using NoScript's Application Boundaries Enforcer. I explained how to block just Google Search's Javascript (to kill Google Instant without logging in while still allowing easy login and use on other Google sub-sites) at How to make Google Search scriptless with NoScript/AdBlock? You can also use it ...


5

Plug everthing into your router, and give the router a clone'd MAC address: iPod══╗ ┌────────────┐ ╚═══╡ │ iPad══════╡ TL-WR340GD ╞═══University Internet ╔═══╡ │ PC═══╝ └────────────┘


4

Call it a quirk or a feature, but this has to do with how PowerShell deals with lists that are only 1 in length. It "flattens" them so that it is no longer a list, but a single FileInfo object. Since the FileInfo object doesn't have a Count property, you get no result. There are a couple of ways to work around this: Force the value returned to remain as an ...


4

You won't be able to add information that's not there. You are approximately doubling the dimensions of each frame so you will need to add pixels in between each of the existing ones. The best you can hope for is to interpolate the colour - this will give you a smooth image, but it will be more blurred than the original.


4

The best solution I can see is adding a proxy server behind your local network with user authentication. On this proxy you can configure policy and filter every single web access of each proxy connected user to internet.


4

Not quite not what you want, but Tweetdeck does have some limited filtering


4

First of all, you should find out what originally launched bsecured. Open up Activity Monitor and find bsecured in the list. Click 'inspect' and look at the parent process. If it's launchd(1), it was launched on boot. If it's launchd(coupleOfHundred), it was launched when you logged in. To stop it coming back download Lingon and look through the different ...


4

Since you're already pooched, you need to carve off the crap from last year. If it's consistent enough to always be in the stock format, here you go: #!/usr/bin/python import sys for line in sys.stdin: if line.startswith('gpg-pubkey-'): continue # We don't care about imported keys. G'bye! try: woarch = line.rsplit('.', 1)[0] # Bye, arch! ...


4

You can Save for Web and devices... and then select PNG-8 format, turn dither to 0% and reduce the number of colours down to just a few. I got reasonable results with your sample image by reducing the number of colours to 6.


4

Firewalls or packet filtering are often a good solution for things like this. One hack solution would be to specify entries for the hostnames directing to localhost in C:\windows\system32\drivers\etc\hosts. For example: 127.0.0.1 www.google.com would prevent all access to www.google.com.


4

A computer that's isolated enough from the network can't be infected. As long as you don't share its hard disks, that you uninstall any Microsoft or third-party that listens on TCP/UDP ports (such as IIS), and that there's only one safe working application, then there's no way that it can be infected. Conclusion: Antivirus is not required. However, I see ...


4

You can use iptables: iptables -I OUTPUT -p tcp --sport 80 -m string --string "superuser.com" --algo kmp -j DROP You may also be interested in DansGuardian.


4

No, this doesn't seem to be possible. Such processing is probably easiest to do on the mail server, with stuff like procmail, Courier maildrop, amavisd-new, etc. Amavisd-new is specifically designed to pass mail to external processing programs before delivery, usually anti-virus and anti-spam daemons. If you cannot do it on the server side, you would need ...


4

Your best bet would be to set your band pass filters very tight, probably from 1 kHz to 4 kHz and gradually add content back on either side to until you find the the speech is intelligible but wind noise is minimized. Unfortunately I don't think you'll be able to remove it all. Obviously it would have been best to use a windscreen on a microphone, this is ...


4

This also works: echo "Hello there" | grep -o . . matches a single character. -o only prints the match (rather than the whole line).


4

[in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out], scale=480:-1" ..has [out] in the wrong place, which renders the filtergraph meaningless. It should be: [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2, scale=480:-1[out]" Personally I dislike the movie filter, for purely aesthetic reasons (I think it makes the ...


4

There is nothing you can do to push the buttons into the background. Format the cells to be top-aligned, or add a few spaces before the text in each cell. Top aligned looks like this: Spaces added in front of the text look like this:


4

Try using double tildes: =VLOOKUP(SUBSTITUTE(C1,"~","~~"),A:B,2,false) It seems to turn the second tilde to a literal tilde to lookup, but besides that, I don't know why it works. The data I used it on is: A B C D ~Hello 1 ~Hello =VLOOKUP(SUBSTITUTE(C1,"~","~~"),A:B,2,false) Hello 2 Cell D1 is returning me ...


4

The feature to filter for color (font or background) is already implemented since Excel 2007. Read more about it on: http://msdn.microsoft.com/en-us/library/cc952296.aspx. Here is a Youtube video for the case you overlooked the filter option. You tagged your question with Excel 2010, so I assume you have 2010 installed. Only 2003 won't have this ...


3

The executable in Linux that opens a resource with your "favorite" program is called xdg-open. It is somewhat complicated, but you can add additional rules using xdg-mime install. However, I don't know if you can even do this for something like a specific URL. This becomes further complicated in that specific desktop environments use different executables ...



Only top voted, non community-wiki answers of a minimum length are eligible