<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vex Star &#187; Perl</title>
	<atom:link href="http://www.vexstar.com/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vexstar.com</link>
	<description>Computers and Programming</description>
	<lastBuildDate>Tue, 21 Jun 2011 01:52:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Need Perl program to parse amazon book page</title>
		<link>http://www.vexstar.com/need-perl-program-to-parse-amazon-book-page/</link>
		<comments>http://www.vexstar.com/need-perl-program-to-parse-amazon-book-page/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 16:10:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[data miner]]></category>
		<category><![CDATA[Fred Durst]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[USD]]></category>
		<category><![CDATA[Windows scheduler]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/need-perl-program-to-parse-amazon-book-page/</guid>
		<description><![CDATA[Can anyone of you leet hax0rs hack up a Perl program that can parse an Amazon book page and notify me when a used book is less than a certain amount?  I could run it through the Windows scheduler to check every 5 minutes and it would help a lot.I get paid to do [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Can anyone of you leet hax0rs hack up a Perl program that can parse an Amazon book page and notify me when a used book is less than a certain amount?  I could run it through the Windows scheduler to check every 5 minutes and it would help a lot.<br />I get paid to do that.  You can lookup WWW::Mechanize or LWP and do it yourself, though.</p>
<p>In fact, if you can show me the chunk of HTML the price on your page is in and the url, I can probably do it in shell with grep as a one-liner.  That I could do for you.<br /><span id="more-401"></span><br />but PHP is so much easier than LWP</p>
<p>and why use grep when you can use ack, it&#8217;s 25% more efficient with it&#8217;s lack of 1 letter <br />Ahh I never thought about just using grep&#8230; I&#8217;m on Windows XP so what would you recommend I use to download the page?</p>
<p>Here is the part of the page I need to match on..</p>
<p>used &amp; new&lt;/a&gt; available from &lt;span class=&quot;price&quot;&gt;$53.96&lt;/span&gt;&lt;br /&gt;<br />I saw that.  And PHP is not so much easier than LWP.  PHP is much harder than LWP.  With LWP you do this:</p>
<p>wget url</p>
<p>Real hard, right?</p>
<p>OP: Download and install LWP&#8217;s wget program, and ActivePerl and I will do it for you.<br />Thanks man, I think I already have LWP installed.  When I type:</p>
<p>perl -MLWP -le &quot;print(LWP-&gt;VERSION)&quot;</p>
<p>I get 5.803<br />Ok, are the utilities installed?  Does the command line: wget work?</p>
<p>
I guess they&#8217;re not a part of LWP no more.<br />Alright, I&#8217;ve got LWP v5.803, wget.exe v1.10.2, and Perl v5.8.7<br />Where are you man?  Don&#8217;t give up on meh!</p>
<p>Please respond.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Thanks!    <br />I can&#8217;t believe I did this for you.  I should have used an html parser, or whipped up an elite one liner, but wtf this works:</p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<p>				#!/usr/bin/perl</p>
<p>use warnings;<br />
use strict;</p>
<p>use LWP;</p>
<p># Get args &#8211; url and price<br />
my $price_limit = $ARGV[0]||die &quot;Must supply price!&quot;;<br />
my $url = $ARGV[1]||die &quot;Must supply url!&quot;;</p>
<p># Create a user agent object<br />
use LWP::UserAgent;<br />
my $ua = LWP::UserAgent-&gt;new;<br />
$ua-&gt;agent(&quot;MyApp/0.1 &quot;);</p>
<p># Create a request<br />
my $req = HTTP::Request-&gt;new(GET =&gt; $url);</p>
<p># Pass request to the user agent and get a response back<br />
my $res = $ua-&gt;request($req);</p>
<p># Check the outcome of the response<br />
if ($res-&gt;is_success)<br />
{<br />
    # Grab content and pull out price<br />
    my $content = $res-&gt;content;</p>
<p>    # If we got our price entry&#8230;<br />
    if($content =~ /class=&quot;priceLarge&quot;&gt;$d+.d+/)<br />
    {<br />
        my @lines = split(/n/, $content);</p>
<p>        my $price;<br />
        map {</p>
<p>                if($_ =~ /class=&quot;priceLarge&quot;&gt;$d+.d+/)<br />
                {<br />
                    $price = $_;<br />
                    $price =~ s/.*class=&quot;priceLarge&quot;&gt;$(d+.d+).*/$1/;</p>
<p>                    # We got our price, and its less than our limit.  Notify chode.<br />
                    if($price &lt; $price_limit)<br />
                    {<br />
                        print &quot;nFor url $url found a price of $$price which is $&quot; . ($price_limit &#8211; $price) . &quot; less than our limit of $$price_limit.nn&quot;;<br />
                        exit;<br />
                    }<br />
                }</p>
<p>            } @lines;</p>
<p>    }<br />
    else<br />
    {<br />
        die &quot;No price found at $urln&quot;;<br />
    }<br />
}<br />
else<br />
{<br />
    print &quot;Problem retrieving page: &quot; . $res-&gt;status_line, &quot;n&quot;;<br />
}</p>
</td>
</tr>
</table>
</div>
<p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>what happened to that grep one-liner </p>
<p>P.S. I told you that php would be easier than Perl LWP. 
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>It works!  I&#8217;ve been needing something like this for a while now, thanks! </p>
<p>And no, I can promise you this wasn&#8217;t homework. 
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">It works!  I&#8217;ve been needing something like this for a while now, thanks! </p>
<p>And no, I can promise you this wasn&#8217;t homework. </p></div>
</td>
</tr>
</table>
</div>
<p>Buy me a subscription to OT.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>
ok</p>
<div style="5px">
<pre style="auto">&lt;?
     # usage: grab.php [link] [price]
     preg_match('#class=&quot;priceLarge&quot;&gt;$(d+.d+)#',file_get_contents($argv[1]),$m);
     if($m[1]&lt;$argv[2]) echo &quot;nFor url {$argv[1]} found a price of ${$m[1]} which is $&quot;.($argv[2] - $m[1]).&quot; less than our limit of ${$argv[2]}nn&quot;;
?&gt;</pre>
</div>
<p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>I&#8217;m broke man, I don&#8217;t even have a sub&#8230; but I appreciate your help. </p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">ok</p>
<div style="5px">
<pre style="auto">&lt;?
     # usage: grab.php [link] [price]
     preg_match('#class=&quot;priceLarge&quot;&gt;$(d+.d+)#',file_get_contents($argv[1]),$m);
     if($m[1]&lt;$argv[2]) echo &quot;nFor url {$argv[1]} found a price of ${$m[1]} which is $&quot;.($argv[2] - $m[1]).&quot; less than our limit of ${$argv[2]}nn&quot;;
?&gt;</pre>
</div>
</div>
</td>
</tr>
</table>
</div>
<p>Your skills are impressive, but I wanted it in perl&#8230;  BTW have you seen your boy Fred Durst lately?  
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">ok</p>
<div style="5px">
<pre style="auto">&lt;?
     # usage: grab.php [link] [price]
     preg_match('#class=&quot;priceLarge&quot;&gt;$(d+.d+)#',file_get_contents($argv[1]),$m);
     if($m[1]&lt;$argv[2]) echo &quot;nFor url {$argv[1]} found a price of ${$m[1]} which is $&quot;.($argv[2] - $m[1]).&quot; less than our limit of ${$argv[2]}nn&quot;;
?&gt;</pre>
</div>
</div>
</td>
</tr>
</table>
</div>
<p>I handled errors bro. You didn&#8217;t.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>even if i handled errors it&#8217;d still be like 1/4 the size of all that perl code.  i&#8217;m not trying to brag about skills, just showing that when it comes to anything web related PHP has the upperhand on Perl.  PHP was designed for the web whereas Perl was not.</p>
<p>My first Job at 16 was as a data miner programming in Perl and later i started doing Perl/CGI, but PHP is definitely more robust when it comes to the web.  I still use Perl for most of my local scripting but when it comes to web stuff, PHP is great.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/need-perl-program-to-parse-amazon-book-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What would it take to get you into consulting?</title>
		<link>http://www.vexstar.com/what-would-it-take-to-get-you-into-consulting/</link>
		<comments>http://www.vexstar.com/what-would-it-take-to-get-you-into-consulting/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:33:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[Bank of America]]></category>
		<category><![CDATA[Bellevue]]></category>
		<category><![CDATA[contractor]]></category>
		<category><![CDATA[E*Trade]]></category>
		<category><![CDATA[health insurance]]></category>
		<category><![CDATA[long term contractor]]></category>
		<category><![CDATA[Minnesota]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[SunMicro Systems]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[UNIX/storage engineer]]></category>
		<category><![CDATA[USD]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/what-would-it-take-to-get-you-into-consulting/</guid>
		<description><![CDATA[If you are in IT and have a full time gig, what would it take to sway you to consulting?  Is it just money?  If so, what is your number?  Is it a % of your current salary or $X per year.Depends on the gig.  I have done consulting.  It&#8217;s [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you are in IT and have a full time gig, what would it take to sway you to consulting?  Is it just money?  If so, what is your number?  Is it a % of your current salary or $X per year.<br />Depends on the gig.  I have done consulting.  It&#8217;s a TOUGH gig, sometimes.  You have to be good with money, and you have to save for a rainy day!  Some months are excellent, and others are not.</p>
<p>I did consulting primarily when in school.  It was one of the few jobs that was enjoyable and would work around my school schedule while still offering reasonable pay.<br /><span id="more-384"></span></p>
<p>The hardest part is getting a good customer base.  Some customers will dump $10k in your pockets one month, but once you fix their problem it could be months before they need you again.  You need to have enough clients where you can stay reasonably busy to keep paying your bills.  Also, you need to manage your client list so that you&#8217;re not over-extended.  If you have a hundred people that depend on you to be there when you need them, you may go a week without any work, but the next week they may all need you at once.  There&#8217;s a definite balance you have to work out.  I was part of a group that had some friendly competition.  There were about four of us and we each had our own clients&#8230;  But if one of us was booked and needed help, the other people were generally available to help out.  You got paid when you helped out, and you paid others when they helped you.  It worked out very well.</p>
<p>
Interesting.  I&#8217;ve never gotten in on that type of work.  When I&#8217;ve done contracing/consulting, it was usually an hourly contract with a particular company where I worked on a project for a certain amount of time.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">
<p>Interesting.  I&#8217;ve never gotten in on that type of work.  When I&#8217;ve done contracing/consulting, it was usually an hourly contract with a particular company where I worked on a project for a certain amount of time.</p></div>
</td>
</tr>
</table>
</div>
<p>that sounds more like a temp-to-hire position with no possibility of hire.</p>
<p>
When I did consulting it covered a very diverse gamut from simple software issues, to hardware builds, to complex networking and system administration.  I found self-made, but educated professionals proved to be the best clients.  These included a lot of doctors, successful entrepreneurs, architects, home/building inspectors, electricians and general contractors, etc.  They appreciated quality, and generally had the money to pay for good product.  They also valued service and knowledge.<br />Theres a difference between contracting long time for a company and temp to hire with no possibility of hire.  Typically temp-to-hire type contracts pay around the same as you&#8217;d get paid if you worked there full time.  You also typically will get benefits.</p>
<p>I&#8217;ve done contracting &quot;long term&quot; for companies before that paid significantly (50-60%) more than the full time position paid, with no benefits or vacation.</p>
<p>Alot of people don&#8217;t realize that even if you get paid a TON of extra money consulting, by the time you subtract out health insurance (can be up to $1500/mo for a family of 3), days off (think about the normal days off you have, 5-10 holidays, 10-15 PTO/sick days, now imagine not getting paid for any of them, if you took 20 days off a year you&#8217;d be losing a full month&#8217;s pay), plus less job stability, it starts to look a lot less attractive.</p>
<p>At my current job I was a long term contractor and applied for/took an internal position when it opened up.  The pay actually ended up being slightly more because of some extra fringe benefits I get above and beyond normal, and the health insurance (for a family of 3) is basically free.  But I do miss getting paid for overtime.</p>
<p>Personally I say you can&#8217;t buy down stress with money, and having a permanent job is a lot less stress than contracting &#8211; even if you have a long term contracting position if the company needs to let people go you&#8217;ll almost always be the first to be picked.<br />would never do consulting now at this point of my life, priorities have changed throughout my career and the money is not as important anymore, although I am getting more than enough.</p>
<p>time is most important now.</p>
<p>maybe when i was younger with less responsibilities&#8230;
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>well, that&#8217;s quite often how things work in the corporate world.  the reasoning that i&#8217;ve heard from different contractors was:<br />
- they like the money.<br />
- they have health benefits through their wife/husband and don&#8217;t need overlap.<br />
- they like the freedom of not being involved in office politics.  quite often they are there to work on a particular project and not get involved with the day to day BS of a company.<br />
- getting to work in many different environments through short to medium term contracts instead of just being stuck in the same one for years.</p>
<p>
some of these things interest me.  i&#8217;ve lookat at contracting because i can get around $100k more as a contractor.  it isn&#8217;t doubling my salary, but it is a pretty decent chunk of it.  so, it seems enough to cover the rest of the issues including health insurance (figure aroune $20k/year for family) and vacation time.  i&#8217;m just not sure if i&#8217;d be willing to commit.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">- they like the money.<br />
- getting to work in many different environments through short to medium term contracts instead of just being stuck in the same one for years.</div>
</td>
</tr>
</table>
</div>
<p>those are the main reasons i tried consulting.<br />
great $$$ plus being exposed to a lot of stuff.</p>
<p>I got sick of it because of the travel though.  </p>
<p>The consulting firm I worked for was based in Bellevue, WA (Ernst &amp; Young).<br />
My assigned clients with them were:<br />
Bank of America (NJ)<br />
SunMicro Systems (SF)<br />
E*Trade (SF)</p>
<p>I live in MN.  <br />
Moving was not an option because my wife has a stable job here.<br />
this was also way back during the height of 9/11 so tightened airport security made the experience not good.<br />I did consulting for a while. It was purely word-of-mouth, but I claim I was a victim of my own success. I took care of issues/requests so quickly, that my call-backs were few and far between &#8211; as P07 mentioned, there may be months between calls from clients and I didn&#8217;t feel like spending the money to market myself. Besides, it was a moonlighting gig for me anyway.</p>
<p>My suggestion: If you have a current job, keep it. Start moonlighting and building a base. Spread out some cards, get the word out, get recommendations, setup a website, and let it build. Once you get to a point where evenings and weekends aren&#8217;t good enough, then reevaluate where you are at.</p>
<p>Some people get going pretty quickly.. but it depends on your drive, and often forgotten variable: your market.</p>
<p>Find a niche that has limited support, and you&#8217;re golden. Me? I do infrastructure consulting. Not many of those around, and I do well. It&#8217;s purely word of mouth.. and I stay busy.<br />$$$$</p>
<p>You can make a lot more cash consulting, if you&#8217;re in demand.  I just do it for the money.<br />I do miss the money from having the stead stream of clients. </p>
<p>The &quot;one here and there&quot; deal doesn&#8217;t pay as well; or at least isn&#8217;t as dependable.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">that sounds more like a temp-to-hire position with no possibility of hire.</p>
<p>
When I did consulting it covered a very diverse gamut from simple software issues, to hardware builds, to complex networking and system administration.  I found self-made, but educated professionals proved to be the best clients.  These included a lot of doctors, successful entrepreneurs, architects, home/building inspectors, electricians and general contractors, etc.  They appreciated quality, and generally had the money to pay for good product.  They also valued service and knowledge.</div>
</td>
</tr>
</table>
</div>
<p>Actually, it&#8217;s called &quot;on-site support&quot;. When the client doesn&#8217;t need your support anymore, you get moved to another client that does.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">I do miss the money from having the stead stream of clients. </p>
<p>The &quot;one here and there&quot; deal doesn&#8217;t pay as well; or at least isn&#8217;t as dependable.</p></div>
</td>
</tr>
</table>
</div>
<p>The key thing is to keep your day job until you have multiple steady clients.  Which means some fucked up hours for a while.  For some reason lately it seems I could get enough work for 5 guys if I tried.  Has me thinking about opening a shop, but I&#8217;m not sure how to transition from &quot;I&#8217;ll do the work&quot; to &quot;we&#8217;ll do the work&quot; and not fuck things up.<br />it&#8217;s weird.  i&#8217;ve never even considered the model you guys are referring to other than with PC support.</p>
<p>in the market my skills are in, i couldn&#8217;t imagine having much place for having a bunch of small clients that i bounce around with.  the stuff i work on is generally very expensive equipment, so the companies that can afford it usually have their own staff to maintain it.  they may bring in contractors to help fill in the gaps when they just can&#8217;t get headcount or for particular projects like migrations and the like, but that&#8217;s about it.<br />I get hired to build things that other people maintain, or to clean up shite perl code and make it decent.  It works best if you can show up, do your thing, then leave it to others.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">it&#8217;s weird.  i&#8217;ve never even considered the model you guys are referring to other than with PC support.</p>
<p>in the market my skills are in, i couldn&#8217;t imagine having much place for having a bunch of small clients that i bounce around with.  the stuff i work on is generally very expensive equipment, so the companies that can afford it usually have their own staff to maintain it.  they may bring in contractors to help fill in the gaps when they just can&#8217;t get headcount or for particular projects like migrations and the like, but that&#8217;s about it.</p></div>
</td>
</tr>
</table>
</div>
<p>Yeah, theres not a huge market for short term contractors working on enterprise level stuff.  Usually contractors would be brought in long term.  Then again, a lot of full time positions doing what we&#8217;re doing pay more than independent contractors get paid anyway.  If you can find a contract position doing this, it pays even more, but its quite unreliable and by the time you factor out vacation/PTO/benefits/etc it starts to look less attractive.  Also by the time people get to this point in their career they usually have a family and that makes job stability look much more attractive than money.<br />There is an ENORMOUS market to work on enterprise stuff.  But its to build, not maintain.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>i was just going to say that.  in my area, whenever i look for jobs it is probably a 10 to 1 ratio of short term contracts to long term or full time positions.  many companies are willing to bring the expertise in house to maintain, but to build needs a higher level of understanding and expertise that they may not need long term.  say you have a team that is fine for supporting your servers, but maybe not the greatest for designing a fully redundant, clustered solution.  so, you&#8217;ll bring in the resource to do that and do a knowledge transfer to your team instead of paying the premium for expertise you may not need for many years to come.<br />
another circumstance is if the level of work is increasing significantly for a short term due to a project.  i know at my last job we brought in a contractor for 6 months to assist with an XP1024 to DMX3 migration simply because my team was spread too thin at the timie.  once the migration was completed, we didn&#8217;t need the extra man (or so my upper management thought).<br />Most consulting work I get thrown my way from monster is like, &quot;Hack our enterprisey internal app J2EE blah blah blah.&quot;  They pay well, but thats the worst kind of work!  Trapped in a bloated framework doing apps noone really likes in the first place probably written by Indians who didn&#8217;t give a shit.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>
yeah, same here.  i get all kinds of emails with shit like that and i have to respond saying, &quot;did you even look at my resume?  i&#8217;m a UNIX/storage engineer, not a programmer.  stop sending me email before i mark you spam.&quot;<br />Funny thing happened to me today.  My old employer contacted me to see if I would consult for them for a few weeks while things are going to get rough for them in the next few weeks.  They are offering me a bit, 200/hr, but I don&#8217;t think I will take it.  I don&#8217;t have the time, but they are hurting pretty badly and I kinda feel bad letting my old bosses down.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/what-would-it-take-to-get-you-into-consulting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP VS Ruby on Rails. Which one is best for a beginner?</title>
		<link>http://www.vexstar.com/php-vs-ruby-on-rails-which-one-is-best-for-a-beginner/</link>
		<comments>http://www.vexstar.com/php-vs-ruby-on-rails-which-one-is-best-for-a-beginner/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:33:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ Standard Template Library]]></category>
		<category><![CDATA[director]]></category>
		<category><![CDATA[HATES PHP]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Php.net]]></category>
		<category><![CDATA[professor]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[security professor]]></category>
		<category><![CDATA[sloppy programmer]]></category>
		<category><![CDATA[software engineering degree]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[web framework]]></category>
		<category><![CDATA[web work]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/php-vs-ruby-on-rails-which-one-is-best-for-a-beginner/</guid>
		<description><![CDATA[Obviously I will also be needing to implement MySQL in there as well. Well? Which would you suggest for a beginner?I&#8217;ve never seen, nor really know anything about ruby, so my vote is PHP 









How long would it take someone to learn PHP? How long before I could edit stuff, etc&#8230;?









Do you have any programming [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Obviously I will also be needing to implement MySQL in there as well. Well? Which would you suggest for a beginner?<br />I&#8217;ve never seen, nor really know anything about ruby, so my vote is PHP 
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>How long would it take someone to learn PHP? How long before I could edit stuff, etc&#8230;?<br /><span id="more-383"></span>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Do you have any programming experience?<br />
If you know C or javascript you&#8217;ve got a good head start, then its just a matter of learning the functions.</p>
<p>
Rails is mostly a framework &#8230;there are tons of PHP frameworks out there including PHP on Rails ()</p>
<p>I like CodeIgniter<br />I don&#8217;t know any other programming language. I know HTML, that&#8217;s about it.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>So for web work you know what you want the code to output&#8230;that is at least a start.</p>
<p>I would download Visual Studio Express and either buy an intro C# book or just go through some tutorials. That will give you some basic understanding of how to handle strings and basic operators, etc. Will help you start thinking in terms of objects and stuff&#8230;then the transition to php will be pretty easy.</p>
<p>Some people might disagree with me but I think C# + the Visual Studio Express IDE is a pretty easy way to step into programming.<br />I haven&#8217;t played much with Ruby on rails (or Ruby for that matter)..</p>
<p>That being said, coming from a academic background (I&#8217;m a senior CS student), with experience in the C based languages, I found PHP pretty easy to pick up.  As someone stated above, it&#8217;s really just about learning the sytax and functions.  Php.net is an excellent resource for that; I have it bookmarked and find myself refering to it all the time (and I have several PHP books in my library).</p>
<p>For conversation, our security orientated professor HATES PHP.  He pushes Ruby becuase he claims that PHP is an unsecure language.  I dunno, I personally don&#8217;t feel that I have a valid opinion here, but I understand injection attacks, and how to program around them.  So far non of the stuff I&#8217;ve done has had any security issues, and I know for a fact that he (the security professor) was poking around a website I did for the school (which means he was more than likely trying to fuck with it &#8211; he&#8217;s told me before that he would be doing such).<br />God, I wish RoR would just die already. Only good thing it brought was more discussion about frameworks.</p>
<p>Start small with PHP and learn how it works. Write a basic website from scratch where you can upload images. From there, learn PHP with a good framework. Zend and Symfony are the 2 I would recommend. I&#8217;ve been using PHP since version 3, it&#8217;s not hard to pick up.</p>
<p>How much do you know about OOP? It&#8217;s a practice you&#8217;ll want to get used to as well.</p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<p>				For conversation, our security orientated professor HATES PHP. He pushes Ruby becuase he claims that PHP is an unsecure language.</p>
</td>
</tr>
</table>
</div>
<p>It&#8217;s not the language, it&#8217;s the developers who write shitty code.<br />Thanks, everybody. Does anyone have some book suggestions? I&#8217;ve always wanted to be able to write in PHP, or some sort of programming language like that. I would like to be able to make sites, write code, edit code, etc&#8230; For example here is one thing I would like to do;</p>
<p>I have a video CMS. It&#8217;s not a YouTube clone or anything like that. I want to be able to edit the CMS, and add some mods to it of my own. In the Admin Panel, you can add a slew of different files and different file types. I always add Local Media, videos I have hosted myself. When you add media, it&#8217;s the typical stuff. Category, Date To Add, Thumbnail (upload), Title, Description. I want to add a couple custom fields. I want to be able to add some custom fields that allow me to put in the year of the film that was made. Also I want to be able to put in the name of the director.<br /> is a good place to start</p>
<p>Start small and work your way up.<br />Thanks once again to all. After just starting to play with PHP a bit, I have already realized its power. I knew it was a powerful tool, but this honestly becoming fun. As far as the net goes, I haven&#8217;t been this intrigued in quite some time. I hope I can become a force with the knowledge of PHP I will obtain. So far I haven&#8217;t really done much, but I feel I&#8217;m moving a long quickly.<br />There really isn&#8217;t any scripting language that&#8217;s good for a beginner. Unfortunately, that seems to be the only kind of language available for web development.</p>
<p>Try downloading Visual Web Developer 2008 Express Edition from Microsoft. It&#8217;s free, and at least ASP.NET is similar to traditional, strongly-typed OOP languages.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>ASP.NET is not a strongly typed OOP language. It&#8217;s a web framework.</p>
<p>I don&#8217;t believe web development in general would be the best for a beginning developer depending on your goal. If you just want to bang out a couple of small websites, either PHP or RoR will work just fine. If you really want to LEARN how to write good software, forget all of the html/css/graphic and presentation that come with web development and learn how to write software first<br />PHP is a fine place to start &#8211; as long as you understand that the way you are programming is more like widdling a piece of wood than building a house.  You can&#8217;t build a house worth a shit that way, but you can widdle a fine piece of wood.  The technique you&#8217;re learning doesn&#8217;t scale to large projects.  For that you would want something more like Ruby/RAILS, which, despite its much lauded database scalability issues, is designed to allow large groups to work on complex systems efficiently.  There are a different set of concerns than &quot;make a language easy for beginners doing personal home pages,&quot; and at some point if you keep programming you need to learn those differences.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">ASP.NET is not a strongly typed OOP language. It&#8217;s a web framework.</p>
<p>I don&#8217;t believe web development in general would be the best for a beginning developer depending on your goal. If you just want to bang out a couple of small websites, either PHP or RoR will work just fine. If you really want to LEARN how to write good software, forget all of the html/css/graphic and presentation that come with web development and learn how to write software first</p></div>
</td>
</tr>
</table>
</div>
<p>I didn&#8217;t say ASP.NET was a strongly-typed language, I said it was similar. There really aren&#8217;t any strongly-typed interpreted languages, as far as I know; I guess it&#8217;s too difficult to implement. All I was saying, though I didn&#8217;t really say it right, is that at least ASP.NET uses VB.NET and C#.NET, which are themselves strongly-typed, even if the parts used in ASP.NET aren&#8217;t the advanced stuff.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">God, I wish RoR would just die already. Only good thing it brought was more discussion about frameworks.</p>
<p>Start small with PHP and learn how it works. Write a basic website from scratch where you can upload images. From there, learn PHP with a good framework. Zend and Symfony are the 2 I would recommend. I&#8217;ve been using PHP since version 3, it&#8217;s not hard to pick up.</p>
<p>How much do you know about OOP? It&#8217;s a practice you&#8217;ll want to get used to as well.</p>
<p>
It&#8217;s not the language, it&#8217;s the developers who write shitty code.</div>
</td>
</tr>
</table>
</div>
<p>How is a discussion about frameworks a good thing? All it does is make it easier to do things that a language isn&#8217;t well-suited for, by packaging the terrifyingly-complex code needed to do those things in another file that you don&#8217;t have to look at if you&#8217;re the squeamish sort.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>asp.net is language agnostic. it is not itself a language. that&#8217;s what c# and vb.net are for
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>sounds like you need to learn a few things about frameworks if you think all they are is include files
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>(shrug) I needed a way to refer to .NET as it applies to web development. What&#8217;s the right term for that, if ASP.NET isn&#8217;t it?
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Maybe so. As far as I know, that&#8217;s all they&#8217;re good for.</p>
<p>What is a framework if is isn&#8217;t just a generic term for things like the C++ Standard Template Library?
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">Maybe so. As far as I know, that&#8217;s all they&#8217;re good for.</p>
<p>What is a framework if is isn&#8217;t just a generic term for things like the C++ Standard Template Library?</p></div>
</td>
</tr>
</table>
</div>
<p>I&#8217;m not trying to be a dick but&#8230; how did you get a CS degree but you don&#8217;t know what an application framework is?
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>php is a great language because it&#8217;s so extremely forgiving. i work as a php developer, by the way. good money. (i have a bachelor&#8217;s in computer science) also, note that HTML is not a programming language, it&#8217;s a markup language and they&#8217;re completely different. i agree with SLED when he says..</p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>but if you want to hop right in to either PHP or RoR, i would choose PHP and start at </p>
<p>it&#8217;s free, and they do a good job of leading you by the hand. just have to make sure you have a server with php-installed first before you can start. good luck!
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<p>				php is a great language because it&#8217;s so extremely forgiving. i work as a php developer, by the way. good money. (i have a bachelor&#8217;s in computer science)</p>
</td>
</tr>
</table>
</div>
<p>And it&#8217;s also a huge bane to PHP. I&#8217;ve seen some of the sloppiest and insecure code in PHP. Possibly worse then obfuscated PERL or ASM. Enter frameworks, they can help with this if the user takes advantage of it. (Input handling).</p>
<p>I&#8217;d say close to 50% of shitty PHP code I&#8217;ve seen is due to poor input handling where I&#8217;ve been able to exploit assumptions made by developers. Wordpress (the abortion that survived and became famous) included.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">And it&#8217;s also a huge bane to PHP. I&#8217;ve seen some of the sloppiest and insecure code in PHP. Possibly worse then obfuscated PERL or ASM. Enter frameworks, they can help with this if the user takes advantage of it. (Input handling).</p>
<p>I&#8217;d say close to 50% of shitty PHP code I&#8217;ve seen is due to poor input handling where I&#8217;ve been able to exploit assumptions made by developers. Wordpress (the abortion that survived and became famous) included.</p></div>
</td>
</tr>
</table>
</div>
<p>absolutely, but then again what sloppy programmer is going to take advantage of the frameworks in the first place?
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>True. Not necessarily sloppy, but lazy or ignorant.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Not to be a dick, but I have a software engineering degree, for the millionth goddamn time. I do design; choosing frameworks is the developer&#8217;s problem.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>You do design, but you don&#8217;t know what a framework is?  No.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/php-vs-ruby-on-rails-which-one-is-best-for-a-beginner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Text parsing help&#8230; perl?</title>
		<link>http://www.vexstar.com/text-parsing-help-perl/</link>
		<comments>http://www.vexstar.com/text-parsing-help-perl/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 16:33:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[search/replace]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/text-parsing-help-perl/</guid>
		<description><![CDATA[Ok, I know there has to be a way to do this easier than what I&#8217;m doing now.  I have a list like this:
c5t50060E80000000000000811C00000B0Cd0s2
c5t50060E80000000000000811C00000B0Bd0s2
c5t50060E80000000000000811C00000B0Ad0s2
I want to strip out the c5t at the beginning and the d0s2 at the end.  I figure I can dump it into a text file and just do a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ok, I know there has to be a way to do this easier than what I&#8217;m doing now.  I have a list like this:<br />
c5t50060E80000000000000811C00000B0Cd0s2<br />
c5t50060E80000000000000811C00000B0Bd0s2<br />
c5t50060E80000000000000811C00000B0Ad0s2</p>
<p>I want to strip out the c5t at the beginning and the d0s2 at the end.  I figure I can dump it into a text file and just do a search/replace in vi, but I do shit like this enough that I&#8217;d like to understand how to do it with perl.</p>
<p>Anyway, this list is the std out of another command.<br /><span id="more-370"></span><br />command | sed -e &quot;s:c5t::&quot; | sed -e &quot;s:d0s2::&quot;</p>
<p>i know i could do it with sed too and probably awk if i knew it well enough, but i figured this would be a good place to start poking around perl.<br />i&#8217;d just use cut in this situation to get the wwid out of the solaris disk name</p>
<p>command | cut -b 4-35</p>
<p>only works if you have less than 10 controllers, else need logic for the extra digit in c<br />to do that to a file&#8230; the regex might look like:<br />
perl -pi -w -e &#8217;s/(^c5t|d0s2$)//g&#8217; filename
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">to do that to a file&#8230; the regex might look like:<br />
perl -pi -w -e &#8217;s/(^c5t|d0s2$)//g&#8217; filename</div>
</td>
</tr>
</table>
</div>
<p>that worked simply with:<br />
command | perl -pi -w -e &#8217;s/(^c5t|d0s2$)//g&#8217;</p>
<p>ok, i see what is going on with that.  the &#8217;s/(^c5t|d0s2$)//g&#8217; seems like something that should work in sed or even vi, but it doesn&#8217;t.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">that worked simply with:<br />
command | perl -pi -w -e &#8217;s/(^c5t|d0s2$)//g&#8217;</p>
<p>ok, i see what is going on with that.  the &#8217;s/(^c5t|d0s2$)//g&#8217; seems like something that should work in sed or even vi, but it doesn&#8217;t.</p></div>
</td>
</tr>
</table>
</div>
<p>sed and vi probably omit the first &quot;s&quot;</p>
<p>
edit:nm.   try putting a &#8216;%&#8217; before the s for vi sed may be the same, dunno&#8230;</p>
<p>
%s/(^c5t|d0s2$)//g
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>i&#8217;m familiar with the search and replace format and it is identical except the OR that you have in there.  so, in perl it seems to allow for ^c5t OR d0s2$.  sed and vi just seem to treat (^c5t|d0s2$) as a single string.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/text-parsing-help-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming for Beginners</title>
		<link>http://www.vexstar.com/programming-for-beginners/</link>
		<comments>http://www.vexstar.com/programming-for-beginners/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 18:05:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[ASM programmer]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[assembly programmer]]></category>
		<category><![CDATA[bad programmer]]></category>
		<category><![CDATA[bad software]]></category>
		<category><![CDATA[bash programmer]]></category>
		<category><![CDATA[beautiful systems]]></category>
		<category><![CDATA[Bill Clinton]]></category>
		<category><![CDATA[C programmer]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Can]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[client-side web dev]]></category>
		<category><![CDATA[Colonel]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[CS professor]]></category>
		<category><![CDATA[few tools]]></category>
		<category><![CDATA[functional applications]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Governor]]></category>
		<category><![CDATA[hand tools]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[interpreter]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[limited programmer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[object-oriented programming]]></category>
		<category><![CDATA[online apps]]></category>
		<category><![CDATA[online web application]]></category>
		<category><![CDATA[Pascal]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[power tools]]></category>
		<category><![CDATA[powershell programmer]]></category>
		<category><![CDATA[practices/software]]></category>
		<category><![CDATA[Pragmatic Programmer]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[Programming for Beginners]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[real solution]]></category>
		<category><![CDATA[regular applications]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[script interpreter]]></category>
		<category><![CDATA[skilled programmer]]></category>
		<category><![CDATA[software developers]]></category>
		<category><![CDATA[software piece]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TCP/IP]]></category>
		<category><![CDATA[ultimate programmer]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Wait]]></category>
		<category><![CDATA[web app]]></category>
		<category><![CDATA[Web applications]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[web browser]]></category>
		<category><![CDATA[web coding]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Web programming]]></category>
		<category><![CDATA[web resources]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/programming-for-beginners/</guid>
		<description><![CDATA[I am looking to get into programming/Dev work.
I have been doing HW/network/tech support for a long time and I am burned out on it. I was talking to one of our developers at work and he suggested reading up on and starting with C# and ASP.net.
Any suggestions/thoughts/book recommendations for a newby? I have absolutely 0 [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I am looking to get into programming/Dev work.<br />
I have been doing HW/network/tech support for a long time and I am burned out on it. I was talking to one of our developers at work and he suggested reading up on and starting with C# and ASP.net.</p>
<p>Any suggestions/thoughts/book recommendations for a newby? I have absolutely 0 knowledge as far as programming works.<br />
I saw the Head First book on amazon and was wondering about it.<br />
Think it will be good for someone who knows absolutely nothing about programming?<br />
<span id="more-217"></span><br />
I hate those books. They teach you how to write code, not how to design software. If you don&#8217;t have a good basis, you&#8217;ll never develop anything other than <em>really</em> bad software.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Any book/Website/Tutorial suggestions?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>The Pragmatic Programmer. Code Complete.</p>
<p>Thats&#8230; from journeyman to master.  And so not really a good first book, huh?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>He asked for my book recommendation. The truth is that for coding, most developers don&#8217;t read books anymore. Theory and design are the areas where books are still really relevant as a format.<br />
But most people DID read one book to learn how to program whatsoever in the first place.  Which is what he&#8217;s asking for.  That first book.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I suppose it depends on your goal. If you want to be able to write one simple program in one language, by all means, buy the &#8220;teach me this language in 5 minutes&#8221; book, hack it together, and be done with it. If you want to learn how to write software, design is more important, and you <em>should</em> start learning concepts like DRY right away.<br />
No.  You need to play around with basic logic and write some simple programs before reading a book that is supposed to take you from intermediate to advanced.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Hence my hello world link.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Fine, google &#8220;beginning &lt;whatever language&gt;&#8221;</p>
<p>My complaint with those books is that they dive into straight into things that you <em>shouldn&#8217;t</em> be learning, until you have a better understanding of what the hell you&#8217;re doing. So people end up copying samples in the books to accomplish what they want, and hacking a ridiculously bad application together. Those books lead to <em>bad</em> software.<br />
The only way to learn to program is to accomplish little tasks.  You don&#8217;t need, and shouldn&#8217;t be worried about, more advanced concepts while you are doing that.<br />
I bought Head First Java when I was younger starting out&#8230;</p>
<p>I thought it was pretty good.  It seemed like it more/less encompassed my CS I/II classes (which were in Java), and I much preferred it to the book required for those classes.</p>
<p>You will still probably have questions/trouble with some of the concepts, but there are plenty of places on the net that can answer them better and with more detail than a book.</p>
<p>I&#8221;m a senior doing CS, and I kinda feel like most of my schooling could have been learned via reading and/or asking questions on various forums.  Mainly what it did was push me to actually WRITE code (which is what it takes in the end) but I feel the most pertinent topics to actually coding in the real world were learned by myself in jobs, or from listening to other software developers&#8230; not in a classroom or in a book.<br />
Well so far I am looking at  and .</p>
<p>I also thought about  one but it is from 2002 and I think it might be out of date.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I agree, and that&#8217;s my point about the head first books. They&#8217;re very much oriented toward moving from &#8220;I&#8217;ve never seen this language&#8221; to &#8220;I&#8217;ve written an application that does something useful&#8221; in as short a span of time as possible. Which isn&#8217;t really a good way to learn a language, let alone learn how to program.<br />
Actually, thats the only way to learn a language or how to program thats worth a crap.  Otherwise people will give up.  They need to apply what they are learning to solve real problems.  Your complaint is that people don&#8217;t learn more.  Thats fine.  But these books form a good introduction, and your books don&#8217;t.<br />
just a side note, if you are a college/university student right now a lot of schools offer free access to online resources.  for instance the library at my university has a subscription to safari books online which is loaded with programming books that you can read for free.  anyone who is a student should check it out to see what their school offers.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I suppose it depends on the person more than the book. My complaint is that those books lead directly to bad software.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Honestly, I think it is much better to first get a grip of a language by actually putting it into practice writing simple programs for yourself first.  Only once you know the language fairly well would I bother with reading up about the more advanced design concepts etc.  Until you get to a good level there will be absolutely no need for you to learn them and they may mean nothing to you since you&#8217;ve never coded before.</p>
<p>Most people, unless they are really driven, motivated or stubborn will need to see some results (like writing various applications) when learning something or they will just give it up as being too hard/slow/boring.  Getting an intro book is the way to go imo.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>If you don&#8217;t know how to write code&#8230;.  then how can you design a good software piece?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">The Pragmatic Programmer. Code Complete.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Both are great books and sitting in my collection but they are not intended for someone who has never written code before.<br />
You need to learn to code before you can develop software just like you need to learn how to use the tools in your workshop before you build yourself some furniture.</p>
<p>The head first books teach you how to code and they do it well. They give you a strong base for developing software which no book can teach you how to do which you learn through practice and mentors(IMO)<br />
I order the Head First book and Download the Visual Studio 2008 Express from MS. Cant wait for the book to show up. Luckily I have allot of Devs at work that I ca bug for help/advice.<br />
You should have a basic &#8220;coding for idiots&#8221; book but combine it with Code Complete or Pragmatic Programmer.</p>
<p>I suggest doing the following:<br />
Begin learning syntax and then look for chapters out of one of the two style books that relate to the syntax you just learned.</p>
<p>Really though, if you are working for a company with software developers you should probably look into having the company put you through some continuing education programming classes.  Look for something taught by a person who is working in the industry (sometimes they may want you to write to &#8220;their style&#8221; but otherwise you will get an idea of what you can expect).</p>
<p>Syntax == the easiest part of programming language.</p>
<p>The biggest bitch is learning all the little API&#8217;s, frameworks, packages etc.   and then actually knowing when and where to apply them.<br />
Hey, just saw this thread.  I know it&#8217;s old but&#8230; I wanted to jump in and say the Head First books have a lot of information and they are worth the money.  You just have to get past some of the retarded things they say.  Also, this book was helpful to me<br />
I&#8217;ve sat down to learn manys a programming language, but by far the most beneficial stuff I have ever learned is HTML &amp; CSS, Javascript and any server-side language (currently learning &amp; loving Django on Python).</p>
<p>I would direct anyone towards the web and away from stuff like C. A basic knowledge of it all is very very handy however, but beyond that I will only go back to mastering any of that old stuff if/when a project absolutely needs it and won&#8217;t work on the web.</p>
<p>Just how I feel.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I&#8217;ve sat down to learn manys a programming language, but by far the most beneficial stuff I have ever learned is HTML &amp; CSS, Javascript and any server-side language (currently learning &amp; loving Django on Python).</p>
<p>I would direct anyone towards the web and away from stuff like C. A basic knowledge of it all is very very handy however, but beyond that I will only go back to mastering any of that old stuff if/when a project absolutely needs it and won&#8217;t work on the web.</p>
<p>Just how I feel.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>&#8230;Why? Web applications and regular applications serve completely different needs and uses. And with the advent of .Net, you can use programming languages for web apps.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>What makes you think web applications and &#8216;regular&#8217; applications serve completely different purposes?  Most web apps were once desktop apps.  There isn&#8217;t all that much difference between coding for browsers and coding for desktop environments.</p>
<p>And ever since I checked&#8230; programming languages were always the only way to make web apps.</p>
<p>Am I detecting Engrish?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I&#8217;ve sat down to learn manys a programming language, but by far the most beneficial stuff I have ever learned is HTML &amp; CSS, Javascript and any server-side language (currently learning &amp; loving Django on Python).</p>
<p>I would direct anyone towards the web and away from stuff like C. A basic knowledge of it all is very very handy however, but beyond that I will only go back to mastering any of that old stuff if/when a project absolutely needs it and won&#8217;t work on the web.</p>
<p>Just how I feel.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Boooooooo.  Learn C.  Develop an appreciation for how things work, and get a feel for the pros of a language that is syntactically small.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I know C. There&#8217;s just nothing I want to do with it.</p>
<p>I&#8217;ve also touched on some assembly &#8211; I&#8217;ve learned enough about how things work. Now it&#8217;s time to learn how things get done.</p>
<p>Knowledge of C and other programming languages is very beneficial . . . I just wouldn&#8217;t.. do anything with them.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Syntax == the easiest part of programming language.</p>
<p>The biggest bitch is learning all the little API&#8217;s, frameworks, packages etc.   and then actually knowing when and where to apply them.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I think the hardest part of programming is neither the syntax nor the logic nor the semantics; it&#8217;s learning how to start a thought at the beginning and think it through to the end <em><strong>before</strong></em> trying to write it down. Nobody ever wrote good code by sitting down at the keyboard and saying &#8220;Que sera, sera.&#8221;<br />
I agree that he should stay away from web coding until he&#8217;s learned at least one good, object-oriented, strongly-typed programming language. I&#8217;ve never seen programming languages more horrifyingly disorganized and/or single-purpose than the shit people write web pages and server-side scripts with: Ruby, Perl, PHP, Python, etc&#8230;they all suck because they&#8217;re all hacks of good languages that were made quickly to serve a single purpose, with no thought given to their quality or flexibility. Even JavaScript is bad, but at least it&#8217;s old enough (and subsidized enough) that <em>most</em> of its deficiencies have been addressed.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>is your coding as good as your cakes?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">What makes you think web applications and &#8216;regular&#8217; applications serve completely different purposes?  Most web apps were once desktop apps.  There isn&#8217;t all that much difference between coding for browsers and coding for desktop environments.</p>
<p>And ever since I checked&#8230; programming languages were always the only way to make web apps.</p>
<p>Am I detecting Engrish?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Except, you know, that for the foreseeable future, there are half a billion things that mean quite a few programs are restricted to running locally. Anything critical will always be restricted to running locally. Network outages are a reality, and businesses are not going to want to have everyone at 0 productivity because the apps they use for work are on a hosed server. The business computer world will never return to the days of thin clients, simply because any downtime is money lost, and when an entire company has to shut down for hours at a time, that&#8217;s a HUGE amount of money lost.</p>
<p>Because, you know, PHP, etc, are all real programming languages</p>
<p>Scripting language != real programming language, such as C++, or Java.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Except, you know, that for the foreseeable future, there are half a billion things that mean quite a few programs are restricted to running locally. Anything critical will always be restricted to running locally. Network outages are a reality, and businesses are not going to want to have everyone at 0 productivity because the apps they use for work are on a hosed server. The business computer world will never return to the days of thin clients, simply because any downtime is money lost, and when an entire company has to shut down for hours at a time, that&#8217;s a HUGE amount of money lost.</p>
<p>Because, you know, PHP, etc, are all real programming languages</p>
<p><strong>Scripting language != real programming language, such as C++, or Java.</strong></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>what?</p>
<p>that&#8217;s the stupidest thing i&#8217;ve ever heard.  a scripting language is a programming language.  that is unless adding &#8216;real&#8217; in front qualifies a language in some special manner of your own design.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>That&#8217;s true too. I just got stuck in with PHP and reaching dead ends when I wanted to change shit. And that&#8217;s how I learned. Just gotta trudge onwards trying to grasp the best ideas for development, or at least that&#8217;s what I&#8217;ve been trying.</p>
<p>What books would anyone recommend for teaching about programming practices/software engineering, preferably geared towards Python, but not necessarily?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">What makes you think web applications and &#8216;regular&#8217; applications serve completely different purposes?  Most web apps were once desktop apps.  There isn&#8217;t all that much difference between coding for browsers and coding for desktop environments.</p>
<p>And ever since I checked&#8230; programming languages were always the only way to make web apps.</p>
<p>Am I detecting Engrish?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>the only real difference between web apps and desktop apps is the interface in which they communicate with the user.  I mean, CGI apps can be written in plain old C if you want.<br />
I&#8217;m beginning to think the only way to do it in the programming world is to learn all round ya.</p>
<p>If you find something you&#8217;re extremely comfortable to achieve something with, get it done using that.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">what?</p>
<p>that&#8217;s the stupidest thing i&#8217;ve ever heard.  a scripting language is a programming language.  that is unless adding &#8216;real&#8217; in front qualifies a language in some special manner of your own design.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Yes, I know that scripting languages are technically programming languages. To act as if they have the same functionality, etc, as C++, though, is ridiculous. They are far easier to learn, far easier to use, and far less powerful. I can write PHP just fine, and use it effectively. However, I would not call myself a programmer. I work with Bash and PowerShell to create scripts that make my sysadmin shit go easier. Those are scripting languages &#8211; I would not call myself a programmer.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>That&#8217;s a pretty huge difference. Any web app has to run inside of your browser. It has all of the limitations of your web browser, including a reliance on network connectivity&#8230; Unless you want to run the web server and keep a copy of the web app on every computer, but if you&#8217;re doing that, why develop it as a web app in the first place?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Offline web apps.</p>
<p>(havent/mightnt gonna read that article, just got something from google)</p>
<p>I wish there was some way to publicize your web-apps such that the browser can actually download the backend code &amp; <em>run</em> (nevermind just store whats going on) on any computer after a browser choses to download it. If it was made possible &amp; done right, it could be so so sweet.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I don&#8217;t think you give PHP enough credit, it is an extremely powerful programming language.  If you don&#8217;t want to call yourself a programmer that&#8217;s fine, but don&#8217;t let that diminish the validity of these programming languages.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Have you written a web app, because it surely doesn&#8217;t sound like it.  Or at least it doesn&#8217;t sound like you know how they work.  If you&#8217;re writing it in PHP it most certainly does NOT run inside of the browser, it is running on the server.  And if network connectivity is a criteria for a real application does that mean you&#8217;re excluding RPC apps or any network related application for that matter?</p>
<p>I&#8217;m of the strong opinion that in the future of computing we&#8217;re going to be moving away from local applications and most applications will actually be online apps, like what google docs is now only more advanced.  I wouldn&#8217;t be surprised if Microsoft Office eventually becomes an online web application only in the somewhat immidiate future.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>It is an extremely powerful scripting language. It falls short in comparison to a programming language such as C++ or Java. I&#8217;m currently writing a PHP application that analyzes and displays Cisco v9 Netflow data captured with nProbe and collected with NEye.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">Have you written a web app, because it surely doesn&#8217;t sound like it.  Or at least it doesn&#8217;t sound like you know how they work.  If you&#8217;re writing it in PHP it most certainly does NOT run inside of the browser, it is running on the server.  And if network connectivity is a criteria for a real application does that mean you&#8217;re excluding RPC apps or any network related application for that matter?</td>
</tr>
</tbody>
</table>
</div>
<p>Are you a moron? I realize it runs on the server. I was SPECIFICALLY quoting a section where you mentioned that the difference is the interface. The interface for the end user of a web app is the browser. Are you denying this?</p>
<p>Most business related apps allow at least basic functionality without network support. I can still write up my documentation, program, work in excel, etc, without network connectivity.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">I&#8217;m of the strong opinion that in the future of computing we&#8217;re going to be moving away from local applications and most applications will actually be online apps, like what google docs is now only more advanced.  I wouldn&#8217;t be surprised if Microsoft Office eventually becomes an online web application only in the somewhat immidiate future.</td>
</tr>
</tbody>
</table>
</div>
<p>I take it you weren&#8217;t around for when everything was done over the network using thin clients?</p>
<p>There&#8217;s a reason we moved away from it, to real clients.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>ok, how does it fall short?  because it&#8217;s not compiled code?  that&#8217;s hardly a requirement of a programming language.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I&#8217;m not a moron, you said &#8220;Any web app has to run inside of your browser.&#8221; when in actuality the client or the server can do the &#8220;running&#8221;.  If you meant to say something like &#8220;has to be accessed by a browser&#8221; then you would be correct.  but even then there are web services which are basically web apps that doesn&#8217;t have to use a browser but still communicate over HTTP.</p>
<p>This argument is neither here nor there though as the main argument was when you said scripting languages were not programming languages but later corrected yourself saying that they are, just not by your vantage point.  which is fine since you&#8217;re entitled to your opinion even if it is technically incorrect.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Because it isn&#8217;t as powerful. I can do quite a bit in PHP, but if I wanted to say, create an ircd, doing it in php vs. c would be a ridiculous thing to do.</p>
<p>(I choose this for an example on purpose &#8211; I know that there is a PHP ircd out there. I&#8217;ve used it. But it is also hugely inferior to every single c based ircd, in both performance and features)</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">I&#8217;m not a moron, you said &#8220;Any web app has to run inside of your browser.&#8221; when in actuality the client or the server can do the &#8220;running&#8221;.  If you meant to say something like &#8220;has to be accessed by a browser&#8221; then you would be correct.  but even then there are web services which are basically web apps that doesn&#8217;t have to use a browser but still communicate over HTTP.</td>
</tr>
</tbody>
</table>
</div>
<p>You were SPECIFICALLY talking about the interface. Using PHP, etc, for web apps, 99.9999% of the time, you are going to be accessing them within the browser. You are either a moron, or attempting to couch your argument in semantics to attempt to gain the upper hand. It is obvious what I was referring to, and willfully misrepresenting what I say doesn&#8217;t make you more right.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">This argument is neither here nor there though as the main argument was when you said scripting languages were not programming languages but later corrected yourself saying that they are, just not by your vantage point.  which is fine since you&#8217;re entitled to your opinion even if it is technically incorrect.</td>
</tr>
</tbody>
</table>
</div>
<p>I said they&#8217;re not real programming languages in my first post on this subject, and I stand by that. Technically, bash and powershell are programming languages. However, no one is going to call themselves a bash programmer, or powershell programmer, and if they did, they would be laughed at.</p>
<p>Scripting languages are programming languages by definition, very loose definition.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Well, obviously since I&#8217;m a girl my cooking has to be better than my coding</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Because it isn&#8217;t as powerful. I can do quite a bit in PHP, but if I wanted to say, create an ircd, doing it in php vs. c would be a ridiculous thing to do.</p>
<p>(I choose this for an example on purpose &#8211; I know that there is a PHP ircd out there. I&#8217;ve used it. But it is also hugely inferior to every single c based ircd, in both performance and features)</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>different tools for different jobs.  just because some programming langauges perform better for certain tasks doesn&#8217;t make one more or less of a programming language.  C may have more extensive libraries when it comes to standard socket programming but in the same right PHP could be considered more &#8220;powerful&#8221; in many other applications of programming.  If anything you&#8217;re beating down your own argument by pointing out the fact that PHP can handle sockets and basically any other computing task you were to throw at it if you were so inclined.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">You were SPECIFICALLY talking about the interface. Using PHP, etc, for web apps, 99.9999% of the time, you are going to be accessing them within the browser. You are either a moron, or attempting to couch your argument in semantics to attempt to gain the upper hand. It is obvious what I was referring to, and willfully misrepresenting what I say doesn&#8217;t make you more right.</p>
<p>I said they&#8217;re not real programming languages in my first post on this subject, and I stand by that. Technically, bash and powershell are programming languages. However, no one is going to call themselves a bash programmer, or powershell programmer, and if they did, they would be laughed at.</p>
<p>Scripting languages are programming languages by definition, very loose definition.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>This really is a dumb argument and i don&#8217;t know what you&#8217;re trying to accomplish by supposedly knocking scripting languages down a peg on your programming languages list.  I really don&#8217;t care either way other than the fact that what you are declaring is incorrect.  If you want to be laughed at go tell an authoritative figure in computing (maybe a CS professor if that&#8217;s what you&#8217;re studying) that scripting languages aren&#8217;t programming languages.  You can even say &#8220;real&#8221; programming languages as you seem to think it makes a difference.</p>
<p>I&#8217;m done with this argument though as you&#8217;re pitting the truth of the matter against your opinion, which i don&#8217;t consider an authoritative source.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Actually, the PHP ircd uses a c module for sockets. It doesn&#8217;t handle it on its own.</p>
<p>I guess you can throw some more darts at random to try and prove your point, though.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">This really is a dumb argument and i don&#8217;t know what you&#8217;re trying to accomplish by supposedly knocking scripting languages down a peg on your programming languages list.  I really don&#8217;t care either way other than the fact that what you are declaring is incorrect.  If you want to be laughed at go tell an authoritative figure in computing (maybe a CS professor if that&#8217;s what you&#8217;re studying) that scripting languages aren&#8217;t programming languages.  You can even say &#8220;real&#8221; programming languages as you seem to think it makes a difference.</p>
<p>I&#8217;m done with this argument though as you&#8217;re pitting the truth of the matter against your opinion, which i don&#8217;t consider an authoritative source.</td>
</tr>
</tbody>
</table>
</div>
<p>No, it isn&#8217;t a dumb argument. You can&#8217;t discount it just because you know I&#8217;m right. Anyone who would call themselves a programmer because they know those scripting languages would be laughed at. Period.</p>
<p>And I&#8217;m not &#8220;studying&#8221; anything.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Actually, the PHP ircd uses a c module for sockets. It doesn&#8217;t handle it on its own.</p>
<p>I guess you can throw some more darts at random to try and prove your point, though.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>well i&#8217;m not familiar with your particular ircd.  but what i do know is that i have done socket programming in php to interface with a server we have here at work and it worked just fine.  php actually has an extensive socket library.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>yes it is dumb, because you&#8217;re arguing against conventional wisdom with evidence such as &#8220;Anyone who would call themselves a programmer because they know those scripting languages would be laughed at.&#8221;</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>obviously</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>But does it work well? If it did, why would they resort to have to outside libraries?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">yes it is dumb, because you&#8217;re arguing against conventional wisdom with evidence such as &#8220;Anyone who would call themselves a programmer because they know those scripting languages would be laughed at.&#8221;</td>
</tr>
</tbody>
</table>
</div>
<p>I&#8217;m arguing against conventional wisdom? What conventional wisdom? That Bash is a programming language?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">obviously</td>
</tr>
</tbody>
</table>
</div>
<p>I&#8217;m out in the real world, doing real work. I&#8217;ve had people try and teach Visual Basic (not .Net) like it&#8217;s a real programming language too. Being in a position to teach doesn&#8217;t mean that you should be.<br />
I think I&#8217;ve just now, tonight, reached the point in my life where I can just let the idiots babble&#8230; I don&#8217;t need to correct them.</p>
<p>KUDOS FOR ME!</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I think I&#8217;ve just now, tonight, reached the point in my life where I can just let the idiots babble&#8230; I don&#8217;t need to correct them.</p>
<p>KUDOS FOR ME!</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I notice that the only people disagreeing with me are the people who just do scripting languages</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I completely disagree with you and I mostly program in Java.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>So you would call Bash a programming language?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Bash is a shell.  Its supported commands and the rules that govern their syntax and semantics make a programming language.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>So, you honestly think I could call myself a programmer, due to my ability to write bash scripts?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>For you, as a job title, I sure hope not&#8230; It&#8217;s clear that you have very little understanding of programming even if you are capable of writing some simple programs.  However, someone that spends most of their professional time writing bash scripts would be considered a programmer.<br />
I can definitely see the point of using a book to pick up how to program. However when I learned, it was with books and sitting in front of the computer playing around, before the Web. Nowadays I think I&#8217;d probably just use web resources to learn.</p>
<p>There&#8217;s no point overwhelming newbies by trying to teach them ambitious methodologies and &#8220;good programming&#8221;, especially seeing as there&#8217;s new techniques and theories popping up every day and challenging the status quo.</p>
<p>You need to learn English before you can start writing a novel.</p>
<p>The newbies just need to be taught to keep taking in fresh ideas as the programming world moves pretty fast, so they can continually improve.</p>
<p>If you don&#8217;t look back at the code you did 1 year ago and wince, you&#8217;re doing it wrong.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>what makes you think you know what i do?  i&#8217;ve just been correcting you on scripting languages as you seem to have a false conception of what they are.  all the classes i&#8217;ve taken at my university have dealt with and used C/C++ and Java.  either that or they&#8217;ve been based on programming concepts abstract enough to apply to any procedural language.</p>
<p>you seem to have some kind of pride involved with programming languages though.  so tell me, if scripting languages are programming languages (which you have admitted now) but they aren&#8217;t REAL programming languages what exactly is the criteria of a REAL programming language.</p>
<p>I&#8217;m capitalizing REAL because technically there is no difference but you seem to think there is, so i want to hear it.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I fully understand the concepts of OOP. Classes, inheritance, etc. I have programmed fully functional applications in Java, C++, etc. I started to learn C# for ASP.Net development, but decided I&#8217;d rather stick to PHP, as it is not limited by the platform. I am not a developer &#8211; I have to look at things backwards to design and create the program. I have no desire to create anything unless there is a specific need that I need filled that does not currently exist in the form of an open source or commercial program. I do not like to program, so I would never want to be a programmer. That doesn&#8217;t mean I don&#8217;t understand it.</p>
<p>However, said needs come about rather often in system administration tasks. But no one would ever spend the majority of their professional time writing bash scripts. They are ALL simple programs.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">what makes you think you know what i do? i&#8217;ve just been correcting you on scripting languages as you seem to have a false conception of what they are. all the classes i&#8217;ve taken at my university have dealt with and used C/C++ and Java. either that or they&#8217;ve been based on programming concepts abstract enough to apply to any procedural language.</p>
<p>you seem to have some kind of pride involved with programming languages though. so tell me, if scripting languages are programming languages (which you have admitted now) but they aren&#8217;t REAL programming languages what exactly is the criteria of a REAL programming language.</p>
<p>I&#8217;m capitalizing REAL because technically there is no difference but you seem to think there is, so i want to hear it.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>What false conception? You&#8217;ve yet to correct me on anything of substance. Last I checked, the only corrections you&#8217;ve made have had directly with you manipulating semantics. The letter vs the spirit, etc.</p>
<p>And cool, you&#8217;ve taken university classes on programming. You&#8217;re a star developer now. You&#8217;ll forgive me, I&#8217;m sure, if I don&#8217;t take your word on the subject just because you&#8217;ve had classes on it.</p>
<p>There is no pride involved. I am no skilled C++ developer. I know enough to create a program when I need to, but it will be slow and tedious work. In fact, if anything, the skills I have are only those in the realm of scripting languages! I know how to create bash and powershell scripts. My job demands it. I know far more PHP than I do c or java. I use it, as well as perl, on ocaision.</p>
<p>My stance on what is and what isn&#8217;t a programming language hasn&#8217;t changed since my first post in this thread. Scripting languages are programming languages &#8211; but only because of the letter of the definition. Someone who writes bash scripts is not a programmer. PHP, or Perl, or a similar scripting languages, is a lot closer, but still not quite there. They are scripting languages.</p>
<p>The difference is power, performance, flexibility, etc. About use. The how&#8217;s, when&#8217;s, where&#8217;s, and why&#8217;s of use. You would not use PHP to develop a desktop application. Or bash. Or perl. Or powershell. You could use C#. Or Java. Or C. Or C++.</p>
<p>Again, I am not a programmer. This is not out of some sense of pride. I would say it is for you, though. You want to believe yourself to be Job Title X. You want the respect implied with said job title. I&#8217;m secure in my position &#8211; I don&#8217;t see any need to add on to it with frills, to try and make myself seem more important.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I fully understand the concepts of OOP. Classes, inheritance, etc. I have programmed fully functional applications in Java, C++, etc. I started to learn C# for ASP.Net development, but decided I&#8217;d rather stick to PHP, as it is not limited by the platform. I am not a developer &#8211; I have to look at things backwards to design and create the program. I have no desire to create anything unless there is a specific need that I need filled that does not currently exist in the form of an open source or commercial program. I do not like to program, so I would never want to be a programmer. That doesn&#8217;t mean I don&#8217;t understand it.</p>
<p>However, said needs come about rather often in system administration tasks. But no one would ever spend the majority of their professional time writing bash scripts. They are ALL simple programs.</p>
<p>What false conception? You&#8217;ve yet to correct me on anything of substance. Last I checked, the only corrections you&#8217;ve made have had directly with you manipulating semantics. The letter vs the spirit, etc.</p>
<p>And cool, you&#8217;ve taken university classes on programming. You&#8217;re a star developer now. You&#8217;ll forgive me, I&#8217;m sure, if I don&#8217;t take your word on the subject just because you&#8217;ve had classes on it.</p>
<p>There is no pride involved. I am no skilled C++ developer. I know enough to create a program when I need to, but it will be slow and tedious work. In fact, if anything, the skills I have are only those in the realm of scripting languages! I know how to create bash and powershell scripts. My job demands it. I know far more PHP than I do c or java. I use it, as well as perl, on ocaision.</p>
<p>My stance on what is and what isn&#8217;t a programming language hasn&#8217;t changed since my first post in this thread. Scripting languages are programming languages &#8211; but only because of the letter of the definition. Someone who writes bash scripts is not a programmer. PHP, or Perl, or a similar scripting languages, is a lot closer, but still not quite there. They are scripting languages.</p>
<p>The difference is power, performance, flexibility, etc. About use. The how&#8217;s, when&#8217;s, where&#8217;s, and why&#8217;s of use. You would not use PHP to develop a desktop application. Or bash. Or perl. Or powershell. You could use C#. Or Java. Or C. Or C++.</p>
<p>Again, I am not a programmer. This is not out of some sense of pride. I would say it is for you, though. You want to believe yourself to be Job Title X. You want the respect implied with said job title. I&#8217;m secure in my position &#8211; I don&#8217;t see any need to add on to it with frills, to try and make myself seem more important.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>you obviously have a hard time admitting when you&#8217;re wrong so i&#8217;ll just sum up my feelings towards this post with this emoticon:<br />
this argument is retarded. anyone who writes command files to be executed on a machine is some type of programmer. the languages might be scripting/programming whatever but bottom line if you write program files that are executed on a machine your generic title is a programmer<br />
Can anyone recommend good books for getting into client-side web dev? Gonna start with newest version of HTML (last time i learned it was like 10 years ago :hs) and CSS, and then move into JavaScript. SitePoint looks like they have some good books, but the HTML/CSS ones are from May &#8216;06  Not sure how much has changed on that front in the last 2 years</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>You obviously are attempting to validate yourself, and having run out of ways to attempt to do so, are resulting to just using emoticons and claiming victory without having any substance to stand on.</p>
<p>The hilarity of this entire situation is summed up by a true gem: The fact that you guys think a bash scripter is a programmer.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I nominate this:</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Don&#8217;t run this one off.  We need people like him now that Jolly is tamed.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I nominate this:</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I don&#8217;t think that using a scripting language is really programming. So based on that, my statement is 100% correct. C#, etc, can be used to program a web app, or a normal program.<br />
Personally, I don&#8217;t think using languages or keyboards is really programming.  If you aren&#8217;t keying in binary via a mechanical switch, you&#8217;re no programmer.  Flipping switches gives you DIRECT access to the machine, which is much more powerful than that high level assembly stuff.  That stuff isn&#8217;t programming.  Its graphic design.  QWERTY is for losers.  All I need is up/down.  It took me four hours to program this post.  How long did it take you guys to type your posts?  See how much more powerful my switch is than your keyboard?  Losers.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I am looking to get into programming/Dev work.<br />
I have been doing HW/network/tech support for a long time and I am burned out on it. I was talking to one of our developers at work and he suggested reading up on and starting with C# and ASP.net.</p>
<p>Any suggestions/thoughts/book recommendations for a newby? I have absolutely 0 knowledge as far as programming works.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>you need to learn two things:</p>
<p>1) Syntax for the language of your choice. Once you learn one language, picking up another is quite easy, as they&#8217;re all much the same, just the syntax changes.</p>
<p>2) Programming methodology and logic. This is the important one and the hard one. It&#8217;s also language independent.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">you need to learn two things:</p>
<p>1) Syntax for the language of your choice. Once you learn one language, picking up another is quite easy, as they&#8217;re all much the same, just the syntax changes.</p>
<p>2) Programming methodology and logic. This is the important one and the hard one. It&#8217;s also language independent.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>What a joke!  All this stuff is for graphic designers.  Its not programming.  What he really needs to learn is efficient binary keying.  Got to flip that switch wicked fast to be eleet.<br />
My post was funny and you guys are too stupid to praise me.</p>
<p>Switching this post in, and the TCP/IP/HTTP stack it took to send it only took me 3 hours.  BEAT THAT!  BINARY IS SO POWERFUL!</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Personally, I don&#8217;t think you can call yourself a programmer unless you write code that gets compiled. If it can&#8217;t crash the machine, it&#8217;s not a program, just a script.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>if you write something which causes the computer to perform a task, you have programmed the computer.</p>
<p>It&#8217;s that simple.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">if you write something which causes the computer to perform a task, you have programmed the computer.</p>
<p>It&#8217;s that simple.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>the only real solution to this debate is to have these guys open up a dictionary</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">if you write something which causes the computer to perform a task, you have programmed the computer.</p>
<p>It&#8217;s that simple.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Not really. When you write a compiled program, your code gets fed directly into the CPU and gets processed natively. When you write a script, your script tells the interpreter to do something, and then the interpreter uses whatever code the programmers gave it to actually perform the task. You&#8217;re not in direct control of anything if you&#8217;re writing scripts.</p>
<p>Anyone who&#8217;s ever written compiled code knows what I&#8217;m talking about; working in a scripting language is suffocating, because the degree of freedom you have to do what you need to do in a way that makes sense for the application is very limited, and if there is no suitable pre-constructed command to do what you need to do, instead of making one, you have to switch to a different language.</p>
<p>Compiled code will always be better than scripts. It&#8217;s the basic principle of &#8220;if you want something done right, you have to do it yourself&#8221;, and scripting languages don&#8217;t <em>let</em> you do it yourself.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Not really. When you write a compiled program, your code gets fed directly into the CPU and gets processed natively. When you write a script, your script tells the interpreter to do something, and then the interpreter uses whatever code the programmers gave it to actually perform the task. You&#8217;re not in direct control of anything if you&#8217;re writing scripts.</p>
<p>Anyone who&#8217;s ever written compiled code knows what I&#8217;m talking about; working in a scripting language is suffocating, because the degree of freedom you have to do what you need to do in a way that makes sense for the application is very limited, and if there is no suitable pre-constructed command to do what you need to do, instead of making one, you have to switch to a different language.</p>
<p>Compiled code will always be better than scripts. It&#8217;s the basic principle of &#8220;if you want something done right, you have to do it yourself&#8221;, and scripting languages don&#8217;t <em>let</em> you do it yourself.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I agree that scripting languages are very frustrating to work in, suffocating as you put it, however, scripting is still programming.</p>
<p>ANY time you make it so that the computer follows a series of instructions to execute a task, you have programmed it.</p>
<p>Does that make all programmers equal? No. But it doesn&#8217;t mean someone who only knows how to use perl not a programmer, it just makes him a very limited programmer</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Not really. When you write a compiled program, your code gets fed directly into the CPU and gets processed natively. When you write a script, your script tells the interpreter to do something, and then the interpreter uses whatever code the programmers gave it to actually perform the task. You&#8217;re not in direct control of anything if you&#8217;re writing scripts.</p>
<p>Anyone who&#8217;s ever written compiled code knows what I&#8217;m talking about; working in a scripting language is suffocating, because the degree of freedom you have to do what you need to do in a way that makes sense for the application is very limited, and if there is no suitable pre-constructed command to do what you need to do, instead of making one, you have to switch to a different language.</p>
<p>Compiled code will always be better than scripts. It&#8217;s the basic principle of &#8220;if you want something done right, you have to do it yourself&#8221;, and scripting languages don&#8217;t <em>let</em> you do it yourself.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>And DIRECT BINARY will always be better than compiled code.  You call yourself a PROGRAMMER, when really the COMPILER is the one doing all the work.</p>
<p>QWERTY Loser.  You&#8217;re PATHETIC.<br />
To date, I have used the following languages:</p>
<p>Perl<br />
Pascal<br />
GWBASIC<br />
C/C++<br />
Java<br />
IDL<br />
Assembler (Intel and SPARC)</p>
<p>I hate scripting languages, but they have their use, especially when I want to do a quick and dirty task, like quickly reading in a text catalogue, splitting out the data I&#8217;m interested in, and throwing that data back out to another program I&#8217;ve written to do something more useful.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">1) Syntax for the language of your choice. Once you learn one language, picking up another is quite easy, as they&#8217;re all much the same, just the syntax changes.</td>
</tr>
</tbody>
</table>
</div>
<p>No offense, because you&#8217;re one of the more sensible in this thread&#8230; but don&#8217;t you see the irony here?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">And DIRECT BINARY will always be better than compiled code.  You call yourself a PROGRAMMER, when really the COMPILER is the one doing all the work.</p>
<p>QWERTY Loser.  You&#8217;re PATHETIC.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I can write low-level code in G++, if that&#8217;s what I need to do. I can skip all of the conveniences of object-oriented programming and get down to the bits and the registers if there&#8217;s no other way to get the job done. I can&#8217;t do that in PHP.</p>
<p>Anyway, if your point is that Punchcards &gt; Assembly &gt; OOP &gt; Scripting, where &#8220;&gt;&#8221; == &#8220;more leetz0r&#8221;, then yes, I suppose I agree. I&#8217;m not saying I&#8217;m the ultimate programmer, but the code I write is actually getting <em>translated</em> into binary instructions, whereas with scripting, my code would be <em>replaced</em> wholesale with <em>someone else&#8217;s</em> binary instructions. Not to mention I wouldn&#8217;t be able to write my own assembly code in a scripting language, even if I wanted to.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>nope, because so long as he ONLY knows how to use perl, he&#8217;s a limited programmer. Knowing perl, however, makes it much easier for him to pick up another few languages, and remove a lot of those limitations</p>
<p>That said, there is a gap between scripted languages and compiled languages that he&#8217;d still have to cross, but that&#8217;s more of a language dependent issue</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I can write low-level code in G++, if that&#8217;s what I need to do. I can skip all of the conveniences of object-oriented programming and get down to the bits and the registers if there&#8217;s no other way to get the job done. I can&#8217;t do that in PHP.</p>
<p>Anyway, if your point is that Punchcards &gt; Assembly &gt; OOP &gt; Scripting where &#8220;&gt;&#8221; == &#8220;more leetz0r&#8221;, then yes, I suppose I agree. I&#8217;m not saying I&#8217;m the ultimate programmer, but the code I write is actually getting <em>translated</em> into binary instructions, whereas with scripting, my code would be <em>replaced</em> wholesale with someone else&#8217;s binary instructions.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>whats your point? If you don&#8217;t need to do that, does that make it no longer programming?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I can write low-level code in G++, if that&#8217;s what I need to do. I can skip all of the conveniences of object-oriented programming and get down to the bits and the registers if there&#8217;s no other way to get the job done. I can&#8217;t do that in PHP.</p>
<p>Anyway, if your point is that Punchcards &gt; Assembly &gt; OOP &gt; Scripting, where &#8220;&gt;&#8221; == &#8220;more leetz0r&#8221;, then yes, I suppose I agree. I&#8217;m not saying I&#8217;m the ultimate programmer, but the code I write is actually getting <em>translated</em> into binary instructions, whereas with scripting, my code would be <em>replaced</em> wholesale with <em>someone else&#8217;s</em> binary instructions. Not to mention I wouldn&#8217;t be able to write my own assembly code in a scripting language, even if I wanted to.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Wait, so you&#8217;re saying that even though you have less control than keying in binary&#8230; that you are in fact having some other program generate your binary for you&#8230; that using higher level languages because they have more POWER and you don&#8217;t have to operate on a uselessly minute level makes more sense for almost every task&#8230; even if its not as &#8216;elite&#8217;?</p>
<p>zOMG!</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">nope, because so long as he ONLY knows how to use perl, he&#8217;s a limited programmer. Knowing perl, however, makes it much easier for him to pick up another few languages, and remove a lot of those limitations</p>
<p>That said, there is a gap between scripted languages and compiled languages that he&#8217;d still have to cross, but that&#8217;s more of a language dependent issue</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Ok&#8230; but my point was: Isn&#8217;t every language you listed exactly similar, to the point that you think all languages are similar other than syntax and whether they manage memory?</p>
<p>Does it occur to you that there are more kinds of languages than that?  That maybe the difference between SQL and Perl is much greater than the difference than Perl and C?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Ok&#8230; but my point was: Isn&#8217;t every language you listed exactly similar, to the point that you think all languages are similar other than syntax and whether they manage memory?</p>
<p>Does it occur to you that there are more kinds of languages than that?  That maybe the difference between SQL and Perl is much greater than the difference than Perl and C?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I just listed the languages I&#8217;ve used to date</p>
<p>and pretty much every language is the same. At this point in time, the hardest part when picking up a new language is finding out what names they called their functions by.</p>
<p>The biggest difference is execution time, and memory management, and for most purposes, those considerations are irrelevant.<br />
and, i just realized, I&#8217;m overusing, the comma. Quick Peyomp! Write a function, in binary, to scan, and remove, excess, unnecessary, commas. I&#8217;ll get back, to you, in a week.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I just listed the languages I&#8217;ve used to date</p>
<p>and pretty much every language is the same. At this point in time, the hardest part when picking up a new language is finding out what names they called their functions by.</p>
<p>The biggest difference is execution time, and memory management, and for most purposes, those considerations are irrelevant.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>This is actually not true.  You&#8217;ve only explored one branch of languages, which is why they seem the same.  With the possible exception of IDL, those are all imperative languages.  Kinda exciting, huh!  There are lots of other kinds!</p>
<p>SQL is an example of a declarative language.  You THINK completely differently in SQL.  Its not just like any of the others you listed.  You can&#8217;t know C, then figure out the syntax of SQL and you will know SQL.  You have to learn to program all over again, in a declarative instead of imperative way.</p>
<p>But no memory management or binary keying in SQL&#8230; so I guess it doesn&#8217;t count as programming at all to some</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>In Binary it would take me a week.<br />
In C it would take me an hour.<br />
In perl it would take me a minute.</p>
<p>But C is more powerful than perl, right?  And Binary more powerful than C.</p>
<p>zOMG!</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">This is actually not true.  You&#8217;ve only explored one branch of languages, which is why they seem the same.  With the possible exception of IDL, those are all imperative languages.  Kinda exciting, huh!  There are lots of other kinds!</p>
<p>SQL is an example of a declarative language.  You THINK completely differently in SQL.  Its not just like any of the others you listed.  You can&#8217;t know C, then figure out the syntax of SQL and you will know SQL.  You have to learn to program all over again, in a declarative instead of imperative way.</p>
<p>But no memory management or binary keying in SQL&#8230; so I guess it doesn&#8217;t count as programming at all to some</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>quickly explain to me the difference between imperative and declarative</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">In Binary it would take me a week.<br />
In C it would take me an hour.<br />
In perl it would take me a minute.</p>
<p>But C is more powerful than perl, right?  And Binary more powerful than C.</p>
<p>zOMG!</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>it&#8217;d take you a minute to strip out the commas, but only the ones which aren&#8217;t grammatically correct?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>OMG!  We&#8217;re on to something.  That IS more complex.  Its almost as if&#8230; the algorithm is the hard part of programming&#8230; and we should choose the languages that let us most easily implement the algorithm that solves the problem at hand&#8230;</p>
<p>and that if we don&#8217;t make a good language selection for the problem, that we are a bad programmer!  Binary and Assembly and C would SUCK for your problem!  Perl would work great!  Maybe we could use something like Prolog!  OMG the possibilities!</p>
<p>Wow&#8230; this is like, ground breaking stuff!</p>
<p>But oh no&#8230; will my friends make fun of me if I don&#8217;t manage my own memory?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Wikipedia is better than me.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">OMG!  We&#8217;re on to something.  That IS more complex.  Its almost as if&#8230; the algorithm is the hard part of programming&#8230; and we should choose the languages that let us most easily implement the algorithm that solves the problem at hand&#8230;</p>
<p>and that if we don&#8217;t make a good language selection for the problem, that we are a bad programmer!  Binary and Assembly and C would SUCK for your problem!  Perl would work great!  Maybe we could use something like Prolog!  OMG the possibilities!</p>
<p>Wow&#8230; this is like, ground breaking stuff!</p>
<p>But oh no&#8230; will my friends make fun of me if I don&#8217;t manage my own memory?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Wikipedia is better than me.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>seems much the same to me, you&#8217;d just go about attacking your problem in a different manner.</p>
<p>From the article, it seems declarative languages let the compiler/language determine how to compute the simpler problems you give it, so that you can focus on the larger problem at hand, much in the same way you&#8217;d build subroutines to break down the problem in an imperative language</p>
<p>I could be wrong</p>
<p>some days I hate IDL</p>
<p>I really wish it was more like C in some ways, where you have to declare array sizes/types, and if you deviated from the proper syntax without declaring beforehand (typecasting) it&#8217;d throw a compile error, instead of spending 45 minutes computing the first task, only to crash on a typo in the second task</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">seems much the same to me, you&#8217;d just go about attacking your problem in a different manner.</p>
<p>From the article, it seems declarative languages let the compiler/language determine how to compute the simpler problems you give it, so that you can focus on the larger problem at hand, much in the same way you&#8217;d build subroutines to break down the problem in an imperative language</p>
<p>I could be wrong</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Specifying precisely what you want in a SQL query is a different thinking process than specifying the algorithm to get there.  You break things down in both, but you do so differently.  Knowing how to split a problem into three functions doesn&#8217;t usually help you write a SQL query.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Yes, but knowing the relationship between input and output does.</p>
<p>If I have a list of objects, and I want to separate them according to a value associated with them, then it just depends on what functions I have available to me.</p>
<p>In IDL, I&#8217;d likely go &#8216;wgreater = where (x.value gt minvalue)&#8217;<br />
and then say &#8216;xgreater = x[wgreater]&#8216;</p>
<p>In C, I&#8217;d likely allocate a contiguous memory space, keep a count of how many I&#8217;d found and placed, and then run through the list of objects, storing a reference to the object satisfying the criteria in memory, and then increnting the count. Then I could run through the references and access the objects that way.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">If I have a list of objects, and I want to separate them according to a value associated with them, then it just depends on what functions I have available to me.</p>
<p>In IDL, I&#8217;d likely go &#8216;wgreater = where (x.value gt minvalue)&#8217;<br />
and then say &#8216;xgreater = x[wgreater]&#8216;</p>
<p>In C, I&#8217;d likely allocate a contiguous memory space, keep a count of how many I&#8217;d found and placed, and then run through the list of objects, storing a reference to the object satisfying the criteria in memory, and then increnting the count. Then I could run through the references and access the objects that way.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>zOMG&#8230; its almost as though IDL is MORE POWERFUL at that task than C!  But will you lose your man card?  Will the 17 year old programmers think you&#8217;re cool anymore if you solve a problem in a couple minutes in a higher level language when the MANLY way to do it is to spend hours at a lower level?  After all, when you&#8217;re 17 being manly is all about memory allocation, and not getting things done or building beautiful systems that solve difficult problems.  No 17 year old can do that, so memory allocation is really important at that fragile stage of development.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">Yes, but knowing the relationship between input and output does.</td>
</tr>
</tbody>
</table>
</div>
<p>Right but&#8230; even if you know all the functions you have available to you in SQL, you&#8217;re not going to transition directly from imperative langauges.  You&#8217;ll bang your head against the wall.  Its a different kind of problem solving.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">zOMG&#8230; its almost as though IDL is MORE POWERFUL at that task than C!  But will you lose your man card?  Will the 17 year old programmers think you&#8217;re cool anymore if you solve a problem in a couple minutes in a higher level language when the MANLY way to do it is to spend hours at a lower level?  After all, when you&#8217;re 17 being manly is all about memory allocation, and not getting things done or building beautiful systems that solve difficult problems.  No 17 year old can do that, so memory allocation is really important at that fragile stage of development.</p>
<p>Right but&#8230; even if you know all the functions you have available to you in SQL, you&#8217;re not going to transition directly from imperative langauges.  You&#8217;ll bang your head against the wall.  Its a different kind of problem solving.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Maybe. One day I&#8217;ll probably find out, however, I&#8217;ve always gone about problem solving (or at least tried to), by thinking about where I am, and where I want to be, and then trying to find the most direct route there. I suspect that approach is valid for any programming language.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>NO!  ITS NOT!  Thats what I&#8217;m saying   In declarative programming you can&#8217;t do that.  Instead you have to think, &#8220;What EXACTLY do I want, and how do I define it to lead the database system there.&#8221;</p>
<p>The problem solving experience is relevant, but its just not the same and at first the difference is jarring.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">NO!  ITS NOT!  Thats what I&#8217;m saying   In declarative programming you can&#8217;t do that.  Instead you have to think, &#8220;What EXACTLY do I want, and how do I define it to lead the database system there.&#8221;</p>
<p>The problem solving experience is relevant, but its just not the same and at first the difference is jarring.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>the way you&#8217;ve now described it makes it sound like a PITA to me</p>
<p>Although, once you know how the database system operates, then it becomes simple again.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">I can write low-level code in G++, if that&#8217;s what I need to do. I can skip all of the conveniences of object-oriented programming and get down to the bits and the registers if there&#8217;s no other way to get the job done. I can&#8217;t do that in PHP.</p>
<p>Anyway, if your point is that Punchcards &gt; Assembly &gt; OOP &gt; Scripting, where &#8220;&gt;&#8221; == &#8220;more leetz0r&#8221;, then yes, I suppose I agree. I&#8217;m not saying I&#8217;m the ultimate programmer, but the code I write is actually getting <em>translated</em> into binary instructions, whereas with scripting, my code would be <em>replaced</em> wholesale with <em>someone else&#8217;s</em> binary instructions. Not to mention I wouldn&#8217;t be able to write my own assembly code in a scripting language, even if I wanted to.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>congratulations, you&#8217;ve just expressed some understanding of the difference between and high-level and low-level <strong>programming</strong>. yes that&#8217;s right, programming.</p>
<p>it&#8217;s funny how you and that taco bell guy both start your arguments with &#8220;personally i think&#8221; or &#8220;in my opinion&#8221;&#8230;  no offense, but i don&#8217;t really care what your guys opinions happen to be.  i&#8217;m happy that you express them as opinions and personal beliefs, as opposed to p052342o3 who expresses his opinions as absolute fact;  but in this instance you and chalpuas opinions are not aligned with reality.  you can confirm this by talking with any professional in the field of computer science.<br />
Actually, C is a high level language too!    It was conceived that way.  C++ is a high level language.  Listen to Bjorne call it that.</p>
<p>They&#8217;re just not quite high enough for lots of problems.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">the way you&#8217;ve now described it makes it sound like a PITA to me</p>
<p>Although, once you know how the database system operates, then it becomes simple again.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I was able to wrap my mind around SQL, but it took a little while.  What I CAN&#8217;T DO is get my mind around purely functional programming.  Ever try to learn LISP?  I did.  Twice.  It won&#8217;t stick.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">congratulations, you&#8217;ve just expressed some understanding of the difference between and high-level and low-level <strong>programming</strong>. yes that&#8217;s right, programming.</p>
<p>it&#8217;s funny how you and that taco bell guy both start your arguments with &#8220;personally i think&#8221; or &#8220;in my opinion&#8221;&#8230;  no offense, but i don&#8217;t really care what your guys opinions happen to be.  i&#8217;m happy that you express them as opinions and personal beliefs, as opposed to p052342o3 who expresses his opinions as absolute fact;  but in this instance you and chalpuas opinions are not aligned with reality.  you can confirm this by talking with any professional in the field of computer science.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>C/C++/C#/Java/etc are high level programming languages, my friend. ASM, etc, are not.</p>
<p>That means that interpreted languages are entirely different than simply being &#8220;high level&#8221;, and the fact that they are interpreted is a major part of why I don&#8217;t consider them to really be programming languages. Someone else did the programming, and you&#8217;re creating a script that calls that programming.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I gave it a brief read, i&#8217;ll have to come back to it later</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>thanks captain obvious</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>it&#8217;s just another level of abstraction</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">C/C++/C#/Java/etc are high level programming languages, my friend. ASM, etc, are not.</p>
<p>That means that interpreted languages are entirely different than simply being &#8220;high level&#8221;, and the fact that they are interpreted is a major part of why I don&#8217;t consider them to really be programming languages. Someone else did the programming, and you&#8217;re creating a script that calls that programming.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>And yet in C, you&#8217;re just controlling the compiler.  You are scripting the compiler.  And so your distinction is arbitrary.  And you are a cliche.  Do you think people think you&#8217;re cool because your programs compile and you say so?  Not the case.  Instead, you sound like a 17 year old who has never written anything over 1000 lines, or solved any real problems whatsoever.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">C/C++/C#/Java/etc are high level programming languages, my friend. ASM, etc, are not.</p>
<p>That means that interpreted languages are entirely different than simply being &#8220;high level&#8221;, and the fact that they are interpreted is a major part of why I don&#8217;t consider them to really be programming languages. Someone else did the programming, and you&#8217;re creating a script that calls that programming.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>1) Get a dictionary<br />
2) Look up programming<br />
3) Post a retraction</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>exactly.  an ASM programmer could make the same lame statements talking to a C programmer.</p>
<p>that is why I originally stated this whole argument is based more in pride/ego than reality.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">exactly.  an ASM programmer could make the same lame statements talking to a C programmer.</p>
<p>that is why I originally stated this whole argument is based more in pride/ego than reality.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>And the very statements intended to make them look cool instead make them look like inexperienced teenagers.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>I&#8217;d say a skilled programmer would use whatever language was best suited for the task.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">1) Get a dictionary<br />
2) Look up programming<br />
3) Post a retraction</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Have you not read the thread? I&#8217;ve stated multiple times that I know scripting languages are considered programming languages by definition.</p>
<p>However, I contend that there is a reason they have a special label applied to them &#8211; scripting languages &#8211; rather than just simply being called programming languages.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>It isn&#8217;t a matter of pride for me. I am not a programmer. I work with PHP, when doing any sort of scripting, or bash/powershell for sysadmin stuff. By my own definition, I am a scripter. I&#8217;m not trying to sound cool, or act like I&#8217;m some amazing hardcore developer. I write scripts to interact with programs I use for sysadmin stuff, and sometimes write php frontends. All I know are scripting languages.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Wait, so you&#8217;re saying that even though you have less control than keying in binary&#8230; that you are in fact having some other program generate your binary for you&#8230; that using higher level languages because they have more POWER and you don&#8217;t have to operate on a uselessly minute level makes more sense for almost every task&#8230; even if its not as &#8216;elite&#8217;?</p>
<p>zOMG!</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Are you not grasping the idea that the code I write in C++ ultimately ends up as binary code that runs directly in the CPU, whereas code I write in JavaScript <em>always</em> has to go through an interpreter that substitutes its own code in place of my own <em>every</em> time the script executes?</p>
<p>Actually, it&#8217;s incorrect to even use the word &#8220;execute&#8221; when talking about a script, because all that happens is the interpreter <em>reads</em> the code and then runs <em>different</em> code that <em>isn&#8217;t</em> derived from, or based on, my code. Writing a script is like telling <em>someone else</em> to write and compile a program <em>for</em> you.</p>
<p>That&#8217;s the same beef I have with frameworks, btw. It&#8217;s one thing that my high-level OOP code goes through a compiler where it&#8217;s broken down into more and simpler components until it reaches the level of CPU instructions and then gets stored in a binary file; it&#8217;s something entirely different that my script code is <em>replaced</em> with someone else&#8217;s code that does not necessarily reflect what I intended the program to do.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Are you not grasping the idea that the code I write in C++ ultimately ends up as binary code that runs directly in the CPU, whereas code I write in JavaScript <em>always</em> has to go through an interpreter that substitutes its own code in place of my own <em>every</em> time the script executes?</p>
<p>Actually, it&#8217;s incorrect to even use the word &#8220;execute&#8221; when talking about a script, because all that happens is the interpreter <em>reads</em> the code and then runs <em>different</em> code that <em>isn&#8217;t</em> derived from, or based on, my code. Writing a script is like telling <em>someone else</em> to write and compile a program <em>for</em> you.</p>
<p>That&#8217;s the same beef I have with frameworks, btw. It&#8217;s one thing that my high-level OOP code goes through a compiler where it&#8217;s broken down into more and simpler components until it reaches the level of CPU instructions and then gets stored in a binary file; it&#8217;s something entirely different that my script code is <em>replaced</em> with someone else&#8217;s code that does not necessarily reflect what I intended the program to do.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Code that directly compiles and executes doesn&#8217;t scale.  You can&#8217;t do big projects that way successfully.  Its fine for hobby stuff, but it makes no sense for accomplishing goals with limited time or money, for almost all applications.</p>
<p>My father in law is a master scrimshawer.  He is amazing &#8211; he does really accurate historical designs on powder horns with just a pocket knife and shaved pencil lead.  Everything he ever makes is by hand.  He has very few tools in his shed.  He is also a master carver.  He hand-crafted, with hand tools only, an intricately carved desk for the governor of kentucky that was so good he was made a Kentucky Colonol over it (right there with Bill Clinton and Colonel Sanders).</p>
<p>But how long do you think it would take him to fashion a house using those techniques?  When he built his house, he used power tools.  He used a nail gun.</p>
<p>For small stuff &#8211; absolute control at every level of detail is fine.  But for achieving goals of any scale the same techniques do not work whatsoever.  You don&#8217;t widdle a house, and you don&#8217;t write anything important in a lower level language than you absolutely have to.</p>
<p>Once again: the &#8216;execution&#8217; thing is utterly arbitrary, as you are just scripting tasks an assembly programmer would have to do manually.  And you&#8217;re missing the point by clinging to this pseudo-manly hold-up.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Are you not grasping the idea that the code I write in C++ ultimately ends up as binary code that runs directly in the CPU, whereas code I write in JavaScript <em>always</em> has to go through an interpreter that substitutes its own code in place of my own <em>every</em> time the script executes?</p>
<p>Actually, it&#8217;s incorrect to even use the word &#8220;execute&#8221; when talking about a script, because all that happens is the interpreter <em>reads</em> the code and then runs <em>different</em> code that <em>isn&#8217;t</em> derived from, or based on, my code. Writing a script is like telling <em>someone else</em> to write and compile a program <em>for</em> you.</p>
<p>That&#8217;s the same beef I have with frameworks, btw. It&#8217;s one thing that my high-level OOP code goes through a compiler where it&#8217;s broken down into more and simpler components until it reaches the level of CPU instructions and then gets stored in a binary file; it&#8217;s something entirely different that my script code is <em>replaced</em> with someone else&#8217;s code that does not necessarily reflect what I intended the program to do.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>you and chalupa are too much</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Did you just make the claim that you cannot do a large scale project with C++?<br />
wow.. there&#8217;s a lot of egos in here</p>
<p>to the threadstarter, I&#8217;d recommend searching Google for some introductory Computer Science powerpoint slides. If you&#8217;re lucky, you&#8217;ll be able to get some programming assignments for the entire semester, so you have some goal to reach. Maybe try to complete one assignment every 2 weeks? They should get increasingly difficult, and you&#8217;ll probably be proficient in a language when you complete the course.</p>
<p>With that said, what kind of programming do you want to do? Web programming is different than server programming. If you want to learn good design, learn C# or Java. They will both teach you the principles of Object-Oriented Programming.</p>
<p>If you want to learn web development, learn PHP. Go to sites you like to look at and study the source code. That&#8217;s how TurkeyChicken started, and now he&#8217;s a full-time web developer ( is one of his websites).</p>
<p>If you really want to learn programming, though, you&#8217;ll learn how to program in several languages. Think of them as tools in your toolbox; some are better than others for certain tasks.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>C++ is terrible for large projects.  You would only use it if you had a compelling reason to do so, and then you would suffer for it.  Sometimes its the only way to go, and thats the only time you would use it.  Which is almost never.</p>
<p>But lets face it: you&#8217;ve never architected anything, so you have no idea what I&#8217;m talking about, right?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>wait, what?</p>
<p>so what are you proposing be used for large projects?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">wait, what?</p>
<p>so what are you proposing be used for large projects?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Ummm, what project?  Language selection depends completely on requirements.  Lets pick Google.</p>
<p>MOSTLY PYTHON.  The math parts are C++.  They try to keep as much in Python as possible, because they recognize that every line of code is a liability, and every line of C++ is more of a liability than Python.</p>
<p>If the whole thing were C++, how successful do you think they would be?</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Ummm, what project?  Language selection depends completely on requirements.  Lets pick Google.</p>
<p>MOSTLY PYTHON.  The math parts are C++.  They try to keep as much in Python as possible, because they recognize that every line of code is a liability, and every line of C++ is more of a liability than Python.</p>
<p>If the whole thing were C++, how successful do you think they would be?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>well if we&#8217;re talking web then i&#8217;ll be quicker to agree with you;  you just said large projects in general.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Ummm, what project?  Language selection depends completely on requirements.  Lets pick Google.</p>
<p>MOSTLY PYTHON.  The math parts are C++.  They try to keep as much in Python as possible, because they recognize that every line of code is a liability, and every line of C++ is more of a liability than Python.</p>
<p>If the whole thing were C++, how successful do you think they would be?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Let&#8217;s pick another hugely biased example: The Unreal Engine!</p>
<p>C++.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Let&#8217;s pick another hugely biased example: The Unreal Engine!</p>
<p>C++.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Very much C++.  And they have to have some of the best C++ talent in the world to pull it off, and they have an enormous budget.  C++ is a good choice for them because they can&#8217;t realistically choose anything else.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset"></td>
</tr>
</tbody>
</table>
</div>
<p>Yes I did, and I meant large projects in general.  You really think of Google as a &#8216;web app&#8217; ?  Its the biggest application in existence.  Nobody does more than google.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">C++ is terrible for large projects.  You would only use it if you had a compelling reason to do so, and then you would suffer for it.  Sometimes its the only way to go, and thats the only time you would use it.  Which is almost never.</p>
<p>But lets face it: you&#8217;ve never architected anything, so you have no idea what I&#8217;m talking about, right?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Wow. I don&#8217;t even know what to say.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Code that directly compiles and executes doesn&#8217;t scale.  You can&#8217;t do big projects that way successfully.  Its fine for hobby stuff, but it makes no sense for accomplishing goals with limited time or money, for almost all applications.</p>
<p>My father in law is a master scrimshawer.  He is amazing &#8211; he does really accurate historical designs on powder horns with just a pocket knife and shaved pencil lead.  Everything he ever makes is by hand.  He has very few tools in his shed.  He is also a master carver.  He hand-crafted, with hand tools only, an intricately carved desk for the governor of kentucky that was so good he was made a Kentucky Colonol over it (right there with Bill Clinton and Colonel Sanders).</p>
<p>But how long do you think it would take him to fashion a house using those techniques?  When he built his house, he used power tools.  He used a nail gun.</p>
<p>For small stuff &#8211; absolute control at every level of detail is fine.  But for achieving goals of any scale the same techniques do not work whatsoever.  You don&#8217;t widdle a house, and you don&#8217;t write anything important in a lower level language than you absolutely have to.</p>
<p>Once again: the &#8216;execution&#8217; thing is utterly arbitrary, as you are just scripting tasks an assembly programmer would have to do manually.  And you&#8217;re missing the point by clinging to this pseudo-manly hold-up.</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>I <em>do</em> know what to say to this, however:</p>
<p>1. Cool story.</p>
<p>2. You&#8217;re right that if your FIL hand-carved his house out of a solid block of redwood, he&#8217;d probably die before he finished (not to mention he&#8217;d have some impressive RSI in his hands). However, the difference between a cheap house and a good house &#8212; assuming the materials are the same &#8212; is that the cheap house is <em>only</em> assembled using a ripsaw and a nailgun, whereas the good house is assembled using those tools when a perfect fit <em>isn&#8217;t</em> necessary, and using a handsaw, planer, torpedo level, chisel, sandpaper, and a screwdriver when a perfect fit <em>is</em> required. No, the roof trusses don&#8217;t need to be hand-fitted perfectly to keep the roof from collapsing, but the window trim is going to look like shit (and leak) if you don&#8217;t do it just right.</p>
<p>To relate that back to coding, a language that compiles into binary code gives me the flexibility to get down and dirty and spend a week getting something just right if it&#8217;s really important (like a loop that runs millions of times a day, for example) or to gloss over the intricacies (like making a scrollbar work) if it doesn&#8217;t need to be customized to the <em>n</em>th degree. Scripting languages don&#8217;t let you do that, because you can&#8217;t go below the level of abstraction offered by the script interpreter; you&#8217;re stuck doing it the easy, stupid way, no matter how important it is to do something the hard, smart way.</p>
<p>I don&#8217;t know how many times I ran into something in JavaScript where I really needed Function X to work a very specific way to do what I needed to do, and when I asked my friend who writes JS in his sleep, he&#8217;d either say &#8220;your entire approach is wrong, you have to do it this other way in JS&#8221; or &#8220;no, you can&#8217;t do that in JS&#8221;. Well, in C++ I could <em>make</em> it do that, because I could go so far as to write assembly code if I really needed to &#8212; or at least write very simple, repetitive C code that didn&#8217;t rely on anyone else&#8217;s assumptions.</p>
<p>You can say &#8220;well you shouldn&#8217;t be using a scripting language for things that important&#8221;, and if you said that, I would completely agree. I&#8217;m not saying that scripting languages don&#8217;t have their uses, but you can&#8217;t call yourself a programmer if you don&#8217;t at least <em>know how</em> to dig around in bits and registers, even if you never run into a situation where you need to &#8212; and personally, I think you should work in a medium that gives you that flexibility anyway, because never is a very long time and a very unlikely outcome.<br />
I agree with Peyomp on this.  Why would you ever use C++ if you didn&#8217;t need its speed and ability to micromanage memory?  The only reason I advocated learning C earlier in this thread was purely academic.  I think that knowing the historical side of computer science contributes just as much to the advancement of the science as a good knowledge of the concepts.</p>
<div style="5px;">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tbody>
<tr>
<td class="alt2" style="1px inset">
<div style="italic">Ummm, what project?  Language selection depends completely on requirements.  Lets pick Google.</p>
<p>MOSTLY PYTHON.  The math parts are C++.  They try to keep as much in Python as possible, because they recognize that every line of code is a liability, and every line of C++ is more of a liability than Python.</p>
<p>If the whole thing were C++, how successful do you think they would be?</p></div>
</td>
</tr>
</tbody>
</table>
</div>
<p>How is a line of C++ more of a liability than a line of Python? Is it because a bad Python script can&#8217;t crash the server?</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/programming-for-beginners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Website &#8216;Media Player&#8217;</title>
		<link>http://www.vexstar.com/website-media-player/</link>
		<comments>http://www.vexstar.com/website-media-player/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 18:55:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[A-Z]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[rule processing]]></category>
		<category><![CDATA[then processing]]></category>
		<category><![CDATA[translator]]></category>
		<category><![CDATA[USD]]></category>
		<category><![CDATA[windows media player plugin]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/website-media-player/</guid>
		<description><![CDATA[Do any of you know if it is possible to make it so if any .wmv / .avi file is clicked on my website, it is automatically loaded either in that window, or in a popup.. instead of prompting user to download?
People upload files to my website, and want to be able to play the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Do any of you know if it is possible to make it so if any .wmv / .avi file is clicked on my website, it is automatically loaded either in that window, or in a popup.. instead of prompting user to download?</p>
<p>People upload files to my website, and want to be able to play the videos right on the site.. instead of having to download.</p>
<p>how the browser deals with .wmv/.avi files is up to the browser and the operating systems default file types.  instead of linking directly to the file you can either embed it in the current page or you can have a javascript link that opens a new window with the file embedded in the popup.<br /><span id="more-209"></span><br />i was hoping there may be a chance i could manipulate the way my website handles any url with *.wmv* in it.. maybe using the .htaccess&#8230; heh&#8230; guess i&#8217;ll have to do things the hard (right) way&#8230;</p>
<p>thanks<br />well you can link to a script that will output different headers and change the content-type while keeping the file as a wmv but that just helps the browser and OS know what to do with it.  examples with php here: </p>
<p>ya but if you actually want it to play inside the browser you&#8217;ll have to embed it.<br />short of using a windows media player plugin, java applet, or flash you can&#8217;t guarantee that function.  In the end, the browser decides how to handle it.<br />Use .htaccess to pass it through a PHP file that will properly embed it.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>That&#8217;s what I am going to try do do.. </p>
<p>[edit] i sucks, read next post [/edit]<br />Okie Dokie&#8230; I&#8217;m a little stuck (and off to bed so I have given up until tomorrow night after work)</p>
<p>Dumpy: (or anybody) &#8230; embedding into a php file is easy.. manually&#8230; how can I make it so clicking on &#8216;mysite.com/uploaded/ai2a/funnylol.avi&#8217; will be rewritten to say&#8230; &#8216;mysite.com/streaming/video.php&#8217; with the &#8216;funnylol.avi&#8217; video embedded into it&#8230;</p>
<p>Or is that too dificult / too much work / not possible?<br />You want flash video, man.  Its REALLY easy to create a playable .swf (flash) video if you have .flv video, or any kind of video for that matter.  Get Flash (the program) and create videos to embed.  It will even output the HTML to embed them for you, and you can easily set options for the player like audio controls, FF/rewind, etc.</p>
<p>Otherwise you just want to embed the video file in HTML.  You do not need PHP.</p>
<p>Do this: &lt;EMBED SRC=&quot;filename.???&quot;&gt;&lt;/EMBED&gt;</p>
<p>Look up the EMBED HTML docs.</p>
<p>Here&#8217;s an example of some audio: &lt;embed width=&quot;200&quot; height=&quot;30&quot; src=&quot;http://dev.myapp.com/static/audio/bob/restaurant.wav&quot;/&gt;
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">You want flash video, man.  Its REALLY easy to create a playable .swf (flash) video if you have .flv video, or any kind of video for that matter.  Get Flash (the program) and create videos to embed.  It will even output the HTML to embed them for you, and you can easily set options for the player like audio controls, FF/rewind, etc.</p>
<p>Otherwise you just want to embed the video file in HTML.  You do not need PHP.</p>
<p>Do this: &lt;EMBED SRC=&quot;filename.???&quot;&gt;&lt;/EMBED&gt;</p>
<p>Look up the EMBED HTML docs.</p>
<p>Here&#8217;s an example of some audio: &lt;embed width=&quot;200&quot; height=&quot;30&quot; src=&quot;http://dev.myapp.com/static/audio/bob/restaurant.wav&quot;/&gt;</p></div>
</td>
</tr>
</table>
</div>
<p>Converting to flv/swf is easy&#8230; my problem is I have people uploading .wmv, .avi, .mpg files, and I am trying to see if there is a way to redirect a direct URL if  to something like  &gt; video.php having code in it to grab that video and play it&#8230;</p>
<p>I think I am complicating things too much.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">Converting to flv/swf is easy&#8230; my problem is I have people uploading .wmv, .avi, .mpg files, and I am trying to see if there is a way to redirect a direct URL if  to something like  &gt; video.php having code in it to grab that video and play it&#8230;</p>
<p>I think I am complicating things too much.</p></div>
</td>
</tr>
</table>
</div>
<p>Then I suggest you read my post again, because I included instructions for embedding any kind of video using HTML.</p>
<p>I can embed&#8230; my issue was the video is being uploaded, and the url to the file will cause the browser (most likely) to download it&#8230;</p>
<p>I sort of figured this out&#8230; but I am having a problem&#8230;</p>
<p>I wanted when a user clicked , it to load in an embedded html/php file&#8230; </p>
<p>The easiest way to do this I figured was using .htaccess&#8230;</p>
<p>I have a php file that when combined with  &#8230; it plays it in the embedded page.</p>
<p>I then used a rewrite rule in .htaccess to rewrite the url  to &#8230;</p>
<p>Anyway&#8230; the video isn&#8217;t loading when it is redirected using the .htaccess!!</p>
<p>RewriteRule (.+).avi http://www.mysite.com/video.php?vid=$1.avi [QSA,L]</p>
<p>
*edited out website name because until i&#8217;m finished i dont want it published.<br />CLIFFS:</p>
<p>Embedded video = easy and works<br />
Rewriting link to video to the embedded link = easy? and no works&#8230; WtF<br />I posted this on another forum a while back (so I may not stand by the exact wording, but overall, it&#8217;s still accurate)&#8230;</p>
<p></p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Could you please explain how this code works?? Im clueless.</p></div>
</td>
</tr>
</table>
</div>
<p>RewriteRule    </p>
<p>
Okay, this is put into your .htaccess file, but CD forgot to mention that you need to turn on the rewrite engine.</p>
<div style="5px">
<pre style="auto">Options +FollowSymlinks
RewriteEngine on</pre>
</div>
<p>Although, putting those in your .htaccess file may wind up being redundant if you&#8217;re on a shared server (since most shared hosts have already done it for you), it&#8217;s always good practice to do it since both commands MUST be passed in order for rewrite rules work.</p>
<p>Moving on&#8230;</p>
<p>RewriteRule </p>
<p> = Begining of regex phrase (verbatim)<br />
 = variable content<br />
 = End of regex phrase.<br />
To break it down even more, what that phrase is saying is &quot;Everything after  will be made into a variable (how to call the variable will be discussed in just a second). Of course, this is assuming your URL contains .</p>
<p> = variable. You use this to call the variable created from . </p>
<p> = just an example PHP with various GET options in the URL. Simply put, this can be anything your little heart desires. Another example would be:  (assuming you have a file named viewfile.php and it is set up to $_GET[&quot;file&quot;]).</p>
<p> = No Case (case insensitive)<br />
 = Last (last flag)</p>
<p>
So here&#8217;s another example:</p>
<div style="5px">
<pre style="auto">Options +FollowSymlinks
RewriteEngine on

RewriteRule ^files/(.+)$ view.php?file=$1 [NC,L]</pre>
</div>
<p>Everything that is in the directory &quot;files&quot; will be passed through view.php for processing. Obviously in here, I can put a border, create a HTML page, throw in some ads, etc.</p>
<p>Love Always,<br />
Dumpy Dooby</div>
</td>
</tr>
</table>
</div>
<p>
So in your case, you&#8217;re going to want to go with:</p>
<div style="5px">
<pre style="auto">Options +FollowSymlinks
RewriteEngine on

RewriteRule ^<b>videos</b>/(.+)$ videos.php?view=$1 [R,L]</pre>
</div>
<p>That&#8217;s assuming your videos are contained in the <i>videos</i> subdirectory.</p>
<p>
I noticed one funny thing about my post: I used [NC,L], which is contradictory. Like I put above, you&#8217;ll want to go with [<b>R</b>edirect,<b>L</b>ast rule].</p>
<p>
Here is the information on flags from Apache []:<br />
<blockquote>Additionally you can set special flags for       <i>Substitution</i> by appending<br />
<blockquote>         <b>[<i>flags</i>]</b>       </p></blockquote>
<p>as the third argument to the RewriteRule       directive. <i>Flags</i> is a comma-separated list of the       following flags:
<ul>
<li>           &#8216;<b>redirect|R           [=<i>code</i>]</b>&#8216; (force <b>r</b>edirect)<br />
           Prefix <i>Substitution</i> with           [:thisport]/ (which makes the           new URL a URI) to force a external redirection. If no           <i>code</i> is given a HTTP response of 302 (MOVED           TEMPORARILY) is used. If you want to use other response           codes in the range 300-400 just specify them as a number           or use one of the following symbolic names:           temp (default), permanent,           seeother. Use it for rules which should           canonicalize the URL and give it back to the client,           <i>e.g.</i>, translate &#8220;/~&#8221; into           &#8220;/u/&#8221; or always append a slash to           /u/<i>user</i>, etc.<br />
                       <b>Note:</b> When you use this flag, make           sure that the substitution field is a valid URL! If not,           you are redirecting to an invalid location! And remember           that this flag itself only prefixes the URL with           [:thisport]/, rewriting           continues. Usually you also want to stop and do the           redirection immediately. To stop the rewriting you also           have to provide the &#8216;L&#8217; flag.</li>
<li>&#8216;<b>forbidden|F</b>&#8216; (force URL         to be <b>f</b>orbidden)<br />
         This forces the current URL to be forbidden,         <i>i.e.</i>, it immediately sends back a HTTP response of         403 (FORBIDDEN). Use this flag in conjunction with         appropriate RewriteConds to conditionally block some         URLs.</li>
<li>&#8216;<b>gone|G</b>&#8216; (force URL to be         <b>g</b>one)<br />
         This forces the current URL to be gone, <i>i.e.</i>, it         immediately sends back a HTTP response of 410 (GONE). Use         this flag to mark pages which no longer exist as gone.</li>
<li>           &#8216;<b>proxy|P</b>&#8216; (force           <b>p</b>roxy)<br />
           This flag forces the substitution part to be internally           forced as a proxy request and immediately (<i>i.e.</i>,           rewriting rule processing stops here) put through the . You have to make           sure that the substitution string is a valid URI           (<i>e.g.</i>, typically starting with           ) which can be           handled by the Apache proxy module. If not you get an           error from the proxy module. Use this flag to achieve a           more powerful implementation of the  directive,           to map some remote stuff into the namespace of the local           server.             Notice: To use this functionality make sure you have           the proxy module compiled into your Apache server           program. If you don&#8217;t know please check whether           mod_proxy.c is part of the &#8220;httpd           -l&#8221; output. If yes, this functionality is           available to mod_rewrite. If not, then you first have to           rebuild the &#8220;httpd&#8221; program with mod_proxy           enabled.</li>
<li>&#8216;<b>last|L</b>&#8216;         (<b>l</b>ast rule)<br />
         Stop the rewriting process here and don&#8217;t apply any more         rewriting rules. This corresponds to the Perl         last command or the break command         from the C language. Use this flag to prevent the currently         rewritten URL from being rewritten further by following         rules. For example, use it to rewrite the root-path URL         (&#8216;/&#8217;) to a real one, <i>e.g.</i>,         &#8216;/e/www/&#8217;.</li>
<li>&#8216;<b>next|N</b>&#8216;         (<b>n</b>ext round)<br />
         Re-run the rewriting process (starting again with the         first rewriting rule). Here the URL to match is again not         the original URL but the URL from the last rewriting rule.         This corresponds to the Perl next command or         the continue command from the C language. Use         this flag to restart the rewriting process, <i>i.e.</i>,         to immediately go to the top of the loop.<br />
         <b>But be careful not to create an infinite         loop!</b></li>
<li>&#8216;<b>chain|C</b>&#8216;         (<b>c</b>hained with next rule)<br />
         This flag chains the current rule with the next rule         (which itself can be chained with the following rule,         <i>etc.</i>). This has the following effect: if a rule         matches, then processing continues as usual, <i>i.e.</i>,         the flag has no effect. If the rule does         <b>not</b> match, then all following chained         rules are skipped. For instance, use it to remove the         &#8220;.www&#8221; part inside a per-directory rule set         when you let an external redirect happen (where the         &#8220;.www&#8221; part should not to occur!).</li>
<li>         &#8216;<b>type|T</b>=<i>MIME-type</i>&#8216;         (force MIME <b>t</b>ype)<br />
         Force the MIME-type of the target file to be         <i>MIME-type</i>. For instance, this can be used to         simulate the mod_alias directive         ScriptAlias which internally forces all files         inside the mapped directory to have a MIME type of         &#8220;application/x-httpd-cgi&#8221;.</li>
<li>           &#8216;<b>nosubreq|NS</b>&#8216; (used only if           <b>n</b>o internal           <b>s</b>ub-request)<br />
           This flag forces the rewriting engine to skip a           rewriting rule if the current request is an internal           sub-request. For instance, sub-requests occur internally           in Apache when mod_include tries to find out           information about possible directory default files           (index.xxx). On sub-requests it is not           always useful and even sometimes causes a failure to if           the complete set of rules are applied. Use this flag to           exclude some rules.<br />
                       Use the following rule for your decision: whenever you           prefix some URLs with CGI-scripts to force them to be           processed by the CGI-script, the chance is high that you           will run into problems (or even overhead) on           sub-requests. In these cases, use this flag.</li>
<li>&#8216;<b>nocase|NC</b>&#8216;         (<b>n</b>o <b>c</b>ase)<br />
         This makes the <i>Pattern</i> case-insensitive,         <i>i.e.</i>, there is no difference between &#8216;A-Z&#8217; and         &#8216;a-z&#8217; when <i>Pattern</i> is matched against the current         URL.</li>
<li>&#8216;<b>qsappend|QSA</b>&#8216;         (<b>q</b>uery <b>s</b>tring         <b>a</b>ppend)<br />
         This flag forces the rewriting engine to append a query         string part in the substitution string to the existing one         instead of replacing it. Use this when you want to add more         data to the query string via a rewrite rule.</li>
<li>           &#8216;<b>noescape|NE</b>&#8216;           (<b>n</b>o URI <b>e</b>scaping of           output)<br />
           This flag keeps mod_rewrite from applying the usual URI           escaping rules to the result of a rewrite. Ordinarily,           special characters (such as &#8216;%&#8217;, &#8216;$&#8217;, &#8216;;&#8217;, and so on)           will be escaped into their hexcode equivalents (&#8216;%25&#8242;,           &#8216;%24&#8242;, and &#8216;%3B&#8217;, respectively); this flag prevents this           from being done. This allows percent symbols to appear in           the output, as in      RewriteRule /foo/(.*) /bar?arg=P1%3d$1 [R,NE]</p>
<p>          which would turn &#8216;/foo/zed&#8217; into a safe           request for &#8216;/bar?arg=P1=zed&#8217;.                                         <b>Notice:</b> The               noescape flag is only available with               Apache 1.3.20 and later versions.</li>
<li>           &#8216;<b>passthrough|PT</b>&#8216;           (<b>p</b>ass <b>t</b>hrough to next           handler)<br />
           This flag forces the rewriting engine to set the           uri field of the internal           request_rec structure to the value of the           filename field. This flag is just a hack to           be able to post-process the output of           RewriteRule directives by           Alias, ScriptAlias,           Redirect, <i>etc.</i> directives from           other URI-to-filename translators. A trivial example to           show the semantics: If you want to rewrite           /abc to /def via the rewriting           engine of mod_rewrite and then           /def to /ghi with           mod_alias:      RewriteRule ^/abc(.*)  /def$1 [PT]<br />
    Alias       /def       /ghi</p>
<p>          If you omit the PT flag then           mod_rewrite will do its job fine,           <i>i.e.</i>, it rewrites uri=/abc/&#8230; to           filename=/def/&#8230; as a full API-compliant           URI-to-filename translator should do. Then           mod_alias comes and tries to do a           URI-to-filename transition which will not work.             Note: <b>You have to use this flag if you want to           intermix directives of different modules which contain           URL-to-filename translators</b>. The typical example           is the use of mod_alias and           mod_rewrite..</li>
<li>&#8216;<b>skip|S</b>=<i>num</i>&#8216;         (<b>s</b>kip next rule(s))<br />
         This flag forces the rewriting engine to skip the next         <i>num</i> rules in sequence when the current rule         matches. Use this to make pseudo if-then-else constructs:         The last rule of the then-clause becomes         skip=N where N is the number of rules in the         else-clause. (This is <b>not</b> the same as the         &#8216;chain|C&#8217; flag!)</li>
<li>         &#8216;<b>env|E=</b><i>VAR</i>:<i>VAL</i>&#8216;         (set <b>e</b>nvironment variable)<br />
         This forces an environment variable named <i>VAR</i> to         be set to the value <i>VAL</i>, where <i>VAL</i> can         contain regexp backreferences $N and         %N which will be expanded. You can use this         flag more than once to set more than one variable. The         variables can be later dereferenced in many situations, but         usually from within XSSI (via &lt;!&#8211;#echo         var=&quot;VAR&quot;&#8211;&gt;) or CGI (<i>e.g.</i>         $ENV{&#8216;VAR&#8217;}). Additionally you can dereference         it in a following RewriteCond pattern via         %{ENV:VAR}. Use this to strip but remember         information from URLs.</li>
</ul>
</blockquote>
<p></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/website-media-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Point-of-sale Recommendations</title>
		<link>http://www.vexstar.com/point-of-sale-recommendations/</link>
		<comments>http://www.vexstar.com/point-of-sale-recommendations/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 22:53:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[cashier]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[medium-large retail businesses]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql web databases]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[point-of-sale systems]]></category>
		<category><![CDATA[retail locations]]></category>
		<category><![CDATA[shit software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USD]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[web app]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[web databases]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/point-of-sale-recommendations/</guid>
		<description><![CDATA[I&#8217;m working with a regional company that has 20 retail locations and is using a cryptic, difficult point-of-sale system.  I feel like the current POS system is dated by at least ten years.  Writing reports is tedious and syncing with the web requires a lot of &#8216;hacking.&#8217;  Does anyone have experience with [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working with a regional company that has 20 retail locations and is using a cryptic, difficult point-of-sale system.  I feel like the current POS system is dated by at least ten years.  Writing reports is tedious and syncing with the web requires a lot of &#8216;hacking.&#8217;  <b>Does anyone have experience with point-of-sale systems for medium-large retail businesses?</b>  I know Microsoft makes something, I know there&#8217;s probably a bunch out there I&#8217;m just having a hard time finding what is needed.<br /><span id="more-201"></span></p>
<p>Any suggestions?  Thanks.<br />At my last gig, one of the things I did was I built a point of sale for a cashless slot machine system, in a casino (i.e. you buy a ticket from a cashier, then enter a code to play the game).  It was a Perl/Catalyst web app backed by MySQL with an on-site server.  Printing was done with Java/OpenPOS and an ethernet thermal printer.  Cashier stations were mac minis with USB barcode scanners running Ubuntu that booted direct to a Firefox you couldn&#8217;t escape.</p>
<p>We rolled our own because nothing was available commercially to do what we were doing.  Reports were also Perl/Catalyst web apps and could be accessed via the VPN.</p>
<p>I don&#8217;t know what system you should buy, but you should almost certainly buy an existing system.  Features I would look for would be easy integration with a central database for real-time reporting, and some seriously good usability.  Just survey everything thats out there and pick whatever is the best fit.  I would recommend going to similar businesses that are run really well and find out what they use and the determine if they can meet your reporting requirements as well.<br />The OpenBravo people have a very functional POS app.</p>
<p>
There&#8217;s also the Adempiere/opentap solutions, but they&#8217;re not quite as good, imo.</p>
<p>
All open source, though, so you can play around with them.<br />Been there done that, @ my last job I was stuck wuth using an ancient POS system running on db4 tables. I ended up using access to integrate and sync with my mysql web databases. </p>
<p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">The OpenBravo people have a very functional POS app.</p>
<p>
There&#8217;s also the Adempiere/opentap solutions, but they&#8217;re not quite as good, imo.</p>
<p>
All open source, though, so you can play around with them.</div>
</td>
</tr>
</table>
</div>
<p>Wow, openbravo looks VERY interesting. Open source is great too, every POS system I&#8217;ve seen, you had to bend over and pay $250/hr (usually @ 3-4 hours for a 10 minute job) for every minor little modification you needed done<br />It looks promising, but I wonder if they&#8217;ve nailed ease of use since it looks ERP oriented?  Anyone run it?
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>I&#8217;d be interested to hear from someone running it in production too. There&#8217;s no way it&#8217;s any worse than that piece of shit software I had to develop around. I know whenever I had to use it myself I&#8217;d end up sitting there writing SQL queries with the customer or vendor on the phone vs trying trying to find my way around the UI .</p>
<p>Check out all my &quot;African&quot; engineering in the queries list pic above </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/point-of-sale-recommendations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>website contact form not working</title>
		<link>http://www.vexstar.com/website-contact-form-not-working/</link>
		<comments>http://www.vexstar.com/website-contact-form-not-working/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 17:16:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/website-contact-form-not-working/</guid>
		<description><![CDATA[my form doesn&#8217;t work. can anyone help me? 
here&#8217;s the code in the html file:
&#60;form method=&#34;POST&#34; action=&#34;contact2.php&#34;&#62;
Fields marked (*) are required
&#60;p&#62;Email From:* &#60;br&#62;
&#60;input type=&#34;text&#34; name=&#34;EmailFrom&#34;&#62;
&#60;p&#62;FirstName:&#60;br&#62;
&#60;input type=&#34;text&#34; name=&#34;FirstName&#34;&#62;
&#60;p&#62;LastName:&#60;br&#62;
&#60;input type=&#34;text&#34; name=&#34;LastName&#34;&#62;
&#60;p&#62;HomeTel:&#60;br&#62;
&#60;input type=&#34;text&#34; name=&#34;HomeTel&#34;&#62;
&#60;p&#62;&#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Submit&#34;&#62;
&#60;/form&#62;

and here&#8217;s the php file:
&#60;?php
$EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); 
$EmailTo = &#34;&#34;;
$Subject = &#34;Testing&#34;;
$FirstName = Trim(stripslashes($_POST['FirstName'])); 
$LastName = Trim(stripslashes($_POST['LastName'])); 
$HomeTel = Trim(stripslashes($_POST['HomeTel'])); 
// validation
$validationOK=true;
if [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>my form doesn&#8217;t work. can anyone help me? </p>
<p>here&#8217;s the code in the html file:</p>
<p><font color="red"><font face="Verdana">&lt;form method=&quot;POST&quot; action=&quot;contact2.php&quot;&gt;<br />
Fields marked (*) are required</p>
<p>&lt;p&gt;Email From:* &lt;br&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;EmailFrom&quot;&gt;<br />
&lt;p&gt;FirstName:&lt;br&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;FirstName&quot;&gt;<br />
&lt;p&gt;LastName:&lt;br&gt;<br /><span id="more-138"></span><br />
&lt;input type=&quot;text&quot; name=&quot;LastName&quot;&gt;<br />
&lt;p&gt;HomeTel:&lt;br&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;HomeTel&quot;&gt;<br />
&lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt;<br />
&lt;/form&gt;<br />
</font></font></p>
<p>and here&#8217;s the php file:</p>
<p><font color="blue">&lt;?php</p>
<p>$EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); <br />
$EmailTo = &quot;&quot;;<br />
$Subject = &quot;Testing&quot;;<br />
$FirstName = Trim(stripslashes($_POST['FirstName'])); <br />
$LastName = Trim(stripslashes($_POST['LastName'])); <br />
$HomeTel = Trim(stripslashes($_POST['HomeTel'])); </p>
<p>// validation<br />
$validationOK=true;<br />
if (Trim($EmailFrom)==&quot;&quot;) $validationOK=false;<br />
if (!$validationOK) {<br />
  print &quot;&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=error.html&quot;&gt;&quot;;<br />
  exit;<br />
}</p>
<p>// prepare email body text<br />
$Body = &quot;&quot;;<br />
$Body .= &quot;FirstName: &quot;;<br />
$Body .= $FirstName;<br />
$Body .= &quot;n&quot;;<br />
$Body .= &quot;LastName: &quot;;<br />
$Body .= $LastName;<br />
$Body .= &quot;n&quot;;<br />
$Body .= &quot;HomeTel: &quot;;<br />
$Body .= $HomeTel;<br />
$Body .= &quot;n&quot;;</p>
<p>// send email <br />
$success = mail($EmailTo, $Subject, $Body, &quot;From: &lt;$EmailFrom&gt;&quot;);</p>
<p>// redirect to success page <br />
if ($success){<br />
  print &quot;&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=ok.html&quot;&gt;&quot;;<br />
}<br />
else{<br />
  print &quot;&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=error.html&quot;&gt;&quot;;<br />
}<br />
?&gt;</font><br />Is any variables being passed? What do you mena by NOT working?<br />Not sure the difference between php and perl, but in perl if you do $EmailTo = &quot;blah@blah.com&quot; you would have to escape the @ to prevent it from referencing the array @blah, so it would have to be &quot;blah@blah.com&quot; &#8211; if it seems to work but you&#8217;re not getting an e-mail, check that.  Other than that I don&#8217;t do PHP really, and you&#8217;ll need to provide a lot more detail than &quot;it doesn&#8217;t work&quot;.  What part seems to be failing, have you tried debugging statements and printing them to the browser, etc.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>.</p>
<p>Need a little more information.</p>
<p>PHP doesn&#8217;t mind the @ symbol being in the &quot;s.<br />when i click submit it goes to the php page and spits this out:</p>
<p>&quot;;   exit; }  // prepare email body text $Body = &quot;&quot;; $Body .= &quot;FirstName: &quot;; $Body .= $FirstName; $Body .= &quot;n&quot;; $Body .= &quot;LastName: &quot;; $Body .= $LastName; $Body .= &quot;n&quot;; $Body .= &quot;HomeTel: &quot;; $Body .= $HomeTel; $Body .= &quot;n&quot;;  // send email  $success = mail($EmailTo, $Subject, $Body, &quot;From: &lt;$EmailFrom&gt;&quot;);  // redirect to success page  if ($success){   print &quot;&quot;; } else{   print &quot;&quot;; } ?&gt;<br />Based on that, I&#8217;m guessing</p>
<p>$validationOK=true;<br />
if (Trim($EmailFrom)==&quot;&quot;) $validationOK=false;</p>
<p>should be</p>
<p>$validationOK=true;<br />
if (Trim($EmailFrom)==&quot;&quot;) { $validationOK=false; }<br />looks good to me.  if it&#8217;s spitting out actual php code your server set up may be the problem.</p>
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">Based on that, I&#8217;m guessing</p>
<p>$validationOK=true;<br />
if (Trim($EmailFrom)==&quot;&quot;) $validationOK=false;</p>
<p>should be</p>
<p>$validationOK=true;<br />
if (Trim($EmailFrom)==&quot;&quot;) { $validationOK=false; }</div>
</td>
</tr>
</table>
</div>
<p>that shouldn&#8217;t make a difference.<br />Sounds like when you FTP&#8217;d it something went wrong.  Try uploading again.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">looks good to me.  if it&#8217;s spitting out actual php code your server set up may be the problem.</p>
<p>that shouldn&#8217;t make a difference.</p></div>
</td>
</tr>
</table>
</div>
<p>Uh&#8230;why wouldn&#8217;t the braces make a difference?  He has a very similar if statement directly below that one that does have the braces.  If its not required, why put braces after one if statement but not after the other if statement?  Its either wrong, or just bad coding.</p>
<p>Edit: to show what i meant</p>
<p>No braces:<br />
if (Trim($EmailFrom)==&quot;&quot;) $validationOK=false;</p>
<p>Braces:<br />
if (!$validationOK) {<br />
print &quot;&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=error.html&quot;&gt;&quot;;<br />
exit;<br />
}</p>
<p>Why is it ok on the first one but not the second one?  Languages are typically very very picky about where you have braces, and if PHP doesn&#8217;t care whether you have braces to enclose the block of code from an if statement thats just shitty.<br />Its ok because one if statement executes one command, and the other executes multiple commands.</p>
<p>Edit:  Its the same in C, C++, Java, and 11ty billion other languages.
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
<div style="italic">Its ok because one if statement executes one command, and the other executes multiple commands.</p>
<p>Edit:  Its the same in C, C++, Java, and 11ty billion other languages.</p></div>
</td>
</tr>
</table>
</div>
<p>  and perl.  in fact in perl with 1 line &#8216;if&#8217; statements you can even put it before the condition like this:</p>
<p>$num = 1 if $num &gt;1;
<div style="5px;">
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="1px inset">
<div></div>
</td>
</tr>
</table>
</div>
<p>Weird.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/website-contact-form-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Cloud</title>
		<link>http://www.vexstar.com/amazon-cloud/</link>
		<comments>http://www.vexstar.com/amazon-cloud/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 06:20:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USD]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://www.vexstar.com/amazon-cloud/</guid>
		<description><![CDATA[I am really, really impressed with Amazon EC2/S3/Queue/SimpleDB.  There have been a few issues of downtime lately, but basically I&#8217;ve written a web application using Perl/Catalyst/MySQL/Ubuntu (and sometimes Solaris) that needs to sale to 100K hits an hour or so, but will remain idle most of the time.  In other words it needs [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I am really, really impressed with Amazon EC2/S3/Queue/SimpleDB.  There have been a few issues of downtime lately, but basically I&#8217;ve written a web application using Perl/Catalyst/MySQL/Ubuntu (and sometimes Solaris) that needs to sale to 100K hits an hour or so, but will remain idle most of the time.  In other words it needs to handle short term slashdottings.  </p>
<p>So, if I build out the infrastructure myself&#8230; I&#8217;ll end up paying for server I am only going to use for a very small part of the time.   On the other hand&#8230; EC2 is only $0.10-$0.30 an hour for a server.  So at my slowest times, I&#8217;m only paying $72-$216 a month for a server&#8230; which is pretty trivial for a pay service.  <br /><span id="more-65"></span></p>
<p>There are some other costs associated with data transfer, but for what I&#8217;m doing they don&#8217;t amount to much.</p>
<p>Basically, Amazon EC2 lets us:</p>
<p>1) Use SimpleDB so that all new instances can access the model and I don&#8217;t have to worry about scaling MySQL or another DB.  Headache gone.  Our app barely hits the DB, but what data is there does need to be shared by all instances.</p>
<p>2) Use Amazon&#8217;s queue to serve work.  Right now I use an InnoDB table as a queue.  Amazon&#8217;s queue will do this for me, across many boxen.  Another headache gone.</p>
<p>3) Use S3 to serve media.  Why not?  Its the same price as EC2 for data xfer, xfer between EC2 and S3 is free, and if you put a cache of work you&#8217;ve done in SimpleDB then all instances can share S3 and not do the same work twice.</p>
<p>4) Run one $0.30 an hour box all the time, and instantiate new boxes as load increases.  Add then to round-robin DNS as they come up.</p>
<p>This way the architecture is completely horizontal, and it all faces Amazon&#8217;s cloud.  So long as their cloud stays up&#8230; the app will scale to hell and back.  For minimal cost.<br />good stuff. i have a couple of beta apps up on an EC2 instance, but i&#8217;m not completely sold on the SimpleDB though. I trust my dbms scaling over that from what I understand<br />I agree and if our use of the DB wasn&#8217;t trivial, I wouldn&#8217;t even consider it.  I&#8217;ve been told that &#8216;Basically noone uses SimpleDB.&#8217;  But since we&#8217;re pretty light on the DB&#8230; its nice not to worry about a high available/high performance/scalable DB, huh?   I was going to have to spend a lot of time on HA MySQL.  The key is that all we really do that needs to be shared is log events, then count them later to make sure we don&#8217;t repeat one kind of message too many times.  Ideal use of SimpleDB.</p>
<p>
The minute I need to start worrying about HA mysql or postgre, I&#8217;ll probably be raking in enough $$$ from said app to afford it<br />Well thats the bad part &#8211; I would have to build out an HA DB&#8230; and then we might not need it.  Because I have to guarantee a certain amount of uptime and capacity, but its not automatic it will get used.</p>
<p>So yeah, commodity HA distributed DB is the tits.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vexstar.com/amazon-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

