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
F

Frank Liao

@Frank Liao
About
Posts
69
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Resume Length
    F Frank Liao

    What would be the appropriate length of a software engineer resume for a person with less than 5 years experience. I've heard from one source that 1 would be appropriate. Another source said that you can write more than one page because I would be better off putting all my skills and experience into two pages rather than condensing my skills and duties from my previous jobs. Anyone have an opinion?

    Work Issues css question career

  • When did DAT tape drives get obsolete?
    F Frank Liao

    The company I work for sells a lot of storage media, new and old. Anyway, since we have a drive warehouse, you could imagine how many types of backup we have at our disposal. :-D Anyway, the URL is Bason Computer[^] Frank http://www.frank-l.com

    The Lounge business question

  • MFC.
    F Frank Liao

    Jörgen Sigvardsson wrote: It's more like 66.6% If you round it to the nearest 100th, then it would be 66.67%;P Frank http://www.frankliao.com

    The Lounge csharp c++ question delphi linux

  • Parsing ASP pages with Regex object
    F Frank Liao

    Can anyone tell me what am I doing wrong with the code on the bottom. The coee on the bottom is code that I wrote into a function that tries to correct URLs with a constant variable so that the pages could be reused for other sites. Though, at some point, it seems to have a hard time detecting one section of code where <% starts on one line and %> ends on another. I can only wonder if I'm using the wrong pattern to detect it, but test cases where I filled a bunch of \r\n in the middle shows me it works. So, somehow, the pattern is not finding the VBScript section of the file correctly. If anyone can help, please answer. All suggestions and advice are welcomed. Regex reDB = new Regex("<%[^(%>)]*%>"); Match match = reDB.Match(FileContent); int initialText = 0; StringBuilder builder = new StringBuilder(); while (match.Success) { // Now, scan inside ASP code to see if http is present. string ActivePart = match.Value; // Now, in the active part, try to find http or https. We know that // it's under quotations at this point Regex reURL = new Regex("(http\\:\\/\\/)*(https\\:\\/\\/)*www.company.com"); MatchCollection URLs = reURL.Matches(ActivePart); for(int j = 0; j < URLs.Count; j++) { builder.Append(FileContent.Substring(initialText, match.Index - initialText)); if( URLs[j].Value.IndexOf("https") == 0) { builder.Append("\" + BASESECUREURL + \""); } else { builder.Append("\" + BASEURL + \""); } initialText = URLs[j].Index + URLs[j].Length; } match = match.NextMatch(); } builder.Append(FileContent.Substring(initialText)); return builder.ToString(); NOTE: if you see a wink smiley, replace it close paren character. I can't seem to turn that smiley off to make the code look right. Frank http://www.frankliao.com

    .NET (Core and Framework) regex database com json help

  • MSN Messenger log in problems
    F Frank Liao

    Did you installed DirectX 9 and have a DSL/Cable router? DirectX 9 updates your OS with new uPnP software and some routers have a hard time to cope with it. If that's the case, get the latest firmware for the router. Frank http://www.frankliao.com

    The Lounge help question

  • Calling all networking gurus
    F Frank Liao

    Andrew, You kinda left some important information out. First, are you connecting both computers to a hub/switch? If not, then you must be connecting from one ethernet card to the other. If that is so, you need a cross-over cable (which is pretty much a cable with (side 1) tx linked with (side 2) rx and vice versa). If you are connecting to a hub, then it should be fine with a regular ethernet cable. Second, make sure they are communicating on the same protocols. In fact, make sure that TCP/IP and Microsoft Networks are the only setting enabled. Well, that's all I can think of right now, but if you give more details, I might be able to give you more information. Frank http://www.frankliao.com

    The Lounge sysadmin help question workspace

  • This site rocks! Even better than CP ;-)
    F Frank Liao

    Hmm, it is Chris's other domain. I could only wonder why he has it?:confused: Here's the entry at register.com:

    Organization:
    Chris Maunder
    Chris Maunder
    Registrar Name....: Register.com
    Registrar Whois...: whois.register.com
    Registrar Homepage: http://www.register.com

    Domain Name: UNIXPROJECT.COM

      Created on..............: Sun, Apr 28, 2002
      Expires on..............: Mon, Apr 28, 2003
      Record last updated on..: Tue, May 07, 2002
    

    Administrative Contact:
    Chris Maunder
    Chris Maunder
    Technical Contact, Zone Contact:
    Register.Com
    Domain Registrar
    575 8th Avenue - 11th Floor
    New York, NY 10018
    US
    Phone: 902-749-2701
    Fax..: 902-749-5429
    Email: domain-registrar@register.com

    Domain servers in listed order:

    DNS13.REGISTER.COM 216.21.234.77
    DNS14.REGISTER.COM 209.67.50.209

    Frank http://www.frankliao.com

    The Lounge csharp html com

  • linux download
    F Frank Liao

    Did you download it directly from Red Hat? Their serves are slow. You could go to other sites that host those files. My suggestion is to try to use the mirrors that are available at: http://www.linuxiso.org[^] or http://www.filemirrors.com[^] (if you know the exact filename) Of course, getting a program like GetRight might help because you don't want to have a broken download that's hard to restart. X| Edit: broken link. Forgot not to highlight other text. :) Frank http://www.frankliao.com

    The Lounge linux question learning

  • Bill Gates Welcomed with Huge Condom
    F Frank Liao

    http://www.reuters.com/news_article.jhtml?type=search&StoryID=1737738#[^]:rolleyes: Need I say more? Frank http://www.frankliao.com

    The Back Room com question announcement

  • What's the equivalent to #include
    F Frank Liao

    What's the equivalent to using #include files in ASP.NET?

    The reason I want to use include files is because I want to maintain a template on all .aspx pages so that if my boss wants to change the look of the company page, I wouldn't need to change every single page. I would have files like _top.inc and _bottom.inc. Right now, my guess is that you can only use user controls, but I don't this method would allow me to enclose the main page in a and tag.:~ Frank http://www.frankliao.com

    ASP.NET csharp asp-net winforms com question

  • Who has control of the internet bandwidth?
    F Frank Liao

    Todd Smith wrote: 53000bits/8bytes = 6625bytes/sec or 6.6kb/sec MAX From your calculation, it should be 6625 bits to every byte.:omg: Your math needs some work: ;P 1 baud = 1 bit/sec 1 byte = 8 bits (53000 bits/sec) * (1 byte / 8 bits) = 6625 bytes/sec :-D Frank http://www.frankliao.com

    The Lounge question performance tutorial

  • Who has control of the internet bandwidth?
    F Frank Liao

    Peter Mayhew wrote: guess the point I was making was. If I download a file, I am lucky to get a download speed of 5kb/s. One would first think that a 56K modem would allow you to download at 56k. Obviously this isn't the case, due to the phone lines etc as already discussed. Um, I think you have a few mistakes and misnomers in your logic: 1) Um, if I'm not mistaken, a 56K modem transfers a maximum of 56,000 bits/second. Therefore, the maximum speed you should experience is 7KB/s. In reality, the speed goes down a little more due to TCP/IP handshaking (if you measure from IE alone rather than statistical data from the modem). Your phone line can really handle 56,000bps, but not 56KB/sec.:) 2) Also, if I remember from college, TCP/IP tends to throttle and then pull back when it hits a peak. So, in a way, your transfer speed is never constant. Though, browsers would just average over time and not give you real time speed. 3) If you turned on compression in your modem, the data is really just compressed and still sending at the normal transfer rate. So, it's possible that initial data (like packet headers) can be compressed and therefore give you a high transfer speed. Frank http://www.frankliao.com

    The Lounge question performance tutorial

  • Google knows the truth
    F Frank Liao

    If I remember correctly, Google is a server-farm of Red Hat Linux servers. You can probably guess what direction I'm leaning towards.:rolleyes: Frank http://www.frankliao.com

    The Lounge com

  • news radio
    F Frank Liao

    Bogdan Rechi wrote: Do you know any good news radio station on the Internet? KCRW's website is a good one. It has a mix of music and news (NPR). Though, you have to use RealPlayer. :~ http://www.kcrw.com[^] Frank Bason Computer, Inc.

    The Back Room com question announcement

  • YEEEEAAAARRRRGGGHHH!!!
    F Frank Liao

    Domenic [Geekn] wrote: I get home from work today, only to turn on my monitor and find out that... EVERYTHING'S TAKEN ON A SICKLY YELLOW SHADE!!!!!! Try wiggling the cable in back of your monitor. I had this type of problem when my cable to the computer was put in a wierd bend. Frank Bason Computer, Inc.

    The Lounge com help

  • Chris M. Could you...
    F Frank Liao

    Chris Maunder wrote: Could you use the 'Get Link' link at the bottom of the message to get the link? The one you posted is a temp link that is now out of date. Well, I'll save someone the trouble and post the link: http://www.codeproject.com/lounge.asp?msg=263024#xx263024xx[^] Frank Bason Computer, Inc.

    The Lounge question

  • News.com story
    F Frank Liao

    Heh, I can't believe that News.com decide to publish this: Linux users march on city hall[^] Here's the thing that cracks me up: A small but enthusiastic crowd of Linux lovers hit the streets of San Francisco on Thursday, hoping to trumpet the virtues of open source to lawmakers and voters. ... Turnout was on the low end of the 20 to 100 people Tiemann expected. Some programmers complained of the early 10:30 a.m. start time. Well, let's see. If it's the low end, I bet that only 20 - 30 people showed up. And, is 10:30am really that early? :suss: If I didn't know any better, I don't think a lot of programmers support the open-source movement. I know a lot of admins do, but they are busy at their jobs maintaining their networks. :laugh: "It's obvious only a tiny bit of people from (LinuxWorld) turned out, and that presents a problem," he said. "Either they don't understand the issues or they have a business partnership that doesn't allow them to talk about it." I guess CTO of Red Hat can only rationalize. Let's see, corrrect me if I'm wrong, but if we are working on GPL and are planning some business partnership, we are allowed to talk and not hide code. Therefore, I could only guess that he didn't want to admit failure and just blame it on something (like they do with Microsoft).;P Frank Bason Computer, Inc.

    The Lounge html com linux business help

  • Only allowed to buy open-source?
    F Frank Liao

    Open source's new weapon: The law?[^] Open-source software advocates will unfurl a legislative proposal next week to prohibit the state of California from buying software from Microsoft or any other company that doesn't open its source code and licensing policies. Named the "Digital Software Security Act," the proposal essentially would make California the "Live Free or Die" state when it comes to software. If enacted as written, state agencies would be able to buy software only from companies that do not place restrictions on use or access to source code. The agencies would also be given the freedom to "make and distribute copies of the software." :wtf: Fine, if isn't bad enough that tech jobs are hard to find, but why start killing software companies too? Isn't one of government's tool for improving an economy is to spend on it?:confused: These legislatures will probably have to answer to the employees of Symantec, Oracle, Siebel, etc. soon. Frank Bason Computer, Inc.

    The Lounge html oracle com security question

  • What's wrong with IE6??
    F Frank Liao

    I've seen it too. You are not imagining things. Frank Frank@Frank-L.com Bason Computer, Inc.

    The Lounge question

  • Platform sdk?
    F Frank Liao

    Jay Beckert wrote: When I develop for win98 on up I would like to develop on the least common denominator!! Duh! Makes it simple and easy that way. If you are really developing for Windows 98, you should have a Win98 test system, not a Win98 development platform. If you haven't noticed, Win98 is a consumer platform, not a professional platform like NT-based OS. Making a compiler on a system feature-limited OS is hard enough. If you read through books like "Programming Applications for Windows", you would understand the limitations on the OS scheme of things when referring to Win9x and NT. Jay Beckert wrote: A way for MS to force developers and users to upgrade to the newest and latest OS to add more cash into Gates pockets? Man, if I see this quote, I know that you might not have any intention to listen what I have to say as logical as it may sound.:suss: Frank Frank@Frank-L.com Bason Computer, Inc.

    The Lounge question announcement
  • Login

  • Don't have an account? Register

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