instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I tried using this example to create a wrapper for the webkit library. But, when I try to use the method, in c#, from the compiled c++ dll, I get an "method inaccessible due to it's protection level" error.
The method I'm trying to get to is
CG_EXTERN CGColorSpaceRef CGColorSpaceCreateDeviceRGB(void) CG_AVAILABLE_STAR... | stackexchange/codereview |
We have a service that can be booked either via the Dynamics UI or via a webservice call. It is set for service appointments of 30 min duration starting every 30 mins, with the service start time set to 9:15.
As you would expect, hitting the schedule button in the Dynamics UI offers appointments at 9:15, 9:45, etc.
Sen... | stackexchange/codereview |
I have an entity in a hibernate instance called keywords. It stores a list of words and the number of times each word occurs. Words are not unique. I want to sum the total for each word in the list. I use the HQL
query select keyword, sum(keywordcount) from Keywords as Keywords group by keyword order by sum(keywordcou... | stackexchange/codereview |
We're currently deploying code to live pretty reguarly at the moment, but the down side is destroying user session data.
Is there a way of being able to recycle IIS without loosing session data, or is persisiting session state in SQL server or alike the only way?
| stackexchange/codereview |
I was posed this question the other day and didn't really know how to respond. Anyone here have any comments?
Some CMS applications can be used as a frameworks, but it does not work the other way around.
| stackexchange/codereview |
I have just finished a technical interview. The interviewer asked a question about the relationship between the models associated with a master page, view and partial view, given that the view uses the master and the view contains the partial.
I did not understand what he was driving at. As far as I understood it, view... | stackexchange/codereview |
I want to select all radio buttons with a certain name but not having a certain value, like this:
$('input[type="radio"][name="myname"][value!="myvalue"]')
, but this does not work.
How do I do it properly with a single selector?
| stackexchange/codereview |
Below is my code which I am using to remove a div tag. I also want the script to add the same div tag later once certain conditions are meet. The div has some preloaded content too which I don't want to loose.
$('#wrapper1').remove();
Any help will be highly appreciated.
Cheers,
Vishal
| stackexchange/codereview |
I'm looking at some of the code I've written for Zend over the past 2 months and I see some inconsistency (because I'm a beginner) in initializing the front controller.
I see that sometimes I've done this
$frontController = Zend_Controller_Front::getInstance();
and other times I've done this
$this->bootstrap('FrontCo... | stackexchange/codereview |
I'm building an Air app that uses an .app/.exe file as a bridge to hardware devices.
Ideally, I would like to include the executable with the Air app installer and launch the external program together with the Air app.
1) Is this possible?
2) How do decide which OS specific file to launch?
EDIT: OK, the above wasn't ve... | stackexchange/codereview |
In the master page of mine the above line exists
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
But why is it getting me problems?
In a content page i am embedding an SWF object
var flashvars = {xmlPath: "xml/" + GetQueryString("x") + ".xml" };... | stackexchange/codereview |
In an interview today I mentioned that I had done some jsf work in a portlet. The interviewer asked for specifics on what the portlet-bridge does. I never looked into it all that much, just used it because I was told it would make jsf work in the portlet. All I could really say was that it allowed the requests to co... | stackexchange/codereview |
If you have an NSArray of strings
{ @"ONE", @"ONE", @"ONE", "TWO", @"THREE", @"THREE" }
How would I turn that into
{ @"ONE", @"TWO", @"THREE" }
..where the array follows the same order as the original. I think that you can turn an array into an NSSet to get unique items, but if you turn it back into an array you are... | stackexchange/codereview |
I have used WMI to get the remote server disk space report using widows service.
Im getting Access Denied exception, can any one suggest how to check the server access before it got exception.
I need to check the server access before getting the disk space.
Please suggest.
| stackexchange/codereview |
See the title :)
| stackexchange/codereview |
I have a long text file that contains around 100 million MD5 hashes. I would like to hash a small set of files and find out if any of them have a hash value that is on the 100 million hash list. My 100 million hashes are alphabetically sorted. Without having to load the entire list into memory or into a database, what ... | stackexchange/codereview |
I am trying to understand how to write complex stories where stakeholder and the end user has different goals. I don't have a good example for this, but say for instance a story like "Sally the Single Mom can follow what her friends are buying on a shopping site." The goal of the user in this story is to keep up with h... | stackexchange/codereview |
Hey, I have to use IN condition in my MySQL statement with a large set of ids.
Example
SELECT * FROM users WHERE id IN (1,2,3,4...100000)
Is there a limit if items the IN statement can have?
| stackexchange/codereview |
I have a small problem. I need to get a line from a text file using PHP. Here is an example of the text file:
hello 2010-10-25
hello 2010-10-26
hello 2010-10-27
hello 2010-10-28
hello 2010-10-29
hello 2010-10-30
hello 2010-10-31
And my code for taking out a the line which contains "2010-10-26" is this:
<?php
$datefile... | stackexchange/codereview |
I'm new to ADO.NET. I am struggling with persisting changes in my dataset to my sqlite database.
It has a table "Category" which has 3 fields: CategoryID(int), CategoryName(varchar(100), Parent(int). parent can be null.
I am trying to insert a new row into my database. I have the following code.
using System;
using Sy... | stackexchange/codereview |
For example, if i have a lot of items on my mapview, each one representing GPS coordinates of friends, i want that below the image of the item to have writted the name of each friend
is this possible?
(programatically)
| stackexchange/codereview |
We have a web site which implements a central HttpSessionState management in App_Code like this:
public static class CurrentSession
{
public static HttpSessionState Session
{
get
{
return HttpContext.Current.Session;
}
}
public static bool Exists
{
get
... | stackexchange/codereview |
I have a div #basket which is shown using the JQuery slideDown function.
To slide the div back up the use can click anywhere on the page.
$(document).click(function () {
$("#basket:visible").stop(true, true).slideUp("slow");
});
Of course I don't want the div to be closed when a user clicks inside of it. So I use:
$... | stackexchange/codereview |
In KRL (Kynetx Rule Language), how can I write a select statement that selects on all pages?
| stackexchange/codereview |
I have this in my code.
vector<unsigned int> import;
vector<unsigned int> aquired;
. . .
size_t new_size = max(import.size(),aquired.size());
and I get this error:
error: more than one instance of
overloaded function "max" matches the
argument list:
function "max(int, int)"
function "max(u... | stackexchange/codereview |
I am trying to follow the wiki instructions for getting sunspot on rails
https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less
Everything works fine until when I do:
$ rake sunspot:solr:start
rake aborted!
no such file to load -- nokogiri
However, it looks like I DO have nokog... | stackexchange/codereview |
my code goes like this !!
int i=0,j=0,k=0;
char *a[20];
int count=0;
for(i=0;i<20;i++)
{
a[i] = malloc(50 * sizeof(char));
}
i=0;
while(*(p+i)!='\n')
{
int k=0;
while(*(p+i)!=' ')
{
*(a[j]+k)=*(p+i);
i++;
k++;
}
*(a[j]+k)='\0';
i++;
j++;
}... | stackexchange/codereview |
I am using a Java application to send UDP packets to an Android device. There I have another Java application that receives these UDP packets and displays its data - very simple.
Now I am working on some routing algorithms - therefore it would be nice to know how many hops a UDP packet did since it was send. My idea is... | stackexchange/codereview |
I want to add AirPrint functionality to my iPad application
I have been trying to display printer ontions described in Apple's Drawing and Printing Guide
I have toolbar and UIBarButtonItem *printButton. In controller I receive onPrintClick and try to display printer options by such code:
UIPrintInteractionController *c... | stackexchange/codereview |
I use the following code for connecting php with MS SQL :
$server = 'a.b.c.d';
$link = mssql_connect($server, 'sql_user', 'sql_user_pass');
But it gives the following error:
Fatal error: Call to undefined function mssql_connect()
How can I solve this?
Mention that I am using MS SQL (SQL SERVER 2008), PHP 5.3.1, WIND... | stackexchange/codereview |
While executing actions on a web page using Test::WWW::Selenium, my perl program writes TAP testcase output to a html report created and updated by TAP::Harness.
My Selenium client must log into some password protected web pages, and this is unavoidable. So the password shows up in the TAP output.
ok 1 - open, /homepag... | stackexchange/codereview |
I am developing a search component of a web application using Lucene. I would like to save the user queries to an index and use them to suggest alternate queries to users, and to keep query statistics (most often used queries, top scoring queries, ...).
To use this data for alternate query suggestions, I would analyze... | stackexchange/codereview |
I've an C++ method (using Visual Studio, if it helps) that calls to cmd like this:
start \B example.exe arg1 arg2 arg3
The problem is that this call opens a (cmd) window. If i have another cmd opened, \B works, but if not, it opens a new window.
I also tried without start \B but it's the same....
I want to avoid this ... | stackexchange/codereview |
I've created a simple web based game (text driven) in PHP and have recently become very interested in moving this onto Android - originally i thought the game could be rewritten in Java but after some investigation i found you can embed pages straight into an Android application.
Am i missing something or will i be abl... | stackexchange/codereview |
I'm trying to write a custom application for a GPS device, and I need to read the GPS data.
The problem I'm facing is that I cannot open the GPS port. I know which COM it is, and I know the baud rate, but I get an IOException whenever I get to the Open() method.
port = new SerialPort("COM6", 9600);
port.ErrorReceived +... | stackexchange/codereview |
I have a question still related to my objects in memory. I initialize the model as follows:
model.init("" +
"<root>" +
" <objA nb='5' attrA1='string(val1)' attrA2='int(0)'>" +
" <objB nb='8' attrB1='string(val2)' attrB2='int(102)' />" +
" <objQ nb='4' attrD3='int(250)' attrD6='st... | stackexchange/codereview |
Is it possible to mock an object in a way that it fakes multiple interfaces implementations?
(Note: I am using "padraic's mockery" https://github.com/padraic/mockery)
Suppose I have a class Mysql, which implements Db_Interface and Configurable_Interface, and which I need to mock just to be able to test another class. I... | stackexchange/codereview |
I add an element to an array when the checkbox is checked and I need to remove it when it is unchecked. I use splice to remove an element. I just can't seem to call an event when it's unchecked. I tried using this:
if ($('input[name="'+category+'"]:checked'))
item_id[category] = $(this).attr("id");
else
item_i... | stackexchange/codereview |
Here is my code I am using to convert *IplImage to jpg:
IplImage* fIplImageHeader;
fIplImageHeader = cvCreateImageHeader(cvSize(160, 120), 8, 3);
fIplImageHeader->imageData = (char*) memblock;
vector<int> p;
p.push_back(CV_IMWRITE_JPEG_QUALITY);
p.push_back(10);
vector<unsigned char> buf;
cv::imencode("JPEG", fIplImag... | stackexchange/codereview |
When switching on Firebug's "Break on all Errors" mode in the console, it breaks on all kinds of errors which would actually not cause a real problem, even "assignment to undefined variable".
This results in lots of breaks inside jQuery and various jQuery UI plugins. It's so bad that I cannot use this feature at all, ... | stackexchange/codereview |
When I use
function __construct()
{
// open db
$this->db = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
if (!$this->db)
die(mysql_error());
$this->db->query("SET NAMES 'utf8';");
}
$result=$this->db->query("SELECT OrgNo, CompanyName FROM ematch WHERE CompanyName L... | stackexchange/codereview |
I'm upgrading a system and am going through another developers code (ASP.NET in C#).
I came across this:
private ReferralSearchFilterResults ReferralsMatched
{
get
{
if (Session[SESSION_REFERRAL_SEARCHFILTERRESULTS] == null || Session[SESSION_REFERRAL_SEARCHFILTERRESULTS].GetType() != typeof(ReferralSea... | stackexchange/codereview |
We have migrated a C++ RHEL 5.4 app from RH 6.2 and found that application has broken. One of our investigations lead to findings that the code in 5.4 box refers 'futex'. Note out app is compiled using 32 bit compiler option -
grep futex tool_strace.txt
futex(0xff8ea454, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xf6d1f4fc, ... | stackexchange/codereview |
Running the following code :
use strict;
use warnings;
use Benchmark;
my $defaultArray = [1,2,3,4];
sub VARIABLE {
my $arrayref = @_ ? $_[0] : $defaultArray;
return $arrayref->[0].$arrayref->[1].$arrayref->[2].$arrayref->[3];
}
Benchmark::cmpthese(
-10,
{
VARIABLE_DEFAULT => sub { VARIABLE() },
VARI... | stackexchange/codereview |
in my project i have a folder containing N number of files. I need a functionality that the page should have links for all those files so that client can download those files.
For this i have dynamically created Link Buttons and linked each file with each link Button.
The Code is as
string filePath = Request.Physical... | stackexchange/codereview |
I am using uiwebview in my code and implemented swipe function on uiwebview. For swipe function i have set YES for scaleToFir property for webview, when we give, scaleToFit=YES, content get shrinked. But for my case both needed. swipe aswell as content should not shrink. But disable horizontal bar is fine. can you plea... | stackexchange/codereview |
How to replace a charcter within a text
For instance
<script>alert("Hi i am nishant");</script>
here i want to replace < and > by ASCII code so how i will replace it.
| stackexchange/codereview |
Im looking for a perl module which takes a date string like this "Nov 23 10:42:31.808381" and its format something like "%b %d ...." this and get me a dateTime object/or print it into another format specified in the same way. Time::Piece doesnt have resolution upto nano seconds. Is there any module which will help me? ... | stackexchange/codereview |
I have mapped a directory from another machine to my machine as Z: drive. This is further mapped inside a virtual directory on my local IIS7. On one of my pages I am using Server.MapPath("~/dira/mapped_dir") it is giving me correct path like: Z:\\somedir\\mapped_dir. I am able to open this directory and read-write file... | stackexchange/codereview |
I enabled anonymous access to all the web pages in my sharepoint site. But in 1 page i added a tag cloud. When i am opening the page(with anonymous access), the page is asking for login. If i click cancel, then there is no error page is coming. And if the user is signed in to the site, he is able to see the flash tag c... | stackexchange/codereview |
I'm using the following code to make a call in Android but it is giving me security exception please help.
posted_by = "111-333-222-4";
String uri = "tel:" + posted_by.trim() ;
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse(uri));
startActivity(intent);
permissions
<uses-permission and... | stackexchange/codereview |
This is my code:
<div style="float: left; height:40px; border-left: 1px solid; border-color:#0c0c0c;">
</div>
But I get a black border left.
When I insert "Red" instead the #-code, I get a red border.
What I do wrong?
EDIT:I'm not searching color-codes! The color ... | stackexchange/codereview |
I have a requirement where I need to execute a statement inside the loop for the first occurrence of a variable.
For example:
Given array my @rand_numbers = qw(1 2 1 2 3 1 3 2);
I know that there are only 3 values present in the array (i.e in this case 1,2 and 3)
I want to print something (or do something) on the firs... | stackexchange/codereview |
I have a custom NSView in an NSScrollView. I am trying to draw a focus ring round an NSScrollView (or perhaps the NSClipView) so that when my custom view receives a drag-drop hover the scroll view appears to get focus. How on earth do I do this? I don't want to have to subclass NSScrollView ... do I?
| stackexchange/codereview |
i'm trying to use this to download mp3 files
Intent downloadIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( "http://www.xxx.com/1.mp3"));
but it always opens another application to play this mp3 file....
i only want to download it ,how can i do ? thanks
| stackexchange/codereview |
I want to create a calculator
template < typename T >
class Calculator
{
public :
Calculator ( void );
~Calculator ( void );
T add(T a, T b)
{
return ( a + b ) ;
}
};
Now I want to make this Caculator add strings, so add("Tim","Joe") shall give me "TimJoe" .
Can I use template function... | stackexchange/codereview |
I have a Silverlight (v3) application that uses WebRequest to make an HTTP POST request to a webpage on the same website as the Silverlight app. This HTTP request gets back a 302 (a redirect) to another page on the same website, which HttpWebRequest is automatically supposed to follow (according to the documentation).
... | stackexchange/codereview |
How do it exactly?
| stackexchange/codereview |
Hi I am beginner in JS, Using linux ( Firefox, Chrome), Is there any way by which I get what are the syntax errors are there in my JS, the way I get my C syntax error in GCC?
| stackexchange/codereview |
I would like to know if its possible, by using JSF, to make somethings like this :
<ui:include src="#{bean.value/bean.value}.xhtml" />
<ui:include src="#{bean.value/'default'/bean.value}.xhtml" />
In other words, create a chain of EL value (in this example it make sense because i use ui:include)
Cheers
| stackexchange/codereview |
I am an experienced coder who is trying to learn C# and WPF. Now, I am a bit of a stickler for detail, and I want to make sure my applications blend in with the rest of the user interface. However, I cannot seem to get this done using a ListView. My setup is simple - add a ListView to my window, bind to an ObservableCo... | stackexchange/codereview |
So I've got a table within a scrolling div. Right now, I resize the div every time the window is resized to allow the user to see as much of the table as possible.
function resizeTable() {
document.getElementById('table-container').style.height =
(window.innerHeight-60)+'px';
};
The only issue is that so... | stackexchange/codereview |
I need to replace words that start with hash mark (#) inside a text.
Well I know how I can replace whole words.
preg_replace("/\b".$variable."\b/", $value, $text);
Because that \b modifier accepts only word characters so a word containing hash mark wont be replaced.
I have this html which contains #companyName type o... | stackexchange/codereview |
We're using Rogue Wave tools for our database operations, writing in C++. When we try to read the results of a simple SQL query, like:
RWDBResult resParam = VimerParamTblSlc.execute (pConn);
RWDBTable resultParam = resParam.table ();
RWDBReader rdrParam = resultParam.reader ();
if (rdrParam())
{
// getting the r... | stackexchange/codereview |
I am developing a .net application, where I am using FileSystemWatcher class and attached its Created event on a folder. I have to do action on this event (i.e. copy file to some other location). When I am putting a large size into the attached watch folder the event raised immediately even the file copy process still ... | stackexchange/codereview |
Does anyone know how to achieve something like TypeKit when combining multiple CSS request? Maybe I'am not aware of that but when you list some fonts the site would generate (maybe dynamic) CSS like 567,568,569.css lo load the font-file. I thought of it as dynamic as it would change if you use other combination (in thi... | stackexchange/codereview |
I use this code to set a label with a location string
locationString = [[NSString alloc] initWithFormat:@"%@%@ - %@ %@%@",
thoroughfare,subThoroughfare,postalCode,
locality,countryCode];
locationLabel.text = locationString;
where thoroughfare, subThoroughfare, postalCode, local... | stackexchange/codereview |
I have a one to many relationship in my database where one event could have multiple dates. I need to find all those events which don't have any events greater than the current dates (i.e. events which have expired).
I am using the following to select all those events with dates in the future:
SELECT events.id AS id,ev... | stackexchange/codereview |
Can anyone tell me why this works;
<DataGridTemplateColumn Header="Supplier">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<ComboBox DisplayMemberPath="SupplierName" SelectedValuePath="SupplierID"
SelectedValue="{Binding SupplierID}"
ItemsSource="{Bindi... | stackexchange/codereview |
I'm using jsvideo for primarly HTML5 video, but it uses flowplayer as its flash fallback...i have it working except that the swf files that flowplayer uses needs to come from an http souce...is there a way to make it so i can put the files on my server?
UPDATE: This is the actual code im using - in the flash fallback s... | stackexchange/codereview |
Hi i have two google map coordinates...
point 1: "1.326631,103.861297" and
point 2: "1.326116,103.860873".
Is there any way to do a javascript function to tell whether point 1 & 2 is near to each other probably by through a radius circle? Thanks
| stackexchange/codereview |
I am trying to implement async tcp networking with runloop.
currently I manage to connect, but when I try to send something I get that -1 bytes have been written - but CFWriteStreamCopyError returns null.
code sample below, first function connects, second send a simple message.
any help will be appreciated, including r... | stackexchange/codereview |
When I try to use ToString() inside the below LINQ Lambda expression, I get an exception saying "LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression."
query = query.Where(q => q.date.ToString().Contains(filtertext)
... | stackexchange/codereview |
I know that I can set a major and minor release number for every project in my solution in VS. Can I set a general major.minor number for all my projects in my solution, that all have the same format e.g. 2.3.3?
| stackexchange/codereview |
i want to change navigation bar background using my own image, but i really dont know what to do. i was search it on google, but some samples tell in navigationbar template. my application is a split view base. How could i do that??
| stackexchange/codereview |
How to get a 'MyClass' instance in the callback from jquery.
function MyClass(){
this.message = 'Hello World'; // I need access to this variable in the callback
//registering class member function as callback
$('div').draggable({drag:this.onDrag});
this.onDrag = function(event,ui){
alert(this.messa... | stackexchange/codereview |
I'm using this bash script:
for a in `sort -u $HADOOP_HOME/conf/slaves`; do
rsync -e ssh -a "${HADOOP_HOME}/conf" ${a}:"${HADOOP_HOME}"
done
for a in `sort -u $HBASE_HOME/conf/regionservers`; do
rsync -e ssh -a "${HBASE_HOME}/conf" ${a}:"${HBASE_HOME}"
done
When I call this script directly from shell, ... | stackexchange/codereview |
I want List of all types exceptions which may be generated during remotely connection between C# application and sql server2005 like updating, inserting etc..
| stackexchange/codereview |
After working on a page for quite some time, the customer now decided that they wan't to be able to change a top level setting but still maintain the current page they're in.
Say for example:
User goes to default page, clicks on the UserSettings which is loading a partial view. In that partial there is multiple links... | stackexchange/codereview |
I'm trying to access a nested function by passing the function name in as a string and then calling it. Eg, see this post
function outer(action){
window["outer"][action]();
function inner(){
alert("hello");
}
}
outer("inner");
However it doesn't work. Error:
window.outer[action] is not a function
... | stackexchange/codereview |
I have a simple method that uses an iterator block to return an IEnumerable<T>:
IEnumerable<MyItem> GetItems()
{
foreach (var item in Items)
{
yield return item;
}
}
Ordinarily, this method works fine, but if I apply a [SecurityCritical] attribute to the assembly (or to the class that contains the ... | stackexchange/codereview |
When trying to run my app with eclipse/linux on apache tomcat on my local host
the application runs fine but, I got the following warning:
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:appname' did not find a matching property.
any ideas what... | stackexchange/codereview |
Is there a command/mode in emacs to format a block of text like this:
; before
; p1 p2 p3 p4 p5 p6 p7 p8 p9 p10
i 107 0 1 10000 440 1
i 107 1.5 1 20000 220 2
i 107 3 2 10000 110 2
i 107 3.5 2.5 10000 138.6 2
i 107 4 2 5000 329.6 2
i 107 4.5 1.5 6000 440 2
i 108 7 1 10000 440 1 2 3 1
i 108 8.5 1 10000 220 1 0.5 8 1
i 10... | stackexchange/codereview |
Is there any possibility to have forced auto completion (for all text, not only :: -> etc) always active in Qt creator 4.7 ?
| stackexchange/codereview |
SQL distributes pre-initialized catalog cluster but for postgresql we need initialize cluster using initdb and a network service account. It fails in few cases and causing bit of misery!
Can initialize cluster ourselves and distribute pre-initialized cluster?
Thanks
| stackexchange/codereview |
I started programming in january of this year and have covered a lot of ground. I have learnt javascript, ruby on rails, html, css, jquery and every now and then i like to try out some clojure but i will really get into that in the middle of next yr. I really didnt like rails and prefer using netbeans with pure javaScr... | stackexchange/codereview |
I'm getting some strange behaviour with the mouse position in SDL. If I re-size the window bigger, the x,y positions from either mouse events, seem to be restricted to the original window Width and Height.
If there some function call that I'm missing to tell SDL that the mousing area has increased in size.
The relevant... | stackexchange/codereview |
Hey there!
Earlier today I came across a new term "compiled queries" in linq2entity and found out what it was used for, however I still wonder whether there are any drawbacks since its never used anywhere? (atleast in the web dev world)
Thanks in advance.
| stackexchange/codereview |
I am currently teaching myself c# but am confused by the following syntax:
new Deck( new Card[] {} )
where the Deck constructor looks like this:
public Deck(IEnumerable<Card> initialCards)
what does the {} bit mean?
| stackexchange/codereview |
I have a program that is used to talk to hardware over rs232. This software is used to display a stream of data that is pushed over the rs232 from the hardware as fast as it can be. The problem I am running into is that over time the private memory assigned to the program explodes, and will very rapidly crash the progr... | stackexchange/codereview |
I created a C# struct which can generically handle case insensitive string comparisons, transparently. So for example:
List<IString> list = new List<IString>();
list.Add("help");
Assert.IsTrue(list.Contains("Help"));
or
Dictionary<IString, string> dict = new Dictionary<IString, string>();
dict["Help"] = "thanks!";
As... | stackexchange/codereview |
I have a html table that is dynamically generated using xsl from a stored proc, and all column sizes/classes etc come from meta-data in the db. I need a plugin of some kind that will enable horizontal and vertical scrolling and be able to handle multiple header rows.
So far I've tried quite a few but most either don't... | stackexchange/codereview |
Is it practical to use SQLite as the database backend for a website with, say, 300,000 unique visitors a month ?
Writes to the database will be pretty limited - user signing up or logging in, adding comments etc. The vast majority of the use will just be queries getting content based on a primary key in the URL. I'd l... | stackexchange/codereview |
How can I profile a linked-in port driver? OTP tools (fprof, etc.) apparently only profile Erlang code, and I don't have a C executable file to feed to gprof.
| stackexchange/codereview |
I am trying to take the camera input and write the data to disk using avassetwriter. From the delegate, it simply appears that avassetwriterinputpixelbufferadator is failing to append data. I'm not sure why
- (NSURL*) assetURL{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, Y... | stackexchange/codereview |
In my rails 2 application, I have a photo show page. On this photo show page, there is a text field for visitors to submit comments on the photo.
If the user who is not logged in types a comment and presses submit, I want a login/register overlay (aka modal) to appear. Once they sign in or register (via our own auth or... | stackexchange/codereview |
How can I detect if a string contains a period . that is in the php variable?
| stackexchange/codereview |
I got results from Outlook into Excel using VBA. There are some cells that hold multiple lines in one cell, like this
line 1
line 2
another line
final line
I tried regular expression "^$" to remove the empty lines.
And worse, since all the lines are in once cell, I cannot use a formula to merge them.
What is in b... | stackexchange/codereview |
I am working on a desktop application where when I thaught of handling the error in catch block in the Event Log then I am getting a error as
Error 3 The type or namespace name 'EventLog' could not be found (are you missing a using directive or an assembly reference?)
in this
catch (Exception ex)
{
EventLog... | stackexchange/codereview |
I have replication working in CouchDB and want to update my UI when changes are pushed to the target database. I've read about _changes database API and found the couch.app.db.changes() function in jquery.couch.js However I can't work out how to use the function. I assume I need to set up listener, but my knowledge of... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.