Profile cover photo
Profile photo
Biniam A.
105 followers
105 followers
About
Biniam's posts

Post has attachment
Solving Error: “syntax error near unexpected token”
Detail Error: : command not found : command not found '/build.sh: line 3: syntax error near unexpected token `{ '/build.sh: line 3: `function stop_channels(){ was thrown when I run ./build.sh The issue was I opened the .sh (shell script) in Windows OS and W...

Post has attachment
Android: Solving "Error:The SDK Build Tools revision (19.0.1) is too low. Minimum required is 19.1.0"
After upgrading Android Stuio to 0.6.0, I got this error "Error:The SDK Build Tools revision (19.0.1) is too low. Minimum required is 19.1.0" Solution: Open build.gradle file in your project and change the buildToolsVersion from 19.0.1 to 19.1.0 like: andro...

Post has attachment
Using Fonts in Grails
I want to include a custom font and I created a folder under web-app  and named it 'fonts' and I copied my font to that folder. Then, 1. I added the fonts folder to be included as a grails resource in Config.groovy like: // What URL patterns should be proce...

Post has attachment
Grails: Listing all fields/variables in a Domain/Model
In this example, I assume your domain class name is 'Research' and the full package name is 'com.package.name.Research' Way 1: Research.declaredFields.each{ if(!it.synthetic)     println it.name     } Way 2: def names =       grailsApplication.getDomainClas...

Post has attachment
Run Windows Command prompt (CMD) in Full screen mode
I got this values for running Windows CMD in full screen mode. Width=237, Height=82 Open CMD, Right click on the title bar and select Properties and set this values. For more info, read this .

Post has attachment
Android Tips: How to (always) show Overflow in Action bar
Here is how! try {         ViewConfiguration config = ViewConfiguration.get(this);         Field menuKeyField =                        ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");         if(menuKeyField != null) {             menuKeyFi...

Post has attachment
Parsing and Formatting a Date in Groovy/Grails
If you have a string variable containing a date value such as 2014-06-03T11:03:44.779+03, then: First -  Convert it to Date using "parse" method of SimpleDateFormat Seond - Format the Date using the format you want such as "yyyy-MM-dd" or "yyyy/MM/dd" or an...

Post has attachment
Android: How to call another activity when a button is pressed and close the first activity
Here is a complete class that shows how another activity is called when a button in the first activity is pressed. public class FirstActivity extends Activity implements View . OnClickListener { Button goToSecondActivityButton ; @Override protected void onC...

Post has attachment
How to Reset the Root Password in MySql Database
Run the following commands separately to change/reset your 'root' user password in MySql database. Some Info: There is a database called 'mysql' in MySql which is the default database. It is where Users such as 'root' are stored. In this script, it is assum...

Post has attachment
Android Emulator Shortcuts
These are the list of Android Emulator shortcuts for Windows. Ctrl+F11  Switch layout orientation portrait/landscape backwards Ctrl+F12  Switch layout orientation portrait/landscape forwards 1. Main Device Keys Home Home Button F2  Left Softkey / Menu / Set...
Wait while more posts are being loaded