instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm developing a swing application and I'm a bit confused how can I handle exceptions for example lately a part of my code rename files, So when I was testing it I came up with a "you don't have permission to rename file" as I got it from print exception message. So How Could I express this message to user? and should ... | stackexchange/codereview |
The Visual Studio IDE allows me to scan for unused references in VB.NET source code. But I also have a lot of unused Imports statements in my application.
Two questions:
Is there a way to find unused Imports statements throughout my VB.NET source code?
Do unused Imports statements hurt the performance of my applicatio... | stackexchange/codereview |
Is it possible to retrieve the path of %APPDIR% (in Windows XP: C:\Documents and Settings\UserName\Application Data) in JavaScript?
The solution must be supported by Internet Explorer 6.
Background: I want to provide the user with a link to a certain directory beneath %APPDIR%. I first tried <a href="%APPDIR%\MyFolder\... | stackexchange/codereview |
I am using eclipse-jee-helios-SR1-win32,I found that it can not format the html file well,please check this img(this is effection after I use the "ctrl+shift+F"):
As the img shown , it does not format the file perfectly. The body tag should be indented.
I have not set any setting about the HTML-editor,all of the confi... | stackexchange/codereview |
Can someone please point to me what is wrong with my code?
try{
MediaPlayer p = new MediaPlayer();
p.setDataSource(getCacheDir() + "/temp.mp3");
p.prepare();
p.start();
}catch(Exception e){}
MediaPlayer p catches Exception whenever it calls prepare(). File temp.mp3 is already inside the cache folder and it is not cor... | stackexchange/codereview |
In selection expert options "I have set Keep Group Together,new page before,new page after" which makes sure a new page is set.
how can I make sure that a new group always forms on a new sheet of paper? Can this be done in the formula expert?
right now it is coming in seperate page. i want a new organization employee ... | stackexchange/codereview |
iOS Gurus:
I am trying to use the build in camera app to take pictures for my app to use. I've used following standard code:
To invoke the camera app:
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:imagePicker animated:YES];
To process the image once user takes the p... | stackexchange/codereview |
The problem: I've wrapped some c++ code in python using SWIG. On the python side, I want to take a wrapped c++ pointer and down-cast it to be a pointer to a subclass. I've added a new c++ function to the SWIG .i file that does this down-casting, but when I call it from python, I get a TypeError.
Here are the details:
... | stackexchange/codereview |
I don't know whether this is the right forum. Anyway here is the question. In one of our application we display medical images and on top of them some algorithm generated bitmap. The real bitmap is a 16bit gray scale bitmap. From this we generate a color bitmap based on a look up table for eg
(0-100)->green
(100-200)... | stackexchange/codereview |
I'm trying to get the text between the heading tag using the following php script:
$search_string= < h1 >testing here< /h1 >;
$text = preg_match('<%TAG%[^>]*>(.*?)</%TAG%>',$search_string, $matches);
echo $matches[0];
When i try to run this script there is no value being returned. Instead there is warning message:... | stackexchange/codereview |
My knowledge of Windows Azure is limited to the several videos I watched on Microsoft's web site. Aside from a few new buzzwords, I'm not seeing how this platform differentiates from traditional web hosts that have existed for many years. Aside from the unique billing model (e.g. "storage transactions per month"), what... | stackexchange/codereview |
HI, all, i am not sure how to write if and else condition in order to parse xml.
this is how my returned xml looks like this.
<?xml version="1.0"?>
<a><a1>A</a1></a>
<b><b1>B</b1></b>
<c><c1>C</c1></c>
<d><d1>D</d1></d>
<e><e1>E</e1></e>
<f><f1>F</f1></f>
<g><g1>G</g1></g>
i tried various condition, but i am not able ... | stackexchange/codereview |
HI:
What is the generic type in java? Just for reduce the class cast exception?
ALso, the K means "keys", V means "valuse", what about the E and T?
For a generic class,for example:
List, I understand it as that the list can only put object of String type,but I am not quite clear about the generic method:
static <T> voi... | stackexchange/codereview |
i have written this small code
ResultSet rs=stmt.executeQuery(my_query);
ResultSetMetaData md=rs.getMetaData();
int numColumns =md.getColumnCount();
for (int i=1; i<numColumns+1; i++) {
String columnName = md.getColumnName(i);
Final+=columnName;
}
while (rs.next()) {
for (int i=1; i<numColumns+1; i++... | stackexchange/codereview |
I want to get the real path of a file in java by using the request method getRealPath()but it is deprecated now i want an alternate to it i tried get servletcontext but it is not returning the whole path
in jsp page when i m using application.getRealPath("/") it is giving whole path as D:/.....
but in java servlet code... | stackexchange/codereview |
Recently I challenged my co-worker to write an algorithm to solve this problem:
Find the least number of coins required that can make any change from 1 to 99 cents. The coins can only be pennies (1), nickels (5), dimes (10), and quarters (25), and you must be able to make every value from 1 to 99 (in 1-cent increments... | stackexchange/codereview |
Good night everyone,
This question leaves me a little embarassed because, of couse, I know I should be able to get the answer alone. However, my knowledge about Python is just a little bit more than nothing, so I need help from someone more experienced with it than me...
The following code comes from Norvig's "Natural ... | stackexchange/codereview |
What is File Expansion?
In many computer languages (be they for programming, text formatting or some other application) you can specify in a le A to include the expanded contents of some other file B. In C and C++ (which you do not need to know), this feature is implemented with the #include directive.
Suppose we have ... | stackexchange/codereview |
I am new to JavaScript, trying to figure out a tag information value. GWT Code is as follows..
public static native boolean isToolBarInstalled() /*-{
alert("Validating the toolbar installed.");
var metas = document.getElementsByTagName('head')[0].getElementsByTagName('meta');
var i;
alert ("Met... | stackexchange/codereview |
I have designed a comment system. This is what I am basically doing.
$story=$_POST['story'];
$story=mysql_real_escape_string($story);
$query = "INSERT INTO `comment` VALUES('$story')";
Now the problem is when i store the comment all the " are replaced by \" and all the ' are replaced by \'. So when I display the comme... | stackexchange/codereview |
I have successfully loaded the xml and everything works fine if the success function runs right after loading the XML. But I wanted to get the value of the attribute after the onChange event takes place on the select box (which changes tmpproj value).
When I try to access the success function checkimgs() it says $(xml... | stackexchange/codereview |
I have a listbox whose listboxitem contains, among other things, a button, as follows:
<DataTemplate x:Key="cDataTemplate" DataType="x:Type utils:cd">
<StackPanel Orientation="Horizontal" Background="Transparent">
<Button Style="{StaticResource LIButton}" x:Name="CButton"
Command="{x:Static... | stackexchange/codereview |
I'm using the bourne shell in UNIX, and am running into the following problem:
#!/bin/sh
while read line
do
echo $line
if [ $x = "true" ]
then
echo "something"
read choice
echo $choice
else
echo "something"
fi
done <file.txt
The problem I have here is that UNIX will no... | stackexchange/codereview |
I have created a simple test game that randomly spawns icons that move around the screen. When you click on an icon, it disappears. I used sample code from SDK, and various internet sites.
I want to change the background, it is being set to BLACK. I would like to use a picture I have.
public void onDraw(Canvas canvas)... | stackexchange/codereview |
I have a scenario, where I have though optimized the query, but don't understand on what basis the query optimizer choses to use a particular index. I am running the following query.
SELECT r.review_id FROM game_reviews r
INNER JOIN game_subchannel gs ON r.game_id = gs.game_id
WHERE gs.subchannel_id=4
M... | stackexchange/codereview |
Why is it that I'm finding the size of int and long int are shown to be 4 bytes? Is it that the int is by default long int?
| stackexchange/codereview |
What features do you want to see in System.Net.HttpWebRequest and System.Net.WebClient that are not included out of the box?
What cannot or cannot be easily achieved with those classes?
I'd like to be able to:
Use bandwidth throttling when downloading (useful for large files).
Upload multiple files and key-value pair... | stackexchange/codereview |
My goal is to be able to unit test some custom HtmlHelper extensions - which use RenderPartial internally.
http://ox.no/posts/mocking-htmlhelper-in-asp-net-mvc-2-and-3-using-moq
I've tried using the method above to mock the HtmlHelper. However, I'm running into Null value exceptions.
"Parameter name: view"
Anyone have... | stackexchange/codereview |
I have google chrome on two computers here. Both run XP.
I get some DIVS dispositioned in one of them, and perfect in the other.
They are the exact same version when I check "about chrome"...
I have cleared cache and all.
Very strange to me....
Any ideas?
Also, I have the same issue with IE8, but I don't know if it is ... | stackexchange/codereview |
my application is using WPF for UI, WCF for WebService, EF4 for DataAccess.
I read some materials from internet and msdn that EF4 has self-tracking function using custom T4 template even if using together with WCF for ntier. Does this mean that lazy loading function is still possible with WCF?
Thanks
| stackexchange/codereview |
I am trying to migrate my existing code to using Enum and I run into some problems due to my lack experience with Enum. First of all here is my structures. In my EJB, alongs with Entity, I have a enum class (not sure if it even a class).
public enum Type {
PROFILE_COMMENT,
GROUP_COMMENT
}
At my managed bean m... | stackexchange/codereview |
I want to set volume control to my audio streaming project in android .how to do this
| stackexchange/codereview |
I want to know a data structure for storing values of tags. My XML structure is :
<personaldetails>
<name>Michael</name>
<age>28</age>
<gender>Male</gender>
<address>123 Streeet 7</address>
<country>India</country>
<pincode> 1234877</pincode>
<contactno>35646445</contactno>
<emailid>mich... | stackexchange/codereview |
I've uploaded an MS powerpoint file to my server, and I'm trying to use Google Docs viewer (http://docs.google.com/viewer) to display it on a webpage.
The file is available here:
http://elgg.wamped.org/test.ppt
If I invoke the docs viewer with the above URL, it is working as expected, see:
http://docs.google.com/viewe... | stackexchange/codereview |
input:
Crypted English normal text (A-Z) using a random generated substitution cipher.
output:
key
ideas:
read the whole text storing in some arrays the frequencies for each character/bigram/trigram and comparing them to:
http://en.wikipedia.org/wiki/Letter_frequencies
http://en.wikipedia.org/wiki/Bigram
http://en.wik... | stackexchange/codereview |
I have VBScript inside a HTA getting the ping status from a local WMI call.. I also have a function to get the last reboot time of the remote pc..
Function GetReboot(strComputer)
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQue... | stackexchange/codereview |
The following is the example web server from the documentation, with an added counter. It prints the counter to the console whenever a client/browser requests the page.
However, it's being called twice when requested by the browser. Why?
This is what I would expect would happen:
browser : Hello World 1
console : Coun... | stackexchange/codereview |
Possible Duplicate:
Is there a movie showtime api?
I'm creating a site that needs to be able to list Movie listings with showtimes. I need an API where I can search for different criteria, such as zip code, genre, and other parameters related to movie listings.
Is there any free Movie listing and showtime API's?
If ... | stackexchange/codereview |
new to EF - please bear with me.
Due to the way the database was designed, in my model I have a User entity. The Contact entity inherits from the user entity, and the Profile entity inherits from the Contact entity.
How can I get a list of Profiles, and, how do I create a Profile?
I am able to get a list of Users no p... | stackexchange/codereview |
On our production server we need to split 900k images into different dirs and update 400k rows (MySQL with InnoDB engine). I wrote a python script which goes through next steps:
Select small chunk of data from db (10 rows)
Make new dirs
Copy files to the created dirs and rename it
Update db (there are some triggers on... | stackexchange/codereview |
I am using devexpress xtrascheduler. I have created the custom appointment form.
Now I can add details in that form and it is showing on the scheduler cells also..but again when i click on the appointment(scheduler cell which is having a appointment)a new appointment form is opening..
But I want to open the from which ... | stackexchange/codereview |
Quick question, is a jQuery child selector without a parent ever valid? If so, how would you use it?
Example of the jQuery child selector:
$('ul > li')
Example of jQuery child selector without parent:
$('> li')
The second example above doesn't work. However I can't remember if I saw it in the past before or I've seen... | stackexchange/codereview |
I have been building applications / web apps for some time, and I guess most of what I have built has been based upon simple principles, i.e. try to keep things loosely coupled, use industry standard techniques and so on.
I try to follow as many tech blogs I can about architectures, and how sites can scale (Facebook an... | stackexchange/codereview |
I wrote a simple custom directive, and have it pass all attributes through as regular element attributes. The syntax of the tag as follows:
<@link_to controller="unobtrusive" action="do-get" data-target="result">Do Get</@>
Unfortunately, I get an exception:
Caused by: freemarker.core.ParseException: Encountered "-" ... | stackexchange/codereview |
When a user opens a form in Workspace, it renders in a separate frame, instead of in the normal position in the UI. This frame cannot be repositioned and obscures/blocks the user action buttons, preventing the user from continuing the process. No issue with IE7/XP/any version of Reader 9.
Obvious workaround is using ... | stackexchange/codereview |
I am trying to export a file upon button click event. The structure of my app is like this.
UpdatePanel
TabContainer
Tab1
UserControl (Button is in UserControl)
Tab1
TabContainer
I tried setting PostbackTrigger but it says control not found exception.
Thanks in Advance
| stackexchange/codereview |
I am trying to understand the difference between a RenderPartial and RenderAction. I guess that RenderPartial is like a UserControl and RenderAction is like a server-side include. Can someone put this in perspective please and if possible give me a couple scenarios of where each would be used?
| stackexchange/codereview |
Has anyone developed a CSS File which has all the major browser quirks sorted out?
Thanks
| stackexchange/codereview |
I can't get my head around Python's logging module. My needs are very simple: I just want to log everything to syslog. After reading documentation I came up with this simple test script:
import logging
import logging.handlers
my_logger = logging.getLogger('MyLogger')
my_logger.setLevel(logging.DEBUG)
handler = loggin... | stackexchange/codereview |
I am trying to use a divide-and-conquer (aka fork/join) approach for a number crunching problem. Here is the code:
import scala.actors.Futures.future
private def compute( input: Input ):Result = {
if( pairs.size < SIZE_LIMIT ) {
computeSequential()
} else {
val (input1,input2) = input.split
val f1 = fu... | stackexchange/codereview |
I know this is a common question, and there are resources on the internet about this topic, but I wanted to here from this community everyone's thoughts on subdomain vs subfolder when deploying a blog (SEO Benefits).
Thanks.
| stackexchange/codereview |
Is it possible to define a private abstract class in Java? How would a Java developer write a construct like below?
public abstract class MyCommand {
public void execute()
{
if (areRequirementsFulfilled())
{
executeInternal();
}
}
private abstract void executeInternal... | stackexchange/codereview |
I have a project using Hibernate on an Oracle database for which all entities are generated directly from Hibernate Tools under control of a hibernate.reveng.xml file.
I have one class which has a many-to-many relationship to itself using an intermediary table, like so:
PERSON:
ID
...
PERSON_PERSON:
PARENT_ID --... | stackexchange/codereview |
i have a problem with this registration form, im checking the password and username, this is the process im doing it in?
php:
$username = mysql_real_escape_string($_POST['username']);
$password = md5(mysql_real_escape_string($_POST['pass']));
//check if username is valid
if (ereg("^[a-zA-Z0-9_\-]+$", $us... | stackexchange/codereview |
I need to create an application with 4 view. I need to pass from a view to an other simply by a touch and a move to the left or to the right (no button). The effect I would like is the same that you see when you navigate in the main menu of android when you pass from a page to another.
I have tested the ViewFlipper, bu... | stackexchange/codereview |
I want to display complex numbers in trig form. For example:
z = (-4)^(1/4);
I'm not sure what the command for that is, and its silly to write:
I thought, that the command was ExpToTrig, but solution can't possibly be just 1+i (Or can it, and I'm misusing it?). How do display complex number in trig form.
Edit:
Comman... | stackexchange/codereview |
The question is simple enough. And judging by my last thirty minutes of searching around, I'm assuming that the answer is a resounding "no".
So if it's a no, here's a follow up question: What's the best workaround? Is a COM wrapper around the web service a viable solution for a VBA version that old?
Most of the functio... | stackexchange/codereview |
and sorry if that was asked before,
With a WPF Frame Control I can display a website. WPF appears to delegate Rendering to the resident IE installation.
Unfortunately it appears that when I click some link in the displayed page, WPF does not register this as Navigation, e.g. Navigating event doesn't fire. I can almost... | stackexchange/codereview |
I have a problem. When I try to load a file into a string array nothing shows.
Firstly I have a file that on one line has a username and on the second has a password.
I haven't finished the code but when I try to display what is in the array nothing displays.
I would love for this to work.
Any suggestions?
users.txt
us... | stackexchange/codereview |
I have a onerror handler on the image tag to handle switching when the remote image is not found.
the problem is that for certain broken remote images, it does not work.
http://a3.twimg.com/profile_images/522455109/calvin-and-hobbessm_normal.jpg
<img onerror="this.src='/images/pic_not_found.png'" src="http://a3.twimg... | stackexchange/codereview |
I'm fairly new to Java, and I need some help figuring out a good class hierarchy and overall design for an assignment we've been given (i'm studying CS).
The assignment is graph-theory related, so we were asked to create interfaces for 2 types of graphs, simple graphs and multi-graphs (which are allowed to have paralle... | stackexchange/codereview |
I have a requirement to print data exactly in a particular position in paper. How can these kind of formatting be done using Java?
| stackexchange/codereview |
I am completely new to Perl. I needed to use an external module HTTP::BrowserDetect. I was testing some code and tried to get the name of the OS from os_string method. So, I simply initialized the object and created a variable to store the value returned.
my $ua = HTTP::BrowserDetect->new($user_agent);
my $os_name = $... | stackexchange/codereview |
I was thinking how to write a program which can log me to Facebook and collect the latest status updates of my friends to a linked list. Can this be done for example by PHP or Python without learning Facebook api or do I need to learn that first?
| stackexchange/codereview |
I want to select and then delete a list of entries in my tables that have case-insensitive duplications.
In other words, there are these rows that are unique... ..but they're not unique if you ignore case factor in case. They got in while I wasn't watchin... | stackexchange/codereview |
I am really new to git and I tried today to do my second ever commit of some new code to my repo. The thing is, I'm not sure if the git actually occurred.
Github says the last commit was 2 days ago.
When I type git add . nothing shows up.
When I go to github, the Rails3 file says loading commit data. I have been waiti... | stackexchange/codereview |
When using Gzip to compress css and js files, does the compressed css or js file remain cached in the server to be resent to other visitors or does it require another compression process for each visitor or even each page view?
thanks.
| stackexchange/codereview |
I have a field in a table that I want to store a potentially long error string. To this end I selected varchar(MAX) as the data type. I have created a stored procedure that is used to enter that data in the table and for the field "ErrorDescription" I used the following parameter definition.
@ErrorDescription as varcha... | stackexchange/codereview |
I have generic repository. There is a method Save() to persist entity in db. I want to check primary key through Table.GetPropertyValue("ID", entity) - how i should implement it?
private Table<T> Table
{
get { return db.GetTable<T>(); }
}
public void Save(T entity)
{
if (Table.GetPropertyValue("ID", entity) ==... | stackexchange/codereview |
I am seeing extremely slow Solr updates in my database. The database only has 900 documents. We use autocommit with the following settings, and once in a while autocommit is taking long time blocking updates:
<autoCommit>
<maxDocs>10000</maxDocs>
<maxTime>1000</maxTime>
</autoCommit>
What in the world can be hap... | stackexchange/codereview |
Using Moose, is it possible to create a builder that builds multiple attributes at once?
I have a project in which the object has several 'sets' of fields - if any member of the set is requested, I want to go ahead and populate them all. My assumption is that if I need the name, I'll also need the birthdate, and since... | stackexchange/codereview |
We've just installed a SSL certificate in IIS and enabled SSL in DotNetNuke. We only secured one page, but now when we try to view the page it hangs. Most browsers aren't giving any valid reason and neither the windows event log nor the DNN log is showing any errors that would help.
Firebug shows that the initial reque... | stackexchange/codereview |
I am having trouble getting this to work. I would like to trigger the second link. If anyone can help that would be much appreciated.
$(".links").click(function () {
alert($(this));
})
function someFunction(){
$(".links").trigger('click');
}
someFunction();
...
<a href="1... | stackexchange/codereview |
I have a RESTEasy service that returns a HTTP 500 when a server side error occurs. I manage to attach a body to the HTTP response in order to give more details about the error. So the response that comes out of the service looks something like this
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-T... | stackexchange/codereview |
I wrote the entire thing, but i get vague errors. I don't know what's wrong....ugh.Also, you may ask why non-recursive well my teacher has it that way for the test.
void nonrec_mergesort(vector <int> & a, vector <int> & b, int s, int r)
{
int m = 1;
while (m <= r)
{
int i = 0;
while(s < (r-... | stackexchange/codereview |
How would I go about zooming multiple subviews of an UIScrollView simultaneously? I have a UIScrollView inside another UIScrollView (with paging enabled) and inside the inner scrollview I have four UIImageViews. I would like for the zoom to persist when I scroll to the next page, thus displaying the next image.
Relevan... | stackexchange/codereview |
I have installed Eclipse for Java EE and the Java EE SDK from Sun, and am attempting to create (my first) Java EE application.
I've created an EJB project, then added a session bean using Eclipse's own wizards, and the package javax.ejb isn't found!
I've configured the Java EE SDK as the target runtime environment, and... | stackexchange/codereview |
I'm using Migrator.NET with a DB2 database and my current migration executes an ALTER TABLE statement, which causes the table to go into the "reorg pending state". This state requires the reorganisation of the table with > REORG TABLE TableName before I can do anything else with it.
I tried executing this with
Databas... | stackexchange/codereview |
I have a problem with a wordpress site and I really can't figure out what causes it.
All the pages in the site load perfectly fine, they are quite stuffed with content but the load time is ok and so is memory usage as they have no problem with a 32M memory limit set in wp-settings.php.
The problem comes with the home p... | stackexchange/codereview |
What is the stuff between the [] in the log message below? I get this in my iPhone app, and I have no idea where the message is coming from. My first guess would be a line number, but which file would it be in?
2010-10-19 08:56:12.006 Encore[376:6907]
| stackexchange/codereview |
I am trying to write a PriorityQueue for a c project. The program is crashing when I try to dequeue items; however I think the issue is coming from the way I add the items, as If I try to access the first element in the list after adding the third element I get a crash as well.
Header file:
#ifndef PQUEUE_H_INCLUDED
#... | stackexchange/codereview |
Possible Duplicate:
Do I need to explicitly call the base virtual destructor?
Hello all,
I would like to know whether or not a sub-class destructor should call base-class destructor explicitly. My answer is NO.
For example,
class A
{
public:
A() {...}
virtual ~A() {...}
protected:
...
private:
...
};
... | stackexchange/codereview |
I'm not a Blackberry programmer at all, but I've been asked to investigate what might possibly be making one of our Blackberry applications cause the device to overheat and completely drain the battery in less than one hour.
As far as we can determine, this only happens to the program on one kind of device (the Bold 97... | stackexchange/codereview |
suppose we have multi processor machine and multi threaded application. If two threads have access to a synchronized method and they got executed at the same time which thread will gets the lock?
or what will happen?
Thanks
| stackexchange/codereview |
From several posts inside stackoverflow and outside, I have come to know how to detect cycles in a linked list, the length of a cycle. I also found the method on how to detect the start of the loop.
Here are the steps again for reference.
Detecting Loop:
Have two pointers, classically called hare and tortoise. Move ha... | stackexchange/codereview |
I have a lot of classes and this is a lot of work to do the XML mappings.
| stackexchange/codereview |
using jQuery, I am trying to get an action assigned to a button on a form. I have 50 of these forms on a page, but every time I click one link, the form action is run 50 time!!
I ran this to check, and it comes to exactly 50
`i=1
$('.thumbs').click(function(){
console.log(i,"Click Count");
i++;
... | stackexchange/codereview |
I use IntelliJ Idea (Ultimate 9.0.3) on Linux at work, and our VCS is Subversion.
Idea proposes to store my SVN password but then tells me it is unable to store the password encrypted, and asks if I want to store it in plain text. Well, no. This is on an Ubuntu 10.04 install with Gnome Keyring available.
Any hints ho... | stackexchange/codereview |
I am having an issue with my context menu in Visual Studio 2010 that is driving me nuts. I think it started when I installed the Code Snippet Designer Extent ion but I am not 100% sure about that. I didn't notice it until after I uninstalled that extension with a few others.
I have tried reinstalling and then uninstall... | stackexchange/codereview |
I have two XML Schemas. First (A.xsd) is located in a library jar file (mylib.jar) and the second one (B.xsd) is in my project.
I want to import A.xsd into the B.xsd and validate incoming XML via Jaxb2Marshaller embedded validator.
However I'm unable to make it work properly: it seems that inner XML validator of Jaxb2M... | stackexchange/codereview |
I'm trying to use a jQuery plugin, the HighCharts, calling the series from a webservice but i don't know how to use the javascript javascript that i'm filling.
I've created the object like this:
chartOjb = new Object();
Then i create two properties:name and data. (i've already tested if i'm getting the values properly... | stackexchange/codereview |
NOTE: This is not a simple string replace question.
SomethingBlahBlah can be #SomeThingOtherthanThis
My case is as follows, I have a large string (<1024B, but >300B), that will have {#String} and {$String}.
To be more specific {#SomethingBlahBlah} and {$SomeOtherThingBlahBlah}, so in regexp {#w+} and {$w+}
My first que... | stackexchange/codereview |
On page 51 of the Compute Visual Profiler User Guide it states that:
Note that in case the number
blocks in a kernel is less than or not a multiple of the number of multiprocessors the
counters values across multiple runs will not be consistent.
Is that an inclusive or exclusive "or" statement? Does it always hav... | stackexchange/codereview |
I've searched for this, but maybe I'm using the wrong keywords.
I have a DataList containing an ImageButton whose ImageUrl property I want to set by combining it with a string returned from a codebehind file property and a database value.
I have a protected property in my codebehind called strPath.
I want to combine it... | stackexchange/codereview |
What is the best way of converting a multi-digit number to a alphabet string in C#.
For example,
if I have a number say,
int digits = 1234567890
I want this to be converted to a string which would be
string alpha = "ABCDEFGHIJ"
This means 1 represents A, 2 represents B and so on.
| stackexchange/codereview |
Suppose you have the following documents in my collection:
{
"_id":ObjectId("562e7c594c12942f08fe4192"),
"shapes":[
{
"shape":"square",
"color":"blue"
},
{
"shape":"circle",
"color":"red"
}
]
},
{
"_id":ObjectId("562e7c594c12942f08fe4193... | stackexchange/codereview |
Since the suggested way of storing plugins in MS CRM is via the CRM database, I figured it's about time to do something about the method I'm currently using, which is storing the DLLs on the disk.
The trouble however is that I don't know how to embed all the other various bits that are needed by the DLL: the localizati... | stackexchange/codereview |
I have a cell editor that contains a little button and then a textfield that can be used to edit the value inline
I use setSurrendersFocusOnKeystroke(true) and a focus listener in order to allow a user to start editing immediately from the keyboard, but the trouble is the fisrt key pressed seems to get consumed rather... | stackexchange/codereview |
What do you mean by
"I would do it after you've sent everything to the client and flushed it."
ThankinG you
| stackexchange/codereview |
I wrote small FTP Client Applet which uploads files to FTP Server using Commons Net API. In my code I handled 'CopyStreamException' and trying to restart the same file transfer by setting the offset using FTPClient.setRestartOffset() method.
Is there any proper way to test this part of the code?
I tried by disconnectin... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.