Posts by alexandre.katrid • 41 points
4 posts
-
0
votes2
answers2014
viewsA: How do I read two columns of a . dat file in Python?
Short solution: with open('arq.txt') as arq: dados = [line.split(' ')[1:] for line in arq.readlines() if line.strip()] print(dados)
pythonanswered alexandre.katrid 41 -
0
votes3
answers130
viewsA: How to perform function once per visitor after loading the site?
I would do using the new localStorage of HTML 5, it is very simple and I believe that all modern browsers already have: <script> // escrevendo localStorage.setItem("ja_acessou", "Sim");…
-
1
votes2
answers243
viewsA: Parallelism in Sql Server with C#
According to this link (https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/asynchronous-programming), if its version . Net less than 4.5, then it is necessary to inform Asynchronous…
-
3
votes2
answers6409
viewsA: What is a stream?
I will try to respond in a generic way, with no direct connection to a specific language. I do not understand Stream as a specific feature of a language, but rather a technique/algorithm. What is…