Wednesday, January 03, 2007
the definitive solution for browser shortcuts
Rediscover how reading news
Tuesday, January 02, 2007
sometimes chatting is addictive
mobile wireless
Monday, January 01, 2007
about blogging
Tuesday, May 23, 2006
the black jack game
im gonna upload a tutorial with all planning and brief well organized into some html pages, plus a section with source code and executables
Tag: c plus plus
Monday, May 22, 2006
Thursday, May 18, 2006
how to send feedback email pressing a keyboard button(WIN)
Introduction
i gonna have up to 3 remote desktop computer that need help desk; therefore im planning to set up a skype network to avoid chatting with slow typing people and then some tool that automate sending by email screen captures through a keyboard shortcut. To manage file sys samba could be enough and work great on both win,mac,linux .
Another option is Remote Desktop System, like VNC and sons; for windows and mac there's and embedded into OS tool the provide such a functionality Microsoft remote Desktop How to's
Create an automate-email feedback shortcut
ok, first of all, need to install an smtp server as service and Microsoft embed this tool in the "Internet information service" packages which is simply intalled through "Add/remove programs" panel -> Add windows components(on the left bar). Then get through set the SMTP server up for granted IP addresses SMTP server set up How to's
Ok now u have the SMTP running and able to get connected only by the local machine(the safer set up).
Here we need a tool to encode email messages with MIME type attachments(i want to send a jpeg with the email) and then a tool that actually carry off the email to the default address(me@example.com) using the SMTP server running on my machine.mpack & bmail -command line tool for DOS-
Assuming to have already Cropper installed(screen capture util), we have to write a batch file called with a keyboard shortcut to automate the whole thingBatch files FAQ
i'll put down the batch very soon to carry out this thread!
Tag: mail
Thursday, May 11, 2006
italian soccer is the best in the world
Pairetto a Dondarini prima di Samp-Juve:«Devi vedere anche quello che non c'è» - Corriere della Sera
tra Dondarini(arbitro corrotto internazionale) e Pairetto(designatore corrotto arbitri corrotti)
Guarda ti giuro se non c'erano i giocatori della Juve che mi aiutavano io non so come finiva
Monday, May 08, 2006
C++ compiler(gcc) basic how to's
follows a simple command which compile a c++ source file called 'simple.cpp' which implements elements from the Standard Template Library(STL) ;in fact simple.cpp begins including header '#include' to make use of standard objects, as streaming output and so on.
_command:
gcc simple.cpp -lstdc++ -static -o simple
_explanation:
-l+stdc++ -> '-l' is the prefix for calling libraries followed by the name of the library u want to include(stdc++ in this case);
'-static' tells the compiler to link against the library in static mode(at load time), rather than in dynamic mode(at runtime)
'-o' specify the output file destination(the .exe extension is added by default)
That's all, just as quick reference after months without compiling anything!!!
UPDATE (compiling in WINDOWS environment with Win32 API)
assuming want to compile under windowsXP an indipendent executable linked against standard Microsoft DLL using GCC compiler released with CygWin;
gcc win.cpp -mno-cygwin -lwin32k -o win
_Explanation:
win.cpp -> c++ source file
-m -> hardware models & configuration -> no-cygwin -> dont link against Cygwin API
-l -> options for linking -> win32k -> DLL win32 API
-o -> output file (otherwise output to stream out)
UPDATE (avoiding include the '-lstdc++' option) & (compiling with custom header)
'gcc' command invokes just the frontend of the compiler, but if u need to compile just C++ source files, it's a best practice invoking 'g++' command insted; this way it's no more needed the '-lstdc++' option which is included by default.When splits code in multiple files organized by headers, u need to pass the implementation file to the compiler just before the source file storing the 'main' entry point. Assuming sample.cpp the implementation file, sample_app.cpp the entry point file, the command to pass comes:
g++ sample.cpp sample_app.cpp -o sample
Saturday, May 06, 2006
Friday, April 28, 2006
uncle's hardware
- Sell my desktop, therefore replace it with new hardware for me(budget->350+400=750)
- find out a used or new desktop either mac or win affordable for my uncle(up to 500)
Wednesday, April 19, 2006
flash in a open environment...
That's getting me bored when i'd got to carry out the basic set up of a ant build file, which implied a basic knowledge of java to take over ant build tool. Well now im able to say i can get on an automated building process through that.
About coding Actionscript, now im studying in depth the Natural Entry point method explained well by the great people at flashant.org
It's simpler since i needn't "static main function" as entry point anymore neither Registration method used before to assimilate the target movieClip to the root(stage),plus im able to load external file through the frame(as a *.fla) provided by *.xml file compiled via swfmill; to get the whole thing done i simply -clip import- the mtasc compiled classes into the swfmill file, therefore:
compile all classes in a file,
then compile the xml with swfmill (keeping in mind to import the classes' swf file into it). It's done!
Monday, April 17, 2006
Sunday, April 16, 2006
Technorati Tags How to's
<a href="http://technorati.com/tag/%5Btagname%5D" rel="tag">[tagname]<a/> The [tagname] can be anything, but it should be descriptive. Please only use tags that are relevant to the post. You do not need to include the brackets, just the descriptive keyword for your post. Just make sure to include rel="tag".
You do not have to link to Technorati. You can link to any web page that ends in a tag - even your own site! For example, these tag links would also be included:
o
<a href="http://apple.com/ipod" rel="tag">iPod</a>o
<a href="http://en.wikipedia.org/wiki/Gravity" rel="tag">Gravity</a>o
<a href="http://flickr.com/photos/tags/chihuahua" rel="tag">Chihuahua</a>Once you have posted the tagged post, there are two ways to have your post included on a Technorati Tag page:
* If your blog software is configured to ping Technorati, congratulations! You're done!
* If your blog software does not support automatic pinging, or if you haven't set it up yet, or if you're not sure, you can manually ping us here. You might also want to configure your blog software to ping us automatically so you don't have to do that every time.
Your post should appear on the page in a few minutes (up to an hour during periods of intense activity). Thank you for helping to build the real-time web.
Saturday, April 15, 2006
(02:08-4/15/06) I FIND OUT WHY I CANNOT GET FLASHOUT WORKS
(02:08-4/15/06) I FIND OUT WHY I CANNOT GET FLASHOUT WORKS, CAUSE I NEED TO UPDATE JAVA FROM 1.4 TO 1.5 THEN browsing on flashout website I found a video tutorial about setting up the whole thing
(10:34-4/15/06) i checked the java Virtual Machine(VM) installed and the software development kit included(SDK) and all of them meet the requirements to make FlashOUt working out well but it's not going so. therefore i think of reinstall the whole eclipseIDE which has been installed without the needed care, considering the actual circumstances.
(16:12-4/14/06)Finally i compiled ActionScript code under linux
(16:12-4/14/06)Finally i compiled ActionScript code under linux without ever touch flashIDE i passed this command to mtasc where the "'main" flag seem to be cause of success this way:
mtasc test.as -swf /home/rah/workspace/FlashOS/build/test.swf -cp /usr/local/bin/MTasc/std -main note: "-swf" flag- test.swf is a compiled flash file of your choice used by MTASC to "frame" the class "-cp" flag- class path means path to standard core macromedia classes(choose std or std8 for flashMX or Flash8 respectively) "-main" flag- will automaticaly call static function main once all classes are registered.
I copy the test.as actionscript code as future reference and for its simplicity as example:
* @author rah:test.as */
test {
private var scopeRef:MovieClip;
test(scope:MovieClip){
scopeRef = scope;
scopeRef.createTextField("tf",0,100,100,800,600);
scopeRef.tf.text = "Hello world!!"; }
static function main(){
var test:test = new test(_root); }
(4/13/06)I HAVE ASDT 0.0.8 WORKING ON ECLIPSE 3.1.1
(13:15-4/13/06)working with a free open source flash IDE seems to need enough skills to take over the whole workflow the most important thing is a working flash compiler apart from anything else, therefore im gonna fix this right now
OSFLAsh in progress(4/12/06)
- Install an IDE where host all needed tools ECLIPSE
- Install an ActionScript Development tool(ASDT) for ECLIPSE get it from the eclipse IDE using the update panel
- Install the open source flash compiler(MTASC) and link at the ECLIPSE using the preference panel
Wednesday, April 12, 2006
TCP/IP tweaking
or editing /etc/ppp/option
Tuning TCP for Linux 2.4 and 2.6
The maximum buffer sizes for all sockets can be set with /proc variables:
/proc/sys/net/core/rmem_max - maximum receive window
/proc/sys/net/core/wmem_max - maximum send window
These determine the maximum acceptable values for SO_SNDBUF and SO_RCVBUF
(arguments to setsockopt() system call). The kernel sets the actual memory
limit to twice the requested value (effectively doubling rmem_max and
wmem_max) to provide for sufficient memory overhead.
The per connections memory space defaults are set with two 3 element arrays:
/proc/sys/net/ipv4/tcp_rmem - memory reserved for TCP rcv buffers
/proc/sys/net/ipv4/tcp_wmem - memory reserved for TCP snd buffers
These are arrays of three values: minimum, default and maximum that are used to
bound autotuning and balance memory usage while under global memory stress.
The following values would be reasonable for path with a 4MB BDP (You
must be root):
echo 2500000 /proc/sys/net/core/wmem_max
echo 2500000 /proc/sys/net/core/rmem_max
echo "4096 5000000 5000000" /proc/sys/net/ipv4/tcp_rmem
echo "4096 65536 5000000" /proc/sys/net/ipv4/tcp_wmem
All Linux 2.4 and 2.6 versions include sender side autotuning, so the actual
sending socket buffer (wmem value)
will be dynamically updated for each connection.
You can check to see if receiver side autotuning is present an enabled by
looking at the file:
/proc/sys/net/ipv4/tcp_moderate_rcvbuf
If it is present and enabled (value 1) the receiver socket buffer size (rmem value) will be
dynamically updated for each connection. If it is not present
you may want to get a newer kernel. Generally autotuning should not be
disabled unless there is a specific need, e.g. comparison studies of TCP
performance.
If you do not have autotuning (Linux 2.4 before 2.4.27 or 2.6 before 2.6.7) you may
want to set the default tcp_rmem value (the middle value) to a more
accurate estimate of the actual path BDP, to minimize possible interactions with
other applications.
Do not adjust tcp_mem unless you know exactly what
you are doing. This array determines how the system balances the total network
memory usage against other memory usage, such as disk buffers. It is
initialized at boot time to appropriate fractions of total system memory.