The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • Pages

  • All categories

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

    Join 1,854 other subscribers

Installing Eclipse, Android SDK and ADT on Mac OS X

Posted by jpluimers on 2012/07/24

Just in case I need to get my Android contacts issue solved by brushing off some Java knowledge and going for Java using Eclipse on my MacBook Air:

All of the above was to try out this: Android-er: Create SD Card in Android Emulator and copy files into, in Eclipse, Emulator and DDMS..

Which in turn I needed for this: Current status on the “Android help needed: App that cleans up the Contacts mess that the LinkedIn app left behind” « The Wiert Corner – irregular stream of Wiert stuff « The Wiert Corner – irregular stream of Wiert stuff.

–jeroen

Posted in Android, Development, Java, Mobile Development, Software Development | 1 Comment »

Small follow-up on “Android help needed: App that cleans up the Contacts mess that the LinkedIn app left behind”

Posted by jpluimers on 2012/07/24

a quick follow up:

  • the Contacts database is more than half a gigabyte, with about 3500 contacts
  • even though I had no running apps, data storage space was steadily decreasing till less than half a megabyte
  • I have disabled all of  the accounts sync features
  • I have uninstalled the LinkedIn and FaceBook apps
  • I have turned off WiFi, Bluetooth and Data connection (so it cannot sync, unless over USB)
  • I have moved a couple of application from memory to SD card
  • I am trying to export the various portions of the contacts DB to VCF on the SD card like described here
  • a few people have contacted me to assist. Thanks!

Boy I wish I had shell access to this device.

Being able to do simple things like “du / -s | less” or “df” would be soo nice.

Will follow up with more results when I have them.

–jeroen

via: Android help needed: App that cleans up the Contacts mess that the LinkedIn app left behind « The Wiert Corner – irregular stream of Wiert stuff.

Posted in About, Android Devices, Personal, Power User | 1 Comment »

Alternatives to Reflector that I tried: ILSpy (from SharpDevelop), DotPeek (from JetBrains) and JustDecompile (from Telerik) – none of them cut it

Posted by jpluimers on 2012/07/24

A long time ago, I wrote about the Reflector debacle and the URLs how it used to update. Since then Reflector 6.8.2.5 came out. No newer free versions will be released, and RedGate randomized parts of the URLs to make it harder to upgrade if you do not have version 6.5.0.135 around (if you really want you can go around that too).

So I’ve been using some alternatives for a while: ILSpy by SharpDevelop (open source), dotPeek by JetBrains and JustDecompile by Telerik (both closed source).

