|
Non Rails-specific Gem elasticsearch-transport Provides a bare-bones HTTP client that doesn’t have any Elasticsearch-specific api methods, but knows how to discover and connect to multiple servers, rotate connections, and log things. readme: elastic/elasticsearch-ruby/elasticsearch-transport Gem elasticsearch-api Provides a module that adds elasticsearch-specific methods such as search, cluster, index to a generic HTTP client. Ca....
|
|
Using percentage: $ mogrify -resize 10% *.png Using dimensions: $ mogrify -resize 120x120 *.png Lots of other alternatives from ImageMagick's documentation : -resize scale% -resize scale-x%xscale-y% -resize width -resize xheight -resize widthxheight -resize widthxheight^ -resize widthxheight! -resize widthxheight> -resize widthxheight< -resize area@ Fix image aspect ratios for Instagram: $ mogrify -resize 1080x1350 -..
|
|
Composition goes beyond the mechanics of type embedding . It’s a paradigm we can leverage to design better APIs and to build larger programs from smaller parts. It all starts from the declaration and implementation of types that have a single purpose. Programs that are architected with composition in mind have a better chance to grow and adapt to changing needs. They are also much easier to read and reason about. To demonstrate thes....
|
|
Over the last two months I’ve been running selected IO intensive servers off the the SSD storage cluster, these hosts include (among others) our: Primary Puppetmaster Gitlab server Redmine app and database servers Nagios servers Several Docker database host servers Reliability We haven’t had any software or hardware failures since commissioning the storage units. During this time we have had 3 disk failures on our HP StoreVirtual SANs..
|
|
Dear users, those who were early followers of Anvil. I’m now heavily working on the next version of Anvil, but it’s likely to make you rewrite your code, and I’m deeply sorry about that. Below I will describe why the changes are necessary and I hope you will find that your code would not be modified a lot and embrace the benefist it brings. how anvil works now Currently we have Renderables which have a view() method returning a virtual layo..
|
|
Dear users, those who were early followers of Anvil. I’m now heavily working on the next version of Anvil, but it’s likely to make you rewrite your code, and I’m deeply sorry about that. Below I will describe why the changes are necessary and I hope you will find that your code would not be modified a lot and embrace the benefist it brings. how anvil works now Currently we have Renderables which have a view() method returning a virtual layo..
|
|
Over the last two months I’ve been running selected IO intensive servers off the the SSD storage cluster, these hosts include (among others) our: Primary Puppetmaster Gitlab server Redmine app and database servers Nagios servers Several Docker database host servers Reliability We haven’t had any software or hardware failures since commissioning the storage units. During this time we have had 3 disk failures on our HP StoreVirtual SANs..
|
|
Okay so this is part 2.5 in my series of posts combining my two favorite things, Docker & Tor. If you are just starting here, to catch you up, the first post was “How to Route all Traffic through a Tor Docker container” . The second was on “Running a Tor relay with Docker” . I thought it only made sense to show how to set up a Tor socks5 proxy in a container, for routing some traffic through Tor; in contrast to the first post, where I e....
|
|
A few weekends ago, I flew into Arizona to attend the Game On Retro Expo with some old friends. Among this group was Dorion Whitlock (1994 Nintendo PowerFest finalist and old roommate) and Mike Iarossi (1994 Nintendo PowerFest first place winner). To say the least, I forgot how much fun it is playing video games with your friends. The main draw for the Game On Retro Expo was the 1994 PowerFest Reunion Tournament. Everyone at the expo wa..
|
|
Increased Bandwidth Consumption and Cost All over the Internet Due to a Chrome 45 Regression
-
fullstack.info
-
10 years ago
-
eng
Chrome 45 Regression Bug: MP3 audio seek stopped working It’s been about 10 days since Chrome 45 (45.0.2454.85) was released and I really don’t know how come no one has noticed such a substantial bug, influencing millions of users of The post Increased Bandwidth Consumption and Cost All over the Internet Due to a Chrome 45 Regression appeared first on FullStack - Ofer Zelig's Blog .
|
|
I’m pleased to announce that Canonical has made the shortlist in several categories for the V3 Technology Awards! Now it’s all in your hands: Go and Vote for Canonical! Note that voting closes at 5pm on Friday, October 9th. The categories in which we made the shortlist are: Best cloud computing provider We made this as an overall company: Canonical Best business software provider We also made this as an overall company: Canonical Best ..
|
|
I’ve talked a little on this site before about what we’re trying to achieve with OpenConfig . However, one of the observations that it’s easy to make is that YANG models alone don’t really achieve anything in terms of making the network more programmable. To make the network more programmable, we need to have tooling that helps us create instances of those modules, manipulate them, and then serialise the into a format that can be used to t..
|
|
I’ve talked a little on this site before about what we’re trying to achieve with OpenConfig . However, one of the observations that it’s easy to make is that YANG models alone don’t really achieve anything in terms of making the network more programmable. To make the network more programmable, we need to have tooling that helps us create instances of those modules, manipulate them, and then serialise the into a format that can be used to t..
|
|
Recommended? yep Lucky 7 is a small nostalgic American diner on Westbourne Park road. I like the vibe, the space, and the unpretentious waiting staff. I go to Lucky 7 often enough, originally for the buttermilk pancakes, but the list of favorites on the menu keeps growing. Smileys by w.dyer . Buttermilk Banana pancakes These are my favorite pancakes in London by far. Banana buttermilk pancakes and a few free coffee refills usual....
|
|
The Welch-Berlekamp Algorithm for Correcting Errors in Data
-
www.jeremykun.com
-
10 years ago
-
eng
In this post we’ll implement Reed-Solomon error-correcting codes and use them to play with codes. In our last post we defined Reed-Solomon codes rigorously, but in this post we’ll focus on intuition and code. As usual the code and data used in this post is available on this blog’s Github page. The main intuition behind Reed-Solomon codes (and basically all the historically major codes) is Error correction is about adding redundancy, and pol..
|
|
The Welch-Berlekamp Algorithm for Correcting Errors in Data
-
www.jeremykun.com
-
10 years ago
-
eng
In this post we’ll implement Reed-Solomon error-correcting codes and use them to play with codes. In our last post we defined Reed-Solomon codes rigorously, but in this post we’ll focus on intuition and code. As usual the code and data used in this post is available on this blog’s Github page. The main intuition behind Reed-Solomon codes (and basically all the historically major codes) is Error correction is about adding redundancy, and pol..
|
|
The Welch-Berlekamp Algorithm for Correcting Errors in Data
-
www.jeremykun.com
-
10 years ago
-
eng
In this post we’ll implement Reed-Solomon error-correcting codes and use them to play with codes. In our last post we defined Reed-Solomon codes rigorously, but in this post we’ll focus on intuition and code. As usual the code and data used in this post is available on this blog’s Github page. The main intuition behind Reed-Solomon codes (and basically all the historically major codes) is Error correction is about adding redundancy, and pol..
|
|
Comment on [Video 281] Andrey Syschikov: Practical usage of advanced Python constructs by Visto nel Web – 199 | Ok, panico
-
dailytechvideo.com
-
10 years ago
-
eng
Video 281] Andrey Syschikov: Practical usage of advanced Python constructs ::: Daily Tech Video […]
|
|
I haven’t made a SnailLife update in a while, but I had a good reason! For about half a month I’ve been working on an entry into the js13kGames challenge. I’ve entered the challenge annually since it started and this year was meant to be no exception. Unfortunately…I wasn’t really into it this year. It felt like work, and with things at actual work being so busy I found myself not having the time or motivation to sit down and work on it a..
|
|
Benchmarking Go in the cloud Go now seems to be a natural choice for writing your next microservice or web app. It’s mature and fast. But where would you host your app? In this post I will compare some popular PaaS (platform-as-a-service) and how the same primitive Go web app performs on each of them. Go I’m using the latest Go compiler and the latest version of Gin framework with zero-allocation router.
|
|
Benchmarking Go in the cloud Go now seems to be a natural choice for writing your next microservice or web app. It’s mature and fast. But where would you host your app? In this post I will compare some popular PaaS (platform-as-a-service) and how the same primitive Go web app performs on each of them. Go I’m using the latest Go compiler and the latest version of Gin framework with zero-allocation router.
|
|
In this post, we will attempt to make a simplified clone of Redis in Haskell. Here is a set of requirements that we will aim to fullfill: get and set operations Multi-threaded Atomic Redis compatible (implement the Redis protocol) We should be able to use the redis-cli tool to connect to our server and issue commands to it. We are going to omit many features that Redis has. For example, there will be no disk persistence. We will a....
|
|
In this post, we will attempt to make a simplified clone of Redis in Haskell. Here is a set of requirements that we will aim to fullfill: get and set operations Multi-threaded Atomic Redis compatible (implement the Redis protocol) We should be able to use the redis-cli tool to connect to our server and issue commands to it. We are going to omit many features that Redis has. For example, there will be no disk persistence. We will a....
|
|
Just a quick tip from some code I encountered today. Instead of this: function outerFunc (callback) { doSomething(42, function (err) { callback(err) }) } Eliminate the useless callback wrapper function: function outerFunc (callback) { doSomething(42, callback) } It's more concise and more efficient and entirely equivalent.
|
|
Yeap, this is another rant on the security practices of Docker users. Like we didn't have enough of those already.
|
|
Lua is one of my favourite languages. It’s tiny, it’s fast, it has simple grammar and is very easy to learn. I also often write shell scripts - from simple one-liners, to bigger ones containing business logic and binding together smaller app components. In fact, this blog is powered by a few shell scripts to generate list of posts, rss xml etc. I had an experience in the past when Bash script became hard to maintain.
|