All Questions

1
answer

Generate ssh key in git

I'm in need of some help! These days I was in college, committing some projects in my GitHub repository through Git , and uploading some files to the repository, when I was uploading the last one and give git push , gave a certain error:...
asked on 17.08.2015 / 09:09
1
answer

Special Characters in StreamWriter with Encoding.ASCII C #

I am writing to a file via StreamWriter using Encoding.ASCII encoding. A situation appeared in which I need to write the letter "Ç". But if I try to do this, the file exits the "?" Character. In this case, I need to use this encoding (I can n...
asked on 02.10.2015 / 14:22
1
answer

Is it possible to hide a public method of the abstract class?

I have the following scenario: public abstract class ClasseA { public string[] MetodoC(string parametro, string nomeObjeto) { // ações metodo } } public class ClasseB : ClasseA { public string[] MetodoD(string...
asked on 20.08.2015 / 17:44
2
answers

Cross-origin request blocked

Hello, I'm trying to load a page from another application inside a div from my application using the jQuery load but my application is not loading the page and it shows the following error message: Cross-origin request blocked: Same Origin Pol...
asked on 07.08.2015 / 17:06
1
answer

"The getPreventDefault () method should no longer be used. Instead, use defaultPrevented "

In some browsers, such as Google Chrome , always when in "mexo" in some element of the page, the following message appears:    event.returnValue is deprecated. Please use the standard event.preventDefault () instead Or:    Use of...
asked on 11.08.2015 / 13:39
2
answers

Call a method equivalent to a string

Consider the following class: public class AnimationManager : MonoBehaviour { public GameObject[] Enemies; void OnTriggerEnter2D (Collider2D o) { if (o.tag == "Player") foreach(GameObject Enemy in Enemies)...
asked on 31.08.2015 / 21:30
1
answer

Doubt cast with pointer

while( ++idx <= fp_size) { byte current = buff[idx]; int integer = 0 ; short shortint = 0 ; if(idx < fp_size - 3) integer = *((int *))&buff[idx]; } What kind of cast is this *((int *)) ? var...
asked on 06.10.2015 / 00:00
1
answer

How to get directories recursively?

How do I recursively get all *.php files? With the code below I get everyone who is root, but I wanted to get it from all the directories. I tried using RecursiveDirectoryIterator , or use some of the functions I found in SOen,...
asked on 11.09.2015 / 02:24
4
answers

Make level calculation and experience with Javascript

I'm trying to make a code that takes the value of the experience base ( base ) and subtracts from the experience gained ( bn ), so the code returns how many levels it went up ( up ) and exp remaining. I'm having troub...
asked on 26.08.2015 / 20:19
2
answers

Delete all console logs

There is some way to delete all the logs from the console and start over, like I inserted several logs there using console.log, however I want to remove them all at once and start over again by inserting others. li on console.clear () only no...
asked on 19.03.2015 / 19:37