www.flickr.com

Codes for Trapezoidal Rule in C and C++

Tuesday, October 15, 2013 Posted by Glenn 0 comments

 #include<stdio.h>  
 #include<conio.h>  
 #include<math.h>  
 float fn(float x)  
 {  
 sqrt(x);  
 return sqrt(x);  
 }  
 main()  
 {  
 int i,n;  
 float a,b,s=0,y=0,h;  
 printf("Enter the no of interval =");  
 scanf("%d",&n);  
 printf("Enter the lower limit=");  
 scanf("%f",&a);  
 printf("Enter the upper limit=");  
 scanf("%f",&b);  
 h=(b-a)/n;  
 for(i=1;i<=n-1;i++)  
 {  
 s=s+fn(a+i*h);  
 }  
 y=(fn(a)+fn(b)+2*s)*h/2;  
 printf("the value of y is=%f",y);  
 getch();  
 }  

-this source codes belongs to: the author of wbutassignmenthelp :)
-this source codes is ready for copy-paste to any IDE/compilers for C/C++. The quotations from the original website source confuse the compilers, I've already change them to the original quotation :)
additional tags: trapezoidal rule for C, trapezoidal rule for Cplusplus, C++, codes for Trapezoidal, trapezoidal source codes

Sharing is so Easy:
StumpleUpon DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google Twitter FaceBook

How to compile java codes to .exe

Sunday, September 29, 2013 Posted by Glenn 0 comments

article by: Glenn Posadas
There are basically many ways to convert your Java source file (.java) or Java class file(.class) into an executable program (means double clicking then run or click+return) for windows.

By the way, I use exe4j and jar2exe ;)

One of these ways is by using a software that will convert your source codes into .exe file.
Example of converters you can use:

1. JSmooth
JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.

Download: CLICK HERE (sourceforge)


2. Launch4j
Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, and a Java download page in case the appropriate JRE cannot be found.

Download: CLICK HERE (sourceforge)

3. JexePack
JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.

4. exe4j
exe4j is a Java exe maker that helps you integrate your Java applications into the Windows operating environment, whether they are service, GUI or command line applications.

Download: CLICK HERE

5. jartoExe1.8
Jar2Exe is a tool to convert jar files into exe files.

Download: CLICK HERE

Example:
Let us convert this java code to .exe program



OUTPUT (in exe):



Please note that you have to locate your JAR file generated by your IDE/JAVA compiler.
In netbeans, right click the project > properties > Packaging > check the "compress jar file".
Jar file will be under your Dist folder.

(3PM, no lunch yet :( damn Java, I almost forgot how to wrap jar to .exe )

additional tags: If I have a Java source file (.java) or class file (.class). How can I convert it to an .exe file?, compile to exe java, java to exe, java to executable for windows, java to program for windows, conver all java codes to .exe form

Sharing is so Easy:
StumpleUpon DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google Twitter FaceBook

Labels: ,

A true sad story of one family REPOST

Wednesday, September 18, 2013 Posted by Glenn 1 comments

The lady was once my wife. The picture shows the end our my story but I want to let the world know the beginning of it. We were happily married with one sweet little girl. Like other happy families, we also had dreams.

I supported her dream to go abroad, from Taiwan(came home, with an unfinished contract), to HK to Canada. I loved her and trusted her so much that we ended up using even my inheritance for her to realize her dream. 

Our first time to be apart was difficult. But thanks to technology, with it, we were apart and yet so near. To make the story short, the technology that once making us feel together was the one that parted our ways.  The frequent chats and texts and phone calls became less and less as time went by. 

I tried my best to open the line but it was ignored. In the midst of everything, she even falsely accused me of doing something only to find out that she was the one who was and is in the dark.The picture says it all. Our once happy and intact family is now shattered by her own selfish desire and our dream to be reunited as one family is now gone with her own dreams. Who do you think suffers the most? No one but our innocent sweet Julia.

By the way, there are lots of good things about her too. One thing I will be forever thankful for is that she led me to the CREATOR. With that I can lead our daughter to the right path. To all our friends and relatives, I am sorry for putting this in public. I just don't want to explain to all what had happened and be bombarded with lots of questions. With this, you will know my true story and now it's up to you to know hers.

Please like and share this so that the people, most especially OFW, who have plans to do the same will have something to think about. Always remember that your family back home trusts you, misses you every moment, and wishes for a togetherness. Don't do what my once was a wife had done!

--I've found this letter on facebook. I thought it would help some people, specifically my readers, to realize that betraying isn't such a fcking good thing. People, please take note this: We should not lose our long time happiness just to enjoy the short time happiness.

Sharing is so Easy:
StumpleUpon DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google Twitter FaceBook

Labels: , ,