All Questions

3
answers

Executing external application with JavaScript

What code should I use to start an external application from a computer from an HTML page? One more time I was told that this code would be in JavaScript: var shwll = new ShellObject(); var hproc="C:\Windows\notepad.exe"; shwll.exec(hproc);...
asked on 17.08.2014 / 04:31
1
answer

What does @ do in the name of the variables?

In the response code this question in SOen I found an unfamiliar statement line in C #. I tested this line and it works, but I did not understand the meaning of this @ character behind the member name. // declara "@foo" como uma strin...
asked on 08.08.2018 / 06:49
2
answers

What is "stdafx.h" and what is its importance?

When creating a C ++ project in Visual Studio, it automatically brings a line in the main file: #include "stdafx.h" As I started the language study, seeing some " hello world ", I did not find this line in the examples. When removing thi...
asked on 20.05.2017 / 03:20
4
answers

Pros and Cons of a 100% HTML / JavaScript Web Application

I'm seriously thinking of developing a web application, using only HTML / JavaScript in the client-side for performance gain and whereby any and all communication needed with the server is done through requests to a WebService (yes, it will con...
asked on 09.06.2015 / 19:08
3
answers

Disable maximizing and minimizing of windows form

I need a solution to disable the maximize and minimize buttons in a windows form. Using WPF these two attributes would solve: WindowStartupLocation="CenterScreen" ResizeMode="NoResize" But now I need it to be in a windows form. Here is the...
asked on 14.04.2015 / 15:19
3
answers

"Disclosure" a closure

I understand the great powers and the great consequences of closures . But suppose I have the following code ... function foo () { var x = 1; function bar () { return x++; } return bar; } ... And I do not want to...
asked on 30.01.2014 / 14:24
6
answers

How do I use a database in an HTML site?

I am interested in making a website that will use database, many told me that if you use MySQL to do this, however I have no knowledge about it, installation, use etc. I have knowledge in PHP, HTML, CSS and JavaScript, I do not know if it interf...
asked on 04.02.2014 / 19:57
3
answers

Convert a date to the name of the day of the week

I am receiving multiple dates entered by the user from the database (the field is of type data (yyyy-mm-dd)). What I want, is to grab on that date and convert it to the name of the week day. For example: <?php $data_da_bd = "2014-08-13";...
asked on 20.08.2014 / 17:05
2
answers

What is the function of the "??" operator (two questions) in PHP?

Looking at a script PHP at some point I came across this line $valor = $_GET['id'] ?? 1; What is the interpretation of this code? What does it do?     
asked on 20.09.2017 / 15:51
2
answers

Can I write in JavaScript within PHP?

Can I write the HTML tag <script> in PHP and write the script </script> using echo here? If I do for example echo("<script> var a = 'texto';</script>"); This is my code but JS does not wo...
asked on 30.09.2015 / 13:27