I have a table with summaries about a particular client, where the first line is the main content to be displayed, and the rest is a mere complement.
I know I could apply display: none , but I do not think that should be the best way to...
On Linux-based systems whenever I need to use the following command:
#!/bin/bash
BASEDIR=$(dirname "$0")
echo $BASEDIR
I have however read in different places that $(dirname "$0") is not supported by Mac OS X systems and BSD-based...
I need to upload a file to WebAPI , I'm using the following code to upload
public void Enviar()
{
WebRequest request = WebRequest.Create(url);
request.Method = "POST";
byte[] byteArray = File.ReadAllBytes(fileName);
re...
When I do the 162/11 calculation, the result is 14,72727272727273 . But when I use the code System.out.printf("%.1f", teste); , the number 14,8 is displayed.
I would like a way to save only 8 in a int .
The program below allows the occurrence of memory overflow, because it is possible to override the variable zero by placing a "large" value in the variable buffer . How to make a secure program by avoiding buffer overflow ?
#include <...
I know that in should be used instead of px in sources for good application performance on mobile phones, but I only use this in font size.
Should I use in also in places like margins, paddings, line-height, etc?
Thanks
Working with web in asp.net mvc , I saw that it is possible to use Ajax.BeginForm() and Html.BeginForm() .
What is the difference between Ajax and Html ?
How do I convert an object to JSON?
I even found some codes on the internet that even worked, but my object has some fields that are other objects and then the conversion did not reach the last level.
Example:
class Pessoa(object):
c...
I'm not able to update a table with the select of another.
I have a mdl_user table that contains several columns and created another users_sg to copy some columns.
I copied with
INSERT INTO
users_sg (id, username, firstna...