Entries:
Comments:
Discussions:

Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

cheong cheong Recent Achievement unlocked: Code Avenger Tier 4/6: You see dead program. A lot!
  • Hitting unexpected roadblock on x64

    jh71283 said:
    Cheong said:
    *snip*


    have you considered SQL Compact?
    No, That don't meet the requirement of "No need to install additional package on client PC".

    This is a government contract so we have little control over what we can do. The Excel/Access driver is already there in WinXP so these are the way to go. For others we have to watch the "pre-approved applications" checklist... To give you a grasp on how tight the controls are, NewSID from "Sysinternals Suite" is on the "allowed" list, while other applications like "Process Explorer" on the same package are not.

    Duncanma: We don't have direct access to the web server, and I don't think they'll allow running another application there. Think about the forms we'd have to fill and the time required to process those forms.

    Basically we need some offline data container that allow basic SQL select and join queries and come with WinXP by default.

  • Hitting unexpected roadblock on x64

    We're doing a project that one of the task is "generating password protected MS Access database on the server side, then allow the users to download and open it using the application we provided". (We know that MS Access is old and can case problem, but seems that's the only database engine available that don't require users to install anything additionally, and afterall the user only need read access to the data. And the "security requirement" doesn't allow any SQL connection directly to the users.)

    The problem is that, Microsoft only provide MS Access driver for 32-bit systems, so we have to change our application to 32-bit.

    But we have no control on the server, so we can't ask the admins to change it... even if we can, there's already loads of 64-bit components that our website uses so changing it to 32-bit would be be feasible. Now I have to redesign the subsystem to make it work.

    I've made a vote on Microsoft Connect, let's vote for it. Honestly this would be a "show stopper" if I had learnt the "x64 Jet Engine" is not there before. I wouldn't advise them to choose a 64-bit system. I'd comment that the man-hours wasted this way is no where near the word "productive".

  • Core numbers vs GHz Speed

    Yggdrasil said:
    evildictaitor said:
    *snip*
    I'm in the More Core camp as well. When running a server, it's pretty easy to parallelize even when you don't notice. If, as turrican mentions in an earlier post, he intends to run several different services on it (IIS, SQL, IRC, etc), than having more cores means less sharing of CPUs between processes. Context switches are a lot slower than the stated 18% GHZ difference.
    I'm agree with you on one thing - context switches are slow and in many times, the performance hit will be more than the performance it would gain. So if Intel is going to produce anything more than 16 core, I doubt if I'll buy it for desktop (as I seldom have more than 5 foreground process running).

    But if it's for server, do what evildictor suggest - get as many cores as you budget allows. Not only because modern server softwares are designed to take advantages of any cores you feed to it, it also decrease your chance of having poorly written program(s) to freeze your system.

    Also note that it's much easier to apply for budget to expand your RAMs than upgrade your CPUs.

  • WEFT has weird behaviour on Vista 32bit

    Dodo said:
    cheong said:
    *snip*
    Means it's quite useful... though, I want to embed the Segoe and Zegoe font family, maybe the Unicode fonts, too if I need (cause I want ClearType for them). Does that work?
    I can't install the tools here because it's a government machine, so you have to use font validator to check yourself.

    Or just create a sample page and add the fonts one-by-one to see which font(s) WEFT doesn't like...

  • WEFT has weird behaviour on Vista 32bit

    I think you need to use Font Validator to validate the font files you're going to use first.

    Certain font companies generates fonts that doesn't fully confirm to the format specification (note that even the two Chinese fonts bundled with Windows also don't meet those specs.) And it's known behaviour that WEFT will crash when such font file is encountered.

    There're also some company that sells webfonts (in EOT format) for exclusive use in websites. Others (such as Glyghgate) just selling font server as alternative (generating text containing GIFs with transparent background on the fly), so they'll work on non-IE browsers.

  • MSN China is about to close the Groups

    Received an email from communications_msn_cs_zhcn@Microsoft.windowslive.com that they'll close their service on 21st Feb 2009, and they encourage the existing group owners to move their groups to Multiply.

    Is that true? What a pity. Sad

  • TcpClient - Test for ​Disconnecte​d?

    phreaks said:
    cheong said:
    *snip*
    Nah, I am getting data all the time, lapse of perhaps 5-6 seconds max during slow periods, otherwise I am constantly receiveing data.

    I don't think it's benificial to keep opening / closing sockets in this scenario.

    No. I mean you should implement your sending function this way.

    1. Send the data using existing connection, catch your exception.
    2. If it is SocketException and the ErrorCode is OPERATION_ABORTED, ENETRESET or others indicating disconnect condition, reopen the client and attempt to resend it. Retry up to 3 times or any theshold you desire.

    I didn't write it anywhere for you to keep closing/opening sockets. Just do what MSDN documentation suggest you to do - send data to determine whether it's closed.

  • What’s wrong with Vista?

    BlackTiger said:
    cheong said:
    *snip*
    Thanks Gods! This world still has a chance!
    At least some people understand me. Smiley
     
    PS: "cheong"... Are you from Asia? Or just "eastern" nickname? Anyway, always thought people from "east" understand each other much better. Even if your nickname is just a nickname.

    Yes, I live in Hong Kong. Smiley

  • TcpClient - Test for ​Disconnecte​d?

    phreaks said:
    cheong said:
    *snip*
    That's all good, but the issue how can you test connectivity when you only have control of one end?

    Say, I am just opening a socket, and reading whatever gets pushed, indefinitely.

    How can I figure out if something hiccups?

    I could have a timer, that checks a timestamp of the last read, and if it's greater than some interval, assume the connection died and recycle the socket; but it seems kludgy.

    Even if you have control on the other end, if the connection is broken, do you have another way to signal the other end to do what you want?

    Even if you want the other end to send back packet to interval, that's just another form of "timeout"...

    Now consider those busy servers that receive thousands/millions of connection a per minute, can the network stand this additional workload of "bookkeeping"?

    IMHO, "Request on demend" is a more appropiate way of doing this...

  • UK government to monitor all ​communicati​ons

    evildictaitor said:
    RoyalSchrubber said:
    *snip*
    All the decent honest people are in government silly. That's how we know that they're doing what's best for us, and not just furthering their political agenda.

    I assume BlackTiger was being sarcastic. If not, then he does need his head looking to.

    @W3bbo:
    ** btw evildictator, it's OT, but are you good with Computer Vision, and say... the Condensation Algorithm?

    I've heard of it, and there's a guy who works in the office down the hall from me with a PhD in it, but no, not really. I try to stay away from the dodgy bits of statistical algorithms, machine learning and computer vision. They've always seemed a bit to hand-wavy for me. I mostly do compilers and theorem provers and stuff like that. Things for which the answer is either "right" or "wrong", rather than "right, with probability 0.3927".
    I heard from the news that terrorists tends to use non-electronic form of communication so the police can't easily sniff them with modern equipments (Yes, they can still capture/trace them, but they'll be more likely to leave a hint that the messages have been tailed). Therefore, IMO, these legistrations are most like placed there for the convienence of government officials for other purpose.