I just finished replacing httplib in a very large project, Apache Libcloud. When httplib was selected, requests wasn’t around (it only hit v1 in 2012). We needed to provide a set of base classes that would handle HTTP and HTTPS REST/JSON, REST/XML and various other bizarre HTTP APIs. Libcloud has over 80 client libraries for every major cloud service out there. Each of those libraries share a sing
jq can mangle the data format that you have into the one that you want with very little effort, and the program to do… とっても優秀な jq コマンドは、ご丁寧にフィルターで加工した値をCSV形式で出力する機能を用意してくれています。 > jq -r '<CSV 形式で出力したい要素を取り出すフィルター> | @csv'最期の|@csv が重要です。 簡単な例を使って、振る舞いを確認してみます。 出力(1) サンプルデータ(sample1.json)の内容の確認> cat sample1.json [ {"key1": "value11", "key2": "value12", "key3": "value13"}, {"key1": "value21", "key2":
In my previous post about Python to Rust transpiler I’ve said, that one of the biggest problems is absence of types in python and inability to infer them for functions. But it turns out there is a solution to this problem. Guys from Instagram have developed an incredible tool for runtime type inference called MonkeyType. It monitors what types functions accept and return while running a program. T
Fifteen years ago, there were only a few skills a software developer would need to know well, and he or she would have a decent shot at 95% of the listed job positions. Those skills were: Object-oriented programming.Scripting languages.JavaScript, and…SQL.SQL was a go-to tool when you needed to get a quick-and-dirty look at some data, and draw preliminary conclusions that might, eventually, lead t
One of the most common complaints about the Python language is that variables are Dynamically Typed. That means you declare variables without giving them a specific data type. Types are automatically assigned at based on what data was passed in: In this case, the variable president_name is created as str type because we passed in a string. But Python didn’t know it would be a string until it actua
On a recent post, I tried to compare the performance of a few DNS resolvers. However, as some people pointed out, the results were not really fair. I can not compare Google’s 8.8.8.8 against Quad9’s 9.9.9.9 or Norton ConnectSafe, as they do things very differently. Yes, they are both DNS resolvers, but Google’s goal is to provide an unfiltered DNS. Nothing is blocked or restricted. Quad9 and OpenD
I have come across some lists on open source Elixir/Phoenix application but most of the times those lists contain libraries built for Elixir. I think that’s not a very good fit for the list I am trying to curate here. In this list you’ll only find applications built with latest version of Elixir/Phoenix we application. If you think you have any suggestions regarding this list I highly encourage yo
IntroductionScrapy is a free and open-source web crawling framework written in Python. It allows you to send requests to websites and to parse the HTML code that you receive as response. With Scrapyrt (Scrapy realtime), you can create an HTTP server that can control Scrapy through HTTP requests. The…
Vim remains a powerful and ubiquitous application to tackle any number of text editing tasks conveniently from the terminal (some learning required). If you’re looking to add Vim to your toolkit this year, here is my list of absolutely essential plugins to begin supercharging your workflow. If you’ve never set up a Vim plugin before, see the Installing Vim plugins section later on for a runthrough
はじめにこの記事では NewsPicks での Kotlin 活用事例 — — ただしサーバーサイドでの活用事例 — — について紹介します。今秋 9 月から 10 月にかけて、NewsPicks で新しいスマホアプリを開発する機会があり、その際のサーバーサイド開発に Kotlin を利用しました。開発チームの発足が 9 月、仕様設計から開発・リリースまで約 2 ヶ月と比較的短い時間軸での開発だったのでそれほど規模が大きいものではありませんが、サーバーサイドに関してはほぼ僕が一人で開発したこともあり、知見の共有も兼ねて筆をとった次第です。 サーバーサイド Kotlin は少しずつ流行りつつあると思うのですが、まだまだ世間には事例が少なく、採用を躊躇している方も多いのではないかと思います。長文にはなりますが、この記事が何らか皆様の参考になれば幸いです。 対象読者この記事では主に「サーバーサイ
設定主要使用 rjsx-mode 是之前介紹 javascript 時使用的 js2-mode 的延伸,因此,除了語法支援 rjsx 外,其餘功能延續,請回顧語法檢查的部分,因為 rjsx 的關係,使用 flyehck 加上本地的 eslint + react-app 延伸語法emmet 的部分,需要將 class 轉為設定 className程式片段 yasnippet,可以加入另一個預設為 react 增加的程式片段庫 react-snippets自動補全 company使用 tsserver 為後端的 tide-mode 次模式 其餘如 排版美化 prettier-js, 版本控制magit, 專案管理 projectile 等等皆可以直接使用(use-package rjsx-mode :ensure t :mode ("\\.js\\'") :config (add-hook '
Years ago I did what many developers do — built an IDE of sorts by combining Vim, Tmux and Bash. By the use of scripting, REPLs and such one can glue all these tools together to have things like “open a new shell and send this text to it” work semi-reliably. Brave new worldEventually I switched (back) to Emacs. After refreshing my muscle memory and building a sane config I proceeded to replace Vim
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く