Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  C program to shutdown or turn off computer

C Program to shutdown your computer :- This program turn off i.e shutdown your computer system. Firstly it will asks you to shutdown your computer if you press 'y' the your computer will shutdown in 30 seconds, system function of "stdlib.h" is used to run an executable file shutdown.exe which is present in C:\WINDOWS\system32 in windows-xp. You can use various options while executing shutdown.exe for example -s option shutdown the computer after 30 seconds, if you wish to shutdown immediately then you can write "shutdown -s -t 0" as an argument to system function. If you wish to restart your c...

11,225 0       CODE WINDOWS C SHUTDOWN COMMAND


  What? You tattooed code on your arm?

Since I'm seeing so many hits for this page, and since most of you are developers, I thought it might be worth trying to do a little blatant recruiting If you are an exceptional, passionate front end developer (HTML, CSS, JS) and you want to work in an awesome SCRUM team at a huge multinational company in the South of the Netherlands, please drop me a line (DM my Twitter account).There are also opportunities for developers (front and/or back end) and UNIX gurus at another brilliant company (Competa) in the Randstad. Basically, if you love tech and you're looking for work in Holland, ...

5,969 0       PROGRAMMER TATTOO ARM CODE


  Penrose Tiling in Obfuscated Python

Here’s a Python script which renders some Penrose tiling. Yes, this is valid Python code:_ =\ """if! 1:"e,V=100 0,(0j-1)**-.2; v,S=.5/ V.real, [(0,0,4 *e,4*e* V)];w=1 -v"def! E(T,A, B,C):P ,Q,R=B*w+ A*v,B*w+C *v,A*w+B*v;retur n[(1,Q,C,A),(1,P ,Q,B),(0,Q,P,A)]*T+[(0,C ,R,B),(1,R,C,A...

20,091 0       CODE STYLE WRITING PYTHON DISORDER


  How GitHub Works: Hours are Bullshit

Frederick Winslow Taylor wrote the seminal analysis of management andefficiency in 1911 with The Principles of Scientific Management. Hetook the first scientific approach towards maximizing efficiency inmanufacturing jobs. Time is money. Faster is better. More hours are better.Hours are bullshitHours are great ways to determine productivity in many industries, but notours. Working in a startup is a much different experience than working in afactory. You can’t throw more time at a problem and expect it to get solved.Code is a creative endeavor. You need to be in the right mindset to crea...

3,216 0       CODE STYLE WORK TIME EFFICIENCY ENFORCEM


  Modal dialog in Java example code

In Java, we can create modal dialog so that the main JFrame cannot be operated on until the modal dialog is closed. To achieve this, we need to use one class in Java--JDialog. This class can be used to create an modal dialog.Example code :import javax.swing.JDialog;import javax.swing.JLabel;import javax.swing.JPanel;public class Dialog extends JDialog{ public Dialog(){ super(); JPanel panel=new JPanel(); panel.add(new JLabel("Hello dialog")); this.getContentPane().add(panel); } public Dialog(MainFrame mf,String title,boolean modal){ super(mf,title...

40,121 2       JAVA CODE DEMO MODAL JFRAME JDIALOG


  Clean Code Versus Great Code

I've had some interesting discussions with other developers about writing code recently. I often have the impression that some developers put too much emphasis on clean code. Don't get me wrong, i strive for clean code as well, and have written about its importance quite a lot in the past couple of years. But when i'm coding, clean code is my secondary goal and it could never take the place of my primary goal: making it work. And preferably, i want to make it work great. A lot of people love to talk the talk when it comes to writing clean code. They'll stress their dedication to it, in some ca...

3,694 0       CODE CLEAN EXCELLENT HIGH QUALITY COMPAR


  A return to good code

Stop doing this:public boolean foo() { if (true) {   return true;   }  else {   return false;   }}It always amazes me when I dig into an open source project, and I see code written by supposed experts, and reviewed by seasoned professionals, and nobody slaps the wrists of the developer who shoves return statements right in the middle of a method.Tell me, how hard is it to do this:public boolean foo() {   boolean flag = true;   if (true) {    flag=true; }   else {   flag=...

2,322 0       JAVA CODE METHOD RETURN CONDITION