ReactJS / Javascript conditional statements
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?
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
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
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
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
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
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?
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
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
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
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...
Android studio geolocation android app
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...
If else statement inside another if else
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...
Installing apk on a rooted device
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
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
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>...