Posts by Christian Felipe • 628 points
18 posts
-
3
votes5
answers1463
viewsA: Beginner in Python, Else and Elif
Man, if I understand you’re having doubts about the control blocks if/Else. Theoretically, in almost all programming languages, you have to have an initial condition with if, the others with elif…
pythonanswered Christian Felipe 628 -
5
votes3
answers844
viewsA: Sorting of object vectors
Well, by doing a little research here, I’ve seen that there have been several of these problems and their answers right here in the O.R., the most complete one I’ve found is this one:…
-
0
votes1
answer161
viewsQ: How to get out of an Angularjs SPA (Single Page Application)
I have following code: var app = angular.module("appSystem", ['ngRoute']); app.config(function ($routeProvider, $locationProvider) { $routeProvider .when("/teste", {templateUrl: './view/teste.html',…
-
3
votes1
answer169
viewsQ: Add classes to software at runtime
Question There is some feature that some language makes available to be able to add at runtime a class to the running software, that is, the software to recognize and thus be able to instantiate…
-
2
votes1
answer41
viewsA: DOUBT IN A SELECT - SQL
If that’s what I understand, just do it: SELECT tblImpressora.im_fab_modelo as Modelo FROM tblImpressoraSetor INNER JOIN tblImpressora ON (tblImpressora.im_cod_ =…
-
3
votes2
answers1864
viewsA: Serialize Object to JSON
So man, in Python there is the type of data Dictionary which is kind of the Map of other languages, is a structure of (key, value), that is, almost similar to the problem you are needing, because…
-
4
votes1
answer231
viewsQ: Error installing Python Polyglot package by Pip
I am trying to install this package/module by Pip and I am not able to find the solution. Follows Traceback: C:\Users\chris>pip install polyglot Collecting polyglot Using cached…
pythonasked Christian Felipe 628 -
4
votes2
answers507
viewsA: Increment in Python list
If you just want to increment (my Chará) is very simple. Use the famous for: lista = ['11.111.111.111','22.222.222.222','3.333.333.333'] for ip in lista: # faz suas operações com a variável ip…
pythonanswered Christian Felipe 628 -
0
votes2
answers988
viewsA: Parse a txt file
Well, I don’t quite know what your processing on parser. Considering that you take line by line and process, I made this solution, that when processing the line already saved in the output…
javaanswered Christian Felipe 628 -
0
votes2
answers479
viewsQ: Competition and memory sharing between Threads
I have the following code: class Objt { public List<t> list_t1; public List<t> list_t2; public Objt() { // faz inicializações } public void handleLists(List<t> list) { for(t e:…
-
1
votes1
answer54
viewsA: Problem in using char string
Your program is bugged man, logic is in trouble. You are reading a character with the function gets() and placing on the vector that had its characters Vogal, and you only need to read a character.…
canswered Christian Felipe 628 -
3
votes2
answers294
viewsQ: Do threads share the same memory address as an object method?
I searched here in the O.R.. I have a program in Java that makes use of Threads. public class Objeto { int i; public Objeto() { i = 0; } public void Foo() { i++; System.out.println("Aqui " + i); } }…
-
0
votes1
answer204
viewsA: Circular Dependency! object creation
Well, the problem is that you use the class aluno before it is defined (implemented) and the same does not apply to the class diciplina because you already defined it when you were using it in…
c++answered Christian Felipe 628 -
4
votes1
answer1203
viewsQ: Send . txt file from one pc to another using http service
I need to send a file from one PC to another over the network, only using requests http, so I don’t have to lower the level of socket, that takes work. Someone enables me to clear up with some API…
-
2
votes1
answer168
viewsA: Insufficient Permission with Google Calendar api v3 using python
It’s probably been a while since you asked and maybe even fixed, but I went through this mistake and found the solution. If you look at documentation you will see that there is a line there in the…
-
0
votes1
answer130
viewsQ: Error installing goslate API for python on Windows
I’m getting this result when I try to install the goslate API, which is a more optimized Google Api to mess with translations and other things. C:\Users\chris\Documents\PyCharm…
-
4
votes1
answer64
viewsA: Problem with showing data in Arraylist
Dude, it seems like because you’re using the same variable (p) to insert, you’re inserting the same variable all the time, then you modify it and automatically modify the whole list. Try it once you…
javaanswered Christian Felipe 628 -
3
votes1
answer1553
viewsQ: How to extract data from Linkedin with python?
Hey, guys, what’s up? So, I need to extract some information for a research I do at the university and I need to extract some data from Linkedin pages, I was extracting with python using regular…