instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have an asynchronous UDP server class with a socket bound on IPAddress.Any, and I'd like to know which IPAddress the received packet was sent to (...or received on). It seems that I can't just use the Socket.LocalEndPoint property, as it always returns 0.0.0.0 (which makes sense as it's bound to that...).
Here are t... | stackexchange/codereview |
I've got a solution that takes a while to open. (5 minutes) Due to our processes and procedures I'm constantly jumping around between different branches of the same solution. I'm constantly closing and loading different variations of the same solution more than a few times a day. That's over 15 minutes - 30 minutes was... | stackexchange/codereview |
I have left-right trees in my database which are a problem for performance. I'll switch to a system with a parentId and an orderId.
I'm looking for a sql script that can give me the index of a node in a left-right tree.
| stackexchange/codereview |
I have a table
Sno TC Date(dd/mm/yyyy) Result
1 tc_1 22/10/2010 11:28:27 Fail
2 tc_1 21/11/2010 12:28:27 Pass
3 tc_3 11/11/2010 09:20:22 Pass
4 tc_3 12/11/2010 09:20:22 Pass
I want to get the most recent pass and most recent fail for each testcase.
Apart from returning the recent dates , is... | stackexchange/codereview |
I have image as Bitmap:
var bitmapImage:Bitmap=getDefaultImage();
I need to set this bitmap as canvas backgroundImage.
I find method
myCanvas.setStyle("backgroundImage",url);
But i dont need url. Whent i do this:
myCanvas.setStyle("backgroundImage",bitmapImage);
I have an error.
How to set bitmap image in canvas ... | stackexchange/codereview |
First off, I've only started working with databases and c# so I could be making a really stupid mistake here so apologies in advance. I'm connected to a SQL server express database and can read from it fine, however whenever I have updated my DataSet to add new columns and then try to update the data source it wont upd... | stackexchange/codereview |
When doing a merge using the Subversive plugin for Eclipse, there is an dropdown box named "depth" where, besides other options, "working copy" and "recursive" can be selected.
I always use the default setting "working copy", but I wonder what the difference between "working copy" and "recursive" is. Can someone expla... | stackexchange/codereview |
How can i format pages in following manner?
eg my search results gave me data for 50 pages. then i want this format for pages.
page1 page2 page3 page4 page5 .... page50
also when i click on '....' the result should be returned from page6 and the page listing should be like
page1 .... page5 page6 page7 page8 page9 ..... | stackexchange/codereview |
How to make the style is applied only to the chosen object, and not all at once?
$('#add_text').mousedown
(
function()
{
$('#add_text').css('background-color', 'blue'),
$('#template').prepend('<div id="tex... | stackexchange/codereview |
i need a tool that takes c# code and generate the control flow graph of the code
if there's something like this in visual studio ............ do please point it out to me
thanks
| stackexchange/codereview |
I'm making a site for my g/f – She's writing angel messages for each day of the year, 1 message on 1 page and these (eventually 366 pages) are accessed from this one page:
http://www.helderziendelezingen.be/waarzegster-engelen-leggingen/per-datum.html
This menu page uses JS to slide to particular months. The place I'm... | stackexchange/codereview |
Can someone offer a suggestion on where to find a dictionary word list with frequency information?
Ideally, the source would be English words of the North American variety.
| stackexchange/codereview |
I have the following code:
FileOutputStream out = null;
try {
out = new FileOutputStream("/sdcard/tmp/i.jpg");
b.compress(Bitmap.CompressFormat.JPEG, 90, out);
Toast.makeText(getApplicationContext(), "Succeded", Toast.LENGTH_LONG).show();
} catch (Exception e) {
Toast.makeText(getApplicationContext(), "Failed", Toast... | stackexchange/codereview |
I'm trying to animate a ball image coming into the screen, shifting position within the screen and go back out of the screen. I want to do this in form of 3 animations; ball_in, ball_shift and ball_out, as well as being able to decide when to go from one animation to the other.
This is the code I got so far;
Main.xml
<... | stackexchange/codereview |
I want to learn new features of Oracle 11g and I think there is no basic edition available. I worked with Oracle 10g before but want to try out some advanced features on my home PC.
Is there any enterprise version available for learning but without time limit?
| stackexchange/codereview |
Motivation for Question: Generating 64-bit and 32-bit code requires two seperate full-program-compiles, and when using visual studio (as detailed below) release and debug builds are incompatible, therefore seemingly requiring another two full-program-compiles (bringing the total up to four). I would like to stick with ... | stackexchange/codereview |
When reading the redbook I found:
glutDisplayFunc(void (*func)(void)) is
the first and most important event
callback function you will see.
Whenever GLUT determines that the
contents of the window need to be
redisplayed, the callback function
registered by glutDisplayFunc() is
executed. Therefore, you sh... | stackexchange/codereview |
Does anyone know how to use transact sql to enumerate the column types within a transact sql result set. I want to do something like this (pseudo-code):
for each column in (select * from table1 where id=uniquekey)
{
if (column.type=uniqueidentifier){
insert into #table2(id) values (column.value)
}}
then do some stuff ... | stackexchange/codereview |
I'm trying to parse a string I get from a hashtag, and so far it looks like a regex might be the cleanest way to go. The pattern, with an explanation, is as follows:
#p3 -> p = 3
#h4 -> h = [ 4 ]
#h4,h6 -> h = [ 4, 6 ]
#p3,h4,h6 -> p = 3, h = [... | stackexchange/codereview |
If I declare "Japanese, French, German, Simplified Chinese, Thai" in the "Localization" field of my app's myApp-info.plist file, will the iTunes Store detect this and correctly advertise these (together with the "Localization native development region" of "English") as the languages in which my app is available?
If not... | stackexchange/codereview |
exec 3>&1 # Save current "value" of stdout.
ls -l 2>&1 >&3 3>&- | grep bad 3>&- # Close fd 3 for 'grep' (but not 'ls').
# ^^^^ ^^^^
exec 3>&- # Now close it for the remainder of the script.
I get the 3rd line where fd 3 is being closed.
Doubts: ... | stackexchange/codereview |
What is the purpose of passing a parent into a constructor of a Qt class object?
| stackexchange/codereview |
How can I join 2 ls results ?
- I need this because the files are in 2 different directories and I need to sort them in different ways.
Anyway for the output I need a normal listing with both results.
| stackexchange/codereview |
in php :
continue accepts an optional numeric argument which tells it how many levels of enclosing loops it should skip to the end of.
like
for ($i = 1; $i <= $countArray - 2; $i++) {
for ($j = $i+1; $j <= $countArray - 1; $j++) {
for ($k = $j+1; $k <= $countArray; $k++) {
if(condition){
... | stackexchange/codereview |
I'm trying to write a parser for a Lua-like language, using lex and yacc. It is a language without a forced statement terminator(a semicolon), and this feature made me not able to tell if a function call is a statement or a an expression.
For example, the following function:
function foo()
return { x = 5 }
end ... | stackexchange/codereview |
I'm managing the development of an iPhone app that relies on web services to provide catalog access. My main security concern right now is someone accessing my web service and replicating/scraping my entire catalog (right now, it doesn't contain anything proprietary - but that would change).
In short, I need to limit t... | stackexchange/codereview |
After reading James Ward's post I'm considering using a proxy rather than a crossdomain.xml file. I have a java app, which includes a flex applet, on one tomcat instance and a java web service on another tomcat instance. Does it make sense to have a single (Apache httpd) proxy handle requests for both the app and the ... | stackexchange/codereview |
I have a div and inside it I have a TextBox set to display:none, a CalendarExtender connected to it and a Button, next to the TextBox, that displays the calendar. When I click the button the calendar appears on the top left corner of the form. Is there any way to make it appear next to the button, where the textbox is ... | stackexchange/codereview |
I'm dynamically creating a context menu and the menu items have children.
The first time around the submenus appear, but on the second and there after only the parent menus show. The child submenu are in the collection that is bound to the context menu they just don't appear.
VMMenuItems is a property in my view model ... | stackexchange/codereview |
We're developing a Rails 3 app that uses mobile_fu to display another version of the views for mobile devices. So far so good. However, the mobile phone doesn't render the styles everytime, often it is necessary to refresh so the actual formatting shows.
We're wondering if delivering the styles inline is a good idea an... | stackexchange/codereview |
I am learning how to design a website. One of the decision seems to be how to present the data to the user i.e. with the presence of different monitor sizes, whether to structure the data to occupy the entire screen (a.k.a GMail) or make it fixed width i.e. choose a standard monitor size (1024x768) and make it appear t... | stackexchange/codereview |
I've been battling with a z-index issue on a project and one thing I have noticed that modern browsers will trigger z-index behaviour on elements that are floated, as well as elements that have position: relative or absolute.
This seems to contradict the W3C spec which states:
"Applies to: elements with the 'position'... | stackexchange/codereview |
I am writing an application, there are various forms and their corresponding datamodules.
I wrote in a way that they are using each other by mentioning in uses class(one in implementation and another in interface to avoid cross reference)
Is this approach is wrong? why or why not i should use in this way?
| stackexchange/codereview |
This is slightly different to most questions regarding HTML tags in strings - I want to add HTML!
I'm using a WYSIWYG editor which produces some eratic results. What im looking to do is to check the string it produces and check whether there are any sentences that aren't wrapped in a <p></p> tag. Typical strings could ... | stackexchange/codereview |
I want to open a jquery UI dialog once, automatically. This can be done by setting the autoOpen property to true. But i need that to happen only once. How should I do it.
| stackexchange/codereview |
I need to highlight a list of words in vim, preferably the words should be defined in a file. A bit like spell checking. I have been looking at http://vim.wikia.com/wiki/Highlight_multiple_words but it requires that I define each word as a new position and does not support storing the words to a file (though they are s... | stackexchange/codereview |
What's the counter part of _wfopen? I found that there is fclose related to fopen, but it seems there is no _wfclose.
| stackexchange/codereview |
I've never done work in C# before (although quite a bit in PHP), but have been tasked to make a SharePoint webpart. I need it to pull list data from SharePoint. I really am clueless as to where I should begin, so I'm starting by making a 'check to see if list exists' function. This just checks for the string 'listNa... | stackexchange/codereview |
I want to monitor the key names and values that are being stored by my application in the Enterprise Library caching mechanism.
We're using the in memory settings. Basically, I just need to figure out how to dump the keys that are currently stored.
I see that the ICacheManager returns an object that has a counter, but... | stackexchange/codereview |
I want to get images from a flickr rss but this code won't get them.
This is what I got up with after some help from my original qustion here : Jquery in Internet Explorer: find image problem(works in FF and Chrome)
The problem is getting the data in right format to my web page.
My page's URL is : zalastax.co.cc/pictu... | stackexchange/codereview |
In the query below @processtable is a table variable and temp is a derived table when I am trying to join them I am getting the following error:
The column prefix 't' does not match with a table name or alias name used in the query.
SELECT t.Order
,CONVERT(NVARCHAR, temp.[DateTime], 101) AS [DateTime]
... | stackexchange/codereview |
Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35);
BaseFont marathi = iTextSharp.text.pdf.BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.EMBEDDED);
iTextSharp.text.Font fontNormal = new iTextSharp.text.Font(marathi, 12, iTextSharp.text.Font.NORMAL)... | stackexchange/codereview |
We have a PDF file download link on a web page with a C language CGI program actually passing on the file from our embedded device's web server. The web server is custom coded because of severe memory limitations.
The suggested filename by the C program is "Manual.pdf".
On Internet Explorer 8, when we click on the link... | stackexchange/codereview |
I've found plenty of places where people point out that a ServiceBehavior should be an attribute of the service class and not the contract, and this definitely seems to be the case. Why is this?
| stackexchange/codereview |
I have the following code, this code was recommended to me by stackoverflow user on my previous post, its throwing some error
protected void Button2_Click(object sender, EventArgs e)
{
String a = DropDownList1.SelectedItem.Value;
String b = DropDownList3.SelectedItem.Value.PadLeft(3, '0');
... | stackexchange/codereview |
User of my Android app says that it's crashing, without the force close dialog - the Activity just disappears and homescreen is shown. He sent this error log, what does it mean?
I/DEBUG ( 1337): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1337): Build fingerprint: 'verizon/inc/inc/inc:... | stackexchange/codereview |
I use prism v4 and MEF to load my modules. My modules contain a handful of views (MVVM) which are loaded in a ItemsControl/NavigationRegion automatically by MEF.
This works nicely, all items show up in the ItemControl. But I don't like the order in which they show. One module might contain several of the items, so chan... | stackexchange/codereview |
I have a project I was handed that I unzipped, put on my computer, and now I can't put any breakpoints in. Whenever I try to put a breakpoint in I get an exclamation point over the breakpoint saying "This breakpoint will not currently be hit. No symbols have been loaded for this document." Anyone know how I can fix thi... | stackexchange/codereview |
My understanding was that if asp.net application wants to write file to file server, it needs to use impersonation. I use the support.microsoft.com/kb/306158#4 "Impersonate a Specific User in Code" to do it. But it didn't work. The GetLastError() was giving error code 1326 "Logon failure: unknown user name or bad pass... | stackexchange/codereview |
I'm trying to download a zip file. It returns 0 bytes for myURL1, this code works for a xml file which returns roughly 200000 bytes.
NSURL *myURL1 = [NSURL URLWithString:@"http://www.enginbodur.com/files/GetAccounts.zip"];
NSURL *myURL2 = [NSURL URLWithString:@"http://www.jjfoodservice.com/rss/productscatalogue.xml"];
... | stackexchange/codereview |
So, I'm fairly done with the JS in my website now. It involves jQuery (and as such a .ready init)
The page has two parts, the upper is mainly Google Maps and the lower is input forms.
All of this is currently in one .js, functions, inits, iterations, all of it.
It's well structure and all that, everything is properly d... | stackexchange/codereview |
I have this code, modified version of Apple's PageScrollView sample. Here the differnce is that m using ViewControllers instead of UIView.
MyClass.h
@interface MyClass : UIViewController {
UIScrollView *scrollView;
UIPageControl *pageControl;
NSMutableArray *viewControllers;
BOOL pageControlUsed;
}
@property (nonato... | stackexchange/codereview |
now pretend you have a db structure like this:
table Object
{
id,
name
}
table ObjectRelation
{
id,
parentID, -- points to id in the object table
childID -- points to id in the object table
}
what i'd like to have in my model is the following:
{
property name
property children
proper... | stackexchange/codereview |
I am trying to deploy my ASP.NET MVC 3 RC to Windows Azure.I've added all references for MVC 3 and Razor specific dll's and set for them "Copy to Local" property. So should be pretty straight forward. However when i've done publish i've got a pretty strange error. Exception show me that application can't find partial v... | stackexchange/codereview |
At first I want request a whole page:
$.ajax({
type: "get",
url: "Test.aspx",
dataType: "html",
success: function (html) {
$(html).appendTo($("#contain"));
},
});
the whole page element will append to the div#contain,include the css,... | stackexchange/codereview |
I have a select query as
SELECT tbl_product.prod_id,tbl_product.manuf_id, tbl_product.cat_type_id, tbl_product.cat_id, tbl_product.prod_mpn,
tbl_product.prod_name, tbl_product.prod_model, tbl_product.prod_retail_price, tbl_product.prod_purchase_price, tbl_product.prod_sp_offer_price, tbl_product.prod_stock_qty, tb... | stackexchange/codereview |
I am trying to create a multistep form using javascript and div. I know how to create the form this way but the problem is I want the fields in each step to be validated before moving to the next. Example: If the user did not fill up a required field or have error in a field the box will be highlighted in red and they... | stackexchange/codereview |
I've inherited an ASP.NET web site that has an SSL certificate bought via GoDaddy.
The problem is that the certificate seems to be invalid because of some "mixed content/resources" (I think that's how its called) coming from http sites.
Chrome is showing the red cross over the lock next to https, meaning it's unsecured... | stackexchange/codereview |
I'm trying to display images from my database but either I see this message on my browser "item_Details.php?itemID=1" or nothing at all.
I looked everywhere to see What i have done wrong but I can't find anything.
Here are the tables:
'CREATE TABLE `images` (
`imagesID` int(5) NOT NULL AUTO_INCREMENT,
`itemID` int(5) ... | stackexchange/codereview |
Can I render a partial by binding a function to a hyperlink?
I have a hyperlink:
View All Images
And I have this in application.js:
$("#allimages").click(function() {
$("#results").html("<%= escape_javascript(render 'images') %>");
});
I'm guessing that the ruby erb stuff is never executed like that. And that "re... | stackexchange/codereview |
I have some scripts that I need to run that I want to access the full environment from my rails app.
I know I've used script/runner before in Rails 2.3.
But I've also used 'delay_job' which loads the rails environment like this (2.3 code):
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), ... | stackexchange/codereview |
I'm trying to fetch a remote systems time (based on another post) and eventually set the local systems time to the same as the remote system time. But I"m trying to do some display of the values and a difference of the data time values (local vs remote). But when I try to do a ParseExact on the date format that the rem... | stackexchange/codereview |
I'm using Vim for editing source code, but I would also like to have a terminal embedded in vim's window (just like in Kate, you know).
Now I have seen the vimsh plugin that turns a vim buffer into an interactive terminal, but I don't like 2 things about it:
It opens automatically at startup. Can I disable it and in... | stackexchange/codereview |
I am in need of your superior web development insight. I was playing with the Imageshack API, and managed to upload a image using a form from my server to imageshack server, and it returns me a rather confusing data back.
Now my question is, what the hell do I do with that to get what I need. Do I have to parse it? I ... | stackexchange/codereview |
I am using FCKEditor in a CMS and need to post some javascript code in the editor.
This is stored in my database but it removes the + sign from this javascript code:
function _check(val){
loadFragmentInToElement('captcha_check.php?val='+val,'captcha_div','');
}
Now why would it remove the + sign?
I've tried using &... | stackexchange/codereview |
Another problem has been bugging me lately, and I am quite sure it is my lacking WPF/MVVM skills that prevents me from seing the obvious. I am sure the solution is a simple one, however, I am unsure how to implement it.
I am developing in WPF/C# and I am using the MVVM designpattern.
For simplicity, I am boiling the qu... | stackexchange/codereview |
I have the following code on the client side for retrieving data from the HTML Table and then send it to the server through the page method:
function dtExportToCSV(dataTable) {
var elements = dtDataToJSON(dataTable);
var headers = dtHeadersToJSON(tableSelector);
jQuery.ajax({
type: "POST",
... | stackexchange/codereview |
In my book, "Pro C# 2008 and the .NET 3.5 Platform", there is a line of text that is confusing me, within the context of Single-File assemblies.
In a great number of cases, there is a simple one-to-one correspondence between a .NET assembly and the binary file (*.dll or *.exe). Thus if you are building a .NET *.dll, ... | stackexchange/codereview |
im mapping an xml on a custom nsobject.
when the user hits reload the function is called again.
i get several memory leaks on all strings:
UPDATE this is the current code.
- (void)mapDataOnModel
{
if(mixesArr != nil)
{
//[mixesArr release];
[mixesArr removeAllObjects];
[playListA... | stackexchange/codereview |
I am using a js function where i can parse only 2 different date formats.If a user wants some other Date format its not taking.
function getFormattedDate(id) {
var start = document.getElementById(id).value;
var jsDate = new Date(start);
var shortWeekday = new Array("Sun","Mon","Tu... | stackexchange/codereview |
If I run the classical bash forkbomb:
:(){ :&:&};:
my system hangs after a few seconds.
I tried to write a forkbomb in C, here is the code:
#include <unistd.h>
int main( )
{
while(1) {
fork();
}
return 0;
}
When I run it the system gets less responsive, but I can kill that process (even after min... | stackexchange/codereview |
I'm developing an app using Oracle database and I would surely like to have an SQL statements tracer that could trace sessions and processes statements - like Toad's SQL Tracker/Monitor. But since the good one cost alot of money I'm thinking about building a small one myself.
Any ideeas about wich would be the best sol... | stackexchange/codereview |
I am currently working on my final year project at the University. I am developing a LAN messager program in JAVA. I would like to use the computer names as the usernames and the workgroups as the chatroom names. So far I don't have problems retrieving the computer names but the problem is with retrieving the workgroup... | stackexchange/codereview |
I would like to generate an excel spread sheet with c# that contain a button, and that I can handle the event when the user click on this button...
Any idea please...
| stackexchange/codereview |
Somehow when I compile this in VS 2008 it doesn't raise an error, is there any way to flag it so it does raise an error?
namespace ConsoleApplication1
{
public class Program
{
static void Main(string[] args)
{
Program[] programs = null;
var result = programs.Where(p => p... | stackexchange/codereview |
For a simple test I want to drag a Button to a TextBox. I can start dragging the Button, but the Drop event is not raised. What am I missing?
Xaml:
<Window x:Class="DayPlanner.View.DnDTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006... | stackexchange/codereview |
I have a pretty basic jquery script which uses an h2 as a "trigger" to toggle the div below it.
Seen here:
$(".toggle-container").hide();
$("h2.trigger").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
return false;
});
I've tried to create a "toggle all" link but what happens is th... | stackexchange/codereview |
I need to reference FSharp.Core to a Visual Web Developer Express project (C#), but for some reason when I click "Add Reference" it doesn't exist on the ".NET" list. Also tried to search this DLL on C:\Program Files\Referenced Assemblies, didn't find anything.
I downloaded this DLL from somewhere, but when I add it, it... | stackexchange/codereview |
C# accepts this:
this.MyMethod(enum.Value1 | enum.Value2);
and this:
this.MyMethod(enum.Value1 & enum.Value2);
Whats the difference?
| stackexchange/codereview |
I am generating a JS navigation using PHP. Script is included like so
<script type='text/javascript' src='/topNav.js.php'></script>
I would like to use PHP rather than JavaScript to assign the class for the current page's link but all of the $_SERVER vars see the topNav.js.php location.
I know I could use JS somethin... | stackexchange/codereview |
I'm writing a program that builds up a tree structure made up of classes that inherit from an abstract Node class. There are a number of different type of nodes built into my program. However, I also want to allow more advanced users to be able to reference my library and write their own derivations of Node. These plug... | stackexchange/codereview |
I need help with this
I was asked that for an unsigned integer range 1 to 1 billion, ,how many bits are needed!
How do we calculate this?
Thank you
UPDATE!!!!
This what I wanted to know because the interviwer said 17
| stackexchange/codereview |
how can I translate this into LINQ?
select t.age as AgeRange, count(*) as Users
from (
select case
when age between 0 and 9 then ' 0-25'
when age between 10 and 14 then '26-40'
when age between 20 and 49 then '60-100'
else '50+' end as age
from user) t
group by t.age
Thank you!
| stackexchange/codereview |
i want to make sure that in all tab enabled browsers, when a user clicks a link, it opens in a new tab. All i have got so far is the target keyword in the anchor, but is there some new html attribute that supports that function?
| stackexchange/codereview |
I use separate WCF AuthenticationService for auth routines. Methods: ValidateUser,Login return true, so it seems that all work properly, but when I call IsLoggedIn() after consume Login() method, it returns false.
AuthService settings:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<clear />
... | stackexchange/codereview |
i am diving deeper into kohana and i like it verry much. especialy the hmvc stuff and much more.
at the moment i have problems with adding my own rules to the validation instance.
validation runs well, and i also think that my own function get called correctly. but the problem is that the error message for my own valid... | stackexchange/codereview |
OK let's say I have this
.test {
filter:DropShadow(Color=#000000, OffX=1, OffY=1);
}
Yes, it works fine. The text-shadow appears in Internet Explorer. However... if I add a background for color like so:
.test {
filter:DropShadow(Color=#000000, OffX=1, OffY=1);
background:#ffffff;
}
Can you guess what happ... | stackexchange/codereview |
I have the follow select:
SELECT
COUNT(a.int_re_usu) AS qtd,
a.txt_resposta,
b.txt_marca,
(
SELECT
CASE
WHEN a.txt_resposta IS NULL
THEN
CASE
WHEN a.bit_opcao = 1
THEN 'Sim'
ELSE 'Não'
END
ELSE a.txt_resposta
END
)... | stackexchange/codereview |
I am trying to include the .Net TinyMCE dll in my project. The code I am using is:
<%@ Register Assembly="Moxiecode.TinyMCE" Namespace="Moxiecode.TinyMCE.Web" tagprefix="tinymce" %>
I have already added the dll to the references in the project and I checked the code in my csproj to make sure it is correct. I modifie... | stackexchange/codereview |
I have the following framework for my application:
1. a Network thread that runs in the background (a queue) for issuing request and get async responses. The thread is started and stopped in the Application Object so it's leaving through out the whole application.
2. a DataManager which is also a member of Application ... | stackexchange/codereview |
There seem to be a lot of new "NoSQL" type databases out there.
Some of the popular ones are CouchDB, Cassandra and MongoDB.
What are the differences between such databases and how are they different from tradition relational databases? What are the advantages and disadvantages of picking NoSQL DBs over SQL DBs?
| stackexchange/codereview |
Is it possible to prevent a browser window closing using jQuery? I've tried this:
$(document.ready(function() {
$(window).unload(function(e) {
e.preventDefault();
alert("Not closing");
});
});
The alert works but the window closes anyway.
| stackexchange/codereview |
My spreadsheet is set up like this:
I have a list of job numbers in column A and a corresponding list of Job titles in Column B. I need for all of the rows of a certain job number to be colored. e.g., rows 2-4 have "3705" in column A, so those rows would be colored red. Rows 5 & 6 have 4169 in column A and would be col... | stackexchange/codereview |
Let's say I have a screen that shows the animals in my farm. If the user wants to add animals, they can click an "add" button which takes you to another screen which lists the animal names. If the user chooses "dog", my app will query the database and return me a Dog object and I add it to my collection of animals in... | stackexchange/codereview |
I'm using EF Code First with a pre-existing database.
Two objects:
public Foo
{
public int FooId {get;set;}
}
public Bar
{
public int BarId {get;set;}
public virtual Foo Foo {get;set;}
}
Both FooId and BarId are primary keys in the database, and the Bar table has a column FooId which is a foreign key poin... | stackexchange/codereview |
I have an iframe that I dynamically set the source of. Upon retrieving the content to be displayed in this iframe, I need to be able to do a few modifications to its DOM, apply a few CSS rules, and then display it.
I tried two things (Assume the id of the iframe is content)
$("#content").attr("src", urlToFetch);
$("#c... | stackexchange/codereview |
I understand that the right way to sort an NSDictionary is to create an array from the keys, sort the array, and then enumerate through the array and operate on the NSDictionary from there. My question is, for an NSDictionary *dict, with keys and values of strings,
Why is this alphabetical:
NSLog(@"%@", dict);
But t... | stackexchange/codereview |
In the webMatrix examples, which I have working, it's very easy to access a database. Only three lines are necessary to get up and going:
@{
var db = Database.Open("LOS");
var selectQueryString = "SELECT * FROM wknTest";
}
and a little later,
@foreach(var row in db.Query(selectQueryString)){
There's no usi... | stackexchange/codereview |
Share and like are working perfectly on my other PHP site, but on my new Rails site, it is just posting the home page url and the title from the home page. It's also not grabbing any images when posting through FB share.
I tried everything - setting the og:title meta property, changing the href in the url param for sh... | stackexchange/codereview |
I came across this example of a race condition:
def inc(n)
n + 1
end
sum = 0
threads = (1..10).map do
Thread.new do
10_000.times do
sum = inc(sum)
end
end
end
threads.each(&:join)
p sum
Threads run in pararell and there's a chance that while one thread reads sum's value, another one completes in... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.