instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to implement a procedure to evaluate the median absolute deviation of a set of numbers (usually obtained via a GROUP BY clause).
An example of a query where I'd like to use this is:
select id, mad(values) from mytable group by id;
I'm going by the aggregate function example but am a little confused since t... | stackexchange/codereview |
I'm building a model, which whenever the model is run I want to inject into a news feed model. My idea was to create a after_save in the model and then use a helper to populate the feed details. But my model isn't finding the helper...
Now I'm wondering, what are helpers for, are helpers really just for Views or?
In my... | stackexchange/codereview |
I have several live Drupal sites running on an Ubuntu server (10.04), Apache 2.2 with PHP 5.2.3-1. I recently started the work of setting up a test server that would be as close as possible to the live environment, but I stupidly didn't check the PHP version that Ubuntu installed when I did an apt-get install php. I've... | stackexchange/codereview |
I'm not even sure where to begin with this question...
I want to be able to send mouse-click events to another machine, as if the user had clicked on that machine.
I can do it on the same machine via:
CGEventSourceRef source = CGEventSourceCreate(NULL);
CGEventType eventType = kCGEventLeftMouseDragged;
CGPoint mouse... | stackexchange/codereview |
My live wallpaper is responding to touch events through the onTouchEvent()
method, which works fine. The problem is: the home app also appears to be receiving these touch events, so if I swipe left in my wallpaper, the home screen also slides left.
It'd be nice if it were possible for my wallpaper to selectively consum... | stackexchange/codereview |
I have inherited a site with a news section that displays a summary of the news article. For whatever reason the creators decided that displaying the first X characters of the article would be fine. Of course this very quickly led to the summary being something like:
<p>What a mighty fine <a href="blah">da
<p>What a mi... | stackexchange/codereview |
I'm trying to display the Title of an Tabitem in his contentpresenter. Is there a possibility to get this name?
For example in the Tabcontrol Template something like
<Label>
<ContentPresenter ContentSource="SelectedContentHeader" Grid.Row="1" />
</Label>
to display the name of the current tab in label.
Thanks in ... | stackexchange/codereview |
I'm experimenting with the java serialization API to create small persistent objects. In my research I have found a lot on the importance of versioning, so you can detect and handle incompatible changes between the stored object model and the current object model.
What I can't seem to find is what changes to the objec... | stackexchange/codereview |
I am looking for a click based single select list. Instead of the normal drop down list, I want an overlay menu (similar to how we see on facebook when we change privacy settings, the single select list that appears). Is that CSS based or any code examples to creating a similar list? All the lists i found of the net ar... | stackexchange/codereview |
I'm making a bitmap editor where a document consists of several layers where each layer represents a bitmap. Each layer must have a unique ID compared to all other layers that currently exist in the document. I also need to take into account that I need to save and load documents along with the layer IDs.
I'm using the... | stackexchange/codereview |
I need to write a method where the parameter accepts an integer (n in this case) and returns the sum of the first n terms of the sequence as a double value. So say I put fractionSums(5); the output would be
1+...+1/5 which would then equal to something like 2.8333~.(final result)
what I have now is:
public static void... | stackexchange/codereview |
How to obtain a list of named range exist in a specific worksheet that start with particular string (for example all named range that start with total) and grab the value? I am trying to do Sub Total and Grand Total of accommodation cost based on the date. I will assign an unique name for each Sub Total based on the Da... | stackexchange/codereview |
Is it possible to have a user input equal to a variable for tasks that involve chemical elements.
For example, Carbon has the molecular mass 12, but i do not want the use to input 12, They should input 'C'. but as the input turns this into a string, it is not possible to lik this to the variable C = 12.
Is there any ... | stackexchange/codereview |
I'm having huge difficulty debugging database operations from Silverlight RIA. This is understandable, I suppose, since database operations are abstracted by about 3 layers of services and ORM and stuff, but is there any way I can see what the database is telling me regarding the issue? I'm able to find an EntityConfli... | stackexchange/codereview |
I have a situation where I need to copy all of the form fields from one PDF to another. The purpose is to automate the overlaying of the fields when small edits are made to the underlying Word pages.
I've been using the trial version of Aspose.Pdf.Kit, and I'm able to copy everything but Radio buttons to a new form. ... | stackexchange/codereview |
It's a known bug that -moz-border-radius doesnt work on images in firefox. What's a way to get this functionality without resorting to putting the image as a background on a rounded div?
| stackexchange/codereview |
I need to get the words in a text field and make some updates with those words, for example:
original data
words | other field | another field
---------------------------------------------
white | |
some words | |
some other w | |
desired result
words ... | stackexchange/codereview |
Is there a way to know the proxy setting of web browser under Flex 3, namely actionscript 3?
We use socket library to connect remote HTTP server. It is nice to read web proxy setting to connect to HTTP proxy instead of directly to HTTP server.
| stackexchange/codereview |
I have around 100,000 records in my Oracle table.
TableMaster
-----------
TabID
Column1
Column2
How do I update all the records so that Column1 values are moved to Column2, and Column2 values are moved to column1?
| stackexchange/codereview |
I am a rookie CSS user, i have the following nav menu code and CSS to go along with it. The funny thing is that when i hover over the <p> element (You are viewing page xxx) in the nav menu, it changes colors as if it was an anchor tag, specifically hover.
I am very confused why it does this, I tried to be as specific a... | stackexchange/codereview |
I'm trying to make Zend's command line tool to work in Aptana's terminal view (on Windows), so I can use commands like "zf create model User" directly from aptana.
So far I've managed to get the zf command work by making an alias like this alias zf=/path/to/zend/bin/zf.sh but now I'm stuck because I have to make php's ... | stackexchange/codereview |
I am creating an interactive animation of a cat you can stroke, rub, poke etc.
I have implemented some basic functions in an attempt to recognize the different gestures, I am using the mouse down and mouse up events to track the duration and distance of the click.
My problem with this is that the 'distance' is measured... | stackexchange/codereview |
I want to map the following company to the below address. I want it to be a one way relationship since the address class is being used by several other classes.
When I generate the schema the junction table is created successfully but when I try to save an entity nothing is persisted in the junction table. Only in addr... | stackexchange/codereview |
I am too dumb to know the answer to this one - does anyone know the answer definitively?
NSMutableArray *happyDictionaryEntries;
@property (nonatomic, retain) NSMutableArray *happyDictionaryEntries;
-(void) getStuffFromServer
{
..
self.happyDictionaryEntries = [NSMutableArray
arrayWithContentsOfURL:[NSURL URLWith... | stackexchange/codereview |
I am using os x 10.6
1.8.6 via rvm
rails 2.3.6
I can run rake or script/server I get an error Virtual timer expired
I have seen someone else had this issue and seems, the mysql gem needs to be downgraded to 2.7
i have tried to install mysql -v=2.7
i get a different error
ERROR: Error installing mysql:
ERROR: Failed... | stackexchange/codereview |
On OSX using launchctl to start and stop a service seems great however I don't see anyway to check the return value to make sure it really did start. Return value always seems to come back as zero even when the service failed to start
This plist file contains an error and thus will not start Drizzle as expected
% launc... | stackexchange/codereview |
The HRIS app in my company is a asp.net web application which started showing bugs after IE 8.0 was rolled out on our company intranet. Few people open multiple instances of the app with different credentials, now since IE 8.0 has this session sharing feature on different browser windows, the sessions in both windows b... | stackexchange/codereview |
I am new to ObjC and newer still to CoreData. I have tried to find an answer to this around but never got quite what happens to me.
I initialize a Managed object in my controller's loadView like this:
NSError *error;
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEnti... | stackexchange/codereview |
My application structure:
/application
/models
ShoppingCart.php
/modules
/orders
/models
Order.php
I want to create a module application so in my application.ini I put:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""
Basically my Application_Model_ShoppingC... | stackexchange/codereview |
I made a structure like so:
struct ponto {
int x;
int y;
int z;
};
1) Can I initialize the int's with a default value? int var = value; doesn't seem to work, compiler says "syntax error before '=' token" or something of sorts.
2) I need to work with several of these like in a array of structures, but I onl... | stackexchange/codereview |
I am getting the following build error-
BUILD FAILED
C:\eclipse\workspace\ContinuousTesting\build.xml:55:
C:\eclipse\workspace\ContinuousTesting\${lib.dir}
Here is the build.properties file:
src.dir=./src
build.dir=./bin
lib.dir=./lib
This is the whole task
<target name="compile" depends="properties, create.buil... | stackexchange/codereview |
I have understandably attracted some smart ass answers to some bone head questions I have asked lately due to my complete misunderstanding of obj c and NSMutable arrays. So I've looked in a book I have and Google and it would appear that may be I shouldn't program because I'm still stuck.
Say I'm looping through metho... | stackexchange/codereview |
Where can I find the PNG files to the iPhone UIActivityIndicatorView animated indicator?
| stackexchange/codereview |
Hi All
I am using a non blocking Socket for sending messages.We were getting EGAIN error occassioanally .So I have decided to use Flush(socket) to flush the buffer and make space for new space so that i can avoid EGAIN error .But the problem is Flush(socket) is stuck for indefinite time .
Here is the code
int res ... | stackexchange/codereview |
Why in the following code the focusin event handler isn't called ?
HTML:
<div id='wrapper'></div>
<div id='button'>Click Here</div>
<div id='output'></div>
JS:
$(function() {
$('input').live('focusin', function() {
$('#output').html('focusin'); // Why this not happens ?
});
$('#button').click(funct... | stackexchange/codereview |
Is there an easy way to add padding between the checkbox in a CheckBox control, and the associated text?
I cannot just add leading spaces, because my label is multi-line.
As-is, the text is way too close to the checkbox:
| stackexchange/codereview |
I was wondering if there are any obvious pros and cons one should be aware about, while choosing to use a Binary type as a primary key, while being RANDOMIZED.
Which means, new inserts will have random 4 bytes as their PK - versus having a sequence of type Integer?
I'm using MySQL/MyISAM.
Thanks,
Doori Bar
| stackexchange/codereview |
Problem: I have a gtk.Dialog. Whenever the 'minimize' button on the dialog is clicked, the window is destroyed.
Question: How can I connect to the minimize button of a gtk.Dialog so that I can iconify the window?
| stackexchange/codereview |
I'm using Doctrine 1.2 and Symfony 1.4.
In my action, I have two different query that return different result set. Somehow the second query seem to change the result (or the reference?) of the first one and I don't have any clue why..
Here is an example:
$this->categories = Doctrine_Query::create()
->from('Cat... | stackexchange/codereview |
To fix a test case I need to identify whether the function is called from a particular caller function. I can't afford to add a boolean parameter because it would break the interfaces defined. How to go about this?
This is what I want to achieve. Here I can't change the parameters of operation() as it is an interface i... | stackexchange/codereview |
I'm writing a simple application in vb.net and need to output some information to a log file for diagnostic purposes.
In order to ensure that the log file doesn't get too big, I need to trim it to a certain number of lines (say 5000). For performance reasons, the trimming doesn't have to occur each time a log entry is ... | stackexchange/codereview |
This sounds like such a dumb question but I've spent too long looking for the 'Restrictions' object when attempting something like this...
Objects objs = NHibernateSession.CreateCriteria(typeof(Objects ))
.Add(Restrictions.Eq("ObjectName", objName))
I'm using nHibernate 2.2 I believe and have added... | stackexchange/codereview |
I really like MDI applications.
It allows me to move quickly between windows and compare the content of different windows. Furthermore, sometime the content of one window is useful for another, so I can copy and paste. I think it's a great user experience for working mode.
Right or wrong practice, I love it.
I saw Stac... | stackexchange/codereview |
I have a Telerik:RadTextBox control in my markup called txtName. I'm trying to retrieve the inputed value in the code behind with foo = txtName.Text; but var and txtName always show an empty string.
Any ideas?
Markup
<telerik:RadTextBox ID="txtName" Runat="server" Width="300px" />
CodeBehind
campaign.Name = txtName.Te... | stackexchange/codereview |
I just ran
$gem upgrade rails
It seemed to go smoothly (updated 23 gems, no errors, etc...)
when i run
$rails -v
It tells me I have 2.3.5. What gives?
| stackexchange/codereview |
I am doing a project that involves processing large, sparse graphs. Does anyone know of any publicly available data sets that can be processed into large graphs for testing? I'm looking for something like a Facebook friend network, or something a little smaller with the same flavor.
| stackexchange/codereview |
How to put line numbers in a text editor widget in GUI present in Cincom Visual Works 7.7. This will used by the user to enter the sample instruction set line line by giving each line a number.
| stackexchange/codereview |
I'm running a Wordpress website and I have a <marquee> on the front page that runs the news.
Is it possible to have it dynamically generate the news? What do I mean by that?
Would it be possible to make it so that whenever a new post is made with a category of "News", it will automatically be fed into the <marquee> on ... | stackexchange/codereview |
I assumed this feature would be activated by default.
How do I set an EditText box to do the normal orange highlighting when a user touches it?
| stackexchange/codereview |
select sum(Sales) from WeeklyProductSale.
how i can write this query in linq and what this query will return to me.
thankas in advance.
| stackexchange/codereview |
I must be doing something really obviously wrong, but I can't see it.
| stackexchange/codereview |
When I run sp_helpdb dbname in Sybase Adaptive Server Enterprise, it returns only the following columns:
name,db_size,owner,dbid,created,status
And it's not returning the following columns:
device_fragments,size,usage,created,free kbytes
Why is this happening?
| stackexchange/codereview |
When editing xml, xml.vim works great for tag close. But when editing html, it does not work. Vim version is 7.3
| stackexchange/codereview |
I have Mac OS X Snow leopard that has pre-installed Ruby 1.8.7 and Rails 3.0.1
I need to work with Redmine a bit that requires Rails 2.3.5
Is it possible to correctly downgrade my current rails 3.0.1 to rails 2.3.5?
| stackexchange/codereview |
My app looks like this:
I have a UIScrollView and there is imageview inside. I implemented the scrollViewDidScroll delegate so that if the scroll did scroll, I will create a NSURLConnection and download a data from some url, for only once.
The problem is that the NSURLConnection connectionDidFinishLoading only be calle... | stackexchange/codereview |
I have a domain say http://www.testexample.com. When I login to http://www.testexample.com and come back to http://testexample.com in browser; the logged in user information is not displayed.
I know that the both of the above are treated differently and hence it is not retaining the session for http://www.testexample.c... | stackexchange/codereview |
i am an student need to implement an top down parser for my mini project i confident understand the concept and i read the Wikipedia article but still i have some doubts can any one explain about top down parsing and how to implement it with a small example...
| stackexchange/codereview |
Possible Duplicate:
Can I include code into a PHP class?
Hello,
I have some third-part php files that I would like to include as classes in my application. The problem is those files keep changing and they are not OOP, just a bunch of functions. To keep them updated and to work in my framework I have to use them in ... | stackexchange/codereview |
I've managed to disable the "Delete selected" action. Easy.
But a user can still click on an item and then there's the red Delete link at the bottom.
| stackexchange/codereview |
I've been trying to build a simple GAE app and to be able to manipulate the position of the text on the screen. I asked the same question on several forums; so far with no solution. I apologize if my question has not been clear.
Now I thought of achieving the same functionality with a grid, like a spreadsheet. Do you ... | stackexchange/codereview |
I would like to add an array of PDFPCells to a PDFPRow, then add the PDFPRow to a PDFPTable, but I can't seem to find a method within PDFPTable for this.
There is however a PDFPTable.AddCell
Any ideas?
| stackexchange/codereview |
I have a "Learn More" button that when the user hovers over, will display a "more info box" over top of the button that contains a block of text. I am having trouble getting this to work correctly as the more info box seems to be interfering with the hover function. I uploaded an example of what I'm trying to achieve: ... | stackexchange/codereview |
I have to use N(i=1..N) threads to sort an array of M numbers,each thread start to sort the array from position (N*i)%m. Could anyone help me?
| stackexchange/codereview |
Possible Duplicate:
How to also prepare for 64-bits when migrating to Delphi 2010 and Unicode
Since I believe that 64bit Delphi compiler will appear soon,
I am curious if anybody knows what kind of programs
that are now 32bit will compile and work without any changes
when using 64bit compiler.
And if there is a gene... | stackexchange/codereview |
I have a FrameLayout in which I have 2 controls:
- a custom view which draws a image and some text on it
- a textview with a text
I want to center both in the FrameLayout but I can't manage to do it. The Texview is centered just fine, my cusom view remains on the left side, when I make it visible.
<FrameLayout android... | stackexchange/codereview |
Question:
Write a program that asks the user to enter a number of seconds, and works as follows:
There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes in that many seconds.
There are 3600 seconds in an hour. If t... | stackexchange/codereview |
I have the following code for javascript:
function append_place(street, city, state, country) {
var address = street + ', ' + city + ', ' + state + ', ' + country;
$(".shop_location").append(address);
street, city, state, country are external variables drawn from database. (I'm working on Ruby on Rails pro... | stackexchange/codereview |
How Can We Check The Validation Of RadCaptcha From Code Behind - With Custom Validator(ServerValidate) / WithOut Using And Setting ValidationGroup ?
thanks In Future Advance
Best Regards...
| stackexchange/codereview |
I am using jeditable but want to use a function to save the data on the client. This works fine, but I also want to use a function to handle the onblur event. My code is as follows:
$('#answerlist li').editable(function(value, settings) {
OnAnswerTextEdit(this, value);
return (value);
... | stackexchange/codereview |
Possible Duplicate:
Check if a number is non zero using bitwise operators in C.
Hello everyone,
I am working on a project and I need a little help with a function. We need to write a function that performs the logical not, !, using only the following bitwise operators:
~ & ^ | + << >>
I'm not even sure where to beg... | stackexchange/codereview |
i am working with a silverlightdatgrid and i have a style for each column header as below
<Style x:Name="mytemplate" x:Key="mytemplate" xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"
TargetType="dataprimitives:DataGridColumnHead... | stackexchange/codereview |
I am trying to get variable-height table cells implemented and what I thought would be an elegant solution turned out into a recursion/stack overflow:
- (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MyCustomCell *cell = (MyCustomCell *)[aTableView cellForRowAtIndex... | stackexchange/codereview |
We are looking for a sliding image tool like the one on the following home pages:
1) http://xceed.com/index.aspx (Silverlight based)
2) http://usa.autodesk.com/ (Flash based)
Where can we purchase something similar?
Thanks.
| stackexchange/codereview |
I am making game of life in 2D array. I need to determine when all adjacent cells are empty so I just test all of them. It works well unless the cell being checked is the boundary. Then of course testing X+1 throws an exception as the index is out of the array boundaries. Can I handle this somehow instead of handling t... | stackexchange/codereview |
I have Downloaded an example "MJAndorid" from the O'reilly.
But after importing the project into workspace, m getting the below error log:
Failed to load properties file for project 'MJAndroid'
I am not able to apply the build target, Google API version 3 , in this case.
Also, by clicking on Android in the properties ... | stackexchange/codereview |
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<?php
while ($pF = mysql_fetch_array($stringVisits)) {
?>
<td class="viewercell" style="color: #CCC; font-size: 10px;">
<?php
echo "<a href='profil.php?id=".$BuID."'>";
echo "<img style='margin-right: 5px; width: 61px; height: 80px;'";
if (checkStatus($BuID) ... | stackexchange/codereview |
I'm designing an optimization system for public transport in a big city. So I have a map with some points on it, but don't care about it)
All I need is: my own JButton, which looks like a color-filled circle and a small text tag near it. I got some problems while overriding the paintComponent() method.. the round butto... | stackexchange/codereview |
I know I can attach audio and video to a NetStream. Apparently, I can also attach text messages although I haven't seen an example (if you know of one, please let me know). I also know that I can record a stream via Flash Media Server. I'm wondering what other types of data – if anything – else I can attach to a NetStr... | stackexchange/codereview |
To put it simply i'm creating an app that i want to display bars and restaurants as annotations on a map within a city but i would also like the app to show the user's current location. I need to know how to add multiple custom annotations easily but also show my current location. Can Anybody Help?
Here's a part of my ... | stackexchange/codereview |
Getting directly the current iframe's URL, in javascript, is not possible due to security restriction.
Is there a way to override this restriction?
Using ActiveX control?
Changing the browser's security options?
Using HTML5?
Using flash?
Using server side scripting?
| stackexchange/codereview |
I suspect that there might even be a mathematical proof that the answer to this is "no", but, question: Could one invent a type of php-like language (ie with some lines that evaluate code behind the scenes, and some lines that evaluate to displayed html) where it could always be properly nested? To give an example of w... | stackexchange/codereview |
In my MySQL database, table events has a composite index with columns closingeventid, timeStart and eventCode. There are more than 21 million rows in table events.
Here is two SQLs, if I run the first one in MySQL command line, the Mem Usage of process mysqld-nt.exe increases gradually with 10 M per second, it goes up... | stackexchange/codereview |
Could someone show me how to loop through the anchor tags within a div and find the next sibling?
I have this so far.
var menu = document.getElementById('menu');
var links = menu.getElementsByTagName('a');
How do I loop through the links? Can I use .nextSibling to find if the next sibling is a div?
| stackexchange/codereview |
In my app I have four fields and each of them is list of values.
Now if I use a UIPickerView with 4 components, and then the whole View becomes too congested and ugly for the user's liking.
Is there any better and cleaner way to display these list of values?
| stackexchange/codereview |
I'm new to coreplot and not sure quite where to start. I would like to plot data points as they arrive. I'm recording finger touches and how long between each touch. I would like to plot them as they are happening.
Thanks for any pointers.
rd42
| stackexchange/codereview |
I am well aware that this is an unusual thing I'm looking to do here, but just trust me, yes I do need to do this. It's all about pattern matching within the raw html (same as view source) for a web page.
If a user selects some text in a web browser, I want to be able to say - that selection is at position (say) 1234, ... | stackexchange/codereview |
Do you know of any java code review tool with a netbeans plugin?
| stackexchange/codereview |
I've got an app that I've developed for the iPhone, but now want to port to the iPad. The iPhone app is navigation style and based on discrete table view controllers managed by a nav controller. The larger screen real estate of the iPad means that I can comfortably fit a couple of these table view controllers on to the... | stackexchange/codereview |
I'm getting the following exception in my log when I try to perform an XA transaction:
javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc_SQLServerException: failed to create the XA control connection. Error: "The EXECUTE permission was denied on the object 'xp_sqljdbc_xa_init_ex', database 'master' schema... | stackexchange/codereview |
What is the difference between straight selection sort vs. exchange selection sort? I got into a little debate today - my professor uses these two terminologies in his lecture notes. The selection sort that Wikipedia and any textbook or website will give you is what he is calling "exchange selection sort".
I've never h... | stackexchange/codereview |
have a list of images as a navigation. when you hover over them a div with transparent background slides up. when you hover out the div slides down.
that part wokes like a charm.
now when you click on the image or title, the div with the title changes its opacity to 1, moves to the top of the image and gains 100% heigh... | stackexchange/codereview |
I have a context menu and i want its menu items populated via a binding.
The following code works
<Button>
<controlsInputToolkit:ContextMenuService.ContextMenu>
<controlsInputToolkit:ContextMenu ItemsSource="{Binding MenuItems}">
<controlsInputToolkit:ContextMenu.ItemTemplate>
<D... | stackexchange/codereview |
I'm playing with some Haskell code. I've defined two functions:
count :: [a] -> Int
count [] = 0
count (x:xs) = 1 + (count xs)
-- 03. Write a function that computes the mean of a list, i.e., the sum of all
-- elements in the list divided by its length. (You may need to use the
-- fromIntegralfunction to convert ... | stackexchange/codereview |
I have the following function inside my HomeController class:
public class HomeController : Controller
{
public string Strip(string text)
{
return Regex.Replace(text,@"<(.|\n)*?>",string.Empty);
}
On my view I have the following to show an article from a database:
<%= item.stor... | stackexchange/codereview |
To use Google Maps API you fetch their api js file with:
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=set_to_true_or_false">
</script>
Then I use javascript on my page to interact with this API.
I wonder what is going on in the background that I don't see.
Is this file using javasc... | stackexchange/codereview |
I've seen some discussion about L2S vs EF4 on Stack Overflow back in April, when VS2010 was launched, namely:
Dump Linq-To-Sql now that Entity Framework 4.0 has been released?
Is Entity Framework worth moving to for a new small app?
Now, after 6 months, presumably people have had more interacting with EF4, so I'm curio... | stackexchange/codereview |
While developing an alarm based application, i have stuck in a scenario.
When my alarm is fired, i can receive the event in BroadCastReceiver::onReceive().
Within this function, i want to notify/call a function, which is located on MainActivity.
How to achieve the same??
| stackexchange/codereview |
CREATE Table A
(
AId int ,
AName varchar(100)
)
CREATE Table B
(
BId int,
AId int,
CId int,
BName varchar(100)
)
CREATE Table C
(
CId int,
CName varchar (100)
)
"A" has foreign key in "B" and "C" also has foreign key in B. Both foreign keys have Cascade delete enabled.
Foreign key :-
/****** Object: Foreig... | stackexchange/codereview |
I would like to split a string along whitespaces, and I know that the tokens
represent valid integers. I would like to transform the tokens into integers
and populate a vector with them.
I could use boost::split, make a vector of token strings, then use std::transform.
What is your solution? Using boost is acceptable.
| stackexchange/codereview |
I'm working in the microsoft world and needing to create a transaction processing webservice. The webservice will receive a transaction and submit it to a queue. A second service will pull the transactions out of the queue and process them.
I have been considering two different approaches: database table (roll my o... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.