Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: bitwise
  • Content: Threads
  • Order by date
  1. bitwise

    How to return all rows on a SUM/COUNT query?

    I have a query that simply counts how many items exist for a particular status within a given data range. The query works... SELECT DATE(MY_TIMESTAMP) AS DATE, SUM(CASE WHEN STATUS_ID=10 THEN 1 ELSE 0 END) AS STATUS10, SUM(CASE WHEN STATUS_ID=20 THEN 1 ELSE 0 END) AS STATUS20 FROM...
  2. bitwise

    Best method to read very large text files in Java (>1.5GB)

    I have a very large ASCII text file. It's an Apache webserver log. It contains 4,783,012 lines and is 1.66GB. I need to look at each line of the file independently. This makes using "java.nio" a bit more difficult because I'll have to parse out a line from a buffer by looping through the buffer...
  3. bitwise

    Programmatically, how might one do this?

    You know those sites out there such as pricegrabber.com and bestbookbuys.com. You know, the ones that pull information such as prices and shipping and availability etc from other websites and then compare them against each other to find the best price etc. I’m wondering how this is done? Now, I...
  4. bitwise

    Remove \' after mysql_real_escape_string

    Quick question, after I insert a block of text into my database after running it through "mysql_real_escape_string" it contains \' and \". Now, when I display the text back on a page somewhere it also contains those "\" slash characters. How should I deal with this? I do not want to do...
  5. bitwise

    Table Cell Alignment Question

    Here's a simple example to illustrate my question. Say you have this table... <table border=1> <tr> <td valign=top>text1</td> <td rowspan=2>text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text 2 text2 text2 text2 text2 text2 text2 text2</td> </tr> <tr> <td...
  6. bitwise

    input type=text problem in IE

    I have a simple problem I hope someone has a CSS solution for. I have a table with a width of 100% - no problems there. Inside that table I have a row with a text box: <tr><td> <input type='text' class='textSubject' name='subject' value='My Text'> </td></tr> FYI, the CSS class "textSubject"...
  7. bitwise

    Select forum topics with the most recent posts

    I'm implementing a basic forum. My database contains a FORUM table, a TOPICS table, and a POSTS table. Basically, a "forum" contains "topics" and a topic contains "posts". Pretty standard. When I want to display a forum with all its topics I obviously want to order the topics by the one that...
  8. bitwise

    Redirect user to referering page after login

    This isn't a new topic, and I've read what some people do, but if you don't mind, I would like to get some best practices around this from others. On all my secured pages near the top of the file I do something equivalent to this: <?php if(!login) { header("Location: /login/"); } ?> Let's...
  9. bitwise

    What is going on? IE 7 Simple POST Problem

    Does anyone have any idea what is going on here? Look at this super simple form first and I'll explain: <?php if(isset($_POST['submit'])) { echo $_POST['test'] . "<br>"; } ?> <form method=post action="form.php"> <input type=text name=test value=""> <input type=submit name=submit...
  10. bitwise

    Back to &lt;?php ?&gt; in print&lt;&lt;&lt;BLOCK

    Is there anyway to have a print block such as: <?php print<<<HTML_DUMP ... ... ... HTML_DUMP; ?> And in that block of HTML can you switch back to PHP and execute some statements? For example, <?php print<<<HTML_DUMP ... <input type="hidden" name="example" value="<?php echo $var; ?>"> ...
  11. bitwise

    Encrypted Passwords - Email forgotten passwords?

    If I store a user’s password in the database using a one-way encryption scheme, how can I send the user their password if they request it? Well, I can't. All I could do is reset their password; however, then anyone with simply their username could request the password to be reset. Now, this...
  12. bitwise

    Login: Session and Cookies - For more experienced PHP programmers

    Hello, I'm new to PHP, but not to programming by any means. I just wanted to run this by more experienced PHP programmers to see if I'm on the right track. To authenticate a username/password to login to a website I'm thinking the basic process would go something like this pseudo-code...
  13. bitwise

    Laptop Power Adapter (Voltage/Amps)

    How important is it that the voltage and the amps on a given power adapter match the power requirements listed for the laptop? In the three questions below assume that the laptop in question requires an 18.5V / 2.5amp power adapter. #1. Would it be ok to use a 18.5V / 3.5amp power adapter? #2...
  14. bitwise

    spaces in a batch file

    Quick question, how do I use a space in a batch file in a path to a file name? I'm trying to install DOTNET framework from a batch file. The path to the installer has spaces in the directory names. I do not have control over this. The path is: DIAGNOSTIC\WINDOWS UPDATES\NET Framework\v2.0\...
  15. bitwise

    OpenSSH 4.0p1 not allowing me login?

    Hello, I just upgraded OpenSSH to the latest version (4.0p1) on my Slackware box; however, it doesn't let me login? Using an SSH client I can connect just fine to the machine from within or from without my local network. However, when I try to authenticate (i.e. user/password), it always gives...
  16. bitwise

    Eject cd-rom drives?

    Is it possible in VB.NET to eject the cd-rom drives? Both the primary and secondary drive? Thanks, -bitwise
  17. bitwise

    VB.net App on WinXP not working?

    Why won't my simple VB.net app that was compiled on a Win2000 machine work on WinXP? I'm new to VB.net, but I've never had problems with Visual C++ apps compiled on Win2000 running on a different MS operating system. Is there something special I have to do to make the app work on Win2000 and...
  18. bitwise

    cron not working (RedHat 9)

    System: Red Hat 9 Kernel: 2.4.20-8 As root, I edit the /etc/crontab file and add my line: 01 13 * * * /root/myscript.sh Also, the crond server is running; however, my script never runs. What am I missing? Is there a service in chkconfig that I need to also turn on? Thanks, -bitwise
  19. bitwise

    RedHat Shutdown

    Where is the best place in Redhat 9 to place user defined shutdown commands? There is some stuff I want to do when the computer is shutdown...nothing to complicated just some logging. Where is the best place to put these commands? Thanks, -bitwise
  20. bitwise

    Setup SQUID to forward proxy information

    Can you setup SQUID on a linux box that is your router and just redirect all web request from clients to squid like this: $IPTABLES -t nat -A PREROUTING -i $INTERNAL -p tcp --dport 80 -j REDIRECT --to-port 3128 And then can you have squid just request information from another proxy? I know...

Part and Inventory Search

Back
Top