All Questions

5
answers

Compress PDF files

There is this PDF Compressor site that compresses files from 300k to 90k , was looking for in Google and I could not find anything related to doing in c# . Does anyone know of an algorithm that does the same thing in C...
asked on 03.07.2015 / 18:44
5
answers

How to make a regular expression for cell phone?

How to create a regular expression to validate the phone field that accepts 99-99999999 (DDD + 8 numbers) or 99-999999999 (DDD + 9 numbers). And when typing it add the - dash automatically! ValidationExpression="^[0-9]{2}-([0-9]{8}|[0-9]{9})...
asked on 13.01.2015 / 13:23
9
answers

Error: R can not be resolved

I'm creating an Android project and am experiencing the following error in my IDE. package br.com.app; import android.R; public class MinhaApp extends Activity {      @Override      public void onCreate (Bundle savedInstanceState) {         ...
asked on 11.12.2013 / 17:51
4
answers

Simple Pointer Teaching

I'm a sporadic programmer, and whenever I need to use pointers, I realize that I've forgotten how to use it, and I have to grate to learn everything again. Does anyone have any simple didactics to remember the concept of pointers, and that is...
asked on 25.07.2014 / 20:12
5
answers

How do I join two results of a query?

I'm developing an application in C # and would like to know how to merge two results from two queries into one. I have the following code: public List<MalaDireta> ObterMalaDireta() { List<MalaDireta> resultado = new List&...
asked on 11.12.2013 / 17:08
4
answers

Is it possible to develop websites with C / C ++?

I know a bit of PHP, but I see that on content sites, sometimes it fires and so on. Researching, I have seen (very shallow) reports that it is possible to develop web applications with C / C ++, and that these, in turn, would have far more pe...
asked on 15.12.2016 / 10:15
5
answers

Test if all characters in the first string also appear in the second

I'm trying to do this function with the help of the functions strcmp() and strncmp() and I'm not having great success. Let's say that I have the string char s[] = "abc" and another string char v[] = "cdeabf" , the...
asked on 14.03.2015 / 13:36
3
answers

How to observe an error in the iframe element with attribute "sandbox"

I have in my document a iframe with the sandbox attribute. With javasript I read a Markdown file and parse using the showdonwjs library and add this result to attribute srcdoc of iframe and result is expe...
asked on 26.10.2016 / 08:39
3
answers

Global variable in JavaScript

How to make a global variable in JavaScript? I need the variable that was declared in one function to work in another function. Example: JSFiddle $("#div3").click(function() { var fill = "a"; }); $("#div2").click(function() { ale...
asked on 12.09.2014 / 00:10
5
answers

How to make a circle in CSS without Border-Radius 100%?

I can circle the css with border-radius . .circle{ border-radius:100%; border:10px solid red; width:100px; height:100px; background-color:purple; } <div class="circle"></div> However,...
asked on 01.12.2015 / 16:43