instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shape file to the current map. (And then do stuff to it, but that's another story).
The best I can do so far is to add a layer file to the current map, using the following ("addLayer" is a lay... | stackexchange/codereview |
I want to display events in the jQuery UI Datepicker. I want the days that have events to be styled differently from days that don't have events, and I want to display a custom tooltip with the event details when hovering dates with events.
The solution to the question "jQuery UI Datepicker with jQuery tipsy" gets very... | stackexchange/codereview |
As the title states; how much work (as a rough percentage figure, if that's possible) does the .Net BCL do for a typical Windows application that isn't strictly required as far as Windows itself is concerned? Presumably everything that Winforms does that has an analogous functionality in MFC, the latter is the ultra-ef... | stackexchange/codereview |
I am writing an external Python/comtypes script (in PythonWin) that needs to get a reference to the current ArcGIS 10.0 ArcMap session (through the ArcObjects COM). Because the script is outside the application boundary, I am getting the application reference through the AppROT (running object table). The first code s... | stackexchange/codereview |
I am confused about why I am receiving "Ninject.ActivationException : Error Activating string No matching bindings are available, and the type is not self-bindable" in random bindings. If I leave the binding for IMedia in place it will throw the ActivationException, but if I use the CallbackProvider it works. All of t... | stackexchange/codereview |
Using
[DllImport("kernel32.dll")]
static extern bool CreateHardLink(string lpSymlinkFileName,
string lpTargetFileName, IntPtr lpSecurityAttributes);
should I be able to use a relative path for the lpTargetFileName?
It doesn't seem to work for me. Should it?
It works with full paths.
Edit:
This is Windows 7 and/or 200... | stackexchange/codereview |
i've got two csv files that i want to merge. Basically, i've got my source file, and the second file will add information to that file using a primary key that they both share.
I've done this using v-lookup but since this will be a weekly process, i want to automate it using vb.net or C#. any ideas?
Thanks
| stackexchange/codereview |
I have a cms in which I can change positions of objects. After each position change ajax call updates the whole list of objects. But unfortunately some data is stored in cache and no changes are visible. Is there a way to force clearing cache with javascript/request/other ? I've tried 'cache: false' in $.ajax but it's ... | stackexchange/codereview |
I'm using Visual C# Express 2010 both on my Win7 and XP.
I have a Windows Form Application project, and there is SevenXPForm (inherits Form).
I created it in Visual C# Express 2010 on Win7, and in the Properties panel, I set
.MinimumSize = 300, 300
.Size = 300, 300
And a TabControl is in the middle of the Form:
Howev... | stackexchange/codereview |
I'm thinking about switching from titanium developer to phonegap mainly because there is virtually zero support with titanium (their q/a section often has questions asked nearly a year ago without any answers) and the android emulators are beyond slow to launch.
My only concern is the lawnchair db performance in phoneg... | stackexchange/codereview |
Suposse I have two classes:
class A {
Set<B> bs
}
class B {
}
This mapping:
<set name="bs" table="bs_tab" cascade = "save-update">
<key column="a_id />
<many-to-many column="b_id" class="B"/>
</set>
And join table like this:
bs_tab(
a_id, b_id, primary key(a_id, b_id)
)
When I add some elemen... | stackexchange/codereview |
I've got a simple phone directory app using Fluent NHibernate 1.1. In the app, a "Person" object has many "PhoneNumber" objects. I'm trying to delete a Person and I want to cascade deletes to PhoneNumbers. I set a convention of DefaultCascade.All() after reading this answer. However, attempting to delete the parent obj... | stackexchange/codereview |
I am trying to get the last inserted rowid from a sqlite database in Android. I have read a lot of posts about it, but can't get one to work.
This is my method:
public Cursor getLastId() {
return mDb.query(DATABASE_TABLE, new String[] {KEY_WID}, KEY_WID + "=" + MAX(_id), null, null, null, null, null);}
I ha... | stackexchange/codereview |
I have three values that I want to pass via a link, but don't want them visible in the URL.
| stackexchange/codereview |
I am trying to connect to the Tomcat Web Server on my machine using a digest authentication. I am using the memory realm of tomcat. Here is how the server is configured:
1) In server.xml:
<Realm className="org.apache.catalina.realm.MemoryRealm" digest="MD5" />
2) In tomcat-users.xml
<user username="testuser" password=... | stackexchange/codereview |
I should define a function pad_with_n_chars(s, n, c) that takes a
string 's', an integer 'n', and a character 'c' and returns
a string consisting of 's' padded with 'c' to create a
string with a centered 's' of length 'n'. For example,
pad_with_n_chars(”dog”, 5, ”x”) should return the
string "xdogx".
| stackexchange/codereview |
I have been working on my CSV upload for a little while now, and I finally got it working (sort of haha) As it stands right now, my code will only pull the first record from the CSV file, and I have been looking at it too long, and Im sure I am missing something. Here is my views.py
@login_required
def importClient(... | stackexchange/codereview |
I want to have a combobox with dropdown list of codes and definitions, but only display the definition of the selected item in the textbox part. For example, Y-Yes and N-No in the dropdown, and when Y is selected, only display Yes in the textbox.
| stackexchange/codereview |
I am trying to use RVM, ("ruby version manager") and after the source installation, I need to add rvm command into my profile.
I added following code to the $HOME/.profile file but it does not seem to work.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
So I ju... | stackexchange/codereview |
Previously, when I first design a stock application related software, I decide to use java.util.Date to represent date/time information of a stock.
Later, I realize most of the methods in java.util.Date is deprecated. Hence, very soon, I refactor all my code to make use of java.util.Calendar
However, there is 2 shortco... | stackexchange/codereview |
given a php variable
$a="<b>hello</b>";
echo $a;
//prints <b>hello<b>
But I want it to print hello in bold with the formatting.
Please tell me what I should do...
| stackexchange/codereview |
When implementing a thread safe list or queue; does it require to lock on the List.Count property before returning the Count i.e:
//...
public int Count
{
lock (_syncObject)
{
return _list.Count;
}
}
//...
Is it necessary to do a lock because of the original _list.Count variable maybe not a volatil... | stackexchange/codereview |
I'm having trouble using doctest with relative imports. The simple solution is just to get rid of the relative imports. Are there any others?
Say I have a package called example containing 2 files:
example/__init__.py
"""
This package is entirely useless.
>>> arnold = Aardvark()
>>> arnold.talk()
I am an aardvark.
""... | stackexchange/codereview |
I'm trying to figure out how to output hOCR using Tesseract. Documentation is limited, so I am looking into the code. I found this in the main() function:
bool output_hocr = tessedit_create_hocr;
outfile = argv[2];
outfile += output_hocr ? ".html" : tessedit_create_boxfile ? ".box" : ".txt";
A typical command for Tess... | stackexchange/codereview |
Hi all
writing an app for iphone using cocos2d and objective c. i have my frame rate set at 30 fps with
[[CCDirector sharedDirector] setAnimationInterval:1.0/30];
this is fine for awhile but at 1 point in the app the frame rate increases to between 60-90 fps on simulator when swapping between 2 scenes. i put a break ... | stackexchange/codereview |
I have a table of blog posts, each with a foreign key back to it's author. There are < 15,000 entries in this table. This query scans over 19,000 rows (per EXPLAIN), requires a filesort (that might be regular MySQL behavior), and takes over 400ms to return 5 rows. possibly because of the complicated WHERE used to check... | stackexchange/codereview |
I am on a mission to expand my knowledge and create an extension for chrome similar to how firephp works. I want to integrate with my existing logging and debugging api within my framework and I want to be able to send these messages to the console. Nothing really robust to start with just a way to send debug message... | stackexchange/codereview |
I'm having the hardest time getting this to work. I'm trying to copy a folder from my bundle to the documents directory.
the folder I'm trying to find is here:
...app/Resources/12/(a bunch of jpgs)
NSString *myPath = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:@"12"];
NSLog(@"%@",myPath);/// ret... | stackexchange/codereview |
This is a Windows Forms Application project using Visual Studio 2010. That being said:
I've an unmanaged 'Vector' implementation, something like:
template<class T>
class Vector {
public:
T* data;
unsigned len;
(...constructors and operators overloading like =, [], == and !=)
};
It works great. I've done s... | stackexchange/codereview |
Our site generates several emails per day, a lot of which can contain awkward links, such as http://company/process/task?id=1234-4123-2352-1234&user=xyz...
Consequently I have been sending text only emails, on the suspicion that they will be treated more 'fairly' by email filters along the way. I cannot afford to lose ... | stackexchange/codereview |
I'm in the throes of writing a poker evaluation library for fun and am looking to add the ability to test for draws (open ended, gutshot) for a given set of cards.
Just wondering what the "state of the art" is for this? I'm trying to keep my memory footprint reasonable, so the idea of using a look up table doesn't sit... | stackexchange/codereview |
I have set the icon to use for my application but my form still having the default icon on it. How can I select its icon to be the one set for the application? Please help
| stackexchange/codereview |
If:
class Car : Automobile
{}
I can do:
Car toyota = new Car();
Automobile tauto = (Automobile)toyota;
but if I do tauto.GetType().Name it will still be Car.
Is it possible to perform a cast, so that the type is permanently changed to Automobile (without having to clone the object) ?
The problem i am trying to ove... | stackexchange/codereview |
maxZyklus :: UntereGrenze -> ObereGrenze -> (UntereGrenze,ObereGrenze,MaxZyklaenge)
maxZyklus m n = if m > n then (m,n,0) else if m == n then
(m,n,length(func m)
else
(m,n,length(func m)
type UntereGrenze = Integer
type ObereGrenze = Inte... | stackexchange/codereview |
I have the following code inside my @interface FriendsNavController : UINavigationController class implementation. The code is executed. I just don't know why it's not showing the button...
- (void)viewDidLoad {
UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@"Add Event" style:UIBarButtonItemStyle... | stackexchange/codereview |
I am new one to develop iphone App. so help me to found out error in crash log. In crash log contains only library or framework. Help me to found out crash line .Thanks in advance.
Regards,
Arunkumar.P
| stackexchange/codereview |
"Abstract class instantiation," you say. "Impossible!"
Here's my code:
public static AbstractFoo getAbstractFoo(Context context) {
try {
Class<?> klass = Class
.forName("com.bat.baz.FooBar");
Constructor<?> constructor = klass.getDeclaredConstructor(
String.class, Str... | stackexchange/codereview |
Looking at the other dialog questions, mine seems to be the exact opposite to postback queries. I have a dialog box which opens when a button is clicked. all that is fine. I have attached the dialog to the form and posting to asp.net is fine too, but, my problem is when a postback occurs of course the dialog closes whi... | stackexchange/codereview |
I'm new to android sdk. I started with the HelloAndroid program. I followed all specified instructions, but to my surprise, the emulator is not diplaying the "Hello Android" text.
Instead the emulator looks like the one shown above(You can see "LogCat" at the bottom of the image).
The Console shows msgs like,
[2010-1... | stackexchange/codereview |
This question is pretty simple, but I'm not seeing why the code isn't working?
Here's how I set the members of a ComboBox I have on my form:
private void LoadUsersToComboBox()
{
ScansEntities3 db = new ScansEntities3();
comboBox1.DataSource = db.People;
comboBox1.DisplayMember = "Name";
comboBox1.Value... | stackexchange/codereview |
I have this folder under Tomcat webapps/mysite which is where all my JSPs and other things are located. To access this folder I go to http://blah.com/mysite and it works just fine. However (because of stylesheets and images statically connected to the root /) I have to make it so that when I go to http://blah.com/ it w... | stackexchange/codereview |
There is a TextField "Filter" below the LogCat output. However, it seems to filter only the Message-column. Id like to filter Tags also. Because there are my class names.
How can I achieve it?
| stackexchange/codereview |
Is there a application (Or way in coldfusion/VB.net) to be able to convert a swf to a image file? It needs to be ok quality and needs not to be too slow.
| stackexchange/codereview |
The form is set up to have no maximize button. When Win+D is pressed, all windows minimize including the form. When clicking on the application's taskbar entry, the form shows up but does not restore to the previous size. The form is reduced to just showing the title bar and the borders, w/o the client area.
I tried li... | stackexchange/codereview |
The libraries I founded so far only have methods to decode from a file or InputStream. I have a ByteBuffer with OGG vorbis data and I need it decoded to PCM without having to write it to a file first.
| stackexchange/codereview |
I have two different classes as below:
class text
{ };
class element
{ };
And I want to store them in the class node:
template <typename T>
class node
{
T cargo;
std::vector<void*> children;
node(T cargo) : cargo(cargo)
{ };
void add_child(T node)
{
this->children.push_back((void*) ... | stackexchange/codereview |
how i can to to set background image to TListview in Delphi XE??
i want to make a application like Windows Explorer.
| stackexchange/codereview |
I need to store pictures (.jpg) in my table on MS SQL. What type of column I need to choose?
If I always store three pictures, is there any array type in MS SQL to store in one column all
three pictures ( like array in Oracle) ?
| stackexchange/codereview |
I think I want to show some kind of confirmation tick type thing by a textbox - (it's traditional windows forms stuff, not WPF) - but not sure if it's a bit naff. I would like some kind of slick way of showing that a value is incorrect or valid after some tests have been done i.e. a web service is valid with that name... | stackexchange/codereview |
in my app i have this method
-(void) Setinput:(int)input {
//value declared in .h
value = input;
switch(value){
case(0)
[b_do setTitle:@"Do" forState:(UIControlState )UIControlStateNormal];
[b_re setTitle:@"Re" forState:(UIControlState )UIControlStateNormal];
[b_me setTitle:@"Me" forState:(UICon... | stackexchange/codereview |
The strangest thing has occurred with one of my apps (Flash/Coldfusion/mySQL). I use a simple INSERT statement to save member details into my table. The table has a Primary Key on the memberID. Recently, one of my entries was saved multiple times (not supposed to happen). The datetimestamp shows the save occurred at th... | stackexchange/codereview |
Is this:
var contents = document.getElementById('contents');
The same as this:
var contents = $('#contents');
Given that jQuery is loaded?
| stackexchange/codereview |
Is there any way to configure VS2010 to use different color schemes for different solutions? On the Macintosh, in the 1990's, I could add wctb resources to documents so they would open with different color schemes. This made it easier to find the right window to click, and also helped avoid accidentally typing someth... | stackexchange/codereview |
I'm quite new to vb.net, and windows forms developement as a whole, so this might all be very basic, but here goes.
I would like to open a new form from some other form, and pass some selected object from a control on that form to the new form. The sensible way to do this, I thought, was as a parameter to the forms con... | stackexchange/codereview |
I opened my NotepadCodeLab, NotepadAdv1 project, and got this as soon as I built and ran:
[2010-11-01 14:42:48 - DeviceMonitor]Sending jdwp tracking request failed!
[2010-11-01 14:42:48 - Logcat]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(A... | stackexchange/codereview |
I need to set up a CheckboxGroup checkboxes with values loaded with json from some url.
What is a correct format of JSON?
Many thanks for help!
Update: I'll clarify my problem.
I'm using EditorGridPanel. Rows are Periods. There are columns Start_at, Finish_at, Region. First and second are date and everything ok with th... | stackexchange/codereview |
I want to understand how to set the parameters of properties (accessors).
I took the following code from an example of Kal calendar.
// Holiday.h
@interface Holiday : NSObject
{
NSDate *date;
NSString *name;
NSString *country;
}
@property (nonatomic, retain, readonly) NSDate *date;
@property (nonatomic, retain,... | stackexchange/codereview |
I'm generating a dynamic assembly using Reflection.Emit which includes a single class. I have a bug which is causing a BadImageException. To resolve this I need to see the compiled code, and therefore I'm saving the dynamic assembly to disk.
I've already tried PEVerify against the assembly which seems to think there ar... | stackexchange/codereview |
For some reason, whenever I create a new class by right clicking on a project in the Solution Explorer pane and choosing Add Class or Add New Item (which is a class), the pane to edit the code for the class shares the tab group of Solution Explorer and not the tab group of other code windows I already have open. A pict... | stackexchange/codereview |
How do I convert a decimal number to a hex string in Perl?
For example, I would like to convert 2001 into "0x07" and "0xD1".
| stackexchange/codereview |
I am geeting an error customTabBarController not a structure or union?
What the reason for this kind of error?
Many Thanks in advance for your help.
| stackexchange/codereview |
I have the following Combo box binding which was within a WPF window. I needed to create the window as a UserControl and since doing that my binding will not show the itemSource.
ComboBox Width="200" ItemsSource="{Binding CallerChoices}" SelectedValue="Sam" SelectedItem="{Binding CallerChoosen}"
The Item source Caller... | stackexchange/codereview |
I developed an outlook add in (custom task pane), with web browser in the user control.
All the things working well beside the backspace or the delete button when I am writing something in text box in the web browser, I can't use those keys, am I missing something?
| stackexchange/codereview |
I have the following Java class structure. (JDK 1.6.0_21)
Class C extends B` {
//Nothing relevant
}
Class B extends A {
public void clear() {
// whatever
}
}
Class A {
public void clear() {
// whatever
}
}
I had an object c of type C. When I was calling c.clear(), it was calling the clear() method ... | stackexchange/codereview |
A contact has_many notes; notes belong_to a contact. In my notes controller, after a successful save of a Note, I redirect to the note's contact using:
format.html { redirect_to(@note.contact, :notice => 'Note was successfully created.') }
In my unit test, I'm testing the ability to create a note and redirect to the ... | stackexchange/codereview |
Microsoft just announced the new C# Async feature. Every example I've seen so far is about asynchronously downloading something from HTTP. Surely there are other important async things?
Suppose I'm not writing a new RSS client or Twitter app. What's interesting about C# Async for me?
Edit I had an Aha! moment while wat... | stackexchange/codereview |
I want to generate a link
http://site/?code=xxxxxxxxxx
Where xxxxxxxxxx is an encrypted string generated from the string user01. And I will need to convert it back later.
Is there a simple way to encrypt and decrypt a string like this?
| stackexchange/codereview |
I am calling a function that returns the result of an ajax GET request using jQuery.
How do you return its result through the function to the callee?
function makePrPoContent(s_firstName, s_lastName, s_email){
$.get('/includes/snippets/privacy_policy.jsp', {
firstName: s_firstName,
lastName: s_lastName,... | stackexchange/codereview |
just encountered a problem at dict "type" subclassing. I did override __iter__ method and expected it will affect other methods like iterkeys, keys etc. because I believed they call __iter__ method to get values but it seems they are implemented independently and I have to override all of them.
Is this a bug or intenti... | stackexchange/codereview |
I am combining two feeds, with enclosures, and items that don't have enclosures are showing up with empty enclosures.
Here's the code with the offending bit in bold:
<item>
<title><?echo $item->get_title(); ?></title>
<guid><? echo $item->get_permalink(); ?></guid>
<link><? echo $item->get_permalink(); ?></link>
**<? i... | stackexchange/codereview |
I have a .NET app with buttons which use numbers for mnemonics. (e.g. "&1 - Check" and "&2 - Cash") When I hit Alt+1, I expect the Check button to be clicked. This works when I use the standard number keys on a keyboard. However, when I hit Alt+1 using the number pad, Windows takes over and inserts the symbol that matc... | stackexchange/codereview |
When I create a new database, by default the files are saved to c:\program files... but I would like them by default to be saved into a different location WITHOUT having to adjust anything. Is there a way to have this done by default?
Perhaps there's some stored system procedure that I would have to change?
| stackexchange/codereview |
I want to do something like this...
SELECT DISTINCT T1.*
FROM T1
INNER JOIN T2 ON T2.ID1 = T1.ID1
INNER JOIN T3 ON T3.ID2 = T2.ID2
--FOLLOWING CAN BE ADDED MULTIPLE TIMES (LOOPS IN C#?)
INNER JOIN T2 AS T2A ON T3.ID2 = T2A.ID2
INNER JOIN T1 AS T1A ON T1A.ID1 = T2A.ID1
--END MULTI
WHERE T1.ID1 = 1
AND T3.ID3 = 2
AND ... | stackexchange/codereview |
I have a class which has a private variable of type generic Stack.
Inside the class I've declared a Foo method.
After examining the IL I've noticed that the target of the method Push is actually the method call set_Property2 rather then the field of the class.
How does the compiler actually make the connection between ... | stackexchange/codereview |
I'm writing a program in Visual Basic 2010. It's a HMI (Human-Machine Interface) and therefore has a whole whack of buttons that just send commands to other devices. As a result, there are a huge pile of event handlers for clicking buttons that can't really be broken down into modules (unless my understanding of module... | stackexchange/codereview |
I have this code:
protected static string MakeGetRequest(string url, Action<IAsyncResult> callback)
{
var request = (HttpWebRequest)HttpWebRequest.Create(new Uri(url));
request.BeginGetResponse(callback, null);
}
This will not compile, I get an error on the BeginGetResponse line:... | stackexchange/codereview |
Is there a way to write a conditional switch statement in JavaScript?
I'm guessing not, since the following is always going to default:
var raw_value = 11.0;
switch(raw_value)
{
case (raw_value > 10.0):
height = 48;
width = 36;
break;
case (raw_value > 5.0):
height = 40;
width = 30... | stackexchange/codereview |
I have the following HTML text :
Country/<i>List it here</i><br><font color="#ff00ff">Dubai</font><br><br>
How do I extract 'Dubai' out of the above HTML? I have few hundreds such lines, kind of urgent, so not researching BeautifulSoup or XML parser implementation.
Thanks much!
| stackexchange/codereview |
I have achieved nice a two column layout form with the help of CSS wiht the help of the following guide.
http://articles.sitepoint.com/article/fancy-form-design-css
My markup looks roughly like
<form>
<fieldset>
<legend>
<ol>
<li>
<label>
</label>
<field>
... | stackexchange/codereview |
I have a single Swing JFrame which contains a couple JLabels, a few read-only JEditorPanes, and a couple buttons. JAWS users are requesting that the application be read with less user interaction required. Right now, the application starts with a certain element in focus, and the user has to press tab to move focus and... | stackexchange/codereview |
In the iPhone email application once I click on the search bar it shifted to top and the background gets black. How to achieve this type of effect in the code? Do we need to create a custom UIView and make this shift explicitly?
| stackexchange/codereview |
I have some Abstract Factory
public interface AbstractViewersFactory {
IAbstractShapeViewer createRectangle(BaseOperationsListener<RectangleDTO> p);
IAbstractShapeViewer createOval(BaseOperationsListener<OvalDTO> p);
IAbstractShapeViewer createTriangle(BaseOperationsListener<TriangleDTO> p);
}
And Its imp... | stackexchange/codereview |
If the code is
<form>
<input type="radio" name="font"> Arial</input><br>
<input type="radio" name="font"> Times New Roman</input><br>
<input type="radio" name="font"> Monaco</input><br>
</form>
<script>
$('form input').each(function(i, e) {
alert($(this).text())
})
</script>
It shows 3 empty strings... | stackexchange/codereview |
I am currently digging into the whole Flash 3D stuff and I am quite unsure which engine I should use. I really prefer Haxe for development but ActionScript 3 is also fine.
Therefore I would like to ask you about experiences you have made!
If you answer this question please consider the following points:
Easy to use? E... | stackexchange/codereview |
ok, like an idiot, in Interface Builder i started messing around with the connections and deleted a few connections (ie. delegates, controllers) and now when i build and run, all i get is a black screen. I know you cant see my code but could someone guess at what i would need to reinstate to get a working app back!
Tha... | stackexchange/codereview |
Typically I could copy values between two java beans, which have identical property names, using BeanUtils with java reflection e.g. PropertyUtils.setProperty(....)
In protobuf Message, we use the message builder class to set the value. This works but I would rather use reflection to automatically copy properties from ... | stackexchange/codereview |
Possible Duplicates:
How to alternate HTML table row colors using JSP?
Table row - Giving alternate colors
Can anyone provide basic code for dynamically adding rows in a table with alternate colors using CSS in jsp file kindly provide this code?
| stackexchange/codereview |
I have a report with an embedded hyperlink to an on demand sub report. I am trying to make the hyperlink invisible and then place it on top of a text object so that when a user clicks on the text object, the link activates and takes the user to the sub report. i tried formatting the sub report font to crNocolor in the ... | stackexchange/codereview |
I'm just getting to grips with TeamCity and MSDeploy and have deployment to a dev environment triggered by SVN commit working nicely. The question I have is in terms of releasing to a test environment; I want to do this on demand and based on a specific revision number. What's the best way to configure a TeamCity build... | stackexchange/codereview |
It is strange, but I can't get the ZCatalog working. Everything is done by the book and still the results are always the same full list.
You can see here:
http://nfp-bg.eionet.eu.int/waste/en/search-results?catalogTextIdx=selection
What I have done so far:
Created ZCatalog Object
Created ZCTextIndex Lexicon with the... | stackexchange/codereview |
I have a code library (written entirely in C) that I typically compile under Windows, into a .DLL.
I want to compile it under Linux so I can distribute it. I don't care if I distribute it as a .a, a .so, or a bunch of .o files.
All of the individual .c files compile successfully. But when I try to compile a test execut... | stackexchange/codereview |
I am trying to develope an app on canvas ,i am drawing a bitmap on canvas with the help of canvas.drawBitmap().After that i want to convert that canvas into bitmap.
can anyone give me suggession
thanking you in advance
| stackexchange/codereview |
i am running visual studio 2010, and as soon I choose Silverlight 4 as build environment, it prompts me to download developer tools for silverlight 4 (http://go.microsoft.com/fwlink/?LinkId=168436)
I have downloaded it multiple times and even restarted machine.
Does anyone know what could be the potential issue?
| stackexchange/codereview |
For example, I use:
$('test-div').html("<div></div>")
Actually the html is changed, but when I click "view source" from the browser, in browser the html is not changed, is it a bug for the browser?
Thanks.
| stackexchange/codereview |
I dont mean a variable in a class but a default value for the class as a whole.
struct Scalar {
unsigned int value;
void toThePowerOf(int power);
// etc.
}
I'd like to be able to do something like
Scaler foo;
foo.value = 2;
foo.toThePowerOf(2);
std::cout << foo << std::endl; // Outputs 4!
Is that possib... | stackexchange/codereview |
I'm implementing an API. The API accepts/returns JSON content type.
Now, suppose that the data submitted by some POST request is not valid, like a missing attribute, or a duplication exists for the same data.
What is the standard HTML response code in that case?
| stackexchange/codereview |
I have the following X.aspx code..to download excel file from Server
if (ss[5] != "")
{
Response.Clear();
Response.AddHeader("Content-disposisition", "inline;filename=x.xls");
Response.ContentType = "application/vnd.ms-excel";
Response.Transmi... | stackexchange/codereview |
I have a stored proc, say, "call_Me" with few parameters:
Declare @Greet varchar(100) = 'Hi ||User||'
Exec Call_Me 1,'something', @Greet --parameters: bit, string, string
during the call, I want to be able to replace the
||User||
bit with something else. normally, in a select statement, I would do this:
select 1, ... | stackexchange/codereview |
I am behind a proxy and I have a git gem in my Gemfile. How can I configure bundler to use git with the appropriate proxy parameters?
I already have $http_proxy appropriatelly set, as well as my .gemrc . Still, it doesn't work.
| stackexchange/codereview |
I have a project that needs to draw text in a view with a gradient fill in a custom subclass of NSView, like this example below.
I'm wondering how I can achieve this, as I'm pretty new to Cocoa drawing.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.