Skip to main content

Handling an actor's idleness in Akka

Use case: an actor that must do something if it has not received any messages for more than a given amount of time.

Comments

Popular posts from this blog

IntelliJ IDEA not starting: Initial heap size set to a larger value than the maximum heap size

IntelliJ IDEA didn't want to start this morning. Got the following error when trying to start it from a shell: Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size What happened is that IntelliJ IDEA loaded the JVM Options from the new custom vmoptions file in the config directory. On Windows: %APPDATA%\Roaming\JetBrains\IntelliJIdea2020.1\idea64.exe.vmoptions On macOs: ~/Library/Application Support/JetBrains/IntelliJIdea2020.1/idea.vmoptions This file was not updated properly when I updated IntellIJ IDEA. It contained: -Xms4g -Xmx2048m Fixed the issue by editing this file: -Xms4g -Xmx4g Source: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004701620-idea-vmoptions-not-used-by-default  

Transferring SMS from iPhone to Android (for developers)

I recently bought a Nexus 4 to replace my old iPhone 3GS. The transition has been smooth except for the transfer of the SMS from iPhone to Android which led me to write some code and this post. The most interesting article I found on this subject was  iPhone SMS to Android Converter . Considering iSMS2droid has not been updated since October 2011 and does not seem to be compatible with iOS 6, if you choose this solution, you will have to upload your messages on  Jan Grewe  server. You decide for yourself if you are OK with sending your SMS database to his server. I chose to follow another path. After failing to find iSMS2droid or SMS Backup & Restore source code I started coding my own  SMS transfer application . Limitations Only works with iOS 6 SMS Only works with Android having the  sms://  content provider Does not handle attachments yet Requires  Android SDK  to build the Android app Step 1: Find your iPhone SMS...

TransferWise: tiny discrepancy when sending money to Colombia

I recently used TransferWise to send GBP to COP and I have been surprised by a tiny discrepancy, 11 COP (~0.0022 GBP), between the amount the recipient received and what TransferWise advertised he would receive. TransferWise support team explained me this difference as follow: When sending from GBP to COP, we receive GBP from your side and we convert the amount to COP with the mid market rate. However our partner in Colombia needs to receive USD from us, so we convert the amount in COP to USD with the rate our partner gives us. We send them those USD and then they convert them to COP and send them to the recipient. In your case what happen was the following: You sent us 1,000 GBP, we took our fee and convert 974.43GBP to COP with the mid market rate at that moment: 1 GBP = 4,970.50 COP. So that was 4,843,404.315 COP, however in COP there’s no cents so it got rounded down to 4,843,404 COP. After that we converted to USD since our partner need to receive USD from us. The ...