instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to create a color picker in WPF/C# similar to what I see in Photoshop.
As I move the Hue Slider, the gradient should update. I 1st want to know how can I create the gradient, where should individual color stops appear and what color values should they contain.
The above maybe harder to implement as the gradie... | stackexchange/codereview |
Can we make the following Ruby code shorter, and at the same time more readable?
height = do_some_calc
height = 128 if height == 0
| stackexchange/codereview |
I recall reading sometime ago that all GET requests from a webbrowser are logged. Is this correct? Where are these logs located?
If so are there any workarounds to prevent logging your webservice username and passwords?
I understand I can change my webservice to accept POSTS (which if I recall correctly the article s... | stackexchange/codereview |
I've got a project in front of me that requires me to build a Soap Client in PHP and pass with the call/request a basic authorization. The client's WSDL doesn't specify a header. This is throwing me off because the basic authorization is needed to access the API in order to use the webservice (a simple user lookup).
Th... | stackexchange/codereview |
How would one install a Ruby VM (JRuby, Ruby MRI, etc.) on a machine that doesn't have internet access?
I'd like to just drop the tar.gz file somewhere that RVM is able to see (or checks before it goes out and tries to retrieve the package itself). Any ideas?
| stackexchange/codereview |
Our application needs to encrypt/decrypt files using (for instance) Blowfish encryption algorithm. We know bcrypt could be a good choice, but it cannot be called directly from our application (as it prompts for key phrase).
Which is the best existing option?
We prefer a Windows tool, though Linux would be good as well... | stackexchange/codereview |
View's have a minHeight but somehow are lacking a maxHeight:
What I'm trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items I want to display them directly. Meaning the ScrollView has the height of either 1, 2 or 3 items.
When there are 4 or more items I want the ScrollView t... | stackexchange/codereview |
I have a ListView which can be navigated with the dpad. It has a footer. I want to prevent navigation into the footer with the dpad. I have set focusable and focusableInTouchMode of the footer view itself to false; this makes no difference (so I deduce that it is not actually focus I am seeing, but rather selection)... | stackexchange/codereview |
Referring to this topic: Minimize LINQ string token counter
And using the following provided code:
string src = "for each character in the string, take the rest of the " +
"string starting from that character " +
"as a substring; count it if it starts with the target string";
var results = sr... | stackexchange/codereview |
I would like to make use @IndexColumn to set seq number of some data the user enters. I am using Spring 2.5.6, JBoss 5.1 (JPA 1.0).
For my parent class
@Entity
@Table(name="material")
public class Material implements Serializable {
.
.
/**
* List of material attributes associated with the given material
... | stackexchange/codereview |
how create a compiler for java using a java program
| stackexchange/codereview |
How can i get notified when switching to a particular VisualState is complete or not?
Example. VisualStateManager.GoToState(this, "UnloadState", true);
In above case i want to get notified when switched to UnloadedState is completed.
Thanks in advance :)
| stackexchange/codereview |
I am figuring myself around Drupal.
I have understood that there are regions specified (in page.tpl and theme.info files). But my website requires different pages to have different layouts, how should I go about doing this ?
I figured, if I could make a custom Content-Types and I would like each content type to point ... | stackexchange/codereview |
I'm trying to get Maven to filter & copy two files used for testing.
I've tried putting them in src/test/resources as well as src/test/application (in case it works similar to src/main/application) but nothing happens.
The documentation doesn't say anything about test resources.
Thanks in advance!
<plugins>
<plugin... | stackexchange/codereview |
I have two models lets say:
class superfields(Model):
fieldA = models.FloatField()
fieldB = models.FloatField()
class Meta:
abstract = True
class my_model( superfields ):
def has_history( self ):
return self.my_model_history_set.count() > 0
class my_model_history( superfields ):
re... | stackexchange/codereview |
I am looking for the best way to effectively share chunks of data between two (or more) processes in a writer-biased reader/writer model.
My current tests are with boost::interprocess. I have created some managed_shared_memory and am attempting to lock access to the data chunk by using an interprocess mutex stored in t... | stackexchange/codereview |
I have this XML:
<picture id="2">
<title>B</title>
</picture>
<picture id="3">
<title>C</title>
</picture>
<picture id="0">
<title>A</title>
</picture>
Trying to achieve this:
<picture id="1">
<title>B</title>
</picture>
<picture id="2">
<title>C</title>
</picture>
<picture id... | stackexchange/codereview |
Currently when one invites anynomous users to join an Organic Group on a Drupal site, the email that gets send out, only contains a link to the Organic Group. But then because the user is anonymous he will not be able to access the group unless he first registers.
So what happens presently is the user gets an emaila to... | stackexchange/codereview |
I'm building an autosuggest. For now the destination app is desktop, but the idea is to build it as strong as posible and then maybe include it in a web.
Right now I'm at the very beginning of the project: thinking the database (SQL Server 2008)
The autosuggest is going to be from a table of ~40.000.000 of rows.
Right ... | stackexchange/codereview |
I am trying to send a POST request to add some content to an API box. The rules are that the body format should be XML(values must be XML-escaped), HTTP Method (post), requires authentication(yes), request content(content-type: "application/xml"
<entries?
<entry tag="some_tag">
<value>XML-escaped-entry belongs he... | stackexchange/codereview |
I'm currently building a universal app.
After the user taps a button, I present some settings in a modal View in the following way:
viewCtrl.modalPresentationStyle = UIModalPresentationFullScreen;
viewCtrl.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:viewCtrl animated:YE... | stackexchange/codereview |
Can you solve this without throwing an error? The answer is a one-liner. This is from a dead job posting, the answer was requested in the response. I thought it was a clever way to weed out respondents, but I can't seem to answer it without also getting an error.
The obvious solution:
f.moo(alert(f.foo));
But that thr... | stackexchange/codereview |
A friend of mine is interested in developing an iPad application, and he's heard that "most iPad apps don't offer public beta versions".
Is it true? What mechanisms can he use to distribute a private or public beta version of his app?
| stackexchange/codereview |
I am new to both Wordpress and Ruby on rails.Are these (WP and ruby on rails) two are power full tool for creating any good website .
I have seen from wordpress and ruby on rails official website that some of the popular web sites(twitter,WSJ etc.) are using these two.
Please give me are brief idea these.
| stackexchange/codereview |
I'm fairly new to WCF development and have run into a couple problems whilst learning the framework. I have a service api which must support both REST & SOAP. So far this has been easy to implement especially with WCF4 and routing.
I am currently working on authorization and have managed to extend AuthorizationManager ... | stackexchange/codereview |
How can I make an AJAX call to retrieve the URL of controller's action method?
| stackexchange/codereview |
let's said table A create with definition keyword varchar(255) collate latin1_general_cs with index create on it
table B create with definition keyword varchar(255) collate latin1_general_ci,
both insert same set of data
and perform the same set of query
select * from my_table where keyword='apple'
will query to table... | stackexchange/codereview |
I am trying to make a simple rest api with rails using the respond_with method, but it does not want to output any type of status message
for example, I want it to not only return the json for a get call but also a ok status. The same for when a post or delete works/fails.
Several tutorials suggest using additional :s... | stackexchange/codereview |
I was wondering if would be possible to perform an action for each time the USB status of the device changes.
For example if the user plugs in the cable and it is in sync/charge mode it performs a certain action, if the user then changes the phone into USB Memory Card mode another action is performed and if the user t... | stackexchange/codereview |
I was watching a metaprogramming video from PragProg, and Dave Thomas showed this snippet of code:
module Math
class << self
def is_even?(num)
(num & 1) == 0 # What exactly is going on here? Particularly (num & 1)
end
end
end
puts Math.is_even? 1 # => false
puts Math.is_even? 2 # => true
Now I under... | stackexchange/codereview |
I defined a field in Roo with:
field number --fieldName firstNum --type java.lang.Integer
But I really wanted to define it with --notNull.
Can I update this in Roo, or do I have to update the generated files manually outside of the Roo console?
| stackexchange/codereview |
I've data bound a ListBox in my MVVM Light Windows Phone 7 app, and want to invoke a command in my view model when the user clicks on an item in my ListBox.
I'm doing this using the EventToCommand behaviour and everything is good, except that I can't pass the data item associated with the list element that was clicked,... | stackexchange/codereview |
I have to show a navigation view where number of views are server dependent. So I cannot hardcode the view controllers. Is there any way I can use 1 view controller and the data will be sent by server. So essentially it will work like this:
1. Get data from server... show on nav view using nav controller.
2. Once I tap... | stackexchange/codereview |
i'm developing a web where i want to show a flash on the index page. The flash got 3Mb size. But while it is downloading, i just see a white space where it should be.
I have tried putting an image in the background, but i just see white until the flash is fully downloaded...
Any tip? I would like to see the first image... | stackexchange/codereview |
Here are two XMLs , I am trying to compare and put the respective data in excel sheet.
I have a multidimensional array called provisions.
<xml>
<Item type="ItemHeader" name="Plan Features" id="id_1"></Item>
<Item type="Deductible" name="Deductible" id="a">Calendar Year
<Item type="Text" name="Individual" id="b">5,000<... | stackexchange/codereview |
How do I include a ruby code file, as is, into RDoc?
I have an example.rb file that documents how to use my gem and I would like to include that as one of the files like the README.rdoc and HISTORY.rdoc.
I've already figured out how to convert the ruby source code into HTML using the Syntax gem but I can't figure out ... | stackexchange/codereview |
Having these queries, but on running it gives me blank pages. Maybe bacause the $query->result function is not good for "him"? (It's ExpressionEngine)
$query = $DB->query("SELECT fr.uri AS smth, ch.uri
FROM exp_static_page_caching_uris AS fr,
exp_static_... | stackexchange/codereview |
I have something like this:
#include <iostream>
namespace N
{
typedef std::pair<int, double> MyPair;
std::ostream& operator << (std::ostream& o, MyPair const & mypair)
{
///
}
}
int main()
{
N::MyPair pr;
std::cout << pr;
}
This naturally doesn't work, because ADL won't find operator<< becau... | stackexchange/codereview |
I am dynamically populating a winforms combo box by creating a list from a database.
List<string> locationList = new List<string>();
foreach(Data.DataSet.vwGet_RepListRow row in Data.Manager.TAM.RepListViewTableAdapter.GetData())
locationList.Add(row.Location_City);
this.LocationComboBox.... | stackexchange/codereview |
I'm trying to implement an OpenSocial gadget for iGoogle.
I'm writing my application in PHP and then "wrapping" it in an opensocial container using the XML gadget specification.
If I run my PHP in a stand-alone page it works fine, in an iGoogle container when I press the button on the form it says "The web page could n... | stackexchange/codereview |
I have been tasked to set up a Java based development environment across multiple Windows machines. The problem is that I want to the process to be done automatically and easily on each machine so the developers don't have to waste time downloading and installing all the different applications. Ideally, I would like to... | stackexchange/codereview |
One of the field of the IMAGE_EXPORT_DIRECTORY structure is 'Name'. According to the COFF spec, this field contains the name of the PE file which exports the symbols. I can programmatically read this field. It does really reference the name of the file which exports the symbols. But, can someone explains the meaning of... | stackexchange/codereview |
I'm looking to place my company's trailer inventory on a few free classified ad sites. Our inventory database (filemaker) can export data into an excel spreadsheet (column A-Make, B-Model, C-Year, etc.) including the URLs of the photos of each trailer.
Our dealer sites allow for bulk uploading through XML and that wor... | stackexchange/codereview |
Is there a name for a type of Star Schema in which there is a single Fact table which has a single column for value, and the type of value (the measure) is defined by a dimension?
In other words, a table like this:
Dim1ID Dim2ID MeasureID Value
--------- ----------- ------------- ------------
543 ... | stackexchange/codereview |
I am dynamically generating XAML which has a reference to a resource custom font.
When pushing this xaml into an xps the font is not printing.
I suspect this is because I am working with a stream of xaml, instead of xaml that comes from a file.
How can I get this resource reference to work when streaming xaml?
| stackexchange/codereview |
I'm trying to create instances of objects that have the same base type like this:
Assembly myAssembly = Assembly.GetExecutingAssembly();
var objs = myAssembly.GetTypes().Where(t => t.BaseType == typeof(SearchLogicObjectBase)).OrderBy(o => o.FullName);
foreach (var item in objs)
{
SearchLogicObjectBase p = ... | stackexchange/codereview |
I got a question from my client can you update the Magento site with the security patches?. Can you guys please let me know that is there any module to install security patches or there are set of steps we have to implement one by one there on magento application. In either case, it will be really a great favor if you ... | stackexchange/codereview |
I think the result should be the same ("0") in both examples, but it isn't. Why?
"0 Y".match(/[0-9]*/) // returns "0"
"Y 0".match(/[0-9]*/) // returns ""
| stackexchange/codereview |
I have the following T-SQL if statement:
if @changeType = 'ChangeFrom'
begin
print 'yep'
end
else
begin
print 'nope'
end
If @changeType = 'ChangeFrom' I get yep.
If @changeType = 'ChangeTo' I get nope.
If @changeType ='ChangeFromfsjkfh' I get yep! Whats going on there?
| stackexchange/codereview |
I knew how to do this but forgot again... Quite irritating, because I'm working on a class that contains a list of XML files, and now I just want to use a for-in loop to walk through all files in this list. This is the class I have right now:
type
TXmlFileList = class( TInterfacedObject )
private
type
TIt... | stackexchange/codereview |
I have a named route to the user's inbox, which is maintained by the messages resource. I want to make sure that the users can only access their inbox from my named path, and remove "/messages" as an option.
resources :messages
match "/u/:nickname/inbox" => "messages#index", :as=>:inbox
Is there a simple way of do... | stackexchange/codereview |
i want to allow the user to upload xls file with 9 columns and unlimited number of rows.
i will run over everyline and insert the data to the db
how do i read the xls file?
| stackexchange/codereview |
Date: Sun, 31 Oct 2010 21:12:24 +0600
From: jim@google.com
X-Priority: 3 (Normal)
Message-ID: <1176875350.20101031211224@goole.com>
To: jim2@google.com
Subject: MySubject
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: quoted-printable
Hello from Jim.
Help g... | stackexchange/codereview |
By Cluster on Demand I mean renting a cluster for a specific job.We have a client that requires use of a cluster computer now,while his cluster is being built.
Does anyone out there know what the price to rent a cluster by the core and if they require a minimal period of time. I have seen everything from .50 to $3.00 p... | stackexchange/codereview |
I have been working with Raphael to create drag and drop shapes on a canvas. I do this using the .drag() function (supplied in the Raphael framework) along with my event functions. I have no issues doing this.
I also have a function that creates a new shape onDblClick, the problem is, I can only attach the event to a s... | stackexchange/codereview |
How do I make this a select statement?
This is for Microsoft access.
I want it to look everywhere and in any part of any cell in an entire table and find "Coal 104" and replace it with "Lava 104"
| stackexchange/codereview |
I have built a CSS navigation header, and it's working exactly the way I want in regards to positioning, stylization, all that. This is the CSS that stylizes it:
#header ul {
padding:72px 0 0 0;
text-align:center;
}
#header ul, #header ul li {
margin:0;
list-style:none;
}
#header ul li {
display:inline;
}
#header ul... | stackexchange/codereview |
I have these value stored in a decimal 10,2 field
1052730
956700
How do i print this using php so that the value is like
$10,527.30
$9,567.00
basically i am trying to avoid the value as
$1,052,730 <--- this i dont want
| stackexchange/codereview |
I want to be able to instrument Python applications so that I know:
Page generation time.
Percentage of time spent in external requests (mysql, api calls).
Number of mysql queries, what the MySQL queries were.
I want this data from production (not offline profiling) - because the time spent in various places will be ... | stackexchange/codereview |
am doing validating textbox as below,suppose overwrite textbox entry with an invalid number message will pop up,after clicking "OK" I want previous valid entry which is overwritten to be displayed.
how can i do that in C#?
private void cor_o_gain_Validating(object sender, CancelEventArgs e)
{
try
{
int ... | stackexchange/codereview |
I have a jQuery function that I am calling on a click event. The code snippet is below
$.ajax({
url: '/delivery_windows/' + current_month + '/' + selected_day,
success: function(data) {
$('#time-selection').html(data);
}
});
Above this snippet in the actual file, current_month and selected_day are being set.... | stackexchange/codereview |
I am new to JQuery and Fancybox so please be specific with answers. I am trying to load content in a absolute positioned FancyBox with a transparent background. This box should never close.
I also have links on the page to open a FancyBox with .PDF content.
Both work independently. I need them to work together.
I need... | stackexchange/codereview |
On a website I am working on, we have a news page. On the news page is an embedded iframe for the news articles. The site also has a sidebar on every page with three of the featured news story titles in it. Is it possible to make these news stories both lead to the news page and then open up the appropriate related new... | stackexchange/codereview |
Hello I have a php/mysql project in which I have a database table that keeps track of events. I want to send an email to interested parties when a change is made to an event. The email would state what changed ex: time, location, etc.
What is best approach? I don't need a revision history. Just the diff between previ... | stackexchange/codereview |
After installing Devise, there are routes to
/users/sign_in
/users/sign_up
/users/sign_out
but there is no file app/controllers/users_controller.rb? why does this require no controller file or is it just some where else?
| stackexchange/codereview |
Lets assume a xml file named data.xml with following content:
<root>
<record>
<id>1</id>
<name>test 1</name>
<resume>this is the resume</resume>
<specs>these are the specs</specs>
</record>
<record>
<id>2</id>
<name>test 2</name>
<resume>this is the resume 2</resume>
</record>
<record>
<id>3</id>
<name>test 3</name>
<s... | stackexchange/codereview |
I have a column "ProviderName" in table "main" that is populated thus:
Alaska Medicaid
Arizona Medicaid
Arkansas Medicaid
California Medicaid
Colorado Medicaid
and the list goes on...
I need to move it around to look like this:
Medicaid of Alaska
Medicaid of Arizona
Medicaid of Arkansas
Medicaid of California
Medicaid... | stackexchange/codereview |
I'm making a blog, article website so i decide to use NTEXT data type for blog and article contents. Until i see this
Important
ntext, text, and image data types will
be removed in a future version of
MicrosoftSQL Server. Avoid using these
data types in new development work,
and plan to modify applications th... | stackexchange/codereview |
So I have the following code:
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetDllDirectory(string dllPath);
In a function:
SetDllDirectory(@"G:\Sean\Debug\");
Assembly loadedDLL = Assembly.Loa... | stackexchange/codereview |
Helo Guys!
I'll start to develop a website of marketing and the users will be able to create accounts in this website. I'd like to separete the area of users using Subdomains, just like wordpress.com, ning.com, etc. If a user create an account for example: "john", the website should respond in john.mydomain.com for thi... | stackexchange/codereview |
I have been unsuccessful getting the mouse wheel to scroll a horizontal jscrollpane. Does anyone have experience with this and can offer some pointers.
In the comments of the js file I see the following update just a couple of months ago
// 2.0.0beta3 - (2010-08-27) Horizontal mousewheel, mwheelIntent, keyboard suppor... | stackexchange/codereview |
The way I plan to use it is:
At the seminar, have people send SMS to a number to vote.
On the backend (assuming that the data comes back to my Web server), I will display the voting results on my Web site.
After say 10 minutes, I would like to press a button on my Web site so ONE of the people who sent an SMS earlier ... | stackexchange/codereview |
I want to upload a file to two ftp sites. After both finishing, I need to delete the file.
In case not to block the main function running, both ftp and deletion functions will be implemented by threading, which means there will be 3 threads running in background simultaneously. An easy problem becomes complicated becau... | stackexchange/codereview |
I'm making a winforms C# project with .NET 4.
I want to display a tooltip when the mouse hovers over a button or a textbox or whatever. Right now it displays almost as soon as the mouse stops moving. I don't like this. I want it to have more of a delay.
Is there any way I can set a mousehover event delay time that is t... | stackexchange/codereview |
In the code below, when the input string is "tobacco" (without quotes), the alert function fires in an endless loop of terms. The "terms" are derived from the result set (which is set to 50 to ensure a rich set of data to seed the keywords). However, for some terms, the amount of keywords returned is way too high.
What... | stackexchange/codereview |
Using online dictionary tools doesn't really help. I think the way encapsulate is use in computer science doesn't exactly match its meaning in plain English.
What is the antonym of computer science's version of encaspulate? More specifically, what is an antonym for encapsulate that would work as a function name.
Why... | stackexchange/codereview |
I have a very basic script that sets up datepicker on three of my inputs, this script works perfect in all browsers apart from Internet Explorer, I just wondered if anyone knew why. This is all of my JavaScript for that page:
<script type='text/javascript'>
$(function() {
CKEDITOR.replace('content');
... | stackexchange/codereview |
I have an error in my program: "could not convert from string to char*". How do I perform this conversion?
| stackexchange/codereview |
im new to wpf and try to bind the Items.Count Property of a static defined DataGrid to a Label of my Custom Control.
My current implementation looks like this. But the label stays empty :I
The Class where the DataGrid is defined:
public class BindingNavigator : Control
{
private static DataGrid dataGrid;
stati... | stackexchange/codereview |
I am a new WPF user and I am trying to wrap my head around templating. In particular I am trying to template a TabControl.
I am confused by the controls that actually get generated when the TabControl is bound to data. What I need is for each tab to have a separate copy of the controls in it's content section. What I h... | stackexchange/codereview |
As stated in the question I have a static function (for logging) which I want to skip during debugging, so far I annotated it with the DebuggerHidden attribute, but for some reason Visual Studio 2010 will then jump into the calls inside this function which are not annotated with that attribute.
The thing is I have to ... | stackexchange/codereview |
I just downloaded uploadify, and there is uploadify.allglyphs.swf. What is it, and what's the difference between it and uploadify.swf. The allglyphs version is bigger than the regular one.
(Could not find any reference in the documentation or the faq, google didn't help either)
| stackexchange/codereview |
I have a numeric value like 30.6355 that represents money, how to round to 2 decimal places?
| stackexchange/codereview |
I use MVC controller to return json:
public JsonResult Json()
{
return Json(MyJsonString);
}
I want to Json to be escaped. Does anyone know exact method to accomplish this?
Thanks
EDIT1: json is being sent for flash video player
--MB
| stackexchange/codereview |
I have a problem with a flash call and I need to debug, before messing with the code I was wondering if it's possible to load the whole CI environment inside a xxx.php file.
Basically I would need to do this:
$CI->controller->method();
and only that, nothing should be loaded automagically, the thing is that once loade... | stackexchange/codereview |
I am working on a Firefox extension, and I am trying to pass a parameter to addEventListener. I am "listening" for changes in the page title, my code looks something like this:
function Test()
{
this.checkTitle = function( event )
{
var func = function() { this.onTitleChange ( event ); };
var ta... | stackexchange/codereview |
I have following dynamic URL
http://foo.mydomain.com
and I have following in my .htaccess file
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.domain\.com$ [NC]
RewriteRule !^index\.php($|/) sub.php?name=%2 [PT,L]
and it is working fine and showing data related to that... | stackexchange/codereview |
I want to change this code from JavaScript to Java servlet. Can anyone guide me in finding the solution?
var dob1 = document.getElementById(id).value;
var today = new Date(),
dob = new Date(dob1),
age = new Date(today - dob).getFullYear() - 1970;
| stackexchange/codereview |
Have log4j.properties file, that logs more than I expect,in particular, it logs events for Spring libraries. And it's needed only project specific events to be filtered.
Is it some filtering param,that specify what classes(project or namespace) should be logged?
Thank you.
| stackexchange/codereview |
using loop, I can create
My cat is: Cat1
...
My cat is: Cat1
However, when I tried to use
Cat ("cat"+i) = new Cat("Cat" + i);
I'm making mistakes....
So, what is the simplist way to correct my code to produce
cat1 ... cat10 cat instances?
public class TestCat{
public static void main(String [] args){
for ... | stackexchange/codereview |
Is there any app available to edit the constants in settings.py in admin interface?
| stackexchange/codereview |
I am having a bit of a problem with abstract classes. I have a bunch of classses. In the StackAsLinkedList.h class i have a linked list of pointers to Objects as seen here
LinkedList<Object*> list;
The syntax is wrong and i dont know what to do. if i name it a int or char i get the same syntax error.. I am fairly new ... | stackexchange/codereview |
In my query i need to return IEnumerable but i dont know if this action make the query to execute again?
var data = Repository<Person>.Find().AsEnumerable();
Find() returns IQueryable and because IQueryable inherits IEnumerable. I doubt if AsEnumerable make the repetitive execution.
I know that
var data = Repository<P... | stackexchange/codereview |
I understand the Bugzilla C# Proxy exists for accessing Bugzilla 3.0 via C#, but is there an option for Bugzilla 2.2? What about accessing the underlying MySQL db - is the schema documented? I only really need basic search (bug #) and limited update (target, status comment) capabilities.
| stackexchange/codereview |
Preceding posts:
Event Signature in .NET — Using a Strong Typed 'Sender'?
In a C# event handler, why must the “sender” parameter be an object?
Microsoft's conventions and guidelines force .NET users to use special pattern for creating, raising and handling events in .NET.
Event design guidelines http://msdn.microsoft.... | stackexchange/codereview |
So im basically either looking for code, or even a sample to detect RGB values (maybe even with hue) to be used with OpenCV
Ideally you would be able to show an object in front of your webcam, then click on it with it outputting the RGB values.
Im trying to do this because im trying to find a decent color threshold to ... | stackexchange/codereview |
This should be simple but I'm having trouble changing some C code that uses bitwise operators and shifts into Java.
In C I have:
unsigned short Color(byte r, byte g, byte b)
{
return( ((unsigned short)g & 0x1F )<<10 | ((unsigned short)b & 0x1F)<<5 | (unsigned short)r & 0x1F);
}
This function, Color, returns 16bits w... | stackexchange/codereview |
I'd like to setup browser caching on my site. The problem is that the caching will only be for guests, not logged in users. I know I can throw different headers based on a user's logged in status, but how will the cache treat that? Do I run the risk of guests seeing user's content?
update
What I'm talking about is i... | stackexchange/codereview |
I am trying to figure out why the following code is not working, and I am assuming it is an issue with using char* as the key type, however I am not sure how I can resolve it or why it is occuring. All of the other functions I use (in the HL2 SDK) use char* so using std::string is going to cause a lot of unnecessary co... | stackexchange/codereview |
TFS have more then one DB.. I want to take backup every day...
No need to over rite every day back up it want to create separate
Help me
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.