instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm facing a problem with GetHashCode and Equals which I have overridden for a class. I am using the operator == to verify if both are equal and I'd expect this would be calling both GetHashCode and Equals if their hash code are the same in order to validate they are indeed equal. But to my surprise, neither get called...
stackexchange/codereview
i want to show 4 posts in page and after 4 posts it will show next button to read next posts. <?php while (have_posts()) : the_post(); ?> <?php global $post; $myposts = get_posts('numberposts=4&order=ASC&category=3'); foreach($myposts as $post) : setup_postdata...
stackexchange/codereview
I want to make a database user, which would use my predefined functions (login(pass, login), get_users_you_are_in_charge_off(login, pass) etc.). Because this should be open to anybody, i want to create a db user/group role that would only allow that user to execute my predefined functions. The problem is that those fun...
stackexchange/codereview
I would like get meaning of selected word using wikionary API. Content retrieve data should be the same as is presented in "Word of the day", only the basic meaning without etympology, Synonyms etc.. for example "postiche n Any item of false hair worn on the head or face, such as a false beard or wig." I tried use doc...
stackexchange/codereview
Hey all -- I am pulling my hair out with relative imports in Python. I've read the documentation 30 times and numerous posts here on SO and other forums -- still doesn't seem to work. My directory structure currently looks like this src/ __init__.py main.py components/ __init__.py expander....
stackexchange/codereview
When I compile a program with #include where can I see the contents of that file, and also since that file contains declarations, where can I see the actual code used in those functions? Is it open to everyone or is it not available to the public?
stackexchange/codereview
I made a "GraphBar" custom view that is a RelativeLayout with a TextView on the bottom and an ImageView, varying in height, above that. Here is the code: public class GraphBar extends RelativeLayout { private int mAvailHeight; // space for the bar (component minus label) private float mBarHeight; // 0.0-1.0 va...
stackexchange/codereview
I have a python class as follow class Application(models.Model): name = models.CharField(help_text="Application's name",max_length=200) current_status = models.IntegerField(null=True, blank=True) class Meta: ordering = ["name"] @property def status(self): """Returns the current Appl...
stackexchange/codereview
I want to get a specific row in a OneToMany relation. E.g. getting the cheapest item of an order Example: public class Order { @Id @Column(name = "ORDER_ID") private Long id; ??? private Item cheapestItem; } public class Item { @Id @Column(name = "ITEM_ID") private Long id; private Long price; } How c...
stackexchange/codereview
I'm building a little MMORPG and im trying to use asyncore rather then threading. 1) How would i send data to certain clients, because in threading a saved each clients socket and current in a dictionary a with its unique id as a key. So how could i subjective send data to all the clients. Thankyou, please say if i did...
stackexchange/codereview
Can I have a stack data structure in matlab? For example a stack of integers where I can push elements in it like stack.push(i), get elements out of it like i = stack.pop() and check out if it is empty stack.isempty().
stackexchange/codereview
I'll synchronize the data from Google Contacts with a datastore in App Engine... i'm doing this in Python, and the datastore will be read later by a Java GAE instance. Using Expando felt natural, but i'm not sure if the Java instance is going to be able to read it properly. If the answer is 'no, Java won't read it', w...
stackexchange/codereview
can anyone help me solve the issue that I have ? in fact when I create a project on eclipse, the bin folder doesn't display and I am able to create a javadoc for my project. I need help please.
stackexchange/codereview
I have a very simple entity framework (.edmx) file, and a .svc rest service. Everything works fine for CRUD operations. I have many databases thats shares the exactly same schema. My next step is to let the client pass inn a parameter that could be the connection string or some other value identifying the user so that ...
stackexchange/codereview
I want to monitor my oki printer with munin, so I am trying to adapt this plugin to my printer. The table of pages in my printer http server is: <table width="560" border="0" cellspacing="2" cellpadding="3"> <tr class="sub_item_color"> <td class="normal" width="200" align="right" valign="bottom" rowspan="2...
stackexchange/codereview
I have 10 number in a set a variables. (say: 25, 33, 11, 4, 3.................) I want to get the biggest number in a message. How do I get it? Thanks Furqan
stackexchange/codereview
I'm struggling with code that looks like the example below (but actually does something useful). The block that is passed to def_my_method is of course created in the context of the class, when I want to evaluate it in the context of the instance that has the instance method. How do I do this? module Formatters # R...
stackexchange/codereview
You can see lots of briliant ideas in Open source projects. How authors found these ideas whey they don't exist yet? Should I learn software dynamics, history and trends(Nothing new under the sun?) for that? I don't want to start another github project called "API to xyz". What should I do??
stackexchange/codereview
I recently inherited a solution with about 10 projects in it. 6 of these projects are individual websites that are basically copy/pastes of the original. This means that any changes that need to be made must be made to each project in order to update all the websites. What I want to do is have one project for the webs...
stackexchange/codereview
Any ideas, i have made a previous post about this but i got no replys which gives mthe impression i am doing it wrong Any tips on how to do this? essentially i want to automate outlook like this ... Outlook.Application app = null; if (Process.GetProcessesByName("OUTLOOK").Count() > 0) { app = (Mi...
stackexchange/codereview
I am looking for a good short overview about things that are important when serializing data to files. What techniques exist to deal with later changes in data structures? Are there certain header structures that are commonly used? Specifically for C++: What library is appropriate for such tasks? Boost.Serialization? ...
stackexchange/codereview
I am using "FancyBox" in ASP.NET User Control (inside a Content Page). I want that a click(client side click) on a button 'placed on the page loaded into the FancyBox ,will call a JavaScript function, and in that function I want to enable a ImageButton contained in the parent page(The page that opened the FancyBox mod...
stackexchange/codereview
I have a table for posts and a table for categories, what i want is to select posts that are in a specific category. The problem is that the category is stored in another table and not in the posts table, here is the example: posts id title body --------------------------- 125 Some title Blah blah categories...
stackexchange/codereview
UPDATE: I provided better context for the code which I was using to access the contents of the XML file. I am making a Windows Phone 7 app in which I access an online XML file. However, the way the file is structured is causing me to pull the wrong items from the file. Here is the general structure of the file: <?xml...
stackexchange/codereview
I want to implementa slideshow of images through javascript and js files, where the slideshow contains top4 images. I used the script where the image array has static images. I want to convert it dynamically by finding my images names from index.aspx.cs files which are stored in hidden fields. How do I retrieve these...
stackexchange/codereview
Say we have a package named CYGPKG_FOO, which has a cdl_option "CYGPKG_FOO_FEATURE_A_ENABLE". I want a specific gcc flags (e.g. "-DFEATURE_A=1") added to the CFLAGS of this package when this cdl_option was enabled. But "The eCos Component Writer's Guide" said: http://ecos.sourceware.org/docs-3.0/cdl-guide/build.make.ht...
stackexchange/codereview
I'm taking some text and want to split it into an array. My goal is to be able to split it into phrases delimited by stopwords (words ignored by search engines, like 'a' 'the' etc), so that I can then search each individual phrase in my API. So for example: 'The cow's hat was really funny' would result in arr[0] = cow'...
stackexchange/codereview
I have found wrapper class for managing contacts, but I am constantly getting that application has stopped unexpectedly. I am trying to get some good and working code to start building open source library for managing contacts that would be simple enough for general use. Code was found on www(dot).higherpass(dot)com/An...
stackexchange/codereview
I have written a web application that posts a file via http to a restful web service. The web service can reply with a 400 or 403 response if the service finds any problems with the request. The response also contains xml describing the reason(s) for replying with a http error code. My web application posts the file to...
stackexchange/codereview
I have a list of drop-down elements dynamically created in my server side code. <select id="color1"> <option value="blue">blue</option> <option value="red">red</option> <option value="green">green</option> </select> <select id="color2"> <option value="white">white</option> <option value="orange">orange</option> <option...
stackexchange/codereview
If I have a constructor that takes a number of arguments: var Mammal = function(name, weight) { this.name = name; this.weight = weight; } Mammal.prototype.makeSound = function(sound) { alert(sound); } Mammal.prototype.getName = function() { return this.name; } and I want to do some inheritence: var...
stackexchange/codereview
I have some code that splits a session into strings by a - My session looks something like this 123-456-789- and I split it like this Dim MyString As String() = Session("MySession").Split("-"C) And i've got a some code like this Dim x as Integer For x = 0 to MyString - 1 Response.write("Ref: " & MyString(x) & "<br>...
stackexchange/codereview
I'm looking make use of the advantages of parallel programming in linq by using plinq, im not sure I understand the use entirely apart from the fact its going to make use of all cpu cores more efficiently so for a large query it might be quicker. Can I just simply call AsParallel() on linq calls to make use of th eplin...
stackexchange/codereview
I am developing a Spring based JMS application which will be deployed as a web application. It has no servlet part except the web.xml with listener which loads the Spring context. When JMS listener receive a message, I need to read a resource file to get the reply message. But I am not sure where to put the resource fi...
stackexchange/codereview
Is there any way to check for file format and size of the file before uploading it in javascript?
stackexchange/codereview
I'm trying to get this to work with code in a ViewController's view: but I can't get it to work. I've tried -(void)loadView { UIView *contentView = [[[UIView alloc] init] autorelease]; self.view = contentView; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(5...
stackexchange/codereview
<stateData> <MyTag name="voltage">12</Mytag> <MyTag name="Fuel">72</Mytag> </stateData> Sorry Guys, I did not meant to be lazy. Ok Here is the question: I have xml structure with above block of xml which some tags has both value and attribute in tag notation( MyTag has value of 12 and has an attribute name). usi...
stackexchange/codereview
the method java.util.concurrent.BlockingQueue.add(E e)'s JavaDoc reads: boolean add(E e) Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently a...
stackexchange/codereview
My table headers contain links that, when clicked, make an AJAX call to change the sort order. <tr><th><a href="Name" style="display:block;">Name</a></th></tr> This is great, I can click anywhere within the table header to activate the link. Now I want to add sort arrows to indicate the sort order. <tr><th><a href="Na...
stackexchange/codereview
I've got a war which I'm trying to reduce the dependencies contained in it's WEB-INF/lib as they're provided by the ear and if they're only in the ear it resolves some classloader issues I've had. If I run mvn clean install in the module for the war it builds in only the dependencies I want. If I go up a level and run ...
stackexchange/codereview
For example, there is a DB view named as View_NegAsset with fields: Equity_Percent L_PD_MTH HKD_BAL Inside the Crystal Report [Edit Running Total Field], we have: Field to summarize: HKD_BAL Type of summary: sum Use a formula: {View_NegAsset.Equity_Percent} <= 60 and {View_NegAsset.L_PD_MTH} = 1 Please kindly advise ...
stackexchange/codereview
I am using sfDoctrineGuard 5.x and I have configured my module credentials in security.yml like this: all: is_secure: true credentials: [ admin ] and my app/backend/config/security.yml: default: is_secure: true I have tested using: $this->getUser()->hasPermission('vendor'): returned true $this->getUser()->hasPe...
stackexchange/codereview
Hi friends i am generating a web crawler, i like to know some things about that, 1)Can i use Map reduce to Fetch the Data from the NET 2)Can i able to save the Fetched data to HBase? 3)Can i able to Write an App in PHP for Fetch the Data from HBase?if yes can u gave me a code snippet??How can i Adding/Viewing/Deleting ...
stackexchange/codereview
I am using String object as the key to a linkedhashmap. How can I get all the entries in the LinkedHashMap?
stackexchange/codereview
I am successfully passing a 64 bit number from a objC client to a java client, but am unable to send to an objC client. Java Code /* * Retrieve a double (64-bit) number from the stream. */ private double getDouble() throws IOException { byte[] buffer = getBytes(8); long bits = ...
stackexchange/codereview
I want to get a complete list of classes in the application which are annotated with @Custom annotation. What is the best mechanism for this operation? ps. For example, how JAX-RS implementations find all classes that are annotated with @Path? I would like to use the same mechanism.
stackexchange/codereview
This should be an easy one: I am creating a program that spawns a process using the win32 CreateProcess() function. Once this process is loaded, I find its window using FindWindow and send it messages using SendMessage(). The question is, how do I know when that window is ready to accept messages? Consider the followin...
stackexchange/codereview
I can't work out how to get the SynchronizationContext of a given Thread: Thread uiThread = UIConfiguration.UIThread; SynchronizationContext context = uiThread.Huh?; Why would I need that? Because I need to post to the UIThread from different spots all across the front end application. So I defined a static property i...
stackexchange/codereview
I'm trying to write a regex that matches xa?b?c? but not x. In reality, 'x', 'a', 'b', and 'c' are not single characters, they are moderately complex sub-expressions, so I'm trying to avoid something like x(abc|ab|ac|bc|a|b|c). Is there a simple way to match "at least one of a, b, and c, in that order" in a regex, or a...
stackexchange/codereview
I would like to add smart tag support in the read message window of Outlook 2010. What's the best way of doing so? Are there examples anywhere?
stackexchange/codereview
Iv recently written code that will help me export an SQL database into CSV using FasterCSV with rails. However some parts of my database contain Traditional Chinese Characters. When I export it i'm getting ?????? as the output in the CSV file. Iv already tried changing the $KCODE = 'u' so that FasterCSV uses UTF-8 to e...
stackexchange/codereview
I have a <input type="text" value="A new value"> I need a javascript method to clear the value of the textbox when the focus is on the textbox. How can this be achieved?
stackexchange/codereview
We made a backup of a web application through the central administration to move it to a different server on a different domain and it's a domain controller actually. So we made a restore operation on the destination server from the central administration but never managed to succeed. with errors like: Object failed in...
stackexchange/codereview
Possible Duplicate: Is Clojure closer to Scheme or Common Lisp from a beginner's perspective? Clojure is a Lisp dialect that runs on the JVM. Is Clojure considered Lispy or Schemey? I mean is it like Lisp or like Scheme?
stackexchange/codereview
When working with content loaded asynchronously is there any difference from a performance point of view between: // .live() $('#mybutton').live('click', function(e){ doSomething(); }); and manually bind() the events we need every time after the content has been loaded: // manual bind every time $.ajax({ url: url,...
stackexchange/codereview
I'm working on a project and making some changes hat may be potentially unstable, so I've created a branch. Now I want to find out how many commits have been made on HEAD since I branched out. How do I do that? I'm thinking in terms of how git's network graph viewer works.. If that's not the way SVN works (or thinks) p...
stackexchange/codereview
How can I add a new button in the WMD editor, like the code button? If I click on the button <info></info> tag will add on the selected text like code button.
stackexchange/codereview
talking about java performance .. what is better? if..else or multiple simple if if( condition ) { some_code; return value; } else if( condition ) { some_code; return value; } else if( condition ) { some_code; return value; } else { some_code; return value; } or if( condition ) { some_code; return ...
stackexchange/codereview
This is illegal in Matlab a = [[1];[2 3]] In languages that allow this, this is called nested arrays. I found a way of doing the same in Matlab: a = {[1];[2 3]} What is this called? How initialize such a variable with a fixed size (say 100) without having to write much code?
stackexchange/codereview
I work with a lot of floating-point images, and would find it extremely useful to have an image-based representation of my arrays. I'd like to create a WPF UserControl that renders the data array (as shown below) as an image, instead of a scrollable list of text values. Is this possible? I have looked at the MDSN docum...
stackexchange/codereview
I need to modify a List<int> by indexes. I have the indexes in another List<int> List<int> values; List<int> indexes; indexes.Select(i=>values[i]).ForEach(val=>val = 0); Of course, I know the above syntax wont work. However, as I know the indexes of the items that I need to modify, I would like to to modify the list...
stackexchange/codereview
My mind is still impregnated with SQL thoughts... i'm used to retrieve from the database using the id as the main key, but in App Engine i'm unsure whether i should favor one over the other. What is recommended?
stackexchange/codereview
My html document looks like this: <html> <head> .. load jquery and other stuff </head> <body> <div id="cool_container"> <div class="cool">.. no script friendly markup ..</div> </div> <a id="cool_link">Link</a> <script> function installStuff(){ $('.cool').coolPlugin(); $('#cool_link')...
stackexchange/codereview
I am trying to create an interface for my application using Qt Designer. I want it to have a tabbed, ribbon-style set of controls at the top, and a MDI-style area with docked windows which I plan to show and hide depending on which tab of the ribbon is currently selected. I am just beginning with Qt Designer as well as...
stackexchange/codereview
I've been put in charge of 50+ Access databases (.mdb's and .accdb's of varied versions) spread around an intranet, and I need to add a few VBA functions (the exact same code) to almost all of them. I'm hoping it can be accomplished by creating a reference from each database to a centralized VBA module, as I'd really l...
stackexchange/codereview
I just want to see the state of the process, is it possible to attach a console into the process, so I can invoke functions inside the process and see some of the global variables. It's better the process is running without being affected(of course performance can down a little bit)
stackexchange/codereview
How do large websites deal with thousands of old urls that are deleted everyday? particularly when the website redirects to a customized error page on hitting a broken url instead of throwing a 404 error page. (I've read search engine crawlers do not consider urls that throw 404 error page)
stackexchange/codereview
I'm trying to write an extension that observes HTTP requests, and specifically POSTs. I'm having trouble accessing all of them - some things are slipping through, and I don't know why. I assume it's due to other tabs, iframes or XHR requests. What I'd like to do is create a single listener/handler, and funnel all th...
stackexchange/codereview
As the title implies: the scenario is a coder with a gdb and a user reporting a crash. Can he get from the user an easy to use memory dump which can be fed to gdb but also not make it hard for the user?
stackexchange/codereview
I am following zendcast's Zend_Navigation – creating a menu, a sitemap and breadcrumbs screencast and I will like to replace the menus he has there with so called pure "Mega Menu". The screen cast uses an xml file like so Home / <pages> <report> ...
stackexchange/codereview
The description below is heavily simplified - it's only one part of a bigger problem that we are tackling but the innards can be safely left out for this question. Suppose we have the following models: - class Item(models.Model): name = models.CharField(max_length=150) value = models.DecimalField(max_digits=12,...
stackexchange/codereview
I don't know how to design the dbms for the following requirement: for an advertisement-like website there are a bunch of categories. Every category has optional subcategories. Each subcategory may have optional subcategories ... and so on. Depending on each category (the user has selected to search for) there will be...
stackexchange/codereview
I have a method that performs a loop on a separate thread. For reasons that work for my program I call this method using, [self performSelectorInBackground:@selector(myMethod:) withObject:arg]; And the actual method, - (void)myMethod:(NSString *)arg { NSAutoreleasePool *pool = [NSAutoreleasePool new]; for (int...
stackexchange/codereview
seems like a dumb question even for a VBA newbie, but I can't figure out how to write to a cell in VBA... I have a function in "Module1" that looks like this: Function Foo(bar As Boolean) Range("A1").Value = 1 Foo = ... End Function Then say I set Cell A2's formula to: =Foo(true) The call itself works if I take ...
stackexchange/codereview
UIGraphicsBeginImageContext(backgroundImageView.frame.size); UIImageView *image1 = backgroundImageView; UIImageView *image2 = boat; // Draw image1 [image1.image drawInRect:CGRectMake(0, 0, image1.image.size.width, image1.image.size.height)]; // Draw image2 [image2.image drawInRect:C...
stackexchange/codereview
I'm using the very helpful MvvmLight toolkit and want to package both dlls into a single zip with Assembly Caching turned on. I tried to set the for both the main and the Extras.dll, but the app can no find the Extras dll in the zip. Is this possible to do with Silverlight? EDIT: I'm using Assembly Caching so that the...
stackexchange/codereview
Is there a reasonable way in Python to implement mixin behavior similar to that found in Ruby -- that is, without using inheritance? class Mixin(object): def b(self): print "b()" def c(self): print "c()" class Foo(object): # Somehow mix in the behavior of the Mixin class, # so that all of the methods b...
stackexchange/codereview
I'm building an app on google app engine and have it set with wildcard subdomain mapping: http://code.google.com/appengine/docs/domain.html Next, my domain name is through godaddy and I have specific CNAMEs created for each subdomain I want, such as www: How to use Google app engine with my own naked domain (not subdom...
stackexchange/codereview
Is it possible to do make_heap() with a pair in a vector? I'm using: std::vector< std::pair < int , tablero& > > lista_abierta_; I use the object function to order the pair by the first member, but it crashes. The code is: #include <iostream> #include <vector> #include <map> #include <cmath> #include <algorithm> #in...
stackexchange/codereview
Persisting a reference type with the StreamWriter is easy enough. And retrieving this data back into a string is easy as well, with the StreamReader. But how can i convert the string the StreamReader returns into my custom reference type ?
stackexchange/codereview
Basically, I have a client that wants a breadcrumb trail implemented in the navigation bar. I realize Apple doesn't recommend this behavior, but the app I'm building is for internal use only and won't be submitted to the App Store. I need something along the lines of what AirVideo uses in their iPad App. Are there any ...
stackexchange/codereview
using asp.net/sqldatasource/vb Is there a way to place the insert row below the header in a gridview instead of in the footer?
stackexchange/codereview
I've trying to develop a simple 2D game engine and I need to be able to draw text, so I decided to use the famous, freetype library. My current goal is to render every character from 0 to 255, and store the appropriate information in a glyph object, top and left positions of the character, width and height and an OpenG...
stackexchange/codereview
I'm trying to retrieve MethodInfo for Where method of Enumerable type: typeof (Enumerable).GetMethod("Where", new Type[] { typeof(IEnumerable<>), typeof(Func<,>) }) but get null. What am I doing wrong?
stackexchange/codereview
I am new to ZF and I have problem with even simple tasks. I would like to have dynamically generated menu on every page. To do that I should fill $this->view with data. OK, but to do that, I would have to fill view separately in every controller I made. This would lead to code duplication. The most natural solution, th...
stackexchange/codereview
I'm not sure is this is a problem with my installation of Eclipse (Helios) and Android SDK or something else but Eclipse Content Assist doesn't propose Object Methods for Android classes. For example, if I create a simple program and add a Button btn, when I go to use the btn method setBackgroundResource(int) with Con...
stackexchange/codereview
I would like to check if the particular db column has one or more of the following characters depending on the condition. I guess there is no api/function in the SQL Server like hasNumericChar() etc. right ? How can we check it ? mixed case (considering sql queries are not case sensitive how can we do this ? ) special...
stackexchange/codereview
I have a sql view which is running very slow. Can you please through some pointers on how i can check what part of the query is taking most time. Query below CREATE view ConsolidationReportView as SELECT distinct TOP (100) PERCENT Client.OH_Code AS ClientCode, client.OH_FullName AS Clien...
stackexchange/codereview
I want to use MVC views to create the body for an email and I have come across this (http://www.brightmix.com/blog/renderpartial-to-string-in-asp-net-mvc/) but it doesn't seem to work with strongly typed views (ViewContext is null). But I was after something the would render a full view including a masterpage. I thoug...
stackexchange/codereview
I've pulled out the accordion layout .html and .js files from the extjs examples (below). What is the next step to make this dynamic e.g. how the syntax of a link looks so that the HTML that fills a section under a panel on the left has links which fill the content on the right. Does anyone know of tutorials which go b...
stackexchange/codereview
I need the user to be able to touch and hold a button/imageview for a long time (> 30 seconds). unfortunately after ~30 seconds an ACTION_UP is fired automatically. Do you have any idea how i can prevent or bypass this event and keep tracking the users touch? This is essential for the control of my app.
stackexchange/codereview
Possible Duplicate: Will Google Android ever support .NET? Hi, I have googled lot for getting how to create dot net application for Android mobile phones (such as LG Optimus GT540), but not found relative information. My question is, is it possible to create dot net applications for Android mobiles or not? If yes,...
stackexchange/codereview
Is it possible? Can i specify it on the connection URL? How to do that?
stackexchange/codereview
I have an xml document as follows <users> <user test="oldvalue"> <userid>sony</userid> <name>vijay</name> </user> </users> I am trying to write an xquery to 1) find the user with the given userid - sony 2) change the value of the "test" attribute of the given user to "newvalue". I am trying the following:...
stackexchange/codereview
I seem to be having a problem with Android ListView. I'm trying to delete the selected item from ListView. The delete method is working and will allow me to delete as many items from my list as needed, but whenever I scroll to the bottom of the list (after atleast 1 item has been deleted) I get an Error that closes the...
stackexchange/codereview
I can't get the alert to fire. What am I missing? (the code below is inside a WP plugin) <?php wp_enqueue_script('jquery'); ?> <script type="text/javascript"> jQuery('#myTest').click(function(){alert('hi');}); </script> <?php echo "<div><input type='button' value='Test' id='myTest' /></div>"; ?>
stackexchange/codereview
For a while I've been using a package called "gnosis-utils" which provides an XML pickling service for Python. This class works reasonably well, however it seems to have been neglected by it's developer for the last four years. At the time we originally selected gnosis it was the only XML serization tool for Python. T...
stackexchange/codereview
I have a simple script to set up a Poisson distribution by constructing an array of "events" of probability = 0.1, and then counting the number of successes in each group of 10. It almost works, but the distribution is not quite right (P(0) should equal P(1), but is instead about 90% of P(1)). It's like there's an of...
stackexchange/codereview
I Have a styled search box which uses a background, whenever I click on the box the cursor flashes larger than the text box, until I type where it appears at the correct size. This is the HTML - <div class="row2 zero_padMarg floatRight"> <label for="srcTxt" title="search form">search</label> <input type="text" id="s...
stackexchange/codereview
I'm trying to get the following effect in the jQuery Mobile framework: |-------------------------------------------------| |[button1] HeaderText/Image [b1] [b2] [b3] | |-------------------------------------------------| Where [b1], [b2] and [b3] are small image buttons in the Header. Is this even possible curre...
stackexchange/codereview