Technology Archive

http://techjournal.318.com/scripts/building-a-mac-and-ios-app-store-software-update-service/

This is something I looked into doing when configuring a bunch of iCrap to allow caching of an iOS update, but ultimately didn’t have time to do and just downloaded each update.  (I get the irony of not having time to set up a caching server, yet having time to wait for all the updates to download; there were other individuals actually performing the updates and doing other things while they ran.)  Wanted to make a note of the procedures here in case they become relevant at some point in the future.

 

Be the first to comment

Food, Grocery, and UPC Databases and Information

Posted December 2, 2012 By Landis V

I’ve maintained a spreadsheet on Google Drive with details of a variety of groceries and related goods that we purchase for a while, containing information on the brand, product description, size, price paid (and a few “regular price” entries if I know I got it on sale), SKU/EAN/UPC, store, city, date, and notes.  In some ways it’s an unfortunate and disappointing look back across how bad inflation has been under Obama (for anyone who makes the claim that it’s not worse according to government statistics… those stats are all “ex food and energy”… the two things that actually matter!).  Aside from being interesting, it’s useful to track not only the change in prices over time, but where and when I’ve made purchases at the best price, so I can quickly look up whether I’m getting a good deal on something.

Typically I will add entries to my spreadsheet when I’m going through my receipts and doing categorized expense tracking.  There are pros and cons to this approach, and while my method could probably be improved with discipline, it has worked fairly well for me thus far.  I’ll discuss these pros and cons briefly, and touch on a couple of online tools I’ve run across that are beneficial in my tracking process.  On occasion I will also add to the list based upon a price I’ve seen advertised or if I run across an item while shopping at a store I don’t frequent so I can compare it to prices at my regular venues.

I try to keep all my receipts until I have a chance to sit down and enter them into my accounting/expense tracking (I use KMyMoney for this).  For our regular grocery shopping, I usually break receipts down into subcategories such as food, personal care, household supplies, alcohol, gifts, etc.  It’s uncommon for most of our receipts to fall into a single category, especially if sales tax is a part of the purchase, as I maintain an expense categorization for it as well.

As I mentioned, I find several advantages to my particular method of tracking.  First, since it is sometimes months before I have or make the time to sit down and process receipts, I’m sometimes unable to remember what a particular purchase was from just the description on the receipt.  In some ways, this is also a con, but with some of the tools I will describe below, it ends up working out fairly well – if the receipt includes a UPC code.  While looking up the product to see what it is so I can categorize it, it’s easy to add it into my spreadsheet at the same time.

Since I often have a large quantity of receipts to go through at once, it becomes fairly efficient to load up the sites I typically work with and establish a flow or rhythm.  It’s still not a fast process, but as with most tasks, it becomes quicker with practice and repetition.  I go through the receipt, do my lookups as needed, categorize the items in my accounting application, and mark the receipt to be shredded or filed as needed.

This tracking isn’t without downsides, chief among which is the time consumed by the process.  It generally consumes the biggest share of a weekend to enter and allocate two months of receipts.  I’m not sure I can completely justify the time yet, largely because I haven’t really utilized the data in value determination yet (which is in turn due to the incompleteness of my dataset to this point, so a self-referencing problem).  Sometimes it can be difficult to find necessary or accurate information, especially when UPC codes are not present.  And there are times when it is challenging to determine how to best categorize or itemize the data, or to later find the correct product information if I did a poor job of categorizing initially.

I’ve recently started making an effort to “coupon” (which I place in quotes, because I can’t see myself at this point actually putting the effort into it that true couponers do), and I hope this will lead to a greater return on my time investment thus far and going forward.

For stores that include the UPC as part of the line item on the receipt, the Internet UPC Database has proven incredibly valuable in providing information about items with unclear descriptions.  Wal Mart is one of these stores, and the UPC Database proves especially helpful in this regard as it provides the ability to look up the UPC check digit (the last digit of the UPC, which is not included on the Wal Mart receipt) and then provides a link to the product description.  I also recently discovered Factual, specifically their consumer packaged goods dataset which contains not only information about what a product is, but also provides the added bonus of nutritional information and ingredients.

I should note that the UPC Database is built with user contributed data (much like Wikipedia), while Factual’s dataset appears to come from manufacturers, though I haven’t done research to fully vouch for this.  I do find the idea of an open source/community sourced database potentially very beneficial, and have considered doing something similar with the data I’ve collected.

