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
J

Josh Martin

@Josh Martin
About
Posts
59
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how can I get data from database and display in textbox
    J Josh Martin

    When I am working with a datareader, I always try and make sure that I actually received a datareader back from the ExecuteReader() call (ie "if(myReader != null)". I also check the HasRows property on the datareader object to verify that I have results to loop through. The way this is coded now, the while loop will read each record from the datareader. If data from the first row is all that is needed, calling myReader.Read() by itself will just read the first row (instead of using the while loop).

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    C# database help csharp sql-server sysadmin

  • Readig strings from a text file ?
    J Josh Martin

    Not sure if I understand correctly, but is it something as simple as:

    string key = string.Empty;
    string val = string.Empty;
    if (splitArray.Count > 1)
    {
    key=splitArray[0];
    val=splitArray[1];
    }

    at this point, you've got both elements of your configuration item that you can then do whatever you want with. HTH.

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    C# csharp data-structures question

  • Daphne and Tracey!
    J Josh Martin

    Has Heroes improved at all? I stopped watching about a month ago (took it off my DVR as well), well, because I just seemed to lose interest in the story and the characters. I'd watched since the beginning, but everything seemed down-hill after the first season. With BSG gone now and Terminator almost over (for good, if it doesn't get picked up :sigh: ), I might give it another look. Need something to keep my attention until Burn Notice comes back :-D

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge

  • New Printer
    J Josh Martin

    I have no idea how I've managed this, but I'm using the same NEC Laser printer I bought in 1995. Still has the original toner cartridge as well. I couldn't even begin to count how many pages it's printed. Not bad for a $260 investment.

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge

  • Add/Remove type control for Web pages?
    J Josh Martin

    I'm aware that the actual code to implement the functionality would be client side javascript. My main problem (which I probably didn't state clearly, and why I was looking for a control someone had already created) was how to actually create the layout of the control in a web application. I'm not very familiar with CSS positioning, but I'm assuming that is what I would need to get the control layout to mimic what can be done just by dragging the buttons around on a WinForm application. Perhaps since this is a CSS/positioning question, it might be better for another forum, but since I was looking for control that someone might have already created, I wanted to look here first. I've managed to create the layout using tables, so I guess that will be good enough.

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    ASP.NET csharp css asp-net com algorithms

  • Add/Remove type control for Web pages?
    J Josh Martin

    Before I re-invent the wheel, I thought I'd ask if anyone knew of such a beast. I've tried searching Google for various combinations of 'add', 'remove', 'listbox', 'asp.net', and I've only managed to find WinForm controls (see: http://www.vbdotnetheaven.com/UploadFile/mgold/AddRemoveUserControls04262005080452AM/AddRemoveUserControls.aspx[^]) For those that don't want to click the link, I'm basically looking for a control that has a list of items in listbox1 and buttons to move selected items to listbox 2. The main difficulty I find in doing it myself is getting the layout to work properly. I'm assuming you'd need to use CSS positioning to get everything lined up properly.

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    ASP.NET csharp css asp-net com algorithms

  • Bill Gates writes to Santa
    J Josh Martin

    Ed.Poore wrote:

    Here's an idea on how you can help finance your operation: Give everybody at least one present at Christmas, then you could make batteries and sell them the rest of the year. It would create a demand: You give people something and then sell them what they need to make it work.

    When I was young, whenever a relative would give me a noisy or annoying toy (example, fireman helmet with flashing light on the top and ear piercing siren), my parents always told me that they ran on special "Santa Batteries", and once they ran out, I'd have to wait until Santa could deliver new batteries the next year.

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge business sales json help tutorial

  • EZ message board
    J Josh Martin

    EZBoard was hacked or something a year or two ago. Many (most?) boards were affected for days, if not weeks. A couple of the boards I read frequently never recovered thier pre-hacked content. Other than that, as long as you are a gold member or a gold board (either status removes the ads, I believe), it's not too bad. The ads and pop-ups on non-gold sites are annoying. If it was a site I really expected to take off, I'd proably skip EZBoard. If it's just a small forum though, it's probably not too bad and simpler to set up.

    Josh This space for rent

    The Lounge question discussion

  • JOTD
    J Josh Martin

    I was able to reproduce the crashes as well. Glad I didn't try it on my dev box :)

    Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge csharp visual-studio com

  • This cracked me up
    J Josh Martin

    I guess I'm just incredibly dense today, but what is so funny? The code does exactly what the description says (demonstrates ohw you can override the property and method), and the comments explain why the methods just return false and throw a NotSupportedException (the extended class CsvDataSrouceView doesn't permit it).

    Josh Insert witty sig here

    The Lounge csharp asp-net debugging tutorial announcement

  • Pirates: Dead Man's Chest
    J Josh Martin

    To each his own, I guess... I liked it. One thing I didn't realize going into the movie is that Pirates 2 and 3 are one big movie, not really two seperate movies. Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge com question career

  • Insulted
    J Josh Martin

    So in your situation, "Partner" may not be the most descriptive term. But then again, in other situations, it could be perfectly suited. If the couple having the child is not married, why would they select "Spouse"? If the man accompanying the woman is not the biological father of the child, why would they select "Father"? Or if it was a same-sex couple, again "Father" wouldn't really be appropriate, would it? I think you should take comfort in the fact that you are being a supportive and caring father-to-be, instead of getting upset at the bureaucratic ideosyncracies of having to deal with every possibly situation that could arise from the human condition. Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Back Room business question

  • Encoding Question
    J Josh Martin

    I guess it would all depend on your target audience. For me, I'd probably just call them Japanese characters, even though they could just as well be Chinese (I studied some Japanese in school, and know that in some cases, the Japanese Kanji is identical to the Chinese characters, but the words are pronounced differently). Since my target audience is mainly my QA department right now, I either just say "Unicode characters" or I identify the specific portion of the character set that I'm referring to at the time (either Chinese/Japanese, Hebrew, Arabic, etc). Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge question

  • Encoding Question
    J Josh Martin

    The Unicode character set contains all of the characters (Latin, Hebrew, Arabic, Chinese, Japanase, etc) laid out by the Unicode standards. UTF-8 and UTF-16 are encoding schemes for storing a Unicode code-point in a binary representation. Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge question

  • Encoding Question
    J Josh Martin

    I'm dealing heavily with Unicode data right now, and I just refer to them as Unicode characters, as that encompasses the entire range that I'm dealing with. The "non-ISO latin chars" confused me for a sec, because I initially read it as "(non-ISO) latin chars" instead of "(non-ISO latin) chars". Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge question

  • Sony Rootkit
    J Josh Martin

    No lie. Between Weezer's set and then Foo Fighters following them, it was one of the best shows I've seen in years. At least I still have the memories... Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge html com testing beta-testing tutorial

  • Sony Rootkit
    J Josh Martin

    It's more that I don't want to support Sony's horrible business practices. I know the workarounds, I just choose not to support a company that forces me to go to such lengths to protect my system security. Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge html com testing beta-testing tutorial

  • Sony Rootkit
    J Josh Martin

    Steve McLenithan wrote:

    Foo Fighters - In Your Honour

    I just saw Foo Fighters in concert a couple weeks ago, and was looking forward to buying thier album. I guess this nixes that plan. :sigh: Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge html com testing beta-testing tutorial

  • Eating habits
    J Josh Martin

    Are you sure the cat is deaf and not just being, well, a cat? ;P Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge csharp question lounge

  • Another Victim of "The Schedule"
    J Josh Martin

    Toasty0 wrote: A quote from the article: "All of this points to the Managed Code API project being offshored to somewhere closer to Siberia, and more modest lock-downs, such as No Execute pages (due to appear in XP Service Pack 2) being promoted as a good-enough answer." Due to appear? Beside this obvious hachet job, these folks can't even get their time line correct. I think you missed the important line right before the section you quoted: It's long been rumored as a casualty, as we wrote in May 2004 - Josh Find a penny, pick it up, and all day long you'll have a back-ache...

    The Lounge csharp
  • Login

  • Don't have an account? Register

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