instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am looking for a automated finite state machine generator for C? I have seen a few over the internet but unable to decide which one to use. If anybody worked with any such tool then help me to find the right one.
Thanks,
Ravi Gupta
| stackexchange/codereview |
I am using this code to display an image from a URL. My code is run and it does not give an error but the image is not displayed.
Any help?
Here is the code:
public class MainActivity extends Activity {
ImageView i;
String imageUrl = "http://64.250.238.26:1111/clips/sunsetsofmauisplash.jpg";
@Override
... | stackexchange/codereview |
I want to make an application that has some views for information display. If I install my app on my iPhone then it should display the info. If I then install that app on my iPad then the app should recognize the device and display the info related to my account.
Is there any way to find the single user of two devices ... | stackexchange/codereview |
I am using solr search in my mvc.net application, all the search is working well.
but now i want to post my xml to solr by code(c#), so plz tell me how i post my xml to solr using mvc.net c(#)
| stackexchange/codereview |
I'm currently in the process of writing a client server app as an exercise and I've gotten pretty much everything to work so far, but there is a mental hurdle that I haven't been able to successfully google myself over.
In the server application am I correct in my thinking that threading the packet handler and databas... | stackexchange/codereview |
I have a compressed string value I'm extracting from an import file. I need to format this into a parcel number, which is formatted as follows: ##-##-##-###-###. So therefore, the string "410151000640" should become "41-01-51-000-640". I can do this with the following code:
String.Format("{0:##-##-##-###-###}", Convert... | stackexchange/codereview |
How can I reliably detect all events that cause the the value of an HTML select to change, while that element still has the focus?
For regular mouse input, either the click or change event works fine. For keyboard input (and for mouse input using the scroll wheel), however, the change event doesn't fire until focus is ... | stackexchange/codereview |
I have a program that is run from the command line like this
python program.py 100 rfile
How can I write a new script so that instead of running it with just the '100' argument, I can run it consecutively with a list of arguments like [50, 100, 150, 200]?
Edit: The reason I am asking is that I want to record how 'prog... | stackexchange/codereview |
I'd like to use Google's hosted version of YUI (since Yahoo's doesn't support SSL). I'm using YUILoader:
var loader = new YAHOO.util.YUILoader({
require: ["autocomplete"],
onSuccess: function() { ac_ready = true; setup_manager_autocomp() },
combine: true
});
I'm loading yuiloader from Google's CDN:
<script... | stackexchange/codereview |
Suppose we have a map that is shared between multiple threads. It represents a node in some hierarchical structure (say, a directory in a file system) that is stored on disk. Constructing a Value is expensive both in time and in memory. This is the classic 'initialize on demand' problem, with a twist: we're initializin... | stackexchange/codereview |
I'm am making a button that when clicked reveals a box with html inside. I'd like to hide that box if anything is clicked other than inside the same box. Any suggestion?
| stackexchange/codereview |
I can't find a way to add a Mouse Handler to a GWT Panel or a Grid
while using UiBinder.
I basically need a way that I can detect the following over a Grid:
Detect what cell the event is happening in.
Detect Mouse Up Event
Detect Mouse Down Event
Detect Mouse Out Event
Detect Mouse Over Event
I had planned to try and... | stackexchange/codereview |
In Jquery mobile, I can have grouped horizontal buttons, but they the group does not take 100% width.
I tried adding a class that sets width:100% but that did not work.
How can I do it?
Thank you!
Update + Possible Fix: It seems that it was failing because I was explicitly using width="50%" in both buttons. I did 45% a... | stackexchange/codereview |
Assuming you have a project setup like this:
-WebApp
|_ requirements.txt
|_ bootstrap.py (virtualenv bootstrap script)
|_ src
|_ setup.py
|_ develop-app
|_ somecode.py
|_ morecode.py
The bootstrap.py is created with virtualenv:
https://virtualenv.pypa.io/en/latest/refer... | stackexchange/codereview |
I am trying to write a c++ program that creates a child process, runs a command and pipes the output back to the input of a command the parent is running.
I have the parent execute the wait(NULL) or wait((void*)pid) command but it does not wait.
here is the code:
#include <string.h>
#include <fstream>
#include <iostrea... | stackexchange/codereview |
I have a datafile that looks like this:
1 1.0 0
2 1.5 0
3 0.0 1
4 1.2 2
5 1.0 1
6 1.1 1
where the first column is my X value, the second column is my Y value, and the third column is a color. I'd like for each line segment to be colored according to the third column. So the first two line segments would be "color 1"... | stackexchange/codereview |
I am not sure if I am doing the overload correctly.
...\point.h(42) : error C2061: syntax error : identifier 'Vec3'
Point operator +(Vec3 a) const;
Here is my .h file:
#include <fstream>
#include <iostream>
#include "vec3.h"
using std::ofstream;
using std::ifstream;
using std::cout;
using s... | stackexchange/codereview |
top
http://i.imgur.com/LszAu.png
middle
http://i.imgur.com/j82Dr.png
bottom
https://i.stack.imgur.com/BC5UE.png
dialog https://i.stack.imgur.com/OKw4g.png
How do i do with 1,2,3 to a dialog? And dialog can stretch with content? I hope you can write a simple example for me~~thanks!
| stackexchange/codereview |
I use below code for repeat local notification every week
notif.repeatInterval = NSWeekCalendarUnit;
How can i repeat Notification every Sunday,Monday ?
| stackexchange/codereview |
there is a topic about this subject which is working with arrays but I can't make it work with matrices.
(Topic: C++ array size dependent on function parameter causes compile errors)
In summary:
long rows, columns;
cin >> rows >> columns;
char *a = new char [rows];
compiles great in visual studio, but:
ch... | stackexchange/codereview |
A few questions regarding this topic:
1) What's the largest development team (doing actual commits, not counting read-only) you've had on a single SVN repository? Did you have any issues?
2) What's the largest size team you'd be comfortable with on a single SVN repository? Is a different version control tool better fo... | stackexchange/codereview |
I need to write a report that on startup shows specific groups expanded while other remains collapsed. I've been searching for a property like "collapsed" or "expanded" or similar at the group level, but I found none.
The only way I've found to do something similar is through the "hidden" properties of the detail. But ... | stackexchange/codereview |
I have a HTML like this:
<div class="container">
<span class="iconset"></span> <!-- want to select -->
<span class="iconset"></span>
</div>
<div class="container">
<span class="iconset"></span> <!-- want to select -->
<span class="iconset"></span>
</div>
I need to select the first element of every .con... | stackexchange/codereview |
I have an external JAR signpost-core-1.2.1.1.jar (from http://code.google.com/p/oauth-signpost/), that I want to include into my Java GWT project.
So I add this external JAR file to my build path in Eclipse and put theese imports to my Class:
import oauth.signpost.basic.DefaultOAuthConsumer;
import oauth.signpost.excep... | stackexchange/codereview |
I have this data in postgresql
id | rate | hrv | activity | orientation | timestamp | user_id | status
----------+-----------+-----+----------+-------------+------------------------+---------+--------------
66764728 | 72 | 1 | 0 | 90 | 2010-06-10 18:54:54+00 | 397... | stackexchange/codereview |
I am trying to use AppEngine-MapReduce. I understand how to perform an operation over all entities of some entity_kind, but what is the easiest way to only operate on entities over a data range when the entity has a date attribute? Is there a simple way to pass parameters to the mapper?
For example, what if I only want... | stackexchange/codereview |
I've been having some trouble with choppy movement of objects in a game.
If the frame rate isn't capped, the game runs smooth.
If I cap the frame rate at say, 60 fps, the movement is choppy.
An object's movement looks like this...
m_distance += m_speed * GetFrameTime()
Where speed is in pixels per second, and GetFrame... | stackexchange/codereview |
I was wondering if there is good implementation of Random.Next in AS-3.
Basically want to generate a series of Random numbers given a seed,and at times
minumum and maximum limits..
Similar to C# System.Random class.
Random random = new Random();
return random.Next(min, max);
Thanks All.
| stackexchange/codereview |
I've just written some code to perform a timeout action if an asynchronous task takes too long to process, but what is not clear to me is if and when the timeout instance will ever be disposed of (I think it will in the case where the asynchronous task completes in a timely fashion, but otherwise I've got no idea), or ... | stackexchange/codereview |
I have the model:
User -1---n- Transaction(amount,description, date)
User -1---n- TransactionImport -1---n- TransactonImportField(name,value)
(personal expense tracking app).
What I want to achieve is this:
User opens URL and pastes the CSV with the list of transactions.
User submits it.
System extracts data from CS... | stackexchange/codereview |
As in the question Creating simple c++.net wrapper. Step-by-step
I am tring to use C++ classes in .NET
but I am having problems building in Visual Studio (2008).
I have an unmanaged class A (C++ compiled with /clr).
I created a C++/clr class 'Class1' which wraps A and with matching
method delegates to A's methods.
If ... | stackexchange/codereview |
I am a new developer of C++ and i want to do socket programming in c++ or VC++.net.
If you have good and easy to learn tutorial for socket programming in c/c++ please share the link.
| stackexchange/codereview |
I'm trying to create a simple remote management program where a user can connect to my little device and "take over" the current stdio of the system. For example:
System boots with console=serial port
--> client connects, redirect input/output to the socket
I have already accomplished the redirection to network part (b... | stackexchange/codereview |
I would like to use a generic error msg handler so I can GetLastError and SetError easily for any class. I came up with this scheme. But I have a couple of questions. Please note this implementation is just for testing. But I want to get the basic design right.
#include <iostream>
#include <stdarg.h>
class ErrorHandle... | stackexchange/codereview |
I am writing html content to a BML file, how can I remove new lines/whitespace so it is all in one long string?
does preg_replace("\n","") work?
| stackexchange/codereview |
I want to read in a grid of numbers (n*n) from a file and copy them into a multidimensional array, one int at a time. I have the code to read in the file and print it out, but dont know how to take each int. I think i need to splitstring method and a blank delimiter "" in order to take every charcter, but after that im... | stackexchange/codereview |
I have a XMLDataSource somewhat like:
<bookstore>
<author>author1</author>
<publication>publication1</publication>
<book>
<genre>Thriller</genre>
<name>ABC</name>
</book>
<book>
<genre>Romance</genre>
<name>XYZ</name>
</book>
<book>
<genre>Horror</genre>
<name>000</name>
</book>
... | stackexchange/codereview |
I've got a new problem here, I wish to inputs a PIL image object, and then draw the figure that generated from matplotlib, and then return the PIL image object. How could I achieve this?
| stackexchange/codereview |
I'd like to write and read TCP Streams directly without any modifications by ASP or IIS. Is this possible?
Edit: Goal is to provide communication between a program and a server. Data exchange between them is less then 25 bytes per connection (in default case). So Headers will cause more traffic then the real data. I ne... | stackexchange/codereview |
I am not sure if I am going about this the right way or not.
I have a model Neighborhood. I have a two ways you can add a neighborhood, one as a logged in user and the other as a public person. The forms vary a bit. So I made another view with a custom action. The problem is this action is adding a new record and ther... | stackexchange/codereview |
I have tried to use jquery, but could not override the width property of the .gridHeader class.
I'd like to fix (let's say 100px) the width of the first column in the table.
<html>
<head>
<style>
html, body {
font-family:Tahoma;
font-size:11px;
}
... | stackexchange/codereview |
Has anyone advice when working with large database models when using EF4 code first? Entity sets are added to the database context, but if I have 100 tables, I need to create 100 DbSets, 1 for each table:
public class Customers : DbContext
{
public DbSet<Customer> Customers {get; set;}
public DbSet<Employees> E... | stackexchange/codereview |
I'm a .NET silverlight developer. After last project i want to have a rest from this tech and want to learn something new. My next project will be an app for managing workflow of a company.This app will need printing support, export to office formats, document management, maybe authorization\authentication.
Can you sug... | stackexchange/codereview |
Say we have two arrays:
double *matrix=new double[100];
double *array=new double[10];
And we want to copy 10 elements from matrix[80:89] to array using memcpy.
Any quick solutions?
| stackexchange/codereview |
I need native (default) android music player source code. Where can I find it?
| stackexchange/codereview |
When creating a Sharepoint 2007 survey, there is a possibility to show/hide the username of the user who took the survey.
Is it possible to set this option to No by default and make the selection read only?
| stackexchange/codereview |
I have a DB2 query in a shell script which return an integer value, but I am unable to store it in a variable.
temp1= echo db2 -x "select max(id) from work.work_tb"
I am getting this output when I run it, sh -x test.sh
db2 -x select max(id) from work.work_tb
echo 50
temp1=
50
So for some reason $temp1 is unable to ... | stackexchange/codereview |
What's the best way to unit test the Serialization of an Exception class like this:
[Serializable]
public abstract class TankBaseException : Exception
{
public TankBaseException() : base() { }
public TankBaseException(string message) : base(message) { }
public TankBaseException(string message, Exception i... | stackexchange/codereview |
Trying to understand what the pointer to function actually represent? Is it the address in the code segment where the function resides?
For ex: this piece of code:
#include <stdio.h>
void foo(void)
{
}
int main(void)
{
int a = 10;
printf("a's address: %p\n", &a);
printf("foo's address: %p\n", foo);
re... | stackexchange/codereview |
Here is my code:
<?
$time = microtime();
$len = strlen($time);
echo $time;
echo"<br>".$len."<br>";
$micro;
$i = 0;
while ($time{$i} != " ")
{
$micro{i}=$time{i};
echo $micro{i};
$i=$i+1;
}
?>
The output I'm getting is 0000000000 (that is $micro). Here I'm try... | stackexchange/codereview |
I would like to solve this issue avoiding to use cursors (FETCH).
Here comes the problem...
1st Table/quantity
------------------
periodid periodstart periodend quantity
1 2010/10/01 2010/10/15 5
2st Table/sold items
-----------------------
periodid periodstart periodend solditems
14343 2010/10/05 2010... | stackexchange/codereview |
I am currently trying to build a (simplified) stock app (like the one built-in on the iphone). I setup a simple server with a REST-interface which my app can communicate with.
However I am struggling to find the right/best way to build this kind of (streaming data consumer) client on the iphone.
My best bet at the mome... | stackexchange/codereview |
Having percent sign inside URL, returns bad request (error 400) to the browser. I have a filename that have percent (%) sign, resides at server.
Original File name:
204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pdf
URL in browser after clicking on download link:
http://www.example.com/204153_20090605_Alu... | stackexchange/codereview |
I have four check boxes and when I click more than two of them then under the last clicked checkbox one I should get a <div><a href="#">Compare</a> </div> contains a compare link. It may be randomly. I tried to do this using JQuery and below is my code.I need improve one. The issue is I need when two of check box will ... | stackexchange/codereview |
Sorry for this maybe foolish question but i'm newbie to SQL Server. Here structure of my table of divisions at organization:
id int(16) -- simply unique id
sub_id int(16) -- this id of parent division in this table (if zero, than it don't have parent)
name VARCHAR(200) -- name of division
I need to create a simply pro... | stackexchange/codereview |
I have made an input with an image as background. When the input is active the input changes image.
I want it to animate/fade between theese states.
The way it works now:
Class idleInput is added to the input onload. When input is active activeInput class is added instead. How can I animate this?
<script type="text/jav... | stackexchange/codereview |
I need to group by ,even if is there a difference in values for a column by converting to a text value and needs that text value to be included in select list
How is this possibe?
SELECT col1,col2
FROM
(
SELECT col1,col2 FROM table1
UNION ALL
SELECT col1,col2 FROM table2
UNIO... | stackexchange/codereview |
I have to create Report in Crystal Report from In memory data set.
This data set have two tables.
1st table is base table "ReportBase" having following fields
ReportID [PK]
ReportType
Second Table is "StudentReport" which has
ReportID [FK]
StudentName
Address
In Report I want to display fields from both tables.
Please... | stackexchange/codereview |
I use the following function for creating new objects.
function newObj(o) {
var params = Array.prototype.slice.call(arguments,1);
function F() {}
F.prototype = o;
var obj = new F();
if(params.length) {
obj.init.apply(obj,params);
}
return obj;
}
And it works well most of the time. However one of my base "cla... | stackexchange/codereview |
I am developing a GUI in Vizard in which i am using radio buttons to select correct options, but I have a problem that I cannot solve.
In every group of radio buttons the 1st button always appears to be selected, but is actually not selected. The only way to select it is by choosing another button and then choosing the... | stackexchange/codereview |
I am new to SOAP and dealing with a web service where it would seem no one has interfaced using PHP previously. They have no example code excepting C# but I do have that. eServices.asmx provides WSDL if that is the correct way to say that.
The error that I am getting is "Server did not recognize the value of HTTP Hea... | stackexchange/codereview |
Default.png for iphone, Default4.png for iPhone 4 (or is it Default@2x.png?), and Default-iPad.png. Is that correct?
| stackexchange/codereview |
I have a c++ application in which threads could impersonate using LogonUser/ImpersonateLoggedOnUser, and then revert impersonation using RevertToSelf. I ran across the bug which caused thread to impersonate this way twice. I want to prevent this by testing if current thread is already impersonating and throw exception ... | stackexchange/codereview |
MS defines attached properties like 'Grid.RowProperty' and 'Grid.ColumnProperty', but in XAML you just call it with 'Grid.Row' and 'Grid.Column'
I tried doing the same with an attached property called 'MyValProperty' that was registered with the name 'MyVal' on the class 'Foo', but the XAML won't let me type 'Foo.MyVal... | stackexchange/codereview |
please suggest me a gem or way validation embed video by ruby code. Example: Youtube Video, Google Video.
| stackexchange/codereview |
I am looking at some C# code written by someone else. Whenever a form is instantiated and then shown, the following is done. Is this correct? Why would you use "using" in this context?
MyForm f;
using (f = new MyForm())
{
f.ShowDialog();
}
Additional question:
Could the following code be substituted?
using (MyF... | stackexchange/codereview |
Does anyone know if its possible to validate an XML schema with another XML schema? If so, is there a reference implementation out there? I would like to parse a Schema doc using JAXB.
| stackexchange/codereview |
I really like gem server command which bootstraps the webserver with local RubyGems Documentation Index.
The only problem I have: some gems don't have rdoc files.
How can I add missing rdoc(all gems are mainstream gems, not my own)?
Installed via Bundler; Rails 2.3.5
| stackexchange/codereview |
I have elements with various values for an attribute (ids="32, 56, 21"). How can I get the elements that contain 21?
| stackexchange/codereview |
I submitted my first free iPhone app to the app store and users are complaining about bugs I've never seen, nor can I reproduce. How do developers allow their users to send feedback, as well as collect bug/crash reports for their iOS apps after they've been deployed to the app store?
Thanks so much in advance for your... | stackexchange/codereview |
I would like to render a random connected media item in Zotonic as follows:
{% with m.rsc[id].banner as media %}
{% if media %}
{% with media.random as m %}
{% media m %}
{% endwith %}
{% endif %}
{% endwith %}
How do you choose a media item at random from a Page Connection in a Zotonic t... | stackexchange/codereview |
I'm going to make an app which influence another app. The only thing I don't know is ...
How to find the folder of the other app (Like "0A007EC0-F477-4A61-8F67-C075024F8463").
Does someone know it ?
Thanks,
Vinzgore
| stackexchange/codereview |
Opera has unacceptable rendering of image-bullet positioning of list items.
Look at demo page with Opera and different browser.
Style:
/* body {line-height:150%;} */
ul {list-style: none outside url('img/bullet-lilac.gif');
HTML Sample:
<ul>
<li><a href="">Ut enim ad minim veniam</a></li>
<li>Sample item</li>
... | stackexchange/codereview |
I'm trying to create a very simple function in c++ however I keep getting a "Link error".
My code:
#include <iostream>
using namespace std ;
int fun(int,int);
main(){
int width,height,w,h,mult;
cin>>width;
cin>>height;
mult = fun(width,height);
int fun(int w,int h);{
w * h ;
}... | stackexchange/codereview |
I have a bitmap file, that serves as a mask for a view. It has multiple rectangular areas with different colors on a white background. When the user touches the View, I use the X and Y coords of this event to look up the color of the mask (which is not displayed) and do things based on the color code returned.
The prob... | stackexchange/codereview |
Am using ubuntu .am developing apps with google map.for that i registering for map apikey.I follwed the instruction in this following Link link text
from this instruction i got MD5 Fingerprint of Your Signing Certificate,also i have keystore ,But i cant able get MD5 Fingerprint of the SDK Debug Certificate, for this I ... | stackexchange/codereview |
I often work at the office using dual screen and at home using single screen. The window layout of Visual Studio 2010 is messing with me. I want to save/restore the layout so that I can quickly "switch" to the layout I want.
How can I do that? Is it possible?
| stackexchange/codereview |
I am Java developer who is using Eclipse on a X86 computer to code. I am considering to buy for other reasons an Desktop Mac computer and I would like to use this computer to do my coding work. I know there is a Eclipse version for Macs, I am asking if there may be some problems/issues related to Macintosh computers. T... | stackexchange/codereview |
I am trying to write a test that covers my error handling in a particular class. This class is listening for an Error event with the following signature:
OnError(int ErrorNumber, string ErrorText, ref bool retry)
The problem is with the ref bool variable at the end. I am using Rhino Mocks to create a mock interface ... | stackexchange/codereview |
What do I pass here as the second parameter to v_get_xpath_base in order to get it to work, no matter what I try, there always seems to be a problem. Either the class is a base class and cannot be instantiated or the class cannot be casted.
I'm at a loss, someone help me please?
TiXmlElement* outputnode = new ... | stackexchange/codereview |
I'm trying to handle touch events with touchesBegan in an overlay to a parent UIView but also allow the touch input to pass through to sibling UIViews underneath. I expected there would be some straight-forward way to process a touch event and then say "now send it to the next responder as if this one didn't exist", b... | stackexchange/codereview |
I have noticed .pyc files spontaneously being generated when some .py file of the same name gets run. What is the difference between .py and .pyc files?
Also, I find that having .pyc files lying around clutters up space. Should one delete .pyc files? Or is there a benefit and/or necessity to having them around?
UPDATE... | stackexchange/codereview |
we are using a dojox.grid.DataGrid in a jsp.
<script type="dojo/method" event="onStyleRow" args="inRow">
var grid = dijit.byId("someID");
var item = grid.getItem(inRow.index);
if(item != undefined) {
if(item.someAttribute == "1") {
inRow.customClasses = "dojoxGridMYRow";
} else {... | stackexchange/codereview |
Does anyone have advice on how to best initialize an NSMutableArray when it comes to dictating the capacity? The documentation mentions that "...even though you specify a size when you create an array, the specified size is regarded as a “hint”; the actual size of the array is still 0." So...
1) If I init with a grea... | stackexchange/codereview |
I upload images with aspsmartupload and it work as it should, good!
But after I have uploaded the image I would like to be able to crop the image with Jcrop.
I have managed to get the Jcrop script to work on a image(showing the crop rectangle on the image).
But how do I actually crop the image with ASP and the saving i... | stackexchange/codereview |
I write MFC application, but when i launch it, in task manager on applications tab all applications list are disapear. if i do active some applications then she appears in applicion list, and when i close my MFC app all aplications are appears in app list on application tab. Why this happening?
| stackexchange/codereview |
I wanted to start a new web application project and I am confused between two frameworks that is GWT(Java) or Lift(Scala). So I want your opinion which one I choose? Both are good according to my project requirement. So on the basis of frameworks comparison please tell me which is good?
| stackexchange/codereview |
how can i auto slide this slider link text i have little knowledge on jQuery and less on how to do this. the thing is that this slider slides when i click on an image but i also want this to start sliding automatic and when i hover on it it stops / pause sliding and then when i point my mouse out it continues sliding..... | stackexchange/codereview |
Recently I've discovered Yii framework and started learning it. I've generated app skeleton using yiic tool, installed PHPUnit, SeleniumRC and attempted to run functional tests provided by skeleton app (I didn't change anything).
> phpunit functional/SiteTest.php
Report said following:
There was 1 error:
1) SiteTe... | stackexchange/codereview |
I'm used to EF because it usually works just fine as long as you get to know it better, so you know how to optimize your queries. But.
What would you choose when you know you'll be working with large quantities of data? I know I wouldn't want to use EF in the first place and cripple my application. I would write highly... | stackexchange/codereview |
I just want a bash script to run 5 minutes after it's called. What am I doing wrong?
I have the command:
/path/to/my/script | at now + 5 min
And yet the script runs right away every time.
| stackexchange/codereview |
Err I apologize for the title, but I forgot what its actually called in SQL lingo.
Thing is using this query:
SELECT DISTINCT a.col1, a.col2,a.col3,c.col1, c.col2
FROM table1 a
LEFT JOIN table2 c ON a.col1 = c.col3
WHERE a.col2 = '038CQH'
I get a result with around 56000 rows, but when I checked using:
SELECT a.c... | stackexchange/codereview |
I would like to clip a button to a custom shape which i am able to do with the following XAML. The clipping region though doesn't have a border. What if i want to have a red border with thickness 2? What are the properties to set?
<Button Content="Button" Height="79" Margin="22,10,17,10" Clip="M50.500008,20.499998 L70.... | stackexchange/codereview |
Ideally all of my data would look like this:
William Faulkner - 'Light In August'
William Faulkner - 'Sanctuary'
William Faulkner - 'The Sound and the Fury'
In that case, this regex would seem to work fine:
Pattern pattern = Pattern.compile("^\\s*(.*)\\s+-\\s+'(.*)'\\s*$");
Matcher matcher = pattern.matcher("William F... | stackexchange/codereview |
I'm working on a video management application where each video clip is associated with a single program-name and a single category-name, but programs and categories can be associated with multiple different videos. (This part is straight forward.)
What's different is that the choices for category-names vary on a per pr... | stackexchange/codereview |
I keep getting comet when I search for this, but comet seems to complex for my needs, i.e. 100 users max with probably 10 users online at a time.
Is there are better solution for my requirements, i.e. be able to push data to clients, probably between 10-20 clients max at a time.
| stackexchange/codereview |
I have a JAX-RS web service for which I would like to disable the same-origin policy via the new CORS HTTP headers. (I am fully aware of the security implications.)
I'd like to have a custom annotation that lets me set HTTP response headers. For example,
@ResponseHeaders({"Access-Control-Allow-Origin: *",
... | stackexchange/codereview |
which of the following is better practice?
class Foo {
virtual void unimplementedFunc() = 0;
};
Or
class Foo {
virtual void unimplementedFunc();
};
//in cpp
void Foo::unimplementedFunc()
{
//not implemented in base
}
Thanks
| stackexchange/codereview |
I installed XAMPP a couple of days ago. I uploaded a PHP file to C:/xampp/htdocs/ but the PHP isn't working. I went to the local host through Firefox and tried to use PHPMyAdmin to fix the problem, but I never made a login for that and I'm not given any option to sign up! I tried the username and password I gave when I... | stackexchange/codereview |
If an ASP.NET web page uses an ObjectDataSource, can you configure it to use a stored procedure that uses table-value parameters?
User-defined type:
CREATE TYPE [dbo].[integer_list_tbltype] AS TABLE
(
[n] [int] NOT NULL,
PRIMARY KEY CLUSTERED
)
Stored procedure:
CREATE PROCEDURE [dbo].[GeneralReport]
@intList int... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.