There are more (monoflector, Kaliro App Explorer, Dotnet IL Editor, Dis#, StackOverflow threads and various sites describing more) but I discuss the ones I used. Read the rest of this entry »

Posted in .NET, Development, Reflection, Software Development | 10 Comments »

C# code fragment of the week

Posted by jpluimers on 2012/07/24

Please don’t do your code like this:

        internal bool blnMDACResult = true;

        internal bool CheckMDACisOK(string eenMDAC, string strAdoDllPath)
        {
            FileVersionInfo AdoVersionInfo;

            try
            {
                AdoVersionInfo = FileVersionInfo.GetVersionInfo(strAdoDllPath);
                AdoDllVersion = new Version(AdoVersionInfo.ProductMajorPart, AdoVersionInfo.ProductMinorPart, AdoVersionInfo.ProductBuildPart, AdoVersionInfo.ProductPrivatePart);

                switch (eenMDAC)
                {
                    case "2.6":
                    case "2,6":
                        // MDAC 2.6 - 2.60.6526.0
                        Version MinimumVersion = new Version(2, 60, 6526, 0);
                        blnMDACResult = AdoDllVersion.CompareTo(MinimumVersion) >= 0;
                        break;

                    case "2.7":
                    case "2,7":
                        // MDAC 2.7 - 2.70.7713.0
                        Version MinimumVersion = new Version(2, 70, 7713, 0);
                        blnMDACResult = AdoDllVersion.CompareTo(MinimumVersion) >= 0;
                        break;

                    case "2.8":
                    case "2,8":
                        // MDAC 2.8 - 2.80.1022.0
                        Version MinimumVersion = new Version(2, 80, 1022, 0);
                        blnMDACResult = AdoDllVersion.CompareTo(MinimumVersion) >= 0;
                        break;

                    default:
                        // 2.9 and up
                        string numberDecimalSeparator = Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator;
                        double dMinVersion = ConvertAppl.ToDouble(eenMDAC.Replace(".", numberDecimalSeparator));
                        double dVersion = ConvertAppl.ToDouble(AdoDllVersion.Major + ".".Replace(".", numberDecimalSeparator) + AdoDllVersion.Minor);
                        if (dVersion > dMinVersion)
                            blnMDACResult = true;
                        else
                            blnMDACResult = false;
                        break;
                }
            }
            catch
            {
                // Something went wrong, let's assume the version is ok. (trial on error)
                blnMDACResult = true;
                return blnMDACResult;
            }

            return blnMDACResult;

        }

–jeroen

Posted in .NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

Android help needed: App that cleans up the Contacts mess that the LinkedIn app left behind

Posted by jpluimers on 2012/07/23

It seems LinkedIn doesn’t react to my tweet for help, so maybe you can provide me (paid) with a custom build of Contact Remover Plus.

This is my problem: https://twitter.com/jpluimers/status/225625536976793600

The LinkedIn Android app has created dozens of LinkedIn links and photo links to many of my contacts.
This renders many functions on my phone unusable:

  • loading the native People app takes minutes
  • Contacs cannot be synced my Google account any more
  • making  a backup fails
  • I cannot edit contacts in the Android People app any more
  • calling a phone number usually takes more than 30 seconds, often more than a minute
  • etc.

I tried to count this for one particular contact with the “Contact Remover” App: His contact has so many pages of photos and LinkedIn links that I cannot count them any more. They are at least dozens, probably more than 100 of each.

I’m using an HTC Sensation phone with a regular Android 4 firmware.

With Android development, I haven’t don’t anything yet with the Contacts API yet, and don’t have the time to do so in short term.

I’m willing to pay for an App that:

  • removes all LinkedIn links for all contacts
  • removes all LinkedIn photos for all contacts

Anyone?

–jeroen

Posted in About, Android Devices, Development, LinkedIn, Personal, Power User, SocialMedia, Software Development | 6 Comments »

#WordPress changed from Alt-Shift to Alt #keyboard #shortcuts and now breaks your regular browser Alt shortcuts. @wordpressdotcom

Posted by jpluimers on 2012/07/23

A couple of months ago, I created a nice post listing all #WordPress Editor #keyboard #shortcuts for both Windows and Mac OS X.

As of a few days ago, WordPress.com changed their Alt-Shift shortcuts into Alt shortcuts.

For instance, Alt-Shift-d (strike through) is now Alt-d, thereby blocking the original Alt-d (which for most browsers on Windows brings you to the address bar).

They violate one of the basic GUI principles: keep existing keyboard shortcuts as they are.

On Windows based browsers that means: keep Alt and Ctrl based shortcuts. Alt-Shift, Ctrl-Shift and Ctrl-Alt-Shift shortcuts are OK.

I haven’t tested WordPress on my MacBook air yet (as I don’t think the end-users should be the WordPress.com beta testers, though they probably think the world at large is a big beta-test garden).

I have asked WordPress.com to change the shortcuts back to what they were.

–jeroen

via: #WordPress Editor #keyboard #shortcuts « The Wiert Corner – irregular stream of Wiert stuff.

Posted in Keyboards and Keyboard Shortcuts, Power User, SocialMedia, WordPress | Leave a Comment »

Addendum to Guide to “Install Tomato firmware on Asus RT-N66U / RT-N16 / RT-N12 B1 / RT-N12 C1 / RT-N10U router 韌體教學 | Moonlight Knight”

Posted by jpluimers on 2012/07/23

I had a bit different experience getting the Tomato Shibby firmware loaded on one of my Asus RT-N66U routers than the description from Guide to Install Tomato firmware on Asus RT-N66U nor this Video of the Asus Routers Rescue Mode Tutorial.

Somehow, the Asus Firmware Restoration Utility kept indicating “The wireless router is not in rescue mode”, no matter what I did.

This might be due to that I run VMware Workstation with some virtual LAN adapters on most of my machines.

Or not: the web-interface on the Asus RT N66U would not get into the firmware restoration mode either.

This worked though:

  1. pull the power plug on the RT N66U
  2. press and hold the reset button
  3. insert the power plug on the RT N66U
  4. wait for the power led to slowly blink
  5. release the reset button
  6. wait a few minutes for the modem to become stable
  7. in the mean time set your PC to these IPv4 settings: – host = 192.168.1.100 – mask = 255.255.255.0
  8. start your web-browser
  9. point your web-browser to http://192.168.1.1 (it will time out, don’t worry)
  10. press the power button to turn off the router
  11. wait a few seconds
  12. press the power button to turn on the router now your router gets into rescue mode
  13. refresh your browser so it goes to http://192.168.1.1 again
  14. upload your Tomato firmware

–jeroen

via: Guide to Install Tomato firmware on Asus RT-N66U / RT-N16 / RT-N12 B1 / RT-N12 C1 / RT-N10U router 韌體教學 | Moonlight Knight.

Posted in *nix, ASUS RT-N66U, Internet, Network-and-equipment, Power User, TomatoUSB | 2 Comments »

Reference desktop client for the Google Authenticator (OS X, Windows, Linux) – via: mclamp/JAuth · GitHub

Posted by jpluimers on 2012/07/20

It runs on OS X, Windows and Linux:

JAuth is a reference desktop client for the google authenticator. Intended

as an alternative to the iPhone Google Authenticator app and similar.

And it comes with installers in addition to source code.

Interesting.

–jeroen

via: mclamp/JAuth · GitHub.

Posted in *nix, Apple, Google, GoogleAuthenticator, Mac, Mac OS X / OS X / MacOS, Power User, Windows | Leave a Comment »

WiFi/WLAN security: for personal/PSK mode, choose WPA2 with AES and a strong password and SSID name. Don’t use TKIP or WPS PIN

Posted by jpluimers on 2012/07/20

To make WPA2 as secure as possible in PSK mode aka personal mode, make sure you don’t trap into the major WPA2 weaknesses:

So this is what I did on my TomatoUSB flashed Asus RT N66U router:

  • strong and different passwords for 2.4 Ghz and 5Ghz WiFi
  • unique SSIDs for both the WiFi bands
  • AES encryption
  • no WPS PIN

Easy to setup: follow the WiKi here, using the basic link from the link list.

–jeroen

via:

Posted in *nix, Internet, Power User, TomatoUSB | Leave a Comment »

Great post on the differences between TFS, SVN, CVS and other source code management systems, ideas on Trunk/Tag/Branch

Posted by jpluimers on 2012/07/19

When switching between different source code management systems for doing version control at clients, it is always a bit of “getting used” to the mantra of both their system, and how it has been implemented.

Few people can really explain this well.

Richard Berg did in his great StackOverflow answer sharing his ideas on how to handle Trunk/Branch/Tag (for people starting with SVN, read this answer by David Schmitt before you mix them up).

I still see truckloads of people, and even teams try to do without version control. Please do use source control. If you don’t know where to get started, read some text on Source Control for beginners, or for instance the free on-line Red Bean books on SVN, Mercurial or CVS.

Also read some other great answers by Richard Berg (many on TFS, but also this very balanced view on usage of nullable in languages and proper use of Invoke-Expression in PowerShell: recommended reading).

–jeroen

Posted in Mercurial/Hg, Source Code Management, Subversion/SVN, TFS (Team Foundation System) | Leave a Comment »