instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am getting an image and some information from a web server.
The image is stored in the path file:///store/home/user/ and the information is stored in a hash table.
Whenever I delete the app, the information regarding my app and the image should also be deleted.
How can I do this?
| stackexchange/codereview |
I declared an ib outlet as an uiimageview and attempted this code:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];... | stackexchange/codereview |
I use the following code to remove all KlientDoTrasa assigned to trasaOriginal and then create and assign new KlientDoTrasa based on collection: trasaToEdit.Klienci. In my test case assigned KlientDoTrasa and new KlientDoTrasa are the same, so I thought EF4 should not send any query to database, but it sends, first del... | stackexchange/codereview |
I've just wrote some code for a basic outline of a page. It for a game I run, but looking at the code I feel I've written it in the wrong order, and that i'm executing more queries than I need to.
$query = mysql_query("SELECT * FROM bodyguards WHERE username='$u'");
if($bg = mysql_fetch_assoc($query)) { // i... | stackexchange/codereview |
Some time ago I had a problem with Uploadify plugin for which I did found a solution described in this answer.
The problem in that question was substantially due to the fact that Uploadify uses a flash plugin and the flash plugin does not share the authentication cookie with the server-side code.
The solution was to u... | stackexchange/codereview |
I need to create some module specific routes, but without explicitly mentioning module name in route. Right now I have separate config file for each module (MODULE/configs/module.ini) and in the module bootstrap I push those routes into Zend Framework. The INI file holds routes information but it mention the module nam... | stackexchange/codereview |
i'm trying to implement kinetic scrolling of a list object, but i'm having a problem determining the amount of friction (duration) to apply based on the velocity.
my applyFriction() method evenly reduces the velocity of the scrolling object based on a duration property. however, using the same duration (IE: 1 second) ... | stackexchange/codereview |
Jnunemaker just updated his twitter gem (https://github.com/jnunemaker/twitter) and removed the Twitter::Oauth class. My code doesn't look much like his example, so I'm having issues updating it. Here's what my code used to look with the twitter 0.9 gem:
UsersController
def oauth
consumer = Twitter::OAuth.new('mykey'... | stackexchange/codereview |
typedef struct {
NSString *activty;
NSString *place;
float latitude;
float longitude;
} event;
typedef struct {
event *thing;
Node *next;
} Node;
This is the code I have in my .h file to create two structs to hold data (one for an events name/place/location, and one for the nodes of a linked l... | stackexchange/codereview |
My PHP code return JSON data to jquery autocomplete but autocomplete not working
Jquery autocomplete
$("input#txtaddkey").autocomplete({
source: "keyword.php",
minLength: 2
});
PHP code
$fetch = mysql_query("SELECT * FROM o_keyword where keyword like '%" . $query . "%'");
whil... | stackexchange/codereview |
Before I dive into development, I want to know if this is possible at all.
I'm a developer, but haven't developed an app. before, so sorry if the question sounds dumb..
Here is the use case -
User buys the app. and enables badges/alerts/sounds in the settings.
At certain point of time, my applications server sends ... | stackexchange/codereview |
I am wondering if it is possible to make a REST request from within a Map-Reduce or system.js function. I would like to be able to call an external service, and from the returned JSON results, take some ids and use them as BSON ObjectIDs for a second Mongo query.
An example for this would be selecting a collection of O... | stackexchange/codereview |
I need a case insensitive search for the following code...
while ((line = file.ReadLine()) != null)
{
if (line.Contains(line2))
dest.WriteLine("LineNo : " + counter.ToString() + " : " + line);
counter++;
}
I have tried like this
if (line.Contains(line2,StringComparer.OrdinalIgnoreCase))
But i... | stackexchange/codereview |
Consider the following:
public class Box
{
public BoxSize Size { get; set; }
public IEnumerable<Box> Contents { get; set; }
}
Box FindBoxBySize(Box box, BoxSize size)
{
Box _foundBox = null;
Action<IEnumerable<Box>> _recurse = null;
_recurse = new Action<IEnumerable<Box>>(boxes =>
{
... | stackexchange/codereview |
I am adding functionality to a legacy web application such that in certain circumstances we will log the user off, returning them to a logon page that is separate to our application.
The application is part classic ASP, part ASP.NET and uses an external company-wide authentication mechanism.
We can achieve the desired... | stackexchange/codereview |
I have an MVC2 web application that needs to record the number of unique logins by users. Each time a user logs in, there needs to be a record saved to a database. Just the basics like time, date and the like.
Given that the business requirements are to log only cases in one specific ActionResult (i.e. user logon), s... | stackexchange/codereview |
I have a WPF window with a TreeView that contains a checkbox at each node. I want to be able to capture the state of the checkboxes but I don't know how. (I am trying to do this without writing much of the code in XML)
Here is what I have in the XML:
<TreeView Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="1" Height="20... | stackexchange/codereview |
(Table)File has many (Table)Words
FK Words.file_id related to a single File.id
Default value of Words.frame is equal to File.frame for that PK/FK
Does this type of default relationship have a name? Examples on getting this setup? (MySQL)
Edit
The reason for this is that words may have the same frame as the file and if... | stackexchange/codereview |
I try to restore the database like this:
SQL = @"RESTORE DATABASE MyDataBase TO DISK='d:\MyDATA.BAK'";
Cmd = new SqlCommand(SQL, Conn);
Cmd.ExecuteNonQuery();
Cmd.Dispose();
but I always get error:
Msg 3102, Level 16, State 1, Line 7
RESTORE cannot process database 'M... | stackexchange/codereview |
How to make the GWT'S RichTextArea widget ReadOnly?
| stackexchange/codereview |
I would to to do a 4 digit code entry like app does in the remote app to verify to iTunes library.
Currently have 4 UITextFields, but am running into problems automatically moving the cursor to the next text field.
Using this code currently but this moves the cursor then places the text in the new first responder inste... | stackexchange/codereview |
How can I set a Binding Source to point to "this" UserControl CodeBehind? Eg. From a UserControl MarkdownEditor.xaml, I want to point to properties within MarkdownEditor.xaml.cs. Doing this without setting DataContext = this
Update: My Solution
This is what I did tho I marked @Alex B's solution as answer. I didn't want... | stackexchange/codereview |
Castle Windsor creates multiple instances of grand child objects using transient lifestyle.
Object A has a dependency on C1 and C2.
C1 and C2 both have a dependency on GC.
On buildup:
Using StructureMap only 1 instance of GC is created and passed to both C1 and C2.
Using Castle.Windsor a new instance of GC is created ... | stackexchange/codereview |
Hello
I try write program to create and copy some files.
If folder is not exist, when i use flag
"SH.fFlags |= FOF_SILENT;
SH.fFlags |= FOF_NOCONFIRMMKDIR;" at the same time, can't create folder and can't copy
file.
Any body know why? Thanks.
CString source;
CString target;
SHFILEOPSTRUCT SH = { 0 };
SH.hwnd... | stackexchange/codereview |
I have a repository that pulls from both db, and sometimes a cache.
To implement this, I created an interface ICacheWrapper that lets the repo use HttpRuntime.Cache, AppFabric, whatever. Concrete classes of the ICacheWrapper usually take the cache in their constructor like so: new HttpCacheWrapper(HttpRuntime.Cache)
T... | stackexchange/codereview |
I created a documentation site on Google Sites, and now I have to hand in that as a printed Document. I need all pages in the site converted to PDF to take to a printer, and I'm now realizing that GDocs has no "export as document" option. How can I accomplish this?
| stackexchange/codereview |
I am learning assembler, and found some the following surprising. I essentially copied some hello world code from somewhere on the internet
section .text
global _start
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80 ; interrupt for calling kernel
mov eax,1
int 0x8... | stackexchange/codereview |
I experienced this phenomenon in Python first, but it turned out that it is the common answer, for example MS Excel gives this. Wolfram Alpha gives an interesting schizoid answer, where it states that the rational approximation of zero is 1/5. ( 1.0 mod 0.1 )
On the other hand, if I implement the definition by hand it ... | stackexchange/codereview |
I'm trying to use OGNL to evaluate if the session is valid, in order to show some information. For that I've the following JSP
[...]
<s:if test="request.isRequestedSessionValid()">
[...] (show user name, etc)
</s:if>
But it doesn't work. I've also tried "#request.isRequestedSessionValid()","%{request.isRequestedSessio... | stackexchange/codereview |
I have the following css and html...
.hide
{
display:none;
}
<div>
<span class='kardashian hide'>Kimmy</span>
</div>
with the following jquery.
$('div').live('click', function(){
alert($('kardashian', this).val());
});
If I remove the "hide" class I get "Kimmy" like I would expect but when it has the "hide... | stackexchange/codereview |
Does anyone know how to change the DWR polling interval? This is really hard to find on the net for some reason.
| stackexchange/codereview |
Iam have a DBC file, which is a database file for a game, containing ingame usable spell data, like ID, SpellName, Category etc...
Struct is something like this:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct SpellEntry
{
public uint ID;
public uint Cat... | stackexchange/codereview |
I have a FancyBox set up on my site, but it is opening on PageLoad as opposed to what I want which is for it to be triggered by a click. I'm a total novice with jQuery and javascript, etc, so bear with me here. Below is the code I already have set up:`
$(document).ready(function() {
... | stackexchange/codereview |
I was wondering what values are allowed for the xml:base attribute?
| stackexchange/codereview |
Is it possible to specify relative paths for shared libraries when I do core analysis (I would like to specify relative paths at compile time instead of debug time)
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x00007f4433ffef00 0x00007f443402cc08 Yes (*) /lib... | stackexchange/codereview |
I have this ajax jquery code:
var form = document.getElementById('frm');
var data_string = form.serialize();
$.ajax({
type: "POST",
url: "my_php_file.php",
data: data_string,
success: function(data) {
... | stackexchange/codereview |
I have a JOptionPane popup in my applet normally, a-la:
Object[] options = {"Grade", "Save", "Cancel"};
selection = JOptionPane.showOptionDialog(this,
"Do you want to grade now or save your work to continue later?",
"Grade Or Save",
JOptionPane.DEFAULT_OPTION,
JOptionPane.QUESTION_ME... | stackexchange/codereview |
I'm trying to write a query that can select a particular date and count how many of those customers have placed orders previously and how many are new. For simplicity, here is the table layout:
id (auto) | cust_id | purchase_date
-----------------------------------
1 | 1 | 2010-11-15
2 | 2 ... | stackexchange/codereview |
I am trying to write a query that looks through all combo_items and only returns the ones where all sub_items that it references have Active=1.
I think I should be able to count how many sub_items there are in a combo_item total and then compare it to how many are Active, but I am failing pretty hard at figuring out ho... | stackexchange/codereview |
I've been following this site with a lot of admiration especially on how questions are professionally answered so I decided to be fully involved.
Please, I need urgent help on a project that I have been working on for a long time but it's almost stalled now just because of a critical issue.
An aspect of the program aut... | stackexchange/codereview |
I have a table which I need to get rid of. But there are several tables in the database referencing this table. Before I remove it, I need to modify the columns in the referencing tables. How can I find out which tables are referencing the table I want to remove?
| stackexchange/codereview |
String s="..<td colspan=2 style='border-bottom: solid 1px #efefef; width:100%'>" +
"<iframe width=\"100%\" height=\"150\" frameborder=\"0\" style=\"border: solid 1px #dedede; padding:2px;\" scrolling=\"no\" " +
"src=\"http://maps.google.com/maps?f=q&source=s_q... | stackexchange/codereview |
I have used my main.xml and the layout manager to test if my app fit on all available sizes via the pulldown menu (except 2.7) in the layout manager.
I have not run emulators with all these sizes but is that necessary seeing they fit in the layout manager?
Also reffering to the supported screen sizes here http://develo... | stackexchange/codereview |
If Bind is fundamental to monads, how come we don't use more SelectMany in Linq?
(Sorry, can't think of anything useful to add to the question)
| stackexchange/codereview |
Is it possible to add/update more than one instance at a time? For example, we have a domain class book with bname, tile. In the gsp we are showing one form with multiple bname and title fileds. Could anyone let me know how to write a crteate/edit actions?
| stackexchange/codereview |
I want to append data to an item in Memcached. But it seems that if the item does not exist, this action will not create an item and the data just would not be stored.
*talking php
| stackexchange/codereview |
how can i insert values in three tables using asingle insert query using single button
| stackexchange/codereview |
I have this simple scenario which doesn't work: I use icefaces and i have a simple page with some inputTexts and a submit button, this button will redirect to another page that will display the values of these inputTexts... my question is how can i get the values of these inputTexts from the request and display them in... | stackexchange/codereview |
I'm using the new JS SDK API. (Graph API)
However, if I include the FeatureLoader.js for old FBCOnnect, then it will overwrite the graph API functions..
so, is there anyway in new JS SDK that I can do requireFeatures(['Connect'] ...) as in
FB.Bootstrap.requireFeatures(["Connect"], function()
{
}
| stackexchange/codereview |
I'm looking to create a VSTO that performs as a meter for my users so that they can see how much of their Exchange quota they are using at any given time. The idea is that it will be in their toolbar and change from green (good) slowly to red (gotta delete stuff).
I have been searching most of the day online but have ... | stackexchange/codereview |
I need to use the advantages of delphi sets like "in" in c++, but I don't know if there is a data structure like sets in c++
I know that I may use an array instead, but as I have said I want to use sets advantages like "in", so is there any built in data structure like sets in c++?
If yes, please explain how to use it... | stackexchange/codereview |
I have a problem with the Facebook's API.
This is my code:
require_once "facebook-php-sdk/facebook.php";
$facebook = new Facebook(array(
'appId' => '(the app code)',
'secret' => '(the secret code)',
'cookie' => true,
));
$access_token = $facebook->getAccessToken();
$uid = "(my... | stackexchange/codereview |
I haven't got problems with code since my last problem with interface covariance. Today I took another approach to the OLGAtherer architecture and I found huge (for me) obstacle. I hope that its huge only for me and I will find answer here :) OK, please check this out:
I have abstract generic class:
abstract class Repo... | stackexchange/codereview |
I have a Sinatra server that is returning multiple JSON objects from the database in a streaming manner. The objects would look like:
{"a": 1, "b": 2, "c": 3}
{"a": 4, "b": 5, "c": 6}
...
but this is invalid JSON. I can add a hack into Sinatra's event processing (manually injecting the missing array delimiters) to m... | stackexchange/codereview |
I have an http module that tests for certain values in the BeginRequest method. On failure, I am writing a log and calling Response.End.
Now, I'm also doing a few things with the response in the EndRequest. I'd like to bypass those items if the BeginRequest tests failed. Unfortunately, Response.End doesn't exactly k... | stackexchange/codereview |
I continue to work on shadow volumes in OpenGL, after finishing with volume itself, i need to draw a shadow using stencil buffer, and thats where i'm stuck :) I rendered this scene: http://prntscr.com/17lyr
As you see, sphere represents light source, and one mushroom has its volume drawn directly to the screen, and one... | stackexchange/codereview |
I'm wondering if there is a tool that will save/push my MS Excel (or OO calc) data to CouchDB database. Googling didn't help a lot so I don't think there is an existing solution for this.
Excel -> json -> Curl to CouchDB would do the trick but I'm still hoping there is something out there that will save my time on pro... | stackexchange/codereview |
I'm having an issue with a rails controller not being able to find a class definition because it resolves the scope incorrectly.
Specifically, in my ApplicationController:
require 'memcache'
$memcache = MemCache.new("localhost:11211")
doesn't work. I get the error:
ActionController::RoutingError (uninitialized constan... | stackexchange/codereview |
I just started coding a gtalk chat bot using libjingle. I'm having a problem getting the compiler to find the XmppClient class called by XmppPump class. The XmppClient is provided by libjingle in the talk/xmpp/xmppclient.h file, but for some reason it's not working for me and it has been frustrating me lately. Hopefull... | stackexchange/codereview |
I have a working repoze.who/what setup (on a Pylons app). I now want to automatically log new users in after signup, without them having to use the login form. I've browsed the repoze.who docs and source code and, maybe I'm just missing it, but I can't find out how to set the logged-in user from code, without a new pos... | stackexchange/codereview |
I want to set the opacity of a Stroke which is obtained from a user drawing on the screen. I can get the drawing, size, outline of the stroke to set but not the Opacity of it.
This is my code
StylusPointCollection spTemp = e.StylusDevice.GetStylusPoints(MyIP);
tempStroke.StylusPoints.Add(spTemp);
tempS... | stackexchange/codereview |
I'm wondering if anyone knows of a PHP setting that will automatically escape double quotes.
My issue is that on my local server, i'm posting this string to the server:
{"0":{"id":"19","goal":"34"},"1":{"id":"22","goal":"657675"},"2":{"id":"21","goal":"456"}}
and it works fine. However, on the production server, I pos... | stackexchange/codereview |
I'm creating a web app using Spring 3 and would like to harness the power of the Spring Expression Language but have run into a problem. I need to set the value of a property on one of my beans to the result of a method call on another bean. I know I can do this but the issue is that the result of that method call ma... | stackexchange/codereview |
i'm writing a schema, and i can't think of how to represent this xml fragment:
<ActionTaken>
<Description partID="H1" sequenceNumber="01">i did this</Description>
<Description partID="H1" sequenceNumber="02">and then some more stuff.</Description>
</ActionTaken>
What i had initially created was:
<xs:element name... | stackexchange/codereview |
Has anyone found a way to do perform speech recognition without displaying Google's voice recognition dialog box? Can this be suppressed during recognition, or if not, hidden from view? I would still need to be able to initiate the voice capture, detect the silence to let me know the capture is complete, then convert... | stackexchange/codereview |
Short Question:
If I have a Silverlight application built in SL3 can I detect at runtime if the client is using SL4 and use the Cursors.NESW that is only available in SL4?
More Info:
I have a Silverlight application built using Silverlight 3. I'd like to display a cursor Cursors.SizeNESW in my application. The way I wa... | stackexchange/codereview |
I have a matrix with more than 80 rows. How can I tell latex that I want it to continue over to the next page rather than stop showing the remaining after it has reached the end of the page?
Perhaps I should add that the matrix is of the following nature:
\begin{table}[H]
\[
\bordermatrix{
~ & 1 & 2 & 3 & 4 & 5 & 6 \cr... | stackexchange/codereview |
Using Ruby + regex, given:
starting-middle+31313131313@mysite.com
I want to obtain just: 31313131313
ie, what is between starting-middle+ and mysite.com
Here's what I have so far:
to = 'starting-middle+31313131313@mysite.com'
to.split(/\+/@mysite.com.*/).first.strip
| stackexchange/codereview |
Alright, so my favicon isn't showing up for some reason. It's at image/favicon.ico (I've checked it like 5 times).
This is the code I use for it:
<link rel="shortcut icon" href="images/favicon.ico" />
And this is the site: http://prime.programming-designs.com/
| stackexchange/codereview |
I need to change an existing code base from naming convention X to something like Camel Case.
It's in Visual Studio 2008. A couple of hundred thousand lines of code. Some of it is C#. Some of it is unmanaged C++.
I started to re-factor this manually. But, it's pretty mechanical. I was thinking that a product could d... | stackexchange/codereview |
Here are some HTML ASCII Codes:
http://www.ascii.cl/htmlcodes.htm
I have a string that may look like "All in a hard day 's work"
What is the best way to replace that ascii code, with an apostrophe?
| stackexchange/codereview |
I was working on writing a small code snippet to reverse a string using list appends and pop.
The script that I wrote is as follows:
someStr = raw_input("Enter some string here:")
strList = []
for c in someStr:
strList.append(c)
print strList
reverseCharList = []
for someChar in strList:
reverseCharList.appe... | stackexchange/codereview |
I just can't seem to find a way on the command line to say "copy all the files from directory A to directory B, but if the file already exists in directory B, don't overwrite it, no matter which file is newer, and don't prompt me."
I have been through copy, move, xcopy & robocopy, and the closest I can get is that you ... | stackexchange/codereview |
I dynamically load one of many user controls based on which tab the user clicks. I store the selected tab index in view state. The user control has a checkbox on it that fires an OnChanged event. My problem is that if I load the user control in Page_Load, the checkbox event doesn't fire because the control didn't get c... | stackexchange/codereview |
I want to implement a navigation history using jQuery and AJAX in a cross-browser manner. My approach is to use window.history.pushState and fall back to a hash url /#!/url in browsers that do not support window.history.pushState.
For example:
<a href="/home">home</a>
<a href="/about">about</a>
<a href="/contact">cont... | stackexchange/codereview |
How can I detect key presses reliably with a hard or soft keyboard?
My app remotely controls another device over wifi, and I need to detect every key press on either a soft or hard keyboard. I don't really need an EditText because I just need to send the characters one at a time as they are pressed and don't need the ... | stackexchange/codereview |
Trying to send mail with the following script, I substitute $1 with the email address I want to send the email to.
#!/bin/bash
# script to send simple email
# email subject
SUBJECT="SET-EMAIL-SUBJECT"
# Email To ?
EMAIL="$1"
# Email text/message
EMAILMESSAGE="/tmp/emailmessage.txt"
echo "This is an email message test"... | stackexchange/codereview |
What is the use of c++ non-type template values? What can be done with this:
template <int I>
class MyClass
{
public:
MyClass();
.
. //Use I;
.
}
that can't be done with this:
class MyClass
{
int I;
public:
MyClass(int i) : I(i) {}
.
. //Use I
.
}
The template version seems to me t... | stackexchange/codereview |
I've been experiencing this very odd problem lately in Heroku.
I develop and test locally, then I push the changes to Heroku. Even though the files pushed have been changed (and Heroku does recognize it and push the new files), when I look at the exact webpage on Heroku, it behaves as though it was still using the old... | stackexchange/codereview |
I am working on a bilingual site in the latest version of Drupal 6. I installed the Internationalization module and the Views translation module, among many others.
The problem: On /admin/build/translate/search, some elements (e.g. the view title) appear in the text group "Views" and Drupal assumes they are in German, ... | stackexchange/codereview |
Hi lets say I've got this array:
$check_post = array(
$_POST["a_post"],
$_POST["b_post"],
$_POST["c_post"],
$_POST["d_post"],
$_POST["e_post"],
$_POST["f_post"],
$_POST["g_post"],
$_POST["h_post"],
$_POST["i_post"]
);
I want to check whether any elements of this array are repeated, so the best I got is thi... | stackexchange/codereview |
I have this one question, about Lua metatables. I heard and looked them up, but I don't understand how to use them and for what.
| stackexchange/codereview |
OK, this is ugly. I've got a .war file that runs in a Tomcat 6 instance on a Linux box (CentOS 5). The Java code includes a call to the Runtime.exec(cmd) method, where it shells out to a 1-line shell script that runs a native application. (R, if you're curious...) All's well, except the native app needs to have some en... | stackexchange/codereview |
i am making an application in which i insert a customer_Id with Double datatype in a Textbox1.
i use the customer_ID's value to access the database of respective customer_ID.
i had converted the value of Textbox1 into Double datatype using
double cust_ID;
Cust_ID=Convert.ToDouble(Textbox1.Text);
and the query i... | stackexchange/codereview |
OK, this is a pretty simple problem, but I'm curious: what is the best approach in terms of efficiency and style?
I often need to select data in MS SQL, but am looking for a single result. If there is no match in the database, I'd like to return a default value.
Here are a few approaches I take:
Do it in Code
--Regul... | stackexchange/codereview |
I'm using the jquery.form plugin to asynchronously upload documents in an MVC project.
Taking my lead from this previous answer, here's what I have on the page:
<% using(Html.BeginForm("Create", "JobFile", FormMethod.Post, new { id = "uploadForm", enctype = "multipart/form-data" })) %>
<% { %>
<%: Html.ValidationSummar... | stackexchange/codereview |
Using jquery, I want to get all links on the page with the css class 'c1' and that have 'abcdef' in the url of the href.
So far I know how to do:
$(".c1")
| stackexchange/codereview |
I have a program attempting to use classes from the jakarta-poi-3.0.2.jar in my /usr/share/java directory:
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
etc...
When I compile, I get a package org.apache.poi.hssf.use... | stackexchange/codereview |
I have a Perl based REST service and I'm using C# and WCF to make a client to talk to the service. I have a few expensive calls and would like to construct a caching system. I need the ability to check and see if newer versions of the cached data exist on the server. I had the idea to use the standard "If-Modified-S... | stackexchange/codereview |
I am trying to use data annotations to validate my Entity Framework models using partial classes.
I was told in this article (MSDN), that the partial class should be in the same namespace as the data model. My data model is located in EntityFrameworkDataProvider, so my partial class which is located in MyApp.Backend.Mo... | stackexchange/codereview |
Following the recent announcement of the new Blackberry Tablet OS, it's SDK and Simulator, any ideas where one could find resources and tutorials on how to develop for their new tablet OS? It will be nice for once to catch the wave on time.
| stackexchange/codereview |
Take for example a plugin of the form:
jQuery.autocomplete = function(input, options) {
function abc(){}
function def(){}
}
The functions run fine and as expected. However, I want to be able to invoke function abc(); from a $(document).ready(function() {}); statement. The following does not work, and I'd rea... | stackexchange/codereview |
I had the following code line which compiles just fine under g++ and Visual Studio prior to 2010.
std::vector<Device> device_list;
boost::function<void (Device&, boost::posix_time::time_duration&)> callback =
boost::bind(&std::vector<Device>::push_back, &device_list, _1);
Where Device is a class, nothing special a... | stackexchange/codereview |
I´m writing my first programs in Perl, and wrote this:
use strict;
use warnings;
$animal = "camel";
print($animal);
When I run it, I get these messages from the Windows command-line:
Global symbol "animal" requires explicit package name at stringanimal.pl line 3
Global symbol "animal" requires explicit package name at... | stackexchange/codereview |
Basically, I have multiple widgets I'm trying to switch between... and the default is a QTabWidget. Aside from some modification, the two examples (QStackedWidget and QTabsExapmle) are just mingled together. I can't get the "connect" portion to work (get an error: no matching function for call to QTabsExample::connec... | stackexchange/codereview |
I am trying to using wordpress xml-rpc on windows phone 7 but can't find any API's for making rpc calls. Does anyone know of any libraries or a way to do it.
| stackexchange/codereview |
In this question I've been told about Sencha Touch as the "solution" fo r writing x-platform mobile/touch application. I browsed Sencha Touch demos using an iPadSimulator and wow... The experience is native, not web application.
So for what I need to achieve, this is very good.
Now, how is it possible from Delphi creat... | stackexchange/codereview |
I have tried this before. I'm completely at a loss for ideas.
On this page this dialog box to qet quotes.
http://www.schwab.com/public/schwab/non_navigable/marketing/email/get_quote.html?
I used SPY, XLV, IBM, MSFT
The output is the above with a table.
If you have an account the quote are real time --- via cookie.... | stackexchange/codereview |
<section class="photos">
<table>
<tr>
<td><a href="/a"><img src="b.jpg" /></a></td>
<td><a href="/a"><img src="b.jpg" /></a></td>
<td><a href="/a"><img src="b.jpg" /></a></td>
</tr>
<tr>
<td><a href="/a"><img src="b.jpg" /></a></td>
... | stackexchange/codereview |
after I create a new object : Map<Float,Integer> m = new HashMap()<Float,Integer>;
I have an array with "float" numbers which are unique . I want to add these float numbers as the m's key! can I do this like : m.put(new Float(a[i]),"cat"); ?
thanks
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.