Kategorie: Tech
Alle Technologiethemen sind hier unter einem Metathema gebündelt.
All technology topics bundled under one meta-topic.
Masonry Layout Solutions
JS, NodeJS, Microservices & Contemporary Software Development
- JavaScript Masterclass
- Use NodeJS for everything
- The Hitchhiker’s Guide to All Things Memory in Javascript
- The myth of the “Real JavaScript Developer”
- Mastering Chaos – A Netflix Guide to Microservices
- An Overview of Designing Microservices
- SOLID Principles of Object Oriented and Agile Design
- The JavaScript Semicolon
- JavaScript Promises
- NodeJS at Netflix
- Why Netflix whent with NodeJS
- Slaying Monoliths with Docker and Node.js
Toolkits for NodeJS Development
Remove “Private:” from the titles of private WordPress pages
# add to functions.php of your theme function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( '#Protected:#', '#Private:#' ); $replacewith = array( '', // What to replace "Protected:" with '' //What to replace "Private:" with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter('the_title', 'the_title_trim');
JavaScript Knowlege Links
- Master the JavaScript Interview: What is Functional Programming?
- Master the JavaScript Interview: Soft Skills
- Top JavaScript Frameworks & Topics to Learn in 2017
- Master the JavaScript Interview: What is a Closure?
- Eloquent JavaScript
- Common Misconceptions about JavaScript
- Advice on OOP in JavaScript
TabrisJS
WordPress RTE Keyboard Shortcuts
WordPress Debugging
You might not need JavaScript
Quoted of the Web: “PHPs badness is its advantage”
I love Python, I think JavaScript is sort of OK and I did a lot of serious programming in ActionScript 2&3, both of which are quite simular to JS. I was basically forced into doing PHP by the market. I never really liked PHP but I really never hated it either. The thing about PHP is that it’s so specific in its domain and such a hack that no one doing PHP development for a living will go around boasting about the greatness of the language. There is a refreshing lack of arrogance in the PHP community which, in my observation, makes it very easy for n00bs to pick up. As a result we get countless people reinventing the wheel in PHP and discovering basic programming patters anew for them selves and starting yet another Framework/CMS/Whatnot and the results often are really bizar. But the community remains alive that way.
Working with Drupal with a current project because it’s the prime go-to CMS here is like a live alice in wonderland trip. A strange historically grown mess, barely tamed by sanitiy and a relentless chaotic community that all by accident seem to come up with hacks that somehow solve the problem in some way. And yet there’s a solid global corporation building its business all around Drupal [acquia.com]. The surreal hacks with which the Drupal people solve their problems are mindboggling, and yet everybody seems totally OK with it. And Drupals track record of deployments is impressive.
I guess with PHP it’s somehow like the C vs. Lisp argument: C is so shitty compared to Lisp that you have to get yourself together and work as a team, or you won’t get anything done. Hence Lisp has this loner exisitance on the side and all the real work gets done in this ancient C thing.
PHP is a simular thing. It is so bad that no respectable programmer would pick it up voluntarly nowadays, but yet it grew out of Perl (which is worse in some ways), was somewhat of an improvement and was at the right place at the right time. The badness of PHP accounts for its considerable lack of arrogance (compare the PHP community to the Ruby community for instance) and for no one feeling guilty when he does a quick bad hack.
As a programmer you don’t feel dirty when you do bad programming in PHP, you already felt that when you picked PHP as the solution. Hence quite a bit of work gets done in PHP. That’s why PHP has Drupal and Typo3 and Joomla and the Java Community has nothing of that proportions. The barrier of entry into PHP is *very* low which gives it its momentum.
WordPress Path to actual active theme / Pfad zum eigentlich aktiven Theme
preg_replace("/\/\w*?\.css/", "/", get_stylesheet_uri());
Gibt den Pfad des aktiven Themes zurück, auch wenn dies ein Child-Theme ist. Vorrausgesetzt, das Child Stylesheet ist mit WordPress Bordmitteln im Theme eingebunden und aktiviert.
Returns the path of the actual active theme, even if this is a child theme. This only works if the child themes stylesheet is included with WordPress methods.
Return value comes with trailing Slash!!
Clear Scrollback History in iTerm2
printf '\e]50;ClearScrollback\a'
jQuery Spreadsheets Overview / Tabellenwidgets Übersicht
http://jspreadsheets.com/
Show Active Web VHosts on Linux
List all active apache web vhosts on Ubuntu/Debian Linux / Liste alle aktiven Apache Web VHosts auf einem Ubuntu/Linux Server auf:
ls /etc/apache2/sites-enabled | sed 's,\s,\n,g' | sed 's,^,/etc/apache2/sites-enabled/,g' | xargs cat | grep -v "#" | grep ServerName | sed 's,ServerName,,g' | sed 's,\s,,g'
Adding a user to a group on Mac OS X
Auf Mac OX X einen User einer Gruppe hinzufügen:
sudo dseditgroup -o edit -a [UserNameToAdd] -t user [Groupname]
World Map
WordPress Updates ohne/without FTP
Disable FTP requirement for Pluing Installations and Updates / FTP Anforderung für Plugin und Updateinstallation deaktivieren:
//add to wp-config.php define('FS_METHOD','direct');
WordPress – Does Author have Posts or not? / Hat der User Posts oder nicht?
<?php if (count(query_posts('author='.get_current_user_id().'&posts_per_page=5')) > 0) { //User hat posts / User has posts } else { //User hat KEINE posts / User has NO posts } ?>