Pages

Friday, July 15, 2011

Moving my little home page to Google sites

Here is it alehro00.com. Registering at Google sites forced me to do it with new Google account. Juggling of Google accounts really sucks.

Saturday, July 9, 2011

How do I handle multipart form data? or How do I handle file uploads to my app?

Google App Engine for Java Questions - Google App Engine - Google Code
How do I handle multipart form data? or How do I handle file uploads to my app?

You can obtain the uploaded file data from a multipart form post using classes from the Apache Commons FileUpload package. Specifically you may want to use FileItemStream, FileItermIterator and ServletFileUpload as illustrated below.

If you see a java.lang.NoClassDefFoundError after starting your application, make sure that the Apache Commons FileUpload JAR file has been copied to your war/WEB-INF/lib directory and added to your build path.

import org.apache.commons.fileupload.FileItemStream;

Friday, July 1, 2011

Finished native build of vorbis library for android.

http://code.google.com/p/vorbis-android/

Encodes fast like a hell. At least ten times faster than java encoder.

Monday, June 27, 2011

Voice recording and playing on Android.

I need free voice recorder app for Android. Unfortunately there isn't such app on the market powerful enough. All applications I've tried missed record pause/continue functionality. So, I decided to take ready solution (http://code.google.com/p/diktofon/) and add some features. Because it uses AudioRecord adding the pause/continue recording functionality wasn't a problem. So, it's done.
But saving audio to wav files, i.e. without compression takes a lot of space (1 MByte per minute). And I decided to compress the audio. I've tried two solutions JSpeex and oggDroid.
It turned that they are both two slow.
So, I've added two commands to context menu of files list in the Diktofon. They are "Continue recording" and "Compress record".
"Continue recording" allows to continue recording of any wav file with the same settings as current settings. This command works well.
"Compress record" allows to convert wav file to ogg file (ogg is open source audio codec supported in the Android). But currently this command works very slow. E.g. it converts 1 minute speech for about 10 minutes. Although at the current release converting freezes app's GUI completely.
Here is my release: http://alehro.com/distr/advvoicerecorder/Diktofon.apk

Thursday, December 17, 2009

Radiation, particles transport.

http://www.fluka.org/fluka.php

http://www-rsicc.ornl.gov/rsiccnew/CodesAvailableElsewhere.htm

http://www.nea.fr/html/dbprog/peneloperef.html //not available for using

CUDA zone

http://www.nvidia.ru/object/cuda_what_is_ru.html

Saturday, April 4, 2009

MSVC run and attach script

Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics

Public Module Module1
Sub macro1()
'DTE.Windows.Item(Constants.vsWindowKindCommandWindow).Activate()
DTE.ExecuteCommand("Tools.Shell", "...exe")
Try

Threading.Thread.Sleep(5000)

Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger

Dim trans As EnvDTE80.Transport = dbg2.Transports.Item("Default")

Dim dbgeng(2) As EnvDTE80.Engine

dbgeng(0) = trans.Engines.Item("Managed")

dbgeng(1) = trans.Engines.Item("Native")

Dim proc2 As EnvDTE80.Process2 = dbg2.GetProcesses(trans, "computer_name").Item("...exe")

proc2.Attach2(dbgeng)

Catch ex As System.Exception

MsgBox(ex.Message)

End Try


End Sub

End Module