instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is it possible to build a micro-webserver using just Excel VBA? I can't find any working examples (some examples found, none working).
| stackexchange/codereview |
I am running the following command:
make -f makefile.gcc
And the output is:
make: -c: Command not found
How can I find out which line is causing the error? The makefile is hundreds of lines long and there's no way of figuring it out otherwise.
I tried the -d switch, but that didn't print any useful information.
| stackexchange/codereview |
I have a function (in case anyone is interested, it is this function) in a module that looks like this
MODULE MYMODULE
IMPLICIT NONE
! Some random stuff
CONTAINS
CHARACTER*255 FUNCTION strtok ( source_string, delimiters )
[...]
END FUNCTION strtok
SUBROUTINE DO_SOMETHING ... | stackexchange/codereview |
I'm here, as many before me, with an HttpConnection problem using the BlackBerry platform (the 4.6.1 in my case).
I need to perform a call to a web service and everything works fine from the emulator (using MDS and WiFi) but when using a real phone (an 8250) only the WiFi works.
My test phone, like many here in Italy,... | stackexchange/codereview |
Good day, I am pulling my hair on this one..
I have Active Directory Memebership Provider configured like this:
<system.web>
<membership>
<providers>
<clear/>
<add name="dev"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a... | stackexchange/codereview |
Everybody cautions regarding Java DateFormat not being thread safe and I understand the concept theoretically.
But I'm not able to visualize what actual issues we can face due to this. Say, I've a DateFormat field in a class and the same is used in different methods in the class (formatting dates) in a multi-threaded e... | stackexchange/codereview |
EclipseLink normally generates SQLs like:
SELECT t0.ID, t1.NAME FROM MAN t0, WIFE t1 WHERE t0.ID = t1.MAN_ID
Is it possible to tell EclipseLink, that it should use full table names for aliases to make the query more readable?
SELECT t0_MAN.ID, t1_WIFE.NAME FROM MAN t0_MAN, WIFE t1_WIFE WHERE t0_MAN.ID = t1_WIFE.MAN_ID... | stackexchange/codereview |
I need to build a javascript file on the fly and embed some html inside it, so that when run, the javascript will be able to add the html to the DOM.
I hava a javascript.js that I can interpolate using wicket. It contains:
var html = "${somehtml}"
document.write(html);
At the moment, if I replace the ${somehtml} wit... | stackexchange/codereview |
I've had this issue come up a couple times doing iPhone development now and have yet to find a good solution for it. What I'm looking for is this:
I want to show some text along with an icon and I want the overall display to be centered within its parent view. Specifically, in my current case, I'm looking to display a ... | stackexchange/codereview |
My site was using jquery.load() to do navigation on a big chunk of the page. I really appreciate the ability to only include only a particular part of the loaded content, here the div with id="content":
$(frame_selector).load(url +" #content", function(response, status, xhr) {...});
But now I need to be able to run sc... | stackexchange/codereview |
I am trying to extend the Microsoft Web Deployment tool and MSDeploy with a custom provider because I want to run custom tasks on the destination deployment machine as part of the process. The general documentation is pretty good outside of custom provider development, but the documentation for doing any sort of extens... | stackexchange/codereview |
Thats my code so far which does not work:
<DockPanel >
<Button Content="Start" Command="{Binding Path=FirstDateCommand}" />
<Button Content="Back" Command="{Binding Path=PreviousDateCommand}" />
<DatePicker Width="150"
SelectedDate="{Binding Pat... | stackexchange/codereview |
I'm very new to Android delelopment, searching and reading various tutorials and using different parts of code from around the internet, trying to make sense of it as I go. Forgive me if my explanation isn't too great.
Currently I have a list created with 4 list items, what I'd like to do is assign a different icon to ... | stackexchange/codereview |
I'm kind of new to rss feeds, but I'm able to create a feed dynamically using PHP and it works great. My problem is that occasionally the feed doesn't have any items (I limit the age of feed items to 60 days, and sometimes nothing has happened in that time).
What I would expect to happen is that I just simply wouldn't... | stackexchange/codereview |
I am working with Orchard CMS v0.8 and am trying to set the layer rule for a particular layer in a website. This can be done by looking at the "Orchard_Widgets_LayerPartRecord" table in the database.
There is a field whereby you can specify what they layer rule is which is great. However I am having a little trouble w... | stackexchange/codereview |
i have the process page for login, i can connected to DB and also can check the username and password.
but after that, i cant show the index page after login success.This is my code:
$dbc=mysql_connect(_SRV,_ACCID,_PWD) or die(_ERROR15.": ".mysql_error());
$db=mysql_select_db("qdbase",$dbc) or die(_ERROR17.": ".mysql_e... | stackexchange/codereview |
I have an add-in for MS Word. One of my users, who is on Word 2007, reports that the add-in is not being loaded. When she checks the COM add-ins list, it says "Load Behavior" is "Unloaded; Load at Startup" (value of 2 in LoadBehavior registry entry).
Yet when she checks the add-in's registry entry, LoadBehavior is set ... | stackexchange/codereview |
I have a table in my database which keeps track of a 3 level hierarchy. What is the best way to display and change/modify this hierarchy? Which asp.net control to use and how?
| stackexchange/codereview |
I have a date object that holds a persons birthday. My code looks like:
def getAge(){
//birthday, birthYear, birthMonth, birthDayOfMonth are class level properties
def c= new GregorianCalendar(birthYear, birthMonth-1, birthDayOfMonth)
birthday = c.time
//What do I do now?
}
I need to return the age of... | stackexchange/codereview |
Suppose I do a select like this:
select company, location, acnum, bills from table
Just how do i output data using php so that the company and location remain at the top and every bill is printed and the acnum is displayed at the bottom. I'm using mysql_fetch_assoc and have gone mad trying. I can go tru every record b... | stackexchange/codereview |
I have a big project with a bunch of .cc files that have mostly c code and some c++ code. I want to use a vector in this program since I need an unbounded data type that is simple to make 2d (in other words I don't want to use an array or a list).
The problem is that when I run my make after including the vector class ... | stackexchange/codereview |
I am trying to get the hang of encryption diagrams and TDEA (Triple DES). I understand TDEA looks something like this:
ciphertext = EK3(DK2(EK1(plaintext)))
I also know a chain block cipher uses an IV to seed the encryption and the plain text before encrypting, and then the output is a block that is ciphered and the ne... | stackexchange/codereview |
I strongly feel its a silly error and I'm somehow not able to see through it. I'm trying to use this piece of code in the view of my mailer.
<p><%= link_to 'here', unsubscribe_path(:email => "a@b.com") %></p>
And I've defined a named route in my routes file :
map.unsubscribe '/unsubscribe', :controller => :users, :act... | stackexchange/codereview |
I'm writing an MVC2 app using DataAnnotations. I have a following Model:
public class FooModel
{
[ScaffoldColumn("false")]
public long FooId { get; set; }
[UIHint("BarTemplate")]
public DateTime? Bar { get; set;}
}
I want to create a custom display template for Bar. I have created following template:... | stackexchange/codereview |
i just wondered if any users could advise me what to google for, as im wanting to create a pdf after a user has submitted a vbscript form.
The form contains data which goes into a MYSQL database and once the user has submitted i would like to use the data to create a PDF.
I would probably be calling this from the vbscr... | stackexchange/codereview |
I am trying to get a busy view displayed during a search process however it never seems to display.
What I am trying to achieve
User clicks on search button once they have entered the text in a UISearchBar.
The text entered is delegated to searchBarSearchButtonClicked.
Show a "Busy view" which is a UIView containing a... | stackexchange/codereview |
i working on one project. i want to read file which path from url,this file containing xml data i have to show this data in chart format.
| stackexchange/codereview |
Im am generating a ppt-file using this tutorial here
Step 4 describes how to swap out the image placeholder.
My images has different dimensions, which makes some images look a little bit too funny.
Is there any way to resize the placeholder so it can keep the dimensions?
Edit: Ok, a better explanation: users can upload... | stackexchange/codereview |
In .NET I can provide both \r or \n string literals, but there is a way to insert
something like "new line" special character like Environment.NewLine static property?
| stackexchange/codereview |
is thier a way for me to send an email to my php blog, and have it publish the blos post, i just find so much easier espcially using mobile.
thanks :))
| stackexchange/codereview |
I'm working on a project for school where e-mails will be pulled from an inbox and downloaded to different locations depending on how things are parsed. The language I'm writing in is Python, and the environment it will be run on is Windows XP. The idea is that the program will run in the background with no interaction... | stackexchange/codereview |
Hii ,
I ran across a interview question of implementing a dictionary that can implement the features of auto-completion , auto - correction , spell check etc...
I actually wanted to know which data structure is the best for implementing a dictionary and how one approaches the above required features...
Any links that ... | stackexchange/codereview |
I will be very impressed if we manage to solve this.
I'm a beginner programmer following the first chapter tutorial in the O'Reilly book "iphone 3D programming". After trying to run the initial practice program I get the following error:
Detected an attempt to call a symbol in system libraries that is not present on th... | stackexchange/codereview |
How can I calculate the day of the week of a date in Ruby? For example, October 28 of 2010 is = Thursday
| stackexchange/codereview |
Perhaps I have been looking at this for too long as I cannot find the problem, yet it should be something simple. I am receiving an ArrayIndexOutOfBounds exception on the line:
nextWord = MyArray[i + 1].toLowerCase();
Can anyone see why?
String currentWord = "";
String nextWord = "";
for (int i = 0; i <= MyArr... | stackexchange/codereview |
We are migrating to Winforms to WPF based solution. We have custom XML definition which are used to build the windows form at runtime.
Since XAML is XML based, can we define a HelloWorldWindow.xml file with XAML definition and can it be loaded into the WPF app without any code behind CSharp files? We will attach the c... | stackexchange/codereview |
DELPHI 5 SAMPLE FOR SAVING A DigitaPersona TEMPLATE SERIAL DATA
TO A DBASE4 DBF FILE.
procedure TFormEnroll.DPFPEnrollmentControl1Enroll(Sender: TObject;
lFingerMask: Integer; const pTemplate, pStatus: IDispatch);
var
MMask : Integer;
Template : IDispatch;
MTempStr : OleVariant;
lByteArray: Variant;
lArray... | stackexchange/codereview |
I'm writing some software in which I need to compute bivariate densities of an x-y grid. Are there any libraries that might help me in Java for this? I've seen a lot of stuff in R, but nothing in Java.
| stackexchange/codereview |
I just found out, that since I created my DB on a different server that had a different collation, then immigrated to a new server with new collation, now I keep on having trouble, and I decided to change all the values of the old collation.
So I tried to execute this query:
sp_configure "Allow Updates", 1
GO
RECONFIGU... | stackexchange/codereview |
C++, using Visual Studio 2010. A question about why a user-defined trait of hash_map actually requires total ordering.
I have a simple structure, say FOO, which only has a number of integers. I'd like to use hash_map, which is a hash table whose keys are unordered, to store the structure of FOO. I just need a fast sea... | stackexchange/codereview |
I have two models for my form, a ViewModel going to it, and a ControlModel coming from it. The ControlModel has all the same field names and hierarchy, but all of the fields are a string data type.
How would you code AutoMapper to convert a string field to integer? I tried Int32.Parse(myString) but Int32 is not avail... | stackexchange/codereview |
I am looking for a in-built String split function in Hive? e.g. if String is:
A|B|C|D|E
Then I want to have a function like:
array<string> split(string input, char delimiter)
So that I get back:
[A,B,C,D,E]
Does such a in-built split function exist in Hive.
I can only see regexp_extract and regexp_replace. I would l... | stackexchange/codereview |
Following my previous question (I assume that 64-bit compiler uses only SSE instructions for floating point calculations):
How transcendental math functions
(sin, atan, exp, log, etc.) are
implemented in 64-bit Delphi compiler?
AFAIK there are no SSE
hardware implementations. What
software library is used, what about ... | stackexchange/codereview |
Hi I have created a gallery type page using jQuery Serial Scroll (http://bit.ly/adKZp2)
It's working fine on all the browsers I need except for Opera (I'm testing with Opera 10.63 on a mac).
I can't see anything wrong and I'm not getting any JS errors - it's driving me a little nuts. Time for some new eyes on the probl... | stackexchange/codereview |
Recommendations welcome on how to slice a .wav1 file into time-delimited segments using a Python library.
1 The actual file type isn't really that material, I'm sure I'll be able to convert between different types if needed.
| stackexchange/codereview |
libunwind is available as a package (pkg_add -r libunwind) on FreeBSD 8.1 amd64.
It is not available that way on FreeBSD 8.1 i386.
When I download from http://www.nongnu.org/libunwind/ I cannot build it.
The error is
In file included from ptrace/_UPT_elf.c:4:
../include/libunwind_i.h:65:5: error: #error Host has unkno... | stackexchange/codereview |
I'm trying to reproduce this html using jquery on a click event.
<div class="comments_action_207">
<div class="list_item_comments list_item_comments_207">
<div class="comment_separator">text goes here</div>
</div>
</div>
before the click event I have the following html:
<div class="comments_action_207"></d... | stackexchange/codereview |
While building web applications I'm wondering how long of a secret I need (how many bits) for serving as the key in encryption - and whether I can just mash out a random sequence of characters on my keyboard or if I need some special software to generate something for me?
(i.e. stealing the private RSA from something ... | stackexchange/codereview |
I generated some classes using EMF and now I want to instantiate them. I've created the xmi files associated with the model and metamodel. Now I want to load the model as an instance in my program, but it keeps throwing a NullPointerException.
My code is:
Map<String,Object> registry = EPackage.Registry.INSTANCE;
Strin... | stackexchange/codereview |
I have variables and strings in one JSX script that I would like to use in another JSX script in Photoshop.
I wanted to just re-run the first script in the second, and get the variables in there that way. How do I do this?
More details: I am using the first script and am manipulating numbers in that script. When I have... | stackexchange/codereview |
I'm using Qt Creator 2.0.1 (Qt 4.7). I need a widget which can hold multiple check boxes vertically. The check boxes will be added to the widget dynamically upon user interaction with other UI element. The widget will have fixed width and height so if there are too many check boxes, a vertical scroll bar should appear.... | stackexchange/codereview |
I'm writing an app using WPF (should apply to Silverlight too) where I have a Frame within a main Window and I'm using the NavigationService to navigate through the pages of the Frame.
I am using NavigationService.GoBack to successfully return to the previous page but there are times when I will need to go to a specifi... | stackexchange/codereview |
I want a program of mine to show up in the taskbar, but still not have the traditional windows boarder. How can I go about this? I know of self.overrideredirect(1), however this removes my program from the taskbar.
This is for Windows 7.
| stackexchange/codereview |
I have a server with OpenVZ installed and virtual machines with a public IPv4 for every machine.
I need to get the bandwidth usage of each separate virtual machine (mbps or kbps) from PHP.
My idea is to install iftop on the host machine and run it from PHP function exec(), the command "iftop -n -F AA.BB.CC.DD/32".
The ... | stackexchange/codereview |
Currently to clone my DTOs I'm implementing IClonable, but this (and the alternatives like a clone ctor) mean that I need to add implementation logic into my (otherwise) data-only object.
Is there a better way to clone DTOs, or is including clone logic considered to be OK?
| stackexchange/codereview |
I have a filter here:
$today = time() - (3600*24);
$Yday = time() - (3600*48);
$getMsgsToday = mysql_query("SELECT * FROM users_msgs WHERE uID = '$USER' AND date > $today ORDER by date DESC LIMIT 10");
$getMsgsYday = mysql_query("SELECT * FROM users_msgs WHERE uID = '$USER' AND date BETWEEN $Yday AND $today ORDER b... | stackexchange/codereview |
Why would someone choose Java to create desktop applications (GUI's to be more specific) ? The reason I'm asking is that there are obvious and better choices. For windows there's C# and .NET framework, for mac there's Objective-C and the Cocoa framework and for cross platform compatibility there's Qt and C++ (also mono... | stackexchange/codereview |
I am using ELMAH in my ASP.NET MVC projects and I really like its simplicity. But I needed the ability to log certain events in my code in a log.Info("message") manner. Since ELMAH does not provide that ability I started looking at NLog.
A few questions came to mind:
Is using both ELMAH and NLog overkill? Using ELMAH ... | stackexchange/codereview |
I am trying to install VS 2008 on Windows 7 x64 and am running into a fatal exception during the installation. The relevant error message is the following:
C:\Users\jayna\AppData\Local\Temp\Microsoft
Visual Studio 2008
SP1\VC_IA64Runtime.exe - Exe
installer's log file/hint
(%temp%\dd_VC_IA64Runtime*.txt|%temp... | stackexchange/codereview |
I have a couple questions regarding using the entity manager in a JavaSE environment.
I'm using the repository pattern to perform my CRUD operations on the database. There will be a base repository class like so:
public class Repository<T> implements IRepository<T> {
private EntityManager em;
private String pe... | stackexchange/codereview |
I'm using rails 3 and am trying to use the in_place_editing plugin:
http://github.com/wanglian/in_place_editing
# Controller
class BlogController < ApplicationController
in_place_edit_for :post, :title
end
# View
<%= in_place_editor_field :post, 'title' %>
However I'm getting the error: id for nil, whic... | stackexchange/codereview |
Once again I come to the best for my pedestrian question.
I'm building a small web app that would be vastly improved by the ability to recognize app icons. I've searched all over but haven't found anything that suits my needs.
Basic Experience:
User uploads a screenshot
We extract icons
We return the name of the corr... | stackexchange/codereview |
I'm noticing a minor annoyance when working with local files in a UIWebview and hoping there is a simple workaround. As a simplified example lets say in my xCode project I have a folder called "WebProject" that contains an html file and a subfolder called "images" where the images reside. The html file references the i... | stackexchange/codereview |
Here is a code (using jquery) i use to download a html file from which I extract a table and its content.
var url = $('#url').val(); // url to access
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
var frame = $('<iframe/>').css('display', 'none').attr('src', url );
frame.appendTo('body')
.load(func... | stackexchange/codereview |
Is there any way to localize the text displayed within the PropertyEditorPart?
[Personalizable(true),
WebBrowsable(true),
WebDisplayName("To Date: "),
WebDescription("Please enter To Date value.")]
public string ToDate
{
get { return toDate; }
set { toDate = value; }
}
| stackexchange/codereview |
public class A
{
public bool Selected;
public DateTime CreateDate;
}
I have a collection of A, let call it Coll, i want to do:
Coll.Where(a => a.Selected).Concat(Coll.Where(a => !a.Selected)
.OrderBy(a => a.CreateDate))
This look great, but the result is the same if i remove the order part, because Linq is gene... | stackexchange/codereview |
I have a WPF app that binds a DataGrid to an XML document using XmlDataProvider. Everything works fine except that I'm trying to "save"/write to XML file on NodeChanged event, instead of having a button or other user-triggered mechanism. Unfortunately, NodeChanged handler that I created is not being picked up. Would ap... | stackexchange/codereview |
I have a list of nodes that I'm able to drag and drop.
<ul id="container">
<li id="item_1">Item 1</li>
<li id="item_2">Item 2</li>
<li id="item_3">Item 3</li>
<li id="item_4">Item 4</li>
<li id="item_5">Item 5</li>
<li id="item_6">Item 6</li>
</ul>
I can click and drag #item_5 over on top of #item_2 and on "drop",
I ... | stackexchange/codereview |
I'm having a problem calling a picture to view. In my app after they click the button i want to take them to a new page where it will display a picture and under it some text. For this example say i want a pic if dog to be at the top of the page then under it say i want something like the breed and the cost of breed.... | stackexchange/codereview |
I have a multi module project consisting of several jar modules and a war module. When I do mvn package, the war is created but one dependency (javax.mail) is not included in the lib folder of the war.
The dependency is set to compile is the main pom. The war is not dependent from the mail.jar but a module.jar is.
Whe... | stackexchange/codereview |
Tup = ('string1','string2','string3')
My program returned string2 how do I get it's index within Tup?
| stackexchange/codereview |
Tables:
videoID (vidID, vidName, vidURL) etc.
viewCount (vidID, views, timestamp)
The main goal of this database is to calculate the slope between the most recent view and the previous one.
Lets say I automatically store the view data in the database once everyday.
This means all the view data for all videos is in one ... | stackexchange/codereview |
Greets to all!
I want to create private messaging based on websockets.
It is possible to implement session between two users using websockets?
| stackexchange/codereview |
I want to create a photo gallery element which has a play button and the next/previous navigation...
I can do the next and previous by using ajax load...and i do not want to preload the data for play functionality..the only way i can think of is using ajax call in a timer for play functionality...but again..calls will ... | stackexchange/codereview |
The text on my buttons are set in resource files. E.g.
<Button android:id="@+id/up_button" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/up_label" />
The above code defines a button with text @string/up_label. How can I change this text in my ... | stackexchange/codereview |
i wanna have a Users details stored in the database.. with columns like firstname, last name, username, password, email, cellphone number, activation codes, gender, birthday, occupation, and a few other more. is it good to store all of these on the same table or should i split it between two users and profile ?
| stackexchange/codereview |
hi
How can I display a string which excess 254 chars in my report created by crystal reports 8.5?
My application that shows the report ia a vb6.0 application.
Thank you
| stackexchange/codereview |
When I did a git svn rebase it stopped at one point saying:
Index mismatch: SHA key of a tree != SHA key of another tree. (I come to know that these SHA keys corresponds to a tree and not a commit from git show of the above two sha keys.)
re-reading <sha index of a commit in svn/trunk>
... list of files ...
fatal: bad ... | stackexchange/codereview |
package com.ewebapps;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;
public class Dot extends View {
private final float x;
private final float y;
private final int r;
private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_F... | stackexchange/codereview |
I have a non commercial project I'm working on in my free time. It will be a web based app.
I know I could go the whole PHP or ASP MVC route and find a host. I would like to save some cash though and avoid paying for hosting, or using an unreliable free host, or something cluttered with ads.
I basically need to devel... | stackexchange/codereview |
is there a standard rule or best practice which dictates when a custom class/library should be a used/distributed as a component or remain simply as a class/library?
what's the definition of a component?
| stackexchange/codereview |
I'm authenticating with OAuth getting my request token, authorizing, doing POST to get the AccessToken and then pulling my user_timeline.xml
At this point I try and call the destroy api on a particular status id and it returns a 401 unauthorized.
I am able to take the url and the parameters out and call this through ... | stackexchange/codereview |
I want to create a clone of the structure of our multi-terabyte file server. I know that cp --parents can move a file and it's parent structure, but is there any way to copy the directory structure intact?
I want to copy to a linux system and our file server is CIFS mounted there.
| stackexchange/codereview |
In an example such as the following, what's the difference between a @PathVariable and a @RequestParam?
@RequestMapping(value = "/portfolio/{portfolioIdPath}", method = RequestMethod.GET)
public final String portfolio(HttpServletRequest request, ModelMap model,
@PathVariable long portfolioIdPath, @RequestParam long po... | stackexchange/codereview |
Which is faster: $("#element")[0].value or $("#element").val()? If the former is faster, what is the purpose of the latter?
| stackexchange/codereview |
I can't access externally to python development server, I have a very small django project running on my machine, and now I want to enable computers in the same LAN have access to it, but it can't do.
There is no firewall running on my machine. Is there a way around this?
| stackexchange/codereview |
Can someone provide me a regex for SSN that matches either
123-45-6789
OR
XXX-XX-XXXX
I currently have ^\d{3}-?\d{2}-?\d{4}$ which matches the first expression, but I need to add the second expression to it as an alternative.
Thanks!
| stackexchange/codereview |
I am on Android 2.1 and I have one multi column Custom listview Using BaseAdapter with an editable edittext at the end of the listview. If the data in the listview do not contain the data of user choice then user should be able to enter data. If the data is already there in the list user will be able to select the data... | stackexchange/codereview |
I have an InnoDB table that continually refreshes with a new set of data.
So, I do a delete from table (everything) and then insert the new set of data.
However the table can never be Without a data set, so I do the above in a transaction.
Everything is wonderful functionally, but the deletes is getting dangerously slo... | stackexchange/codereview |
What happens to an object when it's dealloced? Is all the memory nulled out, or do traces still remain?
If I understand it correctly, an app's memory is saved to flash storage if it resigns active. Assume a resourceful hacker that is able to read out this memory. Will he theoretically sometimes be able to read out the... | stackexchange/codereview |
I would like to deploy a Web Service using JAX-WS 2.1 on Weblogic where the wsdl imports a schema but I would prefer to have it in another location than together with the wsdl, preferrably it should be loaded from the classpath.
I was hoping I could use jax-ws-catalog.xml to map this but I cannot seem to get Weblogic t... | stackexchange/codereview |
I have an array as follows
Array ( [0] => application [1] => modules [2] => Ride [3] => externals [4] => images [5] => uploads [6] => profile [7] => 116 [8] => 13006678321287904362.jpg )
How can I insert an item to the existing array with out overwriting the existing element in specified index
Consider I would like t... | stackexchange/codereview |
I got an error report, where the top of the stack trace was similar to:
System.NullReferenceException: <...> at MyApplication.MyType.SomeMethod(String arg) in MyType.cs:line 0
The point is, that the line number is 0. What could cause such stack-trace behavior?
| stackexchange/codereview |
I'm writing a sql script, and I'd like to use Management Studio to develop the query, and a C# program to run it in production.
My query contains parameters, like so;
SELECT * FROM TABLE
WHERE id = @id
I can feed in a value for @id in the C# program, and that works nicely. However, I also want to declare default valu... | stackexchange/codereview |
First of all: I'm on Ektron CMS v8.1
I'm having a problem with dynamicly adding translated content to the cms via the Webservice API. I can perfectly add xml content by using the following object and method:
ContentSoapClient csc = new ContentSoapClient("ContentSoap");
csc.AddContent3(...);
I specify a language and the... | stackexchange/codereview |
I have a Linked Server set up on my host Server: "MyLinkedServer"
I have an SP on my server "HostServer".
I am calling a stored proc on HostServer that updates a table in DatabaseA on MyLinkedServer with values from a table in DatabaseB on MyLinkedServer.
I have other SPs that run fine in the same scenario, but they ar... | stackexchange/codereview |
I really don't like that sheen it puts on my image, does anyone know a way to get rid of it?
| stackexchange/codereview |
Is it acceptable/good-style to simplify this function:
bool TryDo(Class1 obj, SomeEnum type)
{
if (obj.CanDo(type))
{
return Do(obj);
}
else
{
return false;
}
}
as:
bool TryDo(Class1 obj, SomeEnum type)
{
return obj.CanDo(type) && Do(obj);
}
The second version is shorter bu... | stackexchange/codereview |
I am converting my fat Rails2 application to run on Rails3. After a long intense fight with an army of bugs and my bosses yells, the page is all rendered as an escaped html string. So all the divs, images etc. are written literally for the user.
For some reason this call of a partial renders an escaped string
<%= rende... | stackexchange/codereview |
I am following the tutorial on sharparchitecture.net. I have created a few entities using T4, but I can't figure out where the mapping to the database is done?
I would like to create some relations in the mapping files, but should I add a new mapping file or are there already created one with T4?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.