Cannot get a proper JSON using rest template exchange()
Vote count: 0 The problem lies here: ResponseEntity> result = restTemplate.exchange(uri, HttpMethod.GET, null, new ParameterizedTypeReference>(){}, params); I get my result, it is all good but I have to use @JsonIgnore.. a otation on a Mail class because it ca ot map attachment list of the Attachmen...
How to call MainActivity method
Vote count: 0 I'm trying to call method share() from a fragment. share() is in MainActivity.java Button shareButton = new Button(getActivity()); shareButton.setOnClickListener(new View.onClickListener() { @Override public void onClick(View v) { MainActivity ma = new MainActivity(); ma.share(v); //Do...
Cyclic Dependency when using RelationshipEntity
Vote count: 0 Let's say, i have an User and a Product. The user should be able to rate products and a rating can have a lot of properties like for example a number of stars from 1 to 5. I'd like to have the Product and the User in different Maven modules. However, Product should know its Owner, so t...
Regional Settings Override in .NET Framework
Vote count: 0 I am currently stuck with a Number formatting issue and I really don't know how to solve it. I use a function from the Support assembly : 'StringToFormat looks like "123.456789" 'FormatInfo looks like "0.000" (must display three decimals) Support.Format(StringToFormat, FormatInfo) It w...
implicitly wait issue in switching frame or window
Vote count: 0 i got one finding that if we use driver.manage().timeouts().implicitlyWait(40L, TimeUnit.SECONDS), it works fine when to find and element, can take minimum 0 second to maximum 40 seconds. but in case of switching window or frame it takes total maximum 40 seconds , means it acts as Thre...
Laravel Maatwebsite/Laravel-Excel
Vote count: 0 My exported excell file can't be open in excell, it because the file have a newline in first line, but I was search all file which responsible for this prosess, like controller and parent controller, but I am not found the newline.. something has idea? asked 2 mins agoRifas Filqadar Le...
Filtering tables with Javascript [PHP/SQL]
Vote count: 0 So I have an SQL query which pulls all data from a mysql table, called example: function get_example($co ){ $statement = "SELECT * FROM `example`"; if ($result = $co ->query($statement)) { $rows = array(); while($row = $result->fetch_array()){ $rows[] = $row; } retu $rows; } else { ret...
creating random size and position of rectangle
Vote count: 0 I'm trying to Add a method to create a random size and position rectangle and add it to the Python list created in my constructor, The colour of the rectangles are based on the rainbow colours ('red', 'orange' 'yellow' 'green', 'blue' and 'purple') any help would be great thanks ! My c...
PHP: remove partial string
Vote count: -1 I have a SQL: SELECT * FROM TABLE ORDER BY name ASC LIMIT 30 It has (or not) the LIMIT and/or ORDER clause (e.g. it can be simply SELECT * FROM TABLE ) I need to remove the (eventually) present LIMIT and gain, everytime, a simpler SELECT * FROM TABLE ORDER BY name from the first one a...
What is next for me?
Vote count: -2 I've been trying to lea python for a while. Actually I'm trying to lea it from here: http://tutorialspoint.com/python3/ Now I have three questions : 1. what should I try to lea (Now that I have completed that tutorial)? 2. Actually, I now nothing about security, so, where can I lea to...
getting files from html to servlet in gae
Vote count: 0 <form action="direct" method="post" enctype="multipart/form-data"> <input type="file" name="myFile"> <input type="submit" value="Upload file"> </form> File t=new File(req.getParameter("myFile")); this is my form code and need the myFile in servlet im using google app engine asked 23 se...
Adding new dependency to package.json in node causing error
Vote count: 0 I am having serever.js file which contains the below code. I am having another package.json file which have dependencies. I later added underscore dependency to the existing dependency. It's throwing error on require("socket.io")(http) as require(...) is not a function. When I run the ...
Using $this when not in object context model class
Vote count: 0 I have stated my bespoke MV, I have a simple Model + controller classes and I can't get the var in the model to be recognsed when called by a different function The controller class is class StaffController { protected $module = "staff"; public function __construct() { //include the st...
Enforcement of password policy
Vote count: 0 Many operating systems enforce certain constraints on passwords such as changing the password every n days etc. Some also enforce a policy such as "the new password must differ in at least n characters from your previous password(s)". My question is: how can you enforce such a policy w...