MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

  • Recent Posts

    August 2017
    M T W T F S S
    « Jul    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Subscribe Options

  • Awards

    JavaCodeGeeks
  • Most Valuable Blogger @ DZone
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 172 other followers

  • Follow MyThinkPond on WordPress.com
  • Blog Stats

    • 364,737 hits
  • General Options

Archive for the ‘Scripting’ Category

Elements of JavaScript Style – JavaScript Scene – Medium

Posted by Venkatt Guhesan on May 3, 2017

Great article focusing on Javascript style. Provides some good examples of JavaScript coding styles, practices, and things to avoid.

The examples includes:

  1. Make the function the unit of composition. One job for each function.
  2. Omit needless code.
  3. Use active voice.
  4. Avoid a succession of loose statements.
  5. Keep related code together.
  6. Put statements and expressions in positive form.
  7. Use parallel code for parallel concepts.

Source: Elements of JavaScript Style – JavaScript Scene – Medium

Posted in EL6, Javascript, Scripting | Tagged: , , , | Leave a Comment »

Set Up a TFTP Server on Linux | Linux.com

Posted by Venkatt Guhesan on March 13, 2017

Most users are familiar with FTP, but if you want to kickstart Red Hat installs, PXE boot systems, auto-provision VoIP phones or unbrick a Linux-based router, you want a Trivial File Transfer Protocol (TFTP) server. Setting one up on Linux is easy, and a perfect project to take on over the weekend.

Source: Weekend Project: Set Up a TFTP Server on Linux | Linux.com | The source for Linux information

Posted in Bash, CentOS 6.X, CentOS7, Hypervisior Images, Linux, Scripting | Tagged: , , | Leave a Comment »

How To Record Everything You Do In Terminal – OSTechNix

Posted by Venkatt Guhesan on March 13, 2017

Synopsis:


script -a my_history

mkdir test

cd test

touch hello_world.txt

echo 'Hello World' > ./hello_world.txt

# This closes the "script -a my_history" file
exit

Source: How To Record Everything You Do In Terminal – OSTechNix

Posted in Bash, CentOS 6.X, CentOS7, Linux, Scripting | Tagged: , , , , , | Leave a Comment »

The Future of Web Development: Coding as a Service

Posted by Venkatt Guhesan on March 12, 2017

The article talks about the comoditization of web development as a service (Coding as a Service – CaaS).

For the price of two Venti Iced Caramel Macchiatos per month you can run a respectable website with little to no technical experience… Artificial Intelligence will enable more complex combinations of code to be fit together through an automated process… The quantity and quality of customization with AI will be staggering. And for the end user this means it will be at once simpler and cheaper… CaaS via AI will not be limited to people making ‘interesting’ websites. Ultimately CaaS will drive down the time and money necessary for new capabilities in spaces from enterprise to social. But in the near term CaaS will affect programmers who complete relatively simple or scripted tasks, like querying databases for example. No longer will we need armies of coders who expertly understand how to fit if else statements within loops, whether to use Ruby or Angular. AI will be able to do this much faster, with fewer errors, and a greater understanding of system requirements.

Read more about it at the link below:

https://hackernoon.com/the-future-of-web-development-coding-as-a-service-e413c978f77e#.bslzklff4

Posted in Great Ideas, Science and Technology, Scripting, Technology, Trending | Tagged: , , , , | Leave a Comment »

Tired of “Terminate batch job (Y/N)?”, try this

Posted by Venkatt Guhesan on June 24, 2011

When you invoke a batch file or most applications in a command-prompt and when you wish to close the application by doing a CTRL+C, you get the annoying “Terminate batch job (Y/N)?” prompt. And in most cases, even if you type a “n”, it still kills the application. Example is the Tomcat startup. To avoid this, try this:


YourScript.cmd < Nul

This should no longer ask you with the annoying prompt “Terminate batch job (Y/N)?”.

Now for a few examples from my everyday usage:


grails run-app < Nul
h2.bat < Nul
startup.bat < Nul
mvn tomcat:run < Nul
mvn jetty:run < Nul

Cheers.

Posted in General, Scripting | Tagged: , , , | 2 Comments »