CrazyEngineers Forum - Computer Science & IT Engineering |
- Developing An Ultra Low Cost Computer For Students
- Doubt in java programming....?
- Can we scan multi-character word using scanf?
- How to create a software licence agreement?
- Google Search AROUND(n) Operator
- Collect the balls in the bucket using java programming.
| Developing An Ultra Low Cost Computer For Students Posted: 09 Dec 2010 12:17 AM PST In my opinion, most of the operating systems available in the market (the Open Sourced ones are included) offer MUCH MORE than what a student needs. Considering the needs of a typical student which may include but not limited to - 1. Internet Access (Basic Browser) 2. At least 5-6" screen 3. USB Port 4. Inbuilt speaker or headphone jack 5. A browser based OS (like ChromeOS) (add more if you want) That's it. What would be the cost of such a computer? Of course it would be similar to a tablet. I think touchscreens are staying for another 5 years at least. |
| Doubt in java programming....? Posted: 08 Dec 2010 06:17 PM PST check this codes guy's... Quote: import java.io.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; /*<Applet code="p" height=400 width=400></applet>*/ public class p extends JApplet implements ActionListener { JLabel l1,l2; JButton b; JTextField f1,f2; String str; public void init() { l1=new JLabel("username"); l2=new JLabel("password"); b=new JButton("submit"); f1=new JTextField(20); f2=new JTextField(20); FlowLayout f=new FlowLayout(100,20,25); Container c=getContentPane(); c.setLayout(f); b.addActionListener(this); c.add(l1); c.add(f1); c.add(l2); c.add(f2); c.add(b); } public void actionPerformed(ActionEvent e) { Object o=e.getSource(); if(o==b) { repaint(); str=f1.getText()+" "+f2.getText(); RandomAccessFile r=null; try { //String dir="mohit"; r=new RandomAccessFile("mo.txt","rw"); r.writeBytes(str); r.close(); } catch(Exception ee) { } //r.close(); } } public void paint(Graphics g) { g.drawString(str,100,200); } } Can any one help me to find the mistakes. |
| Can we scan multi-character word using scanf? Posted: 08 Dec 2010 12:53 PM PST I dont wanna go in strings |
| How to create a software licence agreement? Posted: 08 Dec 2010 04:16 AM PST I am working on a small software project which is almost complete now. To deploy the application we need a software licence agreement. I have a few queries as follows:
Our software is closed source hence I cannot use any of the GNU's licences. |
| Google Search AROUND(n) Operator Posted: 08 Dec 2010 04:06 AM PST Not many know Google's AROUND(n) operator because it's mostly undocumented. This operator allows you search for documents where the distance between the search terms is around 'n'. Note that this operator only works when you use it in ALL CAPS. Try the following search - Try this search (click):- It will show you results with keywords containing keywords 'crazy' and 'engineers' with about 2 elements in between. This is especially useful when you're searching for quotes, or saying et al. According to the Mr. Daniel M. Russell, creator of AROUND(n) operator has existed since 5-6 years; but no one really bothered about it. |
| Collect the balls in the bucket using java programming. Posted: 08 Dec 2010 01:05 AM PST hello friends, here is some codes in java check it out. Quote: import java.applet.*; import java.awt.*; import java.awt.event.*; /*<Applet code="p" height=400 width=400></applet>*/ public class p extends Applet implements MouseMotionListener,Runnable { int x,y,k,i,p,px,s=0; Image img,img1,img2; Thread t; String str; public void init() { addMouseMotionListener(this); t=new Thread(this); t.start(); img=getImage(getDocumentBase(),"dem.gif" ); img1=getImage(getDocumentBase(),"lig.gif" ;); img2=getImage(getDocumentBase(),"lim.gif" ;); } public void run() { for(i=0;i<=4000;i++) { try { repaint(); t.sleep(50); k=k+5; if(k==400) k=0; } catch(Exception e) { System.out.println("exception "); } } } public void mouseDragged(MouseEvent e) {} public void mouseMoved(MouseEvent e) { repaint(); x=e.getX(); y=e.getY(); if(y>=380) { p=y; } } public void paint(Graphics g) { g.drawImage(img,x,p,20,20,this); g.drawImage(img1,20,k,20,20,this); if(p<=k) { if(x>=0 && x<=22) { g.drawString("AAHA MIL GYA",x,p); s++; g.drawImage(img2,x,p,20,20,this); } } str="total"+Integer.toString(s); g.drawString(str,350,350); } } Enjoy it. |
| You are subscribed to email updates from CrazyEngineers Forum - Computer Science & IT Engineering To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |
No comments:
Post a Comment