arsenig.blogspot.com
Arseni's Silly Notes: Does Construction metaphor harm Software Development?
http://arsenig.blogspot.com/2011/03/does-construction-metaphor-harm.html
View my complete profile. Tuesday, March 22, 2011. Does Construction metaphor harm Software Development? For some time already I was thinking to myself, that construction metaphor, applied to software development field so frequently, doesn’t serve its best purpose. We design. Our software, and we even have Architects. In our projects. You can often hear people referring to construction experience, saying “You wouldn’t start building your house from the roof, wouldn’t you? Usually does, isn’t it? But ther...
arsenig.blogspot.com
Arseni's Silly Notes: Agile Schmagile — ScanAgile 2012 trip-report
http://arsenig.blogspot.com/2012/03/agile-schmagile-scanagile-2012-trip.html
View my complete profile. Wednesday, March 21, 2012. Agile Schmagile — ScanAgile 2012 trip-report. I always get easily confused when conferences have too many tracks going on. No, seriously. At first it gives you an illusion of choice but in the end you just realize that you missed most talks on the conference. In the end of the day you can never be sure if you have made all the right decisions when choosing one talk over another. The coffee break discussion on these things lead to The Quote of the Day b...
arsenig.blogspot.com
Arseni's Silly Notes: April 2012
http://arsenig.blogspot.com/2012_04_01_archive.html
View my complete profile. Monday, April 2, 2012. What is your favorite timezone? Years back I used to have a school record book with a timezone map printed on it. And since then my absolute favorite is Kathmandu (UTC/GMT 5:45 hours). No, seriously: 5:45. I guess, every company that plans to go international, faces the infamous timezone-problem. We also had a fancy unit test, which would fail twice a year, and only on weekends. You probably know why. About a minute ago". About an hour ago".
svenfila.wordpress.com
Script output redirection controlled from within a script | Sven's Blog
https://svenfila.wordpress.com/2012/10/05/script-output-redirection-controlled-from-within-a-script
HAI, CAN HAS STDIO? October 5, 2012. Script output redirection controlled from within a script. It’s trivial to send an output of a script to a file in bash:. But what if you want to control this redirection from within the script? It can actually be done in a really simple way as well. Here is a sample script that sends it’s own output to a file:. Bin/bash outfile=log # Send stdout to a file exec 1 $outfile echo This line is printed to stdout. Now this script can be executed simply as:. A more exciting ...
svenfila.wordpress.com
Spring MVC Test, and content negotiation and AJAX | Sven's Blog
https://svenfila.wordpress.com/2013/05/27/spring-mvc-test-and-content-negotiation-and-ajax
HAI, CAN HAS STDIO? May 27, 2013. Spring MVC Test, and content negotiation and AJAX. In recent projects we have used a combination of Spring MVC framework. And AJAX calls using jQuery. For automated testing of all them, we have used Spring MVC Test framework. The setup is quite typical. Here is the simplistic version of an MVC request mapping:. For requests that expect HTML response, and plain JSON for requests that expect JSON response. Header set to value. AjaxSetup({ dataType : 'json' });. We can test...
svenfila.wordpress.com
Optimising Sql.firstRow() in Groovy | Sven's Blog
https://svenfila.wordpress.com/2013/12/22/optimising-sql-firstrow-in-groovy
HAI, CAN HAS STDIO? December 22, 2013. Optimising Sql.firstRow() in Groovy. Returns the first row in the result set received from the database. Internally it invokes. And takes the first element from the resulting list of rows. In production code that works just fine — the consumer should construct the SQL statements so that only minimum amount of rows is selected from the database. In test code things may not be so straightforward however. Def row = sql.firstRow('select * from my large table'). Class Sq...
svenfila.wordpress.com
Spring MVC Test Support with an open HTTP session | Sven's Blog
https://svenfila.wordpress.com/2012/07/10/spring-mvc-test-support-with-an-open-http-session
HAI, CAN HAS STDIO? July 10, 2012. Spring MVC Test Support with an open HTTP session. Spring MVC Test Support. Is a neat way to test Spring MVC controllers. It is easy to use and has a fluent interface. It also runs fast, being comparable to plain old unit tests rather than integration tests based on, say, Selenium WebDriver. Recently there was the first milestone of. To the wild, with plans to integrate it to the main Spring Test Support in version 3.2. That is used by. The base class for tests creates ...
svenfila.wordpress.com
Running Java applications in a VMware virtual machine | Sven's Blog
https://svenfila.wordpress.com/2013/03/15/running-java-applications-in-a-vmware-virtual-machine
HAI, CAN HAS STDIO? March 15, 2013. Running Java applications in a VMware virtual machine. When setting up a virtual server for running Java applications, such as a web app, it is essential to avoid some virtualisation specific pitfalls. However, JVM is very sensitive to memory overcommitment because JVM heap space is in active use constantly. Therefore VMware ballooning has to be avoided for virtual machines running JVM processes (see here. And memory limit (. That it is using a ridiculous amount memory...
stanvasilyev.blogspot.com
Thoughts while making coffee: November 2012
http://stanvasilyev.blogspot.com/2012_11_01_archive.html
Thoughts while making coffee. Monday, November 5, 2012. Let’s get a bit philosophical in the beginning, because the topic pretty much calls for it. From our early ages we are taught to rationalize and explain world around us. Everything we see can be explained. If you see a rainbow, it is not just “beautiful” or “magical”. It is a dispersion. Of light and there is probably no pot of gold at the end of it. There are clouds. How good are we in assuming and predicting. We even cannot predict how our life wi...
svenfila.wordpress.com
RestTemplate with custom HTTP headers | Sven's Blog
https://svenfila.wordpress.com/2012/01/05/resttemplate-with-custom-http-headers
HAI, CAN HAS STDIO? January 5, 2012. RestTemplate with custom HTTP headers. Provides simple ways to make requests to RESTful services. When you want to set additional HTTP headers to such requests, then a tiny bit of more work is needed. Starting from Spring Framework version 3.0.2 it is possible to utilise. Class An example of querying a PDF file from a server:. Private static final String APPLICATION PDF = application/pdf; RestTemplate restTemplate = new RestTemplate(); @Test public void acceptHeaderUs...