Are you over 18 and want to see adult content?
More Annotations
A complete backup of www.sportsv.net/articles/71920
Are you over 18 and want to see adult content?
A complete backup of www.bbc.co.uk/news/business-51626529
Are you over 18 and want to see adult content?
A complete backup of www.liberation.fr/direct/element/dark-waters-cyrille-agriculteur-mes-jours-de-gloire-nos-critiques-des-sort
Are you over 18 and want to see adult content?
A complete backup of www.atlantico.fr/decryptage/3587609/-dark-waters-de-todd-haynes--un-homme-seul-contre-une-toute-puissante-i
Are you over 18 and want to see adult content?
A complete backup of www.espn.in/football/report?gameId=550370
Are you over 18 and want to see adult content?
A complete backup of www.thetoc.gr/people-style/article/xaris-romas-pantreutika-inkogknito-se-mikri-ilikia---o-pateras-mou-me-up
Are you over 18 and want to see adult content?
A complete backup of www.hindustantimes.com/cricket/south-africa-vs-australia-2nd-t20i-in-port-elizabeth-live-cricket-score-and-
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of cloudvillevape.com
Are you over 18 and want to see adult content?
A complete backup of studentbox.com.au
Are you over 18 and want to see adult content?
A complete backup of boothamphitheatre.com
Are you over 18 and want to see adult content?
A complete backup of kesherisrael.org
Are you over 18 and want to see adult content?
A complete backup of wholeclarity.com
Are you over 18 and want to see adult content?
A complete backup of ps2city.wordpress.com
Are you over 18 and want to see adult content?
A complete backup of baixarfilmespc.blogspot.com
Are you over 18 and want to see adult content?
Text
queries
LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns MANAGING THE IPTABLES FIREWALL USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
HEXAGONAL ARCHITECTURE API DEVELOPMENT: ETAGS AND CONDITIONAL GET In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
GLUING NODE LIBRARIES TOGETHER WITH EVENT EMITTERS Encapsulate and abtract away business logic for each library in our own smaller modules. Use our main script to implement our new modules and tie their emitted events together. Let's see what that means for our above example. First, let's work on encapsulating our business logic into our own modules. AUTO-DEPLOY WITH GITHUB'S WEBHOOKS AND NODE I recently felt the need to automate a project's updating without using Git on the production server. The project is hosted on GitHub, so I had GitHub's WebHooks available to me. FULL-SITE DELIVERY WITH CLOUDFRONT HOW WE CODE: ORMS AND ANEMIC DOMAIN MODELS DATABASE TRANSACTIONS IN LARAVEL Database transactions consist of three possible "tools": Creating a transaction - Letting the database know that next queries on a connection should be considered part of a transaction. Rolling back a transaction - Cancelling all queries within the transaction, ending the transactional state. Committing a transaction - Committing allqueries
LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns MANAGING THE IPTABLES FIREWALL USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
HEXAGONAL ARCHITECTURE API DEVELOPMENT: ETAGS AND CONDITIONAL GET In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
GLUING NODE LIBRARIES TOGETHER WITH EVENT EMITTERS Encapsulate and abtract away business logic for each library in our own smaller modules. Use our main script to implement our new modules and tie their emitted events together. Let's see what that means for our above example. First, let's work on encapsulating our business logic into our own modules. AUTO-DEPLOY WITH GITHUB'S WEBHOOKS AND NODE I recently felt the need to automate a project's updating without using Git on the production server. The project is hosted on GitHub, so I had GitHub's WebHooks available to me. MANAGING THE IPTABLES FIREWALL Here's how: $ sudo iptables -I INPUT 1 -i lo -j ACCEPT. This command is very similar to the ones above: -I INPUT 1 - Insert a rule to the "input" chain in the 1st slot. -i lo - Apply the rule to the loopback interface. -j ACCEPT - Set it to accept traffic to the input chain when using tcp on port 443. HEXAGONAL ARCHITECTURE I recently gave a talk on Hexagonal Architecture at Laracon NYC. The feedback was great, but seemed to have left people wanting for some extra explanation and of course examples. This is an attempt to expand on the ideas of that presentation. VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. SPEED UP YOUR PHP APPLICATION WITH ZEND OPCACHE OpCache is like APC - it caches your compiled PHP so you don't need to rebuild it on every request. PHP 5.5 comes with OpCache out of the box. I happen to have PHP 5.4 and wanted it now, so I decided to install it. Here's how. VIM AND TMUX ON YOUR MAC On your Mac, you can use Homebrew: $ brew install tmux. Ubuntu or Debian users can user apt-get: $ sudo apt-get install tmux. Great. Now, colors are also an issue when running Vim within Tmux. Let's fix that. Create or edit the file ~/.tmux.conf: $ vim ~/.tmux.conf > set -g default -terminal "screen-256color". A DESCRIPTION OF HYPERMEDIA APIS A Description of Hypermedia APIs. Fundamentally, people do two things on the internet: Hypermedia API's are systems which want a consuming API (the programmed client) to do that as well. Hypermedia API's accomplish this by responding to requests with both the requested data AND other resources available or actions to take. CHANGING THE LARAVEL LOG FILE NAME (AND PLAYING IN THE I wanted to change the default `laravel.log` file name for an application I'm working on. This is hard-coded into Laravel core, and so I had to get a bit fancy to do it. See how! ETAG'S AND CONDITIONAL GET'S IN LARAVEL 4 ETag's and Conditional GET's in Laravel 4. I've begun integrated ETag's into a Laravel 4 API application. I've started by implementing Conditonal GETs. For review, Conditional GET's allow a server to respond with a 304 Not Modified response if a resource has not changed since a client has last checked it. This saves bandwidth and,potentially
LARAVEL 4: WHERE TO PUT BINDINGS If you make judicious use of IoC containers (and Dependency Injection), you'll likely end up with lots of Bindings, some of whichmay look like:
DOMAINS FOR SALE
The following domains are for sale: blunble.com; automated.app; backops.app; scaling.app; vessel.app; serverops.cloud; serverops.io; Contact me at: chris [at FULL-SITE DELIVERY WITH CLOUDFRONTFIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers. LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns DATABASE TRANSACTIONS IN LARAVEL Database transactions consist of three possible "tools": Creating a transaction - Letting the database know that next queries on a connection should be considered part of a transaction. Rolling back a transaction - Cancelling all queries within the transaction, ending the transactional state. Committing a transaction - Committing allqueries
VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. MANAGING THE IPTABLES FIREWALL API DEVELOPMENT: ETAGS AND CONDITIONAL GET In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
ETAGS AND OPTIMISTIC CONCURRENCY CONTROL ETags and Optimistic Concurrency Control. I last wrote about ETags in context of Conditional GETs, which allow a server to see if a resource has been modified since the last time a client checked. If it has not been modified, the server can return a 304 Not Modified response. Another use for Etags is Concurrency Control, specifically Optimistic A DESCRIPTION OF HYPERMEDIA APIS A Description of Hypermedia APIs. Fundamentally, people do two things on the internet: Hypermedia API's are systems which want a consuming API (the programmed client) to do that as well. Hypermedia API's accomplish this by responding to requests with both the requested data AND other resources available or actions to take. FULL-SITE DELIVERY WITH CLOUDFRONTFIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers. LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns DATABASE TRANSACTIONS IN LARAVEL Database transactions consist of three possible "tools": Creating a transaction - Letting the database know that next queries on a connection should be considered part of a transaction. Rolling back a transaction - Cancelling all queries within the transaction, ending the transactional state. Committing a transaction - Committing allqueries
VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. MANAGING THE IPTABLES FIREWALL API DEVELOPMENT: ETAGS AND CONDITIONAL GET In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
ETAGS AND OPTIMISTIC CONCURRENCY CONTROL ETags and Optimistic Concurrency Control. I last wrote about ETags in context of Conditional GETs, which allow a server to see if a resource has been modified since the last time a client checked. If it has not been modified, the server can return a 304 Not Modified response. Another use for Etags is Concurrency Control, specifically Optimistic A DESCRIPTION OF HYPERMEDIA APIS A Description of Hypermedia APIs. Fundamentally, people do two things on the internet: Hypermedia API's are systems which want a consuming API (the programmed client) to do that as well. Hypermedia API's accomplish this by responding to requests with both the requested data AND other resources available or actions to take.FIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers.ADAPTERS AND MAKERS
Adapters. Adapters learn their tools and adapt their usage so they can complete their objectives. Adapters tend to work through the frustrations that come with learning a new tools, either because they enjoy the learning process or sheer determination to not be defeated (apologies if "sheer determination" is a tad hyperbolic). MANAGING THE IPTABLES FIREWALL Here's how: $ sudo iptables -I INPUT 1 -i lo -j ACCEPT. This command is very similar to the ones above: -I INPUT 1 - Insert a rule to the "input" chain in the 1st slot. -i lo - Apply the rule to the loopback interface. -j ACCEPT - Set it to accept traffic to the input chain when using tcp on port 443. VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. RAW QUERIES IN LARAVEL DB::raw () is used to make arbitrary SQL commands which aren't parsed any further by the query builder. They therefore can create a vector for attack via SQL injection. Since the query builder is using PDO in the background, we know there is a way to bind parameters to our LARAVEL AND CONTENT NEGOTIATION When a request comes to our application, it's pretty easy to ignore these rules, as our frameworks generally let us return whatever we want. This is the "negotiation" part. The client says what content types it's willing to accept, and its preference. The server then can decide what it's willing/able to send back. Or ignore it, if it's arebel.
AN EXPLANATION OF CACHING The HTTP spec defines 2 methods of HTTP caching: Validation - save bandwidth by not having an origin server reply with a full message body (your origin server returns a header-only response) Expiration - save round-trips to the origin server - a cache can potentially serve a response directly, saving the origin server from even knowing about GLUING NODE LIBRARIES TOGETHER WITH EVENT EMITTERS Encapsulate and abtract away business logic for each library in our own smaller modules. Use our main script to implement our new modules and tie their emitted events together. Let's see what that means for our above example. First, let's work on encapsulating our business logic into our own modules. INSTALL OLDER VERSIONS OF NODEJS Because this breaks so many packages, I often need to install pre-0.10 versions of Node. Here's how to do that in Ubuntu 12.04 server. It'll be short and sweet. First, some dependencies, if you don't already have them: $ sudo apt-get install wget build -essential. Second, grabwhatever version of
SPEED UP YOUR PHP APPLICATION WITH ZEND OPCACHE OpCache is like APC - it caches your compiled PHP so you don't need to rebuild it on every request. PHP 5.5 comes with OpCache out of the box. I happen to have PHP 5.4 and wanted it now, so I decided to install it. Here's how. FULL-SITE DELIVERY WITH CLOUDFRONTFIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers. LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns DATABASE TRANSACTIONS IN LARAVEL Database transactions consist of three possible "tools": Creating a transaction - Letting the database know that next queries on a connection should be considered part of a transaction. Rolling back a transaction - Cancelling all queries within the transaction, ending the transactional state. Committing a transaction - Committing allqueries
MANAGING THE IPTABLES FIREWALL API DEVELOPMENT: ETAGS AND CONDITIONAL GETUSING ETAGS In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
ETAGS AND OPTIMISTIC CONCURRENCY CONTROLAZURE BLOB CONCURRENCY ETags and Optimistic Concurrency Control. I last wrote about ETags in context of Conditional GETs, which allow a server to see if a resource has been modified since the last time a client checked. If it has not been modified, the server can return a 304 Not Modified response. Another use for Etags is Concurrency Control, specifically Optimistic A DESCRIPTION OF HYPERMEDIA APIS A Description of Hypermedia APIs. Fundamentally, people do two things on the internet: Hypermedia API's are systems which want a consuming API (the programmed client) to do that as well. Hypermedia API's accomplish this by responding to requests with both the requested data AND other resources available or actions to take. FULL-SITE DELIVERY WITH CLOUDFRONTFIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers. LARAVEL PDO CONNECTION OPTIONS PHP's PDO has many attribute options you can configure. Occasionally, we may need to change some options to fit our infrastructure or code needs. For example, we might need to turn on persistent connections.. Sidenote: Consider carefully if you really want to turn on persistent connections. I was curious about whether Laravel used persistent connections by default, as CodeIgniter does (turns DATABASE TRANSACTIONS IN LARAVEL Database transactions consist of three possible "tools": Creating a transaction - Letting the database know that next queries on a connection should be considered part of a transaction. Rolling back a transaction - Cancelling all queries within the transaction, ending the transactional state. Committing a transaction - Committing allqueries
MANAGING THE IPTABLES FIREWALL API DEVELOPMENT: ETAGS AND CONDITIONAL GETUSING ETAGS In fact, it is - or at least can be. There are two uses for ETags: Conditional GET (the so-called "cacheing mechanism") Concurrency Control. I will cover Conditional GETs here. Conditional GETs allow a client to ask a server if a resource has changed. If it has notchanged, it
VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. USER AND GROUP PERMISSIONS, WITH CHMOD, AND APACHE Next, allow users of the same group (and 'other') to enter the /var/www directory. This is not done recursively. Once again, we use 'group' and 'other' but we use '+' to allow the execute ('x') permission. $ chmod go+x / var /www. Next, change all directories and files in the web root to the same group (www-data) - just in casethere are files
ETAGS AND OPTIMISTIC CONCURRENCY CONTROLAZURE BLOB CONCURRENCY ETags and Optimistic Concurrency Control. I last wrote about ETags in context of Conditional GETs, which allow a server to see if a resource has been modified since the last time a client checked. If it has not been modified, the server can return a 304 Not Modified response. Another use for Etags is Concurrency Control, specifically Optimistic A DESCRIPTION OF HYPERMEDIA APIS A Description of Hypermedia APIs. Fundamentally, people do two things on the internet: Hypermedia API's are systems which want a consuming API (the programmed client) to do that as well. Hypermedia API's accomplish this by responding to requests with both the requested data AND other resources available or actions to take.FIDELOPER
Coding, servers, and business. Two personality traits exist on opposite ends of a spectrum: adapters and makers.ADAPTERS AND MAKERS
Adapters. Adapters learn their tools and adapt their usage so they can complete their objectives. Adapters tend to work through the frustrations that come with learning a new tools, either because they enjoy the learning process or sheer determination to not be defeated (apologies if "sheer determination" is a tad hyperbolic). MANAGING THE IPTABLES FIREWALL Here's how: $ sudo iptables -I INPUT 1 -i lo -j ACCEPT. This command is very similar to the ones above: -I INPUT 1 - Insert a rule to the "input" chain in the 1st slot. -i lo - Apply the rule to the loopback interface. -j ACCEPT - Set it to accept traffic to the input chain when using tcp on port 443. VIM TRICKS - FIDELOPER A growing list of Vim tricks as I learn them. Work within quotes (or double quotes, or parenthesis , or brackets) Yank or Delete text within quotes, parenthesis, brackets, etc. RAW QUERIES IN LARAVEL DB::raw () is used to make arbitrary SQL commands which aren't parsed any further by the query builder. They therefore can create a vector for attack via SQL injection. Since the query builder is using PDO in the background, we know there is a way to bind parameters to our LARAVEL AND CONTENT NEGOTIATION When a request comes to our application, it's pretty easy to ignore these rules, as our frameworks generally let us return whatever we want. This is the "negotiation" part. The client says what content types it's willing to accept, and its preference. The server then can decide what it's willing/able to send back. Or ignore it, if it's arebel.
AN EXPLANATION OF CACHING The HTTP spec defines 2 methods of HTTP caching: Validation - save bandwidth by not having an origin server reply with a full message body (your origin server returns a header-only response) Expiration - save round-trips to the origin server - a cache can potentially serve a response directly, saving the origin server from even knowing about GLUING NODE LIBRARIES TOGETHER WITH EVENT EMITTERS Encapsulate and abtract away business logic for each library in our own smaller modules. Use our main script to implement our new modules and tie their emitted events together. Let's see what that means for our above example. First, let's work on encapsulating our business logic into our own modules. INSTALL OLDER VERSIONS OF NODEJS Because this breaks so many packages, I often need to install pre-0.10 versions of Node. Here's how to do that in Ubuntu 12.04 server. It'll be short and sweet. First, some dependencies, if you don't already have them: $ sudo apt-get install wget build -essential. Second, grabwhatever version of
SPEED UP YOUR PHP APPLICATION WITH ZEND OPCACHE OpCache is like APC - it caches your compiled PHP so you don't need to rebuild it on every request. PHP 5.5 comes with OpCache out of the box. I happen to have PHP 5.4 and wanted it now, so I decided to install it. Here's how.I'M CHRIS FIDAO
I help developers manage servers. ☕️ Coffee • @fideloper Server admin for programmers. A collection of articles and video series to help teach programmers what they need to now about servers.View Site
Premium Courses
In-depth video courses. Larger, longer, and more in-depth course available for sale for developers and technical teams.View Courses
A podcast on self-employment & tech life. Along with co-host Dan , we talk about employment in America, self-employment, finance, dad life and a myriadof other topics.
See Episodes
Sign up to hear about what new courses, articles, and anything else Irelease!
Website
Stay Informed
RECENT ARTICLES
RSS Feed
2018
My 2018 year in review.ADAPTERS AND MAKERS
Two personality traits exist on opposite ends of a spectrum: adaptersand makers.
More Articles
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0