instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have implemented the messageUI framework in my project... when I click on the button released emails written form, TO, SUBJECT, SEND, CANCEL .. but the language of my iphone 4 or iphone SIMULATORis in Italian. how to change this layout from English to Italian? (The format for the messages makes me so) thank you very ...
stackexchange/codereview
I have the following convention for most of my projects: /src /Solution.sln /SolutionFolder /Project1 /Project2 /etc.. /lib /Moq moq.dll license.txt /Yui-Compressor yui.compressor.dll /tools /ILMerge ilmerge.exe You'll notice that I do not kee...
stackexchange/codereview
I've been trying to get my game engine to display textures, and I finally got it working. I used the UV coordinates from the 3ds model, however the textures are displaying differently. This is the rendering in 3ds max: and this is the opengl rendering in my game engine: why are the textures layed out like that? I su...
stackexchange/codereview
Folks, I have GWT-RPC services (on Appengine) supporting a GWT Web client. All is well. Now, when I am developing an Android Client for this, do I need a stripped down Servlet to serve this client? Meaning, Now instead of Serialized Java objects sent back and forth (as in GWT), I will need to send XML using Android's p...
stackexchange/codereview
I would like to build a GUI shell for DOS so I can make a shell operating system like windows. I know this may sound stupid, but I'm just a beginner looking for a challenge. I was thinking something along the lines of Dream16OS but a little better looking. Also is it possible to make this in Visual Basic for DOS or Vis...
stackexchange/codereview
i connect to a mysql server and do a query on it. the query returns result when i do a set names query before or after the main query,otherwise it returns null result. why is it so?
stackexchange/codereview
I got some folders created by malware whose name ended with a dot like C:\a.\ or C:\b.\, etc. I found a solution that can remove such folder with command rd /q /s "C:\a.\" but if I call win API RemoveDirectory, it returns ERROR_FILE_NOT_FOUND. And I just wonder how to write a function to delete such directory, thanks I...
stackexchange/codereview
I'm currently working with 2 views on a UINavigationController. I have a Leaves view (Tom Brow's leaves project) to simulate curling effect for pages which only works with images, and my actual view controller with the page and it's contents. What I'm trying to do is, when tapped on certain place, popViewControllerAnim...
stackexchange/codereview
I'd like to serialize a bunch of data and save it to a file, then be able to load it (naturally) and play it back with a feature I have written. (Sorry if my terminology is off, I am a novice with this sort of thing.) What is the best way to do this with iOS? From looking at documentation here: Standard Application ...
stackexchange/codereview
I have a mobile template with a login form which is ajax / url hash based browsing. If on an iphone a user clicks the "go" button on the iphone keyboard the ajax authenticates / logs them in and then loads the next page inside another div and hides the current login form div. The problem is, on an iphone the keyboard i...
stackexchange/codereview
I'm working on the design for a client's iOS app. They want the app to access stored data on their web server. The important thing is that the data can only be accessed by subscribed users, i.e. those that have a username and password. The web team can basically produce anything I want, i.e. a RESTful service. My quest...
stackexchange/codereview
If I am using a different class library project to hold my controllers then how will i create controllers. previously I use to right click on the controllers folder and then press add controller. Similarly, how will I create new strongly typed views? When I select add view->strngly typed view then the list of data clas...
stackexchange/codereview
I am working on a practice project for which I am trying to build a secure login system. Getting my own SSL certificate or a solution that needs a dedicated server is not an option. I was thinking about hosting the site on my domain but doing the authentication on my App Engine site. Is there any way of doing this secu...
stackexchange/codereview
How to get post id from permalink (pretty url)?
stackexchange/codereview
In my android application i am using a loading screen,processed by Async task.In do in background of this task i would like to display a alert whenever an upgraded version exist in the server. Could you please let me know if there is any way that i can do it in android. The code is public class Task extends AsyncTask...
stackexchange/codereview
I have a Flex / Spring / LCDS project, and I'm trying to use the Spring/Flex integration module. It works fine for exposing simple destinations & messaging end-points, however I'm unsure how to configure to use Assemblers. The vanilla, no-Spring-integration-way involves declaring a destination such as: <destination id=...
stackexchange/codereview
I am trying to figure out how to manage multiple lazy sequences from a single function in F#. For example, in the code below, I am trying to get two sequences - one that returns all files in the directories, and one that returns a sequence of tuples of any directories that could not be accessed (for example due to pe...
stackexchange/codereview
How do i get the current logged on user name in windows 7 (i.e the user who is physically logged on to the console in which the program that i am launching is running). For example if i am logged on as "MainUser" and run my console application (that will display the logged on user name) as "SubUser", then the program o...
stackexchange/codereview
When I am trying to import a file to a 10g database, an Error message (given below) appears. Anybody can help me with this? IMP-00058: ORACLE error 6550 encountered ORA-06550: line 1, column 33: PLS-00302: component 'SET_NO_OUTLINES' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored IMP-00000: Im...
stackexchange/codereview
Paypal has listed out methods for discounts such as : discount_amount Optional Discount amount associated with an item. It must be less than the selling price of the item. If you specify discount_amount and discount_amount2 is not defined, then this flat amount is applied regardless of the quantity of items purchased....
stackexchange/codereview
I'm sort of jumping in headfirst to some Flex/AIR stuff. I have a pretty solid background with AS3, but given the inherent hierarchal complexity of Flex (compared to regular Flash), I'm running into an issue. Let's assume that you have an app where pretty much everything is event driven (common). Accessing elements i...
stackexchange/codereview
Hello All I am using smart gwt 2.2, Operating system is Windows xp and browser is Mozilla Firefox. Before working on the smart gwt I worked on smart gwt-ext. In gwt-ext I used HTMLTable to give html view to my form. But after using HTMLTable I found TableLayout in gwt-ext, which is more easy to use and manage. Because ...
stackexchange/codereview
I am contemplating building an out of browser Silverlight application. One of the reasons it has to be OOB is because I need to access an old school ActiveX/COM object and that is only allowed OOB. I am having trouble finding any examples on how to actually integrate a COM object into a Silverlight app. The Add Refe...
stackexchange/codereview
Im working on a a sudoku program for python and i need some help. The program will ask input from the user for 9 rows of numbers that hopefully contain the digits 1-9. Once they input all 9 rows the program should then go through each row and verify and see if it satisfies the conditions of a sudoku game. If it doesnt ...
stackexchange/codereview
#include <stdio.h> enum bool { true, false }; typedef bool (*compare_fun) (int, int); I get an error when I enter the above code. How do I make a function pointer that needs to return a boolean?
stackexchange/codereview
I am planning to use jQuery UI Autosuggest for a search form. So I need a json output which can be used by jQuery UI Auto suggest. Here's the database Table name recent_tags I have tried this First connect to db $do = mysql_query("SELECT * FROM recent_tags where query like '%" . $_GET['query'] . "%'"); while ($row ...
stackexchange/codereview
In my code when I write code like: $("#id_pop")[0] there is an error. When I correct it to: var $d = $("#id_pop"); $d[0].... it's ok. Why?
stackexchange/codereview
Given the schema: Student(Snum, Sname) Course(Cnum, Cname) Prerequisite(Cnum, Prereq) Professor(Pnum,Pname, Dept, Office) Enrollment(Snum, Cnum, Term, Section, Mark) Schedule(Cnum, Term, Section, Days, Time, Room) Class(Cnum, Term, Section, Instructor) I have come up with: SELECT * FROM Student s HAVING MIN( SELEC...
stackexchange/codereview
I have an relatively old Grails app that uses ant to build the application. In the test server it build without any problems, but when I try to run it on my PC, I get a consistent error: Caused by: jar:file:/C:/ant/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type ...
stackexchange/codereview
I want to write a ruby wrapper swi-prolog. Can anyone please tell me how to proceed with writing one? I would appreciate if anyone please explain me what steps need to be considered while attempting to write this sort.
stackexchange/codereview
I have a simple question: In GQL syntax summary <condition> := <property> {< | <= | > | >= | = | != } <value> but in an example here if users.get_current_user(): user_pets = db.GqlQuery("SELECT * FROM Pet WHERE owner = :1", users.get_current_user()) What is :1 ? According to syntax th...
stackexchange/codereview
I'm having a problem using RMagick/ImageMagick to open a file uploaded through a Rails form. I believe this is due to the fact that Rails Tempfile behavior is to eliminate the file extension. From what I've read, ImageMagick should prefer to use magic number rather than file extension to detect the image file format, b...
stackexchange/codereview
I'm trying to filter database entries by their datetime: models.py: from django.db import models class ContestEvent(models.Model): year = models.DateTimeField() month = models.DateTimeField() In my view I define a function calender: def calendar(request, pYear, pMonth): """ Show calendar of events fo...
stackexchange/codereview
I have an ASP.NET MVC 3 Beta application running on IIS. In my web.config I defined following section responsible for forms authentication: <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" name=".VNK" protection="All" timeout="43200" cookieless="UseCookies...
stackexchange/codereview
I'm open to eclipse --> new --> dynamic web project --> in target runtime --> new Apache Tomcat v6.0 and establish mark Create a new local server --> next Browse establish way C:\dev\apache-tomcat-6.0.29-windows-x86\apache-tomcat-6.0.29 --> finish --> in new dynamic project finish in Java Resources : src...
stackexchange/codereview
How can I instruct Hibernate to map a Java date to and from an Oracle DATE column using a time zone other than the local time zone?
stackexchange/codereview
I'm using an ObjectDataSource and a FormView. In the FormView I have a set of controls. When the FormView is in edition, I have in particular a ComboBox and a TextBox which are related as follows: when the ComboBox takes some special values, the TextBox must be read only or not. For the moment I get that behaviour as...
stackexchange/codereview
How to read JSONObject in dojo? I have a JSONObject in my jsp. JSONObject myJSONObj = new JSONObject(); How can I read this myJSONObj in my dojo or *.js file, in 'onload function'.
stackexchange/codereview
here is my code.. I have to perform a selection sort on an array. It is homework. The Irvine32.inc sets up my memory model. Any suggestions to what I'm doing wrong would be helpful. I've redone the entire thing a few times now. INCLUDE Irvine32.inc .data myArray DWORD 10, 12, 3, 5 .code main PROC call Clrscr M...
stackexchange/codereview
I am implementing a saxxml parser , i have successfully parsed it. But i need a feature to be implemented, there shpould be section heading which is a date say oct 26 and the rows in the section should be the feeds of that date. I have successfully implemented it in iphone, but i am very new to android and need help ho...
stackexchange/codereview
Im using jquery content move in my webpage and my code is $(document).ready(function() { //hide the all div except first one $('.msg_body:not(:first)').hide(); //when the anchor is clicked content gets faded $("a.linkclass").click(function() { $('.msg_body').fadeOut("slow"); $($(th...
stackexchange/codereview
I want to convert 32-bit Hex to integer in 'C' seqBuf = "81BD82E8" This is the Hex value I'm getting and stored in a buffer The corresponding value of that hex value is 2176680680 How to convert? Please help me.... Is there any function "strtoull()" as like strtoul()... Thanks in advance...
stackexchange/codereview
I use below code for shake button How can i cancel it when it's in progress? #define RADIANS(degrees) ((degrees * M_PI) / 180.0) CGAffineTransform leftWobble = CGAffineTransformRotate(CGAffineTransformIdentity, RADIANS(-10.0)); CGAffineTransform rightWobble = CGAffineTransformRotate(CGAffineTransformIdentity, ...
stackexchange/codereview
I am working on one app in which i need to upload video and audio, i had heard lot about mediapicker but i am not getting actually how to deal with it. Can anyone please tell me about this.
stackexchange/codereview
We would like to monitor TIBCO Rendzevous using JMX. Is it possible , if yes, How we can do it.
stackexchange/codereview
I'd appreciate any help with this - I'm sure it's a simple mistake. The location of my app is C:\sanj\rubyjobs. I have installed ImageMagick successfully in its default location: C:\Program Files (x86)\ImageMagick. I have also installed rmagick the gem by running gem install rmagick --local in C:\sanj\rubyjobs\vendo...
stackexchange/codereview
Subquestioning "Unable to update sys.columns - any other approach?" vaguely mentioning the problems on deployment to server with a different collation. The problem is that by default SQL Server collation is determined (during setup) by Windows Regional and Language Options --> Advanced --> "Select a language to match...
stackexchange/codereview
In my users table I have a true/false boolean flag which signifies whether the logged on user is Admin or not. Basically, even Admin and other users has access to database because it's a small college website. How do i ensure that general users don't modify the flag? Is storing admin flag a correct way of doing? If i k...
stackexchange/codereview
Below is my action in the controller. I am trying to test this action via an integration test. This would require me to mock the session objects as well. I have started with the integration test, but have no luck with it. def listData= { def playerId=session["playerId”] tuneInstanceList = tuneService.calc...
stackexchange/codereview
I used the following seek bar for displacing the progress of my audio. <SeekBar android:padding="7dp" android:id="@+id/SeekBar01" android:layout_width="245dip" android:thumb="@drawable/seekthumb2" android:progressDrawable="@drawable/seekbar1" android:layout_height="fill_parent" android:clic...
stackexchange/codereview
I want to fill dropdown from the Javascript object returned from JSON.parse(). Tried but not successfull. Please help <script type="text/javascript" charset="utf-8"> <br /> //This is returned from Model. All I want to put that in dropdown.<br /> //var cat = JSON.parse('[{"Selected":false,"Text":"Blue","Value":...
stackexchange/codereview
I have some jquery code that uses the live method of triggering events: $(document).ready(function() { $('.cross-link').live(function() { $('a[href=#2').click(); }); }); Where cross-link elements can be generated after the DOM has loaded. Firebug reports that F is undefined. It references the last...
stackexchange/codereview
I have a simple listbox with more items than fit on the screen. If you scroll to the last item it is shown but then drops back off the screen - I can't leave it in view. After an hour of Googling it seems to be a known issue in early versions of the Listbox but it still seems to be the case in the latest tools. There a...
stackexchange/codereview
I need to store the customers' driver license # (most of the time) (or personal ID) so when they come to pick their product they can identified themselves based on their id. This is usually the way it is handled everywhere in my country (unfortunately). However, I would like to store this #'s encrypted in mysql. I now ...
stackexchange/codereview
Ok I have the following function that creates a select menu so a user can choose a state. function state_selection() { $str = '<select name="state">'; $states = array( 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'District of Columbia', 'Florida', ...
stackexchange/codereview
I have the following jQuery code that works fine in IE8, FF but in IE8 comp mode it gives this error Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Creative Auto...
stackexchange/codereview
I am using Nhibernate (I am a complete noob), and what I want to be able to do is copy an entity that is loaded from the database and save it with a new Id... has anyone run into this situation? Any help would be very appreciated.
stackexchange/codereview
What is the most memory efficient and easiest (yes, I know those are sometimes mutually exclusive) way to create an R data frame then save it to an .Rdata file using Java? Go easy on me though, I'm not a Java developer.
stackexchange/codereview
I need to convert the following correlated subquery in Linq to Sql. I am able to achieve the left outer join part. However, grouping in a subquery is where i am getting incorrect results. SELECT ae.Id,ae.Title ,(select COUNT(*) from [dbo].[AssociationEventRSVP] where RSVPStatus='Y' group by AssociationEventId, RS...
stackexchange/codereview
I have a form for uploading images. I'd like to disable the submit button, until user selects an image to upload. I'd like to do it with jQuery. Currently I have a JavaScript function that prevent user from submitting the form more than once by disabling it on submit. It'd be nice to combine this functionality with the...
stackexchange/codereview
I have this application that I haven't created and I don't have the source for. But it's really handy in handling and recording the time I've used on different projects. But it has this annoying pop-up that comes up that contains a window and some debug text I believe. It wasn't done by a professional, it was just a ho...
stackexchange/codereview
I'm building a website to organize comics collections. So you have on the left a list of yours comics and if you click on one of them, the page with the details about that comic is loaded on the right with AJAX with the jQuery load() function. I don't have a page for every comic but for every serie (one for all the "Wa...
stackexchange/codereview
I'd like to write a sandbox virtual machine for executing a compiled program. My goal is to isolate that program from the rest of operating system and control its execution so that it can't do anything harmful to a host computer. I assume that: executed program is compiled to Portable Executable format and it's in ma...
stackexchange/codereview
I'm trying to create a mapping for tile/pixel positions in one tiled image dataset to tile/pixel position in a different dataset (that roughly cover the same image area). Due to rotations of the imaged area, panning axis, translations, and scale changes, there are many unknowns to account for in this mapping. This situ...
stackexchange/codereview
How can I find the current depth inside a recursive function in C++ without passing in the previous level? i.e. is it possible to know how many times the function was called without using a parameter to keep track of the level and passing that number in as a parameter each time the function is called? For example my re...
stackexchange/codereview
my string data as as follow. var HmtlStr = "<span>My names is <u>KERBEROS</u>. AGE: 29, my eyes <b>BROWN</b>.</span" result must be like this which i want; <span>My names is <u>Kerberos</u>. Age: 29, my eyes <b>Brown</b>.</span thank you very much for your help, already now.
stackexchange/codereview
Is there a way to restrict the options available in the view data class select list in the MVC add view dialog box. I really would only like to have models from a single assembly in it?
stackexchange/codereview
I have a SELECT statement that uses GETDATE() for two different column values. I'm wondering if by the nature of things those two separate function calls in the same SELECT will return identical values every time?
stackexchange/codereview
This is my SLSB: @Stateless(name = "FinderEJB") @Path("/") public class Finder implements FinderLocal { @Path("/simple") @GET public String simple() { return "works"; } } The interface is: @Local public interface FinderLocal { public String simple(); } This is what I'm getting in Glassfish server log wh...
stackexchange/codereview
for post in db.datasets.find({"loc":{"$near":[50,50]}}).limit(10): How do I get the distance between the document and "50,50"?
stackexchange/codereview
I have some old urls http://www.website.com/result/?q=&result=1 http://www.website.com/result/?q=&result=2 http://www.website.com/result/?q=&result=3 http://www.website.com/result/?q=&result=4 etc.. probably going up to about 60 Is there anyway I can create one rule that redirects any query that looks like this to the...
stackexchange/codereview
If I have the following table structure... Table 1: BlogPost PostId | Name | Text Table 2: Tags TagId | Tag Table 3: BlogPostTag PostId | TagId And the following stored procedure... CREATE PROCEDURE SearchBlogPosts @tagstring nvarchar(max), AS BEGIN DECLARE @searchTags TABLE (Tag varchar(50))...
stackexchange/codereview
I'm trying to refine a personal git workflow to something a little easier to deal with. Here's some background of how I'm using git for purposes of this post: A single developer who is the only one working on the repository. A single copy of the repository that is stored on the local machine. Only two branches "dev" a...
stackexchange/codereview
I have a URL: http://somewhere.com/relatedqueries?limit=2&query=seedterm where modifying the inputs, limit and query, will generate wanted data. Limit is the max number of term possible and query is the seed term. The URL provides text result formatted in this way: oo.visualization.Query.setResponse({version:'0.5',reqI...
stackexchange/codereview
I have a DataTemplate with a number of layered text and graphic objects. One of them is a glow effect that comes from the RadialGradientBrush Fill property of a Rectangle. At first, I named the Rectangle and bound to the Fill property and changed it using a DataTrigger. This worked fine, but I have a number of RadialGr...
stackexchange/codereview
I had the following code: Contract.Requires(somecondition, "some message"/*some comment*/); and while debugging at some moment the condition wasn't met, and it threw the exception with the usual text, plus the comment! :P So I got this exception: ContractException was unhandled. Precondition failed: somecondition. "s...
stackexchange/codereview
At the root of my site... www.domain.com . want to add some static pages that the page url can be set from the user. So if the users set as url profile then full page url should be www.domain.com/profile .. So far a simple rewrite rule would do the job. trasnlate it to something like /staticpage.php?tag=profile T...
stackexchange/codereview
I am attempting to make a web browser object in C# which support html5 as good as Safari or Chrome. My main goal is for playing video, or supporting the video tag. So far i have got WebKit.Net working and playing html5 video off w3schools website, but this only works when quicktime is installed; and i really hate that ...
stackexchange/codereview
How should my mysql table look like when I allow a user to enter there post in multiple categories. Should it look like the below mysql table in example 1 or in example 2 or something different? EXAMPLE 1 CREATE TABLE ac ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, categoryID INT UNSIGNED NOT NULL, articleID INT...
stackexchange/codereview
Short version: Where should I store environment-specific IDs? ENV['some-variable']? Somewhere else? Long version: Let's say I have a model called Books and a book has a Category. (For the sake of this question, let's say a book only has one category.) class Book < ActiveRecord::Base belongs_to :category end class...
stackexchange/codereview
I wrote a simple console program for the use of testing some key classes in a library I'm building. Now, the code builds correctly with no errors. But, after executing the code, I found that the application stops working after calling the Index method at a certain point in the code. I tried debugging a few different wa...
stackexchange/codereview
OpenLayers has a good example which I would like to reuse: http://openlayers.org/dev/examples/dynamic-text-layer.html But when I download it and run on my machine, it does not work. It also does not work when I download OpenLayers-2.10.zip from openlayers.org site, unpack it on my machine and run this example. When I ...
stackexchange/codereview
I am working in a little app for iphone base on ideas used to make an Android app. To test, obviously i use the simulator, but the simulator don't have support for built-in camera. The Android idea to test this consist in use a WebCamBroadcaster Java app in the desktop to capture frames from built-in webcam and pass it...
stackexchange/codereview
I want to position an unordered list of items on the left-hand side of a menu header (horizontally displayed, not vertically). For example where you see Home, HTML, etc: How do I accomplish this effect with CSS?
stackexchange/codereview
Can background image extend beyond div's borders? Does overflow: visible apply to this?
stackexchange/codereview
When I try to run my script I at first I put the shebang in the script at the top and then tried this: php -f /home/phil/www/disable_script.php But I'm immediately greeted by this: PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/zlib.so' - /usr/lib/php4/zlib.so: cannot open shared object file: N...
stackexchange/codereview
I'm new to c# so go easy. Basically I build a data table ( and I have verified it's not empty) but it doesn't seem to get displayed in my wpf datagrid... I used this example here and applied it:link text My datagrid remains blank. Does that example look fine to you guys? here is my code: XACML: <Window x:Class="WpfAppl...
stackexchange/codereview
Possible Duplicate: ASP.NET MVC - Linq to Entities model as the ViewModel - is this good practice? Is is OK to use EF entities classes as view models in ASP.NET MVC? What if viewmodel is 90% the same of EF entity class? Let's say I have a Survey class in Entity Framework model. It 90% matches data required for view ...
stackexchange/codereview
How can I find all the files ending with .sh OR .bin in a given folder. I know I can do: find /path/to/folder -name "*.bin" to find all bin file. What must I add to also look for .sh files ?
stackexchange/codereview
I would like to be able to sort this array by the element array's size; array( [0] => array( [0] => 'B', [1] => 'C'); [1] => array( [0] => 'B'); [2] => array( [0] => 'A', [1] => 'C'); [3] => array( [0] => 'A', [1] => 'B', [2] => 'C'); [4] => array( [0] => 'C'); [5] => array( [0...
stackexchange/codereview
In my project I want remove some rows first then afterwards insert new rows. But some times what happens is it inserts the new rows first then afterwards removes the starting rows. To solve this problem I need to manage the operations in a proper sequence. Please help me out.
stackexchange/codereview
i am currently trying to develop an JNI(Native) component for a Java application, I would like to compile my native components into a Windows DLL, however don't have the time to reinstall windows. is it was possible to set up MINGW with Netbeans so that i can use the IDE's functions to compile the DLL. Thanks Lee.
stackexchange/codereview
I have some 4500 entries in my database. What is the best way to show them in a ListView. Should I load them all in one stretch when the application initializes or should I use lazy loading? The list will also be searchable and filterable. Could you also point me to some nice articles that would gimme a better idea. Pl...
stackexchange/codereview
My program produces small figures during the command cycle. Is there a way to just save these figures and then combine them in one figure later?
stackexchange/codereview
Am doing all the examples from the "Pragmatic Bookshelf Programming Scala" book. It is simple singleton example but am not getting it right i.e. values from map are not fetched. Can you point out the error. class Marker(val color: String) { println("Creating " + this) override def toString(): String = "marker color...
stackexchange/codereview
I am researching ways, tools and techniques to parse code files in order to support syntax highlighting and intellisence in an editor written in c#. Does anyone have any ideas/patterns & practices/tools/techiques for that. EDIT: A nice source of info for anyone interested: Parsing beyond Context-free grammars ISBN 978-...
stackexchange/codereview
Total newbie or noob ;) to jQuery so please be patient with me... I'm using the standard .animate method along with the timer plugin to loop an animation on two background images, one being the child of it's parent. The effect is a piece of instrument cleaning equipment sliding up and down a guitar string as shown on t...
stackexchange/codereview
Is it possible to change the discrete zoom in android Mapview to continuous? At the moment, if you zoom in with gestures, you actually zoom in steps, as the zoom always bounces back to a certain zoom level. In iPhone e.g. the zoom level is more continuous, because before loading the new tiles of the next zoom level, i...
stackexchange/codereview
I should write a function min_in_list(munbers), which takes a list of numbers and returns the smallest one. NOTE: built-in function min is NOT allowed! def min_in_list(numbers): the_smallest = [n for n in numbers if n < n+1] return the_smallest What's wrong?
stackexchange/codereview
There is "location" property in GeocoderRequest object, that defines "LatLng about which to search. Optional.", I'm trying to use it, but it does not work: geocoder.geocode( { address: control.value, location: new google.maps.LatLng(59.938531, 30.313497)}, function(results, status) {....}) For example, when I'm searchi...
stackexchange/codereview