instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I need 2 programs that create below example outputs: 1) ?-length_full([a,[b,c],[d]],R). R=4 2) ?-mirror([a,[b,c],[d,e]],R). R=[[e,d],[c,b],a] I tried but couldn't write the programs...so please help me!
stackexchange/codereview
I'm trying to dynamically populate a dropdown for the jqGrid when the user is editing data. I have it pretty much working however, there is one value in the dropdown call "undefined". I suspect this is because of the way I'm sending the data to the grid. I'm using ASP.NET MVC 2 and I'm getting the data for the dropd...
stackexchange/codereview
How to write a backslash escape behind \ ? $newer = "e:\www\test\".$str.".html"; By the way, how to post a php code? Forgive I am a newer.
stackexchange/codereview
I am using EF 4 and POCOs in a project. Currently, I manually create POCOs that I need using this format/layout: public class Blog { public int Id { get; set; } public string Title { get; set; } public string Description { get; set; } public virtual IList<BlogPost> BlogPosts { get; private set; } } pu...
stackexchange/codereview
This is assuming we don't call the .printstacktrace method - just throwing and catching. We are considering this for some performance bottlenecks.
stackexchange/codereview
This makes no sense to me, coming from CSS. In CSS, if you specify a margin and then margin-left, the left margin will assume the more granular value. In Android, it is the opposite. Same goes for android:radius, and I'm sure other values. My question is: why?.. It makes no sense. Is there a single reason for doing it ...
stackexchange/codereview
PHP's define("CONSTANT", "Hello world."); is global function which is you can call it even if your inside the class or function. I have example below and let's say inside the class I declare a global variable supposed to be like private global $allForm; my question how can i call the $this->allForm inside validate() wi...
stackexchange/codereview
I need to call an executable, from my QT application, monitor the output and then display the out put in a text browser. The executable I call from my QT app will run for many hours (~12) and each time the executable spits something out to stdout, I need to parse the output to be able to monitor its progress, then disp...
stackexchange/codereview
Does anyone know if there's a standard class for an infinitely nestable dictionary in Python? I'm finding myself repeating this pattern: d = defaultdict(lambda: defaultdict(lambda: defaultdict(int))) d['abc']['def']['xyz'] += 1 If I want to add "another layer" (e.g. d['abc']['def']['xyz']['wrt']), I have to define ano...
stackexchange/codereview
I have been trying to create a 3 column drop-down list as Country, State, City. The list of state will be shown based on which country is selected. and the same thing happens to city depends on which State is selected. My database is as follow. If a country is selected, then states will show depending on country. Same...
stackexchange/codereview
I would like to figure out how to save a bitmap or vector graphics image after creating a drawing with python's turtle module. After a bit of googling I can't find an easy answer. I did find a module called canvas2svg, but I'm very new to python and I don't know how to install the module. Is there some built in way ...
stackexchange/codereview
I'm pretty used to git by now, and I'm about to start contributing to a project that uses Monotone (mtn). I could just use the export system to convert to git locally, but I figured learning another DVCS wouldn't be too hard learning is Good For MeTM it'd be easier to coordinate with other devs if we were all using t...
stackexchange/codereview
How can we use default wordpress text editor for my wordpress plugin.Any suggections please?
stackexchange/codereview
How well is -moz-box-shadow supported by Firefox? I thought I heard of it for quite some time but the page https://developer.mozilla.org/en/css/-moz-box-shadow says that it is not supported until Firefox 3.5 and Gecko 1.9.1? (with current Firefox 3.6.12 and Gecko 1.9.2) So it is not supported until recently, is tha...
stackexchange/codereview
I set up a push notification service to send out notifications to clients based on an RSS feed. I have a service that runs every minute to see if a new post was added to the feed. If so, the service will send out a notification to all the clients. However, some people have been complaining saying that they are not rece...
stackexchange/codereview
I'm trying to style my combobox as below. The dropdown is showing the correct list of names, but when selected the namespace.classname is shown as the combo text instead of the selected name. I've got the following style and declaration of the combobox. Anyone has any idea what I've got wrong? Thanks! <!--ComboBox Sty...
stackexchange/codereview
I have the following in views.py to generate a page that shows an inline set of forms for a user's "qualifications" from django.db.models import User from models import UserQualification def edit_quals(request): QualsFormSet = inlineformset_factory(User, UserQualification, fields=('qualification', 'qualification_y...
stackexchange/codereview
It's crazy, but query performance is about 50% WORSE after I add a primary XML index to my xml field. Here's what I'm doing. I have a table containing an XML field ActivityStepLog (contains LogData, XML) I generate sample data to insert into this table by running the following INSERT INTO dbo.ActivityStepLog ( LogGUI...
stackexchange/codereview
Here is my problem. I have a windowed application in Flash Builder with some code and then an image. <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns....
stackexchange/codereview
I need to place div around group of form fields in django template. Easiest way would be to do is MyForm().as_table() copypaste that and enclose group of fields with appropriate div. Only problem is that this approach fails when there are errors in form validation because {{ form.fieldname.errors }} isn't mentioned ...
stackexchange/codereview
What I am trying to do, is to find a file with NAnt. This file could by anywhere in a directory structure of a given folder. I tried to this with the NAnt-foreach task (this works) but I am not quite convinced of that: <target name="find-file"> <fail message="Property param.dir must be set" unless="${property::exis...
stackexchange/codereview
I have developed a PDF Converter / Viewer for Windows Phone 7, but it is rather useless unless it can get the source files (Word, Excel, PowerPoint, etc) from somewhere. An obvious place to get these files from is the Office hub on the phone, but there doesn't appear to be a documented way to access these files program...
stackexchange/codereview
Is there any standard way to protect your privacy in Visual Studio? I find it extremely disconcerting that it creates all sorts of binary files that have my user name and system paths embedded in them every single time I open a project. I'm trying to make a portfolio with some sample code for potential employers, and e...
stackexchange/codereview
I'm working on a multi-platform "occassionally connected" app. Each instance of the app stores a "cache" of the data that it retrieves from the cloud, which has the authoritative datastore. So on start-up the app would check if its cache is out of date, and if so download the delta from the cloud. This is certainly ...
stackexchange/codereview
I have an element on my page. <asp:Button ID="buttonToFind" runat="server" OnClick="SomeProcess" /> In javascript I'm trying to find this control using: document.getElementById("buttonToFind"); However it can't seem to find the control. My understanding is that the asp:Button gets changed to an input element? This in...
stackexchange/codereview
I have a common library with some objects in it. Then I have a service project that references the common library and creates some derived types from objects in the common library. I want my service to serialize the derived types as their base types defined in the common library. I cannot use KnownTypes on the objects...
stackexchange/codereview
Sometimes I encounter this situation in Java while trying to use immutable objects. In Java, a method can't return multiple objects, like return a, b, c. Returning an array of objects of different types or a wrapper object makes the code look ugly. Therefore, I have to pass mutable objects to the method and let it chan...
stackexchange/codereview
I just can't get the regex right: awk '$6 ~ /:${14}/ {print $6}' file I need to print out the 6th field if it's 15 characters long and ends with a ":". Here's an example: oAFKq7XS001224:
stackexchange/codereview
I have a dll (project.dll) I want to sign the dll using cmd as I don't have source code of it. Is it possible to sign a dll without sourcecode. If yes, please let me know how to do it.
stackexchange/codereview
In Xcode 3.2.5 I hit Ctrl + L to center the content (just testing out some shortcuts) and now whenever I hit Return, the cursor starts in the centre of the next line, instead of at the beginning. (Almost like an invisible tab stop in Pages) How do I get my normal Return functionality back?
stackexchange/codereview
I know the difference between static and dynamic linking, and this isn't another question asking for the difference (I have looked and read them). I didn't find any questions about the security of dynamic linking. I have been reading the book, "Expert C Programming." It has a nice section on linking. If my understandin...
stackexchange/codereview
I renamed my root project folder and opened it up in xcode. about 20+ files shows up in red (indicates missing). I then delete the "red" files and tried to re-add them back. but I get a copy error. "xcode cannot copy blah blah..." 1) How can I resolve this? 2) Is there a "Locate" feature that I dont know about? ---- R...
stackexchange/codereview
I have a multidimensional array which I would like to sort by two factors: First the state and then the city alphabetically. var locations = [ ['Baltimore', 'Maryland', 'MD'], ['Germantown', 'Maryland', 'MD'], ['Rockville', 'Maryland', 'MD'], ['San Franc...
stackexchange/codereview
I am performing serialization using System.Runtime.Serialization.Formatters.Binary.BinaryFormatter. I have a collection which wraps a List. When I deserialize the collection (which deserializes the List), all of the List's elements are null if any of the elements implements ISerializable, except those items which I s...
stackexchange/codereview
I'm a .NET developer starting to dig into an android application. One thing that seems a little abstract is working with SqlLite. In a .NET application, I can do my Database setup, query testing and profiling, and enter in some test records through Management Studio for MSSQL. In fact, I'm constantly in Management Stud...
stackexchange/codereview
Using JQuery and the Microsoft Template plug-in, I have this in the template: <input type="button" value="Save" onclick="Add('{{= path}}')" /> The path is a file system path of C:\Photos\myPhoto.jpg But the backslashes are interpreted as escape characters. How could I format this to include the backslashes?
stackexchange/codereview
Is there anyway I can develop CSS in eclipse. Im using Eclipse Helios version and I want to be able to create CSS pages in it. But I couldnt find CSS file anywhere in it.
stackexchange/codereview
I have a blender model and below is a image of how my model renders when I load it into python. It looks like the normals are all messed up. I am using the correct normal for each vertex. I'm exporting them in the correct order. I test this in the blender console that the actual export file had the right data. I know ...
stackexchange/codereview
test.html <html> <!-- Please see the full php-ajax tutorial at http://www.php-learn-it.com/tutorials/starting_with_php_and_ajax.html If you found this tutorial useful, i would apprciate a link back to this tutorial. Visit http://www.php-learn-it.com for more php and ajax tutrials --> <title...
stackexchange/codereview
Here is what I'm looking for in SQL: select * from issues i1 where exists ( select '' from issues i2 where i1.projectid = i2.projectid and i2.userid = :currentUser ) Anyone know how to write that for the Jira query language? Thanks.
stackexchange/codereview
IS it possible to use the java reflection api in GWT client side? I want to use reflections to find the value of a property on a Javabean. Is this possible?
stackexchange/codereview
I am using the symfony embedRelation method to embed forms.The code is like this: public function configure(){ //...... $this->embedRelation('Foos as foos'); $this->getEmbeddedForm('foos')->mergePostValidator(new MenuValidatorSchema()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ th...
stackexchange/codereview
Suppose you have two classes, as in the example below. How would you modify SplitObject such that it always returns an object of type t, such as in Main(), where it should return an object of type DerivedClass? I'm guessing the solution would involve reflection? I haven't learned anything about reflection yet, so I don...
stackexchange/codereview
I can't figure out what's happening here. I've got a few lists set up, one for each individual color with corresponding RGB values as its member, and then the list, colors[], that contains each individual color list. Then I've got a nested for loop: the outer loop creates columns of color-filled rectangles and the inne...
stackexchange/codereview
import threading import mynetworking def FirstNIC(): for addr in mynetworking.first.scan(): print addr def SecondNIC(): for addr in mynetworking.second.scan(): print addr first = threading.Thread(target=FirstNIC) second = threading.Thread(target=SecondNIC) first.start() second.start() Th...
stackexchange/codereview
I am attempting to create a program for a wireless mesh (adhoc in all but name). Most of the network will deal with TCP messaging but to determine all neighbor IPs (as they will be unknown on startup), I choose to use UDP Broadcast for the initial discovery messages. I have two problems currently. First, the UDP Broadc...
stackexchange/codereview
On my site, I display an image after the user clicks on a thumbnail (opens in a lightbox). I want to store the number of times users open the images. I was thinking of something like pointing to an ASHX page that generates the image and updates the DB with the view count, but this can't be done since this is a remote ...
stackexchange/codereview
Hi Please give clear practical uses where silverlight must be used, with some practical example, where we must go for silverlight.
stackexchange/codereview
Hi Suppose I have a simple model class like this: class TestModel(models.Model): testkey = models.ForeignKey(TestModel2) ... When I am creating a TestModel object I have to pass to it an instance of the TestModel2 object to create it: testkey =TestModel2.objects.get(id=...) TestModel.objects.create(testkey=tes...
stackexchange/codereview
I'm building a site that will link to various other sites using php scripts of the form website.php with the code in each file simply being: header( 'Location: www.website.com' ) ; I'm debating between two ways to create these files: Hardcode the URL for each website -- basically nothing dynamic at all about the scri...
stackexchange/codereview
I couldn't find useful info on SSH proxy setting in mechanize, so I wonder if I can just set the proxy like this: br = mechanize.Browser() br.set_proxies{“SSH": "11.11.11.11:22"} Anybody knows? If this won't work, how do I make SSH proxy work with mechanize Browser? Thanks
stackexchange/codereview
How can I make sure that this path: new Zend_Log_Writer_Stream(APPLICATION_PATH . '\logs\app.log') works both on linux and on windows?
stackexchange/codereview
How can I clip an image according to the screen resolution like on www.webworks.0fees.net. My page needs to be scrolled way to the right. Can I just clip it to the right size so that it automatically gets adjusted to the correct size according to any screen resolution?
stackexchange/codereview
I have the below dictionary with lists of objects. args = {'Qtag': [ [<Question: Question object>, <Tags: Tags object>], [<Question: Question object>, <Tags: Tags object>] ] } inside my views.py args=dict(Qtag=Questag) t=loader.get.template('main.html')...
stackexchange/codereview
Im using apache directory scanner to scan files in a path having wildcards. DirectoryScanner scanner = new DirectoryScanner(); scanner.setIncludes(new String[]{"*/*.java"}); scanner.setBasedir("C:/Temp"); scanner.setCaseSensitive(false); scanner.scan(); String[] files = scanner.getIncludedFiles(); The problem here is ...
stackexchange/codereview
The whole generics thing is kinda throwing me for a loop, and more so the RTT. Specificis? Ah well here's the gist: enum QueryHelper { query1, query2; static <T> QueryHelper getQueryHelper (Class<T> expectedReturn) { if (expectedReturn.isInstance (SomeRelatedClass.class)) return query1; else ...
stackexchange/codereview
I have some ASP.NET (MVC2) auto generated html which is creating forms looking like this: This is because say each of the drop downs is a list of strings, some string in that drop down is long/short. What I want to do is make them all the same size, or at least clean this form up in some way. I'm guessing I can inspec...
stackexchange/codereview
I have edited a footer in a template based website (all the pages should be build on the same structure right?) But for some reason I can't find, the footer is displayed not at the bottom. Maybe the whole footer thing doesn't work at all and was I lucky because of the long content?? This pages look ok: page1 page2 Thes...
stackexchange/codereview
Is there a function to limit the number of characters a user can enter in the CLI to read in a variable? I can limit the amount of characters a value can storage, so if i put string[4] and i enter abcdef, the variable stores just abcd. I need to limit the number of characters a user can write. How can this be done? T...
stackexchange/codereview
i'm looking for a way to have a NSWindow, which is able to block other NSWindows, like the menubar does. I mean: It is not possible to drag a Window over the menubar. Is that kind of behavior realizable for my own NSWindow? Thanks in advance Bijan
stackexchange/codereview
Is there a way to correctly concatenate three arbitrary XPath expressions to result in a new valid XPath expression?
stackexchange/codereview
I have: public class B { public string Some { get; set; } } public class D : B { public string More { get; set; } } [KnownType(typeof(D))] public class X { public B[] Col { get; set; } } I want to automatically read/write XML exactly like: <X> <Col> <B Some="val1" /> <D Some="val2" More...
stackexchange/codereview
i try to create a method to build fast DataTable my current code is like this implementation var table = build("myTableName").col<int>("col1").col<string>("col2") .row(1, "row1") .row(2, "row2"); public static DataTable build(string name) { return new DataTable(name); } public static DataTable col<T>(this DataTable ...
stackexchange/codereview
Is it possible to specify where the components within a composite component will be displayed on your webpage? I have a composite component with a label and a textbox in it. I would like to know if I can specify to have the label be displayed on a div with id "label" and the textbox will be displayed inside another div...
stackexchange/codereview
date_select method can only set :start_year, but i'd like to set start date (e.g. date 3 months ago) (but there are no such options). so, can i set start date to date_select method? or, to make such the select box, should i use select_tag and options_for_select? or, are there any solutions? thanks,
stackexchange/codereview
I have a JDBC receiver adapter in PI 7.1 running on i5/OS. I deployed the DB2 driver with JSPM and it's working fine on a schema who is NOT in the independent auxiliary storage pool (IASP) When I try to access my schema in the IASP the Adapter cannot establish a connection. Any idea if I need to modify my connection ur...
stackexchange/codereview
I wanted to connect to a remote MySQL host (with rake db:create), but Rails always considers it to be local. Database.yml which uses the following config: defaults: &defaults encoding: unicode adapter: mysql username: <username> password: ************* port: 3306 host: <remote ip address> development: <<...
stackexchange/codereview
I have sanitize class that I run before anything else on every page of my site. I'm pretty sure addslashes is the same as escaping with mysql_real_escape_string heres the class. class sanatize { private static $singleton; function __construct(){ $_CLEAN_POST = array(); $_CLEAN_GET = array(); $_CLEAN_REQUE...
stackexchange/codereview
I have a really simple request, but I'm stuck on how to implement the ajax stuff. Basically on document.ready, I've got a javascript method that checks for a "UTCOffset" cookie, and if it doesn't exist, it will do a "behinds the scenes" ajax post to a controller that sets the offset. Basically I'm trying to make it so ...
stackexchange/codereview
Good day everyone, I have the following XML data : <?xml version="1.0" encoding="utf-8" ?> <Publicity> <pub display="left" type="image" url="http://www.link.to.website" alt="Lorem ipsum" startDate="2010-09-01" endDate="2011-09-01">http://link.to.image/banner.gif</pub> <pub display="left" type="image" url="http:...
stackexchange/codereview
I got this error, but can't seem to figure it out. I copied it directly from a previous Django project, hence part of the confusion. TemplateSyntaxError at Caught NoReverseMatch while rendering: Reverse for 'about' with arguments '()' and keyword arguments '{}' not found. In my index.html, I have a link to {% url abo...
stackexchange/codereview
Here is my regular expression: @"\<\\{+(TITLE|BODY|DATE|CALENDARID|CALENDARSUBSCRIPTIONGUID|CALENDARURL|TIME|CONTACTS|LOCATION|URLINFO)\\}+\\>" It needs to check for words like {Title}. Have I made it correctly?
stackexchange/codereview
I am coming across a strange thing. I have a number in binary in the form of string particularly "01001100". But I am getting the exception mentioned above by executing the following code. String s = "01001100"; byte b = Byte.parseByte(s); But why is it happening? Whereas in a byte we can store max no. upto 127 and m...
stackexchange/codereview
I want to create an extendable nested structure and it seems like I should be able to do this using generics, though I may not be using them "properly". I want to be able to create child classes from GroupType and/or OptionType. The problem is that I can't perform the new operation on the generic types even though I sp...
stackexchange/codereview
I'm debugging a Monotouch app (created with mostly the default settings). When I ask it to debug in the simulator, it launches with the wrong hardware type -- iPad even though I'm developing for iPhone. How do I switch this?
stackexchange/codereview
I am trying to create a copy of a file which is located on a remote server to my server through some php code using curl....The problem is, the file resides at a url similar to this http://www.xyz.com/file.aspx...So when this url is used/clicked, it prompts for a download of the .txt file which is exactly the file i am...
stackexchange/codereview
I want to build a GPS location tracking application in .NET, is there any way/third party dlls that allow to implement gps in .net? Thanks.
stackexchange/codereview
I get always out of memory error. my code was: public static String openAssetFile(Context ctx) { BufferedReader br=new BufferedReader(new InputStreamReader(ctx.getResources().openRawResource(R.raw.allx))); StringBuilder text = new StringBuilder(); try { String line; while ((line = br.readLine()) != null) { ...
stackexchange/codereview
I am in an introductory C class and am having a problem with data input. I am in the middle of an exercise on subroutines and my code appears correct, but one question within the program is being bypassed for some reason, and I cannot figure it out. 1) The program reads in an ISBN book number as 10 separate characte...
stackexchange/codereview
how do I change the version of Python that emacs uses in the python-mode to the latest version that I just installed ? I tried setting the PATH in my init.el file to the path where the latest version of python resides but its not working.
stackexchange/codereview
In this Python package there is this code: >>> dt = DateTime('Mar 9, 1997 13:45:00 US/Eastern') >>> dt.timeTime() 857933100.0 I would use this package but there is a warning: "Unless you need to communicate with Zope 2 APIs, you're probably better off using Python's bult-in datetime module." TimeProperty in GAE gives ...
stackexchange/codereview
Is there an event that fires when the Street View has finished loading all the tiles that make up a panorama? Currently if you change the position manually (StreetViewPanorama.setPosition) the transition is rough, and there is no way to tell when the new files have all loaded. As a result, it's not possible to display ...
stackexchange/codereview
I can currently display all of the release years for all of the films in the database. A user can pick a year and see all of the films released in that year. Or I can show all of the genres of movie. A user can choose a genre and see all of the movies that match that criteria. I built a form in which the user can dyna...
stackexchange/codereview
How do I get rails to generate the default prototype javascript files in my public/javascripts folder? I have deleted them after experimenting with jQuery.
stackexchange/codereview
When I run any of the rspec tasks via rake, the database seems to be dropped and migrated, but if I run them via script/spec path/to/spec, it doesn't. Is there an option I can set so the rake spec doesn't touch the database?
stackexchange/codereview
I have a new web application which is based on php-mysql.It is a publisher/advertiser platform so I can expect lot of traffic if things go in right direction. I am considering two solutions to host the site:cloud(ec2) and vps(linode). EC2 is looking as an expensive vendor compare to linode. Please guide me how to set u...
stackexchange/codereview
I am trying to generate a bank NACHA (national automated clearing house association) file with my customers payment details to submit to my bank on a regular basis. Our site is built in PHP and though we could probably build the file ourselves, I was curious if anybody knew of any existing scripts or even reference gui...
stackexchange/codereview
I have a URL which supports REST WebService https://xxx.yyy.zzz/abc/xyz.svc (added some masking) the following operations are supported: Get Create Update getList $metadata the following options are supported: $top (-1 get’s all records) $select $filter (only the ‘eq’ and the ‘and’ operators are su...
stackexchange/codereview
I am designing a social network and wanted to know if I am on the right track. I have Notifications, Requests and Live feeds on the site. Similar to what we see on most sites nowadays. To design these, I assume these are NOT separate components rather they all flow out from the same Activity component? System has a se...
stackexchange/codereview
I used rounded corner and gradient. it's working good on firefox but rounded corner not working on IE. IE rounded corner only working when I remove gradient css. Please help me. <h2 id="user_comments">9. User Comments and Notes</h2> h2 { -webkit-border-radius: 8px; -moz-border-radius:8p...
stackexchange/codereview
i have a a href inside Ul li. This a is having background image as some red color , when i go to other page and hit back button i still have the same background image, how can i get rid of that.When i click anywhere on the page it goesaway. <ul> <li> <a class="headerDD"> </a> </li> </ul>
stackexchange/codereview
I'm trying to learn how to use the PivotViewer control for Silverlight. I used the excel tool to create a collection and I output the files to a folder called 'asdf'. Then I copied this folder with all of it's contents to the D: partition and here is the code I use to call the collection: using System; using System.Col...
stackexchange/codereview
I have the following simple LINQ to SQL statement: string strUserID = Eval("whoInsert").ToString(); insLusHmoobDataContext userDataContext = new insLusHmoobDataContext(); var userName = from usr in userDataContext.Users where usr.UserId.Equals(strUserID) select usr.UserName; retu...
stackexchange/codereview
I wonder if I could do this easier. It checks if $content has a YouTube link inside it. If it does, then it runs a jQuery $.getJson to get the thumbnail of it and so... But I found it very sloppy made by me, but how else should this be coded: $isY = preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=[0-9]/)[^&\n]+|(?<=v=)[^&\n...
stackexchange/codereview
Not sure what I'm doing wrong here so I was looking to see if anyone had any thoughts or suggestions. I'm trying to create a function that returns a random point WITHIN a circle. The following code gives me random points along the edge of the circle. Any thoughts on what I'm doing wrong here? Thanks! private function ...
stackexchange/codereview
I have a bunch of internet devices which communicate with my MVC app on IIS 7.5. I'm currently using the built-in dynamic transparent compression (gzip/deflate). I'd like to be able to support a different compression algorithm, which does a lot better than gzip (7zip) for the content I'm sending/receiving. In other ...
stackexchange/codereview
I have an object with several IEnumerable collections: public class Product { public int id {get;set;} public string name {get;set;} IEnumerable<CrossSell> CrossSells {get;set;} IEnumerable<UpSell> UpSells {get;set;} IEnumerable<PricePromos> PricePromos {get;set;} } I need to create a null object (...
stackexchange/codereview
I'm trying to emulate Apple's "Slide to Unlock" feature in my application. I get to this point (image below), but as you can see the UISlider's "track" is visible and is covering up my text. Is there a way to change an attribute programmatically that will make the "track" invisible? Please let me know if you need an...
stackexchange/codereview
If you using Twitter for Android you can see that clicking on phone's hard search button brings fully customized quick search-like control. Now I'm not saying that it IS stock Android customized quick search but how would one build something like that? I want quick search box behavior but I also want add some addition...
stackexchange/codereview
I've been trying to reproduce what my QA team calls the "Random Pausing Bug" for some time. Today, I reproduced it three times while debugging with logcat on. It appears intermittently and only in poor network. The user experiences audio pause, until they go touch their phone (press the power or trackball) and it imm...
stackexchange/codereview