Hibernate unit test blocks on an insert statement
◷
تاریخ انتشار: 1395/2/15 | ساعت: 15:45
Vote count: 0 We are currently facing an issue with hibe ate unit testing. Using Hibe ate + JPA + Spring + junit + Maven + below is the persistence configuration: <persistence-unit name="localContainerEntityForTest"> <description>Spring JPA LocalContainerEntityManagerFactoryBean</description> <provi...
Disable specific dates based on selection in Angularjs date picker
◷
تاریخ انتشار: 1395/2/15 | ساعت: 15:45
Vote count: 0 I want disable same date based on selection without use max and min. For example I want to disable all mondays if select "One" all Sundays if select "Two". is it possible? some advice asked 4 mins agoSilvio Troia Let's block ads! (Why?)
How to calculate pixel per inch on a android device
◷
تاریخ انتشار: 1395/2/15 | ساعت: 14:43
Vote count: -1 I want to get pixel per inch in android . I got following links but it didn't complete my objective . getting the screen density programmatically in android? , Calculate PPI of Android Device , Android can i get the device dpi by ppi , etc . but these links didn't full fill my require...
.htpasswd create user without username
◷
تاریخ انتشار: 1395/2/15 | ساعت: 14:43
Vote count: 0 I am using .htpasswd to password protect certain directory on my server. I would like to ask how to create a user without use ame i.e. user has to enter only password when he see prompt in a browser. I tried something like: :$apr1$Gk/aaIhD$IZsklkWZCEL0u5Zhu8UGZ1 but no luck. However us...
I want to make a Textview with dropdown like this image in android. Please help me
◷
تاریخ انتشار: 1395/2/15 | ساعت: 14:43
I want to make a button with dropdown like this image in android. Please help me .
termios flag settings - extra junk characters are adding while writing and reading from the serial port
◷
تاریخ انتشار: 1395/2/15 | ساعت: 13:30
Vote count: 0 Can anyone tell me what are the flags need to be set to avoid the junk characters in the serial port. I am using the ttyS1 termios with default setting. Speed = B230400, code shown below tty_fd = open(DEVICE, O_RDWR | O_NDELAY); if(tty_fd < 0) { perror(DEVICE); exit(-1); } printf("Init...
Why do we need RD/WR when we have DT/R?
◷
تاریخ انتشار: 1395/2/15 | ساعت: 13:30
Vote count: 0 WR : The write line indicates that 8086 is outputting data to a memory/IO device. RD : Whenever Read signal is 0, the data bus is receptive to data from memory/IO device. DT/R : The Data transmit/receive shows that microprocessor data bus is transmitting or receiving data. This questio...
I am getting prompted for FTP credentials when trying to install a plugin or theme in wordpress
◷
تاریخ انتشار: 1395/2/15 | ساعت: 13:30
Vote count: 0 I am getting prompted for FTP credentials when trying to install a plugin or theme in word press. please solve anybody. asked 34 secs agoAnshu Pratap Yadav Let's block ads! (Why?)
How to get location details from latitude and longitude in googlemaps,?
◷
تاریخ انتشار: 1395/2/15 | ساعت: 12:24
Vote count: 0 HI all i integrated google map in my applications, i am getting lat and long of current location and try to get place mark from those lat and long but i get strange error in my code when i used geocode. -(void)viewDidload { _locationManager = [[CLLocationManager alloc] init]; _location...
get data from return value of mandrillapp array
◷
تاریخ انتشار: 1395/2/15 | ساعت: 12:24
Vote count: 0 Mandrill app retu this : [{"email":"steven@gmail.com","status":"sent","_id":"234we4fvba4a3e8517d7a9","reject_reason":null}] I need to get only the value of "status". How can I do it in PHP? asked 40 secs agopinkAngel Let's block ads! (Why?)
Odd Object Quirk - JavaScript - Beginner
◷
تاریخ انتشار: 1395/2/15 | ساعت: 12:24
Vote count: 0 I'm reading an article that says that {} is a valid JavaScript program. I tried it and it worked fine. Then I tried this and it worked: {name:'Lord Stark'} <--- the entire program (not assigning it to a variable or anything) But then I tried the following and it threw an error at the c...
Can't call method "header" on an undefined value at WWW/Mechanize.pm line 2566
◷
تاریخ انتشار: 1395/2/15 | ساعت: 11:21
Vote count: 0 I am just new to Perl, and just doing a testing using WWW::Mechanize module on Facebook, when I try to run the code below, it retu me an error Can't call method "header" on an undefined value at C:/Strawberry/perl/vendor/lib/WWW/Mechanize.pm line 2566. #!/usr/bin/perl -w use WWW::Mecha...
Which NIO ServerSocketChannel would be most fitting for my server?
◷
تاریخ انتشار: 1395/2/15 | ساعت: 11:21
Vote count: 0 I am currently in the process of creating a desktop server. This server is meant to receive packets from android phones through a third party application. The server must be able to quickly read and write packets to different SocketCha els and be able to support 1000+ co ections/packet...
Alternate way to get MYSQL data from memcached
◷
تاریخ انتشار: 1395/2/15 | ساعت: 11:21
Vote count: 0 This is related to Not able to retrieve the column names correctly with memcached. I have a scala code to cache the MYSQL data using memcached. Below is the code. import java.sql.DriverManager import scala.collection.mutable.ArrayBuffer import java.sql.ResultSet import java.security.Me...
Return a value from a nested success function in angularjs
◷
تاریخ انتشار: 1395/2/15 | ساعت: 10:12
Vote count: 0 I'm trying to retu a value from a nested function on my codes but it retu me undefined whenever i tried to display it. This is my codes: var calculateAlbum = function (albumPath,albumName) { retu photoService.getPhotos(albumPath,albumName) .success(function (data){ var status = data.my...
Android login website with Jsoup
◷
تاریخ انتشار: 1395/2/15 | ساعت: 10:12
Vote count: 0 I go to: https://www.cgv.vn/vn/theaters/showtimes/ and get urlLogin. After, I'm trying to log into urlLogin; Document doc = Jsoup.co ect("https://www.cgv.vn/vn/theaters/showtimes/").get(); Element element = doc.getElementById("top_register"); //Get url login String urlLogin = element.c...
charts js change line chart axis font size/color and background lines
◷
تاریخ انتشار: 1395/2/15 | ساعت: 10:12
Vote count: 0 I've been trying to change the colour of the background lines, and the axis font-size and color, to no avail. I'm currently using the latest version of charts.js, and can't seem to figure out how to make the changes. In the older version of charts, I could change them, but that code no...
VBA If And multiple conditions
◷
تاریخ انتشار: 1395/2/15 | ساعت: 9:12
Vote count: 0 Could anyone help troubleshoot my coding? The If statement requires three separate conditions = true or it checks the next if statement and loop back for the all cells the array. There is no error or output so its difficult to determine the issue, plus I'm very new to VBA so there is p...
UserService.IsActive Impersonation Redirect Loop
◷
تاریخ انتشار: 1395/2/15 | ساعت: 9:12
Vote count: 0 I have implemented IsActive inside my custom user service and one of the steps that I do in that method is: check if the user has any roles for the requested client. If user has no roles IsActive will retu false. This works well for regular scenarios. However once I implemented imperso...
Python/Pandas subtracting numbers in a column
◷
تاریخ انتشار: 1395/2/15 | ساعت: 9:12
Vote count: 0 Sorry if this is a dumb question, I have a pandas data frame that looks kind of like this: Col1 Col2 0 217 287 130 I'm trying to subtract the two numbers inside column 2 asked 52 secs agobansire Let's block ads! (Why?)