User Profile

Collapse

Profile Sidebar

Collapse
crabpot8
crabpot8
Last Activity: Sep 10 '08, 04:43 AM
Joined: Aug 10 '07
Location: nashville, tn, usa
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to take command-line input and verify that it is an int?

    Hi all,

    I have a small part of my program that I would like to revise. The problem is that if someone enters text, it just gets converted to 1 as an int. I would like to print an error message and ask them for an int again.

    Thanks in advance,
    crab

    Code:
    {    
         int in;
         cout << endl << "Please input an integer: ";
         cin >> in;
    ...
    See more | Go to post

  • Control not rendering if added during aspx page load call

    I am working on a message system that will let out programmers easily output a message to any user. It works fine, unless the message is requested inside of a page_load on an aspx page. Then, it does not render at all.



    The code does step through, and the control is added - I believe it might be being added to late in the page lifecycle to get rendered. I can't seem to find any way to tell .NET to render that control,...
    See more | Go to post
    Last edited by DrBunchman; Jul 23 '08, 07:20 AM. Reason: Added [Code] Tags - Please use the '#' button

  • So a theory question for all you PHP Guru's out there

    So I am building a web service that generates charts from a large amount of data. The problem I am running into is that to generate one chart, there can be up to 5 requests set. The variable preservation was just getting ridiculous.

    So, question is - what is the best solution. I would like to have some sort of global variables, but register globals is turned off (I don't think that actually stops me from using the global keyword,...
    See more | Go to post

  • crabpot8
    started a topic Is there any possible way to speed up a query???

    Is there any possible way to speed up a query???

    Hey, I am pretty experienced with mySQL, having made about 20ish websites using. I am looking to speed up a query on the most data intensive site I have done yet. I know basic SQL, but I feel that I need to take it up a level and do something more than just restructure the query here.

    The table structure:
    Code:
    CREATE TABLE `rmaccess` (
      `ip_address` char(15) NOT NULL default '',
      `timestamp` timestamp NOT NULL default
    ...
    See more | Go to post

  • crabpot8
    replied to Anyone see the problem?
    Update:

    answer was simple, I was missing a darned ')' lol
    [code=mysql]
    SELECT *, ABS(DATEDIFF(NO W(),timestamp)) as dateDiff FROM `rmerror` ORDER BY `timestamp` DESC LIMIT 0, 100[/code]
    See more | Go to post
    Last edited by Atli; May 19 '08, 03:35 AM. Reason: Added [code] tags.

    Leave a comment:


  • crabpot8
    started a topic Anyone see the problem?

    Anyone see the problem?

    Anyone see the problem with this? Basically I am trying to get this to work, so that I can modify it to say something similar to select *, ABS(DATEDIFF ... ) from ...

    so that I can get 1) all the data and 2) the date diff in 1 query. Any help would be greatly appreciated

    crabpot
    [code=mysql]
    SELECT timestamp, ABS(DATEDIFF(NO W(),timestamp) as dateDiff FROM `rmerror` ORDER BY `timestamp` DESC LIMIT 0, 10...
    See more | Go to post
    Last edited by Atli; May 19 '08, 03:34 AM. Reason: Added [code] tags.

  • crabpot8
    replied to quieries taking a while - key problem?
    SQL Key Order Tests

    Hm - I tried changing my keys up and here are the results -

    SQL Statement -
    Code:
    SELECT COUNT( timestamp )
    FROM rmaccess
    WHERE timestamp
    BETWEEN 20080225034627
    AND 20080225044627
    SQL Statement (with different timestamp values) Ran about 150 times on both



    Keys version 1
    • Primary - timestamp,helix _
    • Unique - ip_address,
    ...
    See more | Go to post
    Last edited by crabpot8; Mar 12 '08, 08:02 PM. Reason: Didnt include explanation - hit submit accidentally

    Leave a comment:


  • crabpot8
    replied to quieries taking a while - key problem?
    Thanks a lot! I actually did it a little differently - I am not sure if its maximum effectiveness but it definitely works better. I needed the three columns to be unique together, but I am generating charts of server stats so i normally use the timestamps in my queries. So i did this - any opinions or am i headed in the right direction?
    Code:
    [list=1][*]Primary Key on timestamp, helix_[*]Unique Key on ip_address, timestamp, helix_[/list]
    ...
    See more | Go to post

    Leave a comment:


  • crabpot8
    started a topic quieries taking a while - key problem?

    quieries taking a while - key problem?

    I am decent at queries, but recently i made a new DB with about 50000+ entries. Queries are taking almost 20+ seconds, and i think it is that i dont have decently structured keys - this is the first time I was the one that created the DB structure. Here is the info that seemed relevant - ANY HELP APPRECIATED

    There is one 'primary' key - a mix of server, timestamp, and ipaddress
    This is a few server access logs put into a database...
    See more | Go to post

  • crabpot8
    started a topic handshake in flash?

    handshake in flash?

    is there any way to generate a "handshake" in flash and capture the return answer into a variables?

    i am wanting to do a handshake with a site and see if the site responds, then use actionscript to direct my video according to the result
    See more | Go to post

  • crabpot8
    replied to gotoAndPlay Problem
    a little more detail about what you are trying to do would be appreciated
    See more | Go to post

    Leave a comment:


  • out of curiosity, do you know what this line does?

    import flash.external. ExternalInterfa ce;

    that is a reallly useful thing to know!
    See more | Go to post

    Leave a comment:


  • crabpot8
    replied to How do I ActionScript a pop-up?
    have you tried using getURL(). look up that actionscript function and its parameters
    See more | Go to post

    Leave a comment:


  • crabpot8
    started a topic What is Flash Remoting? - Advanced help needed

    What is Flash Remoting? - Advanced help needed

    hey guys, sorry for the short notice but this is pretty time-sensitive. I am working on a video service that asks for local files from a host computer.

    what we have set up is a site with a flash player, and the user passes the player some flashvars that indicate the unique name of the video. the flash in turn connects to a local client via one port nad asks for the video data. the client is receiving the request and sending the data,...
    See more | Go to post

  • crabpot8
    replied to where is the Console in C#?
    in .NET
    i actually got it figured out. for the record, i was using visual studio 2005. to compile and run i was just using the debug button, and the "Console" is located within the output window when it is set to debug. i had it set to show output from build, so i kept missing it. thanks for the fast move, and ill use the .net forum from now on

    preciate it

    crabpot8
    See more | Go to post

    Leave a comment:


  • crabpot8
    replied to falsh in windows forms c#
    please do tell how you put flash inside your application, if you dont mind sharing the C# code that would be amazing

    thanks
    crabpot8
    See more | Go to post

    Leave a comment:


  • rather than exporting your "pop up" as a .exe, try exporting as a .swf and in your button actionscript, use the loadmovie command. getURL is designed to work for internet pages. if you really need exe, then create your popup, export as exe and look up autostart so that when the disc is inserted, that exe is automatically run

    hope that helps,
    crabpot8...
    See more | Go to post

    Leave a comment:


  • crabpot8
    started a topic where is the Console in C#?
    in .NET

    where is the Console in C#?

    i am totally new to C#, but have exp with C++. my question is where is the Console?

    i try Console.WriteLi ne("hello world"); and catch errors, but i dont see output anywhere?

    thanks in advance for any help
    See more | Go to post

  • crabpot8
    replied to How to split a large swf into smaller swfs
    if you have audio in your flash, recoding it can save a huge amount of data. other than that, cleverly loading only what is needed is the best way to reduce load time. as for redirecting, assign a variable to the main timeline and use that to play specific actionscript from within other swf's
    See more | Go to post

    Leave a comment:


  • crabpot8
    replied to Site Map for Flash Site
    i think the normal way is to make a text only html version of your site (perhaps put it all on one page)? not sure, but i do know that google crawler now indexes flash sites, but not to well apparently
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...