All Questions

3
answers

how to do update with column with single quotes sqlserver

I need to update in a column that has a lot of single quotation marks in the field, it has been inserted content with ckeditor so it has several tags like <span style="FONT-SIZE: 12pt; FONT-FAMILY: &quot;Times New Roman&quot;,&q...
asked on 04.11.2015 / 02:59
1
answer

How to simplify the code with ForEach's List?

How to use ForEach() of List in the implementation below using System.Collections.Generic; public class Program { public static void Main() { List<Pessoa> pessoas = new List<Pessoa>(); pess...
asked on 17.10.2015 / 01:01
2
answers

PHP Ordering

I have a PHP code that pulls an XML and plays on the screen however I would like it to run in random order and not the order that is in XML. Is this possible? Code that I'm using. PHP $xml = simplexml_load_file('produtos.xml'); foreac...
asked on 02.10.2015 / 16:06
1
answer

PHP + Google Geocode API

Follow the method code: function GetGeoCode($address) { $geo= array(); $geocode = file_get_html('http://maps.google.com/maps/api/geocode/json?address=' . $address . '&sensor=false'); $output = json_decode($geocode); echo '...
asked on 01.11.2015 / 06:34
1
answer

Getting the features of your Android device

I'm a beginner in Android development with the SDK platform and would like to know how to get the features of the user's device. Ex: IMEI, Android version, device model, etc.     
asked on 03.10.2015 / 07:27
1
answer

Error in using ViewBag in DropDownListFor ASP NET MVC

I have a DropDown that lists the categories of my system, plus when I submit the form without choosing a category, it gives a server error saying that the value can not be null. I put a validation with the ValidationMessageFor, but anyway it doe...
asked on 26.09.2015 / 03:18
1
answer

numpy.diagonal returning read-only copy even in version 1.10

I'm doing a program in Python where I need to change the diagonal values of an array. The following code snippet should be sufficient to understand the general idea (it changes to% w_ of% the value in the first position of the main diagonal of t...
asked on 28.10.2015 / 20:17
1
answer

In hibernate, whenever I change the Entity configuration, do I have to drop the table in the database?

Example: I have the Person class below: @Entity public class Pessoa { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long idPessoa; private String nome; //getters e setters } Hibernate, by default, pe...
asked on 08.08.2015 / 15:41
1
answer

How to publish an MVC 5 site?

I made a hosting subscription to Godaddy and I am doubtful to publish the project. Currently in the root directory of the site contains only one HTML page: index.html, as we can see below. index.html : DoubtbeginswhenIstartpostingthesite...
asked on 25.10.2015 / 17:20
1
answer

In Spring MVC, how to send information to the view (.jsp) without using ModelAndView?

I'm developing a web application in Spring MVC. I have a method that returns a list (java.util.List) and needs to pass it to the view (.jsp), however without updating the page. I would like to know some other way to pass the Java informati...
asked on 25.09.2015 / 18:48