Cannot get a proper JSON using rest template exchange()
◷
تاریخ انتشار: 1395/2/1 | ساعت: 21:17
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 20:08
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 20:08
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...
“The UIApplicationDelegate in the iPhone App never called reply() ” - Xamarin
◷
تاریخ انتشار: 1395/2/1 | ساعت: 20:08
Vote count: 0 I am trying to build watch kit application and co ect it with my iOS app, using xamarin framework.In HandleWatchKitExtensionRequest I use MarketRequestHandler class in order to bring data from API and display it on watchkit. My Error is: "The UIApplicationDelegate in the iPhone App nev...
How to insert to DB using only auto-generated values, and return an ID?
◷
تاریخ انتشار: 1395/2/1 | ساعت: 18:40
Vote count: 0 I use spring framework, and would like to insert a row to DB in order to have its ID, which is needed for further processing. Inserting query is given below, it's a simple query, without parameters. But it's even worse, cause how to construct working call using executeAndRetu Key from ...
Regional Settings Override in .NET Framework
◷
تاریخ انتشار: 1395/2/1 | ساعت: 18:40
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 18:40
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 17:30
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...
i have already save my Image at this coding but it not get in gridview
◷
تاریخ انتشار: 1395/2/1 | ساعت: 17:30
Vote count: 0 this is for inserting in database but it is not showing the image in gridview this is for get image private void btnImage_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "c:"; openFileDialog1.Filter = "All fi...
Filtering tables with Javascript [PHP/SQL]
◷
تاریخ انتشار: 1395/2/1 | ساعت: 17:30
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 16:02
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 16:02
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...
Swift: canPerformAction Stop In Tableview using textview on Custom Cell
◷
تاریخ انتشار: 1395/2/1 | ساعت: 16:02
Vote count: 0 I have One Tableview and Using custom Cell and in this Cell i have one TextView. The Problem is When i long press on this TextView Then automatically Show canPerformAction I have To Stop this because i have use my custom Popup (Copy and Delete) using longPress Else if This canPerformAc...
how to fetch GCM token again when error on AppDelegate without closing app
◷
تاریخ انتشار: 1395/2/1 | ساعت: 14:58
Vote count: 0 I've been testing my app to register my device to GCM not only on load of my app but whenever i transfer to every part of my app if the inte et co ection stabilizes. I've been looking code on how to fetch registration token not only on app delegate. Please help me on this. asked 58 sec...
What is next for me?
◷
تاریخ انتشار: 1395/2/1 | ساعت: 14:58
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 14:58
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 13:49
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
◷
تاریخ انتشار: 1395/2/1 | ساعت: 13:49
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...
Is it safe to encode regex input by user for use with File::Find::Rule?
◷
تاریخ انتشار: 1395/2/1 | ساعت: 13:49
Vote count: 0 I am working on an application that takes a regex as input from the user at the command line, and then applies that regex to find certain files under the current directory. The application support UTF-8 input, and should be able to find UTF-8 encoded file names. Here is an example: use...
Enforcement of password policy
◷
تاریخ انتشار: 1395/2/1 | ساعت: 12:43
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...