Perl check if file handler is open
write fast code in Perl
In this article I want to show how to write fast Perl-Code from the first to the last line, you could use it to speed up existing Programs but its better to make it right from beginning.
Turn off things you don?t need
In Perl it is important to use strict, but only for developing,…
Post has been published on http://scheinast.eu/write-fast-code-in-perl/
Regular expression
A regular expression is a search pattern, its very often used in the programming language Perl, but it is used in other programming languages too or Text editors.
Meta characters
char
meaning
^
defines the end of the matching String
$
defines the end of the matching…
Post has been published on http://scheinast.eu/regular-expression/
GNU/Linux
In this article I wrote about the Linux-Kernel and the GNU-Project, together they are called GNU/Linux.It is an Unix like Operating system and in the most cases POSIX-compliant and open source.The Kernel was firs released in the year 1991 from Linus Torvalds.
GNU/Linux is often used for…
Post has been published on http://scheinast.eu/gnulinux/
WordPress change login image
This is more fun than real use, I want Gandalf from Lord of the Rings to protect my word press login.Its really simple, just upload the images to your web space and then open the ?/wp-admin/wp-login.php? and change the this:
<div id=”login”>
<h1><a href=”<?php…
Post has been published on http://scheinast.eu/wordpress-change-login-image/
Perl Tricks
here is a list of Operator in Perl that are not really known, but they are very useful and could make your code shorter but harder to read. Undefined Operator This examples check if the value is undefined: [crayon-557fd502478b3340048806/] it was undefined so the //= operator set it…
viaPerl Tricks.
Online tools are great – until they disappear
Closed Sign by James Alan, licensed under CC BY-SA 3.0 via Wikipedia
Facebook announced last week that the service FriendFeed would be shut down in April. I was a FriendFeed user, I even used to have a link to it here on the Skeptic History page – for those who wanted to see the daily history posts using that service. But it’s been increasingly less useful as it has been supplanted by newer services like Twitter and Facebook itself.
As we use online tools to achieve specific goals, we must be mindful that they do disappear like this. It’s always wise to have a good idea what benefit you are getting from which tools, and which alternatives are available should one disappear.
Let’s take a moment to consider a few tools that have disappeared recently, why that happens and some good strategies for might replacing them.
View original post 1,261 more words
Java try/catch
This is a little example about try and catch in Java:
public class HelloWorld{
public static void main(String []args){
System.out.print(“write your number: “);//Info text
String str = System.console().readLine();//read input
int res = 0;
try{
…
Post has been published on http://scheinast.eu/java-trycatch/
Fortran function example
This is an example in Fortran how to make a function:
program hello
implicit none
integer:: square
integer:: i
Print *,”write your number:”
read *, i
print *,”your number:”,i
i= square(i)
print *,”your result:”,i
end program Hello
integer function…
Post has been published on http://scheinast.eu/fortran-function-example/
Perl default defined variables – store and restore
Perl special variables.
This is a little Script to store all default defined variables from Perl into an Scalar ant then to restore everything like it was before the store function.
use strict;
use Data::Dumper;
my %store = ;
sub StoreDefVars{
$_[0]->’DefVars1′ =…
Post has been published on http://scheinast.eu/perl-default-defined-variables-store-and-restore/
Perl
A nice post about Perl.
Perl – Practical Extraction and Report Language is a free high-level, interpreted, dynamic programming language written by Larry Wall in the year 1987.Perl is very good for shell scripting and regualar expression.If you use GNU/Linux is default installed, on windows you have to install A…
Post has been published on http://scheinast.eu/perl/
Hallo Welt!
Dies ist dein erster Beitrag. Klicke auf den Link „Bearbeiten“, um diesen zu bearbeiten oder zu löschen, oder beginne einen neuen Beitrag. Wenn du möchtest, kannst du diesen Beitrag verwenden, um Lesern mitzuteilen, warum du diesen Blog begonnen hast und was du damit vor hast.
Viel Spaß beim Bloggen!