While mobile, I have also used the Grocery Tracker application on my Android phone to great benefit in keeping track of both my grocery lists and prices in the stores where I shop.  This application is incredibly thorough, and I probably don’t use a tenth of what it can do.  The inventory system looks very cool, but would require a lot more discipline and consistency than I can typically muster.

Finally, I use both store sites that can be searched by SKU (such as Sam’s Club) and Google when the information is not available by other means.  If nothing works out, I will leave a product out of the spreadsheet and/or leave it uncategorized in my accounting.

Be the first to comment

Synthetic Traffic Generation

Posted November 27, 2012 By Landis V

I recently had a need to create a multitude of similar TCP sessions from a host to itself.  Wanted to document a few of the resources and potentially useful applications/frameworks I reviewed or considered while putting something together.  This will be primarily Windows focused since that’s the platform I’m investigating/troubleshooting, but I’m sure I will make detours into other arenas as I do my research.  Sessions will be short-lived, complete sessions from SYN to FIN, and sourced from an ephemeral port on the ethernet-associated IP of a host to a high (greater than 1024) port on the same ethernet IP.  This will be done to test the behavior of the system – and hosted applications – at a high ratio of TCP sessions to maximum concurrent TCP sessions, and at various levels of sessions in (and configured timeout values for) TCP sessions in TIME_WAIT state (see http://smallvoid.com/article/winnt-tcpip-max-limit.html for additional detail on the topic and parameters to be tested).

http://nmap.org

NMAP in conjunction with its scripting engine may be a quick and easy fit for this scenario.

http://info.iet.unipi.it/~luigi/dummynet/

Dummynet allows the configuration of a test network with user determined behavior in order to emulate the characteristics of a real-world network.

http://www.cs.unc.edu/~jeffay/papers/BROADNETS-07.pdf

Modeling and Generating TCP Application Workloads
Provides a methodology for capturing network flows for utilization in generation of similar workflows in the test/development environment.

http://www.item.ntnu.no/people/personalpages/fac/poulh/gensyn

GenSyn appears to isolate the network component of testing from the user component, and uses modeling to create the user portion of the session and an actual network for modeling that component.  Looks to be well built and developed and to extend several areas of past research, and may have some use cases in providing an ideal modeling of network behavior in the future, but I would have to say is overkill and too steep a learning curve for my current needs (as much as I’d like to be, I’m not yet any level of statistician).

http://code.google.com/p/ostinato/

Ostinato looks to be a very good possibility if I can make it generate a large number of TCP sessions in series.  Maybe this is feasible by throwing it in a “for, next” loop… didn’t look to be built into the scripting from an initial cursory glance.  Will run on Windows, that’s a plus.

Be the first to comment

netem | The Linux Foundation

Posted November 27, 2012 By Landis V

http://www.linuxfoundation.org/collaborate/workgroups/networking/netem

I’ve used tc in the past, and it’s loosely related to something else I’m currently reviewing, but not tied directly enough that it’s something I want to delve deeply into at the moment.  The quick takeaway is, if you are trying to emulate the characteristics of a network connection within a lab, this (probably) is the tool you’re looking for.

Be the first to comment

TCP/IP Internetworking With `gawk’

Posted November 27, 2012 By Landis V

http://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.html

I think I’ve run across this before, but never really had time to play with it.  There are a few uses that come to mind, some of them cited and others not.  I like awk, and I use it with a fair degree of regularity.

Be the first to comment

Google Voice: a cheapskates guide to cheap VOIP | ZDNet

Posted November 26, 2012 By Landis V

http://www.zdnet.com/blog/government/google-voice-a-cheapskates-guide-to-cheap-voip/10500

I’ve been thinking I need to add a “local” number at home for some time, but I hate to ditch the Google Voice number I’ve had for some time (and do have a few services associated with).  I recently noted that GV has an option to select a new number and permanently retain your existing GV # for just a $20 administrative fee… may seriously look into doing so.

Be the first to comment

http://blog.teemu.im/2008/12/14/setting-your-srv-records-straight-for-xmpp/

I ran across this article while investigating a bug-that-was-not-a-bug-but-proper-behavior.  I’d see the SRV records before when looking at Microsoft DNS for Active Directory, but didn’t know the details about what it was or how it was used.  Great summary article.

Be the first to comment