iOS testing with XCTest and separate file
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
16:56
Vote count: 0 Currently, I write my testing in 1 file (default). Is it possible to have multiple files and test? - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This m...
Laravel Api for forgot password
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
15:41
Vote count: -1 I have an issue while creation of forgot password api in laravel 5.2 Please check the code below : public function forgotPass(){ try{ $statusCode = 200; $input = Input::all(); $response = array(); $rule = [ 'email' => ['required', 'email'], ]; $validator = Validator::make($input, $rul...
Unable to configure spring security in java
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
15:41
Vote count: 0 I am new in spring security and configuring this following these 1 2 links- WebSecurityConfigurerAdapter Implementaion- @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private DataSource dataSource; @Autowired private Cust...
how sort DropDownList items alphabetically asp.net
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
15:41
Vote count: 0 I am quite new In asp.net. Today I want to sort my drop down list. This is my controller of editing: public ActionResult Edit(int? id) { if (id == null) { retu new HttpStatusCodeResult(HttpStatusCode.BadRequest); } User user = db.Users.Find(id); if (user == null) { retu HttpNotFound();...
Mathematical power operations in Android
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
14:19
Vote count: 0 Please help!! A client work is asking us to perform mathematical power function. How to perform mathematical power function in android studio? asked 1 min agouser3520244 Let's block ads! (Why?)
Android canvas:drawTextOnPath() behave differently on different devices
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
14:19
Vote count: 0 I have a requirement create circular menu with 8 items. For that i have created a custom view like below. public class CircleTextView extends View implements View.OnClickListener { private String BookName = null; private int BookIndex; private Context context; public CircleTextView(Con...
How do i change the color of Dropdown menu on selecting an entry?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
14:19
Vote count: 0 This is a sample code: <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> Now when i select an option, i want the minimized dropdown menu rectangle to change it's background co...
isomorphic-fetch (npm) failed in isomorphic, only return "pending" promise
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
13:16
Vote count: 0 I'm trying to tu my React app into isomorphic app, everything seems fine, and very strange thing happen. import fetch from 'isomorphic-fetch' import request from 'axios'; The following case failed because the isomorphic-fetch retu only "pending" promised export function fetchPosts() { ...
How to fix the the soft button overlapping the app in windows phone?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
13:16
Vote count: 0 The bottom part of the app is being covered by the soft buttons in Nokia Lumia 640 XL and similar phones. I am developing an app in IBM worklight, backbone JS and is a Hybrid platform. asked 33 secs agoAnand C J Let's block ads! (Why?)
How to read JSON file with multiple JSON objects in Python?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
13:16
Vote count: 0 So here is the standard way to read in a JSON file in python import json from pprint import pprint with open('ig001.json') as data_file: data = json.load(data_file) pprint(data) However, my JSON file that I want to read has multiple JSON objects in it. So it looks something like: [{},{...
Error when install ruby-2.3.0 with rvm
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
11:44
Vote count: 0 I am trying to install ruby-2.3.0 with rvm, but it has an error Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.10/x86_64/ruby-2.3.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Ch...
Digit span test (Memory Game) VB .Net [on hold]
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
11:44
Vote count: 0 Im creating a memory game in vb .net its called digit span test. the game will show to random numbers and hide then it will ask what number it shows. Im a begi er in VB net so i dont know how to start. asked 56 secs agoChristian Larvin Melgar Let's block ads! (Why?)
Image size difference while saving and sending in android
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
11:44
Vote count: 0 My image in activity1 getting saved in inte al storage with size of 5.8kb and I send the same image from same activity using extra stream of intent and it becomes 15kb at receiver's end. What is the logic behind this? asked 53 secs agoAalap Patel Let's block ads! (Why?)
mysqldump, how could I backup all the datatabse with where condition and date range
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
10:41
Vote count: 0 I know I can back up all the data of a database with mysqldump -uroot -pdbpasswd dbname > db.sql; And I can back up a specific table with where condition mysqldump -uroot -pdbpasswd dbname table_bame --where="date_column BETWEEN '2012-07-01 00:00:00' and '2012-12-01 00:00:00'" But how ...
PHP - how do I get top ten records from database by highest to lowest
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
10:41
Vote count: 0 I've searched everywhere including Stackoverflow for my answer and couldn't find the exact information's I was looking for. Like I've tried those answer's in other sites and some answer's here at StackOverFlow and it didn't work. The problem is that I am working on a project where disp...
Why the ZMQ_RCVHWM option of ZeroMQ is ineffective?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
10:41
Vote count: 0 There is a endpoint which is Dealer. And a endpoint which is Router. The Dealer is co ect to Router by TCP protocol. I set the ZMQ_SNDHWM and ZMQ_RCVHWM to 1 all of them. Note that the Dealer is always send to Router. but the Router is not recv. The question is: When the Router is not ...
Transform and Rotate in Scenekit
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
9:25
Vote count: 0 I have a SCN Node that I have Transformed to a desired Rotation and Angle. I now what to rotate it infinitely on it's new x-axis, but I can't seem to get it to rotate 360 degrees, it just shifts slighty. let spin = CABasicAnimation(keyPath: "rotation") spin.fromValue = NSValue(SCNVecto...
Increase the efficiency of the Sqldf operator in R by alternative ways
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
9:25
Vote count: 0 I'm dealing with a dataset with has data at a day level (one row for one day) - with data for a product (that is being advertised) on whether it is being seen by the user or if an action is being taken. Before ru ing my analysis on this data set in R - i'm want to filter the data in su...
Using pyparsing Forward() with multiple rules to find palindromic sequence
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
9:25
Vote count: 0 I am trying to find palindromic sequences within DNA by using recursion. I am doing this because it is impossible to know the exact length of a palindromic sequence within DNA. I have worked through the problem in my head and on paper, but the code below still does not come up with the...
How do copy formulas that contain defined names and unlock the cell refrence in excel 2016?
◷
تاریخ انتشار:
1395/1/20
|
ساعت:
8:25
Vote count: 0 If I have a formula =sumif(dates,A1,column_1) =sumif(dates,A1,column_2) ----------------------------- =sumif(dates,A1,column_30) Normally if the ranges were not defined then I would be able to change column_# into something like =sumif(dates,A1,C$1:C$10) where C is not locked, so when ...