instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
The things are simple, I have a component and I add some content to it making it change it's size, immediately I need it's new size, but flex only updates the size in the next frame by calling updateDisplayList.......hou can I force it to update the size of the component right away. Any thoughts? :)
stackexchange/codereview
I'm trying to import the column names from an MS Access Table (named Learners) to some variable (not sure which one to use). The column's names are dates. When btnSave (TButton) is clicked the code should determine if the column with the current date has been created yet. If not then it should create it. This is the co...
stackexchange/codereview
My question is this: If I have two heads (branches with changes) in my Mercurial repository, and I'd like to get rid of one of them, but discard all the changes from that branch instead of merging them into the other, and I can't strip out those changesets so I have to merge, how can I do that with the command line cl...
stackexchange/codereview
I'm trying to figure out which UML diagram I should use for a structural representation of both components/subsystems and actors. A component diagram doesn't allow for actors. Thanks!
stackexchange/codereview
i'm trying to get my head around 2nd Level Caching in Fluent NHibernate. So far i have done the following: Added a reference to the caching dll Added the following when i create my session factory: c.SetProperty("cache.provider_class", "NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache"); c.SetP...
stackexchange/codereview
according to this post I try to export my data to Excel, after several challenge now my problem is it seems work well but I can not see the exported excel file!!!! (first solution's http://www.protalk.in/oracle/plsql-tips-package-for-exporting-data-to-excel/ ) I use '/' for my directory. please help me. where is the ex...
stackexchange/codereview
Tried using this coding but no luck: MsExcel.Range("B2").Value = List5.List(0) MsExcel.Range("c2").Value = List5.List(1) my list box name is listbox5. Thank you for any help you can provide Edit by belisarius Just adding text from the author's comment here is the code I am trying to use it with: Private Sub mdof...
stackexchange/codereview
sadly I'm not really experienced in using random numbers in programming, despite the use of uniform integers in range. Therefore i have to questions regarding this topic. Question 1 (more specific): I'm looking for a way to chose array elements (dynamic size, but known) according to a probability distribution similar t...
stackexchange/codereview
I have the following scenario <TD><a href="index-1.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/m21.jpg',1)"><img src="images/m2.jpg" name="Image20" width="103" height="136" border="0">Home</a></TD> I want the Home text to appear above the image eg. floating without the image a...
stackexchange/codereview
I'm browsing web searching for english language grammar, but i found only few simple examples like: s -> np vp np -> det n vp -> v | v np det -> 'a' | 'the' n -> 'woman' | 'man' v -> 'shoots' Maybe I don't realise how big this problem is because i tought that grammar has been formalised. Can somebody provide me a sou...
stackexchange/codereview
I am using a JavaScript script that tells me if specific image URLs are cached in the user's browser cache. I'm using this because I build an array of non cached images that will be loaded separately, after more important process is done. This script is wrote specifically for Google Chrome so I don't need a cross-brows...
stackexchange/codereview
i have a fileinput field for uploading files ... the view file looks like this ... from django.contrib.auth.forms import UserCreationForm from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from forms import RegisterForm from django.views.decorators.csrf import csrf_protect from...
stackexchange/codereview
somebody addressed this issue here http://social.msdn.microsoft.com/forums/en-US/wpf/thread/6f9dd3b5-af92-4076-9b4e-1a770dd52f70/ but that was in 2006. i am currently using .net framework 3.5. Is there any better solution for that now. Does anybody know if microsoft has a straight forward solution for this issue in 4.0...
stackexchange/codereview
I have an issue with stored procedures and the test database in Rails 3.0.7. When running rake db:test:prepare it migrates the db tables from schema.rb and not from migrations directly. The procedures are created within migrations by calling the execute method and passing in an SQL string such as CREATE FUNCTION fo...
stackexchange/codereview
I'm trying to find an algorithm (or algorithm ideas) for following a ridge on a 3D image, derived from a digital elevation model (DEM). I've managed to get very basic program working which just iterates across each row of the image marking a ridge line wherever it finds a large change in aspect (ie. from < 180 degrees ...
stackexchange/codereview
I'm trying to create an ArrayList of objects in C#. What I've tried so far is: class POObject { public List<string> staticCustInfo; public List<List<string>> itemCollection; public int testInt; } POObject myObject = new POObject(); List<POObject> BatchList = new List<POObject>()...
stackexchange/codereview
I have a silly problem with Twitterizer2 and probably me :) . I add the reference twitterizer 2.3.1 from my downloads directory along with the newtonsoft one by right clicking on references and browsing to find them. I then add using Twitterizer; lo and behold all my squiggly red underlines go away on all this sort o...
stackexchange/codereview
I have a set of files in a directory like below: File-MyFile.txt File-AnotherFile.txt File-ThirdFile.txt I want to rename all files like below: MyFile.txt AnotherFile.txt ThirdFile.txt How can I use a for loop to do that?
stackexchange/codereview
How can I run linux binary under windows? Is there some emulation jar or something to run linux program under windows from java program code like Runtime.getRuntime().exec()?
stackexchange/codereview
I'm getting this error Unable to cast object of type 'System.Int32' to type 'System.String'. when doing a routine LINQ to SQL query: Return ( From n In DbContext.Newsletters Where n.NewsletterID = NewsletterID ).FirstOrDefault Here's the stack trace FWIW. [InvalidCastException: Unable to cas...
stackexchange/codereview
I have a multimap and I would like to get a set of sets - which would group together all the items of type A in the multimap that share the same key. Is there a built-in way to do this in STL?
stackexchange/codereview
Regarding these two approaches: <asp:Label ID="Label1" runat="server"><%# DateTime.Now %></asp:Label> and Label1.Text = DateTime.Now.ToString(); Which do you use and why?
stackexchange/codereview
I'm building a table using jsp. The table contains 9 columns, some of the columns have combo boxes which are built using data from the database. I have to generate the same row when I click on AddNewRow button. In the table the first column is a checkbox that represents the unique id for each row item. I tried to writ...
stackexchange/codereview
We have a program written in VB6 that in the past connected to Oracle 9. Now we have some new computers with windows 7 on them, so we had to install oracle 11g to be compatible. But now our program can't connect to the database anymore. Other stuff like sql*Plus connects fine. Is there something we have to change in th...
stackexchange/codereview
This is going to sound like an odd request, but... I have a web application that is set up to collect data and store it into a database on regular intervals. The application is designed to basically stay open all the time, and the screen displays what is most recently added into the database (by using ajax to check the...
stackexchange/codereview
Is there any conceivable point to reloading these modules immediately after importing them? This is the code that I was reviewing which made me wonder: import time import sys import os import string import pp import numpy import nrrd reload(nrrd) import smooth as sm reload(sm) import TensorEval2C as tensPP reload(tens...
stackexchange/codereview
I have a table with information from students and tests, every time a student takes a test a record is saved in this table, so I want to get the last attempt from the students of one test. | IdStudent | IdTest | Attempt| ------------------------------- | 1 | 1 | 1 | ------------------------------- | 2...
stackexchange/codereview
I have a Ruby app which (on Linux) uses the /proc filesystem to get information on its memory usage. Does anyone know how to get the same information for Mac OSX? The task_info system call looks promising but is there an equivalent available from Ruby? To be clear, I'm looking for a system call, I don't want to kick of...
stackexchange/codereview
I tried shuffling a list of byte (List) using either code: myList.Sort((a, b) => this._Rnd.Next(-1, 1)); or myList.Sort(delegate(byte b1, byte b2) { return this._Rnd.Next(-1, 1); }); and they threw the following error: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a v...
stackexchange/codereview
We have switched from sqlite to FireBird embedded server, because FB seems to support concurrent updates of the database, but we sometimes have these exception coming from it: 2010-10-28 15:49:31,242 [56] ERROR NetworkCatcher.Entities.Agent.Server.RunResultManager - Failed to send result to server 32W2K3SP2VM-DEV. NHib...
stackexchange/codereview
Anyone pls give me suggestion. I am trying to create a new web application at sharepoint. But cannot create from sharepoint central admin ... error occured "Unknown Error". so I try to create with stsadm -o extendvs ... at that time error occured.. Directory lookup for the file "F:\MSSQL\DATA\WSS_Content_Internet_NewPr...
stackexchange/codereview
I need to recursively move through a bunch of custom views of mine that extend the view class. E.g. ViewOne.java ViewTwo.java ViewThree.java I have created instances of each view in my MainClass.java ViewOne vOne; ViewTwo vTwo; ViewThree vThree; these views all implement a function called start(). and I want to be ab...
stackexchange/codereview
If Tom is selected from the drop down box, how do I get the name and not the value using jQuery so that the resulting output would be Tom? <select id="emp" > <option value=1>Tom</option> <option value=12>Harold</option>e <option value=32>Jenny</option> </select>
stackexchange/codereview
I've a dropdownlist which is designed using html select tag. the thing is its working fine in ie and not working in mozilla, opera and google chrome... can any one help.. the code used is <select name="select nav" size="1" style="background-color:#FFFFFF" onChange="location.href=options[selectedIndex].value;"> ...
stackexchange/codereview
What are the advantages and disadvantages of each? From what I've seen, either one can work as a replacement for the other if need be, so should I bother using both or should I stick to just one of them? Will the style of the program influence my choice? I am doing some machine learning using numpy, so there are indeed...
stackexchange/codereview
I've been working with FParsec lately and I found that the lack of generic parsers is a major stopping point for me. My goal for this little library is simplicity as well as support for generic input. Can you think of any additions that would improve this or is anything particularly bad? open LazyList type State<'a,...
stackexchange/codereview
I have a UIViewController that has two text fields, inputA and inputB. inputA works like a normal text field, click it and the keyboard shows up and you can type. But inputB triggers another view (think of it as a button). This second view, MyView, has a custom popup view which is animated to appear with the keyboard. ...
stackexchange/codereview
I would like to animate nsmenuitem that I have for my app (preferably use coreanimation). I have seen the menu item animating in CloudApp, dropbox, Time Machine and Syncing MobileMe.
stackexchange/codereview
I have the following C++ code std::map<std::string, std::vector<std::vector<std::vector<double> > > > details details["string"][index][index].push_back(123.5); May I know what is the Pythonic to declare an empty map of vector of vector of vector? :p I try to have self.details = {} self.details["string"][index][index]....
stackexchange/codereview
Possible Duplicate: What good does zero-fill bit-shifting by 0 do? (a >>> 0) I was looking at array.indexOf(), and I'm aware that IE7 does not natively support that. I was reading the MDC and saw their example of how to prototype it into browsers that don't support it. I'm reading through it trying to understand how...
stackexchange/codereview
Does anyone know if there is a way to create the security configuration section via the Enterprise Library API or do we have to use the config wizard / edit by hand?
stackexchange/codereview
Since I'm trying to be efficient in this program I'm making, I thought I'd use the built in heapq module in python, but some of my objects have multiple attributes, like name and number. Is there a way to use the heapify method to heapify my objects based on a certain attribute? I don't see anything in the documentatio...
stackexchange/codereview
Suppose I have an array of arrays, and I want to sort the big array by the # of indexes in the sub-arrays, what would be the most efficient way to do that? This is what I have so far $sortorder = array_map('count', $largearray); array_multisort($sortorder, $largearray); Anything better than this?
stackexchange/codereview
I'm trying to figure out the best patterns for making a jQuery-based or CSS-based pop-up menu when clicking a button. I'd like to have something like this: I'm not even sure how to conceptualize going about this, so any help would be appreciated. Make it high-level if you want, though a working example (JSFiddle) woul...
stackexchange/codereview
So my new mission (lol). I'm looking to create a script that will rotate payment gateways for instance i'll add 5 payment gateways in a database and have to give them a weight all totaling up to 100% just like a load balancer. What is the best way and how should i structure the database to make this work where one gate...
stackexchange/codereview
I need to separately insert a Date into one field m_DATE (11-10-2010) and then a time into m_TIME (01:15:03) either 24hr or 12hr with an am/pm. How would I go about doing this. Sorry I don't have any example to work with I know there is Current_Timestamp but that does everything in one field.
stackexchange/codereview
I have a functions.php page with some functions, it is required in the default.php page which is required by all my other pages (index.php) at the first line. index.php (1st line after <?php require("includes/default.php"); default.php <?php //mysql require("templates.php"); require("functions.php"); ?> functions.php...
stackexchange/codereview
Before variable-length arrays were supported, I would dynamically allocate them like this: int foo(size_t n) { int *arr = malloc(n * sizeof int); if (!arr) return ENOMEM; /* not enough memory */ . . else do stuff with arr[] . free(arr); return 0; } With variable-length arrays I can now make...
stackexchange/codereview
i have used StringWriter writer = new StringWriter(); request.setCharacterEncoding("ISO-8859-1"); response.setContentType("text/html;charset=ISO-8859-1"); pw =response.getWriter(); IOUtils.copy(sImage, writer); theString = writer.toString(); pw.write(theString); pw.flush(); In the client browser am getting output as ...
stackexchange/codereview
I need a simple hibernate example of an entity with a one-to-one relationship with another entity where they both share the primary key. I need to only have to save the main entity that is auto-generating its primary key and the other dependent entity is cascade saved automatically. For example: public class Person {...
stackexchange/codereview
i have a date/time field called MyDate. Originally, its format is mm/dd/yyyy and there is no input mask. The Date Picker is also set. I then added input mask using Short date , changed the default input maks to (99-99-0000;;_) and change the format to mm-dd-yyyy. However, when i switch to DataSheet view , all my dates ...
stackexchange/codereview
I'd like to write some simple code that helps to determine if some instructions have been executed in the intended order client-side. This is to make things difficult for anyone wishing to alter behaviour by editing byte code. For example, using a JMP so some instructions are never executed. I'm a bit short on ideas th...
stackexchange/codereview
How do I open an interactive application, such as cmd.exe or Windows Explorer, running as NETWORK SERVICE? There are ways to do it for the SYSTEM account, but NETWORK SERVICE is proving to be a challenge. I need this to work on Windows 7, but would be interested in solutions for other Windows versions as well.
stackexchange/codereview
I have an icon that's in black and white, and I want the icon to transition to the color icon (as a crossfade) during the hover event. How can I do this in jQuery? #stumped. Thanks!
stackexchange/codereview
Hey guys I need help with the SQL below. It keeps giving me a single output for all of my a.names: SELECT Drink.name, MAX(DECODE(Size.type, 'Small', avg, NULL)) Small, MAX(DECODE(Size.type, 'Medium', avg, NULL)) Medium, MAX(DECODE(Size.type, 'Large', avg, NULL)) Large FROM Drink, Size ( ...
stackexchange/codereview
I have two files, both in the same format -- two columns both containing a number, for example: file 1 1.00 99 2.00 343 3.00 34 ... 10.00 343 file 2 1.00 0.4 2.00 0.5 3.00 0.34 ... 10.00 0.9 and i want to generate the following file (using, awk, bash perl): 1.00 99 0.4 2.00 343 ...
stackexchange/codereview
Which ARM architectures have Out-Of-Order-Execution?
stackexchange/codereview
I'm faced with a problem on how to cover methods of my innner classes. I have a small GUI (swing) application with several buttons and defined action listeners in form of inner classes. Now I want to write tests for each of the action listener methods defined in these inner classes but when I'm creating a new JUnit usi...
stackexchange/codereview
I am trying to be able to tab through these tooltip as a part of my tab order on my page but the tabbing stops at the first tooltip. Is the problem with the try catch statement in my Javascript code? landingTooltip = { locked :false, initialize: function(){ if (dojo.byId('pickup-cycle')){ this.buttons = d...
stackexchange/codereview
I have trouble gripping to monads and monad transformers. I have the following contrived example (not compilable): import Control.Monad import Control.Monad.Error import Control.Monad.Reader data State = State Int Int Int type Foo = ReaderT State IO readEither :: String -> Either String Int readEither s = let p = rea...
stackexchange/codereview
Recently I tried to use /Wall Visual C++ option to enable all warnings and found that the following code: typedef BOOL ( WINAPI * TIsWow64ProcessFunction )( HANDLE, BOOL* ); TIsWow64ProcessFunction isWow64ProcessFunction = reinterpret_cast<TIsWow64ProcessFunction> ( ::GetProcAddress( kernel32DllHandle, "IsWow64Proc...
stackexchange/codereview
We are developing an enterprise application and I looked at the following options: 1. Putting on itunes. Cannot do this since our application is to be used only by our clients with a login and passwrod. You cannot have login based app in itunes: http://appreview.tumblr.com/post/952395621/cannot-be-intended-for-a-limite...
stackexchange/codereview
In Spring MVC 3 on Tomcat 6, I can't seem to get RequestMappings of the form /x/y/z to work. /x/y seems to work fine and that's what all the example in docs show. For example, why does this work @RequestMapping(value="/browse/{categoryName}"); but this is doesn't work: @RequestMapping(value="/browse/category/{catego...
stackexchange/codereview
Preface: When I say "machine" below, I mean either a physical dedicated server, or a virtual private server. When I say "node" I mean, an instance of the erlang virtual machine, of which there could be multiple running as separate processes under a single unix kernel. I've got a project that involves multiple erlang/...
stackexchange/codereview
I'm try to create selector to CheckBox and replace the android:button with the selector. In the selector i had two 9patch image , but for some reason that not work good. the 9patch images are ok. This the selector code: <selector android:constantSize="false" xmlns:android="http://schemas.android.com/apk/res/android">...
stackexchange/codereview
What is the best way to convert binary bits (it might be a list of 0/1, for example) into numbers in a reversible way. I've written a native predicate in swi, but is there better solution ? Best regards
stackexchange/codereview
How do you use Map.foldLeft? According to the docs it looks like foldLeft [B] (z: B)(op: (B, (A, B)) ⇒ B) : B But I'm having difficulty: Map("first"->1,"second"->2).foldLeft(0)((a,(k,v)) => a+v ) error: not a legal formal parameter The error points to the open bracket in front of k.
stackexchange/codereview
I want to add a SearchBar to my TableView. I just dragged the UISearchBar to the header of an UITableView in IB, and it scrolled with my UITableView. I changed to use UITableViewController now, and when I drag an UISearchBar in the header of the UITableView which is provided with the UITableViewController, it doesn't s...
stackexchange/codereview
How do you re-instantiate an already declared base64 data url image without having to re-insert the base64 code on the same page?(preferably with css) I tried: <html><head> <style type="text/css"> img.wink { width:15px; height:15px; src:"data:image/.gif;base64,R0lGODlhDwAPALMMAP/qAEVFRQAAAP/OAP/...
stackexchange/codereview
I'm working with some multi-gigabyte text files and want to do some stream processing on them using PowerShell. It's simple stuff, just parsing each line and pulling out some data, then storing it in a database. Unfortunately, get-content | %{ whatever($_) } appears to keep the entire set of lines at this stage of the ...
stackexchange/codereview
I just started doing some Android app development, and I decided I'm going to write an app to work with Google Calendar. The first problem that came to me is that I can't add any Gmail account on the emulator. When I go to settings -> accounts, I can only add an Exchange account. This raises a question how should I dev...
stackexchange/codereview
Is there any good example/tutorial sites where I can refer to regarding building website/web development for IPAD and possibly using HTML5 features? -Thanks
stackexchange/codereview
I'm developing a scheme to automatically update my program from a central point. To assist me in this I need a way to get the version # of the msi file used to install the progarm at runtime, so I can compare the installed version with the latest version on the server (already solved this part) and decide whether or no...
stackexchange/codereview
I have a jquery game that my members keep finding ways to win. It's the numbers game here link text. I've made the game so you can't play it on firefox, don't know if other browsers have the same cheat tools as firefox. 1st problem I had was gamers would just keep their mouse over one box till their number showed up t...
stackexchange/codereview
this is is a pretty straight forward question, I need to detect when the default Remember password popup opens on the Android Webview (So I can make sure I am not covering it with any other component, or at least bring it to the front) Thanks a lot, this community has been very helpful for me.
stackexchange/codereview
I overloaded the << operator of a class. How do I have to overload the operator if I want to use it on pointers, like the following? class A { std::string operator<<(std::string&); } aInst << "This works"; aPointer << "This doesnt work"; aPointer->operator<<("Whereas this works but is useless"); I hope you can he...
stackexchange/codereview
I'm considering running a project using the Agile methodology but the project is roughly 9 months work for 6 developers. Is this project too big to run under as Agile? Obviously ignoring the risks associated with running the first Agile project on this size. Thanks, Mike Edit Thanks for all the answers. I have no exp...
stackexchange/codereview
In my software im receiving a xml file that is containing some HTML entities like & amp; or whatever. Im successfull decoding the xml but not the HTML entities. The strings are cutted when they meet an html entities... Anybody can help ? I have such code actually to decode the xml... DocumentBuilderFactory ...
stackexchange/codereview
I tried to write my first .exe program on FASM. It works ok when I use org 100h, but I want to compile .exe file. When I replaced first line with "format PE GUI 4.0" and tried to compile it the error occured: "value out of range" (line: mov dx,msg). ORG 100h ;format PE GUI 4.0 mov dx,msg mov ah,9h int 21h mov ah...
stackexchange/codereview
I am working on a count down timer and am having trouble getting the if statement to stop the timer when the count is less that 0. Any guidance on solving this would be greatly appreciated. Thanks in advance for your help.. -(void) startCountdown{ time = 90; //NSLog[@"Time Left %d Seconds", time]; //This timer will ...
stackexchange/codereview
How can I add padding to a tkinter window, without tkinter centering the widget? I tried: self.canvas_l = Label(self.master, text="choose a color:", font="helvetica 12") self.canvas_l.grid(row=9, column=1, sticky=S, ipady=30) and self.canvas_l = Label(self.master, text="choose a color:", font="helvetica 12") self....
stackexchange/codereview
I have this $(document).ready(function() { //Default Action $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $...
stackexchange/codereview
i Convert my database from this tutorial http://en.gentoo-wiki.com/wiki/Convert_latin1_to_UTF-8_in_MySQL but i didn't notice the arabic characters INSIDE the database is encrypted , like Ø§ÙˆÙØ§µ ®ØµØ… „Ù‡ ØÙƒÙ„Ù‚§Ø‡Ø°Ù…ا؄مشٳÙÙ‹ ÙÙ„... through the php script connect with the database everything GOOD , but inside...
stackexchange/codereview
I have the following controller: class FirstController < ApplicationController helper_method :contoller_method private def contoller_method "text" end end How can I use contoller_method in the view of another controller? Is there a best practice?
stackexchange/codereview
I have a set of elements which I want to perform operations on. The classic "Visitor" pattern isn't applicable to my situation because:- My element types are not stable. I want to Visit based on interface implementation, and some of my elements implement multiple interfaces that require visitation by different visitor...
stackexchange/codereview
I have this weird problem with one of my SP's. I have a SP and one of the parameters is nvarchar type. and I am declaring the parameter, I am including value too, but when I am running there is no data returned. short example: @BookName nvarchar = null Then in the where clause I have: AND (o.BookName = @BookName ...
stackexchange/codereview
I'm trying to disable exceptions completely in Visual Studio 2010, and to ensure that exception handling is disabled I have the following test: class CompilerFlagsTestExceptionConstructor { public: CompilerFlagsTestExceptionConstructor() { throw std::exception("Exceptions Enabled"); } ~CompilerFlagsTestExceptionConst...
stackexchange/codereview
I'm building a search engine for cars. When viewing the search results, on the left there are filters to make the results more specific. I want to be able to show the sum of results that exist when each filter is set for the selected search. For example the filters could be: Make Alfa Romeo (500) BMW (2330) .... Color...
stackexchange/codereview
How can I access the Master Pages link under Site Objects in SharePoint 2010 Designer when I am connected to the site remotely rather than being local? When using Sharepoint Designer 2010 on the server itself with a local URL, I get the Master Pages link in the site objects so I can edit Master Pages. However, accessin...
stackexchange/codereview
I need to implement the MySQL DATE_ADD functionality in PHP, so I have taken the function provided on the official PHP website at the "strtotime" documentation page like follows: function get_x_months_to_the_future( $base_time = null, $months = 1 ) { if (is_null($base_time)) $base_time = time(); $x_mon...
stackexchange/codereview
I'm working on a programing assignment regarding using GET request. I am using C. I wonder if any headers fields and values of GET packet have to be capitalized? For example: GET / HTTP/1.1 Connection: Keep-Alive vs get / HTTP/1.1 connection: keep-alive
stackexchange/codereview
I have a WPF app - an XBAP - with a ComboBox on the main page. When I select an item in the ComboBox, an event handler rebuilds a collection which is the data source for a listbox. Seems like pretty simple stuff, all stuff I've done in WPF before. This is what my dropdown looks like after selecting an item from the l...
stackexchange/codereview
Is there any possibility to set the week number of the year (1-53) for a android.text.format.Time Object ? I didn't find any, so would I have to use the java.util.Calendar class instead? Isn't it better to take Time because of performance reasons when doing complex calculations?
stackexchange/codereview
I would like my VM to have a ton of screen space. I'm fine with having to scroll to see the entire desktop, but I want a desktop in the VM much larger than the size of my current monitor. For example, if I have 1920x1080 monitor, I want to have a 2560x1600 desktop. I know it's technically possible, because sometimes f...
stackexchange/codereview
i am trying to display images in slideshow. in that i am using array of image paths.but the array is taking only firstvalue(firstimage) my javascript is var res; var sp = new Array(); var hdnvalue = a = document.getElementById('HiddenField4').value; var imgArr = hdnvalue.split(';'); for (var count = 0; count < imgArr.l...
stackexchange/codereview
I'm trying to add a menu controller as a quick choice of options after tapping my tab bar, however I don't get the arrow, when I use menuCont.arrowDirection = UIMenuControllerArrowDown; But if I use Up, Left or Right it works fine. Can someone else try this and advise ? - (void)touchesBegan:(NSSet *)touches withEven...
stackexchange/codereview
The C Runtime locale is set by setlocale. The Standard C++ Library (STL) locale is set by the std::locale class and can be set on individual STL objects like std::istringstream etc. The function _configthreadlocale(_ENABLE_PER_THREAD_LOCALE) allows setting the C Runtime locale on a per thread basis. Unfortunately it se...
stackexchange/codereview
I have a Vs2008 project using version2 of the ASP MVC framework. I tried to upgrade to VS2010. I fetched a new copy from svn and opened it. I got the expected conversion dialog, clicked next and then finish. A while later comes up a question do I want to also upgrade to the version 4 of .net framework. I've done ...
stackexchange/codereview
I'm using a script to create a new Invoice record. I'd like to automatically set the invoice's fClient fContactID column to the ID of the client's first contact. In my script, how would I find/compute the ID of the client's first contact? SetField with a calculated result of Min(Contact_Invoice Contact::ContactID) did...
stackexchange/codereview
Ok, say I have a query: SELECT * FROM TABLE_AWESOME WHERE YEAR = :AMAZINGYEAR; Which works very nicely. But say I want to be able to return either just those results or all results based on a drop down. (e.g., the drop down would have 2008, 2009, ALL YEARS) I decided to tackle said problem with PL/SQL with the followi...
stackexchange/codereview