The Steel Guitar Forum Store 

Post new topic Languages
Reply to topic
Author Topic:  Languages
b0b


From:
Cloverdale, CA, USA
Post  Posted 3 Feb 2021 11:49 pm    
Reply with quote

I've been doing some web programming lately, and it got me thinking. When I did my first web site, I just had to learn one language - HTML - and it was pretty straightforward. Today, you basically need to know 5 different, unique programming languages:
  1. HTML - to structure the content of the page
  2. CSS - to control the appearance of the page
  3. JavaScript - to interact with the reader on his "device"
  4. PHP (or Java, Python, Ruby, etc.) - to generate the page on the server
  5. mySQL - to interact with a database on the server
Darn, this is complicated! Confused

What a difference 25 years makes. Laughing
_________________
-𝕓𝕆𝕓- (admin) - Robert P. Lee - Recordings - Breathe - D6th - Video
View user's profile Send private message Visit poster's website

Georg Sørtun


From:
Mandal, Agder, Norway
Post  Posted 4 Feb 2021 6:55 am    
Reply with quote

Yeah, 25 years already … and still no real holography Smile
View user's profile Send private message Send e-mail Visit poster's website

Jim Fogle


From:
North Carolina, Winston-Salem, USA
Post  Posted 4 Feb 2021 9:58 am    
Reply with quote

Darn bOb, 🤨

How about English so you can read and write the posts!

😷
_________________
Remembering Harold Fogle (1945-1999) Pedal Steel Player
Dell laptop Win 10, i3, 8GB, 480GB
2024 BiaB UltraPlus PAK
Cakewalk by Bandlab Computer DAW
Zoom MRS-8 8 Track Hardware DAW
View user's profile Send private message Send e-mail Visit poster's website

Wiz Feinberg


From:
Mid-Michigan, USA
Post  Posted 4 Feb 2021 8:35 pm    
Reply with quote

Yep to all of those technologies. Same here. And I thought learning Spanish was complicated! Not compared to some web and computer languages.

Here's a fer instance of something I did earlier today.

The problem:
Bingbot was misindexing my blog articles. It left off the actual folder where the blog is published, resulting in hundreds of 404 Not Found errors. This is hilarious since it was trying to index files it already knows exist! It just had the wrong starting paths.

Solution:
Experiment in a test folder on the server until I figure out the right codes to redirect the bot up one directory. It took me quite a while to get it right: 15 minutes.

RedirectMatch 301 ^/(\d{4})/(\d{2})/(.*) /FOLDERNAME/$1/$2/$3

This simple application of Regular Expressions inside a 301 permanent redirect rule solved the problem and is now letting this misguided search engine verify the existence of the articles it was looking for in the wrong place. Anybody could do this, right?

To some, this may look like black magic from the Dark Web. In reality it is just a normal web programming language called Regular Expressions, wrapped inside what is known as a "redirect directive," inside a special control file known as .htaccess
_________________
"Wiz" Feinberg, Moderator SGF Computers Forum
Security Consultant
Twitter: @Wizcrafts
Main web pages: Wiztunes Steel Guitar website | Wiz's Security Blog | My Webmaster Services | Wiz's Security Blog
View user's profile Send private message Send e-mail Visit poster's website

Fred Treece


From:
California, USA
Post  Posted 4 Feb 2021 8:59 pm    
Reply with quote

Funny, I was just reading about Google employees today, and what they actually do at work. They have to know all those languages you mentioned, b0b, plus they have to have an aptitude for “abstract math”. And the kicker —- “We are looking for a certain personality type” —- without actually explaining what that personality type is. On a different website, an employee described some of the daily routine an $80k Google guy can expect, which included a trip to their own coffee bar and a mid morning YouTube session watching panda bears do forward rolls.
View user's profile Send private message Send e-mail

Richard Sinkler


From:
aka: Rusty Strings -- Missoula, Montana
Post  Posted 5 Feb 2021 4:38 am    
Reply with quote

