Top c++ Geeks


Check out snippets of the blog postings. Click on the link to view the full post at the original site as the author intended.

nagachika

[ruby][changes]ruby-trunk-changes r54554 - r54564

nagachika  on  4/12/2016

今日は開発者会議効果か、多値の代入を条件部に書けるようにする文法の変更や、Integer#floor, #ceil, Float#floor, #ceil が省略可能な引数で操作する桁を指定できるようにする拡張、File.empty? の追加などの新機能が多くありました。 nobu: r54554 2016-04-13 11:41:24 +

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54554 - r54564

nagachika  on  4/12/2016

今日は開発者会議効果か、多値の代入を条件部に書けるようにする文法の変更や、Integer#floor, #ceil, Float#floor, #ceil が省略可能な引数で操作する桁を指定できるようにする拡張、File.empty? の追加などの新機能が多くありました。 nobu: r54554 2016-04-13 11:41:24 +

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54546 - r54553

nagachika  on  4/11/2016

今日は拡張ライブラリ date の Time#to_time がタイムゾーンをコピーするようにする変更がありました。 nobu: r54546 2016-04-12 09:30:55 +0900 VM の命令列の末尾呼び出し最適化についてのテストで失敗時のメッセージに対象のメソッドの VM 命令列を disasm したものを表

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54546 - r54553

nagachika  on  4/11/2016

今日は拡張ライブラリ date の Time#to_time がタイムゾーンをコピーするようにする変更がありました。 nobu: r54546 2016-04-12 09:30:55 +0900 VM の命令列の末尾呼び出し最適化についてのテストで失敗時のメッセージに対象のメソッドの VM 命令列を disasm したものを表

ruby changes 
amcewen

Interesting Things on the Internet: April 11th 2016

amcewen  on  4/11/2016

[...]

Links 
nagachika

[ruby][changes]ruby-trunk-changes r54530 - r54545

nagachika  on  4/10/2016

今日は末尾呼び出し最適化の不具合修正の他、主にテストの警告除去などがありました。 nobu: r54530 2016-04-11 06:54:41 +0900 file.c の apply2files() という関数で処理対象の引数を Ruby の Array オブジェクトで渡すのをやめて argc/argv で渡すように変更し、呼び元で

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54530 - r54545

nagachika  on  4/10/2016

今日は末尾呼び出し最適化の不具合修正の他、主にテストの警告除去などがありました。 nobu: r54530 2016-04-11 06:54:41 +0900 file.c の apply2files() という関数で処理対象の引数を Ruby の Array オブジェクトで渡すのをやめて argc/argv で渡すように変更し、呼び元で

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54526 - r54529

nagachika  on  4/9/2016

今日は win32/registry の不具合修正などがありました。 nobu: r54526 2016-04-10 16:30:42 +0900 win32/file.c の rb_file_expand_path_internal() でメモリ解放時に xfree() を使っていましたが、対応するバッファの確保は malloc() で行なわれていたので free() を使うよ

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54526 - r54529

nagachika  on  4/9/2016

今日は win32/registry の不具合修正などがありました。 nobu: r54526 2016-04-10 16:30:42 +0900 win32/file.c の rb_file_expand_path_internal() でメモリ解放時に xfree() を使っていましたが、対応するバッファの確保は malloc() で行なわれていたので free() を使うよ

ruby changes 
rdp

can you boot to UDF USB

rdp  on  4/8/2016

