Running rail app in docker

Step 1:

First, using Dockfile to Define the project

we need to create Dockefile, you can cop sample dockerfile from offical websie (This is sample Dockerfile copy from docker offical website)

Read More

Flutter network connection issues

Flutter network connection issues(faild host lookup)

I tried to call api from emulator to my host machine and I got following error message E/flutter (16241): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed host lookup: 'us1.uszcn.local' (OS Error: No address associated with hostname, errno = 7) It took me one hour to figure out what’s the issues is.

Read More

Ruby symbol vs string!

Ruby has this unique datatype called symbol. it’s very simlar to string. but there is one important difference it is immutable. The second thing is it share its memory with other symbol if they have same name. for Example: if you define :username. later you define again this symbol :username. it’s the same object id ,which means it share the same memory with the symbol we defined early.

Read More