Enabling mod_headers and CORS with Apache2

I’ve been working on a project and wanted to test out accessing media from a different domain using CORS. There’s two steps to this. Make sure you have Apache mod_headers enabled. Use apachectl -M on the command line interface and review the results. It should include something like this: headers_module (shared). If not then run … Continued

Workaday Reading

Same-origin policy



"The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin. It helps to isolate potentially malicious documents, reducing possible attack vectors."

read »

Reading Today

Human virome



"The human virome is the total collection of viruses in and on the human body.[3][4][5] Viruses in the human body may infect both human cells and other microbes such as bacteria (as with bacteriophages).[6] Some viruses cause disease, while others may be asymptomatic."

read full text »

AWS volume resizing

AWS volume resizing

I recently resized our dev and production environment AWS EC2 volumes and these are some notes I made while doing it. It's specific to a LAMP stack but the process could be generally useful too. Posting here for posterities sake and if it's helpful for anyone else. Certainly this is not a full and exhaustive list of todo's and possibilities but it should give you a good idea of the process.

Reading Today

Coronavirus, the Economy, and Oregon



"Our office continues to get asked about the potential impacts of the coronavirus (COVID-19) on the economy. Long story short is that it is still too early to tell how much economic fallout will occur given the ongoing public health developments as the virus spreads."

read full text »

Workaday Reading

Please stop recommending Git Flow!



"Git-flow is a branching and merging methodology popularized by this blog post, entitled “A Successful Git branching model”. In the last ten years, countless teams have been snookered by the headline and dare I say lied to."

read »

Workaday Reading

Paging



"In computer operating systems, paging is a memory management scheme by which a computer stores and retrieves data from secondary storage[a] for use in main memory.[1] In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages."

read »

Workaday Reading

How to Protect Against Slow HTTP Attacks



"Slow HTTP attacks are denial-of-service (DoS) attacks in which the attacker sends HTTP requests in pieces slowly, one at a time to a Web server. If an HTTP request is not complete, or if the transfer rate is very low, the server keeps its resources busy waiting for the rest of the data."

read »

Workaday Reading

CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"

"Why do you write C++ code? There is a good chance it is in part because of concerns about the performance of your software. Whether they stem from needing to run on every smaller mobile devices, squeezing the last few effects into video game, or because every watt of power in your data center costs too much, C++ programmers throughout the industry have an insatiable desire for writing high performance code."
read »

Workaday Reading

.bash_profile vs .bashrc



"When working with Linux, Unix, and Mac OS X, I always forget which bash config file to edit when I want to set my PATH and other environmental variables for my shell. Should you edit .bash_profile or .bashrc in your home directory?"

read »

Workaday Reading

Remove/Delete all duplicate lines



"There are a lot of ways to remove duplicate lines, but I want to leave only the unique lines, and delete all duplicated lines. There are thousands of lines I need to remove, and the unique lines are just 10-20 mixed with all those duplicate lines."

read »