Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nu Er Ha Chi

@Nu Er Ha Chi
About
Posts
20
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Java Rant
    N Nu Er Ha Chi

    Yes, it does. Thanks.

    The Lounge question csharp java announcement

  • Java Rant
    N Nu Er Ha Chi

    I haven't used Java for a while. My company is moving from .NET to Java, so I downloaded the most recent version of J2SE (5.0). I hate it already. How do I build a string as time stamp based on the current time? The format I want is: yyyyMMddHHmmss (i.e. year, month, day, hour, minute, second) With .NET, I need only to do this: string sTimestamp = DateTime.Now.ToString("yyyyMMddHHmmss"); Here is what I have to do in Java: GregorianCalendar oCal = new GregorianCalendar(); int nYear = oCal.get(Calendar.YEAR); int nMonth = oCal.get(Calendar.MONTH); int nDay = oCal.get(Calendar.DAY_OF_MONTH); int nAMPM = oCal.get(Calendar.AM_PM); int nHour = nAMPM>0?(oCal.get(Calendar.HOUR)+12):oCal.get(Calendar.HOUR); int nMinute = oCal.get(Calendar.MINUTE); int nSecond = oCal.get(Calendar.SECOND); String sTimestamp = new Integer(nYear).toString()+ (nMonth<9?("0"+new Integer(nMonth+1).toString()):new Integer(nMonth+1).toString())+ (nDay<10?("0"+new Integer(nDay).toString()):new Integer(nDay).toString())+ (nHour<10?("0"+new Integer(nHour).toString()):new Integer(nHour).toString())+ (nMinute<10?("0"+new Integer(nMinute).toString()):new Integer(nMinute).toString())+ (nSecond<10?("0"+new Integer(nSecond).toString()):new Integer(nSecond).toString()); Note that the month value returned by oCal.get(Calendar.MONTH) is 0 based, unlike all the other fields. What the ****? :mad:

    The Lounge question csharp java announcement

  • JOTD: Instructions for Jumpers
    N Nu Er Ha Chi

    Josh Gray wrote: Having known someone who chose a similar demise I dont find that funny at all. I think the joke is not that funny, knowing someone who chose a similar demise should have nothing to do with it. If someone close to me fell down and became paralyzed for life, does that mean I cannot laugh at the next person who falls down in a funny way?

    The Lounge csharp database tools

  • Developed, Developing, Underdeveloped ... who decides?
    N Nu Er Ha Chi

    Pete Madden wrote: Finally...something substantial Just wondering, why Vatican City is considered more economically developed, more representative, and/or less corrupt than, say, Singapore, South Korea, and Hongkong? Does not make any sense.

    The Lounge question

  • 2 Megamembers!
    N Nu Er Ha Chi

    Among the 2 million CP accounts: 100,000 of them are for real members 200,000 of them just sign on to read the soapbox The rest are created by People to get the luck ids 1000000 and 2000000 :laugh:

    The Lounge c++ com architecture announcement

  • Ya know...
    N Nu Er Ha Chi

    John Simmons / outlaw programmer wrote: It's really pathetic when people vote on articles based on their politics instead of the technical merit of the article. There is always a possibility that the voters think your article lacks technical merit or it sucks more than your politics. ;P Disclaimer: I never read or voted on your articles.

    The Lounge

  • How to anger your customer base
    N Nu Er Ha Chi

    Due to an isolated anomaly in the engineering, development and pattern release process ... In other words, it was caused by problems in design (engineering), coding (development), and QA (release process). How can it still be called an "isolated anomaly"? :laugh:

    The Lounge com sales help tutorial question

  • Reorganization
    N Nu Er Ha Chi

    Thanks for the advice.

    The Lounge collaboration question

  • Reorganization
    N Nu Er Ha Chi

    I am in the IT division of a large company (over 20000 employees nation wide). This is the first time I have encountered a reorganization that affects me. The team I am currently in (about 15 people) will be moved under a new director. I am a senior developer with no management responsibility and I don't think they will let me go. Just wondering if there is anything I should do or watch out for during such changes? Thanks.

    The Lounge collaboration question

  • A question about road names for USians
    N Nu Er Ha Chi

    David Wulff wrote: Is it 10? 70? 180? It is probably all of the above, 10+70+180 = 260. ;)

    The Back Room question com

  • Anti-racial insult laws
    N Nu Er Ha Chi

    Daniel Turini wrote: he said Grafite was a "monkey, and you can take the ball and the banana and stick up in your …” Ok, I can understand it is an insult, but why is it considered a anti-racial insult? Is monkey used by some people in your country to refer to a certain race?

    The Lounge com game-dev help question

  • Frustrations...
    N Nu Er Ha Chi

    David Wulff wrote: Then send an e-mail to your boss afterwards appologising for including him on a private e-mail. That is so cool, why didn't I think of that? Thanks! :)

    The Lounge help testing debugging beta-testing

  • I Think I've Been Insulted...
    N Nu Er Ha Chi

    Ed K wrote: My wife pulls something similar often. Goes like this...She askes my opinion on something, I give it, she doesn't believe me, she asks someone else who tells them the same thing I told her so then she believes them. Not me. Your wife too? I thought my wife is the only one. :laugh:

    The Lounge css help question career learning

  • I also got a C puzzle
    N Nu Er Ha Chi

    #include <stdio.h> void main() {   if(printf("Hello, world")) {} }

    The Lounge question

  • I also got a C puzzle
    N Nu Er Ha Chi

    Here is an entire program without semi colon: void main() {} ;P

    The Lounge question

  • To VB or not to VB
    N Nu Er Ha Chi

    Ryan Roberts wrote: IN VB6, its possible but involves massive hacks such as using a filesystem object for IO. I never did or liked VB console applications myself but I have seen people doing it with no problem/hack at all. If someday C++ programmers are accused of being ignorant or closed minded, you could be partially responsible for it. BTW, I am not a VB programmer nor do I like VB more than C++.

    The Lounge question csharp c++

  • To VB or not to VB
    N Nu Er Ha Chi

    Franz Klein wrote: Can VB6 or VB .NET be used for creating console applications? Yes, here is a VB.NET version: Module Module1 Sub Main() System.Console.WriteLine("Hello, world") End Sub End Module If you want to convince others that VB is bad or evil, make sure your point is based on facts instead of anger.

    The Lounge question csharp c++

  • Borrowing code&#8230;
    N Nu Er Ha Chi

    Christian Graus wrote: I had an argument with my mother in law last night. She's advising me that when I go to Singapore in a few weeks, I should buy lots of DVD's and video games. If it is sold legally in the country, why is it stealing? It is taking advantages of uneven levels of living standards in different countries. People can buy things real cheap from your own country and know very well they are most likely made in a third world country by a under aged worker (which is illegal in your country). I bet most of the under aged workers will hate you if you decide not to "steal" from them.

    The Lounge csharp visual-studio com question discussion

  • Weapons and China
    N Nu Er Ha Chi

    K(arl) wrote: Selling weapons to a dictatorship is not a smart move to improve human rights. Damn you anti-Americans! :laugh:

    The Back Room com business tools question discussion

  • CP Ads - Missing point?
    N Nu Er Ha Chi

    Nishant S wrote: A few authors said that they were going to remove their articles from CP. I seriously doubt if any of those people would dare to do that. If they did so, then they'd lose 99% of their viewership As a CP employee, you are not supposed to talk like that. You probably already offended those authors. Doesn't CP offer "sensitivity training" to its employees? :-D

    The Lounge question debugging business sales help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups