instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I needed to make a change to a 3rd party library, so I edited the files in the egg (which is not zipped). The egg lives in site-packages in a virtualenv. Everything works fine on my dev machine, but when I copied the egg to another machine, the module can longer be found to import.
I'm sure I went about this the wrong ... | stackexchange/codereview |
I want to create a function for the following:
<select name="journey_type">
<option value="1">One Way</option>
<option value="2">Return</option>
</select>
<div id="return_datetime_div" style="display:none;">
<input id="Enquiry_return_datetime" type="text">
</div>
The return_datetime_div is displayed when the user sel... | stackexchange/codereview |
I had a look at Asynchronous data through Bloomberg's new data API (COM v3) with Python? before posting which has some pretty awesome info, but what I need is a way to create a CUSIP-Description table in a database using the Bloomberg API (to save $$$ by avoiding a CUSIP subscription)
Does anyone know how to populate a... | stackexchange/codereview |
I'm using Magento and I am trying to display all sub categories from one category (42) in an unordered list. I'd also only like to show those subcategories that are active.
I've googled lots of 'solutions', but none seem to work for me. I was wondering if anyone has a definitive answer to this?
Thanks,
Neil
| stackexchange/codereview |
I've developed an index and search application with Lucene library. but this library has some limitation in custom ranking in my context, aside from its performance, i need scalability and access to all kinds of word frequencies and etc. is there any powerful open source full text library available?
| stackexchange/codereview |
InnoDB Storage Engine Dropped From Oracle MySQL Classic Edition? What does this mean for the average developer who uses mysql or shall we start looking for alternatives?
http://digitizor.com/2010/11/05/innodb-dropped-from-oracle-mysql-classic-edition/
Thanks in advance ;-)
Just trying to understand what this really mea... | stackexchange/codereview |
I can find numerous examples of Hiding and unhiding form elements in jQuery. I can also find numerous examples of cloning form elements in jQuery. But is there a way to hide/unhide cloned form elements in jQuery?
For example, lets say I have 3 product categories (selectable from a dropdown box). Each of these produc... | stackexchange/codereview |
I want to edit keystrokes, as when I type "--" I would like the program to edit the "--", wherever I entered it and turn it into an actual dash (—), how would I do so? Thanks a lot!
| stackexchange/codereview |
VS2010 .NET 4 - This simple app works using my local system. When I publish it on an IIS 7 web server, I get this error when the application runs this Linq query with a containes function.
var results = view_UserInfoRepository.View_UserInfo.Where(x => x.Email.Contains(eMail)).OrderBy(x => x.Email);
Server Error in '/... | stackexchange/codereview |
I have a user model. In it, I have set validations that are used while registering user. That works fine. But when user edits his profile information, I don't want to validate some fields like password, email, etc. How it is possible. Below is code.
<?php
class User extends AppModel{
var $name = 'User';
// us... | stackexchange/codereview |
Is it possible in Mustache to read variable from parent section while in child section?
for instance my example below, I want the {{order_store.id}} to read variable from it's parent $order_store[(array index of current child loop)]['id']
the template.mustache
{{#order_store}}<table>
<caption>
Store Name: {... | stackexchange/codereview |
How would I go about creating a XNA primitive Rectangle shape?
Thanks for the advice.
| stackexchange/codereview |
I have a 'classic' ASP.NET app (.NET 3.5) with a pretty standard runat="server" style form with server-side controls and an 'Execute' asp:button. In the code-behind, the executeButton_click handler processes some of the other controls, runs a report, and drops the result into an asp:label. So the effect of pressing the... | stackexchange/codereview |
Suppose I have below python file structure:
\function_group
|-__init__.py
|-sub_function1
|----|__init__.py
|----|sub_sub_func1.py
|----|sub_sub_func2.py
|----|sub_sub_func3.py
|-sub_function2
|----|__init__.py
|----|sub_sub_func1.py
|----|sub_sub_func2.py
|----|s... | stackexchange/codereview |
To write programs in C which reads lines from a file
text, whose name will give the user at runtime.
The program should select a random line of the file and to print the screen, giving the user a time X to type the words seen on the screen.
The time of X depends on the length of each phrase and you can consider that ea... | stackexchange/codereview |
How do I add a sales section, buy 1 get 1 free or buy 2 get 1 free or buy 3 get 1 free, etc.?
| stackexchange/codereview |
I have static variables and methods in a class. Will they be inherited in derived classes or not?
For example:
class A
{
public static int x;
public static void m1()
{
some code
}
}
class B:A
{
B b=new B();
b.m1(); // will it be correct or not, or will I have to write
//... | stackexchange/codereview |
I have a large database with thousands records. Every time a user post his information I need to know if there is already the same/similar record. Are there any algorithms or open source implementations to solve this problem?
We're using Chinese, and what 'similar' means is the records have most identical content, migh... | stackexchange/codereview |
Just experimenting
I've used this query on MySQL:
insert into table_name (text_col) values (1919191919191919191919191...91919191)
Where that integer is 174 characters long. text_col is of type "TEXT".
I know that integer exceeds a limit, because, instead of that number, I get a 65-long 999..9999 one, but I don't get w... | stackexchange/codereview |
I have a 3 Movie players added to three different views. When I switch randomly between the views when the movie is only played for a few seconds, out of the blue the player vanishes on all subsequent views.
I am not releasing my view any where so, I cannot figure out why my player disappears
here is the code I use in ... | stackexchange/codereview |
I need to install to a location that is accessible to all users on a PC and also has write access under User Access Control (Vista and Windows 7). Initially I was installing to the program files directory but this does not have write access under UAC. I am currently installing under the app files directory but this o... | stackexchange/codereview |
I am developping an intranet for a shop. I need to print a receipt by clicking a submit button on php page. I do not want to see Windows print dialog box.
how can I do this. I need some advise
I will use Windows XP, I have full control of the system which this application will be running, Any application/plugin/exploit... | stackexchange/codereview |
I was checking some posts on this site, but still can't find the solution.
Here's my html:
<div id="id1">
<div id="id2">
<div id="id3">
<a id="id4" class="divItem">
text
</a>
</div>
</div>
</div>
and css:
#id1 {
width:960px;
margin:auto;
}
#id2 {
position:relative;
font-family:Calibr... | stackexchange/codereview |
Possible Duplicate:
How we can add write access to a directory programmaticaly in C#?
When I make a Directory with Directory class in C#, it is read only. what is the problem?
How we can change this attribute programmatically?
| stackexchange/codereview |
I need to track an event in google analytics when someone fills out a form and clicks submit. The resulting page that comes up is a standard dashboard-type page, so in order to track the event on that page I'd have to pass in the event in the url and then read the url and output the google analytics event tracking jav... | stackexchange/codereview |
I have the following code:
Unity Container:
Settings settings = CreateSettings();
container.RegisterInstance(settings)
.RegisterType<MyHttpHandler>(new InjectionProperty[]
{
// How do I tell Unity to inject my settings created above?
new InjectionProperty("Settin... | stackexchange/codereview |
Traditionally I use the regular asp.net website (created using the File > New Website). Recently, I opted to work off of a full fledged project (created using File > New Project > ASP.net Web Application).
I've been using the same custom controls for years without incident. I simply create the new website, place my C... | stackexchange/codereview |
I'm working on a prodgect in which I need a huge number, 1 billion digits. I'm writing in c, though I'll take answers from objective-c.
Also, I'm wondering about this function/data type I found: Biginteger.
I would like to know what language people use this in and if it will help my problem.
Please respond,
Frederi... | stackexchange/codereview |
I get
java.lang.OutOfMemoryError: Java heap space
when I try to compile an aspecj project. The project is a maven 2 project and I have set maven-compiler-plugin to use up to 2048m memory. But this error just doesn't go away. What else can I do to increase the heap space?
| stackexchange/codereview |
I have a custom validator that checks all the values in a subform to make sure that they make sense in relation to each other. In the event that this validator fails, I'd like to have an error decorator at the top of the subform to display the error message. Is this possible?
I've already set up the decorators like s... | stackexchange/codereview |
I am looking for a way to wire up an ASP:LinkButton to appear as a link but in the background (100% in the code behind, no dummy pre-filled form in the markup) do a form post (target=_blank). I have a form action, method and parameters to pass that I will query for in the "click" event of the LinkButton. What is the ... | stackexchange/codereview |
I'm hoping someone can enlighten me as to what could possibly be causing this error:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I cannot really post code because this error seems to get thrown in any random area of the application. The application will run a... | stackexchange/codereview |
I'm looking for a simple (ideally inline) tsql statement to implement the following translations. We have reference number field in our data that we wish to obscure. It's in the format of AAA1234, always 7 digits, with the first three being alpha characters and the rest being numbers. We could use some kind of strong e... | stackexchange/codereview |
I just realized that my emulator can't access the web.
My computer runs on WiFi and perhaps the emulator isn't able to detect it.
how to get it working?
emulator isn't running on Airplane mode.
Please help.
| stackexchange/codereview |
I have two buttons one with id=enterToSubmit and other with id=clickToSubmit. When a user hit the enterkey, I want "enterToSubmit" button to submit form
not the "clickToSubmit" button.
On the same page, I have a textbox id=title, and on Page Load I hide "enterToSubmit " button, until user enters something in the text... | stackexchange/codereview |
I can access the text within a textbox within my repeater, but I am unable to pull the text value from a label within my repeater.
The repeater is populated from a datatable with row(x) being filled by sqlreader(x), I don't know if that makes a difference.
I cannot use javascript for this. I need to access the label va... | stackexchange/codereview |
I have a icon which has a few different sizes (16px, 32px, 64px). I am calling ToBitmap() on it, but it is always returning the 32px image. How do I retrieve the 64px one?
| stackexchange/codereview |
I am trying to save and read back some application settings stored as NSStrings in an iPhone app and have been having some trouble.
The code to save looks like:
NSMutableArray *array = [[NSMutableArray alloc] init];
[array addObject:accountID];
...
[array writeToFile:[self dataFilePath] atomically:YES];
... | stackexchange/codereview |
I am using infinity_test gem with rspec in a rails project. How can I get the output in color? I tried setting in terminal
rspec --color
I then ran "rspec spec/" to make sure color output was working. Then I run
infinity_test
and the test output is no longer in color. How can I get it to output in color?
| stackexchange/codereview |
otherThread.join( time ) appears to wait time in real milliseconds. I want to wait time in actual CPU time so that I can get consistent behavior within my application.
I've done a quick look at ThreadMXBean but that doesn't quite seem to have what I wanted ( it tells me the threads actual CPU time, but offers no conve... | stackexchange/codereview |
I want to add fields and buttons to a BlackBerry PopupScreen.
| stackexchange/codereview |
I'm have a problem with Upload with strongly typed view in ASP.NET MVC.
The value of input (view) is coming null for the view. My code follow:
<% Html.EnableClientValidation(); %>
<% using (Html.BeginForm("Create", "DownloadsSub", FormMethod.Post, new { enctype = "multipart/form-data" }))
{%>
<%: Html.Validatio... | stackexchange/codereview |
i have a list which is being populated from a program that takes user input, i am having a problem when it comes to adding a person or group to one of the columns in the list. does anybody know how to do this?
| stackexchange/codereview |
Just getting into Spree now. Is it true, you have to restart the server everytime you make a change to the CSS? Any strategic workarounds?
| stackexchange/codereview |
In Spring I generated form create.jspx with some edit boxes and some dropdown select boxes.
The form than sould be tested in Selenium IDE, but after recording test case the case cant' be replayed.
For example, form:
Label1: [Sample text]
Label2: [Selected_item0]
Selenium recording would be:
click | Edit1_id ... | stackexchange/codereview |
I have this two kind of strings:
EVASA 2144
IN ELABORAZIONE 16278
I need some perl script to substitute all the blanks with just one.
The output I need is:
EVASA 2144
Any suggestion?
| stackexchange/codereview |
I have created a simple WCF-Service which I want to be accessible via https. The WCF-Service uses a UserNamePasswordValidator, customBinding and UserNameOverTransport as authentication mode. I run it in the IIS7.5 where I have created a self-signed server certificate.
I try to connect to that service with an Silverligh... | stackexchange/codereview |
Do XML parsers translate escaped characters such as 
 and 
 even when they occur in CDATA?
I was confused by the answer to this question: Does the XML specification states that parser need to convert \n\r to \n always, even when \n\r appears in a CDATA section?
...because it quotes from the spec saying that ... | stackexchange/codereview |
I have a user report (unfortunately can't verify it due to lack of appropriate machine) that the C preprocessor (cpp) command on Mac OS X 10.6.4 doesn't remove C++/C99 double slash // comments from files it processes, no matter what option it's given. This is the gcc version:
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 ... | stackexchange/codereview |
I am making an application in which I want to implement apple push notification service. I am following the step-by-step instructions given in this tutorial.
But still, the methods are not called. I don't know what is causing the problem. Can anyone help me?
- (void)application:(UIApplication *)application didReg... | stackexchange/codereview |
I have a form that I pull in via XHR, so it isn't ready when the DOM is initially rendered. Currently I use something like:
jQuery("[name='myform']").ajaxForm({ /* code here */ });
and it works fine on a stand alone app. The app I'm embedding it in is huge, and I need to be able to bind ajaxForm to myform before myfor... | stackexchange/codereview |
We're having problems when trying to deploy a number of projects which use zc.buildout - specifically we're finding that they want to put their PYTHON_EGG_CACHE directories all over the show. We'd like to somehow set this directory to one at the same level as the built-out project, where eggs can be found.
There is som... | stackexchange/codereview |
There's this question but it has nothing close to help me out here.
Tried to find information about it on the internet yet this subject is so swarmed with articles on "how to win" or other non-related stuff that I could barely find anything. None worth posting here.
My question is how would I assure a payout of 95% ove... | stackexchange/codereview |
Is there a good tool out there to automatically generate jUnit test cases based on some primitive template? This is so that test cases can be written by engineers who do not have a lot of Java or jUnit background. As background information, this is for black box testing. If there is some other alternative to run reg... | stackexchange/codereview |
hey guys,
i'm looking for a finished product that i can use on my website. just a really simpel forum, where people can register and then post questions or discuss something. i wouldn't even need topics or subforums. just one category would be enough.
i know there is stuff out there like phpbb forums, however most of t... | stackexchange/codereview |
How can you execute some JavaScript before an Ajax request happens? I'm already using the following;
function pageLoad() {
var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_beginRequest(OnBeginRequest);
}
function OnBeginRequest(sender, args) {
}
but that seems to be executing simultane... | stackexchange/codereview |
We've had a "Validators.skin" file in our App_Themes dir for over a year now and it has one definition:
<asp:RequiredFieldValidator runat="server" Display="Dynamic" ErrorMessage="Required" />
That has worked on our dev machines (XP and Win7 IIS7) without problem.
We just deployed to a Win2008 test server, IIS7.5 and a... | stackexchange/codereview |
I'm trying to build a Flex application and have a question regarding directory structure. In my application you have a main section, which is split into categories and each category is split into sub categories, all accessible through ViewStacks, popups, etc.
For example:
MyCompany
Users
Add
Edit
When it comes to... | stackexchange/codereview |
I'm programming a very big software.
It has a lot of projects inside it.
One of my projects is a UI thread. I want to post messages to this UI thread, from the main project.
When I use PostThreadMessage (after getting the thread by GetCurrentThreadId() ), everything works fine, except the times when a MessageBox is ope... | stackexchange/codereview |
so I wanted to have a table with multiple sections and each one with multiple cells. By touching a section's header, this section should expand and the others should minimize, leaving only the header visible.
I looked up some suggestions and accomplished this by a) setting the cell's height to 0 and reloding the data a... | stackexchange/codereview |
In my app i'm adding alot of pins and in viewForAnnotaion I set animatesDrop=TRUE on my MKPinAnnotaionView. The problem is that when having 200+ pins dropping one by one takes a long time. I have seen Apps that drops all pins at once and wonder how to do that.
Let me know if i'm not clear.
Thanks!
| stackexchange/codereview |
Whats the command to find Nic cards serial numbers in linux ? I tried dmidecode options and lshow
may be I missed some thing
| stackexchange/codereview |
I have a large number of html documents that need a variable number of lines removed from the top and bottom. The part I want always starts with <div class="someclass"> and the bottom section always starts with <div class="bottomouter>. Something like this:
<html>
[...]
<div class="someclass"><!-- stuff i want to keep ... | stackexchange/codereview |
I'm using Monotouch for iPhone/iPad development and I have a built in system where the user can submit a bug report from the app. It would be nice to capture their "settings" which I store in NSUserDefaults.StandardUserDefaults so I can see their exact configuration.
Anyone know how to capture the NSUserDefaults.Stand... | stackexchange/codereview |
Background:
I have an Azure application with one web role which is an ASP.NET application (C#), which uses a charting application to display the results of a calculation. The charting application needs an XML file as input. In order to access this XML file (referenced in the JavaScript), I use XDocument and related... | stackexchange/codereview |
I am writing a website based off of wordpress and am having some difficulties. I know I can use
<?php wp_list_pages('title_li=&depth=1'); ?>
However, how can I assign a mouseover attribute to the <li> that is created? Also, if there are children pages, they need to be in a nested <ul> and show as a dropdown when the... | stackexchange/codereview |
Google Web Search API has been deprecated and replaced with Custom Search API (see http://code.google.com/apis/websearch/).
I wanted to search the whole web but it looks like with the new API only custom sites can be searched.
Is there a way to search the whole web programmatically? I was able to query the old API usin... | stackexchange/codereview |
Maybe a simple explanation for this but it seems that glassfish (on port 8080) does not respond normally to netcat requests ...
for example:
nc localhost 8080
OPTIONS
... nothing is 'returned' and netcat exits. If you do a similar thing against www.google.com 80 you will get an expected error message returned from the... | stackexchange/codereview |
rails g model GiftProduct -p --migration=false --fixture=false
i tried this code,and it reduce some generate file but still can't find how to avoid unit test file genertate,
in fact i only want a model file
i'm new on rail3,hope someone could help me
below is the generate result
invoke active_record
create app... | stackexchange/codereview |
ím trying to add jstl/jsp component to a spring+flex+hibernate project. Im using Tomcat 5, downloaded and added the jakarta-taglibs-standard-1.1.2 dependencies, made some changes to the web.xml, etc... dont want to get drifted away from my current problem, this piece of code:
<c:forEach var="i" begin="1" end="10" step=... | stackexchange/codereview |
I have 5 text box contaning 5 contact no of a particular person. I want to insert those 5 contact no in tblContact(person_id|contact_no). Can I insert these 5 contact no in one sql statement OR I have to call a loop to insert 5 records?
| stackexchange/codereview |
i have 3 tables
table A, table B and a relational table C
table A has ta_id as primary key along with other columns
table B has tb_id as primary key along with other columns
table C has ta_id, tb_id as foreign keys along with other columns.
i wanted to find all the rows of table B which have a common ta_id in table C.
... | stackexchange/codereview |
I am new to Mac-OS-X development. I want to get the users Network details just for displaying it in my application. Details such as the IP address, Subnet mask, status whether connected or not, etc.
Is it possible to get the same??
And secondly, Is the IP address different for wireless lan connections and the normal et... | stackexchange/codereview |
I am currently using a C++ IDE for something that will need to work on C, and wanted to make sure that I won't have problems with this later on. After making the struct below:
typedef struct test {
int a;
int b;
};
I then create an instance of it using
test my_test; then stuff like my_test.a = 5, etc... and thi... | stackexchange/codereview |
Is there an easy way to undo a tortoisegit revert?
Here's more info: I just committed a large multi-file checkin, and right afterwards decided I instead wanted to commit a separate small checkin before the big one, to make it easier to amend that big checkin tomorrow.
So I brought up the log in tortoisegit, right-cli... | stackexchange/codereview |
XSD
<?xml version="1.0" encoding="windows-1252"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xml.netbeans.org/schema/Person"
xmlns:tns="http://xml.netbeans.org/schema/Person"
elementFormDefault="qualified">
<xsd:element name="root">
<xsd:complexType>
... | stackexchange/codereview |
I was reading the article "Java theory and practice: Building a better HashMap" that gives an excellent overview about the implementation of ConcurrentHashMap.
I also found some discussions over it on Stackoverflow here.
I question though I had in my mind is "what are the scenarios/applications/places" where Concurr... | stackexchange/codereview |
Just trying to figure out how you can test multiple selectors within an existing piece of code i.e. like this
if (!(jQuery('#selector1 || #selector2').hasClass('some-class'))) {
//code here
}
This doesn't work but wondering if there is anything I can do to make it work ?
| stackexchange/codereview |
How would one go about casting a ifstream into a istream. I figure since ifstream is a child of istream I should be able to do so but I have been having problems with such a task.
std::istream & inputStr = std::cin;
std::ostream & outputStr = std::cout;
if(argc == 3){
std::fstream inputFile;
inputFile.open(... | stackexchange/codereview |
Everything is working correctly but the uploadifyUpload() function doesn't appear to be triggering. It is not accessing the add_list.php script whatsoever.
Here is my code from my header..
$(document).ready(function() {
$('#sampleFile').uploadify({
'uploader': 'include/uploadify/uploadify.swf',
'sc... | stackexchange/codereview |
In a module I defined a class with the following __init__ method:
class RMLoader(object):
def __init__(self):
self.now=datetime.datetime.now()
then I'm importing that module in console:
>>> from video.remmedia.loader import RMLoader
>>> loader=RMLoader()
>>> loader.now
datetime.datetime(2010, 11, 4, 17, 40... | stackexchange/codereview |
How can I configure Spring Roo to replace Log4j with SLF4J and Logback as the default logging libraries?
| stackexchange/codereview |
I want to do something similar to iPhone's photo viewer. When you single tap, the UI bars disappear after a short delay. When you double tap, it zooms in. But I don't want anything to happen on double tap because I haven't yet implemented zooming in.
Anyone know how to do this?
[This post] didn't really help. Unless yo... | stackexchange/codereview |
I've recently bee seen a number of code examples with stuff like
1 << 20
although I knew this operator could be used on integers I'm not sure what it does and every google search I try doing on it returns stuff about cout << but nothing on the integer operations. Could someone tell me what this operator does to inte... | stackexchange/codereview |
Setup
I have an AutoMapperConfiguration static class that sets up the AutoMapper mappings:
static class AutoMapperConfiguration()
{
internal static void SetupMappings()
{
Mapper.CreateMap<long, Category>.ConvertUsing<IdToEntityConverter<Category>>();
}
}
where IdToEntityConverter<T> is a custom ITy... | stackexchange/codereview |
Let's say I have a 100% managed .Net application running.
I can attach to it via a visual studio debugger and be able to do things like grab references to a ServiceLocator (if it's static) and so on. I would like to be able to do this in Powershell.
It seems like this should be possible but I have no idea where to sta... | stackexchange/codereview |
I have read plenty of questions and answers here about weak linking, checking if a class is valid before executing code etc. My app is basically finished and ready (at least I thought it was, my first app for the store) but I need to fix this problem so my app natively runs on the iPad.
The error I'm receiving is the ... | stackexchange/codereview |
I'm having trouble locking on an item within a Collection - specifically a ConcurrentDictionary.
I need to accept a message, look up that message within the Dictionary and then run a lengthy scan on that. As the program takes a lot of memory, after the scan the objects return true if they think its a good time to delet... | stackexchange/codereview |
Follow up to What the heque is going on with the memory overhead of std::deque?
Visual C++ manages deque blocks according to the container element type using this:
#define _DEQUESIZ (sizeof (value_type) <= 1 ? 16 \
: sizeof (value_type) <= 2 ? 8 \
: sizeof (value_type) <= 4 ? 4 \
: sizeof (value_type) <= ... | stackexchange/codereview |
Due to my application being a quadratic root solver, and receiving input from a NumericUpDown in the form of 0 will throw a divide by zero error, I was wondering if it was possible to be able to specify that particular NumericUpDown control, not able to be set to 0 at all. Or, is it just easier to catch that with a co... | stackexchange/codereview |
Possible Duplicate:
Functional programming: currying
I'm reading the free F# Wikibook here:
http://en.wikibooks.org/wiki/F_Sharp_Programming
There's a section explaining what Partial Functions are. It says that using F# you can partially use a function, but I just can't understand what's going on. Consider the follo... | stackexchange/codereview |
const char* a;
how do I make sure that string 'a' is null terminated? when a = "abcd" and I do sizeof(a), I get 4. Does that mean its not null-terminated? if it were, I would have gotten 5 ?
| stackexchange/codereview |
I am wrapping a C module with SWIG for Python. Is there any way to turn all Python lists/tuples whose members are all of the same type (same kind of Swig object) to C arrays?
| stackexchange/codereview |
Since FPU Stack only has 8 slots, how can I add more elements. I have an array of 10 elements that I need to add. Here's what I have so far
_Average proc
finit
mov ecx, [esp + 4] ; get the number of elements
mov ebx, [esp + 8] ; get the address of the array
fld REAL8 PTR... | stackexchange/codereview |
I'm using JAX-WS (WAS 7) --> Websphere ESB 7 --> JAX-WS (WAS 7), populating a xsd:dateTime field with a timestamp.
Here's the flow:
WAS - Instantiate Response object
Populate XMLGregorianCalendar field in POJO [DatatypeFactory.newInstance().newXMLGregorianCalendar((GregorianCalendar)Calendar.getInstance())] "2010-11-... | stackexchange/codereview |
I rename few files (1234.xml, 9876.xml, 2345.xml etc) with .xml extension with the following code :
for i in *.xml
do
mv $i $i.ab
done
it becomes 1234.xml.ab, 9876.xml.ab, 2345.xml.ab...etc
Now, I want to rename it to 1234.xml.SD, 9876.xml.SD, 2345.xml.SD...etc.
These are 100 files.
How can this be achieve... | stackexchange/codereview |
I have been stuck on a particular part of my website-to-be for a few days and have been getting quite frustrated. I have code to upload a logo for a user (code below) inside the logo= setter in the user's activerecord model, but this prevents me from using the model's validations. Is there a way for me to rearrange the... | stackexchange/codereview |
I'm trying to run blocks of Ruby code from C++. I have two Ruby functions, one called Init(), and one called Loop(). The problem I have is that I can only Loop() so many times before I get a "stack level too deep" from SystemStackError. My Ruby code is not recursive as far as I can tell. As you can see, so far this Rub... | stackexchange/codereview |
Whats the easiest way of preventing multiple logins in cf?
<cfcomponent>
<cfset This.name = "Name">
<cfset This.Sessionmanagement="True">
<cfset This.loginstorage="session">
<cfset This.sessionTimeout = "#CreateTimeSpan(0, 0, 50, 0)#">
<cfset This.applicationtimeout="#createtimespan(0,0,50,0)#">
<cfset This.scriptPro... | stackexchange/codereview |
I'm debugging an intermittent truncation error in my application. The error in my logs looks like this:
System.Data.SqlClient.SqlException: String or binary data would be truncated.
The statement has been terminated. Generated: Tue, 02 Nov 2010 03:55:18 GMT
NHibernate.Exceptions.GenericADOException: could not insert:
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.