lulalala
lulalala.com
lulalala
@lulalala.com
GitLabber. Rantings about Ruby and Rails development in general.
My ASUS router's WIFI is slow.
WIFI: 24/12 Mbps
wired: 94/44 Mbps
I'm connected on 802.11n, 2.4GHz 20MHz
Router's spec says it's up to 300 Mbps.
February 1, 2024 at 3:04 AM
#Ruby I originally feel service class constructor params should be validated in constructor itself. But validating it in execute method would require less error handling code for the caller.
January 10, 2024 at 1:41 AM
Didn't know #Rails provides a handy XML -> hash reader:

stackoverflow.com/a/3403883/47...
December 7, 2023 at 3:15 AM
November 30, 2023 at 8:28 AM
嗨嗨各位,RubyConfTW就在兩週後囉,來參加嘛~
我會講自己做的翻譯電子書的gem ^^
Ruby Conf Taiwan 2023
2023.rubyconf.tw
November 30, 2023 at 8:26 AM
今天爬山聽到最有趣的分享:
作睡眠臨床研究的人,得一週五天晚上看著病人/研究對象睡覺八小時,自己反而睡的不好。
November 4, 2023 at 2:37 PM
October 27, 2023 at 4:09 PM
Oh I shouldn't use 408 request_timeout if I want to Timeout a request, because 4xx is used exclusively to indicate client's fault.
github.com/elastic/elas...
I should just use 500 instead
October 17, 2023 at 6:02 AM
github.com/chriskite/an... was one ruby webcrawler library I know of when I started learning Ruby. sadly it is no longer maintained.
I wonder if there is a spritual successor?
October 16, 2023 at 3:46 PM
October 11, 2023 at 12:56 AM
白晝之夜需要的可能是 citizen generated content
October 7, 2023 at 3:19 PM
gitlab.com/-/snippets/3... A #Ruby timeout pitfall (bug?): If I specified message only, it would continue to execute after timeout. I'm on 3.1.4. Doc doesn't say much
ruby-doc.org/core-3.1.2/T...
October 5, 2023 at 8:19 AM
Brazilian colleague's movie recommendations:
Lisbela and the Prisoner
A Dog's Will
City of God
Confessions of a Brazilian Call Girl (2011)
VIPs: Histórias Reais De Um Mentiroso (2010)
October 4, 2023 at 7:31 AM
Somehow the company wide Mac OS 13.6 upgrade broke many laptops. Don't do it just yet ppl!
October 3, 2023 at 3:35 AM
I guess the time when iPhone is released is a good time to buy a secondhand flagship Android
September 25, 2023 at 2:28 PM
September 21, 2023 at 2:46 PM
給出邀請碼的時候小心不要給spam帳號,以免連累自己
When we investigate spam networks, we use invite trees to identify where they came from. Often, an entire network of spam bots comes from the same invite tree. This makes it easier for us to track down and ban these accounts.
September 19, 2023 at 5:27 AM
Hmm how can I encode properly for Zuora to recognize it?
stackoverflow.com/questions/77...
September 18, 2023 at 7:10 AM
Reposted by lulalala
友人家竟藏有如此奇書!!
從如何做山藥饅頭到幻術無所不包,人生只需要這一本啊(甘安捏?
September 17, 2023 at 1:00 AM
Wise programmers, is it good to retry a "Connection reset by peer" request?
September 8, 2023 at 8:52 AM
A car feels the fastest when its wheels rotate so fast they seem to rotate backwards.
September 6, 2023 at 4:21 PM
One way for rspec VCR to fail: when shared examples are used, adding/removing one example would mean the test index changes (e.g. _spec.rb[1:38:5:1:1]), thus the recorded yml file can no longer be referenced.
September 5, 2023 at 4:36 AM
《芭比》最可惜的地方,是芭比們假裝有興趣去問肯問題那段。這部份是否可以設計成mansplaining多站一階道德高地?
September 3, 2023 at 3:15 AM
有了這本外交部的冊子,毫無社交常識如我也終於知道車內座位安排了。比較訝異圓桌中式與西式順序安排不同 multilingual.mofa.gov.tw/web/web_UTF-...
August 26, 2023 at 11:31 AM
Zuora Subscription's design issue could be its renewal not creating a separate subscription. Developers then need to query the future subscription version to get *current* complete charges
August 23, 2023 at 10:24 AM