instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How can I change (relocate) a subversion url that I entered when creating a mirror repository using "svnsync init" (example from #https://whatever to svn://whatever)? tried to run svnsync init again with new url but svnsync init file:///<path_to_mirror> http:///<new_url> svnsync: Destination repository is already sync...
stackexchange/codereview
We have a big class with 68 int, 22 double members, and there are also 4 members as class. e.g Class A{ public int i1 public int i2 public int i3 .... public Order order1 public Order order2 ... public double.. } 1: Is the memory of i1,i2,i3 is continually physically? 2: For class A, ...
stackexchange/codereview
We need to build a number of web servics with axis2. And for each of them we need an authorization and authentication mechanisms. Is there some common methods or specifications how to implement this functionality quickly and easily? Thanks !
stackexchange/codereview
All; def foo(i): return 100 if i < 10 else pass return 200 if i < 20 else pass return 1 Why this not works in python? I suppose this code may works same as: def foo(i): if i < 10: return 100 elif i < 20: return 200 else: return 1 Thanks!
stackexchange/codereview
I'm trying to access the offline application cache of a shared webworker (HTML5) with no luck. I've been banging my head against this problem for many hours, so I must be missing something... Any help from a JavaScript Ninja out there would be highly appreciated! The W3C the spec says that: cache = self.applicationCac...
stackexchange/codereview
Calling ServiceHost.Close() allows host instance to gracefully exit by allowing calls in progress to complete, while refusing future client calls. Assuming ServiceHost.CloseTimeout is set to 10 seconds, then ServiceHost instance will block for 10 seconds while waiting for Close() to return a) What happens if Close() do...
stackexchange/codereview
I have a thread that calls various APIs of a COM interface. Now I want to invoke these functions from another thread. Can you please advise how I can achieve this? How can I implement the communication between these two threads? If I define a Message queue sort of data structure which is common for these two threads th...
stackexchange/codereview
My title pretty much says it all. I have been looking at mod_pagespeed and it somehow impresses me as being very little more than a way to offload the work of optimization to the server instead of the developer. There may be some advantages to doing this such as reducing developer time etc so I'm not suggesting that i...
stackexchange/codereview
I have a Perl script that uses rand to generate pseudorandom integers in some range. I want it to be random (i.e. not set the seed by myself to some constant), but also want to be able to reproduce the results of a specific run if needed. What would you do?
stackexchange/codereview
I'm a completely new to RoR and don't have much web development experience. I usually give up at this point, but I need a RoR dev environment for a job and I can't pick the brain of the site's creator because he's someone outside of the company and made it clear that he's completely unfamiliar with Windows (he develops...
stackexchange/codereview
Table columns have weird characters I have this script to generate a table. p.s. This is an ETL table for incoming data - I know about the bad structure, but cannot change it. In Toad, the table structure looks like this (with the weird characters shown): And when I click on the data tab, I get the following error: ...
stackexchange/codereview
How I can maximize the size of picture with the size of JPanel?
stackexchange/codereview
Does anybody know a code sample for accessing the orkut API thought the iPhone SDK? I only found this java version http://code.google.com/p/orkut-os-client/ that's no good for me. Thanks
stackexchange/codereview
I'm trying to start a redmine on following configuration: OS: Mac OS X Snow Leopard with all updates. Ruby: 1.8.7 Rails: 2.3.5 Rack: 1.0.1 with following commands: svn checkout redmine.rubyforge.org/svn/tags/1.0.2 redmine cd redmine cp config/database.yml.example config/database.yml vi config/database.yml Changed pro...
stackexchange/codereview
I profiled the mixed mode C++/CLI wrapper I am writing in CLR profiler and found many surviving GC Handles of the type LanguageSupport.Initialize, I read a few threads on this Module Initializer, but couldn't say whether its a cause of concern. Should I be worried ?
stackexchange/codereview
I want to access to static fields of a type, which is a class, introduced in a generic function. But compiler always gives me this error 'T' is a 'type parameter', which is not valid in the given context here is the code. public class A { public static int Num = 1; public int GetClassNum<T>() where...
stackexchange/codereview
I'm trying to understand some memory issues concerning AVAudioPlayer and AVAudioRecorder. I create an AVAudioRecorder: -(void)loadAudioForPage { AVAudioRecorder *recorder = [[AVAudioRecorder alloc] initWithURL:audioFileURL settings:recordSettings error:&err]; self.audioRecorder = recorder; [recorder release]; } this ...
stackexchange/codereview
I am trying to find out how I can add an item (from xml drawable/workaround_item.xml) in a LinearLayout that is vertically aligned. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="100dip" android:layout_marginTop="5dip" andro...
stackexchange/codereview
For a site I am building, the news section is essentially an embedded iframe from the company's PR firm. The site also has a sidebar where we would like to display the three most recent article titles from the PR's RSS feed (which is the same thing as the embedded iframe). When clicked, they would need to lead to the n...
stackexchange/codereview
problem description I've got a Delphi component. To set a value, you can click and drag. However, when you reach the edge of the screen, you can't go any further. You then need to go back to the component and drag further, which is not very user-friendly. preferred solution What I'd like is to have the mouse cursor wr...
stackexchange/codereview
I'm using django.contrib.comments for enabling comments on a blog. I was adding a hidden 'next' field to the comment form with the url to which I'd like the user to return after they submit their comment in order to bypass the posted.html template, which was working properly: <input name="next" type="hidden" value="{% ...
stackexchange/codereview
Here is a piece of class : public class OneControl { ... public OneControl Content(Action value) { ContentProperty = value; return this; } public void Render() { ContentProperty(); } ... } Then I got this in my view : <div id="pleaseHelpMe"> <% OneControlInsta...
stackexchange/codereview
how can I restrict updates of domain restricted data? Let's say I have users of my hibernate application, which are allowed to see all contracts of a specific country (i.e. filter: country='US') How can I ensure, that this user can only insert new records with country='US'? Is there a something like 'a filter to restri...
stackexchange/codereview
I just made a makefile follow with online tutorials. http://www.gnustep.org/resources/documentation/Developer/Base/ProgrammingManual/manual_1.html include $(GNUSTEP_MAKEFILES)/common.make TOOL_NAME = LogTest LogTest_OBJC_FILES = source.m include $(GNUSTEP_MAKEFILES)/tool.make once I run the makefile, it showed This ...
stackexchange/codereview
This question is related to UITableView issue when using separate delegate/dataSource, though I have a different problem. I'm just starting to learn iPhone programming. Basically I have one main view with a table. On the event of a cell click, a sub view with another table is shown. The datasource and delegate for the ...
stackexchange/codereview
Is there any solution to update asp.net gridview without postback and withput update panel? or update partial page without update panel? for example with jquery. thanks
stackexchange/codereview
I'm planning to store gigantic arrays into serialized files and read from them in order to display data within them. The idea is to have a simple, document-oriented, filesystem database. Can anyone tell me if this would be a performance issue? Is it going to be slow or very fast? Is it worth, filesystem is always reall...
stackexchange/codereview
I can compile the main application but am having an issue with compiling a nested module. I have the following application structure: src MyApp.mxml view MyView.mxml module MyModule.mxml view AnotherView.mxml When using the following command <mxmlc file="${SRC_DIR}/${MODULE_DIR}/MyModule.mxml" debug="false...
stackexchange/codereview
I'm using a function in vbscript which returns a variant array of strings. JobIDs = objDoc.ConnectedSubmit(objServer) The problem is I can't get the Job ID values from that array, as vbscript doesn't handle typed variables. It just gives a type mismatch when I attempt to do ANYTHING with the JobIDs array. I found so...
stackexchange/codereview
From my own experience there's no difference, but still some folks stick to Ctrl +F5, why?
stackexchange/codereview
I want to display a FileChooser to the user where he can only choose .csv files, but he can navigate through the filesystem to find the .csv he wants. Reading through http://download.oracle.com/javase/tutorial/uiswing/components/filechooser.html it seems as if you either give the user the option to err and choose a dir...
stackexchange/codereview
how can i update a shared variable between different threading.Thread in python? lets say that i have 5 threads working down a Queue.Queue(). after the queue is done i want to do an other operation but i want it to happen only once. is it possible to share and update a variable betweeen the threads. so when Queue.empty...
stackexchange/codereview
Hi I am trying to play a video (wmv) file using MediaElement. I have encoded the video in V8. I have set the properties of the file in Visual Studio as Build Action: Resource Copy to Destination Directory: Always Copy Problem is that when I execute the code, the MediaElement play just 2 or 3 seconds of the file. No vid...
stackexchange/codereview
I am trying to traverse and find links with a specific extension (*.ashx) so that I can open the link in a new tab. (Sitefinity does not allow target="_blank"). I can find the tags using jQuery, but I need to then filter it more so that when I click on an tag with an extension of .ashx, I can open this in a new windo...
stackexchange/codereview
The intention of the following is to only allow the call IRegistration<Foo>.As<IFoo> if Foo implements IFoo: interface IRegistration<TImplementation> { void As<TContract>() where TImplementation : TContract; } This is not allowed by the C# 3.0 compiler. I get the following error: 'SomeNamespace.IRegistration.As()'...
stackexchange/codereview
I've built a small client applicatoin in c#. I am sending the emails via gmail. When I format my html and add underlines, using the following format: <span style="text-decoration:underline"> hello </span> Gmails ignore my underlining. Is there any workaround? Thank you
stackexchange/codereview
I am trying to install django on Webfaction, and i have one all the steps like in the tutorial here: http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction But when i am trying to synchronyse the database, if i enter python2.5 manage.py syncdb --all i get: Usage: manage.py syncdb [options] Create the database ...
stackexchange/codereview
I have a global arraycollection that holds all the information pertaining to a type of data set. I would like to have different datagrids that filter the data, typically by equating a particular column. How should one go about this? Edit: My thinking so far: If there was a filter function for the datagrid rather than t...
stackexchange/codereview
I need to select all records from my SQL Server database that falls between a certain hour. Let me give you an example: Current time is 9:33 am and you have numerous Program records in the database that have an ProgramStart and ProgramEnd. An example of the dates might be: | ProgramStart | ProgramEnd ...
stackexchange/codereview
I'm, using MVC to develop a Web application, and I need to use nested MasterPages in my site, in order to share the Visual Components. I have two Master Pages and a ContentPage: Parent.master Child.master Content.aspx I want to reference a ContentPlaceHolder placed on the top Parent.master from the Content view that...
stackexchange/codereview
In my situation.A slider show! I got several elements appended and removed by button click event in my animate() function. I want to make a contents slider show.I thought: make three div elements: first: <div class='pre'></div> second: <div class='currentShow'>contents</div> this is default display contents three: <...
stackexchange/codereview
Hey folks, I got a project from a firm program out a Wordpress design. 80% into it I learn that the client already have an existing one, a robust one, with subsrciptions, blogs, forums, newsletter mailers and so on. Turns out there is a discrepancy bettweent design and old wp structure which I will work on resolving. I...
stackexchange/codereview
Say I input 'email@domain.com' and 'password' into the login fields. The data annotations in AuthModel.cs throw back that the values aren't populated. So the data in the html form is never actually populating the model thats being thrown around. In my awesomeness, I made a lot of hurried changes yesterday before closin...
stackexchange/codereview
I just bought a script online. On the home page (index.php) there's link <a href="lookup.html">lookup</a> Acturally, the page lookup.html does not exist. When you click the link, it still brings you to lookup.html, of which the content is run by lookup.php. I don't any place where lookup.php is invoked. I checked .ht...
stackexchange/codereview
I am trying to fill an array of hashes with hashes created through an each loop, If I print each individual hash within the iteration they are distinct, but when I try to push them to an array, the resulting array has the last hash repeated whatever number of times. Here's the code: def get_tweets tweet_array = Array...
stackexchange/codereview
I need to display the following list with each a tag in li taking up the entire width of the ul. the width of the ul is 500px; <ul> <li><a href="#">Home</a>a href="#">Home</a></li> <li><a href="#">About us</a><a href="#">About us</a><a href="#">About us</a></li> <li><a href="#">Products</a></li> <li><a href="#">FAQs</a...
stackexchange/codereview
In perl, is there a way to broadcast a file from a server socket to multiple client sockets? I want to transfer a single file to multiple systems in least amount of time. Thanks, Akshey
stackexchange/codereview
My iPhone app has two main "views": a UIViewController with some buttons, text etc and a window where all the OpenGL ES stuff happens. When I transition from the UIViewController to the window (when the user clicks "play" for example) I just do: [window ExchangeSubviewAtIndex:0 withSubviewAtIndex:1]; Perhaps this is...
stackexchange/codereview
I have several or a unknown amount of jQuery Date selectors on a view. Each date picker appears in a set order. I'd like to ensure that the user can only select a date which is 24 hours after the previous selection. So if there are 4 date pickers, the first one would be limited to selection from today onwards, the seco...
stackexchange/codereview
I have gone through many questions asked here and on other forums regarding @property in Objective-C. But a question pops up every now and then.. Do we need i-vars to support properties? Please go through the following code - the RootViewController.h file :- #import <UIKit/UIKit.h> @interface RootViewController : UIVi...
stackexchange/codereview
Is it possible without having to access the website to tell rails to perform a cache of all the files within the application.html.erb page together? I have the following code in my page: <%= stylesheet_link_tag 'reset','forms','layout','common','pages', :cache => '_cached' %> This will combine everything together into ...
stackexchange/codereview
Anybody know how this can be done? I took a look at cx_Freeze, but it seems that it doesn't compile everything necessary into one binary (i.e., the python builtins aren't present).
stackexchange/codereview
I need to bridge a fairly procedural Javascript library consisting of some .js files containing functions to call from GWT. There's already a nice utility called GWT-Exporter that does exactly the opposite (http://code.google.com/p/gwt-exporter/), I would need a kind of GWT-Importer, that generated automatically .java ...
stackexchange/codereview
Is there a function that allow me to select text when the extension stays open. Normally when I Use the extension popup and I Click outside the extension the extension close. Is there a wat to avoid this. Thank you so much
stackexchange/codereview
I'm writing some SCORM SCOs to be embedded in clients' learning management systems but I currently don't have anything to test them on. It seems foolish (to the point of being unprofessional) to just foist these files upon the clients and to hope they "just work". Is there a simple framework I can use to test a SCORM S...
stackexchange/codereview
I am trying to learn Hibernate from Java Persistence with hibernate by Gavin King. I just downloaded the examples given in the book from this location http://downloads.jboss.org/hibernate/caveatemptor/jpwh-gettingstarted-070401.zip I started my HSQL db using ant startdb and database started successfully. When trying to...
stackexchange/codereview
Say I have a websites with 3 panel grid (just for example..) and I would like to have buttons inside each grid that only cause the contents of that grid to refresh so the rest of the page doesn't necessarily have to refresh. How do I do that? I tried to have a form sorround that grid but it seems like the rest of the ...
stackexchange/codereview
I added a new column(DateCreated) in a table(Activity) in sqlserver. and I am using subsonic 2.0, how can I add this column as property in subsonic partial class, so that I can insert and update the value of "DateCreated" Column. DateCreated will be provided by the user from the GUI. following is the code I m using but...
stackexchange/codereview
There is two problems: How to generate the bytes from the video object How to submit the bytes to remote server? I found these classes are missing in AS2:flash.net.URLRequest,flash.net.URLLoader Are the above possible in AS2 ?
stackexchange/codereview
Good Morning, I have the following code: public ActionResult ViewCategory(int category) { var items = from indexVariable in DatabaseEntities.classifieds where indexVariable.category = category select indexVariable; return View(items.ToList()); } This ...
stackexchange/codereview
How to write this SQL query in Doctrine 2.0 (and fetch results)? (SELECT 'group' AS type, CONCAT(u.firstname, " ", u.surname) as fullname, g.name AS subject, user_id, who_id, group_id AS subject_id, created FROM group_notification JOIN users u ON(who_id = u.id) JOIN groups g ON(grou...
stackexchange/codereview
I'm trying to test an app I'm developing on my iPhone. To do that I changed the target from Simulator to Device on Xcode. The application is correctly uploaded to the device and it works. The main view is shown but if I try to open a secondary view, the application crashes. On the iPhone log (I installed the iPhone co...
stackexchange/codereview
This question is related to this question: Given System.Type T, Deserialize List<T> Given this function to retrieve a list of all elements... public static List<T> GetAllItems<T>() { XmlSerializer deSerializer = new XmlSerializer(typeof(List<T>)); TextReader tr = new StreamReader(GetPathBasedOnType(typeof(T)...
stackexchange/codereview
I am creating my first plugin and have a single function that controls the output. This function has different output based on whether or not it is being viewed from within the WordPress admin vs. the frontend. Is there any way to easily test whether or not my function is being triggered from within admin vs the fronte...
stackexchange/codereview
I'm executing a task in msbuild: <MyTask ContinueOnError="true" OtherParam="Cheese"/> <PropertyGroup> <MyTaskResult>????how do I set this????</MyTaskResult> <PropertyGroup> I want to get the result of MyTask into a property (it's Execute method returns a bool) so I can test it and conditionally do stuff. Is this po...
stackexchange/codereview
Does php5 come with the GD graphics library as standard? http://www.libgd.org it mentions a version of php4 on their site - do I assume every version since then has it built in?
stackexchange/codereview
If I have a model that looks like this: and I do a Linq to Entities query like this: var c = MyContext.Contact.Count(); I'll get a SQL query that is as big as all out doors! SELECT [GroupBy1].[A1] AS [C1] FROM ( SELECT COUNT(1) AS [A1] FROM [dbo].[Contacts] AS [Extent1] LEFT OUTER JOIN (SELECT ...
stackexchange/codereview
I want to know how to apply css on any particular row of ListView. Is there any property of ListView?
stackexchange/codereview
I have an old project that was build on VS 2008 .NET 2.0. The project is running fine. We upgraded the project on dev side to VS 2010 .NET 3.0. Now, my question is that if I upload the new 3.0 assemblies on the production will it work. Will some .NET 2.0 assemblies be able to communicate with the .NET 3.0 assembly? Our...
stackexchange/codereview
I have been looking for some good MVC2 cheatsheets to help a new team of .NET developers get used to some of the basics of MVC as a pattern and also MVC2 as a microsoft framework. I found a few examples for MVC1 in relation to the HTML helpers but nothing that including the new features of MVC2. Where can I find some ...
stackexchange/codereview
If yes how or can point me to a resource ?
stackexchange/codereview
I'm having trouble understanding just how to use retainAll in Java. Its function is to create an intersection between sets A,B, where the resulting set has all the common elements between those two sets. And according to the Javadocs, retainAll() Retains only the elements in this set that are contained in the specifi...
stackexchange/codereview
The following two queries return the same (expected) result when I query my database: SELECT * FROM articles WHERE content LIKE '%Euskaldunak%' SELECT * FROM articles WHERE MATCH (content) AGAINST ('+"Euskaldunak"' IN BOOLEAN MODE) The text in the content field that it's searching looks like this: "...These Euska...
stackexchange/codereview
Alright, I have this: $pg_id = isset($_GET['pg']) ? intval($_GET['pg']) : 1; if($pg_id == -1) { $pg_id = -1; $pg_max = -1; } else { $pg_id = $pg_id - 1; $pg_max = 12; } Basically this says if the "all" in paginate is clicked, to list all the items, otherwise it paginates and only shows a couple per page. ...
stackexchange/codereview
Would someone be so kind as to confirm that I am understanding this correctly. My initial response to this was that the mutableArray when assigned to an immutableArray would become an immutableArray, however this is not the case. Is this because the initial array is allocated as a mutableArray and the immutableArray is...
stackexchange/codereview
Hey everbody, i'm trying to convert one string to an array. My php is setting this: echo "Logged/".$name; So, how can i take 'Logged' and the 'Name' as two differents strings? And how can i call it? Thanks!
stackexchange/codereview
Trying to move a Qt 4.6.3 project from Windows to Debian Linux (Etch). I've installed Qt by downloading the latest version, then running configure, then make install as root. Yet when I run qmake_qt4 on my project's pri file, here's what I get: uic: File generated with too old version of Qt Designer Running uic -v re...
stackexchange/codereview
Are there any continuous integration servers that have an integration with Surround SCM?
stackexchange/codereview
I have this ImageView block inside a Relative layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="50dip" android:layout_marginLeft="81dip" android:src="@drawable/swipehelp" /> This d...
stackexchange/codereview
Logins on a PHP site I am working on are managed by session cookies which store the userid in the session. This works fine until the browser is closed, at which point the userid information seems to be being lost. I've set the gc and the cookie keepalive time each to seven days, and the php session settings are as fol...
stackexchange/codereview
I'm trying to setup Buildbot in my organization but have a problem with the SVNPoller. Whenever the subversion repository changes the SVNPoller correctly keeps recognizes this but then fails with the following errors message: SVNPoller failed [Failure instance: Traceback: : changes.project may not be NULL I'm pretty su...
stackexchange/codereview
I had made app ..but the logo is different in itunes store and in the iphone..where is the problem..What should i do for both the logos to be same...
stackexchange/codereview
I have a MySQL database containing a person's forename, surname, their country, and whether they are happy for their name to be listed on a website. The field names are 'firstname', 'lastname', 'country' and 'listedagree'. In the database, the 'listedagree' result is either Y or N. I'd like to list only the people that...
stackexchange/codereview
I have some JavaScript code which I want to make more readable. However, due to the amount of code I want to use a tool which does this automatically for me. Are there such tools already available or do I have to manually perform some "find/replace-alls"? The code which I want to convert is written on a single line w...
stackexchange/codereview
I create an AudioQueue in the following steps. Create a new output with AudioQueueNewOutput Add a property listener for the kAudioQueueProperty_IsRunning property Allocate my buffers with AudioQueueAllocateBuffer Call AudioQueuePrime Call AudioQueueStart The problem is, when i call AudioQueuePrime it outputs followin...
stackexchange/codereview
We recently moved from Perforce to Mercurial and love it! One little problem: after much research we can't figure out how to map a special directory in the repository to some special place on the client. Here is an example of our hg repo: /foo/source files /bar/source files /build /macosx/mac make files /win/w...
stackexchange/codereview
I'm trying to access a nested associative array as object function multiArrayToObject(array $array){ if(!is_string(key($array))){ throw new Exception('Invalid associative array'); } $root = new ArrayObject($array,ArrayObject::ARRAY_AS_PROPS); foreach($array as $value){ if(is_array($value...
stackexchange/codereview
In a POM-file i found a "maven-ear-plugin" configuration that uses "defaultJavaBundleDir", but it seems that "defaultLibBundleDir" is the correct (according to the schema and various documentation). The Maven POM schema is version 4.0.0. Is this a remnant from an older version? I couldn't find an explanation for this ...
stackexchange/codereview
I'm writing a java program running at Linux. Below is the java method createHinted3gpFile (String localfile) { ArrayList<String> cmdArray = new ArrayList<String>(); String hintedFile = localfile+".hint"; cmdArray.add("cp"); cmdArray.add(localfile); cmdArray.add(hintedFile); System.out.println (...
stackexchange/codereview
consider the followign code: public void convertTime() { DateFormat df = new SimpleDateFormat(dateFormat); Date date; Date date2; date = df.parse("15/01/2010 21:58:54"); date.getTime(); //produces 1263585534000 date2 = new Date(date.getTime()); //this is ok, compiles d...
stackexchange/codereview
I am working on a web app that requires a page to dynamically loadup a textbox and multi-select on selection inside another dropdown. For this I am trying to use jQuery. I know it would be considered a punishable act, but I got to target IE6 as a possible browser. The problem is I get an 'undefined', when I try to pi...
stackexchange/codereview
I am building a website with HTML5-<video> in fullscreen background. There are pages in shape of <div>s becoming visible with SWF-container player in them that cause serious CPU performance issues when both media play. So I want to add a simple javascript command that pauses the background video when a project-<div> be...
stackexchange/codereview
I would need to get only the text from certain array. So I need to parse it. I have the following code: for(var x=0;x<contentArray.length;x++){ markup += '<td>'+contentArray[x+1] +'</td>'; x++; } Which gives the following output: <td><c>&lt;ul&gt;&lt;li&gt;The content text&lt;/li&gt;&lt;/ul&gt;</c></td> And it loks ...
stackexchange/codereview
I was following "hello-android-introducing-googles-mobil… by Ed Burnette.. which was very useful for the basics. Morover using the basics I was able to create a small calculator application. But when I wanted to work with activities(life cycle) I couldnt follow the book clearly.. So please suggest a book or site which ...
stackexchange/codereview
I have been trying to solve this problem for several weeks now and it is getting really frustrating. Basically i have a simple project which includes one master page and one content page. the following code is what is found in the content page <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" Au...
stackexchange/codereview
I'm running an xSocket server so would need to launch a chat.jar, it doesn't seem to call that portion. What wrong with my code? If I create a xSocketserver.jar, would the exec have the ability to launch any external jar? import java.io.*; import org.xsocket.connection.*; public class xSocketServer { protected sta...
stackexchange/codereview
when i convert tiff file to pdf in debug mode it converted successfully but when i host it on localhost it didn't convert and throw an exception: Cann't make pdf files. Try again.System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {71DBCBF1-587B-42E4-9B30-...
stackexchange/codereview
I am trying to write some unit tests for my code. In out project we are using the Linq-SQL objects that are created from the DBML. I am trying to figure out how i would need to test the following logic. Say for example i need to get a count of records from a table using LINQ. var objectCount = (from x in DB.MyRecords...
stackexchange/codereview
On IE7, I'm not getting a response back from my POST: function updateItem(item) { $.post("updater.php",{key:item.id, value:item.value},function(response) { $('#response').html(response); }); } <div id="response"></div> <select id="PRIMARY_KEY" onchange="updateItem(this)"> <option>1</option> <option>2</opti...
stackexchange/codereview
I can't read location with this function. When I try to get location information, it always returns altitude 0, longitude 0. void getirGps(){ Criteria myCriteria = new Criteria(); myCriteria.setCostAllowed(false); try { LocationProvider myLocationProvider = ...
stackexchange/codereview