For me as a Linuxw user I always had to type long lines to start my SSHw sessions. It’s no rocket science, you know, but for he who types thousands of characters each day, each character save is golden.
We usally start our SSH sessions by typing the following command string:
ssh user@domain.tld
I’ve tried to shorten this by adding the domain and its TLDw to my hosts file with a shorter alias like
hname hostname.tld
But obviously that crashed against Apachew Vhostw capability, the request never make it to the other end.
I personally have SSH keys on some of my servers to avoid typing passwords, that is good to prevent against MITMw attacks and keyloggers, but I still have to type the string mentioned lines above.
Then, with 3 lines in a SSH’s configuration file on my home directory (yes, you don’t need to alter the server’s SSH configuration file and yes, you can do that on your shared hosting’s shell account). Read the full article
Sometimes you want to include page-specific JavaScriptw or CSSw files and ended up in cluttered ifs and else ifs or even creating a creepy new page just for that.
Wordpressw’s excellent plugin infrastructure with their hooks and actions provides us a beautiful and clean form of including our JavaScript in specific pages.
In this tutorial, we will be using three Wordpress functions: get_post_meta() and wp_enqueue_script() and wp_enqueue_style(). Read the full article
Wordpress wonders me how it born as a Blogging platform and is growing a powerful CMS platform. Its plugin framework is full of hooks and actions and almost everything can be trapped and modified by plugins.
As Wordpress is a Procedural Programmingw oriented platform the function wrapped to the hooks and actions have no scope when called except global this can be hell when developing plugins. We must take extra-care to not compromise our plugin security and compatibility.
In our road developing plugins we learned some lessons, here is our share. Read the full article
We have just baked the Brazillian Portuguese pt_BR.po (and .mo) internationalization language files for the great WP-Filebase Wordpress plugin from Fabian Schlieper.
This plugin is a great download / file manager that covered just all holes that we need in our clients’ projects. It features a highly configurable theming, internationalization, categorization, download counter, traffic/bitrate limiter and more.
While it’s not a great secret, many people still not aware of the alternative syntax for control structures under PHP.
The C-like syntax for control structures are very intuitive but can deal lots of trouble when your code has lot of pages and lots of ifs, fors, while and therefore lots of opening and closing braces.
NOTE: As remembered by jakyra on DZone, if you keep your code tidy you shouldn’t have functions that long and though not having this kind of problem, but this alternative syntax still have good benefits.
The alternative syntax
The alternative syntax consists in changing the opening brace ({) to a colon (:) and each closing brace to its respective closing function: endif;, endfor;, endforeach;, endwhile; and endswitch;. Read the full article
We are constantly trying to improve our web applications performance to gain speed, lower the load on the clusters and thus being able to attend to even more users but have you ever thought about how these improvements can aid Global Warming?
For years optimization techniques such as Caching in many levels (Disk/Memory), Compression, Clustering and other were developed to acheive greater performance.
Global Warming is there for years and is getting worse every year but it seems that movements under IT has begun in order to create greener solutions. Many hosts such as Dreamhost (which we’re proud of being our hosting company) have already started their effort in reducing or even neutralizing their Carbon Footprint and now developers can help on their side too. Read the full article
During TISafe’s Security Officer training this month, while talking about cryptography, the Scytale technique came up.
This was one of the first cryptography method with historical registry, used by the Greeks (Spartans, more specifically) to cypher messages during military campaigns thus not letting the enemy know their moves even if the message carrier gets caught, tortured or killed. Read the full article
Found that great video at LearnSecurityOnline.com of a presentation by one of its founders, Joseph McCray at Saecur’s DojoSec (monthly event hosted by Marcus Carey), earlier this year in February.
Joseph speaks in a very well-humorous way about “Advanced SQL Injection” covering from Error-based SQL Injection to Blind SQL Injection, pretty nasty and nice! Gives another good overview under what we developers should look when protecting our code.