The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for September, 2013

.NET/C#: Igor Ostrovsky wrote a few great MSDN magazine articles helping you write better threading code

Posted by jpluimers on 2013/09/17

Igor Ostrovsky wrote a few very nice MSDN magazine articles. Not all of them have ended up in the list at MSDN magazine, so here is a more complete list:

Though the articles show the majority of sample code in C#, the actual topics are of great interest to any developer writing .NET code or interfacing to it.

Some keywords in his articles: Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, C, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C++, Delphi, Development, F#, LINQ, PLINQ, Prism, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0 | Leave a Comment »

Interesting: Mac OS X virtual Apple ][, ][+ and //e emulator (Virtual ][ Help)

Posted by jpluimers on 2013/09/16

Virtual ][ Help.

is on my list of things to play with.

–jeroen

Posted in Apple, Mac, Power User | 1 Comment »

Speedup Youtube Playback: Watch Lectures In Half The Time with YouTube’s HTML5 Player

Posted by jpluimers on 2013/09/13

I wish I had kept an eye on it after it was announced (which was 3.5 years ago, but not very stable): The Youtube HTML5 viewer trial.

It has come a long way since thenFull screen it is still not as good as the official one, but the main attraction introduced since is: configurable playback speed!

Yes, you can choose playback at 25%, 50%, 100%, 150% or 200% of the original speed. Ideal for lectures or watching replays of conference sessions.

Quote from the life hacker post LifeHacker on this:

Read the rest of this entry »

Posted in Apple, Chrome, Firefox, Internet Explorer, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, Opera, OS X 10.8 Mountain Lion, Power User, Web Browsers, Windows, Windows 7, Windows 8 | Leave a Comment »

I need to check this out: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices

Posted by jpluimers on 2013/09/12

On my research list:

I need to check out KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices.

It seems to add a lot of normal unix/Linux commands to your Android terminal emulator, but does not require root access.

I usually use a Windows or Mac system to browse the files on my Android device, but this should be much more convenient and aid both software developers and power users.

Now I need a remote ssh access to my Android device (:

–jeroen

via: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices – Kevin Boone’s Web site.

Posted in Android, Android Devices, Development, Mobile Development, Power User, Software Development | Leave a Comment »

Parameters for use in a Google Maps URL (zoom level, position, map-type, etc; via StackOverflow)

Posted by jpluimers on 2013/09/11

Thanks for StackOverflow user xordon for this answer:

This is current accepted way to link to a specific lat lon (rather than search for the nearest object).

http://maps.google.com/maps?z=12&t=m&q=loc:38.9419+-78.3020

  • z is the zoom level (1-20)
  • t is the map type (“m” map, “k” satellite, “h” hybrid, “p” terrain, “e” GoogleEarth)
  • q is the search query, if it is prefixed by loc: then google assumes it is a lat lon separated by a +

–jeroen

via: What parameters should I use in a Google Maps URL to go to a lat-lon? – Stack Overflow.

Posted in Development, Google, GoogleMaps, HTML, Power User, Software Development, Web Development | Leave a Comment »

.NET/C#: Small class for double-quote escaping/unescaping (via StackOverflow)

Posted by jpluimers on 2013/09/10

Just came across this nice answer by harpo containing a small class that can Escape/Unescape double-quotes in strings.

–jeroen

via: Good CSV Writer for C#? – Stack Overflow.

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, CSV, Development, Software Development | Leave a Comment »

Linux: mounting of a FAT16/FAT32 USB flash drive

Posted by jpluimers on 2013/09/09

A while ago, I had to transfer a couple of files from a Linux machine where I did have console access, but no proper network access.

This was the sequence to get it connected and copy a directory to the USB flash drive:

  1. Stick the USB flash drive in a USB port (duh <g>) on the Linux system
  2. Run the fdisk  command to see on which device it got loaded:
    # fdisk -l
    It will give you something like this:
    Disk /dev/sdd: 8019 MB, 8019509248 bytes
    20 heads, 16 sectors/track, 48947 cylinders
    Units = cylinders of 320 * 512 = 163840 bytes
    Device Boot Start End Blocks Id System
    /dev/sdd1 * 1 48948 7831512 b Win95 FAT32
  3. Create a /mnt/USB directory to mount the device to using the mkdir command:
    # mkdir /mnt/USB
  4. Use the modprobe command to make sure the vfat file system support is loaded:
    # modprobe vfat
  5. Use the mount command to mount the device from the first step (/dev/sdd1) to the directory you created (/mnt/USB)
    # mount /dev/sdd1 /mnt/USB
  6. Use the rsync command to recursively (-p) copy a directory maintaining timestamps (-t) and showing progress (-v)
    # rsync -rtv /home/user/directory/ /mnt/USB/directory/
  7. Use the umount command to unmount the directory (and therefore the device)
    # umount /mnt/USB

–jeroen

via: Simple mounting of FAT32 USB Flash Drive.

Posted in *nix, Linux, Power User, SuSE Linux | Leave a Comment »

openSUSE 12.x: disabling smbd CUPS warnings when you have Samba but not printing installed

Posted by jpluimers on 2013/09/06

As Dave mentioned a couple of years ago in an article smbd_unable_to_connect_to_cups_server, even if you have printing disabled in Samba, you can get errors in /var/log/messages like these±

   May  5 09:45:02 www smbd[<pid>]: [2008/05/05 09:45:02, 0] printing/print_cups.c:cups_connect(69)
    May  5 09:45:02 www smbd[<pid>]: Unable to connect to CUPS server localhost:631 - Connection refused

This happens even if you disable the printers and print$ shares from within YaST2.

He proposed a 5-line change in the /etc/samba/smb.conf, but testing this on openSUSE 12.x, shows the actual diff is a lot smaller: just change the entry for printcap name, then add an entry for disable spoolss.

This is the diff of /etc/samba/smb.conf.printing versus /etc/samba/smb.conf: Read the rest of this entry »

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Android Device Manager: Find your lost phone with Android Device Manager | Official Android Blog

Posted by jpluimers on 2013/09/05

Reminder 2: has this been release yet?

Yes it was released on august 7th, and even earlier than announced. It is called Android Device Manager and you can find it at https://www.google.com/android/devicemanager.

More details at Official Blog: Dude, where’s my phone? Simple steps to protect your Android device this summer..

–jeroen

via:

Posted in Android Devices, Power User | Leave a Comment »

Delphi Mobile (NEXTGEN) compiler: the risk of a changed TSymbolName; unsupported data types means unsupported RTTI as well

Posted by jpluimers on 2013/09/05

The NEXTGEN family of Delphi compilers for the Mobile platforms changed quite a bit of things.

Most of it has been covered by various blogs posts. A non exhaustive list of ones I liked:

Those articles do not contain two things I had’t found about yet though that are important when you do RTTI using NEXTGEN in Delphi XE4: Read the rest of this entry »

Posted in Delphi, Delphi XE3, Delphi XE4, Development, Encoding, Software Development, Unicode, UTF-8 | 2 Comments »