instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I recently got an fb social plugin. In particular, the "Like" button for my website. Everything works okay it's just that when I click on the button, it reads "You like:http://www.branchout.com/index.php?id=3"
I don't want it to say what URL i like. I want it to say the content of what I'm liking (in this case, it's a ... | stackexchange/codereview |
I have an external sharepoint site, where I need to update the metadata of a large set of files. The best way to do this seems to be using the Lists web service, and using the Lists.UpdateListItems method. However, this method requires the ID of the document on the server, information I don't have. I do have the filepa... | stackexchange/codereview |
I'm learning oracle object-relational model. I already know how to declare, call methods.
but how can I add a new method to an existing object?
is there something like "alter table add function returns xxxxx" ??
thanks
| stackexchange/codereview |
I am working on a emailer system that I have to plug in a CMS for a company. I am looking for a way to make the email sender script run in background while the admin may navigate or even close the browsers.
I found the PHP function named ignore_user_abort() which is required to keep the page running even if it has time... | stackexchange/codereview |
I have an existing Grails app and a separate, existing Java app. I would like the Java app to access the same database schema as the Grails app. Is there a way I can rip out the domain classes and GORM dependencies from the Grails app into a library that the Java app can access?
I'd also be happy to hear alternativ... | stackexchange/codereview |
Before compile my program ,I need to compile a 3rd party library,but it is not writen in QT ,it has a Makefile to build itself . so if I write a pro file like this:
TEMPLATE = subdirs
SUBDIRS += image myapp
(image directory is the 3rd party library)
then qmake,make
it always report "Cannot find file: image.pro"
if I wr... | stackexchange/codereview |
In C#, is it possible to get an instance of an object based on a string without using Reflection?
For example:
Activator.CreateInstance(Type.GetType(objName));
uses reflection.
Is it possible to replace the classic if\else structure of a factory class with a "string to object" implementation that dosn't use reflection... | stackexchange/codereview |
I have a problem with this query and drop down box:
$ziua = "SELECT DISTINCT DAYOFMONTH(ziua) FROM rapoarte";
$ziuaResult = mysql_query($ziua);
Populating the drop down box :
echo"<td>Selectati Ziua:</td>
<td><select name='ziua'>
<option value='---'>---</option>";
while($ziuaRow = mysql_fetch_array($ziuaRe... | stackexchange/codereview |
how do i detect duplicate string inside explode?
$str = 'a, b, c, a, a, a, b, e, w, r, d, o'; // example str
$explode = explode(',', $str);
any idea?
| stackexchange/codereview |
I have two ul's (.listone and .listtwo respectfully) floated left and the other right. The list-style:circle; works in every browser except for ie7 =< . In ie7 the list-style is just ignored. How can I fix this?
| stackexchange/codereview |
eval('puts "ff"\nputs "ff"')
I tried to use two expressions in one eval but it doesn't execute?
How do I do this? I want to know because I want to dynamically execute partial code.
| stackexchange/codereview |
I am using an instance of mediawiki and have added adsense to the php file of the skin. This places the adsense banner on all pages but I would like to omit the adsense banner from very specific pages.Primarily the "homepage" (but keep adsense on all the other pages). My site is really big so going in the other directi... | stackexchange/codereview |
When I pass @param1 with space separated values, like N'here it is', there is a syntax error. If no spaces in the middle, for example N'hereitis', there is no such syntax error. Any ideas what is wrong?
I call stored procedure in this way,
EXEC @return_value = [dbo].[foo]
@param1 = N'here it is',
@param2 = 10,
@p... | stackexchange/codereview |
I have an algorithmic problem which can be reduced to this task:
Suppose we have a list of n diseases and m symptoms.
For each disease d and symptom s, we have one of three options:
the symptom is positively correlated with the disease: s => d
the symptom is negatively correlated with the disease: s => ~d
the symptom ... | stackexchange/codereview |
I have nested list :
ip[0] = ['23:30:42.476071', '55729', '192.168.98.138.49341', '201.20.49.239.80', '562034568', -1]
ip[1] = ['23:30:43.110194', '20442', '201.20.49.239.80', '192.168.98.138.49341', '364925831', '562034569']
ip[2] = ['23:30:43.110290', '55730', '192.168.98.138.49341', '201.20.49.239.80', -1,... | stackexchange/codereview |
I am using Bluetooth Chat sample app from Android website. I want to pass the complete incoming message, (message format included in the code below as this website is parsing the message for me which is my job in the code as well, to a function which removes the tags and extracts message name and value and uses it for ... | stackexchange/codereview |
In ASP.NET, is there any reason not to make a set of functions that Add/Remove/Get from the Cache object Static?
Get() - just gets the item, no reason not to be static
Add(), Remove() - I've read that adding/deleting into the cache has it's own internal locking mechanism, so they can be static without me creating my ow... | stackexchange/codereview |
When you have a master/slave setup, how can you force a particular query (say a write) to go to the master, and/or a slave server?
| stackexchange/codereview |
I have these two tables
tickets - id, user_id, manager_id etc
users - id, first_name etc
user_id and manager_id are both references for users
using rails is there a way of creating a find that pulls in the users info and managers(users) info.
The sql joins would look abit like this -
LEFT JOIN users ON users.id = tic... | stackexchange/codereview |
I am New to Android. My Requirement is to storing an audio file into database using Android Sqlite. can any one suggest me?
Thanks in advance.
| stackexchange/codereview |
I'm trying to test a scope I have that is based upon a chain of other scopes. ("public_stream" below).
scope :public, where("entries.privacy = 'public'")
scope :completed, where("entries.observation <> '' AND entries.application <> ''")
scope :without_user, lambda { |user| where("entries.user_id <> ?", user.id) }
scope... | stackexchange/codereview |
I am trying to write a method in C# that takes a string with HTML encoded characters and returns it as utf-8 characters. At first I thought this was already possible with the HttpEncoder.HtmlDecode method but this returns void and takes TextWriter for output as the second param. I don't really get the TextWriter clas... | stackexchange/codereview |
I am facing a problem with NSString method drawAtPoint and kCGTextFillClip. I needed to create a UILabel with a gradient instead of a simple color, so I've subclassed it and overrode the drawRect method. I managed to get what I wanted by using the function CGContextShowTextAtPoint, but it doesn't handle UTF-8 properly,... | stackexchange/codereview |
I have a html helper,
if I call it like this:
Html.MyHelper("Prop1")
I can get the data of another property like this:
public static MvcHtmlString MyHelper(
this HtmlHelper html,
string prop){
var p = TypeDescriptor.GetProperties(html.ViewData.Model).Find("Prop2", false);
if (p != nul... | stackexchange/codereview |
I'm trying to set up a Windows PowerShell alias to run MinGW's g++ executable with certain parameters. However, these parameters need to come after the file name and other arguments. I don't want to go through the hassle of trying to set up a function and all of that. Is there a way to simply say something like:
alias ... | stackexchange/codereview |
I'm working in C# 3.5.
I have a XML document that contains a character entity within an element's value. The reference is
(LF). I do not want this expanded out into an actual linefeed, I want it to remain as an entity. This is because the commercial tool that processes the XML requires the LF to be represented as an ... | stackexchange/codereview |
I am writing a small piece of code
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("http://..../file.mid");
mediaPlayer.prepare();
mediaPlayer.start();
which is not working, where as
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("http://..../file.mp3");
mediaPlayer.pre... | stackexchange/codereview |
I want to detect not the pitch, but the pitch class of a sung note.
So, whether it is C4 or C5 is not important: they must both be detected as C.
Imagine the 12 semitones arranged on a clock face, with the needle pointing to the pitch class. That's what I'm after! ideally I would like to be able to tell whether t... | stackexchange/codereview |
when should i go for Expat parser rather Dom Parser and vice versa ? What is the difference between these parsers ?
| stackexchange/codereview |
I have a problem with this exercise:
Write a program in C that creates a child and between father and child, there will be two-way communication using pipes. His father would read a file (whose name will be given the user) and will send letters to the child.
The child will count the number of words starting from with '... | stackexchange/codereview |
I'm creating a site for distributing software to clients. We're implementing lots of security bells and whistles on it to reasure the clients that software they're running wont have been tampered with.
I'm toying with the idea of encrypting the files we upload to the server, but I'm not sure if there's much point coni... | stackexchange/codereview |
I am in the process of creating a TCP remote desktop broadcasting application. (Something like Team Viewer or VNC)
the server application will
1. run on a PC listening for multiple clients on one Thread
2. and on another thread it will record the desktop every second
3. and it will broadcast the desktop for each conne... | stackexchange/codereview |
Below is my program and im having a problem with the determinant function.
File input is:
2
1 0
0 1
3
8 9 1
3 5 2
-2 3 -1
0
and for the second matrix it is reading nan for the result of the determinant function for matrix two in the input file, any ideas for what could be going wrong with my code?
#include <iostream... | stackexchange/codereview |
I have a table TABLENAME with COLUMNNAME data type is CLOB. For example it's contains only 3 rows with 1st row of COLUMNNAME value is 123,456,789 and the 2nd is NULL and the 3rd is an empty string
And I have this query
UPDATE TABLENAME
SET COLUMNNAME = COLUMNNAME || CASE
WHEN TR... | stackexchange/codereview |
Hi everyone i would like to know that how to make the provisioning profile for iphone app.I want to test my app on the device and i don't know what i need to do to make that possible to test the app.Please anyone can help me in the steps for that.
Thanks in advance.
| stackexchange/codereview |
I want to extract out an DOM object out of one of textarea which is defined.
Example :
<textarea id="myTextArea"><span id="sp1">some text</span></textarea>
Note : <span> inside <textarea> is decoded. I simply want to find a particular <span> by its id inside the textarea and instantiate an new object out of it.
As of ... | stackexchange/codereview |
I am trying to get this mapping to work, but I get this strange exception message
Could not determine type for: foo.ProcessUser, at table: ProcessUser_onetimeCodes, for columns: [org.hibernate.mapping.Column(processUser)]
@Entity
public class ProcessUser {
@Setter
private List<OnetimeCodes> onetimeCodes;
@Colle... | stackexchange/codereview |
I guess the answer has already been posted, but I am a lazzy boy :p .
Seriously I am working on an iPhone Application which have to blit a map
and use the current user gps location to locate the user on the map.
The problem is that with iPhone (v1), and all iPod version there is no gps device,
so is it possible to get ... | stackexchange/codereview |
I want to write a little helper utility to organize my digitized audiobooks collection.
I have a set of folders which I need to write to CDs. The folders can not be split: each folder goes onto one disk.
I want to fill the disks most efficiently:
Minimize the number of disks, and
The number of disks being equal, maxim... | stackexchange/codereview |
Say you have a use case called 'schedule meeting.' Defined in the spec, meetings can only be scheduled for the current time or the future. In the Use Case should it include the flow where "if the date/time given is in the past, a message box will show 'meeting time cannot be in the past'"?
Like I said, it's defined in ... | stackexchange/codereview |
I have a problem to understand the evolution of code when you have taken the "Fake It Until You Make IT" TDD approach.
Ok, you have faked it, let's say you returned a constant so that the broken test is green in the beginning. Then you re-factored your code. Then you run the same test which is going to pass obviously ... | stackexchange/codereview |
I've got a view that defines a form as
<% using (Html.BeginForm( "Update", "CcisCase", FormMethod.Post, new { id = "ccisEditForm" } ))
with a submit button:
In the RegisterRoutes method (in the HttpApplication-derived class in global.asax.cs), I've got:
routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" );
... | stackexchange/codereview |
I have a page filtered using links' rel= attributes. I'm trying to get document.ready filter it based on the first link's rel= attribute and instead it loads all the links.
If my hacked-together code isn't enough of an indication, I'm pretty new to jQuery. Can somebody point me in the right direction?
jQuery(document).... | stackexchange/codereview |
for example:
file_ptr=fopen(“data_1.txt”, “r”);
how do i find number of lines in the file?
| stackexchange/codereview |
Does anybody have a link to the Don Syme F# demo showing soccer balls rolling in a 3D parabola?
| stackexchange/codereview |
I downloaded OpenSSL sources, and did the config, make, sudo make install trilogy.
I then built my project, linking in libcrypto.a and libssl.a, but got:
ld: warning: in /usr/local/ssl/lib/libcrypto.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /usr/lo... | stackexchange/codereview |
Just switched from Cucumber+Webrat to Cucumber+Capybara and I am wondering how you can POST content to a URL in Capybara.
In Cucumber+Webrat I was able to have a step:
When /^I send "([^\"]*)" to "([^\"]*)"$/ do |file, project|
proj = Project.find(:first, :conditions => "name='#{project}'")
f = File.new(File.join(:... | stackexchange/codereview |
I have a website in which a user enters text into an html form. The nature of the content is such that it is likely the user will want to write multiple paragraphs. As it stands now, the form sends the text via POST to a PHP file which inserts the text into a database. On another page, the text is pulled from the datab... | stackexchange/codereview |
I wrote my bind function which returns a nullary functor because I don't have boost. Though this code compiles fine, it does not behave as I expected. When I input 2 as the number of numbers and try to enter them, the program terminates the first time I hit return. And, when I debug, it segfaults inside mem_fun_t::oper... | stackexchange/codereview |
I need a query that can return the records from table A that have greater than COUNT records in table B. The query needs to be able to go in line with other filters that might be applied on table A.
Example case study:
I have a person and appointments table. I am looking for all people who have been in for 5 or more ap... | stackexchange/codereview |
There are lots of posts out there on pivoting rows into columns for various databases. They seem to fall into two camps, using case statements or using a built in function of the database vendor. I am using MySQL and have not found anything so far on any built in function that will allow me to pivot on an arbitrary u... | stackexchange/codereview |
I am using ExtJS with an XMLReader to display content in a GridPanel. This works fine, however my XML source has an unpredictable number of repeated elements:
<beamline>
<technique>Tomography</technique>
<technique>Phase contrast imaging</technique>
<technique>Microdiffraction</technique>
<technique>General... | stackexchange/codereview |
I have datagrid and inside this grid have template field. I add Header text progr. like this
gvData.HeaderRow.Cells(8).Text = "Hi"
But when I do this I can not sort this column when add SortExpression="Hi", i not have clickable header.
How can I do this
Tnx
| stackexchange/codereview |
In the client, I have a
close(sockfd)
where sockfd is the socket that's connected to the server.
In the server I've got this:
if (sockfd.revents & POLLERR ||
desc_set[i].revents & POLLHUP || desc_set[i].revents & POLLNVAL) {
close(sockfd.fd);
printf("Goodbye (connection closed)\n");
}
Where sockfd is a st... | stackexchange/codereview |
function searchsong_block($op='list',$delta=0){
$block = array();
switch($op){
case "list":
$block[0][info] = t('Search song');
return $block;
case "view":
$block['subject']='THIS IS SONG SEARCH MODULE';
$block['content']=drupal_get_form('custom1_default_form');
return $block;
}
}
function... | stackexchange/codereview |
I'm checking if a user is logged in. If they are I want to set some variables that will be available to all my functions in that class here is the code thus far. Calling $logged_in or $user_name from my view results in an undefined variable? Please help :)
<?php
class Auth extends Controller {
function __construct()
{... | stackexchange/codereview |
Friends! Every morning when I start my internet, I have to open a page, which redirects me to a login screen and I login from there. Since the username/password values are prepopulated, I have to just hit the Login button.
Now once in a day is ok but sometimes during the day, the connection just goes off and I am redir... | stackexchange/codereview |
I have a simple web form written in Google web toolkit. I want the user to follow a new URL when he clicks on the submit button. However I cannot find any examples of redirecting the user to a new URL from within GWT code. How may I achieve this?
| stackexchange/codereview |
I have a HTML element to which I have attached a webkitTransitionEnd event.
function transEnd(event) {
alert( "Finished transition!" );
}
var node = document.getElementById('node');
node.addEventListener( 'webkitTransitionEnd', transEnd, false );
Then I proceed to change its CSS left and top properties like:... | stackexchange/codereview |
I have written a simple program that pings three sites and then reacts to whether they are reachable or not.
My question is: can I suppress system("ping ")'s output? I have written my code in C++ as I know that language the best. Currently the code opens the ping.exe running the system command. If I can prevent the out... | stackexchange/codereview |
i have a collection of items where each item has a "date" field (the code is below).
i am trying to fill in any gaps in dates in the collection using LINQ. in particular, i want the resulting sequence to contain all days between the first and the last day in the original sequence.
in addition to this, my resulting LINQ... | stackexchange/codereview |
I'm struggling with something rather simple in flash at the moment.
Imagine you have two movieclips ontop of eachother. Both of these movieclips have identical movieclips within them.
If I fade out the top movieclip I expect to see no change at all, but for some reason I can see the fade happen.
It's like actionscript ... | stackexchange/codereview |
I have two databases that my site uses and I have an app that uses both of them. I need to write a TestCase that loads fixtures for both databases. I use a DB router, which works fine in production, but in the testing framework, Django insists on using the 'default' database for all fixtures, even for models that speci... | stackexchange/codereview |
Hi everyone i am new to drupal i am developing a module where i need a calculation using java scrip or jquery but i dont no how to implement .js files or how to write a javascript in drupal can anyone pls provide me a releated links or any help on this thanks in advance.
| stackexchange/codereview |
i have an dynamic image gallery to display, using PHP...
My PROB
the style & positioning should be that if there is not enough space for a whole div, like in the image above, then the DIVs in the row should position them like the following
centered and equi distant...
here is JS-Fiddle basic template set, if somebod... | stackexchange/codereview |
I am building a Webapp with Spring MVC and on many different pages i would like to include something like a "smart" component. For example a box that shows various objects from my database. So it needs to be able to access my service layer somehow, because I do not want to pass any object each time I use this component... | stackexchange/codereview |
I search an example or sample to filter the WPF DataGrid column elements by a textbox.
Something similar to this (the given example uses a WPFToolkit... apparently abandoned by Microsoft...)
XAML
<Canvas>
<DataGrid Height="200" Name="dataGrid1" Width="200" Canvas.Top="23" />
<TextBox Name="textBox1" Width="1... | stackexchange/codereview |
in the template.phtml file there is a line of code which refers to the content, using
getChildHtml('content') ?>
which echos out the content and the containing divs, i wish to access this raw code so i can insert
some custom data but for the life of me cannot find where it is?! i have found the Mage_Page_Block_Html cl... | stackexchange/codereview |
Is It possible To Use ASP.NET TextBox With Jquery UI Auto CompletE?
I am Able to use html input control with this plugin.
is there any sample exist?
thanks
| stackexchange/codereview |
We are using an HTML parser called Html Agility Pack in our .NET web services. We parse some HTML pages using this parser and extract some content. Though this parser is useful, we are looking for better productivity. We are wondering whether we can load javascript and jquery in web services and use jquery just like we... | stackexchange/codereview |
I want to create a module that can send a message to another module in different tab. I don't know the target tab Id but I know the target module name.
Is there any way to do such a thing? Does Dot net nuke support messaging?
| stackexchange/codereview |
I thought that wasn't that hard to do, but I want to remove all empty lines (or lines just containing blanks and tabs in Java) with String.replaceAll.
My regex looks like this:
s = s.replaceAll ("^[ |\t]*\n$", "");
But it doesn't work.
I looked around, but only found regexes for removing empty lines without blanks or ... | stackexchange/codereview |
I'm wanting to write my own psuedo-shell and would like to get pretty colors etc. How do I go about tricking a subprocess into thinking that it is in a TTY? I've read about virtual TTY's but haven't found much practical information about how to either create one or how that makes a subprocess think that isatty(stdout) ... | stackexchange/codereview |
echo "<td> + manuf + </td>";
Is this above ever going to work??
I'm pulling results from a mysql db to edit the contents but need the jQuery functionality to edit it, hence the embedded javascript variable...
EDIT:
Sorry for the lack of context, its related to another question i've asked on here Mysql edit users order... | stackexchange/codereview |
Possible Duplicate:
How to block calls in android
How can we reject incoming phone call in android if the incoming number is already stored in phonebook.
What method is used to reject incoming calls? I know how to detect incoming calls but don't know how to reject.
| stackexchange/codereview |
foreach (Control control in ContentPlaceHolder1.Controls)
{
if(typeof(Control).Equals(Telerik.Web.UI.RadEditor))
{
label1.Visible = true; label1.Text = "dhchk";
// control.CssFiles.Add("~/styles/myStyle.css");
}
}
Error;-
'Telerik.Web.UI.RadEditor' is a 'type'... | stackexchange/codereview |
I'm doing some research into which of Entity Framework and (fluent) nHibernate is the best fit for a project. And I've stumbled into some mapping problems. I'm hoping someone here can help me out with a quick solution to my problem :)
Here are my entity classes:
public abstract class DisplayItem
{
public virtual in... | stackexchange/codereview |
I'm using WebClient class to download a xml file where is written the latest version of my program to check for updates. I thought that I can see how many people are using my program by checking how many hits my update.xml gets with awstats. Me and my friend are testing the program for 2 days but awstats still says 0 h... | stackexchange/codereview |
i used this url to draw map with overlay line
http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&sensor=false
i want to add markers to start and end position..
so i used the url below
maps.google.com/maps/api/staticmap?size=400x400&zoo... | stackexchange/codereview |
I would like to submit a very simple form with an XMLHttpRequest. (I don't want to bother with jQuery). All this form does is insert a full name, a username, and a password into our db. I would like for the row to be inserted into the db without refreshing the page, and have the php file send a message back on whether ... | stackexchange/codereview |
Is it possible to append a string to an Android activity titlebar without needing to rebuild it entirely?
| stackexchange/codereview |
The following code does not compile ... any idea why? Is this illegal C++?
class Handler {
public:
template <typename T>
void handle(T t) {}
};
class Initializer {
public:
template <typename T, typename H>
void setup(H *handler) {
void (H::*handle)(T) = &H::handle<T>; // fails
}
};
int main() {
... | stackexchange/codereview |
The following sentences are a cause of confusion for me(from Guido's Tutorial on python.org):
"Note that comparing objects of
different types is legal. The outcome
is deterministic but arbitrary: the
types are ordered by their name. Thus,
a list is always smaller than a
string, a string is always smaller
t... | stackexchange/codereview |
So I was trying a hack to put a quick bandaid on an issue I'm having that's described in another question I have posted.
I have a sub-activity that was kicked off by my main activity and it can also be stopped by the main activity calling finishActivity(requestCode) on it. However the sub-activity is always returning ... | stackexchange/codereview |
Possible Duplicate:
MethodInvoker vs Action for Control.BeginInvoke
ThreadPool.QueueUserWorkItem(x =>
{
//get dataset from web service
BeginInvoke(new Action(() => {
//fill grid
}));
BeginInvoke(new MethodInvoker(() => {
/... | stackexchange/codereview |
Does anyone know or have any idea if the KMP algorithm for substring searching can be modified to find not exact matches but approximate ones?
| stackexchange/codereview |
I have inherited a massive stylesheet with many thousand selectors and I'm certain that a good number of them are unnecessary and never actually match elements on the site. In the interests of optimizing, I'd like to remove those orphaned selectors/rules.
Are there any tools that would allow me to compare the CSS aga... | stackexchange/codereview |
Is it possible to set the default input focus on an HTML form without using JavaScript, for example:
<html>
<form>
Input 1: <input type="text" name="textbox1"/>
<br/>
Input 2: <input type="text" name="textbox2"/>
</form>
</html>
I want to set the default focus to either of the text-boxes when the form ... | stackexchange/codereview |
I have a video, and I need to get some of its frames.
I used to do the following: Create a standart bitmap with the size of the video in question, create a canvas and set it to draw on a bitmap.
I use a SurfaceView and a surfaceHolder. A mediaPlayer is drawing on the surfaceView, and I have a method that calls surfac... | stackexchange/codereview |
((EnvDTE80.Solution2)dte.Solution).GetProjectItemTemplate("Test Settings", "Test");
I need to add a new TestSettings object programmatically to a C# project in Visual Studio. To do this I need to get the path of the template file. The call to GetProjectItemTemplate should do this, but fails for this type of template. ... | stackexchange/codereview |
How do you add an onload event to an element?
Can I use:
<div onload="oQuickReply.swap();" ></div>
for this?
| stackexchange/codereview |
I am doing something unusual.
I have an application, it runs as a windows service.
what it does is that, it monitor one folder, when ever there is some new file put into that folder, the application will do something to the file.
Whenever there is an error when processing one file. I need to create a text file, and p... | stackexchange/codereview |
I've got a stored procedure that looks like this:
create procedure [dbo].[Batch_of_Things_Get] (@MaxTimestamp binary(8)) as
begin
set nocount on
select top 3500
i.ThingID,
i.Name,
i.CreationDate,
i.local_timestamp
from
[dbo].[Thing] i
where
i.local_times... | stackexchange/codereview |
This is similar to How to keep the order of elements in hashtable, except for .NET.
Is there any Hashtable or Dictionary in .NET that allows you to access it's .Index property for the entry in the order in which it was added to the collection?
| stackexchange/codereview |
I've just moved over a Visual Studio (C++) solution over to another computer, setup all the directories and settings as far as I can see, and did a clean/rebuild on the solution. I get the error above on a bunch of .obj's on compile, not sure what to do about it.
| stackexchange/codereview |
I ma using DevExpress controls (which doesnt matter for this example). I have a lookupEdit control and I never want the EditValue_Changed event to fire. Can I use RemoveHandler to do this? If so can someone give me a code example of doing this? Should I put RemoveHandler in the load event of the user control I am creat... | stackexchange/codereview |
Are the members of a global or static structure in C guaranteed to be automatically initialized to zero, in the same way that uninitialized global or static variables are?
| stackexchange/codereview |
I am using meta_search. The following gives correct results:
User.search({:first_name_contains_any => ["peter", "john"]}).all
User.search({:last_name_contains_any => ["wong", "lee"]}).all
But the following does not work and throws NoMethodError:
User.search({:first_name_or_last_name_contains_any => ["peter", "somethin... | stackexchange/codereview |
How to install a NavigationController as the root view in a tab bar view?
In my applicaton:didFinishLaunchingWithOptions: method I created a tab bar interface, setting the rootViewController of the window as the tabBarController.
Now, in one of my tab bar views, I want to add a navigation bar at the top. How can I acco... | stackexchange/codereview |
Okay I tried asking this question yesterday but i'm not sure if I gave enough info, i got an answer but it hasn't worked for me. Basically what i'm doing is the user opens this windows forms application and logs in. Afterwhich they enter some text into a textbox and click run. At this point the run function is making ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.