instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
When you google for multi-threaded java server, most of the time you'll get a solution based on a following pattern:
public class MultiThreadServer implements Runnable {
private Socket socket;
MultiThreadServer(Socket socket) {
this.socket = socket;
}
public static void main(String args[]) throws Exceptio... | stackexchange/codereview |
COleVariant var(bstrString);
var.ChangeType(VT_DATE);
DATE date = var.date;
not seems to be working. Any ideas will be appreciated. Thanks.
| stackexchange/codereview |
i just got rid of all my compiler errors. One of the problems was that I accidentally renamed the visual form itself instead of one of the individual text boxes on my GUI. When I went to change what I had messed up in the code, it seemed to be working again. However, whenever I hit F5 to debug, I get a smaller, blank w... | stackexchange/codereview |
1. plan_payment_type:
id
plan_id
2. plan
id
payment_period
It is Foreign key between plan_payment_type.plan_id and plan.id. In my code I know a $plan_payment_type_id.
My task is to select payment_period.
Steps:
Select plan_id from plan_payment_type
Select payment_period from plan with selected plan_id
H... | stackexchange/codereview |
I am trying to do some commenting on a .html.tpl file I'm maintaining using
<!-- -->
but it would return syntax error.
How do you put comment on such files?
| stackexchange/codereview |
I'm relatively hopeless with JavaScript writing, and I'm trying to resize the default tumblr avatar image on a notes page. Currently there is no way to include a large avatar in your notes, so I'm trying to use a basic regular expression to replace the dynamically generated URL.
A user's avatar is generated into someth... | stackexchange/codereview |
I am checking network reachability in applicationDidFinishLaunching:
[self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil];
Background thread
-(void)performReachabilityCheck{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
internetReach = [[Reachability reachabi... | stackexchange/codereview |
I have heard that a processor without graphics card will take a lots of time to produce a
graphical entity,than one with graphics card.
So is there anything like that if we use Open Gl in android application??
will my application become slow ??
| stackexchange/codereview |
I am getting R6034 error, but can't see the related library/executable since it's name is shortened (see the picture below). Is there any way I can see the full name?
| stackexchange/codereview |
The spinning globe application unning on the emulator works on android 1.5 as target but puts out a "force close application" error in android 2.2 target. Where should i look to find the problem ?
I have enclosed the logcat details that I get,
D/MediaScanner( 183): prescan time: 4913ms
D/MediaScanner( 183): scan... | stackexchange/codereview |
I have a texture in my Square. The problem is when I assign floating texture points the image gets rotated 45 degrees at right. I want it without the rotation.
The current texture points:
texture = new float[]{
0.0f, 0.0f,
0.0f, 1.0f,
1.0f, 0.0f,
1.0f, 1.0f,
};
Any ideas? Thanks in advance!
This is how it ends:
This ... | stackexchange/codereview |
I have created a web browser control and a form user control. How to align form user control is a center on web browser. Please look above of image.Thanks.
http://i200.photobucket.com/albums/aa41/xuanhung123/Untitled3.png
| stackexchange/codereview |
I have a client and a server written in CGI(c++), as JS model is like to ask something from server, there is no mechanism for server to send async message. So this means the client needs to poll server periodically?
I read BOSH protocol, it says to achieve the async for http, a web page can issue several HTTP request, ... | stackexchange/codereview |
Sorry this is the first time for me to ask question here, I've given a FFT function
void fft_1d(int n, float xr[256], float xi[256], int ntype)
{
/* compute the FFT of a complex signal
xr and xi are the real and imaginary parts respectively
xr and xi contain the signal as input and the FT as output
n i... | stackexchange/codereview |
Im trying to create a call back by passing a pointer to member functions but am running into all types of issues.
How can i go about implementing such a thing
template<class T> class A{
void (T::*callBackFunction)(int);
public:
void addCallBack(void (T::*callBackFunction)(int)){
void (T::*cal... | stackexchange/codereview |
I'm doing a iCal Service to allow sync between Calendar instances and runs fantastic on localhost (under VS2010 Web Server)
But now That I hosted on a Windows 2008 R2 (IIS 7.5.7600) I couldn't create not even update an event :-o
Thunderbird always said
So I rush into Fiddler and found out the problem
a 405 error
Tha... | stackexchange/codereview |
I have a form with about 40 checkboxes. Once a checkbox is checked, the div control's property should be changed from "none" to "block" or vice versa. I don't get an error, but the checkedchanged event isn't handled. Here is the markup:
<tr>
<td class="sectionSubHeader lightgrey">
<asp:CheckBox ID="chkbxCO... | stackexchange/codereview |
What is 'Extended Session Antipattern' ?
| stackexchange/codereview |
Situation
We're using PHPUnit in our project and are using a phpunit.xml to ensure things like backupGlobals is turned off.
To further ensure the include path is set and autoloading is active, we also cascade our test bootstraps. That is to say, every test and alltests-suite has a require_once(__DIR__ . '/../bootstrap.... | stackexchange/codereview |
I have a namespace of structs which represent various units of measure (Meters, Feet, Inches, etc.) ... anout 12 in total, generated courtesy of T4 templates :) .
Each struct carries implicit casting operators to support casting the value to any other measurement value-type, so the following sytax is legal:
var oneThou... | stackexchange/codereview |
I have an html5 application that listens to all window.applicationCache events. When it needs to download, I write a pretty dialog to the screen, and during the progress event I calculate the percentage of files done by doing the right math on the event.loaded and event.total properties, in order to update the percenta... | stackexchange/codereview |
How can I know, whether I should make a function call within GUI thread.
if (SwingUtilities.isEventDispatchThread()) {
// ...
} else {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
// ...
}
});
}
For example
// Should I call this within GUI ... | stackexchange/codereview |
The output I'm getting for my little example app is the following:
Welcome to the Calculator!
Please choose what you'd like to do:
0: Addition
1: Subtraction
2: Multiplication
3: Division
4: Quit Application
0
Enter your first number: 1
Enter your second number: 1
Your result is:
11
This is because the addition() meth... | stackexchange/codereview |
$(document).ready(function(){});
$(function(){});
jQuery(document).ready(function($){});
I'm not sure I completely understand what is happening in #2, and why it is equivalent to the standard way of doing it, #1.
| stackexchange/codereview |
I'm completely new to this code and begun to questions the design choices of the original developers.
I have a multi-threaded Java application that processes a number of tasks. My job is to fix the exception handling in the code so that when a RuntimeException occurs (iBatis and/or NullPointerException) the rest of the... | stackexchange/codereview |
Let assume we have these tables:
product
product_id
product_name
category
category_id
category_name
product_in_category
product_in_category_id
product_id
category_id
how would you get all products that are not in specific category in the product_in_category table (without duplicates).
In other words, all... | stackexchange/codereview |
Is it possible to add navigation items to the "top pager" in a jqGrid? And if so, what's the syntax for doing so?
I have an HTML snippet on my page that looks like this
<table id="mygrid">
</table>
<div id="mygrid_pager"></div>
And then an jqGrid initialization that looks something like this
$('#mygrid').jqGrid({
... | stackexchange/codereview |
Imagine you are on a page whose URL has a fragment (the part after the #), and click a link to go to another page. Most browsers will send the URL of the original page to the server in the Referer header. What I want to know is whether or not the URL fragment will be included in this or not.
I have seen various behavi... | stackexchange/codereview |
I have a very odd issue, where I've created a custom MSBuild task that would move all files I need for my MVC project to a specific location so that we can publish it. This works fine when I trigger the script localy on my machine but as soon as I check this changes in and Teamcity runs the script, it copies everything... | stackexchange/codereview |
Is there a way for me to get the absolute position of a DIV element within a HTML5 Canvas element? Any help is greatly appreciated.
| stackexchange/codereview |
I have the following code, but it doesn't display the jpg in the TImage:
sf := TfrmSplash.Create(nil);
ms := TMemoryStream.Create;
try
bf := TBlobField(dbfuncs.tblBlobs.FieldByName('BBlob'));
bf.SaveToStream(ms);
ms.Position := 0;
sf.imgDisplay.Picture.Graphic.LoadFromStream(ms);
sf.Show;
... | stackexchange/codereview |
I have to admit in advance that I'm quite new to MVC, I've been going through the resources at www.asp.net/mvc, but I was wondering if you guys could help me with something.
I have been asked to create a ASP.NET version of an existing PHP website, this website has a huge number of existing links to it in a particular f... | stackexchange/codereview |
hey guys i have a site entirely built on flash. its basically an e-magazine with lots of textual data. i need to implement a full text search where the user enters search terms in a text field and i need to highlight the occurrence of this search term within the textual contents inside this e-magazine
in a way its simi... | stackexchange/codereview |
I have to extract metadata from a lot (my small working sample has hundreds, the total will probably be thousands) of Microsoft Office files, mostly Word ones.
These files Word versions go from Word 2.0 to Word 2007.
I have to do it in .net 3.5 (using c#) and it's a local winforms application.
I can extract metadata fr... | stackexchange/codereview |
I have imported net_rim_api.jar into my project.
I also want to use non-j2me classes like StringTokenizer and PrintWriter from the standard rt.jar, but when I run the application it gives the error
"java/io/UTFDataFormatException"
Duplicate class definition error.
How can i solve this problem?
| stackexchange/codereview |
I have in my jsp with a table on each line a combo, the problem is that I can not get the value selected in my combo during a submit
I think the problem is the definition of property
JSP:
<logic:notEmpty name="gererUtilitaireForm" property="listUtilitaireBean">
<%int i=0; %>
<log... | stackexchange/codereview |
In my application I have written the code to delete the directory from drive but when I inspect the delete function of File it doesn't delete the file. I have written some thing like this
//Code to delete the directory if it exists
File directory = new File("c:\\Report\\");
if(directory.exists())
directory.delete()... | stackexchange/codereview |
I have a global size and height set
CKEDITOR.editorConfig = function( config )
{
config.height = '400px';
config.width = '600px';
...
And I would like to change this height and width for only one instance of the editor on a seperate page. Has anyone else accomplished this?
| stackexchange/codereview |
using the following code to prevent any version of IE prior to IE8 from loading a couple of scripts.
The problem is the script is still loaded in IE7, and the conditional tags (which are within the header of the document) are actually being rendered out and displayed on the page!!
<!--[if gte IE 8]-->
<script s... | stackexchange/codereview |
I have many folders in a directory that contain various files. Each filename begins with XXX_ where XXX could be the name of the folder the file is in. What I am needing to do is to go through all those folders and delete any file where XXX is the name of the folder that file is in.
| stackexchange/codereview |
I have a list containing six plots, made like this:
voi=c('inadist','smldist','lardist')
plist <- llply(voi,
function(v,df,s) {
list(
assign(
paste(v,'.violin'),
bwplot(groupname~df[,which(colnames(df)==v)]|fCycle*fPhase,
data=df,
... | stackexchange/codereview |
I loaded 4 radios buttons and when I run the program and click on them, if i click one, and click another the other ones goes away. What if I wanted to ahve two radio buttons but they did different things?
| stackexchange/codereview |
I have multiple tables that are all linked back to a central table with foreign keys. I want to be able to create a new record in table 2, but I'm having trouble because I don't know how to create a new instance of table 2's record while referencing the ID of the record it will be tied to.
EXAMPLE:
Database: Collectio... | stackexchange/codereview |
How can I delete a UITableView row on swipe? I know the question has been asked, but I get only errors. Here's the code:
-(void)tableView:(UITableView*)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath {
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editi... | stackexchange/codereview |
I need to call two functions sequentially (means one by one) in javascript on onclick event.
The requirement is to get the data from the backend and then make the cell highlight.
Below code snippet is used for this:
cell1.onclick=function() {
getData("FileName");
setTimeout("setHighlight('FileName')", 500);
};... | stackexchange/codereview |
Hi I have setup multiple application in Kohana v3, it works normally without enabling .htaccess (to remove index.php or admin.php)
my setup
+ system/
+ modules/
+ applications/
+ public/
+ bootstrap.php
+ ...
+ admin/
+ bootstrap.php
+ ...
+ index.php (for 'public' application)
+ admin.php (for 'ad... | stackexchange/codereview |
I downloaded and setup my Apache Tomcat 6 in our production server. I then started it to see if it's running, and found out that its okay.
It runs and then I place my project war file there. I am about to restart the tomcat service when I notice that that my web archive file was already unzipped and my project web fil... | stackexchange/codereview |
I wanted to do a simple GUI application in VC++ but can't find any good tutorial for same.
I till now just worked in C,linux so dont know how to actually do that. If anyone can point me to some simple "Hello world" GUI application, it will be of great help.
With this, I wanted to know is there any special things I need... | stackexchange/codereview |
I have a parent UIView with 2 subviews: a UIButton and a UIScrollView with a UITapGestureRecognizer implemented. The UITapGestureRecognizer is used to zoom in and out the scrollview and the button is used to show/hide some text.
My problem is that once I've used the UIButton, the UITapGestureRecognizer is no longer fun... | stackexchange/codereview |
Undefined property: stdClass::$tbl_row_id in /public_html/wp-content/plugins/pods/classes/PodAPI.php on line 1073
I keep getting this error after clicking to add a new record for a POD I created. Nothing makes sense. I deleted the whole database and tried again but keep getting the same error.
Any ideas on how to solv... | stackexchange/codereview |
The other day a user reported a bug to me about a toolbar item that was disabled when it should be been enabled. The validation code (simplified for your benefit) looked like:
- (BOOL) validateToolbarItem: (NSToolbarItem *) toolbarItem {
NSArray* someArray = /* arrray from somewhere*/
return [someArray count]... | stackexchange/codereview |
I would like to pass the item list for a drop-down list into a strongly-typed partial view. The parent view uses a ViewModel class that contains the properties both for the value I want to set and the list of options the associated drop-down list should contain.
My ViewModel looks like:
public class EntityFormViewModel... | stackexchange/codereview |
How to implement Invite Facebook friends functionality as in Gowalla?
'Invite your Facebook friends to join you"
Url: http://gowalla.com/friends/add/facebook
| stackexchange/codereview |
Has anyone used SQLite before with asp.net? Is there a SQLite Linq provider? Do you recommend something other than SQLite? Would like to hear your thoughts.
Will this work as the master database and then backup to a sql server 2005 db? Can you run a hybrid of the two?
| stackexchange/codereview |
I need to build an application that works with Java and Flex. I worked with both, but separately, never combined. Can somebody gives me some useful links that help me to get familiar with both?
Thank advance!
| stackexchange/codereview |
Is it possible to Remove an item from the ListView by not removing it's content[] ?
I tried changing the visibility of an item, but it does not give that removed effect it in. Instead it just gives you an empty space in between the data.
i.e.
var customNodes : Foo[] = [Foo{bar:"help"},
Foo{b... | stackexchange/codereview |
I am using Windows Authentication in asp.net every thing is ok in local but when deploying on different system of same domain then its working getting error in this line SearchResult userObject = adSearcher.FindOne();
Error
system.runtime.interopservice.comException
My code is
WindowsIdentity winId = id as WindowsI... | stackexchange/codereview |
I have one use-case where my multiple threads are writing data to same file channel (pooled), and each thread has offset in the file from where they can start writing till the length of the data to be written. So when I ask the file channel from pool it will open the channel in "rw" mode if it already not opened and wi... | stackexchange/codereview |
Just to give you an example:
I have a PHP script that manages users votes.
When a user votes, the script makes a query to check if someone has already voted for the same ID/product. If nobody has voted, then it makes another query and insert the ID into a general ID votes table and another one to insert the data into a... | stackexchange/codereview |
The basic rule that I have been going by is "if I alloc, I dealloc," but is this an overly simple view?
| stackexchange/codereview |
i'm trying to get some Elements from a gpx-file (is a xml file). This is not the standard gpx-scheme. There are some changes from geocaching.com which is a website for geocaching.
My sample XML-File lookslike this:
<?xml version="1.0" encoding="utf-8"?><gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmln... | stackexchange/codereview |
Suppose we have the following code:
class Test {
private Test() {
System.out.println("test");
}
}
public class One extends Test {
One() {
System.out.println("One");
}
public static void main(String args[]) {
new One();
}
}
When we create an object One, that was orig... | stackexchange/codereview |
Does anyone have experience / insight re: decoupling jquery / sizzle?
this is for general interest, but here's the scenario that triggered my question:
..i already have jquery in the project. wanted to try out http://ecsstender.org/, which requires the Sizzle selector engine.
I dont really want to include a 2nd copy... | stackexchange/codereview |
Is there a test suite out there that checks whether a Fortran compiler fully implements the Fortran 2003 standard?
| stackexchange/codereview |
I would like to know if it is possible to for some application other my own to change a preference value of my application. Also are the preferences been kept by android when the phone is turned off?
Is it safe to store some data(flags) on sharedpreferences in order to notify an activity for something?
When user clears... | stackexchange/codereview |
I have the following code inside a function that is reading in a file which is a map. I get an error that *numrows* is an illegal dimension. I think this is because lisp is processing these variables in parallel. How can I fix this?
(setq *numrows* (read map))
(setq *numcols* (read map))
(setq *map* (make-array '(*numr... | stackexchange/codereview |
Can someone tell me how I can create a Spinner control using Airplay SDK for Android?
| stackexchange/codereview |
Should I register ViewModels in Container and resolve from there?
Benefits:
I can perform some actions when view model is activated
Container will inject dependencies for me
???
Drawbacks:
ViewModel lifetime management can be tricky:
if I make ViewModel singleton then I can't instantiate several controls of the sam... | stackexchange/codereview |
There are many report generators for MySql and MS SQL Server. For example this one for MySql. We have a large web application based on NHibernate and I'm wondering if there is any report generator that works on our NHibernate mapped entities?
| stackexchange/codereview |
I'll use the generic blog example.
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
end
When querying Post, how do you access its associations (i.e. :comments)?
This should be the easiest thing in the world, but I haven't found any documentation on it. Even... | stackexchange/codereview |
I am developing an App Engine App that uses memcache. Since there is only a single memcache shared among all versions of your app I am potentially sending bad data from a new version to the production version memcache. To prevent this, I think I may append the app version to the memcache key string to allow various v... | stackexchange/codereview |
As subjects, what will happen to the backup file while there is still many active transaction in the database. Does it export realtime or just partially backups ?
thanks in advance.
| stackexchange/codereview |
Come oon!
I am almost looking a day at this!
I want to set my tint color of my UISegmentedControl but it doesnt react...
NSArray *segControlItems = [NSArray arrayWithObjects:
@"L",
@"H",
@"A",
nil];
UISegmentedControl *segControl = [[UISegmentedControl alloc] initWithItems:segControlIt... | stackexchange/codereview |
This is kind of crazy and I am not sure what's wrong. I want to make a DIV clickable to show/hide children divs. But once I do a hide of one children, I cannot unhide it.
Here's my entire code. Any help appreciated. IN example below, I cannot unhide inner1 when clicking Cancel button.
<script type="text/javascript" sr... | stackexchange/codereview |
I have a run.haml file where I run a test suit. Everything works just fine but I want to display the text "Starting test suite: #{params['run']}" immediately after user clicks the link that leads him to this haml.
the link clicked tells haml what suit needs to be executed
%a(href="run?run=#{file}")
Right now everythi... | stackexchange/codereview |
I am trying to create a system which allows local network users to collaborate content together.
Requirements: The user should be able to:
create content,
edit content (content created by anyone),
records should be kept on who edited what and when,
should easily be able to go back and forth between edits,
add comme... | stackexchange/codereview |
I feel like this is probably a pretty dumb question, but I am just completely lost. I have seen (and tried) about ten different ways to install EtherPad on my system, but absolutely nothing on how to actually incorporate it into my web page. One page seemed like it was telling me to open up "http://localhost:3306/" (or... | stackexchange/codereview |
I had code to send emails to user when register on our website I did the code but no message was sent and error appeared (failure sending email).
bool SendMail(string account, string password, string to, string subject, string message)
{
try
{
NetworkCredential loginInfo = new NetworkCredential(elarabyA... | stackexchange/codereview |
I'm in production mode with Passenger 2.2.5 and Apache and would like to get rid of the friendly error messages. Preferably I would just like to see a 404 if anything goes wrong.
I know Passenger 3.0 offers the PassengerFriendlyError off option, but afaik, 2.2.5 does not.
| stackexchange/codereview |
I am considering caching an entire web page locally on the iphone, i.e. I want to provide a url and have the device download all the assets automatically.
ASIHTTPRequest offers a cache, but as far as I understand it will only cache whatever url you feed it. I wonder if anyone has implemented a caching mechanism that wi... | stackexchange/codereview |
This was continuation to my previous question.
I dont want PARAMS CHANGE_LOG data in my XML file while saving the data in ClientDataSet using ClientDataSet1.SaveToFile() method.
My code looks like this:
ClientDataSet1.Insert;
ClientDataSet1.FieldByName('Name').AsString:= 'AAA';
ClientDataSet1.Append;
ClientDataSet1.Sa... | stackexchange/codereview |
i would like to show some (about 5 to 10) EMF (Enhanced Metafile) Files in the IE 8.
I use ASP to get all Files from a defined Folder and show them with the <img src=""> Tag.
Some of the IMages are really big, so tried to reduce the size by setting its height to 100.
Is this the correct way? The Images load very slow a... | stackexchange/codereview |
I have recently been updating a site so that it looks nearly as good in IE8 as it does in Chrome. I have managed to get the corners applied correctly, but if you take a look at http://clarkeyboy.zxq.net/test_longcatalogueitems.htm you will notice that the catalogue rows appear as expected in IE8 but not in Chrome. In C... | stackexchange/codereview |
I'm working on a page where I need a way for when the user mouses over an image, it grays out and a shows a gear icon over that image. If there's no way for the image to gray out, then is there a way just to overlay the gear icon on the top-right corner of the image?
| stackexchange/codereview |
I am new to java and to netbeans so my apologies if this is a simple question.
I made a 'Java Class Library' Project in Netbeans 6.9.1
I added a few classes to it and hit 'Build'. It builds with no errors. However the problem is I know there are errors.
It seems as though I can make up class names and hit build and it ... | stackexchange/codereview |
I have jQuery code in a JSP:
${'#userid').val('admin')
The app server is interpreting the jQuery code as JSP:
The function val must be used with a prefix when a default namespace is not specified
How do I "escape" the JavaScript?
| stackexchange/codereview |
I am trying to write something like
public class A implements B<T implements C> {}
and
public abstract class M<I extends P> extends R<I extends P> implements Q<I extends P> {}
but I am getting errors like Multiple markers and syntax error on token extends, expected. Please let me know what is the correct way of doing... | stackexchange/codereview |
I have a 3 tiered project.
1) Project.Data (EDMX file)
2) Project.Model (POCO's)
3) Project.Console (Console app)
I have added the connection string into the Project.Console.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="ProjectEntities" connectionString="metadata=r... | stackexchange/codereview |
here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-ap... | stackexchange/codereview |
How can you locate the first of the sprite images at the bottom of a div that changes height and width according text inside? Or is it not possible?
(I tried background-position: right 100% bottom 50%; but it did not work for dynamic div size.)
thanks
| stackexchange/codereview |
I am trying to perform a release using a multi-module maven project. My objective is to modify the version of all poms, and create a tag in the SCM, which is why I am using the maven release plugin.
This project has a hierarchy that I have simplified as:
example/
module1/
module2/
module-jni-linux/
... | stackexchange/codereview |
I'm trying to remove objects from a list when it finds that particular objects privacy
is private to the current user
books.eachWithIndex{ obj, i ->
if((obj.book.private).equals(true)){
def status = bookService.getBookStatus(obj.book)
if(!status){
books.remove(i)
... | stackexchange/codereview |
Perl newbie here...looking for help to reformat a datafile.
Data looks like this:
num:3460381591
num:1038198413
num:3380733973
I would like to make it one string and then append each start of the rec with ^a and ^b after the colon like this:
^anum:^b3460381591^anum:^b1038198413^anum:^b3380733973
Can someone show m... | stackexchange/codereview |
I have checked this thread.
Disable browser cache for entire ASP.NET website
And wondering if I can put the answer inside page_load ?
If not how do I disable the cache on for a single page?
Thanks!
| stackexchange/codereview |
Development Tool : Sun Studio 11
Flags : CXXFLAGS=-O2 -g
I have two shared libraries, libA.so libB.so :
/A/root.cpp /A/a.cpp are used to generate libA.so
/B/root.cpp /B/b.cpp are used to generate libB.so
/A/root.cpp and /B/root.cpp is identifical
libA.so and libB.so will be dynamically loaded during main program ru... | stackexchange/codereview |
For every application_start, I call ActiveRecordStarter.Initialize (actually it's part of the ActiveRecordIntegration facitliy). This seems to be very heavy, takeing around 3.5 seconds to initialize my 16 objects.
some background:
1. got 16 AR objects for now, almost never changed (maybe once a week).
2. most of the ch... | stackexchange/codereview |
Im trying to highlight the first row in my table upon first loading the data and just cannot get it to work!
I have tried lots of ways with no joy, the latest attempt being this:
NSUInteger indexArr[] = {0,1};
NSIndexPath *n = [NSIndexPath indexPathWithIndexes:indexArr length:2];
[self.tableView scrollToRowAtIndexPat... | stackexchange/codereview |
I'm having some issues mapping a complex many to many relationship in fluentnhibernate. I have a legacy db which looks something like this:
Foos: | Id | Foo |
FooBars: | FooId | BarId |
Bars: | Id | Bar | CultureId |
which I am trying to map to the following object model:
class Foo
{
property virtual int Id { get; ... | stackexchange/codereview |
I have the task of migrating my team & source from git to Perforce, and I'm looking for ideas on how to move the git history into p4.
I would be happy moving master branch only. However, even that is proving problematic.
I'm using the wonderful git-p4 tool. I create an destination area in my p4 workspace, and use git p... | stackexchange/codereview |
How to write an extension method that should check value of the object,if object is null then
it should return null otherwise value{without doing casting at receiving end}.
something like...
public static object GetDefault(this object obj)
{
if (obj == null) return null;
else return obj;
}
I mean ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.