Posts by thiagoalessio • 126 points
5 posts
-
1
votes1
answer125
viewsA: Container closes immediately on Docker-Compose
Yes this is the expected behavior, because you are overriding the original command of this image, and the container closes as soon as your command is executed. Alter your command to the following:…
-
0
votes1
answer38
viewsA: Filter elements according to typed Jquery/Javascript key
If I understand your intention correctly, I think I’m just missing switch between show and hide: <html> <body> <input id="term"></input> <div id="div_1"><h1>Div…
-
1
votes2
answers293
viewsA: How do I display if I can ping a machine without displaying the textual ping pollution itself?
Like Jefferson Quesado commented, Bash is in fact the most appropriate tool for this task, and making the range is as simple as Python: #!/usr/bin/env bash for i in $(seq 1 101); do…
pythonanswered thiagoalessio 126 -
1
votes1
answer105
viewsA: Return file data . lua in PHP in array form
One solution is to use the Lua extension for PHP: http://php.net/manual/en/class.lua.php Follow an example using your file .lua as an input: <?php $lua = new Lua('./file.lua');…
-
2
votes1
answer136
viewsA: Close PHP socket with telnet
Your comparison of strings (if ($msg == "sair")) waiting exactly "sair" (without the \n in the end). Change the following line: $msg = socket_read($msgsocket, 2048, PHP_NORMAL_READ); To: $msg =…