LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

The beauty of Perl

Posted 07-27-2018 at 07:13 PM by anestis89

It's been some time from my first post. I have almost finished "Learning Perl",
2nd edition from Randal Schwartz and Tom Christiansen, and I have to say I was
amazed by this language. Now, this edition is rather old (1999) because I borrowed
it from my local library, today it's in the 7th edition, but the language didn't
change very much. It is still Perl 5.

A few words about Perl: Perl is an old language. It was created in 1987 by Larry...
LQ Newbie
Posted in Uncategorized
Views 5619 Comments 0 anestis89 is offline
Old
Rating: 3 votes, 5.00 average.

Bash Scripting for Dummies and Geniuses

Posted 11-20-2013 at 10:18 AM by rtmistler
Updated 06-12-2018 at 12:22 PM by rtmistler

One only need look at LinuxQuestions.org to notice the great amount of script (and code) questions and varieties of comments to realize that we all have varying opinions about bash programming.

Many questions are very complicated, as are the resulting answers and script recommendations. I've noticed that two fundamental points are invariably overlooked by the questioners, and many of the comments:

Quote:
"All programming is the use of simple operations to solve complex problems
...
Moderator
Posted in Bash Scripting
Views 3410 Comments 6 rtmistler is offline
Old

C++ had lambda functions!

Posted 01-31-2013 at 02:21 AM by hydraMax (Bits and Pixels)

I'm doing a CS class which forces me to use C++. I was not very excited about this. However, I have recently be greatly encouraged by the discovery that C++ does, in fact, have lambda functions (or, more properly, anonymous functions) at least in the C++11 standard:

https://en.wikipedia.org/wiki/Anonym...ctions#C.2B.2B

Basically, the big deal here is that I can construct new functions /inside/ of other functions, and even capture variables from the context. This,...
Member
Posted in Uncategorized
Views 1103 Comments 0 hydraMax is offline
Old

Too cool: Haskell Source Analysis

Posted 09-21-2012 at 09:46 PM by hydraMax (Bits and Pixels)
Updated 09-21-2012 at 09:54 PM by hydraMax

I tried out Haskell's SourceGraph program on the project I'm currently working on. It produces tons of cool dependency / analysis graphs. I saved a summary graph in SVG format at the following location:

https://frigidcode.com/ftprepo/edge/...aph-0.1.15.svg

Warning: It is only 374K in size, but it is over 22,000 pixels wide at the default size!

The project in its present form uses an event-based model with an oop-like component structure....
Member
Posted in Uncategorized
Views 1183 Comments 0 hydraMax is offline
Old

gtsh: how to use Google Translate without touching a web browser

Posted 08-09-2011 at 06:49 PM by MrCode
Updated 08-09-2011 at 06:49 PM by MrCode ("Transhlate"? WTF? :p)

I present "gtsh" (Google Translate for the SHell), a tiny(!) shell script that acts as a frontend to Google Translate:

Code:
#!/bin/bash
if test -z $3; then
	echo "Usage: $0 \"<str>\" <lang1> <lang2>"
	echo "Translates string \"<str>\" from <lang1> to <lang2>"
	echo "(CLI frontend to Google Translate)"
else
	wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-$3}"
...
Member
Views 9508 Comments 1 MrCode is offline

  



All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration