Open the regestry editor (regedit.exe)
Set the registry value to this:
[HKEY_CURRENT_USER\ControlPanel\Desktop]
ForegroundLockTimeout = 0
and reboot the system.
This also works in XP and Vista.
Tuesday, August 24, 2010
Monday, May 10, 2010
Use a .NET Windows Form as a Console application also
Some times I want to command line my windows form applications and get the output from it direct to the command line. This is nice to have when I want to batch or run the program with-in another program.
I use it if I have some methods I want to use in both a Windows Form and command line application and I don't want to write separate applications or wrappers.
I don't want to make a Console application and start a Windows Form, because the console windows will always be visible. I want a Windows Form application to also work as a Console application with arguments and output.
To do this I had to use the kernel32.dll as shown below:
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool AttachConsole(int processId);
[ DllImport("kernel32.dll", SetLastError = true)]
private static extern bool ReleaseConsole();
DllImport namespace is System.Runtime.InteropServices
AttachConsole(int processID) takes the console process ID to which it will output to, -1 is current.
ReleaseConsole() releases the attached console.
Example:
[STAThread]
static void Main(string[] args)
I use it if I have some methods I want to use in both a Windows Form and command line application and I don't want to write separate applications or wrappers.
I don't want to make a Console application and start a Windows Form, because the console windows will always be visible. I want a Windows Form application to also work as a Console application with arguments and output.
To do this I had to use the kernel32.dll as shown below:
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool AttachConsole(int processId);
[ DllImport("kernel32.dll", SetLastError = true)]
private static extern bool ReleaseConsole();
DllImport namespace is System.Runtime.InteropServices
AttachConsole(int processID) takes the console process ID to which it will output to, -1 is current.
ReleaseConsole() releases the attached console.
Example:
[STAThread]
static void Main(string[] args)
{
try
{
if (args.Length == 0)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new WindowsTestForm(args));
}
else
{
AttachConsole(-1);
WindowsTestForm testForm= new WindowsTestForm (args);
}
}
catch (Exception)
{
}
finally
{
ReleaseConsole();
}
}
#region Use Console in Windows Forms
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool AttachConsole(int dwProcessId);
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool ReleaseConsole();
#endregion
Wednesday, May 5, 2010
drPodder Media Importer 0.3.1.0 released
Change log :0.3.1.0 (Beta)
-Fix database with Not existing album art on device
-Detect album art files on restore and clear in db if not existing (eg. restore on full erased USB partition)
-Clear downloaded flag if media files (episodes) are missing on device
-Clear downloaded and new flag if media files (episodes) are missing on device. Can be used if the restore (from eg. wobOS Internals Save/Restore
-Downloading files flaged as downloaded but does not exist on device if drPodder is capable of deleting (does not work if the download tickets in downloadhistory.db in webOS are erased eg. data erease, firmware flash I think).
download
Tuesday, March 30, 2010
show upcoming Google calender appointments on webOS
How to show upcoming Google calender appointments on the wallpaper on a webOS device:
Download the Ultimate Wallpaper app http://www.precentral.net/app-gallery/beta/ultimate-wallpaper
Get the URL of your Google calender as described in this link:
http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=37648
It's a long URL, so you could send it to you email on the webOS device and copy it from there.
Open the Ultimate Wallpaper on the webOS device and set it up with News and paste the copied URL into the RSS feed in the app.
Now you got your calender in the wallpaper
Download the Ultimate Wallpaper app http://www.precentral.net/app-gallery/beta/ultimate-wallpaper
Get the URL of your Google calender as described in this link:
http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=37648
It's a long URL, so you could send it to you email on the webOS device and copy it from there.
Open the Ultimate Wallpaper on the webOS device and set it up with News and paste the copied URL into the RSS feed in the app.
Now you got your calender in the wallpaper
Tuesday, March 16, 2010
drPodder media importer alpha released
Now I just released an alpha version of the drPodder media importer software
http://helioxware.wordpress.com/2010/03/15/drpodder-media-importer-alpha-release-0-1-3/
http://helioxware.wordpress.com/2010/03/15/drpodder-media-importer-alpha-release-0-1-3/
Wednesday, October 14, 2009
Should Computer Games Adapt To the Way You Play?
Source: http://games.slashdot.org/article.pl?sid=09/10/13/078247
jtogel writes"Many games use 'rubberbanding' to adapt to your skill level, making the game harder if you're a better player and easier if you're not. Just think of Mario Kart and the obvious ways it punishes you for driving too well by giving the people who are hopelessly behind you super-weapons to smack you with. It's also very common to just increase the skill of the NPCs as you get better — see Oblivion. In my research group, we are working on slightly more sophisticated ways to adapt the game to you, including generating new level elements (PDF) based on your playing style (PDF). Now, the question becomes: is this a good thing at all? Some people would claim that adapting the game to you just rewards mediocrity (i.e. you don't get rewarded for playing well). Others would say that it restricts the freedom of expression for the game designer. But still, game players have very different skill levels and skill sets when they come to a game, and we would like to cater to them all. And if you don't see playing skill as one-dimensional, maybe it's possible to do meaningful adaptation. What sort of game adaptation would you like to see?"

I think adaption should only be applied in a portion of the game, eg. the start/intro, then the game adapts, and further on when you get better you actually get rewarded for getting relative better than you were before.
jtogel writes"Many games use 'rubberbanding' to adapt to your skill level, making the game harder if you're a better player and easier if you're not. Just think of Mario Kart and the obvious ways it punishes you for driving too well by giving the people who are hopelessly behind you super-weapons to smack you with. It's also very common to just increase the skill of the NPCs as you get better — see Oblivion. In my research group, we are working on slightly more sophisticated ways to adapt the game to you, including generating new level elements (PDF) based on your playing style (PDF). Now, the question becomes: is this a good thing at all? Some people would claim that adapting the game to you just rewards mediocrity (i.e. you don't get rewarded for playing well). Others would say that it restricts the freedom of expression for the game designer. But still, game players have very different skill levels and skill sets when they come to a game, and we would like to cater to them all. And if you don't see playing skill as one-dimensional, maybe it's possible to do meaningful adaptation. What sort of game adaptation would you like to see?"
I think adaption should only be applied in a portion of the game, eg. the start/intro, then the game adapts, and further on when you get better you actually get rewarded for getting relative better than you were before.
Monday, October 5, 2009
Review: Palm Pre 1400mAh Extended battery, Test Results - all things Pre - PreThinking
Review: Palm Pre 1400mAh Extended battery, Test Results - all things Pre - PreThinking.
Looks like there is hope for battery life on the pré
Looks like there is hope for battery life on the pré
Unlock landscape email on Palm Pre via secret code
Gadgetsteria » Unlock landscape email on Palm Pre via secret code.
This is the secret way to landscape email viewing, but its not permanent. You have to write the code every time :(
This is the secret way to landscape email viewing, but its not permanent. You have to write the code every time :(
Monday, September 21, 2009
SmarterMail - mail server to small biz
SmarterMail - At A Glance - Reviews by PC Magazine.

This email server could actually be handy for many small companies. 10 email accounts in the free version, and active-sync to mobile devices.
This email server could actually be handy for many small companies. 10 email accounts in the free version, and active-sync to mobile devices.
Wednesday, September 16, 2009
Opera Mini 5 Beta, free to download now
http://www.opera.com/mini/next/




This is a nice install on my Nokia 5800 XM, but the keyboard lack the ability to copy/paste with the native clipboard in the S60. Some Java scripts does not format well like the iPhone google reader site, but this is not different from the official 4.2 version. Other than that, the browser looks a lot better and still runs smooth. The password save feature is a really nice add-on and feels a lot like a desktop experience. Also the tab browsing makes the flow easier to swallow. Bottom line: it's a good step toward a better experience.
This is a nice install on my Nokia 5800 XM, but the keyboard lack the ability to copy/paste with the native clipboard in the S60. Some Java scripts does not format well like the iPhone google reader site, but this is not different from the official 4.2 version. Other than that, the browser looks a lot better and still runs smooth. The password save feature is a really nice add-on and feels a lot like a desktop experience. Also the tab browsing makes the flow easier to swallow. Bottom line: it's a good step toward a better experience.
Subscribe to:
Posts (Atom)