All Questions

2
answers

How to crop an image - HTML

I need to make an image within a div to have a width of 600px and a height of 300px without distorting the image. I have a notion about css3 and html5 and I'm working on the layout of a blog on the Blogger platform. I've...
asked on 27.06.2015 / 20:56
3
answers

How to run PHP in interactive mode?

How do I run php from the command line, without having to use a script as an argument. Example with script: > php index.php I already know how to execute a certain function or code like this: > php -r "echo 12346;" But is ther...
asked on 30.07.2015 / 17:21
1
answer

Replace with Fragment does not work correctly

I'm doing a simple example with fragments and what I need is that when I click the first button the replace button will pop up for Fragmen1 and when I click the second button Fragment2. When I start the application the fragment I left in...
asked on 12.08.2015 / 14:09
1
answer

Zoom with fingers in app

I was able to see that there is zoombutton and zoomcontrols in Android Studio but from what I have analyzed none zooms with your fingers. How can I zoom in with my fingers in an Android application?     
asked on 14.07.2015 / 11:38
1
answer

Model "Product" table for multiple types of different products

How to model the Product table of a database? This table should store the following information: id, product name, quantity, price, status (if it is in stock, if it will be returned) and information pertinent to each type of product: food (nat...
asked on 14.07.2015 / 14:11
2
answers

Where to call SaveChanges () when you have multiple repositories?

I'm developing an application with Entity Framework, with several repositories. Each repository encapsulates SaveChanges() of DbContext. When a business layer operation uses multiple repositories, and data changes, I need to call...
asked on 13.08.2015 / 13:08
3
answers

How to make a LIKE ignoring accent?

I need to make inquiries in a database of registered users. However, I need this search done by the user name, through LIKE , and this should ignore the UTF-8 encoding present in the names. What I want to say is this: When yo...
asked on 14.08.2015 / 15:04
2
answers

Extract .ZIP file with accent on name

I'm using the System.IO.Compression.ZipFile lib to unzip .zip files and I came across a major problem when trying to extract files that have accents in the name. If I try to extract with UTF-8 encoding : ZipFile.ExtractToDirectory...
asked on 21.07.2015 / 16:39
3
answers

How to create input masks in a TextField?

A few weeks ago I've been studying JavaFX as an alternative to Swing, but I've noticed that it does not have any kind of TextField that lets you put in input masks, just like we do for example in the% / p> I would like to know who devel...
asked on 24.07.2015 / 23:16
1
answer

What is behind the dynamic allocation function malloc ()?

What mechanisms does the malloc() function use in practice to manage dynamic memory allocation in a program?     
asked on 29.06.2015 / 20:41