instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm pretty new in Python (and programming as a whole). I'm pretty sure the answer to this is obvious, but I really don't know what to do. def do_play(value, slot, board): temp=board (i,j) = slot temp[i][j] = value return temp board is a list of lists. value is an integer. slot is and integer tuple. Wha...
stackexchange/codereview
Python: How to export Sympy image to png? Who has any idea with this?
stackexchange/codereview
I was wondering if there was a way to use bash/awk to remove duplicate rows based on a known field range. For example: Easy Going USA:22 May 1926 Easy Going Gordon USA:6 August 1925 Easy Life USA:20 May 1944 Easy Listening USA:14 January 2002 Easy Li...
stackexchange/codereview
fstream file; Patient Obj("XXX",'M',"XXX"); file.open("Patients.dat",ios::in|ios::out|ios::app); file.seekg(ios::end); file.write((char*)&Obj,sizeof(Obj)); file.seekg(ios::beg); Patient x; file.read((char*)&x,sizeof(x)); x.printallInfo(); ...
stackexchange/codereview
Is there a way to filter out links posted in a comment or in a form. The datatype of the column where the field is stored might be text or varchar. I essentially want to strip off any kind of url embedded witin the content.
stackexchange/codereview
This is basically a architectural question. I want to implement composite pattern in handling Swing components; that is, I want to combine several components with their listeners and logic behind a single component for easier handling. Consider for example a simple directory browser; say, a JTree in JScrollPane with so...
stackexchange/codereview
I need some help regarding jquery arrays. var queryArr; $(markersArray).each(function(index) { var _locationId = index; var _locName = markersArray[index].name; var _markerLat = markersArray[index].marker.getLatLng().lat(); var _markerLng = markersArray[index].marker.getLatLng().lng(); //I ...
stackexchange/codereview
I have a jar file called "a.jar" which has another jar file called "b.jar". a.jar | |-- META-INF | | | |-- MANIFEST.MF | |-- b.jar | |- com/test/MainInB.class "b.jar" has com/test/MainInB.class file. (MainInB class just print out "hello world!") "a.jar" has the MANIFES.MF like this: Manifest-ve...
stackexchange/codereview
Possible Duplicate: Painless way to install a new version of R? In R, packages are not compatible across upgrades, and must be reinstalled. Is there any way to easily install the same set of packages in the new version as what I had installed in the old version? Edit: I can't easily access the old version of R, sinc...
stackexchange/codereview
In BLAS level 1 there are *ASUM and *NRM2 that compute the L1 and L2 norms of vectors, but how does one compute the (signed) sum of a vector? There's got to be something better than filling another vector full of ones and doing a *DOT...
stackexchange/codereview
In my UserController I have: def join end I have a join.html.erb in my /views/user/ folder. My routes has a : resources :user When I go to: http://localhost:3000/user/join I get: The action 'show' could not be found for UserController
stackexchange/codereview
This is what I am doing: String one = "some string" String two = "some string" I want to know all the characters that are in string one and two and they should come in order as they are in string one I wrote a Java program which by using Collections performs set operations on both the collection. What I would like ...
stackexchange/codereview
I'd like to pass a function to LINQ queries to do operations on existing data. For eg. I have this function: string doStuff(Product prod) { return string.Format("{0} - {1}", prod.f1, prod.s2); } When requesting products, i'd like to pass in this function so it returns this string and assign it to a product proper...
stackexchange/codereview
I want to build an MVC app using Spring (first timer here). As such I want to embed Jetty as the servlet engine. Jetty however doesn't stricly follow the java beans pattern, so I can't launch some classes from Spring (they use overloaded setters or non setter init methods like addXYZ). What is the accepted/recommended ...
stackexchange/codereview
i have table , contain firstname and lastname , i used in my query : ORDER BY FNAME,LNAME ASC , It display the records alphabetical order , and it works fine for Fname, but it is not giving the same periority to LNAME, my present table records : No Fname Lname 1 Agh Asd 2 Arh AAA 3 Bcvc Vvcv 4 Akasa Dvx...
stackexchange/codereview
am trying to load usercontrol in c#. Can add the .ascx onto my .aspx page by using the code below: Control MyUserControl; MyUserControl = LoadControl("~/controls/Editor.ascx"); PlaceHolder1.Controls.Add(MyUserControl); However, I want to pass ID into Editor.ascx, top of the Editor.ascx contains the follow...
stackexchange/codereview
I'm trying to build a behavior that disables the button and changes the text to follow the common pattern of disabling a button to stop a user from double clicking. I need the behavior changes to take effect before the commmand. Can I use a behavior this way? view: (set the DataContext in the loaded event of the code b...
stackexchange/codereview
I'm storing a photo as a Transformable attribute in my Core Data entity, which is a lot of data to load in an iPhone's memory. If I want to present a TableView that lists all of the entities (potentially hundreds or thousands), but only need to display their title, will Core Data still fetch each photo and store it in ...
stackexchange/codereview
Given an input like a { b c d { e f } g } I want to parse it one token at at time (letter or brace). When I hit the first closing brace } I need to know how many elements there were since the last opening brace (e and f = 2). And then when I hit the one after that, I need 4 (b,c,d,g). Grabbing the tokens 1 by 1 is eas...
stackexchange/codereview
I'm trying to work out how to organize an android application that will have multiple themes. here's a simplified example of my problem, 2 themes, "light" and "dark", within each theme, two text colors: "enabled" and "disabled" now the problem is that when i define my TextView, i don't want to call out "light" or "dark...
stackexchange/codereview
I want to create a cover page that has text over a background image. Is this possible in MigraDoc / PDFsharp?
stackexchange/codereview
I have two simple forms designed in maximized view. when switching between them (showing second and hiding first), the second form first shows its header for some miliseconds. Than the header dissapears. How to avoid showing the header? Thanks.
stackexchange/codereview
I am having problems when using dependency injection with Services in Grails. class ExampleService{ def example2Service def example3Service def method1(){ def result = example2Service.method2() } } class ExampleService{ def example3Service def method2(){ def result = example3...
stackexchange/codereview
Can someone please tell what is the code for checking the size of a linked list(number of nodes).This is what my code is(inserting nd deleting head + printing info of all nodes) struct node { int info; node *nextptr; }; class list { private: node *L,*tail; int count; public: list() { ...
stackexchange/codereview
In my PHP Zend Framework application, I am using APC to cache certain repeat requests to the database. Within the application, I can clear the cache with this command:apc_clear_cache('user') I am also running PHPUnit Selenium tests against this application. Before adding APC, I had no problems. I have a test that adds ...
stackexchange/codereview
I'm a first time Core Data user/learner for iPhone, I thought that [managedObjectContext save:$error] was used to save changes to the Persistant Store. But when I reload and call NSFetch, the objects are still there. Any ideas why? for (int i ; i < [mutableFetchResults count];i++) { NSManagedObject *toDelete = [mut...
stackexchange/codereview
I'm getting the following error when Rails tries to render my layout located in app/views/layouts/application.html.erb: Missing template shared/_header.erb in view path /home/me/checkout/site/app/views: Extracted source (around line #11): 8: <body> 9: <div id="wrap"> 10: <div class="clear">...</div> 11: <%= render...
stackexchange/codereview
In My controller I am trying to render vanilla JavaScript but am getting an unexpected result. This is the code class UploadController < ApplicationController def index render :file => 'app\views\upload\uploadfile.rhtml' end def uploadFile render :js => "alert('Hello Rails');" p...
stackexchange/codereview
i have a string: <presence to="testsubject_1@server.org/d9ec56e4" from="room@conference.server.org/testsubject_2"> <x xmlns="http://jabber.org/protocol/muc#user"><item affiliation="none" role="visitor"/></x></presence> how would i find out if it contains the presence attribute as well as who its from? ive tried using ...
stackexchange/codereview
I was wondering if the older mysql_* functions provided with php will work with a mysqli connection.
stackexchange/codereview
This might be a stupid question to a experience programmer... but anyway, I just want to figure out. What's the difference between if("Hello"==$helloString) and if(helloString=="Hello")? I thought the order in a if statement doesn't matter but I guess there must be something wrong with my thought. So could someone expa...
stackexchange/codereview
IE has trouble with #&8302;(Actual character references) be interpreted as white space with multi byte OK:http://tmp.zeg.la/shift_jis.html OK:http://tmp.zeg.la/euc-jp.html NOT OK:http://tmp.zeg.la/utf-8.html
stackexchange/codereview
i want to read a file.. but.. when i debug my program it runs but a pop up appears and says system programming has stopped working and in the console, it`s written that Press enter to close the program. my code is :: // System Programming.cpp : Defines the entry point for the console application. // #include "stdafx.h...
stackexchange/codereview
I am trying to make an integer into a binary: 543 = <<"543">> How can I do this without integer_to_list(list_to_binary(K)).
stackexchange/codereview
Thanks for viewing my question and thanks in advance for any help you may provide. I am writing a program that reads lines from a txt file and then prints the output in a certain fashion. Here they both are Here is the txt file I am reading from JOE FRITZ AMERICAN GOVERNMENT B JOE FRITZ C...
stackexchange/codereview
I want to make a solution where I can use XMPP chat clients connected to gtalk, resolving SOAP web services and REST calls meant for a LAN (behind firewall proxy etc) and transferring over to the other chat client on another different LAN (behind other firewall proxy etc). I have narrowed down on Smack API, but being a...
stackexchange/codereview
How is STL vector usually implemented? It has a raw storage of char[] which it occasionally resizes by a certain factor and then calls placement new when an element is pushed_back (a very interesting grammatical form I should note - linguists should study such verb forms as pushed_back :) And then there are the alignm...
stackexchange/codereview
How can I add zlib to an existing installation of Qt. I m pretty new in this so please give me detailed description! Thanks for your help in advance!
stackexchange/codereview
I have a strange problem, I hope you can help me. I write a program in C++ Builder 2009, when I run the program without debugger I see an Exception raised. bun in debugger never exception raised and I cant find the exception point. And Also I enable the CodeGaurd in C++ for Finding the problem but the Exception never r...
stackexchange/codereview
Today I started scripting in Windows PowerShell - so please excuse my "dumbness"... I want to create txt-Files with the name of the subfolders of each "rootfolder" on drive G:. On G:\ I have the following folders: 1_data 2_IT_area 3_personal 4_apprenticeship 7_backup 8_archives 9_user_profile So I wrote this script: ...
stackexchange/codereview
I am revising a paper for submission and would like to replace the old lattice graphics with shiny new ggplot2 versions. However, I run into compatibility problems between ggplot2 and two packages that are absolutely crucial for my analyses, coin and arm. When executing the following example from the manual qplot(sleep...
stackexchange/codereview
it might be a duplication, but in eclipse, how can I deal with various dependency versions of the same library in my local maven repository ? The problem is that dependency versions specified in pom definition are the libraries I need to use (they have sources/javadoc available etc.), but maven puts all the available ...
stackexchange/codereview
I have a bash script that watch's a directory for uploads. When it sees a xml file in the directory. The script takes the file and calls a java command line program that using xslt transforms the file. I want to mv the file to a different directory (errors) if the script or java command line program throws a error dur...
stackexchange/codereview
I have a web page that, at a certain point, displays a navigation bar which is nothing more than a list (ul) of a elements. Most of the style rules for said a elements is common. The only part that should change is the image to show which can be guessed from the id tag of each li element of the list. So here's the ques...
stackexchange/codereview
Phil Haack's blog entry describes this process using ASP.NET MVC 2's futures and Crockford's json2.js. John Resig also recommends using Crockford's json2.js in this article regarding "use strict";. To get this feature today, would you still download the MVC 2 Futures, or is this included in the MVC 2 final, or is this...
stackexchange/codereview
Is it possible to use a Google Apps account as a test account with the Android License Verification Library? I've done some testing and even though I have my Google Apps account listed, I always get back an unlicensed response. The only account I've ever had success testing with is one ending in @gmail.com Thanks-
stackexchange/codereview
I have had recently one of those really bad interviews, where they play good cop/bad cop with you. Whatever I replied wasn't good enough for one of them and my confidence was shrinking minute by minute. His final question that really confused me was the following: if a control would need InvokeRequired would there be a...
stackexchange/codereview
This question refers to the dequeueing of messages in Oracle Streams Advanced Queueing. I need to ensure that the messages which are related to each other are processed sequentially. For example, assume the queue is seeded with the four messages that have a business-related field called transaction reference (txn_ref...
stackexchange/codereview
I have a CSS Question I want this div to automatically expand vertically as more and more content fills it. I thought that omitting it's height setting in the style would do so but it hasn't seemed to fix it. My CSS .box{ -moz-border-radius: 15px 15px 15px 15px; background-color:#433B39; background-image:none; color:wh...
stackexchange/codereview
I am trying to work with the Populator gem. I just installed it, but Ruby is unable to load it. I have only one Ruby installation on my machine and it's Ruby 1.8.7. What can I do? This is the gem that doesn't get loaded. Edit: Here is the trace out. I should have included this earlier. Freenaut:bio-clinical newuser$ r...
stackexchange/codereview
What's the correct way (if any) to redirect a received Intent to another BroadcastReceiver? I have two BroadcastReceivers set to listen to the same intent. It works in development, but in production, only the first one registered in the manifest gets the intent. Can I call the other one's onReceive() method directly, ...
stackexchange/codereview
I want to find client computer name in java. My applciation runs in intranet. so i am using below code public String findClientComputerName(HttpServletRequest request) { String computerName = null; String remoteAddress = request.getRemoteAddr(); System.out.println("remoteAddress: " + remoteAddress); ...
stackexchange/codereview
how can I use loop 'for' through a table in SQL to check if a column is 0? I need to do like this in a stored procedure: for each record in tablex if table.column1=0 then insert into table1; Else insert into table2; End for;
stackexchange/codereview
With RoR, you have your model, controller and view. The model has both class properties etc., and db access code mingled in. In your controllers, you use your models to fetch certain data to push to your views. In the Java world, you would have a DAO per entity, and then a 'Service' layer where you could decide to pull...
stackexchange/codereview
I am stuck with an tiny issue with the tinyMce, and this is very urgent. In very brief, from tinyMce callback I get an tinyMce instance. Now I want to use this instance to set text-direction from "ltr" to "rtl" on the fly. But I don't seem to find and set the required property. Following is what I'm trying to do : $('t...
stackexchange/codereview
I am programatically building a ListView that does FILL_PARENT for width, and WRAP_CONTENT for height, then centering it in its parent view. The ListView is semi-transparent so the activity behind it is visible, so I use: list.setCacheColorHint(0); list.setBackgroundColor(Color.argb(200, 0, 0, 0)); Other than that, it ...
stackexchange/codereview
using this code I get the object representing Visual Studio: var dte2 = Marshal.GetActiveObject("VisualStudio.DTE.10.0") as DTE2; However, when I have multiple instances of VS opened, this returns any instance of VS, not the one I am currently executing the code from. I am not within an add-in so I don't have access t...
stackexchange/codereview
I have a tree like structure roughly like this: class Node < ActiveRecord::Base belongs_to :parent, :class_name => self.to_s, :foreign_key => 'parent_id' has_many :children, :class_name => self.to_s, :foreign_key => 'parent_id', :dependent => :destroy ... end I can load all nodes that don't have a parent ...
stackexchange/codereview
I have a WPF 4.0 DataGrid that is bound to a DataTable using AutoGenerateColumns=True. The columns are dynamic, however I know there is always going to be a column named ID and I would like to hide this column. Is there a way I can do this?
stackexchange/codereview
I'm encountering an issue with the <exec> task on batch files in my NAnt project files. When running on Windows XP SP 3 (but not Windows Vista or Windows Server 2008) and using NAnt 0.85 or 0.91alpha2, the <exec> task will always succeed (returning an error code of 0) regardless of what the executed script returned. A...
stackexchange/codereview
is there a way in SQL server that i can count the items 90 days prior to the inception date and the items 90 days after the inception date. Example: select site, count(*) from mytable where date >=10/1/2009' and date <'12/30/2009' group by site 90 days before - after inception date. prior to inception date = 7/3/200...
stackexchange/codereview
Can anyone suggest a free (or very very cheap) alternative to Nevron Diagrams? I was playing with Open Diagram which is open source but it's very poorly documented and their forum is dead.
stackexchange/codereview
I make an app which is a clone of a well-known game. I had the name of that game as a keyword in the first two versions of my app. Many competing apps also use the keyword. I just updated my app. Apple said I couldn't have that keyword and took it out. Meanwhile, a search on the name of the game brings up over 40 ap...
stackexchange/codereview
I have a program which suffer from file descriptor increasing. I see when I execute the command ls -l /proc/5969/fd where 5969 is the pid of the java program the number of file descriptor continuously increasing. but I am unable to open one of those files decriptors to see what file remains open : here is an example of...
stackexchange/codereview
I have a question concerning XML, Java's use of DOM, and empty nodes. I am currently working on a project wherein I take an XML descriptor file of abstract machines (for text parsing) and parse a series of input strings with them. The actual building and interpretation of these abstract machines is all done and worki...
stackexchange/codereview
greetings all i want to detect dynamically if the application is under local environment (development) or online server environment, through the httpservletRequest maybe , i don't know, any ideas ?
stackexchange/codereview
I'm starting to use NUnit to write test cases in C# with Visual Studio 2010 on .NET 4.0. I want to use NUnit to test against a .dll (a C# class library project)'s public functions. How do I set up NUnit to work with my project? Should I add NUnit code to the same class library project to test against, or should I add...
stackexchange/codereview
I am basically trying to export from ZEND to csv as described export csv in zend framework and use the $this->_helper->viewRenderer->setNeverRender(); unfortunately the plugin code is still contained in the csv file. Any clue why? public function indexAction() { $this->_helper->layout()->disableLayout(); $th...
stackexchange/codereview
I want to design a class that will be like a singleton in the way that there will be a single main instance of that class, but there can also be multiple clones of the main instance. Only 1 class will be allowed to create the main instance and everybody else can create a clone. Something like this (c#): class Singleton...
stackexchange/codereview
I don't really know how to decribe this problem, so I'm sorry if the title is a bit unclear. I got an object with array fields. I got the name of these fields stored in a variable and I want to reach an element in one of those array fields. e.g. $field_name = 'array_field'; $object = new stdClass(); $object->array_fie...
stackexchange/codereview
Like select * from table where text_field; What would get pulled?
stackexchange/codereview
Is there a way to make the parameters of this extension method 'intellisensible' from my view? At the moment, I can get a tooltip nudge of what the parameters (in the controller action method) are but would love to confidently IntelliSense type the parameter names for 'safety'. Anyway, without further ado, the method, ...
stackexchange/codereview
I've been writing some Adobe Illustrator javascripts to improve my workflow. I've been really getting to grips with OOP recently so I've been writing it using objects and I really think it helps keep my code clean and easily up-datable. However I wanted to check some best practice with you guys. I have a rectangle obje...
stackexchange/codereview
How does one make a div/input flash or 'pulse'? Say for example a form field has an invalid value entered?
stackexchange/codereview
Subquestioning SQL - when should you use “with (nolock)” In one local financial institution I was rebuked by their programmers for expressing them my opinion that (their programmers' obsession with) (b)locking issues in their MS SQL Server 2005 database(s) did not make much sense to me. What are the possible issues wi...
stackexchange/codereview
I'm working on a project where rather than using command line arguments I am supposed to just pipe a file to stdin and pipe output to another file. ie I need to run something like: ./program < infile.txt > outfile.txt Is there a way to specify to Eclipse this is the command I want when it is run? I am running the Ecli...
stackexchange/codereview
I'm making a canvas-based game engine and am wondering if anyone has any good info on how to achieve an overhead view perspective. What I'm looking for is somewhere halfway between the traditional birds eye view and the old SNES mode7 view. Just a slight angle to give the illusion of 3D. I'm trying to figure out what i...
stackexchange/codereview
I try to use FQL to return all message on my social stream using this statement: SELECT created_time, message FROM stream WHERE source_id = [USER'S FB ID] limit 10000 It traces all the way back to the very 1st post on my wall but some how some of the posts in the middle are missing (compare with what I can retrieve by ...
stackexchange/codereview
Is there a SQL way to find out which columns in my schema are completely full of null values? There are some fields in a couple of tables that I know are not used by the application and will be dropped, but I wanted to see if there was an automated way/script to find this out across the whole database to find candidat...
stackexchange/codereview
I have a rather loaded question regarding a library/framework my company uses to build websites from that I hope I can convey without too much trouble. Present Situation: Currently, we have a solution in VS 2010 that has a Web Project, "Framework_Web", which currently contains all the web pages in the application as ...
stackexchange/codereview
I've seen there are a couple of eclipse color themes around but none seem to be exactly as I want. How can I create an eclipse theme myself? I could edit a file but I'm more curious in learning than just tweaking thing I don't know. Thanks.
stackexchange/codereview
My problem is that ratio of width/height (for div with id="wrapper", different is huge) isn't the same on Chrome, Mozilla and IE (IE looks like refuse attribute for heigt at all). Any help, I need two divs fixed size, one beside other . <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> ...
stackexchange/codereview
I create several Gmarkers (from JSON data loaded by JQuery "load" function), on all of them I add an event listener to open the infowindow object I created before on the marker, and then I add them all to the map. The issue is that the infowindow always opens on the same marker. I all had this working before, i can't ...
stackexchange/codereview
I'm working on a small, personal project and am using Subversion to manage the source code. I have a couple of small planning files - simple text documents explaining where I want to go with the project and some ideas worth keeping track of about what I've already done - that I think should be under source control as w...
stackexchange/codereview
I have a template class that I m trying to explicitly instantiate: template<T> struct tmat2x3 { ... typedef tvec3<T> col_type; .. }; the operator is declared as follows: template <typename T> typename tmat2x3<T>::row_type operator* (tmat2x4<T> const & m, typename tmat2x3<T>::col_type const & v); I am explicitly insta...
stackexchange/codereview
How can I convert colors from (N, N, N) format to #AABBCC (and #AAABBBCCC) ? thanks
stackexchange/codereview
If there is no GPS FIX (because the person is in a metal building or something)....does it just stay in the Looper..?? OR does it keep trying for a fix via requestLocationUpdates..?? If I do have a good GPS FIX....my code works fine...and in onLocationChanged()...I update the current location to the database. Also....
stackexchange/codereview
What is the purpose of Auth_OpenID_FileStore in php-openid? Update: I understood what is a FileStore. Is it safe to save the file in /tmp? Or should i move it to some other location accessible only to me? Is it better to use a database for the store?
stackexchange/codereview
I have a working distributed application that has a rather big blemish. The client.exe needs the server.exe to work. The reason for this is that the client and server use a MarshalByRef Class (which exists on both sides in the form of a .DLL) which contains a reference to the server. Is there any way I can rearrange th...
stackexchange/codereview
I'm trying to create a cmdlet that calls Powershell function. Can this be done? Idea is to have static cmdlet that enumerates a set of data and then calls defined function to do something for each item. I can always copy - paste a base template for the enumaration part, but it really easy to make errors while making mo...
stackexchange/codereview
how can i assign value of EditText to a string? I want to pass this value to an another activity through putExtras(). my code is : EditText txtquantity=(EditText) findViewById(R.id.EditText01); quantity_bundle.putString("quantity",txtquantity.getText()); when I am doing like this an error is occured. Please give...
stackexchange/codereview
How do i put an NSToolbar on the bottom of a window. I need to modify a program that has a toolbar on the top of the window and that needs to go on the bottom now.
stackexchange/codereview
I am developing an iBook like application where user can change the brightness of the app by selection value of UISlider. I have done googling but I found the method GSEventSetBacklightLevel(1.0f); and this is undocumented and private. So I can not use this method in application. Please help me to provide brightnes...
stackexchange/codereview
I have the following problem: I have some (binary) files, which are embedded in a resource. For some reasons I must write these files temporarily on disk. How should I proceeded ? Maybe this can be done with GetRandomFilename() or GetTempFileName() ?
stackexchange/codereview
Question: Normally, when you create a HTTP module, you create it as separate dll project and register that dll in the web.config. Now, is it possible to write a HTTP module directly in an ASP.NET project, so I don't have to create a separate dll project? Note: Don't say as an added project in the same solution, I mean ...
stackexchange/codereview
My assignment is to create an AVL Tree from a sorted array list of values in O(n) time where n is the number of values I have been working on this but I cannot get O(n) time, the best I can get is O(nlog(n)) My problem is that every time a node that causes the tree to be unbalanced is inserted, I have to do another loo...
stackexchange/codereview
I can't understand why this PHP script gives me 500 internal server error. $query = "SELECT video_id,title FROM video_id"; $videos = mysql_query($query); if($videos){ $videos = mysql_fetch_assoc($videos); foreach($videos as $video){ echo '<div class="video">'; echo '<a href="video.php?v...
stackexchange/codereview
I have a weird list built in the following way: [[name_d, 5], [name_e, 10], [name_a, 5]] I want to sort it first by the number (desc) and then, if the number is the same, by the name (asc). So the result I would like to have is: [[name_e, 10], [name_a, 5], [name_d, 5]] I tried to think to a lambda function that I ca...
stackexchange/codereview
I'm looking for a method to recognize scanned image form (something like bank deposit slip), which consits of rectangles and text. A sample: (source: immihelp.com) Image form: scanned images which were printed and filled out, this kind of form has title/rectangle borders/lines Form title recognition/classification: i...
stackexchange/codereview
I'm a newbie in WPF, so it probably is something very basic that I'm forgetting to do but I can't see what it is. I have a window with a combobox that display some data, I want the user to select a category in this combobox. It's working partially. The window show the combobox, starting with no selection, then the user...
stackexchange/codereview