Posts by João Victor Valentim • 131 points
12 posts
-
5
votes3
answers167
viewsQ: Doubt about C pointers
So guys, I got a question here. What does each of these statements mean below? *ponteiro = Valor do ponteiro ponteiro = (?) &ponteiro = Endereço de memória do ponteiro I would like someone to…
-
0
votes1
answer43
viewsQ: Rspec test failing because of Databasecleaner
I was having trouble with tests about 4 days ago. At first, I had trouble with "database is locked" and in the file where the DatabaseCleaner is configured; changed two lines they used :transaction…
-
0
votes2
answers468
viewsQ: Nameerror in Postscontroller#index | uninitialized Constant Postscontroller::Post
Guys, accidentally my girlfriend went through the folders of my project in Ruby on Rails and started giving this error. What can I do? He doesn’t seem to recognize the Post as a class...…
-
0
votes1
answer379
viewsQ: Error "bash: ruby: command not found"
I’m trying to install Ruby on Rails on Windows, but I install and whenever I try to use Git BASH in the "Sites" folder that is created in the installation, this error appears. How can I fix? Command…
-
1
votes1
answer75
viewsA: How to access # property in a JSON file with Jquery?
Just use values.track[index].image[index]['#text']
-
1
votes1
answer75
viewsQ: How to access # property in a JSON file with Jquery?
Hello, I am using the Last.fm api and I am having difficulty accessing the #text found inside the image array. Data link -> JSON I try to: console.log(values.track[index].image[index].#text); But…
-
0
votes2
answers104
viewsQ: Javascript going to the top of the page?
Guys, I have a "Like" script only when I click on it the half page of a Reload and goes to the top. But when I do Load actually on the page, it goes to the place I clicked to give the "Like". What…
-
1
votes2
answers178
viewsQ: Identify the right textarea to send when pressing Enter?
I had "solved" a problem of sending a textarea by pressing Enter on my application, but ended up only sending to the first textarea of the page. The application loops posts recorded in the database…
-
0
votes1
answer857
viewsQ: Send a textarea by pressing enter with JS?
I’m having problems in my application because I have two types of textarea on the same page. One creates the post and the other creates the post comment. The following code sends the post textarea:…
-
2
votes1
answer642
viewsQ: Function of "Like" without reloading the page?
Hello, good afternoon! I’m having a problem that I don’t know how to solve. I don’t know how to program in Jquery or Ajax, but I intend to start learning. How can I make the following PHP code work…
-
0
votes1
answer441
viewsQ: Modify a href URL using PHP HTML DOM
I want to modify a URL of an object that I’m extracting from another site, in this case, from Exame.com. Follows the code: $exame = file_get_html("http://exame.abril.com.br/"); $exame_posts =…
-
1
votes1
answer422
viewsQ: Pick CSS class from other sites using PHP HTML DOM Parser
I’m trying to get a class from a news site, but I’m not getting it. $titulo = $html->find('feed-post-body-title gui-color-primary gui-color-hover', 0) ->innertext; echo $titulo; You’re making…