instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Nearly all programming languages that support threading, have a method called join. I understand what a join does, but would like to know what the origin behind the naming of it is? Wouldn't a name such as finish be more appropriate?
| stackexchange/codereview |
I need to call through to a python script from C and be able to catch return values from it. it doesn't particularly matter what the values are, they may as well be an enum, but the values I got out of a test case confused me, and I wanted to get to the bottom of what I was seeing.
So, here is the C:
#include <stdlib.h... | stackexchange/codereview |
What I'd like to do is to get the links, images and video's that a user has shared or liked via Facebook.
Getting the likes for a certain user is easy, but it only returns name, category, id and created_time. A 'like' doesn't seem to be a thing on it's own (a link actually is).
Is there a way to retrieve the url of th... | stackexchange/codereview |
std::realloc is dangerous in c++ if the malloc'd memory contains non-pod types. It seems the only problem is that std::realloc wont call the type destructors if it cannot grow the memory in situ.
A trivial work around would be a try_realloc function. Instead of malloc'ing new memory if it cannot be grown in situ, it ... | stackexchange/codereview |
I have downloaded an .osm file from open street map and I want to plot this into an map. What is the best way to do this? I dont want to use Google Maps. Is there any other open source maps available where I can simply use their API?
| stackexchange/codereview |
I'm designing a system that will be on-line in 2016 and run on commodity 1U or 2U server boxes. I'd like to understand how parallel the software will need to be so I'd like to estimate the number of cores per physical machine. I'm not interested in more exotic hardware like video game console processors, GPUs or DSPs... | stackexchange/codereview |
How can I have a package added to the list of available package of nuget/nupack?
| stackexchange/codereview |
I am looking to turn the character 'a' into 97 in ruby 1.9.2
Ruby 1.8.7
irb(main):001:0> ?a
=> 97
Ruby 1.9.2
irb(main):001:0> ?a
=> "a"
| stackexchange/codereview |
There's an old codebase that uses a server in C and client in Java. The source is here: mudbytes.net/file-890
It used to work just fine years ago, but the socket is now timing out when the two try to communicate. Is there some sort of new Java policy that silently blocks communication if there is no cert or the sort?
[... | stackexchange/codereview |
I am creating like timer application and when I start timer I have option to go to android Home or start any other activity .
When I start timer I set a notification bar icon and if i use some other application (mean go from started timer activity) and now I need to go to back to my previously started timer acti... | stackexchange/codereview |
I know it's a old IDE, but in my job I have to work with it.
I spend a couple of days searching where could I set the line numbers to show on the left side of the text editor, but I couldnt find.
I'm still hoping it's possible, never saw any IDE that didn't have that.
| stackexchange/codereview |
I am trying to convert an ASCII string to an ImageSource like so in WP7:
string imageString = "%PNG image data here in ASCII";
byte[] imageBytes = new byte[sizeOfImage];
System.Text.Encoding.UTF8.GetBytes(imageString.ToCharArray(), 0, imageString.ToCharArray().Length - 1,
... | stackexchange/codereview |
I’m building a commercial web application that uses jquery. I think I need to use the MIT licence for jquery because the application is commercial. When I looked at the MIT licence in Wikipedia it says:
“It is a permissive license, meaning that it permits reuse within proprietary software on the condition that the lic... | stackexchange/codereview |
There is one-2-many relation between Property and Reservation. Property has column called 'nr_of_bookings'. I need DQL that will retrieve only the properties that has COUNT(Reservation) less than Property.nr_of_bookins.
An example: Some Property has nr_of_bookings = 3 . If it has 5 Reservations related, it will not be ... | stackexchange/codereview |
I'm struggling finding a usable gem which provides the following for a Rails 2.3.5 application:
we want to protect out API with oAuth 2; therefore a Controller for creating access/request Tokens and the models (Client, Token,...) are required
we want to consume oAuth2 Services like Facebook and Twitter
It would also ... | stackexchange/codereview |
I need to have a layout for my widget, but I don't know how to arrage my images on widget screen.
I need to have 4 small Images on first row
then 2 Images on 2nd row
1 Image on 3rd row
and 1 Image on 4th row
Could you please someone create the xml file ?
| stackexchange/codereview |
I heard Apple will accept only Objective C apps in the Mac App store.
Someone know if java app will be accepted?
| stackexchange/codereview |
I have only fairly recently started using Maven (2.2.1), and I have Artifactory running on the local network, which is where my release versions deploy to.
Currently I have made a dodgy Maven plugin that scp's a release version .jar or .war file to a separate distribution server that puts the new files on the live serv... | stackexchange/codereview |
ok when i load three meshes and render them one of them goes over all of them. is there way to control which mesh would go in the front and which mesh would go in the back?
| stackexchange/codereview |
Is there a way to program for gameboy?
| stackexchange/codereview |
I have a question that's so simple I cannot believe I can't answer it myself. But, there you go.
I have a large-ish static list (of cities, latitudes and longitudes) that I want to use in my Windows Phone 7 Silverlight application. There are around 10,000 of them. I'd like to embed this data statically in my applicatio... | stackexchange/codereview |
// b: uint32_t array of size n => 32*n bits
// The bit index, i, is in the range 0 <= i < 32 * n
// The bit in b at bit index 0 is always 0!
unsigned idx_of_first_zero_bit_before_or_at (uint32_t *b, unsigned n, unsigned i) {
// Returns a bit index, k, such that k <= i and k is the largest bit index
// for w... | stackexchange/codereview |
How can I target input fields of type 'text' using CSS selectors?
| stackexchange/codereview |
I have my javascript audio player working with .mp3s, but I'm not sure how to add a second audio format (.ogg) so the files will also play in Firefox. Can anyone help with this. Here is the array code:
var urls = new Array();
urls[0] = 'audio/song1.mp3';
urls[1] = 'audio/song2.mp3';
urls[2] = 'audio/song3.m... | stackexchange/codereview |
I am getting this JSON string from an ASP.Net webservice:
{"d":{"Table":[{"col1":123,"col2":"name","col3":"name","col4":100,"col5":"\/Date(1153033200000)\/"},{"col1":123,"col2":"name","col3":"name","col4":101,"col5":"\/Date(1153033200000)\/"},{"col1":123,"col2":"name","col3":"name","col4":102,"col5":"\/Date(11530332000... | stackexchange/codereview |
Hey everbody, i'm trying to treat the response of a http post.
My php is giving a simple message, so, how can i treat it?
I mean, if gives me the "Error" message, do something, or "OK" do another thing.
NSHTTPURLResponse* urlResponse = nil;
NSError *error = [[NSError alloc] init];
NSData *responseData = [NSURLConne... | stackexchange/codereview |
I'm trying to log all DEBUG messages to console during testing in maven. For this purpose I created a file src/test/resources/log4j.properties, which is going to override the configuration I already have in src/main/resources/log4j.properties. Unfortunately such an overriding is not happening. Why and how to fix it?
| stackexchange/codereview |
How can the exit code of the main thread be retrieved, after having run ShellExecuteEx() in asychronous mode?
The process exit code can simply be retrieved as follows:
SHELLEXECUTEINFO execInfo;
execInfo.cbSize = sizeof(SHELLEXECUTEINFO);
execInfo.fMask = SEE_MASK_NOASYNC;
ShellExecuteEx(&execInfo);
/* Get process ex... | stackexchange/codereview |
I can open a new window using window.open() in ExternalInterface.call() but then I want to be able to write contents to the new window. Since, I cannot get the reference of the window back from window.open() call, I am not able to do anything to the window once it is opened.
Please note: I do not have any control over ... | stackexchange/codereview |
I have a lot of pre-linq C# 1.0 code which converts the output from a stored procedure (SQL 2005) into a collection of objects. It goes as follows:
Declare a class with properties matching the columns in the output.
using SqlDataReader, loop while there are rows to read
For every row, add an object to a List
return th... | stackexchange/codereview |
It is said here:
any quotes inside the JSON have to be
“escaped” with a backslash in front.
Otherwise, JavaScript gets confused
about which quotes we want for display
and which quotes are part of the
programming.
but in their code snippet I can't see any escaping character is this tutorial buggy I'm confuse... | stackexchange/codereview |
I have a SDL application and want to make the window resizable. So I put proper flag in SDL_SetVideoMode() and made an event handler. But when I resize window, handler isn't activated. I don't know why.
Code of my event loop:
while (SDL_PollEvent (&event));
{
if (event.type == SDL_QUIT)
return 0+1;
else... | stackexchange/codereview |
The html / CSS I've been using is below.
When the cursor is over .buttonR, there is no :hover effect, nor does it properly submit when clicked. There is a 6-pixel dead area on that right side that I'm trying to get around. Any suggestions? Is there a flaw in my original approach at achieving rounded-corner buttons?
... | stackexchange/codereview |
I am using a css stylesheet in one of my web pages. The styles work perfect for Mozilla and IE 7 and below. However theres a problem with it in IE8 and safari.
The width of class in the css is 700px. I have used a contentplaceholder in the master page from where this web page inherits. Now in IE8 it displays a little l... | stackexchange/codereview |
I want to add a watermark to some videos but I only want the watermark to appear at certain timecodes in the video (e.g. beginning / middle / end) and only for a few seconds.
I've gotten ffmpeg to do the watermarking following the directions here: http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=8&t=1400
But I can't fi... | stackexchange/codereview |
I'm looking at communicating between a C++ program and a C# program using Mono. On the Mono website they have some good examples of embedding Mono in a C program, starting the C# program, and then communicating between the two.
mono_domain_assembly_open is used to open a C# assembly and mono_jit_exec is used to run it... | stackexchange/codereview |
I'm working to implement CanCan. For some reason CanCan keeps giving me Access Denied when I try to get specific about model permissions. And I can't figure out why.
Is there a way to get CanCan to be specific, perhaps in the logs or in development about Why Access is denied? something like, No Read Ability to XXX Mode... | stackexchange/codereview |
Here is my issue. I have a container which takes in a pointer to the base class. When the container calls a certain method declared virtual, the derived classes can modify a pointer to the container, but only the base is a friend and since the container is compiled as a dll, it is not convenient to add friend Derived; ... | stackexchange/codereview |
I added WMD Editor as Stackoverflow does, but I have in my css,
*
{
margin: 0px;
padding: 0px;
}
This makes newlines disappear, so there is no more space between lines.
is there anything i can do in css for wmd-preview?
| stackexchange/codereview |
I was wondering if I can specify any CSS media types in the style attribute? and what can I specify in the style attribute?
| stackexchange/codereview |
It seems like these codes would work:
MechBrowser = mechanize.Browser()
MechBrowser.set_proxies({"http": "111.11.11.11"})
response = MechBrowser.open("http://google.com")
But as you see "111.11.11.11" is just a random ip I came up with to test if the proxy setting works, and it's not a valid proxy. The weird thing is ... | stackexchange/codereview |
Im trying JSF2 CDI (weld) beans in eclipse helios instead of ManagedBeans, but can't do the auto completion inside the expression language for my Named beans (the #{myNamedBean.Ctrl+Space} thingy)
But OTOH with ManagedBeans, the content assist works well ..
Is the content assist for CDI beans supported yet in Eclipse ... | stackexchange/codereview |
I try to load some external .js files, and have some irresolvable namespace conflicts.
I had the idea of loading some of the files in their own context somehow, replacing the "this" from pointing at the window object to some custom namespace.
example:
first.js:
name = "first";
second.js:
name = "second";
It seems to ... | stackexchange/codereview |
I m newbie at perl.I'm trying to use Mime::Lite.I looked their site
and i try to sending mail this way
#!/usr/bin/perl
use MIME::Lite;
$msg = MIME::Lite->new(
From =>'cassidy@hotmail.com',
To =>'ericafb77@gmail.com',
Cc =>'some@other.com, some@more.com',
Subject =>'Helloooooo, nurse!',
... | stackexchange/codereview |
For a small todo program that I am writing, I have timestamps that are of this form
time_t t = time(NULL);
and are saved every time a task is entered to denote the time that it was entered.
I want to store the tasks to a plain text file, so that the state can be saved and restored. How should I store the timestamps to... | stackexchange/codereview |
I am trying to build a grid, using class info and its properties along with the supported dataannotion attributes.
Class and annotations might be defined in different classes, like (Product and ProductMetaData classes) and tied togather with the metadatatype attribute, (might also be defined in a single class).
Would ... | stackexchange/codereview |
I have a C# winform application that accesses data from an MS Access database. This means my applications requires at least 2 files, the .exe file and the .accdb file. Is it possible to include the database in the .exe file, so my solution consists of a single file (the same way you would include an image in the projec... | stackexchange/codereview |
I want to know how should I select data after it has been inserted in database using hibernate.
| stackexchange/codereview |
I m working with NetBeans, and I m trying to program a program that has a user interface.
My main class is a JFrame form and its file name is HotelHG.java.
I can write all the code in this file without any problem, but the code will be too complex and I will never be able to find code that I m looking for inside.
So I ... | stackexchange/codereview |
In the javascript dom - what is the difference between offsetHeight and clientHeight of an element?
| stackexchange/codereview |
I am building an application that needs to allow users to upload large images (up to about 100 MB) to the Windows Azure Blob Storage service. Having read Rob Gillen's excellent article on file upload optimization for Windows Azure, I borrowed his approach for doing parallel upload of file chunks, using the CloudBlockBl... | stackexchange/codereview |
My question is that with example. I have to show all categories of books and with checkboxes in a page which I want to be posted to next view without interacting db and there I want to store them in a hidden field in a comma separated string.
Actually I have a tab for find a book. user clicks on it and it has a list of... | stackexchange/codereview |
When is it advisable to let the compiler do its thing and when should I be explicit when declaring variable types?
| stackexchange/codereview |
How would I go about displaying a 2-dimensional integer array into a DataGridView Control in C# .Net 4.0?
| stackexchange/codereview |
If I want to send information to a server using SSL, presumably that's sensitive information. If I use JSONP to send it to a different domain, that sensitive information must go in the querystring. At a minimum, it seems that this information would be logged by the web server, thus exposing sensitive information. Does ... | stackexchange/codereview |
I am making my portfolio, totally javascript based. http://portfolio.theadamgaskins.com/Portfolio/
My problem, is when you click one of the navigation buttons, the new page fades in at the same time that the other page fades out. The current page should fade out before the new page fades in. Here's the code I'm using:
... | stackexchange/codereview |
hey i've got a little confusion here..
I'm using the EyeTunes Framework for a little learning project. It's an iTunes Controller.
The framework gave me an array of playlists currently existing in iTunes.
As some playlists contain thousands of tracks, i plan to create arrays of the track-objects of each playlist in the ... | stackexchange/codereview |
I have a map having strings as keys and lists of file names as values.
ex: Map(firstDir, list(file1,file2,file3))
I know that by using following code I can print value which is of String
{
cout << "Key: " << pos->first << endl;
cout << "Value:" << pos->second << endl;
}
But if pos->second contains a List, how ... | stackexchange/codereview |
I have stepped into a serious problem.
I am working in a db where one user is child to a previously registered user.
And that child will be having another two child users.
This goes to n levels
So i tried to find out the super most parent of the nth level user the problem arised
Now i am using query running in a loop t... | stackexchange/codereview |
I want to create a scrollable map and trigger different actions when the user touches a different areas.
With iPhone, it was easy by putting buttons on top of the image. How do I do it in Android?
I used a custom view to enable scrolling in both directions. Now how do I make different parts of the image trigger differe... | stackexchange/codereview |
bogon:~ Zhulin$ ruby -v
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
bogon:~ Zhulin$ rails -v
Rails 1.2.6
bogon:~ Zhulin$ gems -v
-bash: gems: command not found
bogon:~ Zhulin$ sudo gem install heroku
Password:
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching h... | stackexchange/codereview |
if I have two nsdatecomponent and I want a know if the TIME in the first object is bigger than the second.
example:
if (nsdatecomponentObject1 > nsdatecomponentObject2)
{
//something
}
Because this way don't works, how I can do this?
| stackexchange/codereview |
I want to display a grid of data, with long header names for the columns and long header names for the rows, but just a small amount of data in the cells, and I would like to do so in a compact manner, something sort of like this:
V V V V V V
H H H H H H
e e ... | stackexchange/codereview |
Do you recommend an open-source project in PHP as a file hosting/sharing solution?
The project should support the following:
1- Register a new user.
2- Enable the user to download/upload files (doc, images, programs, etc.).
3- Define limits on the traffic upload/download (per user).
4- Define limits on the storage capa... | stackexchange/codereview |
Can someone post a simple example of using named pipes in Bash on Linux?
| stackexchange/codereview |
I have a fairly naive thing I want to do and I want to know if someone can answer can tell me if this is just flat out stupid. If what I am going to ask is not stupid but perhaps naive, I'd appreciate if I can get a nudge in a correct direction.
I have a file named pwds.py. Its contents are
import hashlib
class Pwds:
... | stackexchange/codereview |
I could find a C++ one here, but no pure C one. Any pointers?
| stackexchange/codereview |
My Friend asked me to write a program to limit the Internet usage to 40 Mb per day. If the 40 Mb of daily quota is reached no other programs in the system must be able to access the Internet.
| stackexchange/codereview |
I realize that both will work, but is one more correct than the other?
<form method="POST" />
vs.
<form method="post" />
Why use one or the other?
| stackexchange/codereview |
Simplified question: For some reason the plot isn't updating when I hit my generate plots button.
global f
master = Tk()
plotFrame = Frame(master)
plotFrame.pack(side=TOP)
f = Figure()
canvas = FigureCanvasTkAgg(f, plotFrame)
canvas.get_tk_widget().pack()
toolbar = NavigationToolbar2TkAgg(canvas,master)
toolbar.pac... | stackexchange/codereview |
If I store an HTML TEXTAREA in my ODBC database each time the user submits a form, what's the SELECT statement to retrieve 1) all rows which contain a given sub-string 2) all rows which don't (and is the search case sensitive?)
Edit: if LIKE "%SUBSTRING%" is going to be slow, would it be better to get everything & so... | stackexchange/codereview |
I'm trying to create combobox type interface so that user can select an item from a list.
But I'm unable to hide the table after the selection is made. Any idea how that can be done ?
thx
| stackexchange/codereview |
has anyone had problems with words missing when using dynamicJasper?
More detail on problem is this:
Let say that in certain field i want to print out rather large String: "HOUSE NUMBER"
so if width for that column is set to 30, it is printed out fine,
if it is set to 20 only HOUSE is printed out and
if it is set to 1... | stackexchange/codereview |
I have an hyperlink that throw the exception :
"This operation is not supported for a relative URI"
Code:
Process.Start(e.Uri.AbsolutePath);
I want to enforce it to open the browser even if the uri is something like : "1aabbb3"
How can I do that ?
| stackexchange/codereview |
I am wondering how to build a TreeItem with I18N and not have different tokens for a menu item.
If I build a TreeItem like this:
@UiField
Tree tree;
TreeItem customer = new TreeItem(customerGroup");
customer.addItem("searchCustomer");
customer.addItem("create");
customer.setState(true);... | stackexchange/codereview |
I have written a Java program that builds up a huge arraylist (with more than 7 million elements). Then iterating on the elements of that arraylist, I am building up a second arraylist whose size is also like to be in millions. At some point during the iteration, I get outof memory exception with GC overhead limit exce... | stackexchange/codereview |
Including a css sheet is easy and works well with the code below. However this must not be a good way to include a javascript file because I get an error when I view it in the iPad. Something about an unclosed tag. I assume I'm getting nested tags by doing it this way. What should I be doing instead?
<script type... | stackexchange/codereview |
I have a Report in SSRS VS2008 that needs to run a Stord Procedure from Oracle. In the past I have run functions from Oracle that return tables in order to display the data. As well as straight forward SELECT statements
For example:
select * from table(MyFunction(:parm1, :parm2))
select * from MyTable
I have not run... | stackexchange/codereview |
I've got a strange issue which crops up in IE (6, 7 and 8) and when Flash is on a page: images display intermittently.
Refreshing the page several times may or may not make the image display.
Approximately 50% of the time the image displays
If the image is not displayed there is space for the image and right-clicking ... | stackexchange/codereview |
In light of the Firesheep exploit, does anyone know what protocol the Facebook for Android app is using?
| stackexchange/codereview |
I am working on a universal iPhone/iPad app. I resize some of my UITextFields as the user types. I also have some code to move the UITextFields around so that their locations make sense as they are resized. This code is not too short, but basically it comes down to modifying the frames of the UITextFields.
My UIText... | stackexchange/codereview |
How do I push a view control over a UISPlitViewController? Or How do I get the parent UIViewController of the UISplitViewController?
What I want to do is when a user clicks on a button a UiViewController will take up the enter ipad view.
I currently have this hierarchy:
Window
UISplitViewController
I want to push ... | stackexchange/codereview |
I have an input box generated by
<%= Html.TextBoxFor(model => model.Card.ExpiryDate) %>
which results in the html
<input id="Card_Expiry_Date" name="Card.ExpiryDate" type="text" value="">
I also have javascript function
<script type="text/javascript">
$().ready(function() {
$('#Card_Expiry_Date').datepicker({... | stackexchange/codereview |
Considering the following:
public class Person
{
public Person(string fName, string lName)
{
this.firstName = fName;
this.lastName = lName;
}
public string firstName;
public string lastName;
}
class App
{
static void Main()
{
Person[] peopleArray = new Person[3]
... | stackexchange/codereview |
I'm just learning about them, and find it discouraging that they have been deprecated. Should I keep investing into learning them? Would I learn something useful for the current model?
| stackexchange/codereview |
I am using the official facebook ios sdk in my app (https://github.com/facebook/facebook-ios-sdk)
It was all working fine. I was able to log in, pull all my info from Facebook, post things on my wall. Do all those regular stuff that you do...
But since last night, it appears to be broken. When the login window appears ... | stackexchange/codereview |
I'm trying to send an integer over the serial port to my Ardunio. The chip is then going to display the number in binary on the LED's. However I'm having lots of trouble trying to send the data as a byte over the serial port, as far as I can debug the following code sends it as the ASC char values.
Can anyone point me ... | stackexchange/codereview |
I'm creating a tabled like view of data in divs. I am having to use a lot of inline HTML and CSS due to the enterprise framework I am using.
The way to visualise it: each row has a container div (rowContainer), and each in a row is contained in a div (collResult). I want the border-bottom element to appear at the botto... | stackexchange/codereview |
I am using Google App Engine to create a web application. The app has an entity, records for which will be inserted through an upload facility by the user. User may select up to 5K rows(objects) of data. I am using DataNucleus project as JDO implementation. Here is the approach I am taking for inserting the data to Dat... | stackexchange/codereview |
Currently, I am uploading PDF files, and images from my MVC web application to a sql server database. This works perfectly, however I now want to be able to upload ePub files.
I tried to do it with the same uploader in some vain hope that it would work, however this is the error I get:
SqlException was unhandled by th... | stackexchange/codereview |
I am a php developer using mostly CakePHP, magento, and wordpress. I want to create a community driven website aimed at the volunteering community that will let users sign up, create profiles, add previous voluntary positions, let organisations sign up and post jobs, etc. Is this something that drupal can handle? Is th... | stackexchange/codereview |
I have a repeater control in an AIR application, that gets data dynamically. The repeater is inside a panel:
<s:Panel top="50" bottom="10" left="10" right="10">
<mx:VBox>
<mx:Repeater id="FeedItemsRptr" dataProvider="{Story_Collection}" height="300">
<s:Label text="{FeedItemsRptr.currentItem.storyTi... | stackexchange/codereview |
I am trying to maintain the log4j configuration in a separate file in production environment. I have this log4j.properties file (which in production resides in WEB-INF/classes):
log4j.rootLogger=error, stdout
log4j.rootLogger.additivity=false
log4j.logger.grails.app=info, stdout
log4j.additivity.grails.app=false
log4j... | stackexchange/codereview |
I've been doing a lot of research to figure out the best way to code an application to get the main article content from almost any HTML webpage. I have a C program that uses libxml2 to parse through the XML, but I came across Alchemy API, which appears to do what I want.
However, it only has an online API and I wante... | stackexchange/codereview |
Soon we'll be receiving some WindowsCE6 enabled devices
and I'm wondering what the developer experience is and what the costs are.
I gathered the .NET Compact Framework is supported,
but can you use VS2010 and do we need to buy any additional licenses?
We want to build long running applications with no UI.
| stackexchange/codereview |
In my app, I am creating a bitmap from its colors code like this :
int width=getImageWidth();
int height=getImageHeight();
int[] array=getbitmap();
int[] colorsAsIntegers = new int[width*height];
int i = 0;
int j = 0;
while (i<width*height*4) {
colorsAsIntegers[j] = Color.argb(array[i], array[i+1], array[i+2],
array[i... | stackexchange/codereview |
I would like to refresh an entity and all its child collections. What is the best way to do this? I'm talking about nhibernate:)
I've read about session.Evict, session.Refresh...
But I'm still not sure if doing like:
RefreshEntity<T>(T entity)
{
session.Evict(entity);
session.Refresh(entity);
}
would work exactly ho... | stackexchange/codereview |
First, what I describe here is a small part of a larger ETL process that is already in place. So, please no suggestions to port to SSIS or some other environment because I can't.
In this ETL process, for each table in the SQL server database that is being inserted into, I am:
loading all of the relevant xml into an XE... | stackexchange/codereview |
I came across a JNI Native code which uses JNI->MonitorEnter and JNI->MonitorExit JNI calls to synchronize a piece of native code. But this has now become a bottleneck and affecting the system throughput badly. I am considering any synchronization mechanisms alternate to JNI's MonitorEnter and MonitorExit.
Do you know... | stackexchange/codereview |
I have observed the following behavior in Firefox 4 and Chrome 7:
If the server running the websocket daemon crashes, reboots, loses network connectivity, etc then the 'onclose' or 'onerror' events are not fired on the client-side. I would expect one of those events to be fired when the connection is broken for any rea... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.