instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Are there any good articles or blog posts that explore the tradeoffs of different website caching architectures?
For example, what are the pros/cons of having a separate cache for each website host vs using consistent hashing to share the caches between each of the website hosts vs using a dedicated caching host? What ... | stackexchange/codereview |
I'm making an installer with WIX 3.5 for my screensaver. Im using the XNA installer template available here
Everything works, except when I uninstall the program, the .SCR file placed in WINDOWS/System32 is not deleted.
Ive tried using the element to delete it, and I've set Permanent="no" on the component, but that do... | stackexchange/codereview |
So what I want to do:
I have a table that has some prices of some items of a store, what I want to do is to find the average price of all the items sold from that store, AND the sum of all similar items sold in store.
My columns are:
item_no
branch
totalamount
What is really important is that I have to avoid sub-q... | stackexchange/codereview |
I'm trying to store a document in SQL Server 2008 using the Entity Framework.
I believe I have the code for doing this completed. The problem I'm now facing is which Data Type to use in SQL Server and in my entity model.
'Image' was my first choice, but this causes an "Invalid mapping" error when I update the model. I ... | stackexchange/codereview |
I always use an int column that is set as identity field as a primary key in a table in MS SQL. What is the best way to do this on MongoDB? I know that I can use the oid, but I want to use a number that can easily be read and remembered.
Thank you.
| stackexchange/codereview |
Possible Duplicate:
Secure algorithm for creating license keys?
Im looking for a way to create 25 character keys based on a specific pattern, so that i can check if it is valid without any sort of internet connection, etc.
Ive been trying several possible ways to do this, but with no success.
| stackexchange/codereview |
I've got a monumentally tedious task that is to find several tables from a huge schema, and generate the DDL for these tables.
Say, I've got a schemaA has 1000 tables, I need to find if a tableA existed in this schemaA, if it does, generate the DDL and save it to filesystem, if don't, print it's name out or write it to... | stackexchange/codereview |
I am trying to write a select where part of my criteria is comparing two DATETIME fields (from two different tables). One is Year to Fraction, where the other is Year to Day. Is there a way to write the expression so that the year to fraction value gets shortened to year to day? I'm not looking to shorten the field for... | stackexchange/codereview |
I have an Enterprise Library configuration XML serialised and loaded into a String object.
Is there any way to initialise an Enterprise Library logging component with that string?
I am looking for something like this:
IConfigurationSource configSource = new SomethingConfigurationSource(stringWhichHasConfig);
LogWriterF... | stackexchange/codereview |
I'm working on creating a reusable and extensible web application in SharePoint 2010. I've created a master page to apply across all pages in the site. However, whenever I create a web part page and navigate to it, the site icon does not display. Instead of my custom site icon being displayed it shows the default Share... | stackexchange/codereview |
I am looking for a command(s) that could cause my Linux computer to use lot of RAM ?
Any pointers?
I want to run that in the back ground and do some other task that needs already high RAM usage.
Thanks!
| stackexchange/codereview |
I'm using a dsPic33F (16 bit microcontroller);
How to convert char[] to int[] such that every two chars becomes an int using C++?
and the inverse operation?
| stackexchange/codereview |
I have just compiled this code:
http://www.win32developer.com/tutorial/winsock/winsock_tutorial_2.shtm
I have added some codes so it does recv(), in an infinite loop. My problem, if there is no data to read, it still does not block.
Am I totally mistaken if I think recv should block in my case?
The code I have added is... | stackexchange/codereview |
I need to be able to render some views as PDFs from a Rails 3 project. I've never before used PDF generation techniques with ruby/rails, so I researched a few popular approaches such as Prawn and PDF::Writer, but all the examples and articles I found so far seem outdated and only applicable for rails 2.x. I haven't yet... | stackexchange/codereview |
I am curious how does log4NET can use %L to get the # of line where a log event is fired. Could you give me some elaboration?
Thanks.
| stackexchange/codereview |
I understood that the HKEY_CURRENT_USER is actually a pointer to the specific SID of the loged-in user at the HKEY_USERS. The HKEY_USER is holding only the users that loged-in at list once. do you know where can find the unloged-on users registry data?
| stackexchange/codereview |
I have a monitoring system and I want to save a snapshot from a camera when alarm trigger. I have tried many methods to do that…and it’s all working fine.
string ImageName = @"E:\snapshot\pic" + imageid + ".jpg";
WebClient webclient = new WebClient();
webclient.Credentials = new NetworkCredential("admin", "pass");
Uri ... | stackexchange/codereview |
Running Fitnesse in Linux using a command line such as:
java -jar fitnesse.jar -c "TestName?test&format=text"
However, the system.out, which shows up in ErrorLogs in a PC environment does not get created.
Is there a switch to turn this on?
Thanks,
John
| stackexchange/codereview |
I have a CRM application (GoldMine) that acts as a DDE Server and allows for pulling merge fields into Word documents using DDE like so:
{ DDE GOLDMINE DATA CONTACT2->UPREAWDAMT \* CHARFORMAT }
As you know, DDE does not pass along any formatting - and I'd like to use VBA to do some string manipulation on these fields,... | stackexchange/codereview |
If I try to download an app that is lets say 100 MB it will not allow me to do it on my phone. Or if I am not connected to a WiFi. Does anyone know where they cut that off? Like at 30 MB or something you have to be connect to WiFi?
Thanks
| stackexchange/codereview |
I'm trying to perform a simple replace(); method in JavaScript where I'd like to remove every class from an HTML element except a specific one, how can I do it?
I tried this without success:
<div id="my_div" class="hello letsgo baby is_checked cool">Gordon Freeman</div>
<script>
$(document).ready(function () {
ale... | stackexchange/codereview |
I'm looking to debug a delayed jobs class. First off I added the config/initializers/delayed_job_config to move my logging to my log/production.rb file.
Delayed::Job.destroy_failed_jobs = false
Delayed::Worker.logger = Rails.logger
Then in the actual file I'm doing in the actual file
class TestJob < Struct.new()
log... | stackexchange/codereview |
I've got a SimpleXMLElement for which I read in a XML file using curl.
Trying to get the values out of it I seem to need to use a nested foreach, but in a similar situation I was able to do this in one go. Now I'm really curious why this isn't working:
Its the delicious RSS feed;
SimpleXMLElement Object
(
[title]... | stackexchange/codereview |
I am in the process of designing a web interface that would support 2 or more versions of a data schema. Data schema represented in JAVA could look like
PersonV1 {
String fname
}
PersonV2 {
String fname
String lname
String email
}
In the future I am anticipating new versions being added. Is there any best p... | stackexchange/codereview |
I have a working program to read data coming from the terminal. The problem is that when, for example, a data come and stop, my program keep reading from the buffer. How can I stop it from reading things that already came through the port?
Here is my code, which can also be found at pastebin
#include <ncurses.h>
#incl... | stackexchange/codereview |
Possible Duplicate:
iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!
There is a Folder Reference that contains my images in Xcode. I want to load an image from that image into an UIImageView inside of Xcode rather than programmatically, so I can visually design the interface.
Not ... | stackexchange/codereview |
There is a trigger on a table for updates, inserts, and deletes, but the T-SQL create-script for the trigger contains only the following statement:
SET NOCOUNT ON
Is there a (significant) performance penalty for this trigger compared to no trigger? Would there be any (significant) performance penalty for a trigger wit... | stackexchange/codereview |
I have created a document store class using Java which is internally backed by a hashmap .. To intialise this document store I load a set of keys from config file ..
what would be the best way to assign an initial value ? right now I am using a BLANK .. does this make sense ? any better suggestions ??
private... | stackexchange/codereview |
I want to read structures from binary.
In C++ I would do it like this:
stream.read((char*)&someStruct, sizeof(someStruct));
Is there a similar way in C#? The BinaryReader only works for built-in types. In .NET 4 there is a MemoryMappedViewAccessor. It provides methods like Read<T> which seems to be what I want, except... | stackexchange/codereview |
Does someone know how I can fix the following:
1) When my mac mini starts, open Firefox in fullscreen mode (I'm using R-kiosk now) and give focus to this new instance of Firefox. The problem I have now, is that Firefox is started in fullscreen mode, but another app (see 2) is put on top of this window.
2) And.. how can... | stackexchange/codereview |
I am completely new to the Eclipse world and I haven't found very many usefull resources on calling a web service written in .NET.
I'm trying to port an app over I wrote for the new Windows 7 Phone to the Android OS. I have Eclipse and the Android SDK. Can anyone point me in the right direction as to how I might call ... | stackexchange/codereview |
I just starting working with Visual Studio and I find that debugging web apps is rather annoying. After making a change and clicking f5 it sends you to localhost:port/ however many times you are not editing localhost:port/ but you are editing localhost:port/someOtherFile, so you can see how this can be pretty annoying.... | stackexchange/codereview |
Upgraded to rails 3, and using Bundler for gems, in a mixed platform development group. I am on Windows. When I run Bundle Install it completes succesfully but will not install hpricot. The hpricot line is:
gem "hpricot", "0.8.3", :platform => :mswin
also tried
gem "hpricot", :platform => :mswin
Both complete fine... | stackexchange/codereview |
i have just gone through making some basic apps on android and was wondering
how to get graphics on the screen....and how to go about
developing something like the tom cat application first and then go onto games...
could you'll plz point me in the right direction as to how to approach this...
and wat all it requires?... | stackexchange/codereview |
Hi again earlier i asked about adding images and text and i was told to put it in to a xml. Now my text goes farther than the xml is there a way i can add a scroll to it or will i have to go about another route to get the effects i need. thanks again.
| stackexchange/codereview |
I know that for 1-dimensional arrays, I can do...
void g(int x[]) {}
void f(int a, int b)
{
int x[a];
g(x);
}
But with code such as...
void f(int a, int b)
{
int x[a][b][4];
g(x);
}
What would the type signature of g(x) look like?
| stackexchange/codereview |
I'm having a problem using Git. Bear in mind I'm very new to Git.
The problem: I need to sync my work to my home/mobile. My workplace uses SVN and it cannot be accessed from outside (I can't change this). I'm also blocked from sshing to outside (I can't change this too). Back at my house, I need to commit my changes.
... | stackexchange/codereview |
I am developing a tableview application with a two-component tab bar. Although it seems unusual for this sort of application, I also have a toolbar over the tab bar, which is a useful setup for the program's functionality. I am having a problem with hiding the tableview's toolbar with displaying a detail view.
When the... | stackexchange/codereview |
i have a question, i have windows service which is deployed to the server whih work as adata base layer to upload data to main data base server.
Then i have windows application which is deployed to multiple machine and these all machines uploads data to using that web service to the main server.
i want to know which i ... | stackexchange/codereview |
Hey guys, Im trying to get the maximum number of days in a database of days. For instance, a database of (Sat, Mon, Tue, Mon, Tue, Fri, Thu, Sun, Mon) Should print "Mon" as the result (Being the maximum number of occurance). But im stuck!! The database is weird. Have a look.
time_id time_duration
1 ... | stackexchange/codereview |
I'm trying to use the EasyDialogs python module to produce some simple dialog boxes for my python script on OSX. Whenever I try and import the EasyDialogs module I get the following error:
>>> import EasyDialogs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/EPD64.f... | stackexchange/codereview |
I'm actually learning Symfony and I don't understand the fact of including classes. Can I include a standalone class - this means, not designed for a framework - and then use it - let's say, Amazon S3 class -?
| stackexchange/codereview |
I have what I thought was a simple(ish) problem. I'm writing a SCORM package for an external learning resource. It's basically an iframe in a HTML page that the clients install in their LMS (Learning Management System).
The external resource needs to be able to tell the LMS that the user has completed the content. Beca... | stackexchange/codereview |
I've just been made into checking all my output files with gawk which I avoid as much as I can.
How does
gawk 'NF \!= 6' file
differ from
gawk 'NF != 6' file
that is, how does the backslash change the meaning of this expression?
Should it output lines with number of fields different than 6 and ending with backsla... | stackexchange/codereview |
Is there any way of adding images to the body of the mail (i.e Compose). I have some text with images that I want to dump into the compose of the mail. I don't need to add image has an attachment. I guess the Compose is an EditText. I wonder is it possible to add images to it??
Cheers,
Vinayak
| stackexchange/codereview |
Would this static class method be called only once when IIS application starts when used in the context of an ASP.NET web app?
public static class Licensing
{
public static bool IsThisLicensed(ThisFeature)
{
return Licenser.FeatureEnabled(ThisFeature);
}
}
We have a case wherein a call similar to th... | stackexchange/codereview |
When an iPad is connected to another Mac (through USB/Wifi), iTune application comes in picture and lists all the file sharing app.
I am trying to create file sharing application for iOS.
I am unable to figure out how we can simulate this USB/Wifi connection on iPhone simulator to test my app being shown as file shari... | stackexchange/codereview |
I am using the latest version of webdriver. While I can select the right links it seems as the wrong links are actually clicked.
Here is some code to use for Google. What it does is simply clicking a result of a Google Search.
@FindBy (id ="ires")
private WebElement searchResults;
public void clickResult(int i)... | stackexchange/codereview |
Possible Duplicate:
python: class override “is” behavior
I am trying to override the is operator, so that I could do something like
if tom is writer:
print 'tom is writing'
elif tom is programmer:
print 'tom is programming'
Is this possible in python?
| stackexchange/codereview |
I mean this:
bool passed = true;
for(int i = 0; i < collection.Length; i++)
{
if(!PassesTest(collection[i]))
{
passed = false;
break;
}
}
if(passed){/*passed code*/}
requires extra variable, extra test
for(int i = 0; i < collection.Length; i++)
{
if(!PassesTest(collection[i]))
{
... | stackexchange/codereview |
First of all: it's not the same as similiar, but without www prefix problem.
I have a website example.com (once again, no "www." prefix). I'd like to serve static content from subdomain static.example.com but Google Analytics keeps to send cookies from static subdomain.
I used a simple CNAME to make subdomain, and her... | stackexchange/codereview |
I'm trying to set up a simple, one-page "buy now" form with multiple product listings and a text input box allowing users to specify how much they would like of each product OR specifying '0' to not add the product to the cart. Of course, if someone just has 0 for a quantity, PayPal returns "You have entered an invalid... | stackexchange/codereview |
I have a .htc file whose behaviour is attached to a div in my page (div#test). Within the file, there is a tag at the top, setting up the behaviour:
<PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="function1()" />
And throughout the file, there are calls to 'element', & this.element - which I presume are ... | stackexchange/codereview |
I want to do a somewhat complex query in doctrine, namely an inner join with a subquery with a group_concat.
See the query in plain SQL:
SELECT *
FROM kinderen k
INNER JOIN
(
SELECT i.kindid, GROUP_CONCAT(DISTINCT a.periode) as periodes
FROM inschrijvingen i
INNER JOIN activiteiten a ON i.activiteitid=a.id
GROU... | stackexchange/codereview |
I know this question has been asked several times on SO, but none of those answers have worked in my situation. I have an ASP.NET MVC2 app that uses Forms authentication on my local IIS 7.5(7600.16385) on an AppPool running in integrated mode. Interestingly, this does not happen when using the development web server th... | stackexchange/codereview |
My question is almost exactly this question:
Clone textview to append it to a ViewGroup
However, I was inflating a view, and then attempting to clone it at the object level for performance reasons (I don't want to parse XML every single time), so that answer doesn't help me. View.clone() is protected and it apparently ... | stackexchange/codereview |
I have a WPF application with various controls in it. When I move between controls using TAB, I can see the focus frame box:
Is there any way to hide this frame, so it won't be seen? A WPF solution is preferable but a WIN32 method would be acceptable as well.
| stackexchange/codereview |
I'm new to F# and functional and am working on some HTML parsing code. I want to remove from a HTML document elements that match some criteria. Here I have a sequence of objects (HtmlNodes) and want to remove them from the document.
Is this idiomatic way of using pattern matching? Also as HtmlNode.Remove() has a side-e... | stackexchange/codereview |
So basically, I have an abstract class which has a unique, incremental ID - Primitive. When a Primitive (or more precisely, an inheritor of Primitive) is instantiated, the ID is incremented - up to the point where the ID overflows - at which point, I add a message to the exception and rethrow.
OK, that all works fine..... | stackexchange/codereview |
Is there any tool for testing pixel and vertex shaders?
| stackexchange/codereview |
Using PHP, I'm exporting results of a query to CSV. My problem comes when the data contains accent; they are not exported correctly and I lose them all in the generated file.
I used the utf8_decode() function to manually convert the headers and it worked perfectly, but I don't know how to use it for the results array.
... | stackexchange/codereview |
When I am running my application, I am getting this erro like this:
The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.S... | stackexchange/codereview |
For example if you create your own activity called Run10Times which runs its child activity 10 times, can you have a designer which contains a canvas to which the user can put the child activity?
I know how to create a standard activity designer, and add a expressiontextbox, but not sure how to add a canvas to which th... | stackexchange/codereview |
In .Net 4 there is improved Garbage Collection which is important for our systems.
If I have a .Net 4 Winforms project that references .Net 2/.Net3.5 class libraries what version of .Net is used for Garbage Collection?
I am keen to get the .Net 4 GC working and so if the project files (*.csproj) files have to be change... | stackexchange/codereview |
chain.doFilter(req,res);
We used this in a servlet program. I want to know what is the use of the method doFilter() in a servlet?
Also what is the use of filter and chain concept in Java servlets?
| stackexchange/codereview |
I am building an GPS tracker application in Python. How can I use Google Maps in my application?
| stackexchange/codereview |
I want to build a adobe Air application that sends an image to a mobile phone via bluetooth.
Do you know of a framework or library to do that directly or indirectly? I mean using only flex or do I have to use another language also, such as java?
any hints are welcome
thanks in advance
thodoris
| stackexchange/codereview |
How can I create a filemaker form where the user enters some personal details and has to choose multiple files to upload?
I want it to be an equivalent to <input type="file"> in a html form.
Is it possible using filemaker pro 6?
| stackexchange/codereview |
I want to add some buttons on top of the soft keyboard (Enter and Cancel). Is there a nice way to do this or do I have to detect the keyboard being shown and add the buttons into my view?
| stackexchange/codereview |
I have a CharField that is normally empty. I want to send out an e-mail notification to all managers (using mail_managers) when the field is set to a non-empty value. Changes to this field should only happen via the admin site.
I assumed this might be something I could do via signals but I do not see an appropriate sig... | stackexchange/codereview |
Iam connection to services trougth my app, I woul like to check if the connections gets broken, alert a message than.
Or is this taken carre of in android?
If not, How should I take care of it? is there a timer?
| stackexchange/codereview |
Greetings,
Currently developing small web service application where response from web service (using CXF + Spring) processed and saved to database. To work with database I am using Hibernate(3.5). Browsing some Hibernate + Spring example on web, I often can see the usage of HibernateTemplate so I am a bit confused abou... | stackexchange/codereview |
I want to store a double (64-bit floating point) into the Window registry. What's the best way to go about it?
Possible options: both a long and a double in a 64-bit compiler are 64-bit values so one option is to convert the double to it's 64-bit representation and store it as a registry "qword". Another option is to... | stackexchange/codereview |
I have a canvas which contains several userControls, which in it's turn contains other objects.
I want to serialise the canvas and preserve all databindings and whole visual tree (not all objects can be described in xaml).
I thought creating a custom control which extends canvas and adds ability to serialise will solv... | stackexchange/codereview |
I have multiple instances of data displayed in tables that need to be sorted - much of this data is calculated from the table and isn't just a raw value in the table.
A simple example: Column A = User.visits / User.membership_term
I'm using sortable table columns: http://railscasts.com/episodes/228-sortable-table-colum... | stackexchange/codereview |
I have tried to use a temporary table as an intermediate result holder for a SELECT statement. The problem is though that I can't access the temp table multiple times in other queries statement which I hoped would be possible i.e. makes the temp table useless.
Is there an alternative to temporary tables in MySql that a... | stackexchange/codereview |
First of all, I want to say sorry for this very big question, but all these questions were disturbing my little brain (or no brain!) for the past couple of days as I was not getting any suitable answer. I will request to first read this slowly, and whoever knows any part of it, please try to answer it for that part onl... | stackexchange/codereview |
I am developing one application which need scanning component, I have application ready but when I build it in 2g phone with os version 3.1.3, application gives me error.
I have weak linked those framework which are not in 2g.
ERROR: Not Enough Frames In Stack
Do advice thanks in advance.
| stackexchange/codereview |
I am trying to find the correct syntax to create a simple update trigger.
I consistently get the error message
The multi-part identifier "AD.AgencyId" could not be bound.
Here is the trigger, The [FullName] column of AgencyDivision should contain it's parent's (Agency) Name as well [Agency].Name.
CREATE TRIGGER [dbo].... | stackexchange/codereview |
We're having a compatibility problem between Mercurial and another synchronization product (MS Office Groove, now Sharepoint Workspace 2010). Basically, the ".hg" folder and ".hgignore" files are being blocked (I've summarized the issue with the other software).
We've been told that the only work-around is to change th... | stackexchange/codereview |
I have a BulletedList in ASP.NET
<asp:BulletedList ID="lstItems" OnClick="Item_OnClick" DisplayMode="LinkButton" runat="server" />
On the server I handle the list item's link button click event.
When this occurs I want to apply a CSS class to the selected item on the client-side to show that it is the selected item. ... | stackexchange/codereview |
I am trying to submit a non-ssl wrapped page to an ssl wrapped page, but I get this error.
CSRF verification failed. Request aborted.
Reason given for failure:
Referer checking failed - http://<domain>/ does not match https://<domain>/.
That is, I am trying to submit a username/password page to the login method.... | stackexchange/codereview |
I want to compare two images.
On both images you can see a digit. For example: (img1: "5" img2: "5") img1 is a pure black digit. But img2 could be in various colors. The background is white. It doesn't matter what color is on img2, if there is a "5", it has to be matched.
How do I compare these images? It has to be a f... | stackexchange/codereview |
here is the situation: i have one machine which lives at my house (lets call it house_machine) and i have another machine at my office (call this one office_machine). im using ssh with dsa key authentication and without password authentication to access home_machine from office_machine. i have set up an ssh server on h... | stackexchange/codereview |
I have this problem that is really causing me headeches whenever i'm designing my apps in php: I don't know if i should create separete files for each function(e.g.: functions for validating specific forms).
OK, one would possibily argue that this makes no sense because I would have to include each file separetly and ... | stackexchange/codereview |
I have a thread which extends Thread. The code looks a little like this;
class MyThread(Thread):
def run(self):
# Do stuff
my_threads = []
while has_jobs() and len(my_threads) < 5:
new_thread = MyThread(next_job_details())
new_thread.run()
my_threads.append(new_thread)
for my_thread in my_thre... | stackexchange/codereview |
How to create a Combobox having Multiselect Capability using Jquery?
Does JQuery Combobox has this functionality or Property?
| stackexchange/codereview |
I am playing with this example http://scala.sygneca.com/code/remoteactors to learn how remote actors work in Scala (2.8.0). In particular I slightly modified how the messages send by the actors are defined as it follows:
sealed trait Event extends Serializable
case object Ping extends Event
case object Pong extends Eve... | stackexchange/codereview |
i want to display an animated GIF i've made inside iphone main bundle in UIWebview i've tried
NSString *ImageFromApp = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"image.gif"];
// NSString *html = [NSString stringWithFormat:@"<html><body \"style=\"background:url(%@) no-repeat;\">gege</body></... | stackexchange/codereview |
Here's the problem in short. I have a desktop application that connects to a SQL Server database. I have an audit table that tracks any changes to the database at the db level. One of the requirements is to track the User Id based on windows login. Is there a way to do this via triggers on the database?
I tried to use... | stackexchange/codereview |
I have tried to put de authentication with Ldap-Active Directory and Spring Security 2.0.6. But I don't know why the authentication don't pass...
Here you can see the console:
> INFO [Server] JBoss (MX MicroKernel)
> [4.2.3.GA (build:
> SVNTag=JBoss_4_2_3_GA
> date=200807181439)] Started in
> 30s:118ms
>
> INFO [STD... | stackexchange/codereview |
I have a string in the format:
PROVIDER=Sybase.ASEOLEDBProvider.2;User ID=sa;Server Name=UKServer;Server Port Address=5001;Initial Catalog=master
Using a regular expression in C# now can I get the value of Server Name?
Please note that Server Name could be in any location in the string and there may or may not be a sp... | stackexchange/codereview |
This week I've been trying to learn Spring, JBoss, Maven, JPA and Hibernate and I've had a lot of fun with it. I am somewhat confused over the many different ways to inject resources in a class though. Until this week I was not even aware that you could inject resources in any other way than using the <property> tag in... | stackexchange/codereview |
In my asp.net page I have a listview that has a datapager defined in the LayoutTemplate.
The listview is databound to a list of records. I know the total number of records ... but I don't load them from the db. I want to tell the pager at first request the total number of records and let it generate the pages and navig... | stackexchange/codereview |
I am using Google Maps API 3 to show a google map of Canada and a bunch of markers, but in IE7/8, it doesn't show up at all and just gives me a grey rectangle. It loads fine in Firefox/Chrome/Opera/IE9.
Here is the code:
$(document).ready(function() {
var browserSupportFlag = new Boolean();
var map;
geocode... | stackexchange/codereview |
What proxy class is best?
NHibernate.ByteCode.LinFu.ProxyFactoryFactory
NHibernate.ByteCode.Castle.ProxyFactoryFactory
NHibernate.ByteCode.Spring.ProxyFactoryFactory
| stackexchange/codereview |
So I'm learning some php and found my html skills more then a little rusty. I'm trying to get my textarea to span two table columns. W3schools says I can do a colspan for a <th> tag but didn't see if it was supported for <td>. I thought about splitting it between two tables same form. Seems like there would be an easie... | stackexchange/codereview |
I have 3 tables in my application
Employee
EmployeeID
EmployeeName
DOB
Skills
SkillID
Description
EmployeeSkills
EmployeeID
SkillID
YearsExperience
What's the best way to write a linq query to allow a user to simultaneously search on information in the Employee table and limit the results to those who match all skills ... | stackexchange/codereview |
Is it possible to save the files retrieved by WGET to the "client side" using PHP system() function?
Test based on djechelon answer:
$targetfile = "C:\Work\test.css";
$url = "http://www.domain.com/temp/style.css";
$foo = system('wget $url > $targetfile');
| stackexchange/codereview |
Is there a way to get the visible part of text in word wrapped UILabel? I mean exactly the last visible character?
I'd like to make two labels rounding the image and would like to continue the text which was out of rect for first label on the second one.
I know [NSString sizeWithFont...] but are there something reversi... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.