Fred Treece wrote:
Funny, I was just reading about Google employees today, and what they actually do at work. They have to know all those languages you mentioned, b0b, plus they have to have an aptitude for “abstract math”. And the kicker —- “We are looking for a certain personality type” —- without actually explaining what that personality type is. On a different website, an employee described some of the daily routine an $80k Google guy can expect, which included a trip to their own coffee bar and a mid morning YouTube session watching panda bears do forward rolls.


Don't underestimate the value of pandas doing forward rolls. 🐼 😉
_________________
Carter D10 8p/8k, Dekley S10 3p/4k C6 setup,Regal RD40 Dobro, NV400, NV112 . Playing for 54 years and still counting.
View user's profile Send private message Send e-mail

Steven Schwartz

 

From:
Longview Washington, USA
Post  Posted 4 Mar 2021 6:20 pm    
Reply with quote

This newbie to the steel world has programmed computers since 1971.

I still have nightmares about using PHP 15 years ago. I am so glad I am retired.

Thanks b0b for all you do. Every time I see your name "b0b" I smile inside. It's one of the coolest geekiest names I know. Btw, that is a complement.

Thank you for maintaining this website.
View user's profile Send private message Send e-mail

b0b


From:
Cloverdale, CA, USA
Post  Posted 4 Mar 2021 6:38 pm    
Reply with quote

Regular expressions {{{{shudder}}}}. I never learned that language, but it's all over the place the phpBB code. I recently had to decipher this line, a mix of PHP and regex:

