Posts by Ricardo Gomes • 273 points
7 posts
-
4
votes1
answer2689
viewsQ: How to access the local host from a Docker container?
I’m starting now with Docker and I’m lost in a small detail, I mounted an Ubuntu image with Apache, PHP 7 and the extension connection with SQL Server. How do I access the SQL Server server if it is…
-
0
votes1
answer919
viewsQ: Open text file and handle by line
I’m starting the first steps in go and I am needing to first get a text file open it and filter by row where each line is separated by | and I’m gonna make a if to show a certain line Example:…
golangasked Ricardo Gomes 273 -
3
votes2
answers1056
viewsQ: Class return key and value of my attributes
I have the following class: class RegC100: def __init__(self,linha): def convFloat(valor): if (valor != ''): valor = float(valor.replace(",", ".")) return valor else: return '' def convInt(valor):…
-
11
votes2
answers1804
viewsQ: Format String "28122016" for "2016-12-28" date
I know it’s a very simple question, but I’ve done a lot of research and I’m not finding a simple solution. I need to create a function that receives a date in the format "28122016" and convert her…
-
3
votes1
answer1135
viewsQ: Function to mount query from table and add array in function
I’m trying to create a function where I need to send it an array that will have the same data as the Insert sequence in the database but I’m having no idea how to send this array inside the function…
-
4
votes1
answer2749
viewsQ: Transform an array to string in python
I am trying to convert an array to a string and add "|" to it at the beginning and end of each field Below the example array ['', 'C170', '1', '14879', '', '1,00000', 'UN', '29,99', '0,00', '1',…
-
1
votes2
answers80
viewsQ: return the query as the zend string
I have the following code where I need to store inside the $erro_items variable the complete query with the parameters to analyze what is happening, my doubt is, how do I show this query? $sql = new…