How to find out if X is an element in an array?

Try using the modern “smart match” operator:
if ( $tofind ~~ @in )

via How to find out if X is an element in an array?.

Had to do this for a script I’m writing where I need to compare two lists and find out which elements in list A aren’t in list B.   This was the simplest of all the solutions described in the above link.  I haven’t actually implemented this yet…

Update 12/19.  The above does indeed work.  Not sure how they do it.  It would seem comparing two lists of length n would be an O(n**2) problem.  Might have to look into a proper database however it’s still manageable at this scale.

Also, a shoutout to perlmonks.org, a site that usually gets high rankings on my searches for perl related information and that is always concise and easy to read to  divine the info I was searching for.  The above link is a perfect example.  It points to a page that contains a lot of different implementations of what is probably a very common algorithmic problem.

Who’s Behind Comcast’s Video Downloader?

The download feature, which lets Comcast adopt an iTunes-ish model without the incremental pay-per-view component (for now), is a nice add-on because it lets users watch shows and movies on planes and in other venues that usually don’t have a solid enough broadband connection for streaming.

via Light Reading Cable – The Bauminator – Who’s Behind Comcast’s Video Downloader?.

Has World War II carrier pigeon message been cracked?

“You will see the World War I artillery acronyms are shorter, but, that is because, you have to remember, that, the primitive radio-transmitters that sent the Morse code were run by batteries, and, those didn’t last much more than a half-hour tops, probably less.

“Thus all World War I codes had to be S-n-S, Short-n-Sweet.

via BBC News – Has World War II carrier pigeon message been cracked?.

Kamailio SIP Server

Kamailio™ (former OpenSER) is an Open Source SIP Server released under GPL, able to handle thousands of call setups per second. Among features: asynchronous TCP, UDP and SCTP, secure communication via TLS for VoIP (voice, video); IPv4 and IPv6; SIMPLE instant messaging and presence with embedded XCAP server and MSRP relay; ENUM; DID and least cost routing; load balancing; routing fail-over; accounting, authentication and authorization; support for many backend systems such as MySQL, Postgres, Oracle, Radius, LDAP, Redis, Cassandra; XMLRPC control interface, SNMP monitoring. It can be used to build large VoIP servicing platforms or to scale up SIP-to-PSTN gateways, PBX systems or media servers like Asterisk™, FreeSWITCH™ or SEMS. Kamailio and the SIP Express Router (SER) teamed up for the integration of the two applications and new development.

via Kamailio SIP Server.

Like a Hot Knife Through Butter

In this short post, I’d like to show how hash-DoS can be applied to the btrfs file-system with some astonishing and unexpected success. Btrfs, while still in development stage, is widely considered as being a viable successor of ext4, and an implementation of it is already part of the Linux kernel. According to this page,

via Pascal Junod » Like a Hot Knife Through Butter.

Chinese space probe flies by asteroid Toutatis

The flyby was the first time an unmanned spacecraft launched from Earth has taken such a close viewing of the asteroid, named after a Celtic god.

It also made China the fourth country after the United States, the European Union and Japan to be able to examine an asteroid by spacecraft.

Chang’e-2 came as close as 3.2 km from Toutatis and took pictures of the asteroid at a relative velocity of 10.73 km per second, the SASTIND said in a statement.

via Chinese space probe flies by asteroid Toutatis — Shanghai Daily | 上海日报 — English Window to China New.

The Difference Between a Firewall and an SBC

If a firewall is a gate, a session border controller is a canal. Whereas a gate can only be opened or shut, canals have a series of trenches which are filled and then released. This buffer allows much more complex checks and adjustments than a simple open or shut gate. A Session Border Controller has some of the layer 2-4 port controls, but where they really shine is in their Layer 7 capabilities.

via 2600hz Blog • The Difference Between a Firewall and an SBC.