For some reasons, you may want to change to keyboard layout, such as playing games, changing mac keyboard layout to be more comfortable when using Windows. Try this program Sharpkeys at: http://www.randyrants.com/2006/07/sharpkeys_211.html.
There are also other programs that do the same purpose at: http://vlaurie.com/computers2/Articles/remap-keyboard.htm.
Pages
Profile
|
|
Hi, I'm Veerapat Sriarunrungrueang, an expert in technology field, especially full stack web development and performance testing.This is my coding diary. I usually develop and keep code snippets or some tricks, and update to this diary when I have time.
Nowadays, I've been giving counsel to many well-known firms in Thailand.
view more... |
Sunday, October 9, 2011
Thursday, October 6, 2011
How to force a thread to stop when the main program has been closed in Python
Last week, I had done with Tkinter GUI programming, and that program requires a lot of processing power to crawl and parse web pages.
So, when I was running the program, it was hang. The solution is using multi-threading, but I found a next problem that threads were not killed
when the main program was closed. To stop threads, we need to set daemon thread letting the threads die when the program is terminated.
Thread.setDaemon()
Labels:
Programming,
Python,
Threading
Compile Python apps to .exe with py2exe
Normally, to run Python applications, we need to have a Python Interpreter. However, it's not always end in this way. If you are using Windows-based Operating Systems, you can compile your Python program to an executable file, and let other Windows-based users to use it without any of Python interpreter installation. You can download the py2exe from http://www.py2exe.org/ according to your Python version.
Examples:
A console application
print 'Hello World!'To compile console applications, create a setup.py file and then write the following code:
from distutils.core import setup import py2exe setup(console=['hello.py'])Then, terminal access is required for compiling process. Write it as the following code:
python setup.py py2exeNext, py2exe will try to generate the executable file for running that Python program on Windows. A GUI application
from Tkinter import * app = Tk() app.mainloop()GUI applications need to modify console application setup code a bit as the following commands:
from distutils.core import setup import py2exe setup(windows=['ui.py'])Then, use the same command that I already mentioned above. In addition, py2exe tutorial can be looked for more information at: http://www.py2exe.org/index.cgi/Tutorial
Labels:
Programming,
Python,
Windows
Saturday, October 1, 2011
How to print percent sign in Python
Hahaha! until now, I still don't know how to print percent sign in Python yet because I haven't needed to use it. The solution is in your printout string, you need to put '%%' (concatenate percent signs). Then, the output will show the percent sign.
print 'Your accuracy is 80%%.' # Your accuracy is 80%.
Labels:
Python
Friday, September 23, 2011
Lexalytics: Text Analytics Software
Lexalytics, Inc. builds text analytics software, and also libraries as well to deal with the natural text from human. It provides the software that can be used to take competitive advantages in businesses such as social media monitoring, marketing intelligence, voice of customers, and enterprise searching. The most interesting thing for me is Tripadvisor is a one of Lexalytics partner, which this website is the world largest travel site, enabling travelers plan and have a perfect trip. Tripadvisor offers trusted advice from real travelers to make beginner travelers plan a suitable solution for themselves.
In my B.Sc. project, I built a software that have tried to extract sentiment of travelers in positive and negative based on various traveling aspects such as appearance, atmosphere, cleanliness, value, and etc. The hardest things for me are entity mapping, set of vocabularies with feeling for each concerned aspect, error of data, and topic separation. Many things of Lexalytics made me feel curious , and I have tried to study about NLP more at http://www.lexalytics.com/sentiment-extraction-measuring-emotional-tone-text.
Later, I will summarize important information and write down on this blog.
In my B.Sc. project, I built a software that have tried to extract sentiment of travelers in positive and negative based on various traveling aspects such as appearance, atmosphere, cleanliness, value, and etc. The hardest things for me are entity mapping, set of vocabularies with feeling for each concerned aspect, error of data, and topic separation. Many things of Lexalytics made me feel curious , and I have tried to study about NLP more at http://www.lexalytics.com/sentiment-extraction-measuring-emotional-tone-text.
Later, I will summarize important information and write down on this blog.
Labels:
NLP
Tuesday, September 20, 2011
Role of the Project Manager
Take a look at this website, it may be helpful for you :D http://www.projectsmart.co.uk/role-of-the-project-manager.html#.TnbsesSuoEI.facebook.
Labels:
Thinking
Monday, September 5, 2011
Is Python any good for GUI development?
This topic tried to discuss which GUI development should be used in Python. Take a look here: http://stackoverflow.com/questions/115495/is-python-any-good-for-gui-development.
Labels:
Programming,
Python
Wednesday, August 31, 2011
What IDE to use for Python?
See this topic, it may be helpful: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python.
There also has a tool helping us to debug Python program in command shell called IPython. Currently, I don't know how to use it yet. If anyone knows how to use and how it can help us, please let me know ^^.
There also has a tool helping us to debug Python program in command shell called IPython. Currently, I don't know how to use it yet. If anyone knows how to use and how it can help us, please let me know ^^.
Rooting & Installing Recovery on X10 Official SE GB
Now, we can root Xperia X10 Ginger Bread (2.3.3). Take a look at: http://forum.xda-developers.com/showthread.php?t=1196808. I rooted it for installing the Cyanogen-Mod 7 ROM, need to be 2.3.3, because I am very frustrated with Sony Official ROMs.
Labels:
Android
Subscribe to:
Posts (Atom)