All Questions

2
answers

Copy everything before the first blank line

I have a file with several blocks of text separated by a blank line. Ex.: block1 block1 block2 block3 block3 I need a solution with sed, awk or perl that finds the first blank line and redirects the previous block to another file a...
asked on 11.12.2015 / 19:34
1
answer

Recursive function that simulates a number raised to a power

How to simulate raising a number to a power using recursion (and Python)? '     
asked on 06.01.2015 / 17:54
1
answer

When to use magic method __contructor or set and get

My question is regarding builder, for example, I have a class with name, age. the correct one is to use __constructor to pass values to them or use set and get?     
asked on 28.12.2014 / 04:10
1
answer

How to get the height of the div, lease it to the multiple of 24 closest and apply the result in the div's own style?

I need a script that does just that: take the height of div , lease it to the nearest multiple of 24, and apply the result to style="height" of div itself. It needs to be in pure Javascript, not Jquery. Follow the struc...
asked on 06.09.2014 / 23:16
1
answer

Scraping with python

How to capture one or more sentences from a website with Python and / or regular expressions? I want everything that starts with <p>&#8220; e acabe com &#8221;</p> Example: <p>&#8220;frasefrasefrasefrasefr...
asked on 26.01.2015 / 23:47
1
answer

Create extension to manipulate DOM of other pages

I would like to know if you have any way to manipulate the DOM of another page with my extension. Ex: I open the popup of the extension and there is a button, and in this button I call a JavaScript function: var n1 = document.getElementById...
asked on 20.11.2015 / 03:03
2
answers

How to use CSS style in application?

I created an app for Android using App Framework from Intel and did the build with PhoneGap. It has the visual style of the framework , but when I run it on the Android device, it uses the native, black look. How do I reverse this?  ...
asked on 28.08.2014 / 15:47
2
answers

Form data does not send to email

I made a small form for sending e-mail. But when I test the send, nothing arrives in the destination email. As I do not have much experience in this part I could not identify the error, since when I send it does not give any. Here's my HTML: &...
asked on 11.02.2015 / 21:13
1
answer

How to leave a table of checkboxes (Table of access levels) responsive?

I do not know if anyone has ever come across this kind of structure. But it's the following, I need to make this table of the image below responsive. Has anyone seen anything, do you know how, or do you have any idea how to implement it, or some...
asked on 01.10.2014 / 22:29
2
answers

Should I declare Get's and Set's in the UML?

I have a question, whenever I create a UML class I have to declare get and set to all classes that use them or I can leave without, as if it were standard and everyone knew that should they implement them even though they are not i...
asked on 28.12.2014 / 03:33