Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Friday, February 4, 2011

Creating a JavaDB with Netbeans

I am starting to put my hands on Java. Its quite amazing to see how Java connects to databases. Almost the same for all cases(tried Oracle,JavaDB). Just puting the code here to get in future.


Lets first start with creating and connecting to a JavaDB using netbeans.


db2.png


first go to the services tab.


Expand the Database entry.


right click the JavaDB and click start server.


Right click again the JavaDB to create a new Database. The database create wizard shall appear.


db4.png


Just type in the fields as indicated to continue this tutorial. the password is also "app".


connect to the newly created database. (right click and connect).


db7.png


Expand the APP. and right click "Tables" to create a table. The table creator wizard appears.


db8.png


Create your table using this wizard. When done Expand the Tables section to view your newly created table. You can add data to it if you want.

Sunday, January 31, 2010

Google এবার নতুন programming language নিয়ে !

ইতি মধ্যেই হয়তো বুঝতে পেরেছেন যে গুগল কখনো স্থির থাকেনা ! প্রতি
মুহুর্তেই তাদের নতুন কিছু করা চাই । অন্যের দেখানো পথে চলার চেয়ে নিত্য
নতুন পথ বের করাই যেন Google এর আনন্দ। আপনি যতক্ষন চুপ বসে চিন্তা
করেছেন Google সামনে কি আনতে পারে ততক্ষনে Google এমন এক কাজ করে বসেছে
যা হয়তো আপনি ভাভতেও পারেননি। হ্যা , গুগল এর এবার যাত্রা নতুন
Programming Language নিয়ে। এর নাম দিয়েছে GO। অতি সম্প্রতি Google তাদের
Go কে প্রকাশ করলো।
যতদুর বোঝা যায় বর্তমানের কোন Language ই Google কে পুর্ন সন্তুষ্ট
করতে পারেনি। একারনেই হযতো Google বিরক্ত হয়েই Go এর জন্ম দিল।
নতুন Language কেন?
Google এর ভাষায় । তথাকথিত Language গুলো তাদের চাহিদার যা পুরন করা
সম্ভব তা করে ফেলেছে। বাকি অসম্ভব টুকু তাদের দেয়া সম্ভব নয়। এখনকার
প্রচলিত Language গুলো আপডেট করা হলেও তা মুলত নতুন Library যোগ করার
মধ্যেই সীমাবদ্ধ তাকে। তাদের কাঠামতে কোন পরিবর্তন আনা হয়না। বর্তমান
Computer Processor গুলো প্রচন্ডভাবে শক্তিশালী কিন্তু Software
Development অতাটা দ্রুত শক্তিশালী হছ্ছেনা । তাই Go তে Google এর চেয়ে
বেশী কিছু দিতে চায়।
Go হল …
… simple
একটি Hello World উদাহরন -
package main
import "fmt"
func main() {
fmt.Printf("Hello World\n")
}
… fast
Go কম্পাইলার সেকেন্ডের ক্ষুদ্র ভাগের মধ্যে কম্পাইল করতে পারে। তবুও
Compile করা প্রোগ্রাম রান করতে সময় সাধারন C বা C++ এর প্রোগ্রাম এর
চেয়ে তারাতারি হয়।
… safe
Go টাইপ এবং মেমরী বান্ধব। এতে Pointer থাকলেও Pointer Arithmetic
ব্যবহার অন্যরকম। রানডম অ্যকসেস এর জন্য slice ব্যবহার হয়।
… concurrent
Go তে সিস্টেম বা সার্ভার কে এক গুছ্ছ যুক্ত এবং হাল্কা Process এর
সমস্টি ধরে Program লিখা যায়, এদের goroutine বলা হয়। Language টির
সাপোর্ট অনুযাই হাজার হাজার goroutine একসাথে চলতে পারে এবং stack
overflow ছারাই।
… fun
Go has fast builds, clean syntax, garbage collection, methods for any
type, and run-time reflection. It feels like a dynamic language but
has the speed and safety of a static language. It's a joy to use.
… open source

Friday, February 6, 2009

Brick Breaker

A single player game for beginners..
(Not for beginner gamer,
For beginner programmers !!!)

this link will lead to the download page
http://depositfiles.com/en/files/hgtmv3l58

I started developing the game when i completed Level1 Term2 (structured programming)
Due to excessive pressure of private varsity semester system the work took 4 months.

(I was really able to work on this for two months or less)

Final release on May08 could have some bugs for portability.

Please forgive them . . and help me working in my next Windows platform game by suggesting solutions to the bugs or by simply reporting problems.

Those who are interested and able to do such work in team can contact.

Thanks

SHABAB HAIDER SIDDIQUE
073-20-108
Department CS
Daffodil International University

Saturday, January 31, 2009

Structured Programming:

Course credits: 4(with lab)
Course Instructor: Ahmed Shamsul Arefin (initially ASA)[ fall 08 ].
Text Book: Programming in C by S Hossain, MQE Maula, MM Jahangir
Enlarged by MM Jahangir, AS Arefin
Reference: Shobar Jonno C programming language
Kamruzzaman Niton
Gyan Kosh Prokashoni

Course will cover the basics of structured programming language (C language) and core concepts of programming. The most important course of the first year.

I’ll suggest you to study at least this subject carefully. We have a very little time so try to utilize the full 4 months.

Try to develop your analyzing skills (lots of way to do so),
Implement practically what you know,
Discuss all problems with your teachers or seniors when you have time (not before exam!!)

For students weak in English Try out “Shobar Jonno C Programming Language” its written in a very simple language and most of all its written in Bangla. It will be very helpful in understanding the basic concepts. You can collect some part of the Bangla book from me in PDF format.

All the best

- - Important Notice - -





Programming google group is up. If you want to join request personally to any of the managers!




Education Blogs - BlogCatalog Blog Directory

Message from DIUCSP




This blog is open for all students of CS, CSE, CIS of Daffodil International University.


Join This blog to stay on touch with other students. If you have a gmail account then just sign in as the g-mail user and become a follower of the blog. You can then submit comments on our posts.

You will find information on different subjects of our course, discuss problems and have solution. Try to maintain the subjectwise discussion for early response. And remember this blog is not only for the genius or more than average CS, CSE, CIS students with great computer skills so dont feel shy in submitting your simple daily life problems (even the silliest ones) because I believe if you feel shy in learning now then you will feel shy all your life for not learning it at all.


Please be conscious about sharing your personal Data, DaffodilCSE blog moderator is not responsible for any risk you take, If you feel safe post comment as your own will, If you do not want to share your mail, comment anonymously. Thanks




They are with us

BlogCatalog

Earn from a cool looking gadget..! It works with Google adsense and any other advertising programs!
Grab now !