Code:
$sig = ($sig_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$sig_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig'];

I now understand what it does, but I still don't know what the '\\3' actually means. Wiz?
_________________
-𝕓𝕆𝕓- (admin) - Robert P. Lee - Recordings - Breathe - D6th - Video
View user's profile Send private message Visit poster's website

Wiz Feinberg


From:
Mid-Michigan, USA
Post  Posted 4 Mar 2021 8:05 pm    
Reply with quote

b0b wrote:
Regular expressions {{{{shudder}}}}. I never learned that language, but it's all over the place the phpBB code. I recently had to decipher this line, a mix of PHP and regex:

Code:
$sig = ($sig_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$sig_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig'];

I now understand what it does, but I still don't know what the '\\3' actually means. Wiz?


b0b;
I'd only be guessing what the \\3 means. Because it is quoted and separated from the other expressions by commas, it is part of an equation and is a variable, or represents a variable's position.

As a RegEx, a backslash is used to escape a literal. The literal is probably \3. The additional backslash escapes that identifier. It might indicate 3 items in a line of input to keep the RegEx engine from continuing processing forever.

The entire expression deals with User ID and a Signature existing or not existing.
_________________
"Wiz" Feinberg, Moderator SGF Computers Forum
Security Consultant
Twitter: @Wizcrafts
Main web pages: Wiztunes Steel Guitar website | Wiz's Security Blog | My Webmaster Services | Wiz's Security Blog
View user's profile Send private message Send e-mail Visit poster's website

b0b


From:
Cloverdale, CA, USA
Post  Posted 5 Mar 2021 3:43 pm    
Reply with quote

The lack of comments in phpBB code really irks me sometimes. Someone once told me, "When you solve a problem with a regular expression, you end with two problems - the original one and the regular expression."
_________________
-𝕓𝕆𝕓- (admin) - Robert P. Lee - Recordings - Breathe - D6th - Video
View user's profile Send private message Visit poster's website

Ian Rae


From:
Redditch, England
Post  Posted 5 Mar 2021 5:01 pm    
Reply with quote

In the late 60s I learned Fortran so I could make punched cards. The actual computer was in another city.

I have shown no interest since.
_________________
Make sleeping dogs tell the truth!
Homebuilt keyless U12 7x5, Excel keyless U12 8x8, Williams keyless U12 7x8, Telonics rack and 15" cabs
View user's profile Send private message Send e-mail Visit poster's website

Bill McCloskey


From:
Nanuet, NY
Post  Posted 5 Mar 2021 7:21 pm    
Reply with quote

I made my career being an expert in VRML of all things. Do you remember Virtual Reality Modeling Language Bob?

In the 90's my actual, on the card, title was VRML Evangelist for SGI.

Those were some fun, fun times. Nothing better than being part of the most hedonistic, coolest, company on the planet at the birth of the 3D and Internet industries and living in Silicon Valley....

ah the 90's.
View user's profile Send private message Send e-mail Visit poster's website

Steven Schwartz

 

From:
Longview Washington, USA
Post  Posted 5 Mar 2021 9:18 pm    
Reply with quote

Hedonistic companies in Silicon Valley?? I grew up in Silicon Valley. Worked for Corvus and Apple in the 80's doing early networking. Corvus was definitely the most hedonistic. Beer on tap 24 hours a day in the cafeteria. Lots of "breaks" to the parking lot.

By the time I started with Apple in 1986, the world was moving on from beer and "breaks" to lattes and smoothies.

I survived the 80's, barely. I must never forget how messed up a lot of that was.

Steve
View user's profile Send private message Send e-mail

Slim Heilpern


From:
Aptos California, USA
Post  Posted 6 Mar 2021 6:36 am    
Reply with quote

b0b wrote:
Regular expressions {{{{shudder}}}}. I never learned that language, but it's all over the place the phpBB code. I recently had to decipher this line, a mix of PHP and regex:

Code:
$sig = ($sig_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$sig_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig'];

I now understand what it does, but I still don't know what the '\\3' actually means. Wiz?


And that's the rub with regular expressions: reverse engineering them if you don't live and breath that language is a pain in the butt. There are plenty of books on composing regular expressions, but I haven't seen one that teaches you how to quickly read them. If you're like me, and bump into them only occasionally, it can be painful. I'm not knocking their usefulness, just whining about how unintuitive that language is.

- Slim
_________________
Chromatic Harmonica, Guitar, and Pedal Steel (Williams U12 Series 700, Emmons lap)
http://slimandpenny.com
View user's profile Send private message Send e-mail Visit poster's website

Wiz Feinberg


From:
Mid-Michigan, USA
Post  Posted 6 Mar 2021 9:11 am    
Reply with quote

FYI, Writing and testing Regular Expressions is tedious. So, i use a program that matches regular expressions to text. It is known as RegEx Match Tracer. The last version was 3.x, published in 2013. It still works for me!
_________________
"Wiz" Feinberg, Moderator SGF Computers Forum
Security Consultant
Twitter: @Wizcrafts
Main web pages: Wiztunes Steel Guitar website | Wiz's Security Blog | My Webmaster Services | Wiz's Security Blog
View user's profile Send private message Send e-mail Visit poster's website

b0b


From:
Cloverdale, CA, USA
Post  Posted 7 Mar 2021 7:33 pm    
Reply with quote

An expert on phpBB Refugees attempted to explain to me what the '\\3' means. I still don't quite get it. Makes me wonder if there's an easier way to do it. Probably not.

http://www.phpbb2refugees.com/viewtopic.php?p=11002#11002
_________________
-𝕓𝕆𝕓- (admin) - Robert P. Lee - Recordings - Breathe - D6th - Video
View user's profile Send private message Visit poster's website

Lee Baucum


From:
McAllen, Texas (Extreme South) The Final Frontier
Post  Posted 8 Mar 2021 3:08 am    
Reply with quote

Ian Rae wrote:
In the late 60s I learned Fortran so I could make punched cards. The actual computer was in another city.

I have shown no interest since.


I took one semester of FORTRAN in college, in the early 1970s.

It didn't help one bit (or byte) having the computer in the same building!

Laughing
View user's profile Send private message Send e-mail

Ake Banksell


From:
Stockholm, Sweden
Post  Posted 8 Mar 2021 5:13 am    
Reply with quote

At least you didn’t have to deal with different accents b0b. Laughing
View user's profile Send private message


All times are GMT - 8 Hours
Jump to:  

Our Online Catalog
Strings, CDs, instruction,
steel guitars & accessories

www.SteelGuitarShopper.com

Please review our Forum Rules and Policies

Steel Guitar Forum LLC
PO Box 237
Mount Horeb, WI 53572 USA


Click Here to Send a Donation

Email admin@steelguitarforum.com for technical support.


BIAB Styles
Ray Price Shuffles for
Band-in-a-Box

by Jim Baron
HTTP