Actually, apparently, you cannot. (i.e. can’t copy an ISO file straight to USB and have that be bootable from the USB drive. Why? I have no idea, but the BIOSES wanted to be smarter when using USB I guess…and allow it to be “real” formatted, which…means a different format than CD’s would be. Weird.

Uncategorized 
rdp

java os x using 127.0.1.1 registry

rdp  on  4/5/2016

this meant “it should be using 127.0.0.1” root cause in this case: in the /etc/hosts file an ‘errant line’ had been added inferring the address of the local computer’s name was 127.0.1.1 java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:     java.net.ConnectException: Operation timed out

Uncategorized 
rdp

other_vhosts_access.log not being rotated

rdp  on  4/1/2016

apache’s that is. turns out for me if I looked closely, basically all the log files weren’t being rotated, including its siblings. So looking closer (digitalocean) saw this (I hadn’t updated my password on my DO box since createing it, apparently): here

Uncategorized 
rdp

frei0r cross compile woe

rdp  on  3/30/2016

[ 5%] Built target bw0r Scanning dependencies of target cartoon Scanning dependencies of target cluster [ 5%] Building CXX object src/filter/cartoon/CMakeFiles/cartoon.dir/cartoon.cpp.obj [ 5%] Building C object src/filter/cluster/CMakeFiles/cluster.dir/cluster.c.obj /usr/local/lib/libcairo.a: error adding symbols: File format not recognized collect2: error: ld returned 1 exit status /usr/local/lib/libcairo.a: error adding symbols: File format not recognized collect2: error: ld returned 1 … Continue reading frei0r cross compile woe

Uncategorized 
amcewen

Interesting Things on the Internet: March 28th 2016

amcewen  on  3/28/2016

  • Hardening my Development Machine. A secure system is like the horizon - always further away when you think you've got there. But there's lots of value in chasing after it, so it's good to see Paul sharing how he's moved on with it.
  • what Thomas Hardy taught me. An excellent piece on education reform or efforts to "fix" education, and how they miss the point.

Links 
rdp

java zip uncompressed

rdp  on  3/25/2016

see here

Uncategorized 
rdp

chrome does not load new tabs until they are selected/opened/clicked on

rdp  on  3/23/2016

What this apparently ‘actually meant’ was that chrome has this fancy new feature “automatic tab discarding” which is supposed to “discard” (unload) tabs that are “least interesting” and for some odd reason, it considers new tabs uninteresting [presumably because they haven’t been visited recently, so it thinks they’re uninteresting to you–it’s wrong, of course]. So … Continue reading chrome does not load new tabs until they are selected/opened/clicked on [...]

Uncategorized 
amcewen

Interesting Things on the Internet: March 21st 2016

amcewen  on  3/21/2016

[...]

Links 
satoruhiga

Video

satoruhiga  on  3/18/2016



amcewen

Interesting Things on the Internet: March 14th 2016

amcewen  on  3/14/2016

  • Corbynism and Its Futures. Long interesting explanation and exploration of the state of the political left in the UK. If it's right in its assertion that "elections are almost entirely decided by the votes of a few hundred thousand swing voters in marginal constituencies", then is that an opportunity to focus attention for civic tech and/or new Internet-age institutions to help improve democracy?
  • In solidarity with Library Genesis and Sci-Hub. Charging so much for access to academic publishing in the modern age is ridiculous.
  • Design as Participation. Excellent proposal for how design should evolve, from Kevin Slavin.
[...]

Links 
rdp

uninstall homebrew completely

rdp  on  3/11/2016

see here

Uncategorized 
amcewen

Interesting Things on the Internet: February 29th 2016

amcewen  on  2/29/2016

  • Framing. An interest post (with interesting comments too!) on company values and culture.
  • South Florida and Sea Level: The Case of Miami Beach. "Who’s going to be the Robert Moses of sea level rise?" Thought-provoking stuff from Eric Rodenbeck.
  • Sex & Startups. Lots of good ideas here - I expect “the tyranny of the quantifiable” and "mundane businesses" to be entering my lexicon.

Links 
amcewen

Interesting Things on the Internet: February 22nd 2016

amcewen  on  2/22/2016

[...]

Links 
amcewen

Superconnector

amcewen  on  2/16/2016

In my role as the mouthy one of (which is subtly different from spokesperson for...) the community in DoES Liverpool, I often end up in strategy meetings, "cluster groups", etc. and also sought out by people from support organisations and elsewhere who want to get to know the community.

Many, many of these meetings are inspiring and energising - I love the ones where a "quick 10am meeting" is interrupted by us suddenly realising it's now lunchtime as there's been so much to discuss and explore (although the work side of my brain is usually also cursing how much work time I've lost); but similarly some are energy-sapping as I wonder why no-one else seems to notice that the gathering is never likely to achieve anything.

Because this tends

[...]

Liverpool 
amcewen

Interesting Things on the Internet: February 15th 2016

amcewen  on  2/15/2016

Links 
amcewen

#inthesaddle

amcewen  on  2/14/2016

Over the past few months I've been getting out on my bike lots more than I used to (at least, since I lived in Cambridge and my commute was far enough to warrant it every day).

I'd already found some good routes along the river South of the city centre, and through the Southern parks but have been seeking out some alternatives too. I've now added some regular rides out to the North - through the parks, along the loop-line, and the canal and dock road. There's a lovely variety to be had - parkland, brick terraces, industry, countryside and docklands.

It's coincided with me getting a new phone with a decent camera, and an Instagram account. As a result I decided to start recording each ride with a photo (or short video). Not for any

[...]

Cycling 
amcewen

Interesting Things on the Internet: February 8th 2016

amcewen  on  2/8/2016

Links 
amcewen

Interesting Things on the Internet: February 1st 2016

amcewen  on  2/1/2016

[...]

Links 
satoruhiga

Video

satoruhiga  on  1/12/2016



amcewen

Interesting Things on the Internet: January 11th 2016

amcewen  on  1/11/2016

[...]

Links 
amcewen

The City as Change Vector

amcewen  on  1/10/2016

When I went to Laptops and Looms II one of the four "things I'd been pondering" was the role cities might play in building a better future. I was reminded of it at Oggcamp recently when I chaired a session about Code for Liverpool, and so thought I'd finally write up some thoughts here.

My mindmap on the opportunities afforded by cities

Above is a photo of the notes I jotted down on the train over to Laptops and Looms. Obviously there's a bit about how we get to the sort of "smart" city that we citizens want, rather than the one that's most profitable for big tech firms (or new tech startups). However, it's the "City as lab?" part that I think is most interesting.

There are many challenges and possibilities facing society today. However, I don't think I'm alone in a general feeling

[...]

Thinking 
amcewen

Interesting Things on the Internet: January 4th 2016

amcewen  on  1/4/2016

[...]

Links 
yamanetoshi

kotlin-android-example

yamanetoshi  on  12/19/2015

引き続き以下なリポジトリのソースを確認を。

Observable に着目。

MockServer というクラスで Observable を戻すメソドが定義されてるのですが基本的には

  • JsonObject を生成して
  • Observable.just にオブジェクトを渡した戻りの Observable を戻す

という事をしてます。rx.Observable か。いくつか使ってるメソドが何をしているのか、を確認してみます。

Observable.just

配列やリストではない 10 個までのオブジェクトを Observable 化したい場合に使う、とのこと。ということは MockServer の場合はレスポンスをストリームに突っ込んでるようなカンジ、と言えば良いのかな。

列挙してみる

以下?

  • WidgetObservable
  • doOnNext
  • map
  • filter
  • debounce
  • subscribe
  • observeOn
  • ViewObservable
  • BehaviorSubject.create

では順に確認を。

WidgetObservable

Observable のメソドではありませんがこちらも確認。これは RxAndroid のクラスみたいです。View のイベントを受け取るため、ということで以下なソレが用意されている模様。

  • ViewObservable.clicks でクリックイベント取得とか
  • WidgetObservable.text で TextView の変更取得とか
  • ListView の onScroll 取得のための
[...]

danluu

Big company vs. startup work and compensation

danluu  on  12/18/2015

There’s a meme that’s been going around for a while now: you should join a startup because the money is better and the work is more technically interesting. Paul Graham says that the best way to make money is to “start or join a startup”, which has been “a reliable way to get rich for hundreds of years”, and that you can “compress a career’s worth of earnings into a few years”. Michael Arrington says that you’ll become a part of history. Joel Spolsky says that by joining a big company, you’ll end up playing foosball and begging people to look at your code. Sam Altman says that if you join Microsoft, you won’t build interesting things and may not work with smart people. They all claim that you’ll learn more and have better options if you go

[...]

yamanetoshi

shutdown なスクリプト

yamanetoshi  on  12/18/2015

自動で起動して何かのお仕事をするホストにて作業のためにログインした場合、その何かの仕事を kill するスクリプトを書きました。あるプロセスが所属するプロセスグループにいらっしゃるナニを全員、というやつです。備忘まで。

以下なカンジでした。/etc/rc.local から kickoff されるナニ、という事で。

1
2
3
4
5
#!/bin/bash

PID=`ps -aux|grep '/bin/sh -e /etc/rc.local'|grep -v grep |awk '{print $2;}'`
KILLPID=`pstree -g $PID|awk -F'[()]' '{print $2;}'|head -1`
sudo kill -- -$KILLPID

シェル芸、というヤツではありません。

[...]

bcantrill

Bringing clarity to containers

bcantrill  on  12/17/2015

At the beginning of the year, I laid down a few predictions. While I refuse on principle to engage in Stephen O’Grady-style self-flagellation, I do think it’s worth revisiting the headliner prediction, namely that 2015 is the year of the container. I said at the time that it wasn’t particularly controversial, and I don’t think [...]

Uncategorized 
aewallin

Frequency Distribution Amplifier - first tests

aewallin  on  12/17/2015

Update 2015-12-18: Things improved quite a lot by simply wrapping the board in aluminium foil! The amplifier phase noise floor is now at around -156 dBc/Hz while the 6502 is at -163 dBc/Hz. The AM noise numbers are similar. Original post 2015-12-17: I put together a first prototype (only one output channel) of my TADD-1 […]

Electronics Time and Frequency fda 
bnoordhuis

Tokyo NodeFest 2015

bnoordhuis  on  12/17/2015

Several of my colleagues at StrongLoop spoke at Node.js Interactive 2015 last week. The sole platinum sponsor was IBM, which StrongLoop joined in September. This was similar to the support both companies provided at Node Summit US in February of 2015, during which StrongLoop was a gold sponsor and IBM was platinum. We are doing […]

Community Events 
yamanetoshi

あばどん沖縄サイト

yamanetoshi  on  12/17/2015

縁あって先日沖縄で開催されたいんぐれすのイベントのサイト制作云々にちょっとだけ足を突っ込ませて頂いたのですが

デザイナさんってやっぱ凄いなぁ、って思います。こんな格好良いモノをささっと作れてしまうのは凄い。

[...]

yamanetoshi

MarkdownPreviewer

yamanetoshi  on  12/17/2015

以下、すばらでした。

最近、windouz とのやりとりが多いのですが md の preview が Chrome でできるのはこれだけだったカンジ。

そしてその後

例のアレで pdf 化できるやつを Github に置いてることをググッて見つけてしまってます。

[...]

bnoordhuis

What’s new in LoopBack: seven new developers and a ton of improvements

bnoordhuis  on  12/16/2015

It has been an exciting three months since IBM’s acquisition of StrongLoop while we’ve been realizing the promise of additional resources and partnership with our new co-workers. The Loopback team has seven additional full-time developers contributing to the backlog, fixing bugs, enhancing the framework, and in general helping with Loopback. The triage process has many […]

LoopBack 
yamanetoshi

序盤の心構え

yamanetoshi  on  12/16/2015

なんとなくこないだの試合で「お前どーせ振るんだろ」てきな序盤があった。つうか相居飛車したくないんだろ、と言われたのかも。

例えば

こちら後手で

  • 76 歩
  • 34 歩
  • 66 歩

ってなった時は飛車先突けば良かったよね、という反省というか後悔。そしてその局はその動揺で微妙な結果に、なのだろうなと思っている次第です。このあたりの戦形選択で失敗した、って思ってしまうと良い将棋が指せないことは分かりました。

正直先手が角道止めると相居飛車でもガチな展開にはならないはず。

先手が角道止めたら

44 歩でも良いのか。あら、先日の負けた試合は先手だったのか後手だったのか分かんなくなってます。ただ

  • こちらが後手で先手が角道止めたら飛車先突けば良いでしょ
  • こちら先手で角道を止めて、かつそれに追従 (後手も角道止めた) であればこれも飛車先突く

てことなのか。とりあえず初見な相手と対抗形、ってのはアレですよね。

ただそうなると

先手番だと基本振り飛車になりますね。それはそれで良いというかこのあたりの迷いを何とか払拭したい訳です。

[...]

dshafik

Catching Up With Myself

dshafik  on  12/16/2015

Prior to November 19th 2006 I was really into PHP. I tested every alpha, beta, and release candidate, I knew every new feature inside and out, and I had plans to contribute… something. I didn’t know what, but I was going to give back to the language I loved. However, just a few weeks after…

tagged personal php mental health depression impostor syndrome 
bnoordhuis

StrongLoop Wraps Up 2015 – and What a Year It Has Been!

bnoordhuis  on  12/15/2015

2015 was an important year for StrongLoop as we became an IBM company. We proudly built a stronger path for developers to rapidly build and deliver APIs for mobile, IoT and web apps! Read on to see how 2015 treated StrongLoop. StrongLoop began 2015 having just launched StrongLoop Arc, which provided a powerful single UI […]

Community News 
cgwalters

New Atomic Host verb: rpm-ostree deploy

cgwalters  on  12/15/2015

TL;DR: We’ve improved the host version management in Fedora Atomic Host, and you can now use atomic host deploy $version to atomically switch to a well-known version. Longer version: The awesome Cockpit project has been working on a UI for managing Atomic Host/OSTree updates. See this page for some background on their design. If you […]

Uncategorized 
hboon

Iconica+ App for iOS — Compare iOS Logos

hboon  on  12/15/2015

Iconica+ App for iOS — Compare iOS Logos

Uncategorized 
bnoordhuis

StrongLoop’s 2015 predictions: how did we do?

bnoordhuis  on  12/15/2015

Last year around this time, Issac Roth, one of StrongLoop’s founders and its Chief Product Officer, made some predictions for 2015. How did he do? We present his predictions below, as well as a look at how accurate they were. Node core governance stabilizing. HIT! With the creation of the Node.js Foundation, Node core is […]

Community 
mattn

別のプロセスの動的な環境変数を盗み取る

mattn  on  12/15/2015

linux - .bashrcでexportしたPATHが/procにあるプロセスファイルの環境変数(PATH)と一致しないように見える - スタック・オーバーフロー

Ubunt 15.04 を使っています。 どういう際に利用するかは措いておくとして、 /proc にある各プロセスIDの名前がついたディレクトリにある、 environ というファイルを、プログラミン...

http://ja.stackoverflow.com/q/19984/440

回答の中で答えられている通り、/proc/$$/environ (/proc/self/environ)は、プログラム起動時の環境変数だけが表示される。プロセスが起動中に設定した環境変数は表示されない。

pid1

なんとかして取れないかなーと思って以下のスクリプトを書いた。

#!/bin/bash

if [ "x$2" == "x" ]; then
  GREP=cat
else
  GREP="grep ^$2="
fi

gdb -q --silent -p $1 <<EOF | grep XXXXXXX | cut -c9- | $GREP
set \$i=0
while (1)
  set \$r=*((char**)environ+\$i)
  if (\$r == 0)
   
[...]

yamanetoshi

shutdown について

yamanetoshi  on  12/15/2015

いやはや。起動スクリプトから kickoff されるスクリプトの中で

1
/sbin/shutdown -h now

て書いてて酷い目に会いました。しかもスクリプトが異常終了しててすぐに shutdown が発令される始末。

とりあえずな教訓として

こうしたケイスでは

1
/sbin/shutdown -h +30

`

とかしようね、という事らしい。あと /sbin/shutdown -c というものがあることも学びました。とほほほ。

EC2 にて

これ系のポカやっちゃうと init 1 とかできなくて酷い目に会う、という事は分かりました。事態が把握できた瞬間、真っ青だったのを思いだします (しろめ

[...]