Autocomplete query using Firebase. (iOS)
Vote count: 0 I'm trying to query a list of food items from my Firebase database. The app has a UITextfield where the user can type the search word for the food item. I have already implemented basic code for this to work using the below code. NSString *searchString = [sender.text lowercaseString]; ...
Ajax request in Web Browser Control working incorectly
Vote count: 0 I have a MVC web site with a httpGet function that do this [HttpGet] public JsonResult doSomething() { if(Session[SessionName.count] == null) Session[SessionName.count] = 0; Session[SessionName.count] += 1; retu Json(Session[SessionName.count], JsonRequestBehavior.AllowGet); } in the s...
have an error creating a table in mysql
Vote count: 0 I Installed to databse.. got the fllowing error.. Dont created: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'timestamp(10),KEY` vid (vid)' at line 4 As you see I had errors to start with and used ...
SubmitChanges() throws internal server error
Vote count: 0 public void RejectOrder(string rejectReason, int selectedNewOrderId) { SFNewOrder sfNewOrder = mdbDataContext.SFNewOrders.FirstOrDefault(x => x.ID == selectedNewOrderId && !x.IsRejected); if (sfNewOrder != null) { sfNewOrder.IsRejected = true; } SFReject sfReject = new SFReject(); sfRe...
JavaScript transform translate issue
Vote count: 0 Curious CSS transform behavior in chrome (webkit browser) using JavaScript... var obj = document.getElementById('foooo'); // obj.style.transform == ""; obj.style.transform = "rotate(45deg)"; // works (another 2d transform) obj.style.transform = "translate(-50px,0px)"; // fails as "" (b...
how to compare between two pair rdd
Vote count: 0 i have two pair RDDs r1 and r2 containing tuples defined as Tuple2<Integer,String[]> what i want to do is to find tuples from both RDDs that have the same key than compare every single elements of the value part (String []) from r1 with other elements from r2, than retu the index of el...
Iron Router - Routers no longer working (v1.3)
Vote count: 0 I thought I had iron router nailed but for some reason I'm ru ing into issues with it not displaying additional views beyond the root default template - and it used to work fine. Basically I have a default layout template for the main view. Then I have a dynamic route that essentially ...
How to post tweets from a Visual Basic .net application
Vote count: 0 I'm developing a BlackJack game for Windows and I would like to add a basic buton (Or the twitter logo) that makes the function to post a tweet on the user's account. Could anyone please help me with some example code I could copy-paste since I'm not good at programming. Thanks. asked ...
Hello I need help to making a .com website for free
Vote count: 0 So for example ****Wix*** registers domains for a price and they host the domains. How can I host own domain on my home computer for free? Thank you, -Nic asked 16 secs agoGame Snapp This entry passed through the Full-Text RSS service - if this is your content and you're reading it on ...
Mongodb on samba shared directory
Vote count: 0 I'm trying to setup a mongodb database where the folder it uses for the data is a samba shared directory. But mongodb refuses to start, I get: [initandlisten] Assertion: 28595:1: Operation not permitted [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, termi...
Selenium and Java trying to find a tag inside a table cell
Vote count: 0 I'm using all the standard ways to parse a table. WebElement table = driver.findElement(By.name("TableName")); List<WebElement> tableRows = table.findElements(By.xpath("tbody/tr")); List<WebElement> td_collection = trElement.findElements(By.tagName("td")); WebElement dropDownElement = ...
Swift BLE Connection Status
Vote count: 0 Is there a way to create an alert right when a BLE device co ects/disco ects via swift? I have the following code: func isCo ectedToPC(block:(isCo ected: Bool) -> Void) -> Void { // Sends a Ping request to the PC. The PC has 2 seconds to respond witha Pong, otherwise we will consider u...
The requested URL /admin/login/ was not found on this server
Vote count: 0 Error while trying to redirect HTML link from "ServerA-Apache" to "ServerB-Django app using Nginx and gunico ". Server A-Apache html snipped: href="http://www.DOMAIN.com/contacts">Django Admin vim /etc/httpd/conf.d/httpd-vhosts.conf <VirtualHost *:80> ServerName contacts.DOMAIN.com Pro...
Permutations in javascript return statement
Vote count: 0 Probably a really basic question but I can't seem to figure out what is going on here. I am using the following function to find permutations. It works as I expect but when I look at what is being retu ed I am getting confused. When I just run the function getPermutations('abc'), it re...
Get URL Variable from page displaying contents
Vote count: 0 I will try to explain this the best I can. I am using JQuery to display the contents of an exte al site. If the page URL of the page I was on was http://example.com?id=50, I need to display the ID in the the contents of the exte al page I'm getting. Let's say this was the code on my ex...
Pairs x,y verify equation
Vote count: 0 I have to build a program which verifies all pairs of numbers from a list if are good for the equation: 3x^2 + 2*y^2 = 5. User enters a number n and then n numbers (all numbers are ascending and different numbers). I need to show all pairs of numbers (x,y) which verifies the equation a...