Editing ascii printouts of hex dumps of packet data, want to see one per line. In vi, it's a simple command:
:set nowrap.
From here: http://www.devdaily.com/blog/post/linux-unix/vi-editor-dont-wrap-long-lines
Here's another thread that seems to indicate that there is a lot more to look into, i.e. :set newrap doesn't seem to disable an automatic newline feature that I don't know if I believe I've ever run into:
https://stackoverflow.com/questions/2280030/how-to-stop-line-breaking-in-vim
Tuesday, September 11, 2012
Saturday, September 8, 2012
Chigger Bites
Best links that I've found so far about chigger bites. The takeaway: These bastards are pure evil. The first thing to do is wash them off, as unlike ticks they wash off easily. They don't burrow contrary to folk wisdom. The bites are the itchiest, but just have to be treated like bites. Nail polish may work, not by fighting the chigger but by sealing the hole and preventing scratching.
Best link: http://www.medicinenet.com/chiggers_bites/article.htm
A cute children's link: http://kidshealth.org/kid/ill_injure/bugs/chigger.html
A dry article: http://www.wikihow.com/Treat-Chigger-Bites
A warning against scratching: http://animals.howstuffworks.com/arachnids/question488.htm
Best link: http://www.medicinenet.com/chiggers_bites/article.htm
A cute children's link: http://kidshealth.org/kid/ill_injure/bugs/chigger.html
A dry article: http://www.wikihow.com/Treat-Chigger-Bites
A warning against scratching: http://animals.howstuffworks.com/arachnids/question488.htm
Samsung F210 case and headphone adapter
Accessories found for the F210.
Cases:
I can't seem to find the original case that I bought 5 years ago that has the nice snap. They all have magnetic clasps, oh well. Interestingly, there are plenty of open plastic holsters on the market still.
Bought this: http://www.amazon.com/Fashionable-Vertical-Protective-Carrying-T-mobile/dp/B002Q44UTK/ref=sr_1_37?s=wireless&ie=UTF8&qid=1347037813&sr=1-37&keywords=samsung+juke
This looks pretty ugly but strong: http://www.ebay.com/itm/Samsung-SCH-U470-Juke-Black-Stitch-Pouch-/270701790340?pt=PDA_Accessories&hash=item3f07158484
This is cheap and the right design but brown: http://www.amazon.com/Samsung-Brown-Leather-Pouch-SCH-U470/dp/B0013ALA64/ref=pd_cp_cps_0 Note Samsung part number WT17200000156
Here it is in black but for $20. Note also has a Samsung part number too http://www.amazon.com/Samsung-Black-Leather-Pouch-SCH-U470/dp/B0011WEOFS/ref=sr_1_10?s=wireless&ie=UTF8&qid=1347120604&sr=1-10&keywords=Samsung+u470+leather
Here's a nice one that I'll probably buy: http://www.daydeal.com/product.php?productid=20657
Headphone adapters:
The F210 strangely does not have a headphone jack. You have to plug into the multifunction jack at the bottom.
bought this, looks like it's OEM: http://www.amazon.com/Samsung-SCH-R410-SPH-M310-SGH-T339-AAET503CBEBSTD/dp/B002MUUNEE/ref=sr_1_1?ie=UTF8&qid=1347121303&sr=8-1&keywords=samsung+audio+adapter Update: The company that sent this did not send the part shown. Consequently, it does not fit into the recessed hole at the bottom of the phone. I could probably make it fit by filing away some of the plastic on the connector body.
bought this, it was cheap: http://www.amazon.com/SAMSUNG-ADAPTER-ETERNITY-BEHOLD-BLACKJACK/dp/B001KYJ80I/ref=sr_1_2?ie=UTF8&qid=1347121303&sr=8-2&keywords=samsung+audio+adapter Update: In retrospect, this one screamed incompatible but I didn't see it. Due to the recessed hole at the bottom of the phone, the body of the "Micro USB" connector on this one is too bulky. Some of my chargers have the same problem; clearly some phones including my Juke don't have any problem with the size of the backshell part of the connector.
didn't buy this, because it was a horrific $4 (and it didn't have my exact model in the list of phones it was compatible with, although how different could it be). Looks pretty good really: http://www.amazon.com/Hands-Free-Highlight-Eternity-Impression-Comeback/dp/B002S5R4IG/ref=pd_luc_sbs_02_04_t_lh
Update 1: Now I'm looking for a way to plug in a standard cell wired headset, the 2.5mm kind.
There's this one, which is an OEM breakout box for the connector. It seems to have 2 types of headphone jacks and one extender connector for the MicroUSB, a fact which frustrates customers wanting to use the data port and charge at the same time: http://www.amazon.com/Samsung-Multi-Adapter-2-5mm-AAET554CBE/dp/B002OT3RB4/ref=sr_1_54?ie=UTF8&qid=1348456185&sr=8-54&keywords=samsung+2.5mm+adapter. Note that the Samsung part number is AAET554CBE
The picture on this one looks to be OEM, but given how I got screwed ordering the 3.5mm, can I trust it? http://www.amazon.com/Samsung-i617-S20Pin-2-5mm-Adapter/dp/B001GV0CPA/ref=pd_cp_e_2
Here's another one. It doesn't show my phone model#, and some other reviewer said that certain adapters are not compatible with each other so maybe this one won't work: http://www.amazon.com/Samsung-SGH-T349-SGH-T749-SGH-T559-SGH-T469/dp/B002N8J89G/ref=pd_cp_e_1
Cases:
I can't seem to find the original case that I bought 5 years ago that has the nice snap. They all have magnetic clasps, oh well. Interestingly, there are plenty of open plastic holsters on the market still.
Bought this: http://www.amazon.com/Fashionable-Vertical-Protective-Carrying-T-mobile/dp/B002Q44UTK/ref=sr_1_37?s=wireless&ie=UTF8&qid=1347037813&sr=1-37&keywords=samsung+juke
This looks pretty ugly but strong: http://www.ebay.com/itm/Samsung-SCH-U470-Juke-Black-Stitch-Pouch-/270701790340?pt=PDA_Accessories&hash=item3f07158484
This is cheap and the right design but brown: http://www.amazon.com/Samsung-Brown-Leather-Pouch-SCH-U470/dp/B0013ALA64/ref=pd_cp_cps_0 Note Samsung part number WT17200000156
Here it is in black but for $20. Note also has a Samsung part number too http://www.amazon.com/Samsung-Black-Leather-Pouch-SCH-U470/dp/B0011WEOFS/ref=sr_1_10?s=wireless&ie=UTF8&qid=1347120604&sr=1-10&keywords=Samsung+u470+leather
Here's a nice one that I'll probably buy: http://www.daydeal.com/product.php?productid=20657
Headphone adapters:
The F210 strangely does not have a headphone jack. You have to plug into the multifunction jack at the bottom.
bought this, looks like it's OEM: http://www.amazon.com/Samsung-SCH-R410-SPH-M310-SGH-T339-AAET503CBEBSTD/dp/B002MUUNEE/ref=sr_1_1?ie=UTF8&qid=1347121303&sr=8-1&keywords=samsung+audio+adapter Update: The company that sent this did not send the part shown. Consequently, it does not fit into the recessed hole at the bottom of the phone. I could probably make it fit by filing away some of the plastic on the connector body.
bought this, it was cheap: http://www.amazon.com/SAMSUNG-ADAPTER-ETERNITY-BEHOLD-BLACKJACK/dp/B001KYJ80I/ref=sr_1_2?ie=UTF8&qid=1347121303&sr=8-2&keywords=samsung+audio+adapter Update: In retrospect, this one screamed incompatible but I didn't see it. Due to the recessed hole at the bottom of the phone, the body of the "Micro USB" connector on this one is too bulky. Some of my chargers have the same problem; clearly some phones including my Juke don't have any problem with the size of the backshell part of the connector.
didn't buy this, because it was a horrific $4 (and it didn't have my exact model in the list of phones it was compatible with, although how different could it be). Looks pretty good really: http://www.amazon.com/Hands-Free-Highlight-Eternity-Impression-Comeback/dp/B002S5R4IG/ref=pd_luc_sbs_02_04_t_lh
Update 1: Now I'm looking for a way to plug in a standard cell wired headset, the 2.5mm kind.
There's this one, which is an OEM breakout box for the connector. It seems to have 2 types of headphone jacks and one extender connector for the MicroUSB, a fact which frustrates customers wanting to use the data port and charge at the same time: http://www.amazon.com/Samsung-Multi-Adapter-2-5mm-AAET554CBE/dp/B002OT3RB4/ref=sr_1_54?ie=UTF8&qid=1348456185&sr=8-54&keywords=samsung+2.5mm+adapter. Note that the Samsung part number is AAET554CBE
The picture on this one looks to be OEM, but given how I got screwed ordering the 3.5mm, can I trust it? http://www.amazon.com/Samsung-i617-S20Pin-2-5mm-Adapter/dp/B001GV0CPA/ref=pd_cp_e_2
Here's another one. It doesn't show my phone model#, and some other reviewer said that certain adapters are not compatible with each other so maybe this one won't work: http://www.amazon.com/Samsung-SGH-T349-SGH-T749-SGH-T559-SGH-T469/dp/B002N8J89G/ref=pd_cp_e_1
Friday, August 31, 2012
Secret Gseos methods?
Found this in some of Martin's Python code, looks like exactly what we should have been using for many of our prompt boxes:
Gseos.MB_YESNO
Gseos.MB_YESNO
Thursday, August 30, 2012
argument after * must be a sequence
While trying to call my new python code through a Gseos.Tsequencer, I kept getting this error: "argument after * must be a sequence". The code runs fine when called directly. It turns out the problem was because my routine had only one argument aside from the sequence ID. When you call a routine through the Tsequencer, you feed in your arguments and it prepends the sequence ID as the first argument. Other routines are called in the Tsequencer like: Gseos.Tsequencer("name", routine(argument1, argument2, argument3, argument4)). I was calling mine this way: Gseos.Tsequencer("name", routine(argument)). According to this site:
https://code.djangoproject.com/ticket/14088
I have to have the arguments to the routine in the format of a "tuple" (or maybe it's a "list"). I think this might be so that the overloading with the sequence ID can work. That would be like: Gseos.Tsequencer("name", routine(argument,)).
Sure enough, it worked!
https://code.djangoproject.com/ticket/14088
I have to have the arguments to the routine in the format of a "tuple" (or maybe it's a "list"). I think this might be so that the overloading with the sequence ID can work. That would be like: Gseos.Tsequencer("name", routine(argument,)).
Sure enough, it worked!
Wednesday, August 29, 2012
Excel 2010 transpose rows and columns
Select the section to tranpose, and use "paste special" with transpose selected (or in the case of the windows 7 version click the transpose icon under paste special). Super easy.
http://www.howtogeek.com/howto/12366/convert-a-row-to-a-column-in-excel-the-easy-way/
http://www.howtogeek.com/howto/12366/convert-a-row-to-a-column-in-excel-the-easy-way/
No dos2unix for mac OSX
Nope. You've got to find a third party substitute, download a gnu or BSD version and stick it in /usr/bin, or do conversions much more manually. Most sites I've found recommend the latter with this command:
cat $offending_file | tr '\r' '\n' > $new_filename
for instance:
http://hints.macworld.com/article.php?story=20031018164326986
cat $offending_file | tr '\r' '\n' > $new_filename
for instance:
http://hints.macworld.com/article.php?story=20031018164326986
Subscribe to:
Posts (Atom)