instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am having issues with get_absolute_url in my django templates when using django page cms.
It returns an empty string and does not link to my required page.
I have the following Models, URLs templates and views
Models
class Body(models.Model):
...
url = models.SlugField(unique=True, help_text='---')
urls
(r'^news/',... | stackexchange/codereview |
When on a call VoIP and receive a regular mobile call, if I pick up the regular call the application using VoIP goes to the background and when I switch back to the VoIP call, there is no audio. The call is still in established state but the audio is not there.
| stackexchange/codereview |
I have this situation in a certain table:
id | name
1 'Test'
2 'Test'
3 'Test'
How can I make a query to SELECT by distinct the name? I also need the ID column, even if I get the first occurrence of the element, e.g. "if the name column repeats, give me the first record with this repetition."... | stackexchange/codereview |
I recently came into a situation when sending a nested object from Java to Flex via a HashMap the Objects were null. More precisely:
final Map<Integer, List<String>> tempMap = new HashMap<Integer, List<String>>();
would send the keys as integers but the values were all null.
But when sending the same with String keys:... | stackexchange/codereview |
I want to display the previous month name. My code is given below but it displays the index of that month. I want the name of that month.
According to this given code it dipslays the tool tip as "Balance up to 9", but I want to display "Balance up to September".
How get the name of that month?
lblPreviousBalance.ToolT... | stackexchange/codereview |
Are there still enough VB6 shops to make learning the language worthwhile?
| stackexchange/codereview |
When i press my button the app crashes. Happens even when I create the button programmatically or try and add one through the XIB for the class where I need the button.
I enabled Zombies and the debug msg I get from the console is :
2010-10-27 00:47:28.643 CarTrawler[1537:207] * -[ReceiptView performSelector:withObject... | stackexchange/codereview |
I need to retrieve all items from two lists that contains a given value.
Example:
var list1 = {
new Dummy(){ Name = "Dummy1", Number = 1 },
new Dummy(){ Name = "Dummy2", Number = 2 },
new Dummy(){ Name = "Dummy3", Number = 3 }
};
var list2 = {
new Dummy(){ Name = "Dummy4", Number = 4 },
new Dummy()... | stackexchange/codereview |
Good morning
is there a clever way to use a javascript regular expression to clean up this string:
var spans = "<SPAN><A href="javascript:sel.RemoveProductFromSelection('12372');"><IMG src="remove.gif" width=18> </A>Mirage - JOY</SPAN>
<SPAN><A href="javascript:sel.RemoveProductFromSelection('12427');"><IMG src="remove... | stackexchange/codereview |
In lieu of using php's date() function directly, I'd like to trigger a date format that I've created at admin/settings/date-time/formats.
At first glance I thought I could do this:
format_date(strtotime($date), 'customformat');
But it looks like format_date() has a few formats hard-coded and doesn't communicate with t... | stackexchange/codereview |
the -w and -W options of vim have theoretically the following effect:
-w {scriptout} All the characters that you type are recorded in the file
"scriptout", until you exit Vim.
This is useful if you want to create
a script file to be used with "vim -s"
or ":source!". When the "scriptout... | stackexchange/codereview |
Some users of our application will have read-only access to many of our pages, in our current web forms app this means they see the form, but all of the fields are disabled. We're looking at MVC 3 and searching for the cleanest, most idiomatic way of implementing this functionality.
Some ideas so far:
Some combination... | stackexchange/codereview |
Possible Duplicate:
How to execute an .SQL script file using c#
How would I programmatically run a SQL script that's in a file on the local disk?
| stackexchange/codereview |
I'm trying to start using ENSIME for Scala development with SBT. How should I manage license headers? I used to use Copyright Wizard in Eclipse and that seemed fine.
| stackexchange/codereview |
I have the following code that returns 50 random color-coded numbers:
Sub RandomNumberColor()
Dim Numbers, i As Integer
Dim MyRange As Range
Set MyRange = Worksheets("Rnd").Range("A1:A50")
For i = 1 To MyRange.Rows.Count
Numbers = Int((10 - 1 + 1) * Rnd + 1)
Worksheets("Rnd").Cells(i, 1) = Numbers
... | stackexchange/codereview |
The Setup
I have a PDF API which has a native function that is defined below.
typdef void* PDF_DOCUMENT;
unsigned long PDF_GetMetaText(PDF_DOCUMENT document,
const char tag,
void* buffer,
unsigned long bufferlen)
//Calling it "... | stackexchange/codereview |
How to generate id for entity using constructor parameters - is that possible ? I need that to make tree structure (category -> subcategories...) passing to constructor parent category id.
Category category = new Category(parentId);
CategoryDAO.add(category);
| stackexchange/codereview |
We have a shared drive where web applications are published to. When I attempt to publish I get the following error:
------ Publish started: Project: XXX.Web, Configuration: Release Any CPU ------
Connecting to T:\WebSites\XXX\...
Unable to create the Web site 'T:\WebSites\XXX'. The path 'T:\WebSites\XXX' does not exi... | stackexchange/codereview |
I'm coding a project that generates two arrays containing data. One array contains data for a specific country and the other contains data for all countries.
For example, if a user from the US makes a request, we will generate two arrays with data. One with data only for the US and the other with data for worldwide, in... | stackexchange/codereview |
I am getting the exception ,
java.security.SignatureException: invalid encoding for signature
in my program . the following is the code snippet
Signature sig=Signature.getInstance("SHA1WithDSA");
sig.initVerify(qakeyPair.getPublic());
sig.update(data.getBytes());
sig.verify(sig_bytes)
why is this happening..?
| stackexchange/codereview |
Thinking of building a nested category "system" using "chained strings" for lack of a better term. Here's the plan:
A category slug could be something like "shopping-clothing-womens". This would correlate to a 3 deep category: Shopping > Clothing > Women's.
An object in the database would have a category field, contain... | stackexchange/codereview |
I have a reasonably simple split view application adapted from iPhone code. The main functionality is in shared classes with iPhone and iPad specific classes inheriting and augmenting the code. All the classes used in the iPad app have the following:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrienta... | stackexchange/codereview |
Right now I have a DB where the PK's are int IDENTITY. I recently, in the last year, was tasked with adding these to a Replication Topology. This has worked out quite well with the exception of the IDENTITY fields.
I want to explore my options for changing or replacing them with a uniqeidentifier(GUID).
Is it feasibl... | stackexchange/codereview |
I'm using the change password feature of the standard AspNetSqlMembershipProvider in my ASP.NET MVC-2 app:
MembershipUser user = Membership.GetUser(userId);
string pwd = user.ResetPassword();
if (user.ChangePassword(pwd, confirmPassword))
{
// it worked
}
And this works for the vast majority of users, but there ar... | stackexchange/codereview |
I'm creating an MSI installer using WiX and I have, say, a *.bat file that I'm copying to SomeFolder2 under %temp% (something like the code snippet below...)
...
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='MyDir' Name='SomeFolder'>
... | stackexchange/codereview |
It looks as though the answer to my question is here;
Update ASP.Net membership from windows service
However I cannot get any recognition for the namespace; System.Web.Security. I try to add a reference to System.Web and I get;
Could not resolve assembly "System.Web". The assembly is not in the currently targeted frame... | stackexchange/codereview |
Looking for guidance as to what version of Spring, Hibernate and JBoss work together. I am currently using:
<dependencies>
<dependency org="javax.servlet" name="jstl" rev="1.1.2" conf="runtime->default"/>
<dependency org="org.springframework" name="spring" rev="2.5.6" conf="runtime->default"/>
<dependency ... | stackexchange/codereview |
I'm about to optimize a problem that is defined by n (n>=1, typically n=4) non-negative variables. This is not a n-dimensional problem since the sum of all the variables needs to be 1.
The most straightforward approach would be for each x_i to scan the entire range 0<=x_i<1, and then normalizing all the values to the ... | stackexchange/codereview |
Someone recently told me that there was a licencing constraint that prevented Android from running on anything other than a tablet or mobile phone. I couldn't find any evidence for the constraint. Does such a limitation exist?
| stackexchange/codereview |
1> select browser,count(*) from logtest group by browser;
+-----------+----------+
| browser | count(*) |
+-----------+----------+
| Firefox 3 | 14 |
| Unknown | 11 |
+-----------+----------+
2 rows in set
2> select browser,count(browser) from logtest group by browser;
+-----------+----------------+
| ... | stackexchange/codereview |
I am trying to subclass NSSlider to create a control called a jog dial. Basically what I need is a slider which always starts at the middle and when it is moved to the left or right it will send notifications every so often (determined by an attribute one can set) informing its container of its current value, then whe... | stackexchange/codereview |
I am generating pdf using java and itext. When I add image that we used before in previous version of the pdf everything is fine. But when I replace it with the new one(they are both png-s) it corrupts the PDF(my PDF reader return "not a pdf or corrupted).
Are there any special things that must be set when saving the i... | stackexchange/codereview |
I am trying to create the following Where clause expression dynamically:
context.Cars.
Where(c => EntityFunctions.DiffDays(c.Created, c.Created) == null).
ToList()
This is the code I am using to create the expression:
var parameter = Expression.Parameter(typeof(Car), "c");
var property = Expression.Property(parameter,... | stackexchange/codereview |
I've never tried separating down my projects into DLLs but something I'm working on at the moment calls for a more modular approach. What I want to be able to do is switch out versions of a number of my classes easily to push updates to users without them having to re install my entire application.
These classes creat... | stackexchange/codereview |
I have the following json as seen below. I'm trying to read the values TOP1, TOP2. I'm a little unsure of how to do this.
I'm using the following .. But that just gets me an object which has the nested objects for TOP1 and TOP2. How do I get the values TOP1 and TOP2 ??
$.getJSON('http://localhost/data/menufixed.json',... | stackexchange/codereview |
I've got sensor data in a table in the form:
Time Value
10 100
20 200
36 330
46 440
I'd like to pull the change in values for each time period. Ideally, I'd like to get:
Starttime Endtime Change
10 20 100
20 36 130
36 46 110
My SQL skills a... | stackexchange/codereview |
I have servlet in my web application that serves images, and when I visit those urls with browser images are server correctly. Then I have this other servlet that resizes images, idea is to visit get image by url in resize servlet and then resize image. But for some reason all following methods return null, but when I ... | stackexchange/codereview |
I would like to have a view that I could run return multiple result sets. Is this possible?
If a view can not do this, then is there another object with High Visibility/Transparency within SQL Server that can achieve this? (I like using a view because I can easily see it and run it under the Views folder). A stored pr... | stackexchange/codereview |
We have an application in WPF that shows data via ObservableCollection. After 5 minutes, I want to refresh the data.
I thought I could use the System.Timers.Timer object for its Elapsed event and then call a BackgroundWorker to call the method that starts the job. The method is on a ViewModel class.
But it seems that t... | stackexchange/codereview |
I have a weird situation that's come up, so I'm hoping some one can help me out.
I have a wordpress installation in the root directory and a codeigniter installation in a subdirectory (I know, I know...). Both are working fine on their own. The codeigniter installation has its own .htaccess file for rewriting to index.... | stackexchange/codereview |
I have been playing around with the twisted framework for about a week now(more because of curiosity rather than having to use it) and its been a lot of fun doing event driven asynchronous network programming.
However, there is something that I fail to understand. The twisted documentation starts off with
Twisted is ... | stackexchange/codereview |
In lucene, we can use QueryParser.Parse(query) to find out how the given query is interpreted by lucene. Its very helpful. I am looking for some kind of API or build in sys functions to identify how the FTS parses given search string.
I found sys.dm_fts_parser procedure in sql 2008 does the same job, but currently am w... | stackexchange/codereview |
Referencing the screenshot above, I changed the name of the lowest-level folder in the tree. For example, I changed "Chips" to "chips." Oddly, Git refuses to recognize the following command when I try to add it to the commit:
git add public/images/chips/
The only way I can get it to add the file to the commit is by... | stackexchange/codereview |
I'm using mod_xsendfile (v0.12) to serve static files where Django is controlling access to the files based on users and permissions.
In my conf file, I have:
XSendFile On
XSendFilePath e:/documents/
<Directory e:/Documents>
Order allow,deny
Allow from all
</Directory>
In my django code, I set the headers like so... | stackexchange/codereview |
THe source code of my the legacy application I am maintaining is in many folders and subfolders.
I am starting creating unittests as a base for refactoring.
Do you suggest I put all tests in a single place or for every folder of code i create a subfolder called \FolderNameTests ?
Or do you have other suggestions?
| stackexchange/codereview |
I have an application where I was using buttons on a toolbar to call up the views, but I am switching it over to using a tab bar.
When using the buttons I was using the following code in MainViewController.m to update the values on the page and it was working just fine:
-(IBAction) loadSummaryView:(id) sender {
[self ... | stackexchange/codereview |
I'm not sure where to put some methods.
Let's say I want to send an email.
Which of the following options should I choose:
email = new Email("title", "adress", "body");
email.send();
or
email = new Email("title", "adress", "body");
Postman.send(email);
Because how can an email send itself? And isn't it better to have... | stackexchange/codereview |
I've inherited some code that worked on Windows 2000 thats using a small piece of assembly code to locate the base address of the stack, then it uses an offset to grab the parameter value passed to the thread start function.
However this doesnt work in Windows 2008 Server. The offset is obviously different.
#define TEB... | stackexchange/codereview |
I am new to Iphone.How to create file browser in iphone ?
I wish to show all the files and folders in the iphone.How to do this?
| stackexchange/codereview |
For years I suffered from a question of what is the name of creature, that looks like a cookie, and located at git homepage header logo. And are there any pictures of same creature? :)
| stackexchange/codereview |
I have a number of custom Exception-inheriting classes in my package, which do not differ from their base class. The only purpose I have them is to distinguish one exception cause from the other, when it is thrown. This is how one of my Exception class looks like:
package com.XXX;
/**
* Thrown when query format is inv... | stackexchange/codereview |
For the iPhone there is a console tool for printing Nslog. For Android there is logcat. For Palm there is putty.
Is there any tool like this to print the log for BlackBerry?
| stackexchange/codereview |
I changed the maxAllowedContentLength to
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="5024000000" />
</requestFiltering>
</security>
In my web.config, but when running on IIS7 I get this error:
The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer
... | stackexchange/codereview |
My Swing Java application works fine on Mac OS X, but its title in Mac's title bar appears like this "org.classes.MainClass" which is the main class's path of my application.
Can i change this title through code or in the Manifest file of my java application ?
| stackexchange/codereview |
I have an HTML form that builds a drop-down from json data that is retrieved dynamically on page load from a php script.
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
... | stackexchange/codereview |
I am designing an app which consists of an image...
I am trying to play sound by using the following code...
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self.view];
if (CGRectContainsPoint(CGRectMake(320,480,0,0)... | stackexchange/codereview |
Here's the documentation. I haven't found any explanation anywhere. There is a data binding overview but is for WPF, and I'm using WinForms. I thought what it does is to call whatever method I assign to the event Format of the Binding class, but it will call it even if I set formattingEnabled to false as long as I assi... | stackexchange/codereview |
I am using iText API to generate RTF using Java. The RTF file is generated fine but one requirement is adding a barcode. What i did is:
FontFactory.register("c:\\windows\\fonts\\FREE3OF9.ttf", "Free 3 of 9 Extended");
return FontFactory.getFont("Free 3 of 9 Extended",20, Font.NORMAL, Color.BLACK);
I tried loading oth... | stackexchange/codereview |
I get the above as an issue upon code inspection of an MSTest project. The issue relates to the .csproj itself.
What does it mean? Do I need to do anything about it ?
I know about the %VS100COMNTOOLS% environment variable, so I am guessing Resharper expects that path to be in the runtime environment of the project, and... | stackexchange/codereview |
Is this valid?:
http://www.SomeURL.com/Index.php?123=xyz
Will I be able to access the value 'xyz' under the key '123' the same ways as usual?
| stackexchange/codereview |
Is there a way to write a program using pure x86 intel opcodes instead of the assembly mnemonics and instructions and then compile it with ML and LINK. For example if I try and write a 55 instead of push ebp ML thinks it is an integer. Does it require a special compiler or how would you write an opcode program and comp... | stackexchange/codereview |
Is it a bad idea to store a raw sql query in a php session variable for later use? Does this present any security issues?
| stackexchange/codereview |
I want to write unit tests for a web service. I create my test project, reference my web project (not service reference, assembly reference), then write some code to test the web services - they work fine. However, there are some services which make sure the user is logged in to the web application by using HttpContext... | stackexchange/codereview |
If I have a vararg Java method foo(Object ...arg) and I call foo(null, null), I have both arg[0] and arg[1] as nulls. But if I call foo(null), arg itself is null. Why is this happening?
How should I call foo such that foo.length == 1 && foo[0] == null is true?
| stackexchange/codereview |
Clarification
This is part of a script that checks if a user has changed and values in a form. If the user attempts to leave the page after changing a value they get alerted via onbeforeunload and are presented with the option to either leave the page or stay.
The tricky part is determining the changed state of a (mult... | stackexchange/codereview |
function Person(name) {
this.name = name;
this.say = function() {
console.info('I am ' + this.name);
}
}
var p=new Person('stackoverflow');
Someone tell me that the above codes are equals to :
function Person(name) {
this.name = name;
this.say = function() {
console.info('I am ' + t... | stackexchange/codereview |
I would like to map the elements of a Scala tuple (or triple, ...) using a single function returning type R. The result should be a tuple (or triple, ...) with elements of type R.
OK, if the elements of the tuple are from the same type, the mapping is not a problem:
scala> implicit def t2mapper[A](t: (A,A)) = new { de... | stackexchange/codereview |
I'm guessing everybody who does Android programming has on their own created multiple AVDs for various devices for testing purposes. I didn't really want to add to the "reinvent the wheel" club, and was hoping someone could point me to an article that lists out various AVD configurations, or a site/link to download al... | stackexchange/codereview |
Apparently Nullable<int> and int? are equivalent in value. Are there any reasons to choose one over the other?
Nullable<int> a = null;
int? b = null;
a == b; // this is true
| stackexchange/codereview |
I've got the following HTML code:
<body>
<div id="Frame">
<div id="Body">
<div id="Panel">Side panel, fixed width.</div>
<div id="Content">The rest of the content, should be dynamic width and fill up rest of space horizontally.</div>
</div>
<div id="Foot">
<div>FooBar.</div>
<... | stackexchange/codereview |
The goal is to read through html files and change all instances of MyWord to Myword; except, must NOT change the word if it is found inside or as part of a path, file name or script:
href="..."
src="..."
url(...)
class="..."
id="..."
script inline or linked (file name) --> <script ...></script>
styles inline or linke... | stackexchange/codereview |
This article shows how to create a custom activity in a rehosted Workflow designer (with Workflow Foundation 4). In that example, a MyDelayActivity is created by implementing the IActivityTemplateFactory interface, and specifying the default value to the Delay inputs.
However, is it possible to modify the inputs of th... | stackexchange/codereview |
I have some regular expression code that grabs the data between the title tags on a page:
<%
Function UrlExists(sURL)
Dim objXMLHTTP
Dim thePage
Dim strPTitle
Dim blnReturnVal
Dim objRegExp
Dim strTitleResponse
'Create object
Set objXMLHTTP = Creat... | stackexchange/codereview |
I have to do checks between a development and release database and do this manually, which is both slow and not 100% reliable (I only visually inspect the tables).
Is there a quick and easy way to compare table schemas automatically? Maybe even a feature that does this built right into SQL server?
Edit: I'm comparing ... | stackexchange/codereview |
Is there a way to set individual pixel values for image data in Pyglet?
I guess it can also be done by setting the OpenGL rendering mode to points, so if someone has insight on this, please share it as well.
| stackexchange/codereview |
I have worked quite a bit with jQuery and slidetoggle effects without coming across this bug before. The page is http://gilman.oomphdev.com, and the bug is when a user clicks the "What's This?" tag at the top of the page in IE7. Also, when one clicks the "Contribute Yours" link (right hand column, bottom-ish of white b... | stackexchange/codereview |
I'm searching for a tool that let me generate a flow chart for a given project. It is difficult understand others code by looking at code, a flow chart can be very helpful.
My Project is in VS 2010 Professional Edition.
| stackexchange/codereview |
The "total_rows" property of my view returns the total rows (22), but not the number of items I have set the view to display (5) (through the Web UI Block->Basic Settings).
How can I get this in a proper way without relying on (the possibly soon to be deprecated "result" property?
for now Im using
$totalRows = min($vi... | stackexchange/codereview |
class CreateCrews < ActiveRecord::Migration
def self.up
create_table :crews do |t|
t.string :title
t.text :description
t.boolean :adult
t.boolean :private
t.integer :gender_id
t.boolean :approved, :default => false
t.timestamps
end
end
def self.down
drop_table... | stackexchange/codereview |
When using the PropertyGrid and passing in an Object for the user to make changes, what is the best approach for handling a cancel/undo.
Do you provide a copy of the original object into the property grid make your changes then if the user accepts the mods then update the values into the original object?
Make a copy of... | stackexchange/codereview |
I want to do a video streaming to a remote PC across the internet. The video bitrate is around 600 kbps. But my internet connection supports only a maximum upload bandwidth of 400 kbps.
So I thought I will get one more connection and use the combined upload b/w of 800 kbps to stream the video. I hope there should be a ... | stackexchange/codereview |
I have a database with the following tables:
create table Categories (
Id int primary key,
Name nvarchar(256) not null)
create table Products (
Id int primary key,
Name nvarchar(256) not null,
CategoryId int not null,
foreign key (CategoryId) references Categories (Id))
Using DataLoadOptions, I can write ... | stackexchange/codereview |
Vim works fine for all other languages, but word detection seems wonky in python. For example, in the following snippet, with the cursor on the 'h' in shutil, I would expect prssing the w key to advance me to the period, instead I get moved to the "'" in front of export.
shutil.copytree(os.path.join('export', 'app'), o... | stackexchange/codereview |
I've written a program to check if my thought about solution on paper is right (and it is).
The task: how many zeros is in the back of multiplication of all numbers from 10 to 200.
It is 48 and it is a simple to calculate manually.
I never write on python seriously and this is what I get:
mul = 1
for i in range(10, 200... | stackexchange/codereview |
I have heard of people being able to access other sites cookies using XSS. Is this is a legitimate option and how do you achieve this?
| stackexchange/codereview |
In GNU Emacs, what is [C-tab]? Consider:
(version)
"GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
of 2010-05-08 on G41R2F1"
(defun key-binding-test ()
(interactive)
(insert " key-binding-test called "))
For a single letter control character, a character constant must be used in the vector:
(global-set-key [C-l] 'key-... | stackexchange/codereview |
I have a method with the following signature:
private PropertyInfo getPropertyForDBField(string dbField, out string prettyName)
In it, I find the associated value prettyName based on the given dbField. I then want to find all properties, if any, that have the name prettyName, so I'm trying to do the following:
IEnume... | stackexchange/codereview |
We are in the process of testing OpenEJB solution that embeds ActiveMQ 4.1.1. We observe various problems with messaging (bugs, performance, stability). One option is to upgrade to just released OpenEJB 3.1.3 that comes with later ActiveMQ 5.1.3. But I am trying to evaluate other options in case these problems won't go... | stackexchange/codereview |
Seems like this would be easy to do, but it appears its not so simple. I have a 2d array of floats or ints and I'd like to display it in a grid like control so it acts similar to Excel in regards to being able to move around with the arrow keys, tab keys, etc. The size of the array will vary. This comes close, but w... | stackexchange/codereview |
I have a struct which is a node, and another which is a list of these nodes. In the list struct, its an array of nodes, but instead of an array, it's a pointer to pointer with a size integer:
typedef struct node {
struct node *next;
MyDef *entry;
} Node;
typedef struct list {
Node **table;
int size;
}... | stackexchange/codereview |
How are people using continuations on a larger and smaller scale in Scala?
Are any parts of the Scala standard library written in CPS?
Are there any major performance penalties in using continuations?
| stackexchange/codereview |
Does anyone have better solution or ideas than
Using Objective C/Cocoa to unescape unicode characters, ie \u1234
for unescaping unicode characters in NSString?
| stackexchange/codereview |
I'm rather new to Maven and I couldn't find a solution to this little (IMHO) problem.
In my Eclipse workspace I have a Maven project for an OSGi bundle (a regular one, not an Eclipse plugin). It depends upon several artifacts (JAR libraries); I need one of them to be built from another Maven project in the workspace. W... | stackexchange/codereview |
I can copy a node from one XML file to another using "org.w3c.dom.Document.importNode(Node importedNode, boolean deep)"
However, I can't seem to rename the Element I am copying.
I have something like:
File1.xml
<SomeCustomNode randomAttribute="aValue" another="10/10/2010">
<Information>
<Yellow name="b... | stackexchange/codereview |
Is there a way to pass data or setting to log4j before it loads and then use that property within the config file.
I was assuming there is a system properties I could use:
log4j.appender.R.File=/usr/local/pfs/logs/${ws.host}/log4j.log
Where ws.host is the property I want to use.
But how can I set that value?
Also, I am... | stackexchange/codereview |
I have to run a batch job which sits in the windows server from my unix box.
Or from my local machine.
The win server has a userName/Pwd .
How do i programmatically connect to the windows machine and run the batch?
(The batch will change some file permissions in that machine)
Please let me know if there is a better way... | stackexchange/codereview |
I need to download a zip file and unpack it, in the background (in an AsyncTask I'd imagine).
As it is now, I've got a DefaultHTTPClient set up, and a ZipInputStream ready to go, but here's where I am stuck - I have no idea how to use these two together. Here's the relevant code in the AsyncTask:
DefaultHttpClient http... | stackexchange/codereview |
Does the SQL 2008 Express have intellisense?
| stackexchange/codereview |
I've create a method that gets the current page's assembly name and version so that I can display it in the page footer. It works just fine, but I'd like to move this logic into a control that I could drop into any web application project master page that references my control library. However, in the control library A... | stackexchange/codereview |
I'm curious if anyone has implemented or even knows of any bitemporal databases built on NoSQL platforms (e.g., riak).
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.