Timex4u's Posts
Nairaland Forum › Timex4u's Profile › Timex4u's Posts
1 2 (of 2 pages)
Nice 1 bro... Found ur article to be quite interesting... M actually d youngest software developer in a company m sure is going places... We deal wif Edu. Soft. ... I'v gat issues learning various technologies n mixing d techy lyf wif d norm 1... Thanks for d talks&tips 1nce more. |
Shots from Day1
|
Well said, Posted that to show you there's someone who has a clue of what u want, and also for the codes to serve as a guide 4 u bin 4rm Java's doc. site. You could pick the codes as a clue since you know quite well bout d assignment... Can give you what you want exactly, without a dime, but nt urgently... |
As a Developer, One of the best thing is to be sure of the power of whatever technology you use. I’v come across alot but this seem to be the ones i’m getting my hands dirty on, Still Learning though, I’ve got a big view of how they all work and when/where they’r need… Server-Side/Backend : Java EE (JPA, EJB), Django Framework Client-Side/User Interface : Servlets, GWT/JSF, Angular JS or other Javascript Frameworks Databases: MySQL, SQLite, NoSQL (MongoDB) Linux System Administration : Python and Shell Commands I am TimTech4u ![]()
|
//Lilian... Check this out. package concurrency; import java.util.List; import java.util.Random; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JTextField; import javax.swing.SwingUtilities; import javax.swing.border.Border; import javax.swing.BorderFactory; import javax.swing.SwingWorker; public class Flipper extends JFrame implements ActionListener { private final GridBagConstraints constraints; private final JTextField headsText, totalText, devText; private final Border border = BorderFactory.createLoweredBevelBorder(); private final JButton startButton, stopButton; private FlipTask flipTask; private JTextField makeText() { JTextField t = new JTextField(20); t.setEditable(false); t.setHorizontalAlignment(JTextField.RIGHT); t.setBorder(border); getContentPane().add(t, constraints); return t; } private JButton makeButton(String caption) { JButton b = new JButton(caption); b.setActionCommand(caption); b.addActionListener(this); getContentPane().add(b, constraints); return b; } public Flipper() { super("Flipper" ) ; setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Make text boxes getContentPane().setLayout(new GridBagLayout()); constraints = new GridBagConstraints(); constraints.insets = new Insets(3, 10, 3, 10); headsText = makeText(); totalText = makeText(); devText = makeText(); //Make buttons startButton = makeButton("Start" ) ; stopButton = makeButton("Stop" ) ; stopButton.setEnabled(false ) ; //Display the window. pack(); setVisible(true); } private static class FlipPair { private final long heads, total; FlipPair(long heads, long total) { this.heads = heads; this.total = total; } } private class FlipTask extends SwingWorker<Void, FlipPair> { @Override protected Void doInBackground() { long heads = 0; long total = 0; Random random = new Random(); while (!isCancelled()) { total++; if (random.nextBoolean()) { heads++; } publish(new FlipPair(heads, total)); } return null; } @Override protected void process(List<FlipPair> pairs) { FlipPair pair = pairs.get(pairs.size() - 1); headsText.setText(String.format("%d", pair.heads)); totalText.setText(String.format("%d", pair.total)); devText.setText(String.format("%.10g", ((double) pair.heads)/((double) pair.total) - 0.5)); } } public void actionPerformed(ActionEvent e) { if ("Start" == e.getActionCommand()) { startButton.setEnabled(false); stopButton.setEnabled(true); (flipTask = new FlipTask()).execute(); } else if ("Stop" == e.getActionCommand()) { startButton.setEnabled(true); stopButton.setEnabled(false); flipTask.cancel(true); flipTask = null; } } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new Flipper(); } }); } } |
... |
All said in d subject title... Add me up At 08136457976 Its ganna be a hands-on Whatsapp group.
|
Kid Coders is an initiative of Flexisaf EduSoft Ltd., A Tech driven company with lots of problem solving personnels, With focus on improving Educational Systems in the country and abroad. As one of its products, Flexisaf Edusoft just like DIGITEST, AUDAX, IDEANG, Co Creation Hub, W.TEC girls technology camp,... has launched a summer program named Kid Coders where kids would be taught the basics on computer programming / coding and would also improve their technological and social skills. Unlike other learning environment where kids find themselves been taught but don't understand, we aim to solve this problem by making the Summer program a lot better. Kids would interact openly with other participants, share ideas, work on projects and guide each other through a lot in the Program. We aim at bringing out the very best from our participants with the use of available platforms and provided resources such as Code.org's Hour of Code, MIT's Scratch, Python programming Language for Kids, App Inventor and a whole bunch of others. Fun, Games and Refreshments wont be excluded because we know its roles in a child's life. Giving Kids the power to apply learnt skills, ideas and creativity is something we'll always encourage and fully support, its high time our kids start learning how to build technology instead of continuous consumption of it. The future is here! Imagine a future where our kids are more focused on how to build games instead waiting for the release of the next game title. Imagine a future Where instead of worrying about how to get the latest Iphone they instead roll up sleeves building their next generation mobile phone. Imagine a future in Nigeria where Kids become Innovators, Coders... [size=20pt] www.kidcoders.ng[/size] ![]()
|
FOR MORE VISIT: FUELGIST..COM
|
@KTech, we offer varieties of computing & internet solutions. E-Services, E-Jobs and E-Tutorials are what we focus on. A trial will convince you. We deliver your service before receiving payments. 1-dot-k-tech-1.appspot.com |
@KTech, we offer varieties of computing & internet solutions. E-Services, E-Jobs and E-Tutorials are what we focus on. A trial will convince you. We deliver your service before receiving payments. 1-dot-k-tech-1.appspot.com
|
1 2 (of 2 pages)

