Posts by FRNathan13 • 2,183 points
84 posts
-
1
votes1
answer88
viewsQ: Run a program with internal arguments
How is it possible to create a Process, enter it without allowing any user to view the arguments? Ex: Executable: Mygame.exe Arguments: -userid 0 -userpwd 0 but without allowing the task manager or…
-
1
votes2
answers169
viewsQ: Undefined variable, even if defined
I made a class, in which saved inside a login and user password array: function AccountManager() { this.accounts = {}; } AccountManager.prototype.createAccount = (login, password) => {…
-
0
votes0
answers37
viewsQ: Can’t detect the object
I made an API script, in this script has some basic functions well used. I am currently working on editing Intervalsapi: var interval = { intervals: { }, create: function(name, func, interval) {…
javascriptasked FRNathan13 2,183 -
0
votes1
answer45
viewsQ: The Rule is not applying to the elements
I made a basis with a class system for a certain color to an element. Even putting the rule it does not accept. Example: <span class="mc c0 s1">Olá Mundo :D</span> In CSS it looks like…
cssasked FRNathan13 2,183 -
1
votes0
answers192
viewsQ: Create xmpp server
I would like to know if there is still the possibility of writing a SERVER XMPP in C#. I have tried searching the internet, on many websites, and they only provide the CLIENT. I don’t know if the…
-
1
votes1
answer58
viewsQ: Not returning the second parameter
I am developing an api. Basically it requests a page according to the request. Example: http://localhost/mod/<name>/<version> the problem is being /version. I made htaccess that way:…
-
0
votes1
answer198
viewsQ: IF with syntax error
I’m trying to create a simple chat system using database but want to automatically when it reaches a limit of Rows in the database it automatically run the truncate. The Trigger code I made was…
-
1
votes1
answer54
viewsQ: Include with parameters
How do I include another php file passing information with it, for example I aim to include a php that has a message system that creates a temporary html that error: For example I want to give…
-
1
votes0
answers29
viewsQ: During a foreach when incrementing the string duplicates a character at the end
I am developing an api for personal use and mysqli management that makes the user not need many codes or phpMyAdmin (for website use etc). But I am trying to combine the INSERT INTO command with a…
phpasked FRNathan13 2,183 -
1
votes0
answers14
viewsQ: Difference from php’s initial tag
Recently I have explored many codes related to php, scripts, queries etc, but I came across one thing! In the initial php tag the user put the default: <?php echo('test md5:' .…
phpasked FRNathan13 2,183 -
0
votes2
answers53
viewsQ: In the "while" method adds to the array
I’m trying to produce a script that when I query in mysql it returns an array, so far ok, but the goal is to make this query turn into an edited json. Example:…
-
1
votes1
answer203
viewsQ: XML returning strange characters
I manage a code in Php that requests server data as a "changelog" from a game server. But in changelog XML returns strange values. As for example in the words "creating" the result is "child§" or…
-
3
votes3
answers1151
viewsA: Make it difficult to access CSS and JS files
I suggest you use the method of obfuscating the files in which only the web browser will interpret this automatically. NOTE: Remember to always have an original backup of the code without the…
-
1
votes1
answer150
viewsA: String returning empty
I found out! After the creation of Memorystream I have to make her come back from the beginning. memory_stream.Seek(0, SeekOrigin.Begin);
-
0
votes1
answer150
viewsQ: String returning empty
I am trying to get me into the . zip file, select a single file called mcmod.info and save for a MemoryStream temporary. I followed as a basis that link on Stackoverflow, but when I read the var ms…
-
0
votes1
answer106
viewsQ: How to make it redirect
I made an application in C#, in addition to performing the basic functions, I want it to be possible to run with scripts in batches, but the problem is that I run Console.WriteLine and he doesn’t…
-
0
votes1
answer234
viewsQ: Allow only one instance
How to make my application run only 1 instance at a time? void Main(string[] s){ //faz algo }
-
0
votes1
answer234
viewsA: Allow only one instance
I looked deeper into microsoft libraries and found something similar to Mutex, and interpreted this code to maintain only one instance. using System.Threading; namespace MeuNamespace { class Program…
-
0
votes1
answer75
viewsQ: Jarray add values
How to add a set of values JArray in an existing json. void adicionar(string name, string gamedir, string, lastVersionid, string javaArgs) { /* adiciona ao json existente... */ } Existing json…
-
3
votes1
answer66
viewsQ: Jsonreaderexception when performing Jobject.Parse
When I execute JObject.Parse starts an Exception content: Error Reading Jobject from Jsonreader. Current Jsonreader item is not an Object: Startarray. Path '', line 1, position 1. The Json I’m…
c#asked FRNathan13 2,183 -
0
votes0
answers237
viewsQ: Splashscreen in php
How to make a loading screen that waits for a period of X seconds to do a certain action. Ex: Running a Query in the database... Ex: <?php $outTime = 1000; // tempo em ms ... ?> <div…
phpasked FRNathan13 2,183 -
5
votes4
answers318
viewsQ: Div inside another broken div
How to insert a div into another div without either of them making the line break. I want to do it this way because I’m in the development of a Clan website and the index has to have the login or…
-
6
votes0
answers54
viewsQ: Redirect a virtual url
How do I redirect a url from my website to a subfolder. Example: Database: ID | ENDEREÇO | ESCREVER NO INDEX.PHP 1 | example.com/extranet | <span>Sou o extranet</span> 2 |…
-
3
votes2
answers576
viewsQ: Convert Json to XML
I have that code: using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Diagnostics; using System.Xml; using Newtonsoft.Json; using System.Net;…
-
2
votes1
answer86
viewsQ: Jsonconvert returns Exception in Xmlnode
I tried to convert Json to Xml so making it easier to read. And I used the following code... using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using…
-
3
votes2
answers879
viewsA: Avoid more than one register in the database
I was able to solve it this way: Running the query in the database to see if the user and email already exist! if yes returns true. if it does not return false. function ExisteUsuario($u, $e){ $cmd…
-
5
votes2
answers879
viewsQ: Avoid more than one register in the database
I’m having problems because I’m making a community system where the user registers and shares stories. More when I went to test clicked on register 2 times and 2 times it went to the database even…
-
0
votes1
answer68
viewsQ: Jobject.Parse returning null
I’m not very suited to Youtube Api V3. But I watched a google Developers live where the google operator shows how to list the activity of a particular channel. Based on that I executed via GET at…
-
0
votes1
answer67
viewsQ: Convert string to function
What is the best way to make a string to void conversion uncomplicated. I tried to use this code but it appears NullException private void Mainform_Load(object sender, EventArgs e) { var method =…
c#asked FRNathan13 2,183 -
0
votes1
answer232
viewsQ: Variable returns strange characters
I am using the CPU-Z that when scanning your pc you have the option to save the log in txt or html so that it can be viewed manually. Done this I exported to html and ran INSERT INTO…
-
2
votes4
answers621
viewsA: Create Windows Service Auto-Updatable
Merge Clickonce and/or Webservice to do this for you See this page that can help you The web service should be able to read an XML file that contains all the information of a possible update. I…
c#answered FRNathan13 2,183 -
1
votes3
answers1016
viewsA: Read Array out of foreach
Simple, it uses an easier way to perform the foreach in the array. $lista = array('1052','1053','1054'); $a = ""; foreach($lista as $b){ $a .= $b . ','; } echo $a; // Resultado: 1052,1053,1054 See…
phpanswered FRNathan13 2,183 -
7
votes1
answer589
viewsQ: Modify visual element by another thread
I want to define by a Thread the content in a Richtextbox but I get an error saying Cannot make calls from another thread distinguished from the same Textbox I have heard that it is possible to use…
-
1
votes1
answer107
viewsQ: Xmltextreader.Getattribute returns the null value
I made a base code in XML and I would like to import the attributes and values according to the code: <?xml version="1.0" encoding="UTF-8" ?> <!-- MAIN SCRIPT FILE FOR JAVA 7u80 MINECRAFT…
-
3
votes2
answers181
viewsQ: Return a similar path value
No result in my post, i would like to know how the function would be used Directory.GetFiles, to list the files and folders within it without showing the full path. Ex: public List Listar(String a){…
-
3
votes2
answers84
viewsQ: Return the path value
To return the value with the name of a folder in C#? Example, if executed: Directory.GetFiles("%PROGRAMFILES% (x86)\MyApp", "*.*", true); And if he succeeds he returns like this: %PROGRAMFILES%…
-
17
votes6
answers8335
viewsQ: How to know if the form is sent
How to know when the form is sent and without input fields being empty? I was told the isset to carry out this action but I did not understand right the use of the isset…
phpasked FRNathan13 2,183 -
1
votes1
answer63
viewsQ: Only the last array item is displayed
How to play a php code, like a comment system. Using this code I was able to make this possible but, in the same way the code returns only the last query item: <?php error_reporting(0);…
-
0
votes2
answers121
viewsA: Add or Show amount of items
Worked that way! On the basis of Jeferson Assis' reply I was able to understand that there is no need to execute SELECT COUNT(*) FROM `participacoes` But rather execute: SELECT * FROM…
-
0
votes2
answers121
viewsQ: Add or Show amount of items
How best to add or show the amount of items in a mysql table using php. For when I run this code the following error appears: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean…
-
2
votes1
answer460
viewsQ: Error connecting remote database
Good evening, I’m having trouble with the following context: MySql Using the line of code below I tried to connect to a remote mysql server to try to access some tables and comes the following…
-
3
votes1
answer76
viewsQ: Document.querySelect in body
How to use code session document.querySelector to change/change the background image of a page <body>...</body> Ex: var imagem_lista = […
-
4
votes3
answers1923
viewsQ: How to fetch a file in all folders
How to create an application that does a full search in a folder or disk looking for a file who in the image I’ve tried to use Directory.GetFiles and Directory.GetDirectory But when it gets to a…
-
2
votes2
answers126
viewsQ: Remove last table item and reset a new item above the first
How I would remove the last item from a table by selecting the last four. Ex: +-----------------+--------+ +------ ITEM -----+-VALOR--+ +--------------------------+ 1: FulanoA + está online 2:…
-
1
votes1
answer209
viewsQ: Extract . zip with status
How to extair . zip files in a way that I can see the status of the items being extracted. Ex: static string GetStatus() { return "Extraindo... " + current_arquivo; } Using Ionic.Zip’s Opensource…
-
2
votes2
answers70
viewsQ: Install an application
What is the best and simplest way to create a customizable C installer#? Ex arquivos: \bin32\dedicated.exe \bin32\server.exe \bin32\sdk.exe \etc\lib.def \etc\resume32.def Make the application do the…
c#asked FRNathan13 2,183 -
0
votes5
answers2046
viewsA: Compressing PDF files
Try this Freeopensource PDF Compressor: http://alternativeto.net/software/pdf-compressor/? License=free…
-
4
votes1
answer94
viewsQ: File installation/copy system
How to use items SortedDictionary File.WriteAllBytes to start or complete a file and folder installation process for the computer. Ex: File list: void AlocarArquivos(){ var arquivo_e_pasta = new…
-
1
votes1
answer591
viewsA: Chat youtube url system for embed
Embed link from youtube: https://www.youtube.com/embed/[id_do_video] Example: https://www.youtube.com/embed/D_E58tNUJRs And in case you get recent youtube videos use the Googleapi and collect the…
-
1
votes1
answer32
viewsQ: Referanceerror when running script
The Code below changes the innerHTML of a DIV and when I run the function item.Footer(); the javascript console tells me "Referanceerror 'item is not defined?" (function() {var item ={ Name:…