instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have written a C code for getting the list of youtube videos for the url
"*http://gdata.youtube.com/feeds/api/standardfeeds/top_rated*" using the libsoup library.
I can parse the returned xml data using libxml2 and extract the desired fields from it.
I want to know how can i do the same using javascript and display ... | stackexchange/codereview |
this is probably trivial but I need help in making my server listen on my ISP IP address rather than the localhost in my client-server messager program. My server and client is as follows.
server
/*Server */
#define _WIN32_WINNT 0x501
#include <iostream>
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
... | stackexchange/codereview |
i have a table view, in one condition i want to use an accessory using UITableViewCellAccessoryDetailDisclosureButton, but i want to change that icon with my icon, can i do it??
| stackexchange/codereview |
I've tried changing the logging on Savon when running it against a WSDL, but have been unsuccessful in changing the logging level.
I read the docs: http://rubiii.github.com/savon/#global_configuration
I did this:
Savon.configure do |config|
config.log = false # disable logging
config.log_level = :info ... | stackexchange/codereview |
I am compiling some code that interacts with TFS2008, and I'd like to update it to support TFS2010 as well.
I tried compiling the existing code against the TFS 2010 assemblies (installed with Team Explorer 2010, available on my machine in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssembl... | stackexchange/codereview |
I'm following this example for connecting to the Bing Maps geocode service:
Link
About half way down the page, it explains how to add a service reference in Visual Studio 2010, which I was able to do successfully. Then it says to add "using GeoCode.GeoCodeService", but when I do, I get an error saying "The type or name... | stackexchange/codereview |
I want to change the letters A to point 1 and so the letter Z to be number 26, then changed again to number 27 letters AA, AB to 28. How do I? Do I have to use the "switch"? I use java program.
| stackexchange/codereview |
I have to implement user access rights or permissions to different features in a web app. For example; if the user cannot view reports, do not show the Report menu, or if the user cannot create new employees, do not show the New button. These user access rights or permission would be turn on/off UI elements. I'm loo... | stackexchange/codereview |
I'm trying to convert a date in yyyymmdd format to yyyy-mm-dd with the following code:
tdrDate = DateTime.ParseExact(dateString, "yyyymmdd", null).ToString("yyyy-MM-dd");
This works the only problem is that when I have a date such as this "20070205" I get back "2007-01-05". I don't know why this is happening, any hel... | stackexchange/codereview |
I have run into something I don't know how to do with active record (actually I couldn't say exactly how to do it with sql) that I would like to do. I would like to select records based on the highest value of a certain field as well as some other criteria. Below is some pseudo stuff which explains my situation. Giv... | stackexchange/codereview |
Web site: www.matka-opas.com/ahaa4.php
If i push SEARCH-1 and then SEARCH-2 it works ok,
but how it could do by one search button ?
<?php
$depairport = $_POST['depairport'];
$ddestination = $_POST['ddestination'];
$ddday = $_POST['ddday'];
$depmonth = $_POST['depmonth'];
$depyear = $_POST['depyear'];
$retday = $_POST['... | stackexchange/codereview |
I am using PyQt to manage a tree view using a QAbstractItemModel. So far I have successfully implemented it such that I can load the data, expand and collapse it, and edit values.
One thing I am not able to do, however, is wrap my head around inserting and removing rows.
Short version of what I am trying to do:
When t... | stackexchange/codereview |
In my application I have 3 tabs that contain ListViews depending on what the selection was in the previous tabs. Basically, the 1st tab will list restaurants, 2nd tab will lists submenus of the selected restaurant, the 3rd menu will lists the items of that selected submenu, and then when an item is selected, it will di... | stackexchange/codereview |
I would like to run a javascript file (function unknown) once in a while. Perhaps on some click event. How can I do this?
I want to use this for a twitter update with the following code:
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1"></scr... | stackexchange/codereview |
I am using RabbitMQ to route messages to interested subscribers by topic. Each subscriber has a queue, and I bind the queue to the topics they are interested in. I would like to allow the user to remove an item from their topic list.
In my setup, that would require "unbinding" the bound topic from that user's queue.
I... | stackexchange/codereview |
I am learning javascript sample from this page,
http://nofunc.org/AJAX_Star_Rating
my questions are (1),
for function function XY(e,v), it has two input parameters e and v, but it is called with only one parameter x=XY(e), how does it work?
question (2), I am confused about what this function XY is doing below, especia... | stackexchange/codereview |
I'm rebuilding some XML feeds, so I am researching when to use elements and when to use attributes with XML.
Several sites have said "Data goes in elements, metadata in attributes."
So, what is the difference between the two?
Let's take an example from W3Schools:
<note date="12/11/2002">
<to>Tove</to>
<from>Jani</f... | stackexchange/codereview |
What is the use of the enum keyword ? Where can we use enumerated data-type?
Can anyone explain with an example?
| stackexchange/codereview |
I am trying to do basic list operations with SML.
I want to extract each element of the list and append string to that element and add it back to the list.
Example:
List : [A,B,C,D]
String : A
Final List: [AA,AB,AC,AD]
How can I iterate through each element in the list in SML? I can append strings using ^ and concaten... | stackexchange/codereview |
I am using Telerik's RadGridView to display some data.
When data in one column changes, I want to change the data in another column based on a simple formula.
For example: When data in Age column is edited, I want to change the other column's (Premium) value as Premium = (Age * 1.2)
Handling CellEditEnded or RowEditEnd... | stackexchange/codereview |
I have a design question. I have a nested repeater structure that is 4 tiers deep. The repeaters display data that are deemed as "Sections 1-4". These sections are all tied in a database to a Job Description.
I want to add an edit button to each item in the deepest tier of the repeaters. However, the repeater depths ar... | stackexchange/codereview |
I'm trying to write a function that will take the email of the user as a parameter and return the first part of the email, up to but not including the "@" symbol. Problem is I'm terrible with functions, and there's something wrong with this function but I'm not sure what it is. When I try and write the function to the ... | stackexchange/codereview |
Consider this code:
object A {
object AA extends A
object AB extends A
object AC extends A
}; class A
How is it possible to "see" the objects defined within object A at runtime?
I thought a method within object A with some simple reflection code would be enough, but it seems that the compiler flattens the object... | stackexchange/codereview |
I'm, attempting to write to a custom event log .... but I get the error:
Win32Exception Access Is Denied
Cannot open log for source 'blah'. You may not have write access.
I've trawled the net.. followed varions links and to date the best one I've come across is
this one. It's not as clear as it could be though....
Thi... | stackexchange/codereview |
How can I determine if an element exists on a page... for instance...
$('select[name="modifier_option"]')
If that select box exists on the screen I need to validate it's value on the page to ensure it's value is > 0, but if it doesn't exist I don't need to worry about it.
| stackexchange/codereview |
I have a situation where I need to scan through a large number of .xsd files, and replace an instance of a string with another string based on the file name of the current schema being examined.
For example:
I wish to replace the string: 'DataSet' in file1.xsd with the string 'file1DataSet'
I wish to replace the string... | stackexchange/codereview |
I host two sites in a single sitecore environment.
I've modified web.config so that
<site hostName="subdomain1.domain.com" startItem="/home" ... />
<site hostName="subdomain2.domain.com" startItem="/SecondSite/Homepage" ... />
The problem is that menu links I generate in xslt rendering using sc:path(.) are too long.
h... | stackexchange/codereview |
Ok, so I have a problem where I need to check if the user has changed the image inside and imageView. If no then the app doesn't need to resave a bunch of stuff and it is changed then it should save. So bascically this is just to optimize the code since when saving I am writing four images (loRes, loResThumb, hiRes and... | stackexchange/codereview |
I have two dropdownlist's.DropDownList2(not bound to a datasource) and DropDownList3(bound to a datasource)
On change on input in one dropdownlist some content in the other Dropdownlist should change. For that i had used the logic as.
Autopostback is enabled for both this controls.
protected void DropDownList2_Sele... | stackexchange/codereview |
Some projects that I try and learn from don't have a schema.rb file, why is that?
Can this be generated somehow?
| stackexchange/codereview |
My teach said I should combine two foreign keys into a single primary key. But my thought process is that that would allow for only one combination of each foreign key.
Imagine I have a Product, Purchase, PurchaseDetail.
In PurchaseDetail I have two foreign keys, one for product and one for purchase. My teacher said th... | stackexchange/codereview |
Hii ,
I was writing a generic function for sorting when i came across this idea . Usually we give the data and call the function sort which is written in a generic manner. I was wondering if we could accept the data-type of the input dynamically at run-time using generics .
Like , if we want to sort some data and we do... | stackexchange/codereview |
I am building a windows forms application that I will be adding a control within that will display quite a bit of different data. For the most part the data inside will be navigation buttons and help/training text.
I think it would be ideal if I could write the contents in HTML and then just display that in the contro... | stackexchange/codereview |
geocode, only allow enter of specify location example like 'building name' , 'city' ..etc . anyway to allow user to enter "full address (included block number, postal code, street name)" and it auto resolve to google map location?
| stackexchange/codereview |
I have couple of classes and want to map them correctly to database:
public class A
{
public virtual Guid Id { get; private set; }
public virtual ComponentClass Component { get; set; }
}
public class ComponentClass
{
public virtual IList<B> Elements { get;set; }
}
public class B
{
public virtual Guid... | stackexchange/codereview |
I am taking a screenshot in my application. I am able to take the screenshot.
Now I want to take the screenshot by specifying the x and y coordinate. Is that possible?
UIGraphicsBeginImageContext( self.view.bounds.size );
[self.view.layer renderInContext:UIGraphicsGetCurrentContext( )];
UIImage* aImage = UIGraphicsG... | stackexchange/codereview |
I'm using an ajax request (using jquery) to compile a ziparchive in php. The files that have to be zipped are up to 1 gb, so it tooks a long time to zip these files.
Due to this timeout I think the ajax request callbacks a internal server error (500). When I'm compiling a zip archive of 50 mb it is working, but when it... | stackexchange/codereview |
I have an application that is set up so that if the user selects the device to be a server it creates a GKSession in server mode, and if it selects cient it create a GKSession in client mode.
Whats happening at the moment is the server is sending out the data fine, which is just a string containing the time of the serv... | stackexchange/codereview |
Alright, so I have an HTML element as <div id="slide_item_#"> where # is a number. What I would like to do, using Javascript, is get the number from the id. So I would assume a regular expression, I just don't know how to use them in Javascript.
var html_id = "slide_item_3";
var id_number = /* code here so that id_numb... | stackexchange/codereview |
I'm only slightly familiar with the features of Data Tier Applications and what Database Projects did in the Database Edition of visual studio.
Are these two different overlapping solutions for database version control? Or does Data Tier Application functionality replace outright the need to use visual studio database... | stackexchange/codereview |
What is the purpose of this symbol in MySQL queries?
`
For example:
SELECT `show` FROM table WHERE id = "4"
| stackexchange/codereview |
I originally installed haskell 6.10.4 using macports, but due to some bugs in it, I tried uninstalling it and installing the newer version 6.12.3 directly from the haskell site.
The installer worked fine, but when I start up ghci, it defaults to the macports version 6.10.4 that apparently wasn't uninstalled.
I atte... | stackexchange/codereview |
In my production environment we have had what we believe to be a
corrupt storable hash, created by Storable.pm. I am unable to replicate the behaviour in Dev, which has made it hard to diagnose exactly.
The code has been working for a long time, and the change that made it
break was deleting from the hash. Up until re... | stackexchange/codereview |
Is there a way to know if users press one of the two hardware volume buttons on the side of the phone?
| stackexchange/codereview |
I have downloaded the demo-repl.zip file from Miguel de Icaza's web site.
I was trying to build certain programs but all is failing. Mine is a simple console application.
Case 1: Only Print the name based on condition. It works well
static void Main(string[] args)
{
Evaluator.Run("using System;");
Evaluator.Run("u... | stackexchange/codereview |
I am trying to extract some data from a private forum. I created a PHP Script that uses CURL to log in, and DOMDocument to extract page data.
I have successfully logged in with the script, but it acts as if I never logged in as soon as I try to load a web page using loadHTMLFile().
Someone told me that I may need to ... | stackexchange/codereview |
anyone knows how "Drinkspiration By Absolut" developed. I want to do something similar to the card flipping effects. any hints on what should i learn and where do i start to do that? many thanks...
| stackexchange/codereview |
Say I have a Core Data entity called Person. How would I get an NSArray of Persons whose properties match certain values? For instance someone of a particular age, height, or weight... or someone with a whose height,weight and age are specific values...
Can I use an NSPredicate like so:
NSPredicate *pred =
[NSPredicat... | stackexchange/codereview |
I'm wondering if there's a way to figure out how many observers there are subscribed to an IObservable object.
I've got a class that manages a HashTable of filtered IObservable instances, and I'd like to implement a "health check" routine that can determine if subscribers have been removed / disposed, without each sub... | stackexchange/codereview |
Question is:
Write a program that reads data into an array of type int. Valid inputs are from 0 to 10. Your program should determine how many values were inputted. Output a list of distinct entries and a count of how many times that entry occurred.
I have so far:
using System;
using System.Collections;
namespace C... | stackexchange/codereview |
I want to use a select statement to grab specific tuples based on their ID. So I want to be able to grab col1 from table1 where id = 1,5,9,15 in one query if thats possible. How might I go about doing this?
Select col1 from table1 where id = 1 and id = 5...
I tried this, but I couldn't get anything. What am I missing?... | stackexchange/codereview |
I'm trying to use Java regexps to match a pattern that spans multiple lines. The pattern has one line that starts with 'A' followed by exactly 50 characters and then one or more lines that start with 'B' followed by exactly 50 characters:
A... // exactly 50 chars after the A
B...
B...
Java Regular Expressions don... | stackexchange/codereview |
in my db I have two tables that are related. Lets call them Job and JobType
Job has a foreign key jobTypeID that references JobType.
I would like to create a custom class in the dbml with properties from both of the DB tables...essentially all of the Job properties and the JobTypeName property from JobType
This is a s... | stackexchange/codereview |
I've hit a bit of a dead end in trying to figure this one out... Using the MVVM pattern in WPF, our C# Model fires an event to say something has happened. I want to be able handle that event in my ViewModel and then either kick of a storyboard or change the visibility of a hidden panel on the current Xaml Page. This ha... | stackexchange/codereview |
is there a way to know from code if phone has touch screen or not?
I need it for smth like if (PhoneHasTouchScreen) enable_something()
| stackexchange/codereview |
I'm developing a social networking website. This service will be available across various mediums, for example: the web, iPhone, Facebook application etc.
My idea for this application was to have all of these properties interact with one central point for fetching and saving data: an API. My various applications would ... | stackexchange/codereview |
I'm trying to rename all files in current directory such that upper case name is converted to lower. I'm trying to do it like this:
ls -1|gawk '{print "`mv "$0" "tolower($0)"`"}'|xargs -i -t eval {}
I have two files in the directory, Y and YY
-t added for debugging, and output is:
eval `mv Y y`
xargs: eval: No such fi... | stackexchange/codereview |
I have the following test PHP code:
header('Content-type: text/html; charset=utf-8');
$text = 'Développeur Web';
var_dump($text);
$text = preg_replace('#[^\\pL\d]+#u', '-', $text);
var_dump($text);
$text = trim($text, '-');
var_dump($text);
$text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
var_dump($text);
$te... | stackexchange/codereview |
I'm having a problem getting HttpWebRequest to use ISO-8859-1 encoding for parametres in a webrequest, the problem is related to both POSTs and GETs.
The problem in a nutshell is that any request parametres that contain non-ascii characters like Ö and æ, gets converted to their UTF-8 % representations rather than thei... | stackexchange/codereview |
When executing this query i expect te get 2 mobilenumbers and 1 category, instead i get 2 categories, what am i doing wrong?
I guess it has to do with the way i am joining things?
User, can have multiple imei's,
categoryjoin links a user to multiple categories
SELECT
u.*,
group_concat(i.mobilenumber) as mobil... | stackexchange/codereview |
Is there a way to use SQL server to send mass email? or would I have to purchase a service/API from companies like jangomail or others. what are the advantages/disadvantages to using SQL server or API services?
| stackexchange/codereview |
Imagine that we have a form with two buttons on it. I run the application and I click on the first button. nothing happens and no focus rectangle is displayed. But when I press a key, it shows a focus rect on the button and even if I click on the second one, it moves the focus rect to it. So it doesn't display the focu... | stackexchange/codereview |
Unhandled exception at 0x523d14cf (msvcr100d.dll) in IntellitracTCPIP.exe: 0xC0000005: Access violation reading location 0x00000008.
what can cause this error? and how to solve it
| stackexchange/codereview |
Greetings,
in short, I have to find out whether I can implement a way to index zipped .rtf files via IFilter under Sql Server 2008 Express for fulltext search.
Long version:
this question is mostly a theoretical one - I'm neither experienced nor knowledgeable enough to find out whether such a thing is possible on my ow... | stackexchange/codereview |
Say there are two relations r and s such that the foreign key B of r references the primary key A of s. How can the trigger mechanism be used to implement the on delete cascade option, when a tuple is deleted from s.
| stackexchange/codereview |
I need to write an array of int to an output file as binary and also read the binary data as int in the programme in C++ Linux, something like the BinaryReader and BinaryWriter in C#. How could I do that?
Thanks
| stackexchange/codereview |
I want validate HTML code in Java.
Like this:
HTMLValidator.validateHTML("aaa<b>bbb<b>");
// Returns false, because tag <b> is not closed
What Java libraries exist to do this?
| stackexchange/codereview |
I want to know what the best way to process the results of a long-running process serially but on a low-priority thread using the .NET 4.0 Parallel Extensions.
I have the following class that both does the execution and provides the results:
public class Step
{
public string Name { get; set; }
public TimeSpan Dur... | stackexchange/codereview |
I am learning core Java and I have one question, "Which is the first method called when the program is executed?"
| stackexchange/codereview |
I just started with spring MVC. I want to configure controllers in separate xml and instead of -servlet.xl file. Is is compulsory to define an xml file with that name or can't I use ContextLoaderLister.
| stackexchange/codereview |
I have ordederd to make a function, which takes a list ex [3,4,6,1,29] and returns a list of tuples [(3,4),(4,6),(6,1),(1,29)]
| stackexchange/codereview |
By default, symfony uploades file to web/upload folder, so they are accessible for anyone. I need to check user credentials on every request to a file. How should I do this?
| stackexchange/codereview |
I'm having trouble getting desired behavior in a WPF RichTextBox. I am creating a Span in code and applying a format and I want to position the cursor after the Span (so newly typed text won't be formatted). From the documentation, it sounds like:
editor.CaretPosition = span.ElementEnd.GetInsertionPosition(LogicalDir... | stackexchange/codereview |
I have to store messages data in a database & make a hierarchy of list and inner list of messages from it for a web application. The data to be stored is entered by user and have varchar datatype. Currently user uses same text box on a webpage to enter both parent message & child node message(bec child node functionali... | stackexchange/codereview |
Using PATINDEX and a case-sensitive collation to search for upper-case letters in a string I noticed this was not yielding the desired result:
-- returns 1
SELECT PATINDEX('%[A-Z]%'
, 'abCde' COLLATE SQL_Latin1_General_Cp1_CS_AS);
however, specifying every letter, A-Z, does:
-- returns 3
SELECT PA... | stackexchange/codereview |
How do I upload the JavaServerFace Project, that I created in eclipse, to the internet?
It's a dynamic web page project; Is there a special program or is it uploaded just as a normal website would be? Do I have to put the files in a jar file, war file?
Everything works fine when I launch it from eclipse with tomcat. D... | stackexchange/codereview |
Can anybody tell me why this doesn't work as expected?
<?php
$merchant_string = '123-Reg|Woolovers|Roxio|Roxio|BandQ|Roxio|Roxio|Big Bathroom Shop|Roxio|Robert Dyas|Roxio|Roxio|PriceMinister UK|Cheap Suites|Kaspersky|Argos|Argos|SuperFit|PriceMinister UK|Roxio|123-Reg';
$merchant_array = explode('|',... | stackexchange/codereview |
I am working on an app where a UIAlert pops up the first time the user begins using it to ask if they want to use their current location. This happens within the main controller. However, I get the following error when using the UIAlert:
wait_fences: failed to receive reply: 10004003
I debugged it, and googled around.... | stackexchange/codereview |
Anyone know of a website that lists releases for the major JS libraries?
I'm looking for something that will alert me of a new release and supply a link to download it.
| stackexchange/codereview |
I need help :D. I am using web service that returns similar xml file to the one below:
<books>
<item_1>
<name></name>
<type></type>
</item_1>
<item_2>
<name></name>
<type></type>
</item_2>
<item_3>
<name></name>
<type></type>
</item_3>
...
...</books>
The problem is that I don't know how to par... | stackexchange/codereview |
My web based java application storing files in Local Drive(E.g: D:/AppData). It's scanning a folder for files(String[] nameOfFiles = dirName.list();) and displays all the files in the folder. The Thumbs.db also coming with them. How to omit that file? For now, i am deleting it before scanning the folder.
Is there any o... | stackexchange/codereview |
I want to block the standard context menus, and handle the right-click event manually.
How is this done?
| stackexchange/codereview |
I've deleted some files on my PC, how do I download them again?
Pull says: "Already up-to-date".
| stackexchange/codereview |
I have the need to put a custom attribute on an anchor which I am constructing using Html.ActionLink()
<%: Html.ActionLink("Delete", "Delete", new { id = Model.ID }, new { data-icon = "ui-icon-trash" })%>
Using the proper "data-" prefix, as per http://www.w3.org/TR/html5/elements.html#attr-data, I get the following er... | stackexchange/codereview |
I have developed a news portal website (in French):
http://www.monde-presse.com
I'm encountring small issues with the headlines.
I'm taking the first 64 chars and adding "..." at the end.
My issue is in database the "é" becomes "é" and some descriptions having the 64th char as "Ã", so I got an unknown char symbol!! It... | stackexchange/codereview |
I'm given the rotated RectangleGeometry and I need to find the top-left and bottom-right points. What would be the fastest way to accomplish that?
Please notice, that I don't want these points for AABB or something - I just need the rectangle's points.
Thank you in advance for the clues!
Cheers
| stackexchange/codereview |
I am using a instance of UIWebView to process some text and color it correctly, it gives the result as HTML but rather than displaying it in the UIWebView I want to display it using Core Text with a NSAttributedString.
I am able to create and draw the NSAttributedString but I am unsure how I can convert and map the HT... | stackexchange/codereview |
I have a page that uses the nabla character for bullets on a menu. The code for it is ∇. However, on my machine as well as some others around the office, this character comes up as the null character, [], in IE. In Firefox, though, it displays the actual character. My question is whether there is a fix for this s... | stackexchange/codereview |
Having installed TurtoiseSVN locally (local repository, no server) for my Delphi projects, i now want to share my updates via internet. To make it possible i did install Subversion (version 1.6) on an Apache Unix server (RedHat, VDS Hosting plan with Sphera) and created a repository folder at that place. The server is ... | stackexchange/codereview |
I'm need to count a lot of documents (30 M) with a criteria fast in mondodb
what's the difference of db.mydb.find({tag:'java'}).count() and db.mydb.count({tag:'java'})
it's one faster than the other?
I have and index on tag.
Thanks,
Federico.
| stackexchange/codereview |
How is the & symbol handled in the following query in oData?
/vendordataservice.svc/vDataMapper_SourceMapVendor?&$filter=startswith(ParentName,'AT&T')&$top=7&$skip=0
I'm using EF3.5 and SQL2008. When I send that to my oData service I get no data back.
| stackexchange/codereview |
First, I am sorry about my English. That's not my language.
I am developing an application in QtCreator, Linux. When the IDE asked me about the libraries I would use, I just leave the selected ones (they was not enabled for unchecking). Now, I have to run the compiled file in RedHat 5, but it doesn't run. It tells "Err... | stackexchange/codereview |
I'm planning to create a blog using php/mysql on apache (probably on a linux machine, if this info is at all important). I would like to test out YII framework for that purpose, and would also like to have fun while developing.
Since I used to develop in Joomla in my past, I know the importance of Search Engine Friendl... | stackexchange/codereview |
Sort of a simple question. I have a tableview in a navigationcontroller. When I touch a cell, it pushes a view controller with the information from the cell, so I can edit it in the new view. Now thats working correct (we can call it the informationpath: "rootviewcontroller -> pushed viewcontroller"). But when I click ... | stackexchange/codereview |
Is it possible to access the USB port on Android phones? (Droid X for example)
Here is my usage case:
Have a USB device attached to the Android phone. The phone listens for data on this USB device. (The USB device is connected to a USB->RS-232 converter that has I/O attached to it)
This would be slick if possibl... | stackexchange/codereview |
New Post
I ended up avoiding that query entirely. I just couldn't get the results I was looking for. To get the desired results, I came up with this...
Also, if you guys come up with that query, I'd really look to remove this work around.
Thanks for all the help so far!
function get_converstations($data)
{
//get ... | stackexchange/codereview |
I create this output with PHP:
foreach ($bk as $blink) {
$out["url"][] = $blink->url;
$out["anchor"][] = $blink->anchor;
}
$json = Zend_Json::encode($out);
echo ($json);
I want to receive and process the output with a $.ajax call.
Could you point me to a nice tutorial about multidimensional arrays with ... | stackexchange/codereview |
I'm trying to perform a post query when the user leaves the page. The code I'm working with is
<script type="text/javascript">
window.onbeforeunload = function(){
var used = $('#identifier').val();
$.post('conversation.php?leave=true',{ud:used});
}
</script>
Is there anything wrong with what I'm doing here? Th... | stackexchange/codereview |
For menus in my game, I draw them once to the screen, then only redraw if they've been deemed dirty. This is handled through a boolean set to true whenever the user performs an action that should cause a redraw, and then the draw loop will check that value before drawing the menu. This logic worked perfectly in 3.1, ... | stackexchange/codereview |
I've got an example here of a typical chunk of JavaScript (code that would apply a background style class to an alternating odd or even row in a table). I'm trying to rewrite this in CoffeeScript in my attempt to learn that. The CoffeeScript range syntax is different and more Ruby-esque. I'd really appreciate an exampl... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.