OpenSSH using private key on Windows (“Unprotected private key file” error)

You can use icacls in Windows instead of chmod to adjust file permission. To give the current user read permission and remove everything else (Which will allow openssh to work), this works nicely: Command Prompt: icacls .\private.key /inheritance:r icacls .\private.key /grant:r “%username%”:”(R)” In PowerShell, you can get icacls to work by wrapping the command in … Read more

Android: automatically choose debug/release Maps api key?

There is a new way to determine is it a debug build or release one in SDK Tools, Revision 17. An excerpt from new features overview: Builds now generate a class called BuildConfig containing a DEBUG constant that is automatically set according to your build type. You can check the (BuildConfig.DEBUG) constant in your code … Read more

Android edittext key return goes to next text

Much simpler than sniffing keys: try setting android:singleLine=”true” and android:imeOptions=”actionNext” (at least for single-line entry textviews). Read more in the Android documentation for TextView. Update: singleLine is deprecated now, but you can leave it out. It’s the default behavior for editable text as long as you don’t explicitly set android:inputType=”textMultiLine”, and inputType overrides the suggested … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)