You are hereTechnote

Technote


Special Characters in Linux File Names

Occasionally I have to review how to deal with special characters in file names on Linux boxes. Normally, you can just backslash escape the special characters in a quoted name.

If the example file name is: Special File name "test".txt

Refer to it like this: "Special File name \"test\".txt"
and it should work fine.

Sometimes, though, you end up with wildcard characters inside the name and escaping like this won't work. For programs like tar, you can use the --no-wildcards option and it won't expand (wildcard) the names you give it.

You can use the single quote to prevent wildcards from expanding:
'Special File name* "test".txt'
would look for a file with this name:
Special File name* "test".txt

Strange Font Issue on IE6

I had a customer call with an issue with IE6 not displaying a surveymonkey.com survey correctly. Turns out the problem showed up on other websites as well. After googling around for awhile, I figured out it was NOT a problem with ANY of these issues:

  • dll's needing to be applied with regsvr32
  • settings in IE6
  • cookies that needed purging
  • cache's needing clearing
  • temporary folders needing clearing
  • etc... etc... etc...

Turns out the user had turned on the "High Contrast" option in the control panel. To clear it, simply open Control Panel, open Accessibility Options, click the Display tab, and uncheck "Use High Contrast".

Palm Treo 700p Stops Syncing Calendar and Contacts and Switches Sync Type to "Do Nothing"

So I've been using my Palm Treo 700p for quite awhile and never had too many problems with it syncing--and that is a little surprising because I use bluetooth and some other complicated settings.

All of a sudden, I noticed I wasn't seeing my appointments from Outlook in my calendar and my calendar wasn't showing up in Outook. It also affected contacts. I checked and the settings under Hotsync/Custom/Calendar and Contacts where both set to "Do Nothing". I changed them to synchronize, did a sync, and they went back to "Do Nothing". I made sure that I wasn't doing any kind of Exchange sync (that can disable the functionality for syncing to the desktop), but it still wouldn't stay set.

When I went into check some settings for Versamail and for the Verizon sync software, it caused the Treo to reset. I removed them temporarily so that I could continue to figure out what was wrong.

Finally, I did a re-install of my Palm desktop software, set it to sync, then did a re-sync with the handheld and so far it has stuck. I didn't uninstall OR reinstall the conduits--I left them as they were since I didn't have the install CD handy, just the download of the Palm software.

I'm not sure why it stopped, but the palm software re-install fixed it. It may have been that I had turned on Exchange style syncing at some point in testing something for a client and the palm wouldn't let me switch back. The re-install probably fixed some registry settings or something like that.

Updated: It worked for a few more syncs, then went back to blocking appointments and contacts. I had to do a hard reset on the device and create a new user profile. Now it seems to be sticking, after 4 days anyway.

DYMO Label Printing Issues

I was trying to print shipping labels from a VB6 application on a DYMO Labelwriter 400 Turbo and couldn't get things to come out right. What I figured out was that you need to do a few things to get the shipping labels to print correctly. The couple of the most important things are...

SugarCRM; Problem With Browser Showing A Random User as Logged In, After A Different User Logs Out

I've been developing with SugarCRM since Fall of 2006, so I've gotten pretty familiar with the internals. One system I've had in production since February 2008 had been having strange, intermittent problems with users logging off, then the browser immediately showing a different user as logged in. This was particularly evident with users that use Windows CE's browser (we have warehouse barcode scanner guns running Windows CE and laser scanning barcodes using the browser).

This became an even bigger problem when, for security reasons, we shortened the "automatic log off" period in php.ini so that the user gets kicked out after 5 minutes of inactivity.

It took quite awhile to figure out what was happening...

How to Compare and Display Differences Between Two Chunks of Text

One of my clients needed to be able to see the differences between two versions of a database text field. The application was in a module of sugarcrm, but it isn't a sugarcrm problem per se. The database keeps an audit table showing all changes to "audit enabled" fields, so I already had the differences, I just needed to be able to show the user what they were.

Dell Bluetooth Mouse Headache

So I pick up a nice new bluetooth keyboard and mouse combo for a client whilst ordering a laptop from Dell. The keyboard would sync right up (after entering the prompted for bluetooth pass code), but I couldn't get the mouse to sync. I checked the documentation and the latest on the Dell site for those devices, but it said nothing about being prompted for a passcode for the mouse. It turns out that you need to enter 0000 for the passcode, then the mouse will sync up. Sheesh. For reference, this is for P/N 810-000264 and it also shows a D P/N of UN733.

Setting Up Ubuntu for Kernel or Module Compiling

When you want to build your own kernel or some new modules from source, you need to get the source tree setup properly. Here's how...

Asterisk and Polycom Phone Script Tips

I've been using Asterisk and Polycom phones since the Spring of 2005 and, other than running into a few glitches, have really liked working with both. I've developed some scripting shortcuts that really save time in deployment and configuration changes. The setup described has been tested with Polycom 50x phones and several asterisk builds.

My basic asterisk setup is pretty standard. I put all of the asterisk configuration files in /etc/asterisk. I've split sip.conf into the primary sip.conf and then do an include to my sip-extensions.conf file where I keep all my extension specific settings.

Note: When you see mac or mymac, you would mentally want to substitute the 12 character hex value associated with your phone(s). So a reference to mac.cfg really means 0005f201d155.cfg.

sip.conf:

[general]
context=internal
bindport=5060
bindaddr=0.0.0.0
dtmfmode=rfc2833
progressinband=no

#include sip-extensions.conf

sip-extensions.conf:

[1001]

Did this help you? You can help me!


Did you find this information helpful? You can help me back by linking to this page, purchasing from my sponsors, or posting a comment!


+One me on Google:


Follow me on twitter: http://twitter.com/mojocode









Affiliation Badges