Posts by urb • 462 points
31 posts
-
1
votes1
answer311
viewsQ: Permission denied - Logging
I implemented the Logging python on several Flask projects successfully. But when I tried to re-implement Logging in a project it gives the following error:IOError: [Errno 13] Permission denied. To…
-
1
votes1
answer530
viewsQ: Is Flask only used by beginners?
Flask is only recommended for those who have no experience in web frameworks, i.e., for small projects (academic projects) or is recommended to develop large projects (industrial projects)?
-
0
votes1
answer208
viewsA: Validate XML with XSD generated from a Class
Automatically generating an XSD is a bad path, but sometimes it is necessary. The best way is always to create our XSD manually to better define the rules and restrictions so we ensure that…
-
0
votes1
answer208
viewsQ: Validate XML with XSD generated from a Class
How can I correctly validate my XML via an XSD that was automatically generated based on a class?
-
2
votes1
answer1116
viewsA: Communicating with the Google Calendar API using REST
public void createNewCalendarList(OAuthService service){ Token newAccessToken = new Token( API_USER_TOKEN, API_USER_SECRET); OAuthRequest request = new OAuthRequest(Verb.POST,…
-
0
votes1
answer448
viewsQ: Problems upgrading from access token
I’m authenticating the Google Calendar API using Scribe, which uses Oauth 2.0 instead. Authentication is completed successfully but I don’t know how to store the access token (accessToken) in the…
-
1
votes1
answer1116
viewsQ: Communicating with the Google Calendar API using REST
I’m using Scribe to authenticate with the API of Google Calendar. Authentication with Google is successfully done by returning the accessToken hassle-free. When I try to add one CalendarList,…
-
1
votes1
answer106
viewsQ: Problems in JSP implementation using Struts2
After executing the following jsp: <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ page language="java"…
-
8
votes1
answer134
viewsA: What is the difference between variables declared as final and private?
A variable of the type final can only be initialized once, either through an initializer or through an assignment. A variable of the type private can only be directly modified and accessed within…
-
1
votes1
answer143
viewsA: Problems connecting to an RMI server
On the RMI Server put this code: System.getProperties().put("java.security.policy", "policy.all"); System.setSecurityManager(new RMISecurityManager()); System.setProperty("java.rmi.server.hostname",…
-
1
votes2
answers75
viewsA: Problems in passing arguments by parameter
The problem is in the function call, float imc(float tam, float pes) Because in the line 23 the function imc asks for two arguments and you’re only going through one.…
-
1
votes1
answer143
viewsQ: Problems connecting to an RMI server
On the server RMI I have the following settings: Registry r = LocateRegistry.createRegistry(rmiport); r.rebind(rminame, h); System.out.println("Servidor RMI pronto:"); where, rmiport = 7000 and…
-
2
votes4
answers1852
viewsA: Oracle11g - Problems SELECT command
Solution is to remove the AS. String sql = "SELECT M.ID, M.TITLE, M.DIA, M.HORA FROM MEETING M, MEETING_LIST ML WHERE (M.ID=ML.ID_MEETING AND ML.ID_UTILIZADOR=( SELECT ID FROM UTILIZADOR WHERE…
-
1
votes4
answers1852
viewsQ: Oracle11g - Problems SELECT command
I’m making the following mistake: java.sql.Sqlsyntaxerrorexception: ORA-00933: SQL command not properly ended This happens after I run the following line from SQL: /* Listar todas as reuniões do…
-
1
votes1
answer627
viewsQ: Insert - Jump Lists / Skip Lists
I’m trying to implement the insertion of a node in a jump list, but I’m not making progress with the solution because I don’t know at what point I should add the Node. So far I’ve made this…
-
0
votes1
answer231
viewsQ: Async Task and/or Application
I’m developing a app that you need to always be connected to the server. For this I thought to use a async task to run the connection to the server in the background but when I switch to Activity…
-
0
votes1
answer172
viewsA: Do I get NULL from STRTOK?
I gave up the strtok() and I’m reading the words one by one is much more efficient and I don’t spend so much memory space. while(scanf("%s ", word) > 0){ if(removeNext){ removeNode(&root,…
-
1
votes2
answers1172
viewsA: Error from "expected Expression before ːint'"
You had two problems: Typecast badly done. getchar instead of getch void horario(float tempo, int *h, int *m){ *h=(int)tempo; *m=(tempo-*h)*60; } int main(){ int hora,minuto; char resp; float t; do…
-
0
votes2
answers407
viewsA: Read Blocker in C
When the server accepts a client, it creates a process or thread that is in charge of working with that client. Before handing over work to this process, we close the fd of the customer. For…
-
0
votes2
answers407
viewsQ: Read Blocker in C
I am trying to make a server in C. After receiving the client’s connection the objective is to wait for information from the client in the socket, for this I use the following code. /*Read…
-
3
votes2
answers5124
viewsQ: Copy Strings in C
I have the following two-dimensional matrix of strings. char matriz[linhas][tamanhoDaString] Through the strcpy I copied a string there. char *aux = "abc"; strcpy(matriz, aux); My goal was to put in…
-
1
votes1
answer136
viewsQ: Maps Public API KEY
I’m developing a app who uses the Google Maps. When I do run from the Eclipse to the smartphone, Google Maps shows no error. When I publish the app in Play Store, the Google Maps error, no map…
-
-1
votes4
answers459
viewsA: What happens when I convert int to char?
What can happen in the conversion of int for char is the conversion based on tabela ascii. For example:…
-
1
votes1
answer334
viewsA: Problems with AVL Tree Rotations
Uff, I found the answer if(balance(&((*root)->right)) > 0), that line was wrong. the correct one would be if(balance(&((*root)->right)) < 0) I developed an improved version of…
-
3
votes1
answer334
viewsQ: Problems with AVL Tree Rotations
Hurrah, I’m developing code for an AVL tree. But I have rotational problems. Node structure: /*Node*/ struct Node{ int id; int height; char word[DIM]; struct Node *right; struct Node *left; }…
-
1
votes1
answer172
viewsQ: Do I get NULL from STRTOK?
Hello, I am using Strtok to split a string into words. My idea was to follow the word REMOVE deleted the next word from the text. void algorithm(node **root, char *line){ char *pch = strtok(line, "…
-
0
votes2
answers3467
viewsA: How to add two arrays of integers with pointer arithmetic?
To be able to perform operations between two vectors in a function you have to comply with these "rules": Pass vectors by parameter Pass vector size by parameter After that just go through the…
-
0
votes4
answers8769
viewsA: How to calculate the product of the elements of an array in C
To multiply and sum the elements of an array is basically to make a succession of terms. We have the following: //////////////// int *vector = {1,2,3,4}; int i, total = 0; /*Realizar a primeira…
-
0
votes2
answers250
viewsA: Googlemapsv2 to work in production version
I also had the same problem, discovered that the solution to this problem is to use a published KEY for when someone downloads the app to be able to use Gmaps. For this just search on google console…
-
0
votes2
answers2690
viewsA: incompatible types when assigning to type 'int *[]' from type 'int'
My suggestion is to pass an array parameter and put the data in it. void function(int *vetor){ vetor = (int*) malloc(sizeof(int)); vetor[0] = 1; }
-
0
votes3
answers100
viewsA: Removing cells at the beginning of a list
Hello, Try to base yourself on this example. typedef struct node{ int value; struct node *next; }Node; // Como declarar o root da lista ligada Node *root = NULL; void removeFirstNode(Node *list){…