<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Vilanye's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/182401/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user Vilanye.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 15:19:17 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Dealing with long request times</title>
      <link>http://www.programmersheaven.com/mb/html/408633/408633/ReadMessage.aspx#408633</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/html/408633/408633/ReadMessage.aspx#408633"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/html/Board.aspx"&gt;HTML &amp; WEB-Design&lt;/a&gt; forum.&lt;/p&gt;I am not sure if this is the right forum but seems to be the closest.&lt;br /&gt;
&lt;br /&gt;
Although it is irrelevant to my question, my app is using Rails, and there are several places where the after submitting a form, a long time will pass before it is completed. These are not database request but calls to libraries that run applications such as nmap. This can take a while.&lt;br /&gt;
&lt;br /&gt;
Is there a non-AJAX way to be able to give the user a status update?  If I start using AJAX, then most of the application will have to use it and I am not a fan of over using AJAX. It is fine for the occasional small task but it is terrible to heavily rely on it.&lt;br /&gt;
&lt;br /&gt;
I think maybe a web browser just isn't the solution for my app and I need to make it a proper desktop application. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/html/408633/408633/ReadMessage.aspx#408633</guid>
      <pubDate>Sat, 31 Oct 2009 09:59:36 -0700</pubDate>
    </item>
    <item>
      <title>Re:  Rails in Java?</title>
      <link>http://www.programmersheaven.com/mb/ruby/393739/394670/ReadMessage.aspx#394670</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/ruby/393739/394670/ReadMessage.aspx#394670"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/ruby/Board.aspx"&gt;Ruby&lt;/a&gt; forum.&lt;/p&gt;Well there are libraries around that try to mimic ActiveRecord and they succeed somewhat but using them really lays bare the clunkiness of Java.&lt;br /&gt;
&lt;br /&gt;
I think the reason JRuby exists is because it would be next to impossible to write a flexible rails like framework in Java. You ever see JSP and Servlets? /shudder&lt;br /&gt;
&lt;br /&gt;
Don't get me wrong, Java is a powerful language and great for lots of things it just isn't as flexible as Ruby.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/393739/394670/ReadMessage.aspx#394670</guid>
      <pubDate>Tue, 04 Aug 2009 17:45:11 -0700</pubDate>
    </item>
    <item>
      <title>Calling External Programs</title>
      <link>http://www.programmersheaven.com/mb/ruby/394669/394669/ReadMessage.aspx#394669</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/ruby/394669/394669/ReadMessage.aspx#394669"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/ruby/Board.aspx"&gt;Ruby&lt;/a&gt; forum.&lt;/p&gt;I am writing a series of scripts that run and use output from a variety of network tools. What tools and what arguments will be determined at runtime, and these arguments can get complex. For example running nmap -PA -sV -O -T4 -p80,443,8080,8443,9000-10000 &amp;lt;target&amp;gt;. If the target and arguments are know before running it, it is simple, either use `...` or %x{...}, but this method seems to not take string parameters only literals, using system makes it impossible to capture output which is what I need to do. I am using open3 which works but doesn't seem to be ideal. I would like to have to be free from constructing the complete command line string, but this is the only thing that seems to work.&lt;br /&gt;
&lt;br /&gt;
If I try:&lt;br /&gt;
inp,out,err = popen3(@tool, @args)&lt;br /&gt;
inp.puts @target&lt;br /&gt;
inp.close&lt;br /&gt;
It works with one argument, but not multiple. This would be perfect because I will likely have a list of targets, but arguments may change based on other runtime criteria. The problem is that this only works with 1 argument, passing in multiple arguments as either a single string or many arguments results in failure: either a broken pipe or nmap can't see the target. So my solution is to build a single string and pass that:&lt;br /&gt;
&lt;br /&gt;
inp,out,err = popen3(@tool)&lt;br /&gt;
inp.close&lt;br /&gt;
&lt;br /&gt;
Where @tool is something like 'nmap -PA -sV -O -T4 -p80,443,8080,8443,9000-10000 &amp;lt;target&amp;gt;'. Is there a better way to accomplish this? This works but having to build a lot strings during runtime is going to slow things down considerably as I may have hundreds of targets and a dozen or more tools to run and parse data from.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/394669/394669/ReadMessage.aspx#394669</guid>
      <pubDate>Tue, 04 Aug 2009 17:40:57 -0700</pubDate>
    </item>
  </channel>
</rss>