Posts by Asura Khan • 2,474 points
42 posts
-
31
votes1
answer1866
viewsQ: What is the Webassembly?
Reading random articles, I read one that predicted the end of Javascript through Webassembly, which seems to be a way to get other languages to do Javascript’s work, but I’m sure this is a wrong…
-
9
votes4
answers760
viewsQ: What are Path Finding Algorithms?
In college studies, I came across the Path Search algorithms. The theoretical part confused me a lot and I am limited to understand the uses of this algorithm in practice. What Are Path Finding…
-
5
votes2
answers3112
viewsA: Is there a URL in Nodejs?
See the documentation for a full example and how to use the HTTP module: http://nodejs.org/docs/v0.5.2/api/http.html#http.request There’s also this example var http = require("http"); var options =…
node.jsanswered Asura Khan 2,474 -
1
votes1
answer258
viewsQ: how to use inherit and initial properties in css?
My CSS studies have resulted in finding the following properties: inherit and initial. The two at first seemed quite similar to me, but I really wanted to know is: Where I can use inherit and…
cssasked Asura Khan 2,474 -
10
votes2
answers339
viewsQ: How does the display property work?
I’ve been researching the functionality better (values) display and its features. I noticed that it has many possibilities. Some very obvious and others somewhat complex for the beginner developer.…
-
15
votes2
answers1866
viewsA: What’s the hell with callbacks?
What is Callback Hell Using your own code as an example. We can see that the callback hell is defined by this pyramid at the end of }). Simply awful. Follow the passage: }) }.bind(this)) } }) }) }…
-
4
votes4
answers1233
viewsA: What is the correct order to use the PHP header and ob_start functions?
You should always put the header first, because if you have a redirect, you may end up affecting where your users will be redirected. Another thing that happens is that information can get stuck in…
-
0
votes2
answers301
viewsA: How do I perform functions when the window is out of focus?
An extremely simple solution with jquery. I can’t believe I didn’t think of it before. var notification; $(window).focus(function(){ notification = false; }); $(window).blur(function(){ notification…
-
13
votes1
answer2376
viewsQ: What is non-blocking I/O?
What is non-blocking I/O? What are the uses of a language with non-blocking I/O? What are the practical applications of non-blocking I/O? It certainly doesn’t come into question of opinion, so I…
-
3
votes2
answers812
viewsA: What is the dollar sign for before a variable?
Serves to access values stored within variables. When to use prefix $ you will be wanting to access this value. See a very simple example. #!/bin/sh NAME="Zara Ali" echo $NAME I declared a variable…
shell-scriptanswered Asura Khan 2,474 -
2
votes2
answers301
viewsQ: How do I perform functions when the window is out of focus?
Explaining the problem I’m working with sockets, and would like to know how to put a notification only when the tab is out of focus. That is, when the user is viewing the tab, he will not receive…
-
7
votes3
answers1253
viewsQ: What is Gzip? How does it improve a website?
How exactly Gzip improves a site’s performance? I wonder what it’s like under the table. I saw that some sites that test the speed of other sites usually check the gGzip, but what is this? How…
-
16
votes12
answers79762
viewsA: Formatting Brazilian currency in Javascript
I found a solution with Reg Exp. You use the regular expression to locate the numbers values and replace them with Real formatting. <script type="text/javascript"> var test = 'R$ 1.700,90';…
javascriptanswered Asura Khan 2,474 -
1
votes1
answer513
viewsA: Toggle page content by changing only the div
About ajax Basically, ajax is when you call a script ( it doesn’t matter if it’s php, json, asp, javascript, html ). This call causes javascript to search a file on the server, which you will…
-
2
votes3
answers48
viewsA: Doubt regarding CSS selectors
According to the W3C To rule @media, was introduced in CSS2, thanks to it it is possible to create different rules for different types of media. That is, monitors, mobile phones, 4K TV. Example: You…
-
10
votes2
answers5648
viewsA: What is Ecmascript 2015 (ES6) specification?
It is simply the newest version of Javascript. In fact, the most commonly used name is ES2016. The idea of the committee responsible (known as TC39) for language updates is precisely to make an…
-
9
votes1
answer1639
viewsQ: What is Access Token? What is it for?
What exactly is an Access Token? What is an Access Token for in an API application? I would like an answer addressed to Node.js, but I believe that API creation exists in several languages, so I do…
-
0
votes3
answers238
viewsA: I can’t center the text
I put padding on ul and apparently centered here. .visible ul { padding: 10px 25px; }
cssanswered Asura Khan 2,474 -
0
votes2
answers1547
viewsA: Insert data from an array into a mysql database
A suggestion to solve your problem. You said you need to recover the values of a JSON and that for this you want to transform them into an array. There is a function in PHP, which retrieves data…
-
-2
votes4
answers5196
viewsA: How to save line breaks from a textarea to the database?
I know it may not be within the scope of the question, but it is also a way to solve your problem and still implement a more elegant solution. Use a Texteditor. In addition to giving you better…
-
3
votes1
answer1414
viewsA: Return PHP outputs on the same page
What is ajax? Basically, ajax is when you call a script ( it doesn’t matter if it’s php, json, Asp, javascript, html ). This call causes javascript to search a file on the server, which you will…
-
6
votes1
answer380
viewsQ: Why use two server-side languages on the same system?
Why I see many systems with two, up to three programming languages? When I see a system that migrates from one language to another, I even understand, but why do many maintain two or three…
-
1
votes1
answer36
viewsQ: Use of CSS Display
I noticed I’ve been using quite a lot of display:none to remove code blocks from a page. I do this by instructions from superiors, but I have always believed that it is a practice that can affect…
cssasked Asura Khan 2,474 -
0
votes0
answers63
viewsQ: E-mail Marketing does not recognize margin
I’m studying email marketing. I’m trying to put a text in a square white part in the middle of the image. However, I notice you’re not recognizing the element margin in emails. Any alternative? I…
-
0
votes2
answers246
viewsQ: How to overwrite a page with ajax
The question is simple. I use Ajax Javascript to load content, but as I can for example, load another html2 page and make the page that loaded html2 disappear? The question, ajax has the ability to…
-
1
votes0
answers135
viewsQ: Wordpress theme edition with Bootstrap
some questions. I am studying Child Theme because I was told that is the best way to change topics. Question: I’m doing a lot with bootstrap and would like to change a theme that has bootstrap, in…
-
2
votes2
answers996
viewsQ: Is it wrong to use ! Import to override Bootstrap rules?
I’m recently studying Bootstrap and realized that I can, for example, edit the background of a .nav-bar using the !important in css. Is doing it that way wrong? Would I have any consequences on…
-
7
votes2
answers6202
viewsQ: How does the C++ layer work on the Web system?
I see that many complex web systems say in their "API" that they use C++ as the "lower" layer, I don’t know if the question is too wide, but briefly I believe it is possible to explain to me how…
-
4
votes1
answer315
viewsQ: How to use Javascript JSON to recover C result?
I learned that JSON is used to communicate between systems. So it is possible to communicate with C, recovering variables through a JSON generated by the code and sending through the Javascript AJAX…
-
0
votes1
answer264
viewsQ: avatar with user information
It is the following people, maybe this is very basic, but how do I associate the image of an image folder for example to the user id 1 in the bank? Will user 1 have image 01 of the img folder? Would…
-
5
votes3
answers11223
viewsQ: What is the MINUS command for and how it works on oracle
I’ve never seen this command before and I haven’t found it here either, I don’t know if it has another name and from the Oracle documentation I couldn’t understand exactly how it works. I just want…
-
3
votes2
answers12386
viewsQ: Problem to remove chained list element in C
My function is only removing the first element if I enter the name of that first element. I would like to know how I do for the function find the element and remove it. The insert function this…
-
0
votes2
answers3807
viewsQ: What’s the best language for Restful?
I am a PHP programmer, but I’m having trouble finding useful ways to do REST. And so I’m intending to learn a second language, I already know some, but there may be a better one to do Rest. Please…
-
3
votes2
answers1183
viewsQ: Dynamic Link? And how to implement?
I don’t know the name of this technique, I’m a student, but sometimes I see in the lower left corner of Chrome the complete link type... http://www.bla.com/.../o-video-game-legal.html Then suddenly…
-
18
votes8
answers2700
viewsQ: Is it good practice to mix Php and Html?
I see that in python, has the Bottle for example that does the same thing of what I intend to do then... I am new to web practices, student indeed and would like to know if I can use php and html in…
-
7
votes2
answers2210
viewsQ: PHP on linux or windows
Explanation: I know it’s a controversial question, but I’m not an old man of programming and I have knowledge of linux, but I never chose it because I use C# from time to time and in my college they…
-
2
votes1
answer53
viewsQ: mytrack.Duration returns Nan
Are you returning Nan, does anyone have a solution? Follows the code: <html> <head> <title>teste</title> <meta charset="utf-8"/> </head> <body> <audio…
-
2
votes4
answers454
viewsQ: How to generate a summary or excerpt of each post?
I want to build a php and javascript posting system, I already know that the admin will write the post, put the subject, category the date will automatic and inserted in the bank. This part I…
-
2
votes1
answer1097
viewsQ: event on property or use addeventlistener
One thing I’ve always wondered if it’s standard to use addEventListener or the property of the tag <body onload="">. Some say it’s the addEventListener and others say it’s for property.…
-
8
votes1
answer7977
viewsQ: external access with wamp
I was wondering how other people can access my webserver. I have already released the 8080 port and the icon is green. I can also access local with 192.168.0.10:8080 but if I use my ip together with…
-
3
votes3
answers162
viewsQ: Relationship Have-one in C#?
I tried to do a have-one relationship in C# and I’m not getting it and I don’t even know if it’s recommended to do. Follow my error code: System.Nullreferenceexception Undefined object reference for…
-
3
votes1
answer2956
viewsQ: Is web tax printer possible?
I am implementing a system for issuing a invoice with tax printer in C#, but I would like to know if it is possible via the web using Javascript HTML, CSS etc. How would I do that? Through what…