As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/

YA[Programming]T :: Interview? That's an MVC thing, right?

19495969799

Posts

  • bowenbowen How you doin'? Registered User regular
    Just 'cause I've been thinking. I wonder if it'd be possible to use google docs as a really primitive socket layer.

    Like open up a spreadsheet and assign clients certain cells and all that, sort of like a peer to peer network.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    In theory...but you'd just be layering your "protocol" on top of HTTP(S), effectively adding a bunch of protocol overhead. It's also horribly inefficient, as you'd have to use a 100% poll model as Google Doc's has no push (that I am aware of...maybe you can piggy back on the documentation notification system they have built in to know when a doc changes?).

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Not only that, but all data is pushed to all peers, unless that's what you want. How would you confirm recipt?

  • ecco the dolphinecco the dolphin Registered User regular
    edited September 2012
    Unrelated:

    Beaten by the batch file #82 : Variable Expansion
    @echo off
    set CLEANUP=1
    set SUBTYPE=
    set OUTPUT_DIR=D:\Some\Directory
    
    if "%CLEANUP%"=="1" (
      set SUBTYPE=generated
      echo. del /s /q %OUTPUT_DIR%\%SUBTYPE%
    )
    

    Guess the output.

    That's right - it's:
    del /s /q D:\Some\Directory\

    "Where did "generated" go?", was what I screamed, when the list of files that it was deleting scrolled past.
    It turns out that %SUBTYPE% was substituted when the line was read, as opposed to when it was executed. When the line was read, SUBTYPE was still set to an empty string.

    Turns out it was a simple whoops - I needed delayed expansion.


    Edit:

    Sorry, I didn't mean to page you, Echo!

    ecco the dolphin on
    Penny Arcade Developers at PADev.net.
  • iTunesIsEviliTunesIsEvil Cornfield? Cornfield.Registered User regular
    Every time I have to write a *.bat script I cry and wish I could just write it as a bash-script.

  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Always test lines containing rm or del with echo first!

  • ecco the dolphinecco the dolphin Registered User regular
    Phyphor wrote: »
    Always test lines containing rm or del with echo first!

    Hubris. =P

    Penny Arcade Developers at PADev.net.
  • EchoEcho ski-bap ba-dapModerator mod
    You have no idea how many awful batch files I get to see on twitter. :P

  • EchoEcho ski-bap ba-dapModerator mod
    edited September 2012
    Today in CodeIgniter Adventures: trying to figure out why this didn't run.
    $this->db->select("*, CONCAT_WS(' ', firstname, lastname) AS fullname");
    $query = $this->db->get('user');
    

    Turns out that CI tries to be helpful and add some backticks for me in the SQL it generates!
    SELECT *, CONCAT_WS(' ', `firstname`, `lastname)` AS fullname FROM (`user`)
    

    Even if I added backticks myself in the query, CI cheerfully adds one more outside of the parenthesis.

    In the end I had to write "lastname )" with a space before the parenthesis, which works, and has the side effect of disturbing my sense of aesthetics.

    Echo on
  • DrunkMcDrunkMc Registered User regular
    I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

  • bowenbowen How you doin'? Registered User regular
    Phyphor wrote: »
    Not only that, but all data is pushed to all peers, unless that's what you want. How would you confirm recipt?

    Peer-to-Peer CRC/hash test of the dataset?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • bowenbowen How you doin'? Registered User regular
    DrunkMc wrote: »
    I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

    Sounds like you need to be on our linode!

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • zeenyzeeny Registered User regular
    edited September 2012
    Echo wrote: »
    Today in CodeIgniter Adventures: trying to figure out why this didn't run.
    $this->db->select("*, CONCAT_WS(' ', firstname, lastname) AS fullname");
    $query = $this->db->get('user');
    

    Turns out that CI tries to be helpful and add some backticks for me in the SQL it generates!
    SELECT *, CONCAT_WS(' ', `firstname`, `lastname)` AS fullname FROM (`user`)
    

    Even if I added backticks myself in the query, CI cheerfully adds one more outside of the parenthesis.

    In the end I had to write "lastname )" with a space before the parenthesis, which works, and has the side effect of disturbing my sense of aesthetics.
    $this->db->select() accepts an optional second parameter.
    If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.

    I was actually looking for a SqlExpression-like class for strings as what you described made no sense, but this was the first thing I ran into.

    zeeny on
  • EchoEcho ski-bap ba-dapModerator mod
    Oh hey. I actually read that in the documentation while looking at select() but somehow I completely failed to parse what that actually meant.

  • urahonkyurahonky Registered User regular
    Been asked to write two project summaries for two different projects. One long and one short. There is a template but I have absolutely no idea how to do any of this. I am not a technical writer... I wasn't hired on to do papers.

  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    urahonky wrote: »
    Been asked to write two project summaries for two different projects. One long and one short. There is a template but I have absolutely no idea how to do any of this. I am not a technical writer... I wasn't hired on to do papers.

    If you can develop that skill you'll become exponentially more valuable. :P

  • bowenbowen How you doin'? Registered User regular
    Yup.

    Doing summaries and all the paperwork part tends to be fun at times and gives you a nice break, especially if you don't decide the kind of stuff you work on.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    edited September 2012
    I struggled in every single one of my English classes since I was a kid. I just don't think that way.

    e: This is also cutting into my current iteration's development time.

    urahonky on
  • bowenbowen How you doin'? Registered User regular
    If you're the same as me, it was never the writing that was the issue. It was the literary analysis of boring ass books. You won't be writing about onomatopoeia or similes.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    Unfortunately I just literally cannot write a technical paper. Even on something that I worked on I just freeze up. I literally just cannot do it without spending hours and hours on it... And then it still ends up really shitty.

  • bowenbowen How you doin'? Registered User regular
    You so cray.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    bowen wrote: »
    You so cray.

    Say whaaaat?

  • bowenbowen How you doin'? Registered User regular
    I said you're a supercomputer. Cold, unfeeling.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • DrunkMcDrunkMc Registered User regular
    edited September 2012
    urahonky wrote: »
    bowen wrote: »
    You so cray.

    Say whaaaat?

    Can you describe it outloud? Do that. I also tend to be very visual, so all of my papers have tons of graphs and illustrations and such. I use GIMP more in my papers then I do Word. Makes it much more fun and more my style.
    bowen wrote: »
    DrunkMc wrote: »
    I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

    Sounds like you need to be on our linode!

    Been thinking about it! Five hours now since I showed them a simple .jsp that worked on Sunday, doesn't work now. No word.

    DrunkMc on
  • urahonkyurahonky Registered User regular
    <Provide a detailed (storyline) description of the project. The purpose of this section is to provide the reviewer with a sound understanding of our capabilities through past performances.
    Describe benefits/applications. Include any transition successes to-date and describe early users/markets.
    The description must include at minimum one image that includes callout boxes in the image as shown below to support the summary. In addition, the project description must include a reference the image and provide a more in depth description of its meaning (the reader should not have to decipher the purpose or meaning of the image).
    This section should range from 0.5 to 1.5 pages in length depending on the complexity and scope of the project.>

    On a project I've never even heard of is next to impossiburu for me to do.

  • ueanuean Registered User regular
    edited September 2012
    New thread time? I've got a question and it's about to be lost to the abyss. But here it is anyway:

    I'm trying to automate the process of downloading virus defs from a particular webpage and applying them via a command line tool. I need some help isolating the url of the download from some web page source code. So far what I have is this:
    URL="http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/Definitions/"
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set http = CreateObject("Microsoft.XmlHttp")
     
    On Error Resume Next
    http.open "GET", URL, False
    http.Send ""
    if err.Number = 0 Then
          WScript.Echo http.responseText
     Else
          Wscript.Echo "error " & Err.Number & ": " & Err.Description
     End If
     set WshShell = Nothing
     Set http = Nothing
    

    This is lovely and outputs the HTML source code of the page I need. I can call this .vbs with cscript and have it output to text file nicely as well. But I'd rather keep it all in one place, so I'm looking for a way to parse the xmlhttp.responsetext (http.responsetext in the above code) and pull out the first URL of "http://......SBR.sgn". As long as its the first hit, that's what I want.

    Is there any way to do this? I've tried mucking around but I'm a newb with this stuff.

    uean on
    Guys? Hay guys?
    PSN - sumowot
  • bowenbowen How you doin'? Registered User regular
    What's the page in question?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • ueanuean Registered User regular
    edited September 2012
    bowen wrote: »
    What's the page in question?

    It's http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/Definitions/

    Source is here for your viewing pleasure:
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
     <head>
    
      
      
    
       
       <title>Enterprise Antivirus & Endpoint Protection - VIPRE Enterprise Antivirus</title>
       <meta name="Keywords" content="enterprise antivirus, endpoint protection, vipre enterprise, vipre antivirus, sunbelt software, malware protection">
       <meta name="Description" content="VIPRE Antivirus Business and Endpoint Protection. VIPRE offers reliable antivirus, spyware and malware protection that is easy on your PC's resources.  VIPRE offers superior Anti-Rootkit, anti-Phishing, malware removal for Outlook and Windows mail.">
    
      
    
      
      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
     
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
    
      
      <meta name="y_key" content="e71d199e41d36348">
    
      
      <meta name="msvalidate.01" content="CC3F489474054D3399141E9C37582636">
    
      
      <meta name="robots" content="noodp">
    
      
      <meta name="robots" content="noydir">
     
      
      <meta name="wot-verification" content="6bd0c90463c596f5779b">
    
      <script type="text/javascript" src="https://www.sunbeltsoftware.com/deluxe/menus/dmenu.js"></script>
      <script type="text/javascript" src="https://www.sunbeltsoftware.com/js/sunbelt.js"></script>
      <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'></script>
      <script type="text/javascript" src="https://www.sunbeltsoftware.com/js/jquery.easing.1.3.js"></script>
      <script type="text/javascript" src="https://www.sunbeltsoftware.com/js/jquery.coda-slider-2.0.js"></script>
    
      
       <link rel="stylesheet" href="https://www.sunbeltsoftware.com/style2008.css" type="text/css">
      
    
      <link rel="stylesheet" href="https://www.sunbeltsoftware.com/styles/coda-slider-2.0.css" type="text/css">
    
      
      <meta name="verify-v1" content="yslw8gL0BzSTYEw6LOu9PzoIskikCGVtVPoPY8B0Kic=">
    
      
      <meta name="google-site-verification" content="NLFz17rbByamfKOXBwdLZvDL8n0D68GGHK1GhY3eKDs" />
    
      
      
    
      <link rel='icon' href='/favicon.ico' type='image/x-icon'>
      <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
    
      <meta name='created' content='20120918141720'>
     </head>
    
     <body>
    
      <div id='container'>
    
       
    
       <table width='950' cellpadding='0' cellspacing='0' align='center' border='0' class='normal'>
        <tr>
         <td>
    
          
          <a href='http://www.gfi.com/'><img src='http://www.sunbeltsoftware.com/images_2010/gfi.jpg' align='left' width='350' height='75' alt='GFI - CRN Software vendor of the year 2010' title='GFI - CRN Software vendor of the year 2010'></a>
    
          
          <div style='text-align:right;font-size:0.9em;padding-top:10px;padding-right:10px'>
           <a href='http://www.gfi.com/company/awards.htm'>Awards</a> |
           <a href='http://www.gfi.com/company/news-and-events/press-releases'>Press Center</a> |
           <a href='http://www.gfi.com/news'>Events</a> |
           <a href='http://www.sunbeltsoftware.com/Partner/'>Partners</a> |
           <a href='http://research.sunbeltsoftware.com/' target='_blank'>Research</a> |
           <a href='http://www.gfi.com/company'>About</a>
          </div>
    
          
          
           <table align='right' cellpadding='0' cellspacing='0' style='margin-top:10px' border='0'>
            <form id="searchbox_015333630007296075731:wpp8lbclop0" action="http://www.sunbeltsoftware.com/Search/">
             <tr>
              <td valign='top'>
               <input type="hidden" name="cx" value="015333630007296075731:wpp8lbclop0">
               <input name="q" type="text" size="20">
               <input type="image" src='/images_2008/arrow.jpg' name="sa" value="Search">&nbsp;
               <input type="hidden" name="cof" value="FORID:11">
               <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_015333630007296075731%3Awpp8lbclop0"></script>
              </td>
             </tr>
            </form>
           </table>
          
    
         </td>
        </tr>
       </table>
       
       
       <table width='950' cellpadding='0' cellspacing='0' align='center' border='0'>
        <tr height='24'>
         <td align='left' width='3' background='https://www.sunbeltsoftware.com/deluxe/menus/mm_left.gif'></td>
         
         
          <td align='left' width='944' background='https://www.sunbeltsoftware.com/deluxe/menus/mm_background.gif'><script type="text/javascript" src="https://www.sunbeltsoftware.com/deluxe/menus/mm_data.js"></script></td>
         
         <td width='3' background='https://www.sunbeltsoftware.com/deluxe/menus/mm_right.gif'></td>
        </tr>
        <tr><td><img src='http://www.sunbeltsoftware.com/images_2008/dot-trans.gif' width='1' height='1' alt=''></td></tr>
       </table>
       
    
       
       <div id='mainsite' style='background-color:white'>
    
        
    
    
    
    <table width='100%' cellspacing='0' cellpadding='0' border='0'>
     <tr>
      <td width='20'><img src='/images_2008/product-banner-left.gif' height='47' width='5'></td>
      <td width='100%' nowrap background='/images_2008/product-banner-middle.gif' class='normal'>
       <h1 style='color:white;font-weight:normal;margin:7px 0px 0px 5px;'>VIPRE Business Definitions</h1>
      </td>
      <td align='right' nowrap background='/images_2008/product-banner-middle.gif' class='normal'>
       <script type="text/javascript" src="/deluxe/menus/menu_products_business.js"></script>
      </td>
      <td width='20'><img src='/images_2008/product-banner-right.gif' height='47' width='5'></td>
     </tr>
    </table>
    
    
    <table width='100%' cellpadding='0' cellspacing='0' border='0' align='left'>
     <tr>
      <td width='20'><img src='/images_2008/l-tl.gif' height='20' width='20'></td>
      <td width='100%' background='/images_2008/l-tm.gif'></td>
      <td width='20'><img src='/images_2008/l-tr.gif' height='20' width='20'></td>
     </tr>
     <tr>
      <td width='10' background='/images_2008/l-ml.gif'></td>
      <td class='normal'>
    
       <div style='padding:5px'>
    
        <h3 style='margin:0px'>Full definitions for VIPRE Enterprise Premium, VIPRE Enterprise and CounterSpy Enterprise.</h3>
        <a href='../'>Back</a><br>
        <br>
    
        
    
        <h3 style='margin:0px'>Current Incremental Definition:</h3>
        Version 13120, issued at 11:36AM, Sep 18, 2012 (GMT-5)</b><br>
        <br>
    
        <h3 style='margin:0px'>Available Full Definitions</h3>
        Note: All times are GMT-5<br>
        <br>
        
          <b style='font-size:1.2em'>ENGLISH</b><br>
          <table border='1' style='border-collapse:collapse' cellpadding='4' width='80%'>
           <tr style='background-color:#808080;color:white'>
            <th width='1'>Download</th>
            <th width='1'>Version</th>
            <th width='1'>Date&nbsp;Released</th>
            <th width='1'>Filesize</th>
            <th>MD5</th>
           </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/ffa7bebdc20a4e259c8eb613f27f84e113116/CSE39-EN-13116-F.sbr.sgn'>CSE39-EN-13116-F.SBR.SGN</a>
             </td>
             <td>13116</td>
             <td nowrap>Sep 18, 2012, 5:41AM</td>
             <td nowrap> 90,021,899 bytes</td>
             <td nowrap>0C5D417F66844D465E2D46D3BC20A290</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/0659c4038c9f4f26a40f4c363df38b9e13104/CSE39-EN-13104-F.sbr.sgn'>CSE39-EN-13104-F.SBR.SGN</a>
             </td>
             <td>13104</td>
             <td nowrap>Sep 17, 2012, 5:55AM</td>
             <td nowrap> 90,045,063 bytes</td>
             <td nowrap>C230D580E82B6329D53339BB38BC7861</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/05ff9cae4cbc4f51a439ea0aadbc93d013090/CSE39-EN-13090-F.sbr.sgn'>CSE39-EN-13090-F.SBR.SGN</a>
             </td>
             <td>13090</td>
             <td nowrap>Sep 16, 2012, 9:51AM</td>
             <td nowrap> 89,772,890 bytes</td>
             <td nowrap>1D5764DF43B8F0A396B07071ABA67514</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/e807d5b349c24519938e18d936a823c313076/CSE39-EN-13076-F.sbr.sgn'>CSE39-EN-13076-F.SBR.SGN</a>
             </td>
             <td>13076</td>
             <td nowrap>Sep 15, 2012, 9:55AM</td>
             <td nowrap> 89,468,859 bytes</td>
             <td nowrap>EB92FBA0CDEE54AB2D11D036F8BAAB6D</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/42950173101b49da96d07587be0637e313060/CSE39-EN-13060-F.sbr.sgn'>CSE39-EN-13060-F.SBR.SGN</a>
             </td>
             <td>13060</td>
             <td nowrap>Sep 14, 2012, 5:50AM</td>
             <td nowrap> 89,345,724 bytes</td>
             <td nowrap>98E0F77C96EC0A8F42FA30C75F309A7B</td>
            </tr>
           
          </table>
          <br>
         
          <b style='font-size:1.2em'>GERMAN</b><br>
          <table border='1' style='border-collapse:collapse' cellpadding='4' width='80%'>
           <tr style='background-color:#808080;color:white'>
            <th width='1'>Download</th>
            <th width='1'>Version</th>
            <th width='1'>Date&nbsp;Released</th>
            <th width='1'>Filesize</th>
            <th>MD5</th>
           </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/ffa7bebdc20a4e259c8eb613f27f84e113116/CSE39-DE-13116-F.sbr.sgn'>CSE39-DE-13116-F.SBR.SGN</a>
             </td>
             <td>13116</td>
             <td nowrap>Sep 18, 2012, 5:41AM</td>
             <td nowrap> 90,022,322 bytes</td>
             <td nowrap>1C0AB21AAA1D43CC99E8052010693017</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/0659c4038c9f4f26a40f4c363df38b9e13104/CSE39-DE-13104-F.sbr.sgn'>CSE39-DE-13104-F.SBR.SGN</a>
             </td>
             <td>13104</td>
             <td nowrap>Sep 17, 2012, 5:55AM</td>
             <td nowrap> 90,045,485 bytes</td>
             <td nowrap>E2C313D0AF89DDE0D347E8334DF7631A</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/05ff9cae4cbc4f51a439ea0aadbc93d013090/CSE39-DE-13090-F.sbr.sgn'>CSE39-DE-13090-F.SBR.SGN</a>
             </td>
             <td>13090</td>
             <td nowrap>Sep 16, 2012, 9:51AM</td>
             <td nowrap> 89,773,312 bytes</td>
             <td nowrap>9FEE9D2D7C2D9D74740CE94279E6EE84</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/e807d5b349c24519938e18d936a823c313076/CSE39-DE-13076-F.sbr.sgn'>CSE39-DE-13076-F.SBR.SGN</a>
             </td>
             <td>13076</td>
             <td nowrap>Sep 15, 2012, 9:55AM</td>
             <td nowrap> 89,469,282 bytes</td>
             <td nowrap>3CF4B50A8AF044337ADD6A04F5683D05</td>
            </tr>
           
            <tr>
             <td nowrap>
              
              <a href='http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/42950173101b49da96d07587be0637e313060/CSE39-DE-13060-F.sbr.sgn'>CSE39-DE-13060-F.SBR.SGN</a>
             </td>
             <td>13060</td>
             <td nowrap>Sep 14, 2012, 5:50AM</td>
             <td nowrap> 89,346,145 bytes</td>
             <td nowrap>F6F2C78986FCB1A173024D7E73172E31</td>
            </tr>
           
          </table>
          <br>
         
    
       </div>
    
      </td>
      <td width='10' background='/images_2008/l-mr.gif'></td>
     </tr>
     <tr>
      <td width='20'><img src='/images_2008/l-bl.gif' height='20' width='20'></td>
      <td width='100%' background='/images_2008/l-bm.gif'></td>
      <td width='20'><img src='/images_2008/l-br.gif' height='20' width='20'></td>
     </tr>
    </table>
    
       </div>
    
       
       <div id='mainsite'>
        <img src='http://www.sunbeltsoftware.com/images_2011/menu_bottom.gif' width='950' height='30' alt='GFI Software' ismap usemap='#bottom-menu' vspace='0'><br>
        <map name='bottom-menu'>
         <area shape='rect' coords='0,0 40,29' href='http://www.sunbeltsoftware.com/' alt='GFI Software'>
         <area shape='rect' coords='50,0 133,29' href='http://www.WServerNews.com' target='_blank' alt='WServerNews'>
         <area shape='rect' coords='140,0 200,29' href='http://www.WXPNews.com' target='_blank' alt='WXPNews'>
         <area shape='rect' coords='210,0 279,29' href='http://www.Win7News.net' target='_blank' alt='Win7News'>
         <area shape='rect' coords='280,0 360,29' href='http://www.SunbeltSecurityNews.com' target='_blank' alt='Security News'>
         <area shape='rect' coords='370,0 450,29' href='http://www.SunbeltChannelNews.com' target='_blank' alt='ChannelNews'>
         <area shape='rect' coords='460,0 545,29' href='http://sunbeltblog.blogspot.com/' target='_blank' alt='GFI LABS Blog'>
    
         <area shape='rect' coords='800,0 825,29' href='http://www.gfi.com/blog/' target='_blank' alt='GFI Blog'>
         <area shape='rect' coords='830,0 855,29' href='http://www.facebook.com/gfisoftware/' target='_blank' alt='Facebook'>
         <area shape='rect' coords='860,0 885,29' href='http://twitter.com/gfisoftware/' target='_blank' alt='Twitter'>
         <area shape='rect' coords='888,0 915,29' href='http://www.linkedin.com/groups?gid=1833394' target='_blank' alt='Linkedin'>
         <area shape='rect' coords='917,0 942,29' href='http://www.youtube.com/user/gfisoftware/' target='_blank' alt='YouTube'>
        </map>
       </div> 
    
       <div id='footer'>
    
        <div style='font-size:0.85em;text-align:center;border-bottom:0px solid #cccccc;padding:8px 0px'>
         <a href='http://live.sunbeltsoftware.com/'>VIPRE PC Rescue</a> |
         <a href='http://www.sunbeltsoftware.com/Business/'>Enterprise Security</a> |
         <a href='http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/'>Enterprise Antivirus</a> |
         <a href='http://www.sunbeltsoftware.com/Business/VIPRE-Email-Security/Exchange'>Exchange Email Security</a>
        </div>
    
        <img src='/images_2008/msgoldcertified.gif' align='left' width='100' height='50' alt='GFI Software is a Microsoft Gold Certified Partner' title='GFI Software is a Microsoft Gold Certified Partner' hspace='12'>
        <div style='text-align:center;padding:10px'>
         <a href='http://www.gfi.com'>Home</a> |
         <a href='http://shop.sunbelt-software.com/'>Shop</a> |
         <a href='http://www.gfi.com/company/news-and-events/press-releases'>Press Center</a> |
         <a href='http://research.sunbelt-software.com/'>Research</a> |
         <a href='http://www.sunbeltsoftware.com/Partner/'>Partners</a> |
         <a href='http://www.sunbeltsoftware.com/Support/'>Support</a> |
         <a href='http://www.gfi.com/company'>About</a> |
         <a href='http://kb.gfi.com/supportcommunity'>Communities</a> |
         <a href='http://sunbeltblog.blogspot.com/' target='_blank'>Blog</a> |
         <a href='http://www.gfi.com/privacy'>Privacy</a><br>
         <b>Copyright &copy; 1996-2012 <a href='http://www.gfi.com' target='_blank'>GFI Software</a> All rights reserved.</b><br>
         33 North Garden Ave, Suite 1200, Clearwater, FL USA 33755 Int'l: 813-367-9906 Toll-Free: 888-688-8457 (US/Canada) [email protected]<br>
        </div>
        
    
       </div> 
    
      </div>
    
      
      
       <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-575114-1']);
        _gaq.push(['_setDomainName', '.sunbeltsoftware.com']);
        _gaq.push(['_trackPageview']);
        (function() {
         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
       </script>
      
        
        <!-- Google Code for Sunbeltsoftware.com Remarketing List -->
        <script type="text/javascript">
        /* <![CDATA[ */
        var google_conversion_id = 1072728970;
        var google_conversion_language = "en";
        var google_conversion_format = "3";
        var google_conversion_color = "666666";
        var google_conversion_label = "W8iSCIaN9wEQipfC_wM";
        var google_conversion_value = 0;
        /* ]]> */
        </script>
        <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
        </script>
        <noscript>
        <div style="display:inline;">
        <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1072728970/?label=W8iSCIaN9wEQipfC_wM&amp;guid=ON&amp;script=0"/>
        </div>
        </noscript>
       
      
    
    
    
    
    <!-- SiteCatalyst code version: H.22.1.
    Copyright 1996-2010 Adobe, Inc. All Rights Reserved
    More info available at http://www.omniture.com -->
    <script language="JavaScript" type="text/javascript" src="http://www.sunbeltsoftware.com/js/s_code.js"></script>
    <script language="JavaScript" type="text/javascript"><!--
    /* You may give each page an identifying name, server, and channel on
    the next lines. */
    s.pageName="Home"
    s.server=""
    s.channel=""
    s.pageType=""
    s.prop1=""
    s.prop2=""
    s.prop3=""
    s.prop4=""
    s.prop5=""
    /* Conversion Variables */
    s.campaign=""
    s.state=""
    s.zip=""
    s.events=""
    s.products=""
    s.purchaseID=""
    s.eVar1=""
    s.eVar2=""
    s.eVar3=""
    s.eVar4=""
    s.eVar5=""
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code=s.t();if(s_code)document.write(s_code)//--></script>
    <script language="JavaScript" type="text/javascript"><!--
    if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
    //--></script><noscript><img src="http://gfi.122.2o7.net/b/ss/gfisunbeltsoftwarecom/1/H.22.1--NS/0"
    height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
    <!-- End SiteCatalyst code version: H.22.1. -->
    <!-- SiteCatalyst Page Code -->
    
    
    <!-- Start of HubSpot Logging Code  -->
    <script type="text/javascript" language="javascript">
    var hs_portalid=27879; 
    var hs_salog_version = "2.00";
    var hs_ppa = "sunbeltsoftware.app2.hubspot.com";
    document.write(unescape("%3Cscript src='" + document.location.protocol + "//" + hs_ppa + "/salog.js.aspx' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <!-- End of HubSpot Logging Code -->
    
      
      
    
     </body>
    </html>
    
    
    But specifically I need to return "http://ec.sunbeltsoftware.com/updates/Definitions/CS3/092012/ffa7bebdc20a4e259c8eb613f27f84e113116/CSE39-EN-13116-F.sbr.sgn (or whatever .sbr.sgn file is first, as itll obviously vary as the definition file changes)

    Hope that doesn't rape the page....

    uean on
    Guys? Hay guys?
    PSN - sumowot
  • bowenbowen How you doin'? Registered User regular
    Any reason in particular you're using vbs? You can probably do this far more easily with any language of choice. I can probably whip something up but it sees silly as I'm sure you'll expand this in the future.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • DrunkMcDrunkMc Registered User regular
    edited September 2012
    @uean

    If I was doing it, I'd just do it like you're doing, but instead of writing the HTML parse it till you get to Available Full Definitions, find the next instance of .sgn, back track till a href, then make another get to download the file. Should be easy.

    @bowen

    Does PADev.net support Tomcat, MySQL (could be any DB really) and JAVA Servlets? Right now I have a GWT Project, and its mainly an NFLPicks website. And its been over 24hrs since my current site went down with little to no help from tech support. With a Game on Thursday, that's a problem.

    DrunkMc on
  • bowenbowen How you doin'? Registered User regular
    If it doesn't, I'm sure @infidel would be able to help you. It does have MySQL, and I don't see why Java servlets wouldn't work (though the port may be nonstandard for things like tomcat?)

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    MySQL yes, java servlets probably not with the current config. But it's just a linux machine that @Infidel admins - he can probably get most stuff up and running pretty quickly

  • DrunkMcDrunkMc Registered User regular
    Ah cool, thanks for the info. If these guys don't get back to me ASAP, I'll message Infidel!

  • BryonyBryony Registered User regular
    Java problem;

    So I'm writing an equals method that accepts an Apples object as an argument, then if the argument Apples object holds the same data as the calling Apples object the method returns true, otherwise false.
    public boolean equals(Apples a1) 
    	{
    		boolean fairness;
    		
    		if(applesNumber.equals(a1.applesNumber))
    		{ fairness = true; }
    		else
    		{ fairness = false; }
    		
    		return fairness;
    		
    	}
    

    My problem is that I keep getting an error that says 'int cannot be dereferenced'. If I use = instead of equals it tells me 'Incompatible types. Required: boolean; Found: int', then if I change the type in the method it gets mad because I return a boolean instead of an int.

    That Stupid Hat - A Wargaming Blog
  • EndEnd Registered User regular
    Perhaps what you wanted is == not =

    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpg
    Bryony
  • BryonyBryony Registered User regular
    Hooray! Stupid mistakes! Thanks :D

    That Stupid Hat - A Wargaming Blog
  • JHunzJHunz Registered User regular
    Don't forget to override the hashcode method if you override equals, especially if you ever intend to put any of these objects in a collection.

    bunny.gif Gamertag: JHunz. R.I.P. Mygamercard.net bunny.gif
  • InfidelInfidel Heretic Registered User regular
    Also, you're making the most common mistake, using the wrong signature.

    boolean equals(Object)

    That is the only signature you should have and implement.

    If you add equals(Apples) then that is fine and dandy, but no one else gives a shit. They'll call equals(Object) form, which is the one they are supposed to, with some instance of an Apples object. Because you didn't override it, it will return false because it is not the exact same object you are comparing to, when what you wanted to happen is have them considered equal because applesNumber was the same.

    How to write equals:
    @Override public boolean equals(Object other) {
      boolean equal = false; // just set the expected case is often easier when you get more complicated stuff happening
    
      if (other instanceof Apples) { // we only consider an object to be equal to this Apples object if it is also an Apples object
        Apples that = (Apples)other; // we know it is safe to cast it now, and easier to write what follows as "this and that" instead of constantly casting other
        if (this.applesNumber = that.applesNumber)
          equal = true;
      }
    
      return equal;
    }
    

    OrokosPA.png
  • kimekime Queen of Blades Registered User regular
    pssst, Infy, you brought back the original mistake:
    End wrote: »
    Perhaps what you wanted is == not =

    :P

    (Just in case someone ends up copying that code or something and not noticing that)

    Battle.net ID: kime#1822
    3DS Friend Code: 3110-5393-4113
    Steam profile
  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    edited September 2012
    Infidel wrote: »
    Also, you're making the most common mistake, using the wrong signature.

    boolean equals(Object)

    That is the only signature you should have and implement.

    If you add equals(Apples) then that is fine and dandy, but no one else gives a shit. They'll call equals(Object) form, which is the one they are supposed to, with some instance of an Apples object. Because you didn't override it, it will return false because it is not the exact same object you are comparing to, when what you wanted to happen is have them considered equal because applesNumber was the same.

    How to write equals:
    @Override public boolean equals(Object other) {
      boolean equal = false; // just set the expected case is often easier when you get more complicated stuff happening
    
      if (other instanceof Apples) { // we only consider an object to be equal to this Apples object if it is also an Apples object
        Apples that = (Apples)other; // we know it is safe to cast it now, and easier to write what follows as "this and that" instead of constantly casting other
        if (this.applesNumber = that.applesNumber)
          equal = true;
      }
    
      return equal;
    }
    

    This article on this issue is one of my bookmarks (coding->java).

    Monkey Ball Warrior on
    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
This discussion has been closed.