Of all people a tech recruiter on LinkedIn recently asked “IT professional”, “Non-IT professionals”, web developers, recruiters, and HR managers what they thought about the H1B Visa Program.

Hmmm.  I should ask him how he feels about cancer or being paid about half of what he’s worth?!  I seldom engage on any social media, but I just couldn’t help but respond:  “It’s disgusting and everyone behind it deserve to have THEIR JOBS depressed with more artificially imported competition, they better watch it because enough good US programmers might find ways to replace them with automation systems. That’s social justice and karma.”

So, a tech recruiter, someone whose job isn’t directly affected by political whims and crony capitalism, is asking “our thoughts” about these destructive, self-serving and anti-American labor policies under the guise of what’s called the H1B Visa Program.  He’s asking as if he really has a dog in the fight, as if his livelihood has been intentionally depressed by supporting the policies of importing substandard IT, programmers and other web professionals and supplanting Americans from jobs they’ve proven are capable of doing.

Many tech recruiters get 20% of many new hires’ first year salary for being a middle man without the same marketable, highly valued skills they are actually selling.  On top of that, their fees price some developers out of good positions, even if the employer finds them most qualified!  Thanks, again recruiters!

So much patronizing arrogance surrounds the tech sector.  So many just don’t understand how we do things, if they don’t get it, it must not be important, this interweb thingy, making it work right and all — many still just don’t value tech.  Many organizations value people with Marketing Degrees a lot more than programmers, database administrators and software engineers.  O, I went to school, got a bachelor’s in Business Management, minored in Marketing but I learned much about the web, including system design, programming and writing code over the span of 15 years.

It’s almost like what we tech people do is so mysterious and nebulous to so many people, we’re not even here.  What people don’t understand, they ignore, they don’t see.  This might be why so many ignore our presence and use that as an excuse to need to import cheap labor knowing it will bring salaries drastically down.  So many people who make their money off the tech industry, like some recruiters, treat web developers and software programmers as commodities instead of people, like cattle instead of fellow countrymen.  Many recruiters are great and try hard for their candidates but shame on those American organizations, businesses and politicians who are exploiting hard working and smart people in their own country, people who spent years learning these highly technical skills, skills admittedly most people just can’t do or don’t have the discipline themselves to study and master.  We’re all neighbors and you basically let your dog crap on our front lawn everyday, how neighborly.

I say since you’re so pro-globalism and want more competition, be careful what you wish for.  I’d like to remind the people who are hurting American workers and their families that their selfish greed will come back because us tech people, programmers, the makers of “internet stuff”, one day we might just all wake up and automate you out of a job, build a better system to compete against your business, make sure you politicians who aren’t protecting our interests that all you selfish H1B’ers out there, the tables will be turned on you.  It’s almost a guarantee, karma has a way of coming around and serving up some delicious humble pie.

Do I sound bitter?  I’m not, a little angry, perhaps because its selfish and unjust for so many who have been affected.  I have friends who lost jobs and had to train their cheaper H1B replacements, just down in Orlando.  Though I know H1B has created competition that has pushed down tech salaries in general, even here as a Director of Web Development in Jacksonville, Florida, I’m pretty grateful I work at a web-centric company that is evolving with its appreciation of web savvy technical expertise and that they value it more than most companies around.

Still, I’m a lucky one and I like to see people be treated fairly and rewarded for their skills, talents and contributions.  A true meritocracy will empower companies that are not just taking part in depressing the tech sector’s wages, they’re really disincentives that are hurting their own bottom line, they’re stifling tech innovation, and that is hurting our economy with billions of dollars worth of misdirected underemployment.  A meritocracy is what capitalism is supposed to model and H1B is an aberration to true market principles because it introduces artificial and unfair pressure to a large labor market with trillions of dollars in costs to our economy, in the form of opportunity costs, misdirected incentives, and resource misallocation.


I created this page as a running repository of useful, miscellaneous web notes for later reference.


Javascript & JQuery

How to get the latest version of JQuery:

alert('JQuery: '+$.fn.jquery);   // Outputs JQuery: x.x.x

Useful info about Javascript and JQuery source maps — an explanation about what they are and how they are used:

http://elijahmanor.com/the-magic-of-the-jquery-1-9-source-map/

Parsley — A reliable and easy Javascript form validation library:

http://parsleyjs.org/

Get hostname in Javascript:

// For the host name only, use:

window.location.hostname

Server Notes, LAMP/WAMP

