instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is it possible to test if a WebBrowser.Document has been disposed so that I don't keep getting ObjectDisposedException's?
I know the following code will do the job, but I'd prefer to test for the Document being disposed rather than having to catch it. Any thoughts?
private Size GetContentSize()
{
try
... | stackexchange/codereview |
I am using meta_search plugin with my rails3 app for search functionality. When I want to try the search method of meta_search plugin on my model in console, it gives me this error. I am not able to figure the error from the plugin source code.
Listing.search(:address1_starts_with => ["lucky"])
ArgumentError: wrong num... | stackexchange/codereview |
I have a lot of tables and because of some reasons I need to adjust auto increment value for this tables on application startup.
I try to do this:
mysql> select max(id) from item;
+----------+
| max(id) |
+----------+
| 97972232 |
+----------+
1 row in set (0.05 sec)
mysql> alter table item auto_increment=109797223... | stackexchange/codereview |
I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator:
'XXXXXXX (dot) DDDDD'
The problem with CultureInfo.InvariantCulture is that is places ',' to separate thousands.
UPDATE
This should work for decimal and double types.
My previous question: Need to convert double or decimal... | stackexchange/codereview |
I've run into an issue with parsing XML in .Net where I need to be able to detect which form of empty element I have but can't seem to get this to work correctly. Essentially in the XML format I'm parsing the following two fragments should parse differently:
<sometag />
and
<sometag></sometag>
My problem is that .Ne... | stackexchange/codereview |
I'm working with a multitier SOA based enterprise application with every complex business logics. Many business validations require large amount of support data from database, which slow down the performance. The number of concurrent users are about 1000.
The client is multitier with WinForms on top.
We are considerin... | stackexchange/codereview |
I have written a windows service, which monitors a database table for pending jobs and spawns threads to run those jobs and each of these threads in turn launches a process to do the actual work (the process is a Microsoft utility, not a custom one). This works fine, but if one of the jobs is taking longer than usual, ... | stackexchange/codereview |
I have an enum
public enum Positions : byte
{
Manager = 0,
CEO = 1,
Lawyer =2,
Intern =3,
Janitor = 4,
}
Is it possible to get a subset of these emums to bind with a ComboBox in WPF? Say only those enum values <=2 and >= 0? I was trying:
var subset = from p in Positions where p <= 2 && p >= 0 select p;
my... | stackexchange/codereview |
I am parsing some xml
<item>
<title>New Story Test</title>
<description>Story 1</description>
<link>http://www.dirtybirddesignlab.com/tour</link>
<pubDate>Tue, 9 Nov 2010 09:32:16 GMT</pubDate>
</item>
and need the output to be as such
<link><title></link> | <description>
but no luck with the followi... | stackexchange/codereview |
I have a function in my main program that attempts to retrieve information from an imported module, which is a different script I wrote. This module spits out a variable which I access from the main program by making it a global.
However, since I'm threading the function that requests the information, the global variab... | stackexchange/codereview |
I am attempting to write a stored procedure that can take in k words and return back the answers with the k words in them.
word table
word
wordId
description word inverted index
descriptionID
wordID
count
So - given k words, how would I efficiently get all the descriptionIDs that contain the ALL the k words?
| stackexchange/codereview |
const QPointF points[] =
{
QPointF(r.left() - i, r.top() - i),
QPointF(r.right() + i, r.top() - i),
QPointF(r.right() + i, r.bottom() + i),
QPointF(r.left() - i, r.bottom() + i),
points[0] // is this line valid (according to the C++ standard)?
};
While this compiles with the MS Visual Studio Compil... | stackexchange/codereview |
Which would clear up memory quicker:
Given we have a linked list, in this case ArrayList, but feel free to explain this for other lists:
ArrayList<String> list = ...10000 elements
Either A)
list.clear();
System.gc();
Or B)
list = null;
System.gc();
| stackexchange/codereview |
I need to have an android device act as a wifi server/hub that will accept raw data from custom built devices So first off, I need the android device to act as a wifi hub that can accept raw data from my devices. How do I do set that up? I overviewed the code to the tether application, but I don't think that will work.... | stackexchange/codereview |
I wonder is there any way to send query to initiated session OpenSSL. Something like?
openssl s_client -connect some.secure-server.com:443 < data.txt
Unfortunately, the following code doesn't work. Any ideas how to modify it to make it work?
Thanks,
Jonas
| stackexchange/codereview |
So I have been working on a rich-text editor that is really just a glorified contenteditable div. I was using .innerHTML to rip all the formatting for when I saved it, but now I have ran into the problem that I want to be able to have a fallback textbox for when contenteditable is not supported. (iOS) The output of inn... | stackexchange/codereview |
UPDATE - Reworded question
I am going to use JQuery Mobile for the mobile side of a new MVC applciation that I am building. Since JQuery Mobile will manage the different devices on the client side I need only one mobile view for each page that I create. This will simplify the number of views required and basically boil... | stackexchange/codereview |
I've a problem with my android application.
I'm using a background service (with notification on the status bar) which performs an audio sample every hour. To perform this sample I generate a broadcast event every hour and when I capture the event the audio recording starts. During the day, when I'm using the phone, I'... | stackexchange/codereview |
I'm working on implementing communication between an Adobe AIR app and a browser Flash object, and the LocalConnection documentation mentions an asyncError as a potential event:
asyncError: Dispatched when an exception is thrown asynchronously — that is, from native asynchronous code.
However, that's the only documen... | stackexchange/codereview |
We have a massive, ancient codebase that needs a lot of cleanup. We have always had coding standards and everyone has always tried to follow them, but they were not enforced so over time a lot of violations have creeped in. Many of them are just whitespace issues, like using tabs instead of spaces, or spaces where ther... | stackexchange/codereview |
I'm having trouble working out what the relationships should be with this:
class Airport(models.Model):
airlines = models.ManyToManyField(Airline)
class Airline(models.Model):
terminal = models.CharField(max_length=200)
The problem is that each Airline is associated with a different terminal depending on whic... | stackexchange/codereview |
I am trying to play a youtube video in a UIWebView instead of leaving my application.
Google thinks is easy peasy- http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
So I have the GData framework and headers working nicely, and I have no problem doing queries, loading user's video feeds etc.
B... | stackexchange/codereview |
i am new for scala .and trying to execute swing application.
I am using scala 2.8
I have compiled the program successfully but..
while executing it is showing the error like no such file..
can any 1 please help me out?
i m providing the code i am trying to execute.
Gui.scala
import swing._
object Gui extends SimpleSw... | stackexchange/codereview |
One of the most frequent crashes of my live app is a crash at MKMapView. It crash at the internal method -[MKMapView mapTileViewDidFinishLoading:]. During my test I could not retrace the crash but is very frequent in the crash reports on iTunes Connect. Has anyboday some experience with this crash? It is only a very si... | stackexchange/codereview |
Hi I am using java language. In this I have to use some chinese, japanese character as the string and print using System.out.println().
How can I do that?
Thanks
| stackexchange/codereview |
With the code below is possible to get separate values, using the variable data. I have inside 2 variables content and pagination, and I want to separate them.
I need and answer that doesn't use JSON.
jQuery.ajax({
type: "POST",
url: "<?php echo DOMAIN ?>inc/ajax_cont... | stackexchange/codereview |
I create a webpart, for which values are provided dynamically through the toolpart. I get the proper output. But the problem is when i add a new instance of the same webpart in a subsite, It takes the value from the other tool part,
In simple words, The value in the toolpart remain same for all the instances of the sam... | stackexchange/codereview |
I want the list of all functions executed to a certain point in code, somehow like debug_backtrace() but including functions not in the exact thread that leads to where debug_backtrace() is called. e.g :
a();
function a() {
b();
c();
d();
}
function b() { }
function c() { }
function d() { print all_trace()... | stackexchange/codereview |
How to change the language of commands' documentation under Windows, printed by following command:
svn help checkout
| stackexchange/codereview |
I'm trying to figure out how to have a DIV column snapping to some fixed-size grid, via CSS.
Here's the test page I'm working on: http://mapofemergence.com/test/MoEv2/
What I'm trying to get, is the right div (the green one) someway snapping to the background grid quads: when resizing the browser window, the red quads ... | stackexchange/codereview |
I have a .NET 4.0 web service which has an targetNamespace of "http://tempuri.org" when the WSDL is generated. A client is sending me a SOAP envelope with the xmlns set to "uri:company:agent" (see sample below) My service rejects the SOAP envelope since the namespaces are not the same.
<SOAP-ENV:Envelope xmlns:SOAP-ENV... | stackexchange/codereview |
I have website developed in cakephp, now I wants to add a new application developed in simple php under a sub-domain like myapp.mywebsite.co.uk
How to make changes to .htaccess so that myapp will not interact with cakephp
Please help me out.
Thank you
| stackexchange/codereview |
I have some Perl/CGI programs on a CentOS Linux webserver. I wish to write further applications that require Perl modules not currently installed.
Does running CPAN on the same live production server impact these programs (which currently don't use the modules, obviously) in any way?
| stackexchange/codereview |
I'm upgrading my working rails 2.3.8 application but i got a strange error.
/Users/davide/.rvm/gems/ruby-1.9.2-p0@rails2/gems/rails-2.3.10/lib/rails/vendor_gem_source_index.rb:76:in `block in refresh!': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/davide/.rvm/gems/ruby-1.9.2-p0@rails2/gems... | stackexchange/codereview |
I'm trying to interface with a web service. I am posting a SOAP Evelolpe and it returns a SOAP response.
I am able to post to the service and get the response using Web Request and Response.But I want to do that using WCF. Can some body please help me to achieve this.
My HTTP Post :
public string HttpPost (string uri,... | stackexchange/codereview |
In a busy repository, I can foresee some files with too much central logic in one place being edited constantly.
Is there any way to find such files by asking Mercurial, either through bundled extensions, 3rd party extensions, or any external tools?
Basically I'd like some statistics that shows files that are edited th... | stackexchange/codereview |
I want to get a Textbox to autoscroll to bottom whenever it gets updated with text, but it seems that there is no such method in Silverlight. In Windows Forms, I would do it this way:
textbox_txt.SelectionStart = textbox_txt.Text.Length;
textbox_txt.ScrollToCaret();
In Windows Presentation Foundation, I would do it th... | stackexchange/codereview |
I've never seen this error before, and I've no idea what I should be looking for.
$ rake db:migrate --trace
(in /Users/tscolari/Projetos/movies)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
stack level too deep
/opt/local/lib/ruby/gems/1... | stackexchange/codereview |
I'm running a TabActivity. In the following line:
spec = tabHost.newTabSpec("alltime").setIndicator(R.string.plots_allTime)
.setContent(intent);
I get an error because setIndicator() expects a CharSequence. I'm not really sure how to fix this, because I should be able to pass a string into that parameter. I thi... | stackexchange/codereview |
I have a CVS repository with multiple directories which contain subdirectories. I have accidentally added a subdirectory to the wrong top-level directory while doing some work. In an attempt to clean it up, I went through and did "cvs remove" on the subdirectory and everything below it after making a recursive copy i... | stackexchange/codereview |
I am trying to address session fixation/hijacking/sidejacking on an ATG/JBoss/Tomcat site. It seems that by far, the most commons recommendations are:
Grant a new session to the user when they log in. This prevents the attacker from being able to predict the session ID of the victim. I tried this approach first, bu... | stackexchange/codereview |
I want to reproduce my iPhone display for demoing purposes. I've tried
this and this, but both give me a black screen. Finally, I headed out to make my own solution. Here's what I have:
// Check for external screen.
if ([[UIScreen screens] count] > 1) {
externalWindow = [[UIWindow alloc] initWithFrame:[[UIScreen ... | stackexchange/codereview |
i am not really newbie in Qt, but there are a few things i don't know...
I am programming in Python, but feel free to post your answers in ANY language.
So, i have a few QGraphicsItem (s), positioned inside a QGraphicsScene, the scene is viewed with a normal QGraphicsView. Everything is normal.
My scene is very large, ... | stackexchange/codereview |
I want to add my existing dynamic web project into Eclipse workspace. I tried over google and found some usefuls but still its not done. I know one way is to create a new dynamic project and copy existing src folder and lib folder into new src and lib but the problem is where to keep jsp and vm. Can anyone please tell ... | stackexchange/codereview |
I have problems with this code:
I can't get the value of textbox there:
here's my codes:
$(document).ready(function () {
$('#btnsave').click(function () {
//saveData();
// for looping the tr id:
$("tr#mytr", "#mytable").each(function () {
// how to get value of pos_x in every tr... | stackexchange/codereview |
I have a system where cache max-age is set to 0 and there is problem, when I have made some changes in my style.css fail the changes dont apear to client. Browser will use the old cached version of css.
I have simple question: Does naming css file as style.css?123 will be cached as a new?
| stackexchange/codereview |
Is it possible to store more than one value and query the database and assign each value as a separate entity?
For example, I have a database with a column wallpaper can I store say this into it.
wall_1.png, wall_2.png, wall_3.png
and then query the database and pull out 3 different variables that hold the wallpaper na... | stackexchange/codereview |
I work in a remote company where email, forums and IM are key communication tools. We don't formally follow any book-methodology but have been evolving towards a more agile-style setup in terms of release schedules, client interaction and a sort of scrum adapted for distributed teams.
We use Jira on one project and I w... | stackexchange/codereview |
I using file *.ashx to get data from database. When I alert jsondata.responseText , it show json string
Respond text is:
{
"total":2,
"page":5,
"record":10,
"row":[
{"i":0, "cell""["1","Desktop","Desktop Description","200"]},
{"i":1, "cell""["2","Laptop","Laptop Description","1000"]},
{"i":2, "cell"... | stackexchange/codereview |
I'm using the old 404-rewrite method on a certain site that is tied to IIS6 *.
So if I enter
http://example.com/non-existent/path
it calls my error page like so
http://example.com/catch.aspx?404;http://example.com/non-existent/path
Great.
Except if I call the page with a fragment, like
http://example.com/non-existent... | stackexchange/codereview |
I have the following set-up:
Zend Framework 1.10.8
database adapter: pdo_mysql
memory limit: 128MB
table type: myisam
table size: 4 MB
number of records: 22.000
number of columns: aprox. 70
I want to select everything from the table, which should be no problem at all:
$table = new Application_Model_DbTable_Foo();
$ev... | stackexchange/codereview |
Hey Friends
how can i develop an app which work in php.exe in my php folder and i need to know can i develop an app which will work continuously using this function and able to work it on my CPanel?
EDIT
what i mean is,a principle one of my friend said to me to develop an page which is having a timer in it,in every 5 ... | stackexchange/codereview |
In my interface I have a few buttons, a combo box and a window where I display sequence of images. Those buttons navigate through the sequence, but I also wanted to navigate through the LEFT and RIGHT arrows on the keyboard. After compilation the keyboard keys work fine, because Focus is set at the main window, but aft... | stackexchange/codereview |
I am trying to connect to an oracle database from my website (asp.net-mvc). The only information i have to connect to the database is ODBC instructions which tells me to go:
It says to go into an oracle directory on the machine and enter this into a TSNNames.ora file and enter this in:
DBNAME=(DESCRIPTION=(ADDRESS=(P... | stackexchange/codereview |
Im creating a java web server for storing JSON strings with location data (latitude, longitude and time)
I wondering if there are any advantages(performance, scalability, maintenance, etc) for using db4o which seems easier to use in java instead of sql, sqlite.
Also what are the differences between Hibernate and db4o;
| stackexchange/codereview |
This is one of the common issue with RTEs on web. Could you please guide me through how to:
Paste as the PLAIN TEXT
Retain the HTML but remove the WORD/HTML styling
I want to do it directly on paste (paste_preprocess callback), without opening the dialogs provided by Paste plugins.
Any thoughts/experiences ?
Thanks,
... | stackexchange/codereview |
Header for my input file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
After doing certain changes in document using lxml.html parser, i... | stackexchange/codereview |
I'm trying to call the main method of a class from another method passing arguments like when running the class from the command line. Is there a way to do this?
| stackexchange/codereview |
Just a silly example:
Table A:
eggs
bread
cheese
Table B (when they are eaten):
Egg | date
Bread | date
Egg | date
cheese | date
Bread | date
For statistics purpouses, i need to have statistics per date per food type in a look like this:
Table Statistics:
egg | bread | cheese
date1 2... | stackexchange/codereview |
I have a 2 Dimensional input data; a set of vector with 2 components, let's say 200. And for each one of those I have a scalar value given to them.
So it's basically something like this:
{ [input1(i) input2(i)] , output(i) } where i goes from 1 to 200
I would like to make a 3 Dimensional plot with this data, but I do... | stackexchange/codereview |
I have a problem that seems to come up both with autocomplete and quick fix. Sometimes when I use cmd+1 for quick fix dialog, Eclipse freezes and however long I wait (30 min at least), nothing happens. When inspected in activity monitor, it seems to exhibit little to no processor activity.
I have a Mac with OSX 10.6, a... | stackexchange/codereview |
While I'm trying to run TestNG from ant as a 'testng' task, i'm getting strange behaviour. TestNG does not create class instance in @BeforeSuite method and in child classes in @Test method i'm getting NullPointerException. E.g.
public class TestBase {
Page mainPage;
@BeforeSuite
public void login() {
... | stackexchange/codereview |
I'm trying to get Fluent NHibernate to map a collection for me. My class definitions are as follows:
public abstract class Team
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
}
public class ClientTeam : Team
{
public virtual IEnumerable<Client> Clients { get; set; }
}
pu... | stackexchange/codereview |
What's the proper way to reference entities which were already persisted in a different session, but remained unchanged in memory after a session has been closed?
Once NH persists an entity in a single session and that session is closed, I need to fetch it again in a new session in order to reference it in some other t... | stackexchange/codereview |
Does anyone know the trick to force Webmatrix to create the MySQL database install scripts on my local box? Here is why I ask:
I've found a Webmatrix help article that says MS Webmatrix "publishes the (SQL Server or MySQL) database by creating scripts that run in a database that has been created for you by your hosti... | stackexchange/codereview |
I'm not longer able to start my server. Have no idea what happened, but I'm getting this error when I run "rails s":
Core:pocketbook lee$ rails s
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_initialize
Referenced from: /Users/lee/Dropbox/Apps/pocketbook/ruby/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3/s... | stackexchange/codereview |
I have XML displaying in dynamic text boxes. Some of the text are a href links, I also want to track which links are clicked by sending a javascript call to Google Analytics. Is there a way to do it and also open the link in a new window?
| stackexchange/codereview |
Is it possible to nest forms in Wicket that are independent of each other? I want to have a form with a submit button and a cancel button. Both buttons should direct the user to the same page (let's call it Foo). The submit button should send some info to the server first; the cancel button should do nothing.
Here's a ... | stackexchange/codereview |
I am trying to push my app on heroku. I am still in dev.
I use devise with the confirmable module.
When I try to add a user with the heroku console I got this error:
Missing host to link to! Please provide :host parameter or set default_url_options[:host]
in test and dev environment i have the following line:
environm... | stackexchange/codereview |
I had the official authlogic plugin running perfectly on Rails 2.3.5. I converted my application to Rails 3.0.1 and now I'm having some problems.
I've included the following authlogic gem in my gemfile
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
When a user logs in, the sessi... | stackexchange/codereview |
I am tasked to improve quality and implement TeamCity for continuous integration. My experience with TeamCity is very limited - I use mostly TFS myself and have some experience with CC.NET.
A lot should happen within a build process... actually the build is already pushed into three different configurations that will r... | stackexchange/codereview |
What's the best way to toggle a "Please have Javascript enabled" warning?
Currently I've got something like this:
<div id='JSwarning'>ONLY SQUARES DON'T USE JAVASCRIPT</div>
to which I then apply .style.display = "none".
This shows the warning on every page for a little while until it loads. There must be a more grac... | stackexchange/codereview |
I'm trying to import an .sql file using cron, and I get this error ...
ERROR 1100 (HY000) at line 1540: Table 'time_zone_name' was not locked with LOCK TABLES
Can anyone explain what this error means? And BTW, I don't even have a table named 'time_zone_name'.
Also, I was able to get 5/24 rows onto the db with the cron,... | stackexchange/codereview |
I'm following the instructions found at http://developer.android.com/guide/publishing/licensing.html
I made a copy of the <sdk>/market_licensing directory, then using the New Project Wizard in Eclipse I created a new Android project from Existing source and pointed it at the library subdirectory in my copy of market_li... | stackexchange/codereview |
How can I temporarily cause pdfLaTeX to forget everything that I've told it and start with a new document class?
I've modified the example environment from the lshort document:
\newwrite\examplesx@out
\newenvironment{examplesx}{%
\begingroup% Lets Keep the Changes Local
\@bsphack
\immediate\openout \examples... | stackexchange/codereview |
I have a gridview that displays the contents of a database table, using an sqlDataSource. That part (including inserting, updating and deleting rows) works perfectly. What I am wanting to do is add a "search" function to restrict the rows returned to a user entered name. I have a textbox for the name to be searched a... | stackexchange/codereview |
I'll apologize in advance for a long post. I have two DataTables (Cases and Jobs), each with a DataView that I bind my GUI to (the Cases dataview is the DataContext for a Grid, while the Jobs dataview is the ItemsSource of a ListView and the DataContext of a TabControl). The first time I fill the tables with DataAdap... | stackexchange/codereview |
I'm able to connect to a webservice and download the data using a variety of devices, such as the BlackBerry 9000 with OS 4.6 or greater.
However, with the 8330 and OS 4.5.0.77 it doesn't work. I have not tried this code on any devices older than the 8330 with 4.5.0.77.
On the 8330 it hangs on the resultObj = op.inv... | stackexchange/codereview |
I am trying to create a dynamic sidebar in zend framework. I have googled some articles, browsed even the stackoverflow archive but i can't seem to get it so please help me figure this out.
Here is some code from my layout.phtml file:
<div id="contentWrapper">
<div id="contentArea">
<?php echo $this->layout()->cont... | stackexchange/codereview |
Suppose have following beach definition:
<bean id="singletonBean" class="...">
<property name="instanceBean" ref="instanceBean"/>
</bean>
<bean id="instanceBean" class="..." scope="prototype"/>
When I call:
singletonBean = context.getBean("singletonBean");
...some code...
singletonBean = context.getBean("singlet... | stackexchange/codereview |
I'm working on a small blog engine.
There are the following tables: Blog and Message.
Blog has a foreign key: last_message_id, so I access the last message in the blog by calling blog.last_message
I have the following code to make it work:
class Blog < ActiveRecord::Base
belongs_to :last_message, :class_name => "Me... | stackexchange/codereview |
I have a web application which is giving me the following exception:
InnerException {"Cannot insert
explicit value for identity column in
table 'Cover' when IDENTITY_INSERT is
set to OFF."} System.Exception
{System.Data.SqlClient.SqlException}
I'm trying to insert into a database which looks like the follo... | stackexchange/codereview |
I have a varray defined like:
declare
TYPE tnr_l IS VARRAY(30) of lve%ROWTYPE;
I want this varray to be initialized with a fetch from the database:
select * into tnr_l from lve where type = 'TNR' order by value;
But this fails with:
.ORA-06550: line 6, column 23:
PLS-00321: expression 'TNR_L' is inappropriate as ... | stackexchange/codereview |
I'm new to ruby on rails. I want to call a system command to analyze an uploaded file in my Rails application. Something as follows:
after_save :analyse #post processing call
def analyse
command = "./c_executable " + Rails.root.to_s + "/output_csv_file"
system(command)
if FileTest.exists?(Rails.root.to_s +... | stackexchange/codereview |
I'm upgrading an application from .net 1.1 to 3.5. This app connects to a WCF service. Previously the web service client was configured to use a Security Token, like so:
RegistrationWSWse registrationService = new RegistrationWSWse();
Microsoft.Web.Services2.Security.Tokens.UsernameToken token = new Microsoft.Web.Servi... | stackexchange/codereview |
I am consuming WCF services from a Silverlight application (MVVM) and windows phone. I have a Service class (Auto-generated) and one IServiceRepository looks like the following
public interface IServiceRepository
{
event EventHandler<SomeEventArgs> GetDataCompleted;
void Data GetData();
// 10 more methods for fet... | stackexchange/codereview |
I'm using ColdFusion with Microsoft SQL Server 2005 and on occasion I get this error:
"[Macromedia][SQLServer JDBC Driver]Object has been closed."
The traceback invariably leads to an SQL query as one would expect, even simple SELECT commands with no JOINs or input parameters or anything fancy at all.
The only solution... | stackexchange/codereview |
Can I set the IO priorty of managed thread? (C# code)
Once set, is the IO priority compared between threads within the same process, or cross processes?
Thanks
| stackexchange/codereview |
I am trying to define which agile practices we are going to use, and I am having difficulty defining the list of agile best practices. I would like my list to be more from a technical point of view (the engineer's angle of view), and should define how SW engineers should approach the development. The list should be rel... | stackexchange/codereview |
new Version of Firefox and IE8 seem to use one windows process. We have a multi-tenancy web application which gets testet by our support team. they have different cases open at the same time which produce side-effects as the session is the same for the instance.
is there a possibility to solve this problem by code? i ... | stackexchange/codereview |
If you have two browser windows open and you use each to navigate to a different website, then how does the software know which HTTP response belongs to which browser instance?
Update
It seems that the distinction is made by the inbound TCP port numbers. But what about network messages that don't involve TCP/UDP? For e... | stackexchange/codereview |
function ajax(options) {
options = {
type: options.type || "POST",
url: options.url || "",
timeout: options.timeout || 5000,
onComplete: options.onComplete || function(){},
onError: options.onError || function(){},
onSuccess: options.onSuccess || function(){},
data: options.data || ""
};
if (typeof XML... | stackexchange/codereview |
well basically I have a line thats has a finial in of 40,
if a add 2 words that are 10 letters each long that leaves me with 20 spaces
thouse 20 spaces should be filled with dots ...... for example
hello................................you
or
stack...........................overflow
now I have the code working fine, I ... | stackexchange/codereview |
I'm building a set of T4 templates that gather their data from an XML file. Is there any way to force Visual Studio to regenerate the templates when the XML file is changed?
Presently, the developers must modify the XML file and then rebuild each template to get the changes. My goal is to hide the T4 templates from the... | stackexchange/codereview |
I am compiling on windows with cdt/mingw. I like to compile warning free. I get the following warning:
auto-importing has been activated without --enable-auto-import specified
on the command line.
The following page suggests the way to deal with it is to just adding that option to the command line of ld.
4.8 ld and W... | stackexchange/codereview |
There's a query where I want to get the:
Username of the user attached to the current opportunity record
Sales Stage associated with each opportunity record
Dollar amount associated with opportunity record
I want to:
Take the current IF STATEMENT result, and collapse it
Current Query:
$sql = "SELECT u.user_name as ... | stackexchange/codereview |
Hii Friends,
the application is that using a imageviewer of a which had placed a Ad at Bottom where when clicked will move to php registration page,when user closes the reg.View it will go back to imageviewer, as i using Three20UI Library for the PhotoViewer,
the code as follows,
-(void) actionCall {
if(isValue) {
... | stackexchange/codereview |
Given three scalars, what is the perl syntax to fill a hash in which one of the scalars is the key, another determines which of two arrays is filled, and the third is appended to one of the arrays? For example:
my $weekday = "Monday";
my $kind = "Good";
my $event = "Birthday";
and given only the scalars and not t... | stackexchange/codereview |
Given a specific set of strings, what's the best way to map them to a corresponding set of integers? Say I have a class with a few integer constants that I use internally, but need to take incoming external strings and determine the correct corresponding integer constant they map to.
Here's a simplified example:
public... | stackexchange/codereview |
Is it possible to checkout projects from different team foundation server locations/projects into one solution in visual studio?
The reason I want to do this is that I have a custom library that I use in different projects. I want to build the project against the source code. That means if I change the library I don't ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.