instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Now with new java 1.6.22 update installed (previous version was OK) my customers are reporting a nasty issue.
editorPane.setPage() throws exception ONLY when using my applet 2nd time
(meaning RELOADING my APPLET with browser or applet viewer)
Problem does not occur if RESTARTING applet, just when RELOADING.
Exception... | stackexchange/codereview |
I am just starting my first MVC Web Application and have noticed that I now not only have a Web.config file in the root, but 2 sub-files, for Debug and Release configurations. I've read up a bit on what this is, in that I can put specific configurations for my different environments in each file, but I am confused as t... | stackexchange/codereview |
Is there anything in the C# which like the following <key, string, string> which I can use key to access the second and third field quickly.
| stackexchange/codereview |
I am a novice with Java.
I have to implement an array of objects that changes in size during execution.
The code I am writing is going to be ported on Android, too.
According to your experience, what's the best class to implement that?
Thanks,
Dan
| stackexchange/codereview |
I want make this effection:
a{color:#000;} , when I make a a:hover, the hyperlinked color gradient from #00C to #000, the gradient time maybe 1 second.
Is it could be make only be css?
| stackexchange/codereview |
Im making an application that uses of API-threads in C, The program takes N-files (N>2) with names disordered,per each file is generated a thread of execution which sort the files using the function qsort, after being ordered files, each thread should create a file keeping the original file intact and displaying the so... | stackexchange/codereview |
I'm using Rails with the JQuery plugin, and have some really complicated validations for one of my forms that I decided to use JQuery for. For very simplified example, the fields A1, A2, ... A4, B1 - B4, and C1 - C4. Just a few of the rules are:
if a user inputs any data into A,B, or C, then they MUST input into all... | stackexchange/codereview |
my question is pretty simple, I think. And it's more about math than coding.
I receive 15 frames per second from web-cam. But I have to drop some of these. For example, if client is requesting 8 fps - I do drop each second frame and it's ok. But how should I drop if 12 fps or 6 fps are requested?
I think there's some ... | stackexchange/codereview |
I need to create a scrolling grid of buttons. The easiest way I could think was to use a uitableview and draw the buttons on at run time, 3 buttons per cell. This works fine but the problem comes when trying to scroll the table. If the user tries to scroll the table but the touch begins on the button then the tableview... | stackexchange/codereview |
I am facing a problem with WPFDataGrid. I have bound my DataGrid to XML data. I am using DataGridTemplateColumn for all the columns.
After the initial data is loaded everything(like sorting, etc) works fine. Then once I edit some cell say a TextBox in template column and then try to sort the grid, the cell which conta... | stackexchange/codereview |
Hello
Am a beginner to XSL hardly know few commands.
I was trying out a sample where i have to format a number based on the entry in the XML.
I want to use the format-number function to achieve the same.
<Details>
<Order>Bulk Order</Order>
<OrderDate>1997-07-16T19:20:30+01:00</OrderDate>
<Quantity>100</Quantity>
<Price... | stackexchange/codereview |
i'm using hibernate with SESSION, i know that @PreUpdate etc.. doesn't work with session, so i'm using hibernate event to simulate it.
But i have some problems, i use saveOrUpdate to persist an entity, so hibernate manage the save or the update for me, but i think in this way the only event fired is onSaveOrUpdate even... | stackexchange/codereview |
I need to filter punctuation from UTF-8 strings quickly in C. The strings could be long and they are quite numerous. The function I'm using currently seems very inefficient:
char *filter(char *mystring){
char *p;
while ((p = strchr(mystring,'.')) != NULL)
strcpy(p, p+1);
while ((p = strchr(mystrin... | stackexchange/codereview |
I want to get time from database then use it to compare with current time. How can i do it?
$timeStart = $row['timeStart'];
echo 'Time Start : '.$timeStart;
echo "</br>";
$time_offset =ICT; // Change this to your time zone
$time_a = ($time_offset * 120);
$time = date("M-d-Y H:i:s",time() + $time_a);
echo 'Current time ... | stackexchange/codereview |
Note: This is not about using both node.js and HTML5 sockets. I'm also not interested in discussing the merits of the setup I'm describing.
node.js runs on the server, and, since it supports connecting via sockets as a client, it can act as a middle layer between an HTML5/JS client and server that uses TCP/IP (such a... | stackexchange/codereview |
Is there a way (preferably a simple, concise way) to send an email from the command line in UNIX with multiple encrypted attachments?
This is in a workplace environment, so I am hesitant to install anything.
| stackexchange/codereview |
I have created a restful service. On client I can run the service with out no error. But trougth the Server I get error.
This is the error message:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item
| stackexchange/codereview |
I have an application with several Activities in Android and I want the user to be able to log-out by pressing a menu button. The problem I have is that
A) Android doesn't let you terminate the application and
B) even when I send the user to the LoginActivity again they can always press back and get right back to the p... | stackexchange/codereview |
I want to create an empty directory structure bar2 from a nonempty directory tree bar1.
Both bar1 and bar2 are at the same hierarchical level. How can I use mkdir in an efficient manner so that intermediate directories are automatically created?
To create a directory list from bar1 with find and order it if necessary... | stackexchange/codereview |
I'm studying UNIX programming and was experimenting with read/write system calls.
I have a file with a pair of integer:
4 5
and I wrote this code to read the numbers:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
typedef struct prova {
int first;
int secon... | stackexchange/codereview |
I to start learn wxPython is usin YouTube, I watched 14 tutorials,
and could not find more video tutorials on this program. Where can I find more information about this program
Please Help me! Dont delete this question. Thanks :)
| stackexchange/codereview |
Here's how I set up my app. I have a root view that loads a subview over the top of it during the viewDidLoad method. In the subview I have a button that, when clicked, hides itself and reveals the root view. Everything is working great, but I hate having a view that is loaded but is not in use. I tried to put a me... | stackexchange/codereview |
I'm pretty sure the answer is "you can't use templates, you have to use virtual functions (dynamic polymorphism)", but it seems like I'd have to duplicate a lot of code if I went that route. Here is the setup:
I currently have two classes, ColorImageSegmentation and GrayscaleImageSegmentation. They do essentially the s... | stackexchange/codereview |
I have this menu :
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script>
$(function() {
$("#menu").find("li").each(function() {
if ($(this).find("ul").length > 0) {
$(this).mouseenter(function() {
$(this).find("ul"... | stackexchange/codereview |
I am retrieving a range of keys in Berkeley DB database using a cursor. I do a get using the DB_SET_RANGE flag followed by a number of gets using the DB_NEXT flag.
Everything works fine. The problem is I only need the keys for this particular operation but I always get both keys and associated values. Since the values ... | stackexchange/codereview |
Possible Duplicate:
Can Ruby print out time difference (duration) readily?
I have a length of time that is stored as a number of seconds. Is there a way to format it either into HH:MM format or to something human readable, such as '2 hours, 15 minutes'?
| stackexchange/codereview |
I'm using MFC, and I'm trying to draw an image to the screen. I've got the following OnDraw function:
void CgraphicstestView::OnDraw(CDC* pDC)
{
CgraphicstestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
m_Bitmap.LoadBitmap(IDB_WALL); // m_Bitmap is a CBitmap member of CgraphicstestView
... | stackexchange/codereview |
I need to iterate the members of a group using the System.DirectoryServices classes.
The problem I am seeing is that after I obtain the DirectoryEntry for the group, the "members" property only contains 1500 entries. In reality, the group has more than 4000.
Is there some setting that tells the DirectoryServices class... | stackexchange/codereview |
I have a stored procedure that creates a field bases on a CASE value. How do I do the same in LINQ? Any ideas?
Basically this is the old stored procedure (truncated for ease)
SELECT M.Period AS 'Period' ,
C.Code AS 'Group' ,
C.ClientCode AS 'Code' ,
C.ClientName AS 'Name' ,
CASE WHEN ( SELECT ... | stackexchange/codereview |
I want
<link rel="stylesheet" type="text/css" href="/css/site.min.v1.1.css" />
<script type="text/javascript" src="/js/site.min.v1.1.js"/>
same as
<link rel="stylesheet" type="text/css" href="/css/site.min.css" />
<script type="text/javascript" src="/js/site.min.js"/>
and it can use with /css/site.v1.1.css
but it ... | stackexchange/codereview |
I am in the process of designing a web application which will have multiple installable modules that provide different functionality. There's a lot of common stuff going on here and I have 3 C# class libraries that I know will be easy to use on different projects.
The bit I am stuck on is the actual website itself. I... | stackexchange/codereview |
I'm trying to create my own panel (in Blender 2.55), that will help me modify/create objects.
I've tried the following example:
import bpy
class OBJECT_PT_My_Panel(bpy.types.Panel):
bl_label = "My Panel Test 1"
bl_region_type = "WINDOW"
bl_space_type = "PROPERTIES"
bl_context = "object"
height = b... | stackexchange/codereview |
I've looked on Google, but I haven't been able to find the best, simplest way to display SQL tables through PHP. I'm new at PHP and SQL, so I'm a bit confused. I have this so far, but I'm not even sure how the rows work. I just want to display the whole table.
<?php
$dbname = 'my_db';
if (!mysql_connect('localhos... | stackexchange/codereview |
I have added the reference of Assemblies(System.Management.Automation and System.Runtime.Remoting) in my C# application and used the powershell interface in my project.
but during the compliation of the code,am geting an error saying
"The type or namespace name 'Remoting'
does not exist in the namespace
'System.M... | stackexchange/codereview |
My client wants so have a loading animation/movie (already created that in Flash CS5) on the website's start page (root, '/' - the first thing you see when you go to domain.tld).
When the animation's finished it should forward to another page (i.e. the real page with the content), e.g. domain.tld/somepage.htm
I can do ... | stackexchange/codereview |
Ok, currently I have a view in my android app that displays a list of contacts for our agents that is retrieved via a web service.
I have built a simple array adapter that binds my contact objects to the listactivity and just uses a contactrow.xml template to display anywhere from 1 to 1000 contacts.
This works fine bu... | stackexchange/codereview |
I'm working on maps on Android. I create at runtime overlays and, when clicked, I show a dialog that, when clicked, goes to a new activity. I don't like so much the dialog so I would like to show a smaller clickable object (like in foursquare or in photos application for iPhone). Has anyone done something similar?
| stackexchange/codereview |
Can anyone recommend a good IDE for general C coding and kernel development under Linux?
A few conditions would be:
NOT ECLIPSE - or any other heavy-weight Java based monstrosity that has esoteric compatibility issues, and runs like a pig.
Must work and play nice with Cygwin - or other ways of running it remotely (thr... | stackexchange/codereview |
I am new to VB.Net 2008. I have a task to resolve, it is regading extracting characters from a long string to the console, the extracted text shall be reformatted and saved into a CSV file. The string comes out of a database.
It looks something like: UNH+RAM6957+ORDERS:D:96A:UN:EGC103'BGM+38G::ZEW+REQEST6957+9'DTM+Z05:... | stackexchange/codereview |
We have a CSV uploader where users can upload a CSV file filled with address, city, state, zipcode. The CSV files can be hundreds, thousands, even 10's of thousands of rows.
We need to geocode the rows; no problem, we are using Google Maps RESTFul Web Service, but I don't want to make the user wait while we geocode eve... | stackexchange/codereview |
Is there a way to know is certain FrameworkElement was rendered to the screen. For example. I have two rectangles, and one overlap other. But I'm not sure about "how much" one overlap other.
So I need to know is user will see both rectangles, or will see only one, or will see one fully and one partially?
| stackexchange/codereview |
I'm working on my final year project using java swings and jasper reports for reporting.The application including the reports work fine when I run the application in netbeans but when I deploy it to a jar file and then try to execute it using my command prompt I see this huge text of exception.
Exception in thread "AW... | stackexchange/codereview |
I'm currently using Drupal Views 2 to build custom views. This works fine so far, if there wasn't a feature needed: One should be able to filter the results by different fields via URL, in the form of:
http://domain/node/M/[key]:[value],[key2]:[value2],...,[keyN]:[valueN]
The key names are fixed and may not be altered.... | stackexchange/codereview |
If you create a Greasemonkey script with @include * and go to a site like youtube, it runs the script 20+ times every time you refresh. This is on Firefox, not sure about Chrome.
Is there a way to prevent this?
| stackexchange/codereview |
If I have a war file genarated in Windows machine and I deploy that to the Jboss in Linux environment, Do I need to make any changes in Jboss server configuration files?
When I tried to open an application it says the "The requested resource (/helloworld) is not available". But the same application if I open in Windows... | stackexchange/codereview |
I have a mySql query which adds certain interval of time to datetime field.
UPDATE table T
SET T.ending = DATE_ADD(T.ending, INTERVAL T.hours * 3600 * some_other_variable_factors SECONDS))
Now, I need to detect if new ending time is in between some hours (let's say 20:00 to 06:00), which should be excluded from ... | stackexchange/codereview |
Given string s = '(A /something_1)(B /something_2)(C /something_3),/,(D /something_4)(D /something_5)'
I would like to get this output: (C /something_3),/,(D /something_4)(D /something_5)
I keep matching the whole string s, instead of getting above substring.
I am using re.search(r'(\(C.*\)),/,(\(D.*\))+')
Any help is... | stackexchange/codereview |
I've recently had a crash concerning a selector not being found when a notification was posted using NSNotificationCenter. What can be causing this error?
I've noticed that there was no user code being called after the notification was posted, so that doesn't seem to be a problem on the receiving side of the notificati... | stackexchange/codereview |
I have this table cell, to which I'm appending a radio button through jQuery. It shows up OK in Firefox, but not in Chrome or IE.
I'm pasting in the minimized versions of this (just the code for a single radio button instead of all of them)
Here's the table row:
<tr>
<td style="text-align: right; verti... | stackexchange/codereview |
There is a design problem like this.
Suppose you have a set of class that implements similar methods but not identical ones.
Example : The ClassA has methods like this.
void Add(string str);
void Delete(string str);
List<string> GetInfo(string name);
Another class, ClassB has the following methods.
void Add(Dictionar... | stackexchange/codereview |
I have a simple dataform created that reads address information.
The address information is stored across multiple tables: Address, City, Province, Country. To simplify this question, I will only refer to Address and City.
I'm accessing the data through WCF RIA Services context. My query in the Service is:
public IQu... | stackexchange/codereview |
When compiling the following C code with ndk-build in Terminal (I'm running Ubuntu):
#include <jni.h>
#include <GLES/gl.h>
#include <GLES/glext.h>
#include "org_opengldrawinjni_DrawinJNI.h"
JNIEXPORT void JNICALL Java_org_opengldrawinjni_DrawinJNI_Draw
(JNIEnv *envptr, jobject jobj)
{
GLfloat vertices[] =
{ 1.... | stackexchange/codereview |
Can somebody give me the regex for validating the phone number in the format
xxx.xxx.xxxx exactly(three digits and a dot and three digits and a dot and four digits)?
| stackexchange/codereview |
I am creating the object lookup table and not sure what exactly to call an object. This is a social network. I know items like photo, video, status etc are objects but what about account settings, mail folders, mail attachments, error messages, etc? Some things like "Tags" is that an object by itself or only when we co... | stackexchange/codereview |
Here is the HTML for 2 radio buttons and label text next to them. There are several radio buttons on the page, each with different shipping options. I am trying to verify that a specific option has the right price. So I need to get text from the tag AFTER the radio tag. So I am searching by the shipping option, but I n... | stackexchange/codereview |
is there a way to run a specific command every time gnome-screensaver is activated?
thanks
| stackexchange/codereview |
I am new to C and am trying some macro statements. I have a line like this:
#define write_data(src, TYPE, VALUE ) (write_implement(src, sizeof(TYPE), &(VALUE)))
And in a later function, I would like to use memcpy to copy the VALUE in another memory zone. Like this:
void write_implement (void* src, int size_of_type, vo... | stackexchange/codereview |
I have been searching for a solution for hours.. with absolutely zero luck.
I set up a Local Notification:
UILocalNotification *notif = [[cls alloc] init];
[dateComp setDay:j+1];
[dateComp setHour:[[time objectAtIndex:0] integerValue]+offset];
[dateComp setMinute:[[time objectAtIndex:1] integerValue]];
NSLog(@"Year: ... | stackexchange/codereview |
I would like to initialize a jQuery plugin with a function instead of a static property.
It works like this:
$("#sliderPrice").slider({
step: 1,
smooth: true,
limits: false,
scale: ['24h', '48h', '3 days', '1 week']
});
What I'm trying to do is this:
$("#sliderPrice").slider({
step: 1,... | stackexchange/codereview |
I am programatically copying tables and graphs from Excel to PowerPoint.
Ideally, I'd like to center the graphs on the slide and resize them to fit the slide if necessary.
This shouldn't be too hard, and I can check & modify .Top, .Left, .Width, .Height of the shape just fine, but how do I find out the width/height of... | stackexchange/codereview |
how can a host find the mac address of system in another subnet.
| stackexchange/codereview |
how do you use MV in Qt? I've tried these two approaches:
If there is an existing/legacy
code "data"-classes, I use model
as a facade. The
Model-implementation class gets a
reference to data, and calls its
functions on model-item access
calls.
For new implementations I derive
the data class from QAbstractModel.
Is t... | stackexchange/codereview |
We catch this error sporadically. Does anyone know what could it be?
The URL give by our error logging get this weird url for this error :
http://ourWebSite.com/ScriptResource.axd?d=-TlQhVhw2O9j_FRLgdQvFzJxWKYVH6aV62Jse0uO_9PoMsQJaDGiZYtRoBbTATQiWul69JuMDMqOA-yDDycgyNFrGPA_wlnKXZEyWGfJeCg1&t=3717b609
And the error i... | stackexchange/codereview |
i'm working in a little project.
The idea is send information from mobile device to a server, then the sever performs some calculations and return a response to de device.
I know how to do this using Sockets (directly), ut I was wondering if there were any other method (better) for this communication.
Something to imp... | stackexchange/codereview |
In Wagner's "Effective C#," item 23, he explains that
interface methods are not
virtual...they are a declaration of a
concrete implementation.
I find that to be a conundrum, because it means that interface methods represent early binding, and yet they have the behavior of late-binding. It rouses curiosity of ho... | stackexchange/codereview |
This might be a stupid question, but I have a little problem with understanding of C Pointers. Even more when it comes to arrays. For example:
char ptr[100];
ptr[0]=10;
fprintf(stderr, "&ptr: %p \n ptr: %p \n*ptr: %d\n", &ptr, ptr, *ptr);
if ( &ptr == ptr ) {
fprintf(stderr, "Why?\n");
}
How is this even possible?... | stackexchange/codereview |
In this model
class Rep(db.Model):
mAUTHOR = db.UserProperty(auto_current_user=True)
mUNIQUE = db.StringProperty()
mCOUNT = db.IntegerProperty()
mDATE = db.DateTimeProperty(auto_now=True)
mDATE0 = db.DateTimeProperty(auto_now_add=True)
mWEIGHT = db.IntegerProperty()
I want to do:
mWEIGHT = mCOU... | stackexchange/codereview |
I implement search engine dedection using the element in conjunction with the mammoth list provided by Owen Brady: http://owenbrady.net/browsercaps/CodeProject.xml
I see no reason to change to use .browser files instead of using browserCaps. Are there any reasons why I should do so?
| stackexchange/codereview |
I have a situation that I'm sure must be fairly common. I have some Maven-built applications that deploy to different types of application server - like Tomcat, JBoss, etc.
The build processes 'tunes' the deployable artifact to the specific target type of application server (for example, different included dependencies... | stackexchange/codereview |
This may be my own misunderstanding of how Python imports and search paths work, or it may be a problem in the packaging of the caldav package.
I have set up a virtualenv environment named myproject
In the top level of myproject, I have a script test.py which contains two imports:
import lxml
import caldav
In this dir... | stackexchange/codereview |
Hey there, I'm trying Multitasking in the Simulator (I only have a 2nd gen iPod and an iPad) and I'm still having some problems. My testing methods look like this:
- (void)applicationDidBecomeActive:(UIApplication *)application {
NSLog(@"Entering %s",__FUNCTION__);
if (enteredFromBackground) {
NSLog(@"Entering fro... | stackexchange/codereview |
I need to pass variables dynamically to another view.
Like array_merge() function does, but it only accepts arrays.
Thanks. ;)
| stackexchange/codereview |
Given an scala XML object, can I perform a xpath string query like "//entries[@title='scala']" ?
Ideally, it would be like:
<a><b name='n1'></b></a>.xpath("//b[@name='n1']")
I can't manually convert all the xpath queries to scala's internal xpath-ish method calls as my program will is dynamically accepting xpath querie... | stackexchange/codereview |
I have a navigation-based iPhone app that goes down 3 levels deep currently. The MainWindow nib has inside of the Navigation Controller a navigation bar, toolbar, and a reference to the Root View Controller which has the toolbar items and navigation items inside of it in the hierarchy of stuff in the nib file. My other... | stackexchange/codereview |
I am trying to use one join model for two separate but very similar associations. Here is what I have:
Two primary models: Package, Size
Pacakges have many sizes but there's a wrinkle. The sizes need to be allocated as a size for top or bottom. My current associations on Package are:
has_many :package_sizes
has_man... | stackexchange/codereview |
@Entity public class Organization {}
@Entity public class User {
@ManyToOne
Organization org;
}
The @ManyToOne interface in the above code is modeled as "Organization org", even though only the organization id is stored in the database. Can't I just model this as Integer orgId so that I can avoiding loading t... | stackexchange/codereview |
I'm trying to use MapPoint's COM API from VB6, running it in application mode, but when I close things down, MapPoint still hangs around! How do I get it to stop cleanly? Yes I've tried calling the Application object's Quit method.
| stackexchange/codereview |
I'm currently using Visual Studio 2010 (and also have a copy of Visual Studio 2005 which I'm also happy to use if the functionality is available in it but not '10)
What I'm wondering is if there is any way to highlight pieces of code?
For instance, I'm currently working on an assignment to take a piece of code, and c... | stackexchange/codereview |
I'm attempting to use the DecimalMin validator from NHibernates Validator library. Unfortunately, due to compiler restrictions I'm getting errors when attempting to utilize it. I'm sure its something simple, but I'm at a point where I need to move onto another task and not burn anymore time on it so any help would be a... | stackexchange/codereview |
I have this reg ex
var id = url.match(/(\d+)\/\d+$/)[1];
that is parsing a url
http://whatever.com/something/70/48/359
It is grabbing the 48 as it should but it fails on
http://whatever.com/something/70/48/359#
why is the # messing up the regex
| stackexchange/codereview |
I have a table with a primary key which is built from three columns. In an other table I would like to reference to them as one single column foreign key. How can this be resolved? Maybe an id alias? Or how can this be resolved?
| stackexchange/codereview |
I'm using MongoDB w/ Sinatra for an iPhone app.
I have a users MongoDB collection and a picture GridFS collection. Each user has one picture, so, initially, I just set the ObjectId for the picture to be the same as the corresponding user. That made it easy to, given the user's ObjectId, get the picture of that user wit... | stackexchange/codereview |
I have written a code which first get some points(has x ,y) and then I will check all possible triangles with those points and I will check that the specific point is in a triangle or not(with determinate) but I have problem with this part of code which finds the external points and internal points.it doesn't work well... | stackexchange/codereview |
Is there a concise, built-in way to do equals assertions on two like-typed arrays in JUnit? By default (at least in JUnit 4) it seems to do an instance compare on the array object itself.
EG, doesn't work:
int[] expectedResult = new int[] { 116800, 116800 };
int[] result = new GraphixMask().sortedAreas(rectangles);
a... | stackexchange/codereview |
(function () {
var x = 5;
(function () {
function f(y) { return (x+y)-2 };
(function () {
function g(h) { var x = 7; return h(x) };
(function () { var x=10; z=g(f); })();
})();
})();
})();
I'm working through some problems from my textbook in my class to p... | stackexchange/codereview |
I currently assign elements to Fancybox as follows:
$(document).ready(function(){
$(".popup").fancybox({
'speedIn' : 600,
'overlayOpacity' : 0.7,
'speedOut' : 200
});
});
When I load remote content using $.post(), some of that content contains...
<a class="popup" href="#somebox">Click me</a>.
Clicking the link... | stackexchange/codereview |
Im trying to add a facebook like button to a website im working on, but none of the meta attributes i add show up.
I have the following in my html, (irrelevant parts not included)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://opengraphprotocol.org/schema/"
xmlns:fb="http://www.... | stackexchange/codereview |
So using any free opensource cross platform library like boost how to create a web service capable of reciving a data stream (for example stream of mp3 frames) on one URL like http://adress:port/service1/write/ and capable of sharing latest recived data to all consumers on http://adress:port/service1/read/ so of course... | stackexchange/codereview |
I have the following GridView and ObjectDataSource:
<asp:GridView
ID="grdTrades"
runat="server"
DataSourceID="srcTrades"
DataKeyNames="tradeId"
EnablePersistedSelection="true"
SelectedRowStyle-BackColor="Yellow"
AllowPaging="true"
AllowSorting="true"
PageSize = "10... | stackexchange/codereview |
Using Delphi 2009 on Windows XP to develop desktop application.
Is there any way to make a windows dialog modal to a tab, instead of application. How can I achieve this? Threads? any frameworks supporting this?
Something similar to
Thanks in advance.
Kind Regards,
Pavan.
| stackexchange/codereview |
public class CustomDialog extends Dialog {
public int result = -1;
public CustomDialog(Context context, int theme) {
super(context, theme);
RadioGroup radioGroup = (RadioGroup) findViewById(R.id.rdbGp1);
radioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener()
... | stackexchange/codereview |
I find some solution how select listbox item on right mouse button click, but any solution does not work after I scroll listbox. It possible select listbox on right mouse button, if I scroll also listbox? Any advance?
My code is here:
<ListBox Name="friendsListBox"
ItemsSource="{Binding}"
SelectedIt... | stackexchange/codereview |
Is it possible to manually abort the currently running bash command? So, for example, I'm using 'find' but it's taking ages... how do I manually stop it?
| stackexchange/codereview |
I have a web page which has a part to render filtered entries from twitter. This part of the page is created using XSLT (I am using Umbraco CMS). The problem is that when there is special characters such as ' in the twitter entry, although I used "disable-output-escaping ="yes"" but in IE it is rendered as & apos ;. In... | stackexchange/codereview |
I am trying to implemend in app purchase in my application.
when i run the application on the device, i get invalid product identifiers as response.
I have added the application to in app purchase , and made it to cleared for sale.
And the status is " Pending developer approval"
But i did not approve the application st... | stackexchange/codereview |
In the answer to the question Error sending e-mail via SMTP server on App Engine development server there is a nice solution by Blixt:
"dev_appserver.py does not support TLS
which is required by Gmail. You can
enable it by adding a few lines in api/mail_stub.py:"
# After smtp.connect(self._smtp_host, self._smtp_port... | stackexchange/codereview |
Without referring to a book, can anyone please provide a good explanation for CRTP (curiously recurring template pattern) with a code example?
| stackexchange/codereview |
I have implemented a form with image upload using paperclip on rails 3.0.1 on linux
(same problem below on rails 3.0.0 on windows)
Whatever I enter in my form, I get the Type Error "can't convert hash into integer".
The strange thing is that it worked 1 time (form submit + file upload). I probably changed something som... | stackexchange/codereview |
If in textbox the default textbox value id 1,2,3,4,5,6 ...... upto 55
then the following checkboxes would be checked according to the text display in text box...
if textbox1.text =1,2,3 then in my webform checkbox1, checkbox2, checkbox3 would be checked ... on page load event...
how to do this ?
| stackexchange/codereview |
With the code below my treeview never populates.
Can anyone see waht I'm doing wrong?
thanks
public class FouList
{
public string Source { get; set; }
public List<FouData> ListOfFou { get; set; }
}
public struct FouData
{
public string Name { get; set; }
}
<Window.Resources>
<HierarchicalDataTemplate DataTy... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.