Latest WAMP install instructions — in less than 5 minutes you can deploy WAMP with MySQL server on localhost.  Not bad for quick local dev server.

http://forum.wampserver.com/read.php?2,123606


Symfony

A utility for Symfony to convert those awful annotations to YML files:

https://packagist.org/packages/sed/route-exporter-bundle


Helpful Symfony 3.0 base commit, to start new PHP Symfony projects:

https://github.com/itrascastro/Symfony-3-Base-Project
https://github.com/keefekwan/symfony2_forms

Best example of a form collection at work I think is here (many thanks to the programmers making these publicly accessible!)

https://github.com/sevnekish/user_manager


Symfony 2 performance tips:

http://labs.octivi.com/mastering-symfony2-performance-internals/

Form Type setDefaultOptions weird error:

http://stackoverflow.com/questions/31659102/symfony2-error-on-submitting-form-with-a-collection-of-forms-warning-spl-obj?rq=1


General Web Notes & Utilities

Free OST file viewer worked well, allows you to save a person’s Microsoft Exchange mailbox email file and open and view the contents without messing with the .ost file in Outlook!

http://www.ostviewer.com/

Waka Time — Free web development time tracking utility:

https://wakatime.com

Websites that show the latest hiring trends in the tech industry:
https://news.ycombinator.com/item?id=11202954

https://whoishiring.io/#!/stats/

A good simplified explanation and list about HTTP 2:

https://www.keycdn.com/support/http2/

Good article about the anatomy of a URL:

http://www.skorks.com/2010/05/what-every-developer-should-know-about-urls/

Steps for setting up DNS on a Ubuntu server:

http://mixeduperic.com/ubuntu/seven-easy-steps-to-setting-up-an-interal-dns-server-on-ubuntu.html


PHP/MySQL

PHP SQL injection – good article:

http://phpdelusions.net/sql_injection



Aaron Belchamber
22 years experience in marketing and building businesses

Senior PHP & Symfony Web Developer, Business Analyst, Marketing Director
Belchamber.us / TopDocsTalk.com
(904) 294-0803 • Jacksonville, Florida


For some sites, semalt related traffic can sap performance bandwidth.  Here’s the most recent .htaccess directives blocking semalt traffic to your sites:

# Block SEMalt botnet
SetEnvIfNoCase Referer fbdownloader.com spammer=yes
SetEnvIfNoCase Referer descargar-musicas-gratis.com spammer=yes
SetEnvIfNoCase Referer baixar-musicas-gratis.com spammer=yes
SetEnvIfNoCase Referer savetubevideo.com spammer=yes
SetEnvIfNoCase Referer srecorder.com spammer=yes
SetEnvIfNoCase Referer kambasoft.com spammer=yes
SetEnvIfNoCase Referer semalt.com spammer=yes

Order allow,deny
Allow from all
Deny from env=spammer

 


Here’s how you can allow different search engine bot crawlers if you prefer to address them individually.  There might be some crazy reasons why which I try to explain below.  For some companies, it seems web developers often don’t dev to create new web assets, they dev to squeeze any remaining SEO juice from their old assets.  Always diminishing returns when you measure the opportunity cost of not spending time and resources moving forward, but instead looking back.

SetEnvIfNoCase User-Agent .*bing.* search_robot
SetEnvIfNoCase User-Agent .*google.* search_robot
SetEnvIfNoCase User-Agent .*yahoo.* search_robot
SetEnvIfNoCase User-Agent .*bot.* search_robot
SetEnvIfNoCase User-Agent .*ask.* search_robot

Order Deny,Allow
Deny from All
Allow from env=search_robot

Here are some more .htaccess SetEnvIf & SetEnvIfNoCase Examples from Apache’s website.

PHP Logic for detecting different search engine crawlers

You may want to redirect your content to be customized for different search engine bots to repair certain SEO issues that you may encounter.

Here is the Search Engine Directory of Spider Names

if(stristr($_SERVER['HTTP_USER_AGENT'], "googlebot")){

    // what to do -- change "googlebot" to other spiders in list
}

For certain instances where some how a server that was supposed to be locked down was inadvertently crawled by a search engine, you don’t want to open your entire site for all crawlers, here’s a way you can open your site to confirm your site ownership file by the crawler and perhaps disavow content if you don’t have anything better to do than massage your site’s SEO and squeeze every drop of juice from it.

<html>
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<title>Web Development is a finite resource</title></head>
<body>
Does quality content matter any more?
</body>
</html>