<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Biniam Asnake on Medium]]></title>
        <description><![CDATA[Stories by Biniam Asnake on Medium]]></description>
        <link>https://medium.com/@biniamasnake?source=rss-82b1265c5ea9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hvlmo_usjzk10DfE.png</url>
            <title>Stories by Biniam Asnake on Medium</title>
            <link>https://medium.com/@biniamasnake?source=rss-82b1265c5ea9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:14:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@biniamasnake/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Top Places to visit in Berlin]]></title>
            <link>https://biniamasnake.medium.com/top-places-to-visit-in-berlin-73e7f3408bb5?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/73e7f3408bb5</guid>
            <category><![CDATA[tourist-attraction]]></category>
            <category><![CDATA[berlin]]></category>
            <category><![CDATA[visit]]></category>
            <category><![CDATA[top-places]]></category>
            <category><![CDATA[germany]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:09:39 GMT</pubDate>
            <atom:updated>2021-03-01T11:11:45.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Berlin! <em>Willkommen in Berlin!</em></p><p>The top places you can visit can be found on one long street called <strong>Unter Den Linden</strong>. Here are the places you can visit there.</p><ol><li><a href="https://www.visitberlin.de/en/brandenburg-gate">https://www.visitberlin.de/en/brandenburg-gate</a></li><li>(next to #1) <a href="https://www.visitberlin.de/en/memorial-murdered-jews-europe">https://www.visitberlin.de/en/memorial-murdered-jews-europe</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uj4SdqM7gUCgIZPa" /><figcaption>Photo by <a href="https://unsplash.com/@purzlbaum?utm_source=medium&amp;utm_medium=referral">Claudio Schwarz | @purzlbaum</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It is just a collection of beautifully shaped stones and it is even fun to play “hide and seek” for <strong>kids</strong>.</p><ol><li>(next to #1) <a href="https://www.visitberlin.de/en/reichstag-in-berlin">https://www.visitberlin.de/en/reichstag-in-berlin</a></li><li><a href="https://www.visitberlin.de/en/berlin-television-tower">https://www.visitberlin.de/en/berlin-television-tower</a></li><li><a href="https://www.visitberlin.de/en/siegessaule">https://www.visitberlin.de/en/siegessaule</a></li><li><a href="https://www.visitberlin.de/en/berlin-cathedral">https://www.visitberlin.de/en/berlin-cathedral</a></li></ol><p>This is also nice to see Berlin architecture with some park and museum next to it.</p><p>All these places are FREE and you can walk to these places once you arrive at one place (except #3)</p><p>You can take S-Bahn (Yellow and Red) trains.</p><p><a href="https://sbahn.berlin/en/tickets/all-tickets/group-tickets/day-ticket-for-small-groups/">https://sbahn.berlin/en/tickets/all-tickets/group-tickets/day-ticket-for-small-groups/</a></p><p>When you guys are tried, the best thing to do is hop on BUS 100 which takes you to <a href="https://www.visitberlin.de/de/zoo-berlin">https://www.visitberlin.de/de/zoo-berlin</a></p><p>The bus passes through all the tourist attraction places and you can visit all while comfortably sitting in the Bus.</p><p><em>Enjoy your stay!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73e7f3408bb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Reset the Root Password in MySql Database]]></title>
            <link>https://biniamasnake.medium.com/how-to-reset-the-root-password-in-mysql-database-6b63a89191ae?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b63a89191ae</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[password-reset]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:44 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:44.312Z</atom:updated>
            <content:encoded><![CDATA[<p>Run the following commands separately to change/reset your ‘root’ user password in MySql database.</p><p>There is a database called mysqlwhich is the <em>default</em> database. It is where Users such as root are stored. More info can be found <br> In this script, it is assumed that your new password is MyNewPassword. Hence, replace that with whatever you want your password to be.</p><pre>UPDATE mysql.user<br>SET Password=PASSWORD(‘MyNewPassword’)<br>WHERE User=’root’;</pre><pre>FLUSH PRIVILEGES;</pre><p><em>Originally published at </em><a href="http://binyit.blogspot.com/2014/04/how-to-reset-root-password-in-mysql.html"><em>http://binyit.blogspot.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b63a89191ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# — Reading a Record/Row from SQLServer Database Using C#]]></title>
            <link>https://biniamasnake.medium.com/c-reading-a-record-row-from-sqlserver-database-using-c-89b94ce9a93c?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/89b94ce9a93c</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:39 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:39.476Z</atom:updated>
            <content:encoded><![CDATA[<h3>C#: Reading a Record/Row from SQLServer Database</h3><p>First, Set up your connectionString and use the following code snippet in a method.</p><pre>using (SqlConnection con = new SqlConnection(connectionString))</pre><pre>{<br><br>    con.Open();<br><br>    SqlCommand cmd = new SqlCommand(&quot;SELECT userid, username, email, city FROM USERS where username=@username and password=@password&quot;, con);<br>    cmd.Paramters.AddWithValue(&quot;@username&quot;, username);<br>    cmd.Parameters.AddWithValue(&quot;@password&quot;, password);<br>    cmd.CommandType = CommandType.Text;<br><br>    UserInfo info = new UserInfo();<br><br>    using (SqlDataReader rdr = cmd.ExecuteReader())<br>    {<br>        if (rdr.HasRows)<br>        {<br>            rdr.Read(); // get the first row<br><br>            info.UserID = rdr.GetInt32(0);<br>            info.UserName = rdr.GetString(1);<br>            info.Email = rdr.GetString(2);<br>            info.City = rdr.GetString(3);<br>        }<br>    }<br>}</pre><p>Acknowledgement to: <a href="http://stackoverflow.com/questions/18099477/asp-net-c-sharp-using-dataset-to-read-one-row">Tim </a>of StackOverFlow.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89b94ce9a93c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Struts 2: Redirecting to a link and another Action]]></title>
            <link>https://biniamasnake.medium.com/apache-struts-2-redirecting-to-a-link-and-another-action-a1cdb12a5ed4?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1cdb12a5ed4</guid>
            <category><![CDATA[apache-struts-2]]></category>
            <category><![CDATA[mvc]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:34 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:34.814Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Apache_Struts"><strong>Apache Struts</strong></a> is a project developing an open-source web application framework for Java EE web application development that promotes a model–view–controller (MVC) architectural approach through extensions the Java Servlet web API. [Definition from <a href="http://en.wikipedia.org/">Wikipedia</a>]</p><p>To know more about Apache Struts 2, click <a href="http://struts.apache.org/">here</a>.</p><h3>Redirect To JSP Page</h3><p>It is very simple to redirect to a <a href="http://en.wikipedia.org/wiki/JavaServer_Pages">JSP</a>(JavaServer Pages) which is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types.</p><pre>&lt;ACTION NAME=”LOGIN” CLASS=”LOGINACTION”&gt;<br>    &lt;RESULT NAME=”INPUT”&gt;LOGIN.JSP&lt;/RESULT&gt;<br>&lt;/ACTION&gt;</pre><h3>Redirect To Action</h3><p>Assuming that you have an Action called LoginAction and HomeAction,</p><pre>&lt;ACTION NAME=”LOGIN” CLASS=”LOGINACTION”&gt;<br>    &lt;RESULT NAME=”SUCCESS” TYPE=”REDIRECTACTION”&gt;<br>        &lt;PARAM NAME=”ACTIONNAME”&gt;HOME&lt;/PARAM&gt;<br>    &lt;/RESULT&gt;<br>&lt;/ACTION&gt;</pre><pre>&lt;ACTION NAME=”HOME” CLASS=”HOMEACTION”&gt;<br>    &lt;RESULT NAME=”SUCCESS”&gt;HOME.JSP&lt;/RESULT&gt;<br>&lt;/ACTION&gt;</pre><p>You can also pass parameters to an action while redirecting and call another Page if the input are not provided in the initial page like this.</p><pre>&lt;action name=”login” class=”LoginAction”&gt;<br>    &lt;result name=”success” type=”redirectAction”&gt;<br>        &lt;param name=”actionName”&gt;home&lt;/param&gt;<br>        &lt;param name=”userName”&gt;${userName}&lt;/param&gt;<br>    &lt;/result&gt;<br>    &lt;result name=”input”&gt;login.jsp&lt;/result&gt;<br>&lt;/action&gt;</pre><h3>Description:</h3><p>If LoginAction returns “success” then go to “home” action (which calls HomeAction).</p><p>If input values are not properly provided to LoginAction and it returns “input” or “Action.INPUT”, then open login.jsp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1cdb12a5ed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A one-liner code to convert comma separated Strings to List in Java]]></title>
            <link>https://biniamasnake.medium.com/a-one-liner-code-to-convert-comma-separated-strings-to-list-in-java-a80106493a28?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80106493a28</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[csv-file]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:24 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:24.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>A one-liner code to convert comma-separated Strings to List in Java</h3><p>No talking! Let’s just do the code.</p><pre>// String that is comma separated <br>String listOfUserIds = “10,11,12,13”;</pre><pre>// The magic that converts it to list<br>List&lt;String&gt; userIds = new ArrayList&lt;String&gt;(Arrays.asList(listOfUserIds.split(“,”)));</pre><p>To convert the List back to String:</p><pre>userIdsLists = userIds.join(&#39;, &#39;)</pre><p><em>Originally published at </em><a href="http://binyit.blogspot.com/2014/02/a-one-liner-code-to-convert-comma.html"><em>http://binyit.blogspot.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80106493a28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grails: Solving “Failed to resolve dependencies” exception]]></title>
            <link>https://biniamasnake.medium.com/grails-solving-failed-to-resolve-dependencies-exception-8067dee8919?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8067dee8919</guid>
            <category><![CDATA[grails-upgrade]]></category>
            <category><![CDATA[grails]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:16 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:16.067Z</atom:updated>
            <content:encoded><![CDATA[<p>When upgrading grails to version 2.3.0, I got the following error.</p><pre>Failed to resolve dependencies ... <br>org.grails.plugins:tomcat:2.3.0 ...<br>hibernate:2.3.0 ...</pre><p>This is because as of Grails 2.3.0, the tomcat and hibernate plugins (as well as the scaffolding and webflow plugins) have been split out as completely independent plugins and are no longer versioned with Grails. You need to use explicit versions now instead of using <strong>$grailsVersion.</strong></p><p>Hence, I replaced the following things in my BuildConfig.groovy file</p><pre>OLD: runtime “:hibernate:$grailsVersion”// For versions prior to Grails 2.3.0<br>NEW:runtime ‘:hibernate:3.6.10.1’</pre><pre>OLD: build “:tomcat:$grailsVersion” // For versions prior to Grails 2.3.0<br>NEW: build ‘:tomcat:7.0.42’</pre><p>And I added the following line to be able to run the create- and generate- scripts in Grails 2.3.0</p><pre>//To run the create- and generate- scripts in Grails 2.3.0<br>compile ‘:scaffolding:2.0.0’</pre><p><em>Originally published at </em><a href="http://binyit.blogspot.com/2014/02/graills-solving-failed-to-resolve.html"><em>http://binyit.blogspot.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8067dee8919" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to remove empty or blank lines in a Microsoft Word document]]></title>
            <link>https://biniamasnake.medium.com/how-to-remove-empty-or-blank-lines-in-a-microsoft-word-document-2faf71f032c9?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2faf71f032c9</guid>
            <category><![CDATA[replace-empty]]></category>
            <category><![CDATA[replace-lines]]></category>
            <category><![CDATA[microsoft-word]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:13 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:13.449Z</atom:updated>
            <content:encoded><![CDATA[<p>If multiple line blank spaces appear in your Microsoft Word document, (when you copy and paste from a <a href="http://en.wikipedia.org/wiki/Portable_Document_Format">PDF </a>document or from some website),</p><ol><li>Press Ctrl + F in the document</li><li>Go to the Replace tab</li><li>Replace double paragraph mark (i.e. <strong>^p^p</strong>) through a single one (<strong>^p</strong>).</li><li>Press ‘Replace All’</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*qUsrzQpR5SIdVlGoPrc3Bg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2faf71f032c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get the current date in JavaScript]]></title>
            <link>https://biniamasnake.medium.com/get-the-current-date-in-javascript-144f2be91a3f?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/144f2be91a3f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[code-example]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 11:03:10 GMT</pubDate>
            <atom:updated>2021-03-01T11:03:10.790Z</atom:updated>
            <content:encoded><![CDATA[<p>Code Example</p><pre>&lt;script type=&quot;text/javascript&quot;&gt;<br>    var currentDate = new Date()<br>    var day = currentDate.getDate()<br>    var month = currentDate.getMonth() + 1<br>    var year = currentDate.getFullYear()<br>    document.write(&quot;&lt;b&gt;&quot; + day + &quot;/&quot; + month + &quot;/&quot; + year + &quot;&lt;/b&gt;&quot;)<br>&lt;/script&gt;</pre><p>The result will be 15/1/2014</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=144f2be91a3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android: Call another activity when a button is pressed and close the first activity]]></title>
            <link>https://biniamasnake.medium.com/android-call-another-activity-when-a-button-is-pressed-and-close-the-first-activity-a756564d8d09?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a756564d8d09</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[navigation]]></category>
            <category><![CDATA[activity]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Sat, 27 Feb 2021 08:07:17 GMT</pubDate>
            <atom:updated>2021-02-27T08:07:17.150Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is a complete class that shows how another activity is called when a button in the first activity is pressed.</p><pre>public class FirstActivity extends Activity implements View.OnClickListener {<br><br>    Button goToSecondActivityButton;<br><br>    @Override<br>    protected void onCreate(Bundle savedInstanceState) {<br>        super.onCreate(savedInstanceState);<br><br>        setContentView(R.layout.first_activity);<br><br>        ((TextView) findViewById(R.id.textRecommendationMessage)).setText(&quot;This is the first activity&quot;);<br><br>        goToSecondActivityButton= (Button) findViewById(R.id.button_go_to_second_activity);<br>        goToSecondActivityButton.setOnClickListener(this);<br>    }<br><br>     @Override<br>     public void onClick(View view) {<br><br>         goToSecondActivity();<br>    }<br><br>    private void goToSecondActivity() {<br><br>        Intent intent = new Intent(FirstActivity.this, SecondActivity.class);<br>        startActivity(intent);<br>        finish();<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a756564d8d09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parsing and Formatting a Date in Groovy/Grails]]></title>
            <link>https://biniamasnake.medium.com/parsing-and-formatting-a-date-in-groovy-grails-4de7cec242a?source=rss-82b1265c5ea9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4de7cec242a</guid>
            <category><![CDATA[date-parsing]]></category>
            <category><![CDATA[grails]]></category>
            <dc:creator><![CDATA[Biniam Asnake]]></dc:creator>
            <pubDate>Sat, 27 Feb 2021 07:55:03 GMT</pubDate>
            <atom:updated>2021-02-27T07:55:03.402Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have a string variable containing a date value such as <em>2014–06–03T11:03:44.779+03</em>, then:</p><ol><li>Convert it to Date using “<em>parse</em>” method of SimpleDateFormat</li><li>Format the Date using the format you want such as <em>“yyyy-MM-dd”</em> or <em>“yyyy/MM/dd”</em> or any other.</li></ol><p><strong>Code Example</strong></p><pre>import java.text.SimpleDateFormat <br>import java.text.DateFormat<br>String mydate = “2014–06–03T11:03:44.779+03”<br>DateFormat formatter = new SimpleDateFormat(“yyyy-MM-dd”)<br>Date parsedDate = formatter.parse(mydate)<br>Date formattedDate = formatter.format(parsedDate)</pre><pre>/* Simplified code in one line<br>Date parsedAndFormattedDate = formatter.format(formatter.parse(mydate))<br>*/</pre><p><em>Originally published at </em><a href="http://binyit.blogspot.com/2014/06/parsing-and-formatting-date-in.html"><em>http://binyit.blogspot.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4de7cec242a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>