All Questions

1
answer

Detecting volume keystrokes on Android

I found a palliative solution that monitors the volume change of the system itself. When the volume decreases, for example from 10 to 9, the program resets the volume back to 10 (pretending there was no change in volume) and performs the desired...
asked on 24.04.2014 / 17:22
1
answer

Perl: Find a line in a txt by combining typed words?

Good afternoon, I have a notepad with several lines typed as for example: ★ Bayonet ★ Bayonet | Autotronic (Battle-Scarred) ★ Bayonet | Blue Steel (Minimal Wear) ★ Bayonet | Case Hardened (Battle-Scarred) ★ Bayonet | Case Hardened (Factory...
asked on 22.05.2017 / 21:38
4
answers

Python - NIM Game

Statement You should write a program in the Python language, version 3, which will allow a "victim" to play the NIM against the computer. The computer, of course, should follow the winning strategy described above. Let n be the starting...
asked on 15.02.2017 / 01:51
1
answer

What is a cellular automaton?

What is the cellular automaton? What kind of problem can you solve? Is this equivalent to Turing machines ?     
asked on 28.07.2017 / 16:06
1
answer

How do I convert formdata to json?

I have the following code: var form = new FormData(); form.append('user',$("#user").val()); form.append('password',$("#password").val()); var data = JSON.stringify($(form).serialize()); but the var 'date' is getting null, look at the exampl...
asked on 16.05.2017 / 15:56
1
answer

Working with Enums of type CHAR, using C # and Entity Framework

I would like to know how to map my entity that uses an Enum of type char through the Entity Framework, using FluentApi. I have the following Enum: public enum Zona { Norte = 'N', Sul = 'S' } And my Entity: public class L...
asked on 09.06.2017 / 15:31
3
answers

Validate field name - Jquery

I would like to know how do I validate a field name, to accept:    Letters (Uppercase and Lowercase)    Numbers    Spaces    Maximum 30 characters    There can be no double space    There can be no space at the beginning and at the end...
asked on 05.04.2017 / 02:08
1
answer

How to adjust the print of an Html in two columns?

Dear colleagues, I'm developing a PHP program with zend Framework2. In this program I have to generate a stylized PDF containing the header, body and footer (I'm using DOMPDF). The basic structure of the three div's are already up and running...
asked on 14.03.2017 / 15:10
1
answer

Log with historical debug (IntelliTrace)

I have a WPF application and am looking for the best way to solve unhandled exceptions. Today, when an unexpected exception occurs, deal in event Application.DispatcherUnhandledException . There, I write the Exception.StackTrace...
asked on 08.02.2017 / 02:05
1
answer

Amazon Elastic Beanstalk + Django + Sentry returning raven.exceptions.InvalidGitRepository

I'm trying to deploy on AWS Elastic Beanstalk. My project has a structure where Django settings is in the settings folder: |projeto |--settings |----settings.py It contains the configuration as: RAVEN_CONFIG = { 'dsn': 'https://------...
asked on 02.05.2017 / 21:31