Load only IDs of ManyToOne relationship
◷
تاریخ انتشار: 1395/7/16 | ساعت: 8:24
Vote count: 0 I am having performance issues using hibe ate. I have the following: @Data @Entity @Table(name=""Order_product"") public class OrderProduct { @Id @SequenceGenerator(name="Order_product_id_seq", sequenceName="Order_product_id_seq", allocationSize=1) @GeneratedValue(strategy = Generation...
Web API CreatedAtRoute() throws 500 error, Created() does not
◷
تاریخ انتشار: 1395/7/16 | ساعت: 8:23
Vote count: 0 I have some Web API server methods that include the following POST action. Without specifying the [Route()] directive, the response completes fine with CreatedAtRoute(). When setting the directive (with and without the tilde), then that method fails. Changing it to Created() makes it s...
generate different password for each usr in list
◷
تاریخ انتشار: 1395/7/15 | ساعت: 9:32
Vote count: 0 i use the following bash script to change password for users in list pass=`cat /dev/urandom | tr -dc 'a-zA-Z0-9-!@#$%^&*()+{}|:<>?=' | fold -w 12 | grep -i '[!@#$%^&*()_+{}|:<>?=]' | head -n 1` for usr in `cat usrs.lst` do printf "Use ame is $usr and password is $passn" done the proble...
How do I set returned Firebase data to a $scope variable in AngularJS?
◷
تاریخ انتشار: 1395/7/15 | ساعت: 9:32
Vote count: 0 What I am trying to do: I want to output all of the books in the book node on my home page. What I need is an array of objects that contain all of the books in the book node so that I can loop through them using the ng-repeat directive in AngularJs. In the code below, when I console lo...
Kartik editable fails to update the value on the gridview
◷
تاریخ انتشار: 1395/7/15 | ساعت: 9:31
Vote count: 0 Am using kartik editable grid column , the data is updated successifully on the server database but on the grid view its not. The editable column doesnt refresh the value on the grid view but when i refresh the page manually the value is there This is my code: if (Yii::$app->request->p...
Align two inline-block elements inside table-cell to opposite sides
◷
تاریخ انتشار: 1395/7/14 | ساعت: 22:41
Vote count: 0 I am wanting to left align one div and right align another div inside of a table cell. I've tried to justify the text but it doesn't seem to be working with my setup. Looking for a pure css solution. Also I also am not able to use floats. The demo below will show my current layout. The...
sass array with @for?
◷
تاریخ انتشار: 1395/7/14 | ساعت: 22:40
Vote count: 0 I would like make a array with a loop in sass, but i don't know is possible. There is my expected output: $light: #fff; $gray: ( darken($light, 1%), darken($light, 2%), darken($light, 3%), darken($light, 4%), darken($light, 5%), darken($light, 6%), darken($light, 7%), darken($light, 8%...
Python conditional syntax error
◷
تاریخ انتشار: 1395/7/14 | ساعت: 22:40
Vote count: 0 I'm pretty new to python and currently I am working on an income tax calculator and the first step I want the user to do is press 1 if they are married and then press 2 if they are single. What do I need to do to fix this code ? My IDE says there is a syntax error on line 3 "if (answer...
[Robotium]How to scroll and click on item in GridVIew?
◷
تاریخ انتشار: 1395/7/14 | ساعت: 17:10
Vote count: 0 I am working on test case to my application, there is activity with tabs each tab has gridview in each gridView has some checkboxs like this image now I'm trying to scroll in gridView in first tab and select checkBox and then click on second tab and scroll and select checkBox here is m...
JavaScript: Check if window.location.href has been changed
◷
تاریخ انتشار: 1395/7/14 | ساعت: 17:10
Vote count: 0 I have following code to show a loading panel after e.g. clicking a button and making an Ajax call: $(document).on("click", function (e) { window.LoadingPanel.Show(); }); After the Ajax call following code makes sure the loading panel disappears again: $(document).ajaxComplete(function...
Unable to Start t-sql debugging
◷
تاریخ انتشار: 1395/7/14 | ساعت: 17:10
Vote count: 0 I am using remote desktop, logging directly onto the box that houses the sql instance, and trying to use debugging, however getting the dreaded unable to start t-sql debugging... error message. My colleague can take the same steps, same box, and using the same sql account and has no is...
fetch data from the web services to stored procedure in SQL SERVER 2014
◷
تاریخ انتشار: 1395/7/13 | ساعت: 1:01
Vote count: 0 I have been assigned a task to fetch the tableset and dataset from the web services using the stored procedure in SQL SERVER 2014. Can someone help me with this case. I just wanted to know the syntax if the stored procedure. I am not able to understand how would I fetch data from the w...
Getting Simulator screen only half in IOS
◷
تاریخ انتشار: 1395/7/13 | ساعت: 1:01
Vote count: 0 Hey guys getting my simulator with half screen if you find a solution please tell meenter image description here asked 37 secs agoVikram Kagde Let's block ads! (Why?)
sneding 3 floats variable with serial software arduino
◷
تاریخ انتشار: 1395/7/13 | ساعت: 1:01
Vote count: 0 i'm trying to send position of my robot through wireless module with arduino using Software Serial library i found that it can only send 1 byte at time i can't send more than number 255 and i need to send floats till 40000 please help how i can do that here is an example of my transmit...
I can't get my jquery to work in my wordpress site
◷
تاریخ انتشار: 1395/7/11 | ساعت: 21:09
Vote count: 0 I was told that jquery was automagically included in wordpress from the get go, but I went ahead and included jquery in my functions.php. I'm trying to do a simple script that scrolls down to a div#id when a link is clicked. I created this script: jQuery(document).ready(function($) { j...
Append streaming dataset to batch dataset in Spark
◷
تاریخ انتشار: 1395/7/11 | ساعت: 21:09
Vote count: 0 We have the use case in Spark where we want to load historical data from our database to Spark and keep on adding new streaming data to Spark, then we can do analysis on the whole up-to-date dataset. As far as I know, neither Spark SQL nor Spark Streaming can combine the historical dat...
angular $resource GET request not working
◷
تاریخ انتشار: 1395/7/11 | ساعت: 21:08
Vote count: 0 I made a RestAPI and I have the following in my node.js... router.route('/accounts') .get(function(req, res) { console.log("getted"); }); It is prefixed with api... app.use('/api', router); I tested it on PostMan to see if I can make a GET request and it worked using the following... h...
How to show vehicle moving direction in Gmap.Net
◷
تاریخ انتشار: 1395/7/10 | ساعت: 5:37
Vote count: 0 I am using Gmap.net API for a small vehicle tracking project. This project is in windows form c#. I am getting info from device like: Latitude, Longitude, Speed, Heading and some other information as well. The Heading information is in degree (0~359), How i can show that the vehicle is...
Bootstrap col max height with image
◷
تاریخ انتشار: 1395/7/10 | ساعت: 5:37
Vote count: 0 i try to make a row on bootstrap, with 3 images : But i dont know how.. i want to have 2 col on the row, and the second col with image B and image C must have the same size that the first col determined by the size of the image A. What append when i try to do this is the row take the s...
Traditional drop down in ionic?
◷
تاریخ انتشار: 1395/7/10 | ساعت: 5:37
Vote count: 0 In ionic android application, Is it possible to show a select as traditional select ? My application showing a select in a pop up window, But I want to show traditional select. asked 49 secs agoNakul Let's block ads! (Why?)