instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to create a custom query that will show the number of stories that have been posted in the last 24 hours on a Drupal 6 site.
Stories are stored in the "node" table. each record has a "created" row that records the UNIX timestamp when the story was posted.
Here's the query I'm trying so far:
$sq = 'SELECT CO... | stackexchange/codereview |
I am new to Android.Can anyone give some ideas for my problem.
/* Parent Linear Layout */
final LinearLayout par_layout=new LinearLayout(this);
par_layout.setOrientation(LinearLayout.VERTICAL);
/* Child Linear Layout */
final LinearLayout chl_layout=new LinearLayout(this);
chl_layout.setOrient... | stackexchange/codereview |
When I have a status bar notification with a number inside, it shows the number fine. But later if I show another notification to replace this one, with no number, it shows an empty red circle. This circle shouldn't be there. How do I remove the red circle? See image here: http://jump.fm/UYHGV
I've already tried:
notif... | stackexchange/codereview |
Hey,
I have got a parent class, which is conform to the NSCoding protocol.
So do I have to repeat the confirmation in my child class again, or is it automatically conform to it because of the descent?
Thanks!!
| stackexchange/codereview |
I am running ROR 3.0.1 with Ruby 1.9.2p0 on a Mac Mini with Snow Leopard 10.6.4.
when I run rake db:migrate I get the following error
/usr/local/lib/ruby/1.9.1/rubygems.rb:340:in bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)
from /usr/local/bin/rake:19:in'
I have uninstalled and reinstalled rak... | stackexchange/codereview |
Hi I have a form class which looks like below:-
class UserCreateForm(wtf.Form):
name=wtf.TextField('Name',validators=[validators.Required(),username_check])
email=wtf.TextField('Email')
userimage=wtf.FileField(u'Upload Image',validators=[checkfile])
The custom validator function " checkfile" looks like th... | stackexchange/codereview |
I need to highlight a keyword in a paragraph, as google does in its search results. Let's assume that I have a MySQL db with blog posts. When a user searches for a certain keyword I wish to return the posts which contain those keywords, but to show only parts of the posts (the paragraph which contain the searched keywo... | stackexchange/codereview |
I need to verify my form information and send an acknowledgement page.
This is what I've tried but it isn't working. Is there a way to incorporate both?
This verifies that all fields are filled out:
<input type=button value="Verify Information" onclick="verify();">
<input type=reset value="Clear Form"><br>
This... | stackexchange/codereview |
UPDATE ".$tablename." SET stock=%s WHERE itemname=".$itemname."
SQL Query throwing this error:
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 '' at line 1
Can't find what it is talking about as it only gives me '' and not any ... | stackexchange/codereview |
I encounter an access violation when calling a DLL inside LabVIEW. Let's call the DLL "extcode.dll". I don't have its code, it comes from an external manufacturer.
Running it in Windbg, it stopped with the message:
(724.1200): Access violation - code c0000005 (first chance)
First chance exceptions are reported before a... | stackexchange/codereview |
I have a war deployed on a Websphere box. It uses a file to build up a trie structure inside a web service. Instead of having to redeploy an updated ear with the file as a resource, we want to be able to put the file on Websphere and update it as necessary, then just cycle the servers (we have multiple nodes) to avoid ... | stackexchange/codereview |
public struct Cache {
public int babyGangters { get; set; }
public int punks { get; set; }
public int ogs { get; set; }
public int mercs { get; set; }
public int hsPushers { get; set; }
public int collegeDealers { get; set; }
public int drugLords { get; set; }
public int streetHoes { get... | stackexchange/codereview |
How does one create a UIImage within one viewcontroller, when the action which I want to trigger the creation is a button in another viewcontroller?
So I would like to have a button in a viewcontroller, which when pressed, dismisses this view and create a UIImage in the other view.
How is this done?
Thanks
| stackexchange/codereview |
One of our Hudson build systems is not automatically starting its jobs since we switched it over to a different Perforce server. The polling log reports:
Last sync'd change was nnnnnn
Where nnnnnn is a changelist number from the old server. The new server has lower CL numbers, which causes the problem.
How do I adjust... | stackexchange/codereview |
I have developed a web site: Some fields are entered in English while others are entered in Arabic language.
Now i wanna simplify the input operation for the user and want Arabic textbox as a DLL.
I have one but it works only with IE - not with firefox or google chrome ..
thanks so much..
How to enforce the user to wri... | stackexchange/codereview |
I've got a subform (customersAnswersSub) inside of a main form (customersAnswers). Upon someone entering a new customerAnswersSub entry - I wanted it to check for duplicates first.
It has to check across 4 different fields to match first.
This is what I've got so far.
Private Sub Form_BeforeUpdate(Cancel As Integer)
... | stackexchange/codereview |
Possible Duplicate:
Why don't operations on double-precision values give expected results?
I am experiencing a peculiar problem in C++. I created a variable of type Double. Then I did some calculations with some values assigned to other variables and assigned the result to the double variable I declared. It gave me ... | stackexchange/codereview |
I have a JavaScript object (name, noWords, score, group)
flower - 1 - 88 - 0
flower - 1 - 99 - 0
flower,spring - 2 - 39 - 1
flower,spring - 2 - 58 - 1
flower,time - 2 - 20 - 2
flower,time - 2 - 53 - 2
spring,time - 2 - 55 - 3
flower,spring,time - 3 - 79 - 4
flower,spring,time - 3 - 121 - 4
I want to sort this object l... | stackexchange/codereview |
I've edited an bitmap in c# and for every pixel i've changed it to a certain color if a condition was true else i've set the color to Color.Transparent ( the operations were done with getPixel/setPixel ) . I've exported the image in .png format but the image isn't transparent. Any ideas why or how should i do it ?
Rega... | stackexchange/codereview |
Whilst working with the MSI Interop API I have come across some unusual behaviour which is causing my application to crash. It is simple enough to 'handle' the problem but I would like to know more about 'why' this is happening.
My first call to MSIEnumRelatedProducts returns an value of 0 and correctly sets my string... | stackexchange/codereview |
Any multi-core sorting implementation in .NET?
| stackexchange/codereview |
I'd like to write a service in my grails web app to apply an xslt to some xml. The following code throws a java.lang.ArrayIndexOutOfBoundsException: -1:
import javax.xml.transform.TransformerFactory
import javax.xml.transform.Transformer
import javax.xml.transform.stream.StreamResult
import javax.xml.transform.stream.... | stackexchange/codereview |
When i navigate across the application, i get a javascript error in my taskbar but gets disapperard immediately before i can identify what is the error about
The error appears in IE and i don't see anything in FireBug
| stackexchange/codereview |
I am returning one row from the database, and I want to convert the SQLDataReader to a string format, so I can pass it to my webservice.
Dim rdr As SqlDataReader = sqlcmd.ExecuteReader
If rdr.HasRows Then
rdr.Read()
GetInvHeaderValue = Convert.ToString(rdr.Read())
... | stackexchange/codereview |
I have a MainWindow with 3 main buttons at the top and below a MainUserControl.
In the MainUserControl I have at top 3 UserControls with ButtonBars
and at the bottom a DataGrid.
When I enter data in a DataGridCell and I click into another cell a property change is fired in my ViewModel bound to the DataGrid.
When I en... | stackexchange/codereview |
Well basically what the title says, when making an AJAX request with JavaScript. Does the method, i.e. GET / POST, need to be upper case? Thanks in advance.
Edit: Even a yes or no will suffice.
| stackexchange/codereview |
I want to use System.Management.ManagementScope to query the list of currently logged in users.
This will be part of a larger application that we will deploy to our customers, so it needs to be easy to setup and highly reliable.
Is ManagementScope/WMI a good fit? Should it always be available to query on most OSes? Ar... | stackexchange/codereview |
I am running a script that runs 24/7. It just loops through over and over, very simple:
while ($daemon) {
sleep 60;
chomp(my $currentDate = `date +%c`);
print LOG "-- Running trigger: $currentDate --\n";
system("$triggerCmd >> $daemonLog");
print LOG "-- Completed trigger test. --\n\n";
}
... | stackexchange/codereview |
Had a read through the android documentation on WifiManager and thought I understood it but when I tried to code an example I keep running into problems.
I had the following code
wifiOffButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Context... | stackexchange/codereview |
I'm wondering for those enterprise programs, how do they link to various type of database just by stating the connection string?
Issues like different syntax, variable type will definitely be there.
Apart from stored procedures for each type of database, how else do they handle in terms of their programming?
1 way ... | stackexchange/codereview |
A project I'm working on currently involves using a disparate set of technologies, including .NET, PHP, Asterisk and bash scripting. Each of the applications in use produces some logging; technical logging for administrators and user logging. The technical logging is easy, all logs are written to disk as text files.
Fo... | stackexchange/codereview |
I'm using STI in Rails, and I've got a Vehicle object, that has many different types of subclasses, like Car, Truck, etc. It's for a simple app, so STI works fine in this case, but I'm having trouble creating a single form where any type of Vehicle record can be created.
Using the following routing:
resources :vehicle... | stackexchange/codereview |
Here is my Rails 3 nested routes structure for PROJECT
resources :projects do
resources :notes, :photos
collection do
get 'yourproject', 'newjs'
end
end
This works great for things like
/projects
/projects/1
/projects/1/notes/
/projects/1/notes/3
what isn't working is:
/projects/1/notes/newjs
Anyon... | stackexchange/codereview |
I am new to C and I am trying to create a simple C shell that will allow the user to perform various functions like chdir, cd, exit, mkdir.
I've posted my code below. Can anyone look through it and see what I am doing wrong? I am not sure if I am using fork and execcv correctly. Thanks!
include stdio.h
include stdlib... | stackexchange/codereview |
how can i add expire headers for my files (etc: images) in dropbox?
| stackexchange/codereview |
I'm trying to make a 2D game in VB. As a first step I'm going to make a playing field (a form) on which I will put a character. The character should be able to move up, down, left, and right when you press the arrow keys. How do I start off with this and what should I start off with learning?
I already know the basics ... | stackexchange/codereview |
I want to select all comments from a document using JSoup. I would like to do something like this:
for(Element e : doc.select("comment")) {
System.out.println(e);
}
I have tried this:
for (Element e : doc.getAllElements()) {
if (e instanceof Comment) {
}
}
But the following error occurs in eclipse "Incompatib... | stackexchange/codereview |
What is wrong with this query?
SELECT *, (SELECT COUNT(*)
FROM
(
SELECT NULL
FROM words
WHERE project=projects.id
GROUP BY word
HAVING COUNT(*) > 1
) T1) FROM projects
MySQL returns 1054 Unknown column 'projects.id' in 'where clause'
Thanks
| stackexchange/codereview |
Is it possible to extend the Voice Search app? I know I can add a button in my own app to launch the voice recognition dialog, but I was wondering if I could extend the voice search app that launches automatically when you long press the physical "search" key.
send text to [contact] [message]
listen to [artist/song/al... | stackexchange/codereview |
Say I have some data and a password, and I want to encrypt the data in such a way that it can only be recovered with the right password.
How does this technically work (i.e. how to implement this)? I often hear people use bitshifting for encryption, but how do you base that on a password? How does password-based encryp... | stackexchange/codereview |
was working perfectly earlier this week, and now in IE everything seems to be messed up. Any ideas?
Specifically testing in IE 7/8
| stackexchange/codereview |
I want to have some constants in a Django Projects. For example, let's say a constant called MIN_TIME_TEST.
I would like to be able to access this constant in two places: from within my Python code, and from within any Templates.
What's the best way to go about doing this?
EDIT:
To clarify, I know about Template Contex... | stackexchange/codereview |
In general, what are the best practices to debug a Silverlight or WPF application, especially when you get errors with Databinding? Are there free tools available? I am not getting any errors as such, but I am interested in figuring out the approaches that you take as Silverlight and WPF experts.
Thanks!
| stackexchange/codereview |
Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
Why this code is generating 8 as a result ?
#include <iostream>
using namespace std ;
void myFunction(int i)
{
i = i + 2 + ++i;
cout<<i<<endl;
}
void main ()
{
int i = 2;
myFunction(i);
cin>> i... | stackexchange/codereview |
I'm having trouble creating a custom close button for my overlay. Here's what the html of my dialog looks like
<div id="new-window">
<div class="close">Custom Close Button</div>
</div>
Here's my javascript code
$("a[rel]").overlay({
effect: 'apple',
speed: 'fast',
onBeforeLoad: function() {
... | stackexchange/codereview |
SELECT SKU
FROM PartProductSupplemental
EXCEPT
SELECT SKU
FROM Inventory
Why do I get this error:
Incorrect Syntax near the Word Except
I check on line and syntax is syntactically correct:
SELECT ProductID
FROM Production.WorkOrder
EXCEPT
SELECT ProductID
FROM Production.Product
| stackexchange/codereview |
Iam using Jquery for Long time for my Application .Suddenly today it started giving me error on every page where jquery is used .The error is "syntax error on line 2 and character 1" .It is giving me the same error for all the pages where Jquery is used .The Jquery version we are using is Jquery v(1.4.2) and the UI ... | stackexchange/codereview |
How to change the back color of a UltraCalenderCombo control?
| stackexchange/codereview |
I have an array and in that array I have an array key that looks like, show_me_160 this array key may change a little, so sometimes the page may load and the array key maybe show_me_120, I want to now is possible to just string match the array key up until the last _ so that I can check what the value is after the last... | stackexchange/codereview |
I have made a multiple entry-point project, where App2 is set to autorun and App1 runs on user request.
I am trying to invoke a global event from App1, received by App2.
public class App2 implements GlobalEventListener {
static public int counter = 0;
public static final long countId = 0x1251402f595f81a5L;
... | stackexchange/codereview |
i create a custom backspace button but my problem is my back button works great in order to delete character from middle of words but just remove 1 character after that (removing letters) , comes back to the end of line it means doesn't stay where the cursor is, here is my code :
NSRange deleteRange = textPad.s... | stackexchange/codereview |
I'm looking for the cleverest algorithm for determining the number of fortnightly occurring events in a given calendar month, within a specific series.
i.e. Given the series is 'Every 2nd Thursday from 7 October 2010' the "events" are falling on (7 Oct 2010, 21 Oct, 4 Nov, 18 Nov, 2 Dec, 16 Dec, 30 Dec, ...)
So what I ... | stackexchange/codereview |
I have just started with professional programming and my manager tends to dictate that i keep create, modified and delete date in all database tables that we use. I want to know does it makes sense to keep these fields for enterprise application. The reason I am asking it that because all examples, tutorials i have eve... | stackexchange/codereview |
There is a way to create a right-to-left text-direction select tag in HTML?
The following works in IE, but in Firefox only align the text and in Chrome nothing...
<select dir="rtl">
<select style="direction: rtl;">
| stackexchange/codereview |
I have a function like:
// string is a null-terminated char array. Replace all a in the string with b
void ReplaceCharInString(char *string, char a, char b)
{
// loop over the string char by char, to find all "a"s and replace them with "b"
}
I'm doing the defensive programming. The problem is the implementation replie... | stackexchange/codereview |
This doesn't work (just echoes "U4e9c"):
echo mb_convert_encoding("U4e9c","UTF-8","auto");
I guess some sort of casting "U4e9c" is needed, but can't figure out how...
| stackexchange/codereview |
Does anyone have/make/sell an error tolerant XML reader for .NET?
Yeah, I know, XML isn't designed to have errors in it and should be rejected if it's not valid .. blah blah. But sadly the real-world is imperfect and developers do make mistakes and I still want to be able to read their feeds even if I'm missing the od... | stackexchange/codereview |
I am new to windows application. I need to add rows in the DataGrid dynamically which has person data. when i do the following is see only the last person in the last row. i see rows populating but with no data. If i do a break on the first fetch i do get the right one. But something is wrong. Any ideas
foreach (var p ... | stackexchange/codereview |
I have a repository on GitHub. It contains master and one branch.
When I clone it, I obtain only master and do not see my branch.
Why is it so? How can I see all branches in the repository?
| stackexchange/codereview |
I suppose this question is language-agnostic, tho I'm asking it in regards to building an iPhone app that uses the new Game Center API, but please feel free to answer in general software engineering terms.
I'm building a game for the iPhone that takes advantage of the new Game Center capabilities (i.e. Auto-matching, ... | stackexchange/codereview |
I'm using searching in my map search from database content using MatrixCursor. I have a NumberFormatException in Android SDK version 2.2. In my declaration I did:
private static final String[] COLUMNS = {
_ID, // must include this column
SearchManager.SUGGEST_COLUMN_TEXT_1,
SearchManager.SUGGEST_COLUMN_INTEN... | stackexchange/codereview |
I'd like to be able to get a string out of a highlighted portion of text, how do I go about this?
| stackexchange/codereview |
When I call os.getcwd() on my Mac under OS X 10.6.4 from my home directory, the path is converted to lowercase. I get
/users/myusername
instead of
/Users/myusername
On another Mac I get the correct uppercase string. How can I configure this? Is there a (hidden) Python setting?
Reason for asking:
On OS X all user direc... | stackexchange/codereview |
can you help me with this:
I want a regular expression for my Ruby program to match a word with the below pattern
Pattern has
List of letters ( For example. ABCC => 1 A, 1 B, 2 C )
N Wild Card Charaters ( N can be 0 or 1 or 2)
A fixed word (for example “XY”).
Rules:
Regarding the List of letters, it should match w... | stackexchange/codereview |
Is it somehow possible to get the list of nodes connected through a transitive relation with SPARQL?
I have elements that are connected in this way:
?a g:eastOf ?b
?b g:eastOf ?c
…
Not all nodes are connected with each other, because some are further down south. Only when nodes are vertically in the same plane there m... | stackexchange/codereview |
I have a DataContract that looks like:
[DataContract(Name = User.Root, Namespace = "")]
public class RegisterUser
{
[DataMember(Name = User.EmailAddress)]
public string EmailAddress { get; set; }
[DataMember(Name = User.UserName)]
public string UserName { get; set; }
[DataMember(Name = User.... | stackexchange/codereview |
I have a world map image. I would like to place a SQUARE GRID over the entire map. I would like each square (cell grid) to change via mouseover with a border color change and background color change.
The grid needs to be layered over the map, transparent except the borders (which is the grid).
Can I achieve this usin... | stackexchange/codereview |
how to copy from other file with ctrl-c and in vi editor with p yank (paste), i have no idea!!
thinks
| stackexchange/codereview |
I want to know you opinion and what should be the best approach for this case:
I have 2 table called:
- clients;
- suppliers;
I've create 2 pages for people to leave feedback about a client and for a supplier. With that in mind a created a table feedbacks.
Now the question is which approach should I choose:
1) Create ... | stackexchange/codereview |
Sorry for long title but my concern is with constructing an ajax based application.
I have a version one of this application which does not require javascript to function, I want to migrate this to use ajax for various resources that come from a 3rd party soap web service.
How can I build an ajax application which ... | stackexchange/codereview |
How can i save html page with silverlight object within?
I need to be able later to reopen page and to view sl content.
Thanks.
| stackexchange/codereview |
I am using CodeDom to generate the c-sharp class for an ASMX webservice, but I'm having trouble adding the web service attributes to the class. I am trying to get the following end-result:
[WebService(Namespace = "http://schemas.me.com/mywebservice/", Name = "MyWebService")]
[WebServiceBinding(ConformsTo = WsiProfiles.... | stackexchange/codereview |
My project does not use any WM6-specific APIs, so I want to make it compatible with WM5. However, I see no way of adding another target. I read that it should be as simple as right-clicking on my project and choosing "Change target platform", but the option is not there.
| stackexchange/codereview |
Having problems testing a (working) upload in my Rails app (using 2.3.8):
class ProfilesControllerTest < ActionController::TestCase
test "creates a new profile" do
fixture_image = fixture_file_upload("#{RAILS_ROOT}/test/fixtures/files/avatar.jpg", 'image/jpeg')
post :create, :profile=>{:username=>'johndoe',
... | stackexchange/codereview |
I have a parent dialog box and a child dialog box.when i post message from child to parent using PostMessageW(WM_SMESG,NULL,l_dvalue);where l_Value is double value but when i recieve this message in parent and then i am typcasting like double l_value = (double)lParam;then value in l_value always showing 0.0 but the val... | stackexchange/codereview |
I am trying to study how the three20 works. It is working fine in case of bold, italics and hyperlink by giving a different color. I have given code in the appdelegate for the control to go to my own class(Eg: WebViewController).
TTNavigator* navigator = [TTNavigator navigator];
navigator.supportsShakeToReload = YES;
... | stackexchange/codereview |
x <- seq(0.1,10,0.1)
y <- if (x < 5) 1 else 2
This gives a warning (or error since R version 4.2.0) that the condition has length > 1.
I would want the if to operate on every single case instead of operating on the whole vector.
What do I have to change?
| stackexchange/codereview |
I was googling around for some time and didn't googled anything...
How to, using php, update twitter status thru twitter API with OAuth?
Thanks!
| stackexchange/codereview |
I just saw on the Async CTP website that the next version of VB.NET will have iterators. I guess they included iterators because the rewriting process is similar to the one used for the new async/await feature.
But reading the document that explains the feature, I realized that VB.NET iterators will actually have featu... | stackexchange/codereview |
I discovered an odd scenario that produces a compiler warning in XCode that I don't believe is a valid warning.
As an example I created two classes, ClassA & ClassB, that both have an init method called -initWithSomething:
One takes an (NSDate *) as the "something" and the other takes (NSString *)
Class A
// ClassA.h
#... | stackexchange/codereview |
I'm trying to select a block of code between 2 comment tags like this:
<!-- begin answers -->
...[code]
<!-- end answers -->
I've tried something along the lines of <!-- begin answers -->.*<!-- end answers --> but my regex knowledge is fairly limited. My knowledge of Notepad++'s find and replace is very limited as ... | stackexchange/codereview |
The query that im using is
SELECT firstName + ', ' + lastName FROM employees
ORDER BY lastName
Which returns a table of values like
Workman, Bob
Nevarez, Ray
and so on, which is what I wanted. I'm using this query to populate a combobox full of employees. My question is, now that these results are put togethe... | stackexchange/codereview |
I am using Oauth for Delphi from ChuckBeasley.com
I am able to get a request token, then call with my callback url and put in my credentials.
I then get redirected correctly to my callback url in a TEmbeddedWB component.
I then get an access token (at least I believe I am) since screen_name and user_id come back in the... | stackexchange/codereview |
I am trying to align a text Email and textbox for it on top of an image at a specific location. I want the position to be fixed, no matter what size the screen is. Here is my html code:
<html>
<head>
<style type="text/css">
#container {
background-color:blue;
}
#content {
background: url('images/orange.jpg') no-re... | stackexchange/codereview |
I have a WCF ASP.Net 4.0 web service we'll call "WebService". WebService is consuming a class library assembly we'll call "WebServiceClassLibrary". WebServiceClassLibrary is referencing another class library assembly ("ExternalClassLibrary"). ExternalClassLibrary is built to use a configuration file. It uses this file ... | stackexchange/codereview |
I have a database of nodes and ways. A way contains two or more nodes. Some nodes belong to multiple ways, and are thus termed a "join" between two or more ways.
I'm trying to find all the nodes which join two or more ways. So I'm using this query,
SELECT *
FROM way_nodes wl
JOIN way_nodes wr
ON wr.node_id = wl.node... | stackexchange/codereview |
In the hypothetical scenario where I have a couple of database tables, in a one to many relationship. I am trying to find a nice query function so that I can return each row in table A with a nested array for all the linked rows from table B.
SELECT a.id AS id,a.name as name,b.id AS b_id,b.name AS b_name FROM a,b WHERE... | stackexchange/codereview |
I am looking for some help regarding documenting code in Qt. For instance, when I am developing on the XNA platform I use XML notation with tags such as summary, params, etc. What does Qt have and what are some standards.
In addition, I am looking for something that will work with documentation generating applications ... | stackexchange/codereview |
I am trying to implement an image gallery in ASP.NET./c#
I am displaying 6 thumbnails on my page. To display this I have decided to use ListView with an ItemTemplate containing an ImageButton control in it for each thumbnail that I would be displaying. I have a few questions:
Am I choosing the right controls? (there a... | stackexchange/codereview |
Scenario:
My Application bind a library X which has static class. I initialize it in my process.
After some time when I load a dll which also use same library X.
I see content of static variable in dll is not initialized. Where I already initialized it in process before loading DLL.
I added initialization code in DLL... | stackexchange/codereview |
Every few seconds I'm retrieving an updated lat and lon for a real-world object that is in motion. This object is represented on my MKMapView by an MKAnnotationView.
Is it possible to smoothly animate the object's movement from coordinate to coordinate, rather than remove its current MKAnnotationView and add a new one... | stackexchange/codereview |
I need to get data from JSON, transferred by Ajax from the client. Basically I used something like this:
@route('/ajax')
def serve_ajax():
return main.parse_request(json.dumps(dict(request.GET)))
Where main.parse_request is a function, that contains some logics to deal with variables in JSON (it is a main procedur... | stackexchange/codereview |
I'm using following code to restore databases,
void Restore(string ConnectionString, string DatabaseFullPath, string backUpPath)
{
string sRestore =
"USE [master] RESTORE DATABASE [" + DatabaseFullPath + "] FROM DISK = N'" + backUpPath + "' WITH FILE = 1, NOUNLOAD, STATS = 10";
using (SqlConnection ... | stackexchange/codereview |
I am using FetchXml to query CRM 4.0. We have a special case that will require a composite join between CRM entites. The FetchXml schema indicates that multiple link-entity elements are allowed, and it also indicates that multiple filter/condition elements can be added to a link-entity. The problem I'm facing is that t... | stackexchange/codereview |
Sorry for the green questions, I'm completely new to Facebook integration.
If I have a site with a fairly lengthy profile form, (e.g. gender, age, etc) is it possible to extract this information from Facebook, rather than getting the user to fill it in from scratch?
If I want my site to get a user's social graph from... | stackexchange/codereview |
Reviewing an earlier question on SO, I started thinking about the situation where a class exposes a value, such as a collection, as an interface implemented by the value's type. In the code example below, I am using a List, and exposing that list as IEnumerable.
Exposing the list through the IEnumerable interface defi... | stackexchange/codereview |
I am trying to use Microsoft.Jet.OLEDB driver to connect to an access database from my C# application. When I try to open a connection, I get an error: "The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine." This is because the driver is only supported on 32 bit machines.
My solution was to cha... | stackexchange/codereview |
I'm trying to execute the following CFML:
<cfquery name="koppelData" datasource="#request.DataSource#">
INSERT INTO t_user_profile
(Username, ProfileID, AanvraagID)
VALUES
(<cfqueryparam cfsqltype="cf_sql_varchar" value="#FORM.username#">,
<cfqueryparam cfsqltype="cf_sql_integer" value="#laatste... | stackexchange/codereview |
Is there any efficient algorithm to find the set of edges with the following properties, in a complete weighted graph with an even number of vertices.
the set has the smallest, maximum edge weight for any set that meats the other criteria possible
every vertex is connected to exactly one edge in the set
All weights a... | stackexchange/codereview |
Thanks for the messages about my first post about this problem. I will do a repost and try to be more clear this time. I guess this may be a trivial problem but I'm really stuck and need some help. This is my first time posting here.
using System;
using System.CodeDom.Compiler;
using System.Reflection;
using Microsoft.... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.