středa, 3. dubna 2013

Transfer files via browser

If you are running on Linux and your college needs to download files from you just run following command in directory with needed files:

python -m SimpleHTTPServer

Your colleges can see all files and subdirectories in browser on the address : and simple download them.


úterý, 13. března 2012

WebConsole on Amazon

I manage my linux servers using ssh. From time to time I need to access them from places where ssh connection is not possible, e.g. behind firewall which enables HTTP only. Then I start a remote server with shell accessible via browser.

I use a simple solution using Amazon AWS EC2 service. I just start a prepared EC2 image on cheapest instance. This image contains installed Shell-in-a-box (Web based AJAX terminal emulator) and usage manual.

Shell In A Box implements a web server that can export arbitrary command line tools to a web based terminal emulator. For details see its homepage.

When I don't need the server anymore I just terminate it. The cost is several cents ($0.006/hour for Spot request server).

I you would like to try it the image name is ami-c73ef2ae (currently available only for US East - Northern Virginia).

WebConsole tutorial running on port 80

WebConsole shell running on port 443

středa, 13. dubna 2011

Clean Code Talk - part III, Functions

Next talk by Robert C. Martin about one chapter of his book 'Clean Code'. Here is presentation used in video.


Clean Code III: Functions from Mike C. on Vimeo.


Clean-Code-Functions

Clean Code Talk - part I, Arguments

Great talk by Robert C. Martin about one chapter of his great book 'Clean Code'. Here is presentation used in video.


Clean Code I: Arguments from Mike C. on Vimeo.


Clean Code - Part 1, Arguments

středa, 18. srpna 2010

Injecting Mockito mocks into a Spring bean

I would like to inject a Mockito mock object into a Spring (3+) bean for the purposes of unit testing. My bean dependencies are currently injected by using the @Autowired annotation on private member fields.

Howto do it simple with XML configuration:

<bean id="dao" class="org.mockito.Mockito" factory-method="mock">
    <constructor-arg value="com.package.Dao" />
</bean>


It's pretty elegant.

neděle, 30. května 2010

supermemo.net

SuperMemo.net is a online version of SuperMemo program which is legendary desktop program developed by Piotr Woźniak.

The application itself makes good impression with professional design. I take a look on usage.



Lesson overview is looks good on first view. Each lesson has nice description, rating, nice picture and  icon which tells me, if a lesson is free or not. After first look I try to find what lesson are offered. And here comes the problem. Filter feature is not intuitive. I see recommended lessons, Top 10  and user lessons. After a while I spot a menu with 'Course categories'. This displays a page with tree menu - languages, other and user courses. No sorting, search is problematic (search for history finds only lesson not from users). To find what this application offers that is a little difficult.
I expect a lesson filter which gives me impression if same lesson is present or not, if it's free, which language it uses, ...


After while I found a interesting lesson which I subscribed. I searched a introduction to the application but I found none. No suggestion how to use it, how the learning works.
Learn part is split into three parts → Learn plan, Course content and flashcard display.


Learning itself is good designed. You can see big experience in UI. Flashcard has usual control → Show answer, rate your knowledge options and Next flashcard button. On Next button is displayed information when flashcard will be repeated.



Learn plan contains flashcards list planed for todays learning. It consist from three parts as Repetition, New material and Drill. The detailed learn schedule is also available (under Welcome → Schedule of repetitions).

Information about your current progress is also available in lesson statistics.


And finally lesson configuration:

Summary:
SuperMemo is a nice application. You can see 10 years of development here. It offers settings for each lesson, where you can adjust speed of learning progress for your skills. You can see your lesson statistic and flashcard schedules. The drill part is also important. After proceeding scheduled flashcards you can repeat todays portion and improve your knowledge.
What I don't like is that the flashcard stays in order while learning or drill. There is no flashcard shuffle. So you will learn the flashcard  order which is not wanted. You don't want to remember the information from a flashcard only in that case that another flashcard precede.

pátek, 30. dubna 2010

Learn simple

I would like to improve my language knowledge. I know german and english already. But my english could be improved. It's good only for reading technical texts, but nothing else.

There for I am looking for one nice application, which will improve my english easily. I am expecting a web 2.0 application, where I simple learn new vocabularies, idioms, grammar, ... I would appreciate access possibility from cell phone.

So where I can find list of those software? Wikipedia of course. Under Flashcard Software I found following:
Know I will check these applications and see what they are offering.

Update: And also take a look on Google search results: