ReactJS / Javascript conditional statements
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
22:54
Vote count: 0 I am using arrow keys to move the circle object. Now I want to limit it to the height and witdth of the svg area. My conditional statements partially work as once the ball gets to any of the 'walls' it gets stuck and does not move anywhere. I understand why it does it but can't think o...
How can I store a varying sized array in MySQL?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
21:52
Vote count: 0 I am parsing data from a site and one of the XML categories can have multiple entries (or none at all). I want a column called "Expansions" and then to have any number of entries listed in there. How can I store something like this in an SQL (I'm using MySQL) database? Right now the be...
Hibernate criteria.list() returns duplicates
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
21:52
Vote count: 0 I know this kind of question has been asked thousands of times already, but I think I have a different problem. So, I have a class A, which has a collection of objects of class B and a getter for this collection: public class A { private String Id; private ArrayList<B> bees; public Arr...
Can't connect with my bluetooth device
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
21:52
Vote count: 0 I have been working on this for days, but can't fix the problem. This is what I've got right now -> Bluetooth handler protected BluetoothAdapter bluetoothAdapter; protected BluetoothServer btServer; protected BluetoothSocket btSocket; protected BluetoothDevice pairedBTDevice; protected...
Not allowed to use a inside a
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
20:52
Vote count: -1 I've been having troubles with my website (See this question here) so I put my website into Validator. As you can see, it came up with quite a few errors haha. I'm trying to fix the problem I'm having and I have a suspicion that it might be something to do with me having Div tags insi...
How to access divs that have been named linearly
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
20:51
Vote count: 0 How would access all the div's that have been linearly declared through jquery. Here I am trying to make loop through them using a variable 'l'. And it holds the class name. <html> <div class="t0"></div> <div class="t1"></div> <div class="t2></div> <div class="t3"></div> <div class="t4...
C++ Moving the cursor down a few pixels
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
20:51
Vote count: -3 Okay, So I'm trying to move the mouse down a few pixels using the mouse event. But I ahve no idea how to do it. I was thinkin about making a integer called pixelsdown = 5; then like mouse_event (move.mouse.down by pixelsdown) If you know what i mean xD asked 1 min agoSondre Bye Humber...
Google Drive Rest APi - how to increase per-user rate limit?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
19:33
Vote count: 0 i'm using Drive API, and i need to create permissions for a large amount of users, somthing around 50. after i'm sending the request to google, i'm getting a response json: "error creating permission: User Rate Limit Exceeded". as i saw at Google: https://developers.google.com/drive/v3...
Back button event in appery.io
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
19:33
Vote count: 0 I am working on a small mobile app in appery.io service. There are only two screens in the app. Initial is the login screen and after successful login is a screen for updating some details. I am testing through Appery.io tester app. The issue that i am facing is with the device back bu...
Top hits aggregation group by
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
19:33
Vote count: 0 I am using top_hits_aggregation to get my users last visited document. I want to group by the results of top_hits_aggregation. Sample Rows Retu ed { "lastvisited_users": { "buckets": [ { "top_user_hits": { "hits": { "hits": [ { _source: {"c": "s"}}, { _source: {"c": "s,b"}}, { _source:...
VB.Net - RichTextBox Selecting is not always working
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
18:16
Vote count: 0 I'm trying to select/highlight certain parts of my RTB-Lines. Splitted by ":" i want to have both parts to have each their own selectioncolor. This is what my RTB-Text looks like: Key1:Value1Key2:Value2Key3:Value3Key4:Value4Key5:Value5... This is my code so far: For i As Integer = 0 To...
mcrypt warning : key of size 22 not supported by this algorithm. only key of size 16,24 or 32 supported
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
18:16
Vote count: 0 I am trying to encrypt a password using mcrypt_encrypt(). It shows a wa ing mcrypt wa ing : key of size 22 not supported by this algorithm. only key of size 16,24 or 32 supported. It is working on localhost. But when goes to online is shows a wa ing error. My code to encrypt is $text="...
Android studio geolocation android app
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
18:15
Vote count: 0 I have a assignment for university, I have started it and have made some good progress but, now I have come to a standstill and [don't] know what to do. I will attach the assignment specs as a image1 and I will also add what code I have at the moment. My code so far: ( Thank you for he...
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
16:50
Vote count: 0 I am using android studio and in my project i want to show data in listView fetched from database but this error is impossible to understand for me. i have searched so many tutorials books but i am unable to solve this please help me here is my fragment code public class MessagesFragme...
If else statement inside another if else
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
16:50
Vote count: 0 I need to create a program which asks the user to enter two marks, then i have a code which adds them together to find the avarage. So the question is how do I create an if statement that tells the user the minimum I should have get for both of the marks is 30% so even if I've got more...
C++ const-correctness: Should non-const methods be called on const object?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
16:50
Vote count: 0 I have a class Stack three methods void append_item(int i), void pop_item(), and Result do_computation() const which retu s something I'm interested in. It is guaranteed that if I call stack.append_item(1); Result result = stack.do_computation(); stack.pop_item(); on a Stack object it ...
Installing apk on a rooted device
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
15:42
Vote count: 0 I use about 100 devices for testing. Believe me, I can't use any other solution. What I need from you guys is a way to install updated APK's on these devices. The only way I found is to root the devices, which I did, and install the updated APK. My problem is that I didn't find how to ...
Foreach loop with pointer
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
15:42
Vote count: 0 I have this constructor class Vertex { Vertex(); ~Vertex(); Edge* adjancies; }; I wanted there to be array of adjancies, but it couldn't build. So I've created a pointer (Edge is my created class too). And I have this piece of code with foreach loop that must iterate on all adjancies, ...
Js: pass button id to the same page
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
15:42
Vote count: 0 <script type="text/javascript"> $(document).ready(function(){ $(".Categories").click(function(){ var catId=$(this).attr('id'); catId=String(catId); jQuery.ajax({ url:"index.php", data:{catId}, type:"POST", success: function(data){ $("#categoryField").html(data); } }); }); }); </script>...
java - spring validtion - disbale other validations on a field when first validation fails
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
14:42
Vote count: 0 I'm working on a java spring mvc application. I have a model and I set two validation a otation on top of a field. Here is a code sample: public class MyModel{ @NotBlank(message = "This field can not be blank") @Size(max = 20, message = "Maximum size is 20") private String name; .... }...