instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
The Application_Start method in Global.asax.cs was being called in my WCF web services application when it was running under ASP.NET 2. It has been recompiled with the .NET 4 framework and it now runs under ASP.NET 4. However, that method is not ever being called. Anyone know what's up with that?
stackexchange/codereview
how to get tmp size my code filesize('/tmp/phpn3jaaQ'); error PHP Warning: filesize() [function.filesize]: SAFE MODE Restriction in effect. The script whose uid is 524 is not allowed to access /tmp owned by uid 0 in /home/script/file.php on line 2
stackexchange/codereview
So, simple question really. :) I had this following code with ASPX View Engine: <strong><%: ((City)Model.Location).Name %></strong> Which renders Los Angeles If i do this with Razor View Engine: <strong>@((City)Model.Location).Name</strong> ^ | syntax highlight...
stackexchange/codereview
I am using the commercial version of fusion charts 3. When rendered in Flash my charts look perfect. But when I disable flash in my browser, the chart is rendering but my x-axis labels are not showing. If anyone can point me to a helpful resource or give me a bit of direction, it is appreciated. Thanks
stackexchange/codereview
Possible Duplicate: Incrementing in C++ - When to use x++ or ++x? What is the difference between x++ and ++x ?
stackexchange/codereview
I want to add div dynamically for particular html Here, i will give you small example <input id="radio1" type="radio" name="rad" value="rad" title='Yes' alt='yes'> while clicking radio button, i need to add one div, like : <div id='A1' class='redColourIndicatin'> <input id="radio1" type="radio" name="rad" value=...
stackexchange/codereview
When i remove the parameter 'ajax' from from the .queue() function, my ajax calls do get queued. The only problem is, the jQuery docs say that the .queue() function will then default to the 'fx' queue. Unfortunately, I am already using this queue (for effects) and I want to use another queue specifically for custom fun...
stackexchange/codereview
I need to create an XML document from a piece of plain text and the begin and end offsets of each XML element that should be inserted. Here are a few test cases I'd like it to pass: val text = "The dog chased the cat." val spans = Seq( (0, 23, <xml/>), (4, 22, <phrase/>), (4, 7, <token/>)) val expected = <x...
stackexchange/codereview
After reading multiple articles, forums and so on, it gets to the point where I come & seek your help. I am trying to add a Print button in a page, that would, upon clicking, print a table. I have tried jqprint (so far the best solution) but it's still not right: The layout of the page is a tab that contains an accordi...
stackexchange/codereview
I have a text.class file that is in the same directory in my .jsp file, how can I include it in my jsp file? usually all of the classes should be in the WEB-INF,however I can't put it there.. Usually what I do is: <%@Test.test" %> where Test is a folder in the WEB-INF, so how can I do this now?
stackexchange/codereview
I have a question haunting me for a long time. Short version: What's the working paradigm of Windows Message Loop? Detailed version: When we start a Windows application (not a console application), we can interact with it through mouse or keyboard. The application retrieve all kinds of messages representing our moveme...
stackexchange/codereview
I really wanted to try to figure out how to use a Category or Type Hashes or Arrays in Models, but I feel like i'm a bit confused. Here is what I'm trying to do and I would appreciate any help. I have an Alert Model in my application and I originally had a Alert_Type table but wanted to get rid of it because it was mo...
stackexchange/codereview
I am very new to configuring Eclipse to use a Subclipse client. I have set up our Subversion server and can connect to it via a command line. It appears to be operating successfully. The problem I am having relates to installing a Subclipse client in our Eclipse installation. When I navigate to the Help->Software Upda...
stackexchange/codereview
Seems like accessing the revision ranges only gives me the updated text. I'd like to see the text as it originally was so I can create a report that says something like "Change to ."
stackexchange/codereview
Okay, so in the IDE it runs great and says the file exists, but once I pack it into a jar this code: File levelFolder = new File(getClass().getResource("data/level").getPath()); System.out.println("exists = " + levelFolder.exists()); says the folder doesn't exist. any idea why? edit: jar file listing. G:\java>jar tvf...
stackexchange/codereview
I am currently working on software for student attendance. I use the flex / flash and php to create the software but I faced a problem barcode scanner, can not connect to the application to call the data from the database when students scan the barcode printed on their student card. Can you help me to make the script s...
stackexchange/codereview
I have the following SQL query that I would like to rewrite into LINQ: SELECT gp.Name , r.DateOfRace , ISNULL(SUM(rr.Points), 0) AS Points FROM Races r INNER JOIN GrandPrix gp ON r.GrandPrixId = gp.GrandPrixId LEFT JOIN Predictions p ON p.RaceId = r.RaceId AND p.AdditionalUserInformationId = 2 LEFT JOIN RaceResult...
stackexchange/codereview
I have a very large table. I have an index on columns col1. I would like to get the data ordered by col1. From the query plan I can say it doesn't use the index. When I add "LIMIT", it starts to use the index For large value for "LIMIT", it stops using the index. Any clue? P.S. I would like to get the data clustered ...
stackexchange/codereview
Hi iam trying to use de NameScope.SetNameScope to start an animation in a xaml for a Silverligth application, but it seems like the visual studio does not recognise the NameScope.SetNameScope, why is that?
stackexchange/codereview
I'm trying to run two AsyncTasks at the same time. (Platform is Android 1.5, HTC Hero.) However, only the first gets executed. Here's a simple snippet to describe my problem: public class AndroidJunk extends Activity { class PrinterTask extends AsyncTask<String, Void, Void> { protected Void doInBackground(String ...
stackexchange/codereview
i've set a field as date in xammp server. but when i'm inserting a values, its saving like 0000-00-00.. i've even input it manually like 2010-10-10 but still saveing 000... is the problem with my code or the xammp server??? or is there any way to configure the date format in xammp??? $today = date('Y-m-d'); "/> ...
stackexchange/codereview
I have been developing a Silverlight application using WCF. The problem is that sometimes it throws an exception stating: "The HTTP request to 'http://localhost:1276/Foo.svc' has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout." So how do I increase the tim...
stackexchange/codereview
I am trying to use geom_point to illustrate the count of my data. I would also like to annotate a few of the points in my graph with geom_text. When I add the call to geom_text, it appears that it is plotting something underneath the points in the legend. I've tried reversing the order of the layers to no avail. I can'...
stackexchange/codereview
When I write Android apps, I love the Toast feature. Is there a way to get this kind of set and forget popup message in iPhone development using MonoTouch (C# .NET)?
stackexchange/codereview
Can anyone give me some direction on this? I'd like to set something up where let's say I have a directory (or database) of videos. I want a live stream to play those videos. And then if I add videos to the database it automatically plays it next in the stream. I would also like to have an interface where I could l...
stackexchange/codereview
By using xsl template, can any one tell me the way to get first number portion of a string field For example: '12' -> should result in -> 12 '5 ASDF' -> should result in -> 5 '34SDF56' -> should result in -> 34
stackexchange/codereview
Today i did learn two ways of accessing the array, i would like to know the various ways of accessing an array element and the best practice of it. I am a student learning algorithm. int [] arr; long [] arr; Advantages of long datatype declaration over int. class ArrayApp{ public static void main(final String[] ...
stackexchange/codereview
In my ASP.NET application I set <system.web><globalization culture="pl-PL" uiCulture="pl-PL" /> to have numbers and dates in this culture. Surprisingly I noticed that methods invoked from job scheduler (Quartz library) use en-US? Why is that?
stackexchange/codereview
i have written code to create new site in ftp. but its giving com exception. the code is attached for reference. Exception details are System.Runtime.InteropServices.COMException was unhandled Message="Filename: \r\nError: Unrecognized element 'ftpServer'\r\n\r\n" Source="" ErrorCode=-2147023483 StackTrace: ...
stackexchange/codereview
Now i want to read any excel file that are given by the user dynamically and also the extract the data in the tabular form and also update the data the cells... so, how to capture the column headers and row headers in the excel tabular form and also modify the particular cell value.... See my excel file may like this: ...
stackexchange/codereview
i want to select the following strings from this html using just lxml and some clever xpath. The strings will change but the surrounding html will not. i need... 19/11/2010 AAAAAA/01 Normal United Kingdom This description may contains <bold>html</bold> but i still need all of it! from... ... <p> <strong>Date:</st...
stackexchange/codereview
I made this loader which actually works pretty well. I now want to make my application completely modular. This will allow developers to overwrite individual bits of functionality and more easily extend the application. I came up with this originally. // Try to load a module $file_path = $segments[1] . '/' . $segments[...
stackexchange/codereview
Can we change the siz,style,etc of the font (javax.microedition.lcdui.Font) in j2me
stackexchange/codereview
I have the below code, it is running however the output in the console is instant: true instant2: false as the variable is not being overwritten in the global scope. How can I access the variable in the global scope? var instant = false; $('document').ready(function(){ chrome.extension.sendRequest({ action: "...
stackexchange/codereview
I'm grabbing video frames from the camera via v4l, and i need to transcode them in mpeg4 format to successively stream them via RTP. Everything actually "works" but there's something I don't while re-encoding: the input stream produces 15fps, while the output is at 25fps, and every input frame is converted in one singl...
stackexchange/codereview
I'd like to create a simple application that lists all computers on a given computers network. Then I'd like them to be able to send messages to and from each other. Pretty simple. :) What would the simplest approach be?
stackexchange/codereview
I know how to redirect the stdout to a file, but I have no idea on how to redirect it to a string.
stackexchange/codereview
We have this in config.xml, which loads OK in JBoss 4.2.2.GA <import resource="classpath*:/META-INF/apollo/babel-*-beans.xml"/> However in JBoss 5.1.0.GA, it does not load (as I am aware things are stricter) Offending resource: ServletContext resource [/WEB-INF/config/catalog-config.xml]; nested exception is org.spri...
stackexchange/codereview
How to send messages to facebook users using ASP.NET? I need to send messages and images to the Users. I have the Email Id and user authentication keys also if needed. Please try to give some code snippet to implement this one.
stackexchange/codereview
Here is my code in my content page and master page respectively: <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> <%=Model.Title %> </asp:Content> <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /> - WebsiteName</title> this works for me except sometimes content...
stackexchange/codereview
I need to retrieve the number of webcams instaled in my system and the brand, manufacturer, device id, etc., of the webcam. Is there any way to do that in Python, and independent of the operating system?
stackexchange/codereview
I need some help with a lamda expression to get a subset of range of values. I have a lower and upper value, and getting everything between them seems easy enough, but I also need the next lower and higher value to be included. I can do each of these seperately, but would like to do it in one shot if possible. The ran...
stackexchange/codereview
Hi I am using AutoMapper to move from a Model to a Dto and it's working great. In one TypeConverter I need to inject an Interface (a service) that has to be used by the type converter in order to do the conversion. How can I accomplish this in AutoMapper?
stackexchange/codereview
Hey, I have a vb.net application that I compiled and all, I took the EXe and all and placed it on another pc that has only visual studio express on it. When I open my .exe I get a message saying No debugger has been found, no Jit Debugger has been specified I can either select retry to find a debugger or click on canc...
stackexchange/codereview
Is Dynamic Polymorphism in PHP is supported like template classes or is the only way in using Polymorphism in PHP is abstract functions and overloading/overriding ?
stackexchange/codereview
I have a table of biographical data, and I need to do a query that selects people who have the word "died" in their bio and whose death date is NULL. This doesn't work: SELECT * FROM people WHERE bio LIKE '%died%' AND death_date IS NULL That selects everyone whose death_date is null, but also selects people who don't ...
stackexchange/codereview
I have developed an extension to Magento Community edition. I would like to test it on the Enterprise edition. How can I do that? Do you think there will be changes between those versions code-wise? Thanks
stackexchange/codereview
I have just read the basic information for the spring security core grails plugin and installed it in my grail project : grails install-plugin spring-security-core After that I have used s2-quickstart providing by the plugin : grails s2-quickstart com.springsecurity SpringUser SpringRole So basically it has created r...
stackexchange/codereview
I use ASP.NET in C#, I am pretty new at developing so I would like have some advice from experts :-). Questions: What is the best practice to organizing CLASS FILES? What kind of name do you use? For Web Application Project, how do you name NAMESPACE? In my Case I am building a simple CMS. I thought the FILE structur...
stackexchange/codereview
I have built my application using core data but I am having trouble how to work out saving and loading. I have a UIDatePicker. I have a UITextView. I want to save what the user types in the UITextView. Then I want to load that text back into the UITextView if the user selects the same date they originally saved it on. ...
stackexchange/codereview
Say I have a bitmap, and several threads (running on several CPUs) are setting bits on it. No synchronization is used, and no atomic operations. Also, no resets are done. To my understanding, when two threads are trying to set two bits on the same word, only one operation would eventually stick. The reason is that for...
stackexchange/codereview
does anyone know if there is any limitation for the size of data that can be obtained in the output of EJB API call? Let's say output to API should be an array of some complex objects. How long array can go? We are planning to use pagination for retrieving data by portions and want to determine the ideal size of portio...
stackexchange/codereview
I've tried to see if there's a way to record audio with HTML5 to no avail. I tried using this example but it didn't work. I'm guessing he really meant it when he said that it is not supported by any browser yet. Am I missing something? perhaps it is already possible? What are my options to record audio on a browser-b...
stackexchange/codereview
When I try this ad-hoc query in SQL Server (assume UserId is a NVARCHAR field): SELECT * FROM MyUser WHERE UserId = 123456 I get this error: Msg 245, Level 16, State 1, Line 1 Syntax error converting the nvarchar value 'foo' to a column of data type int. Obviously there is a value 'foo' somewhere down my UserId colu...
stackexchange/codereview
In a WPF label, is aligned like this, that if the font size is increased, the label size increases in bottom-right. Is there a possibility to make it increase in top-right direction? PS. The labels are contained in a Canvas.
stackexchange/codereview
Hey guys, I'm trying to make a puzzle bubble clone but I'm stumped on how to handle the background stuff. Mostly with the fact that the lines don't match up (i.e: instead of a bubble having another no top of it, one on the upper-left and one on the upper-right, it has one on the upper left and one on the upper right ht...
stackexchange/codereview
I am building a php site using jquery and the DataTables plugin. My page is laid out just as it needs to be with pagination working but in dealing with large datasets, I have noticed the server is pulling ALL returned rows as opposed to the 10 row (can be more) limit stated within each 'page'. Is it possible to limit ...
stackexchange/codereview
Updates : 3 updates added below The following sql statement takes 5 mins to complete. I. Just. Don't. Get. It :( First table has 6861534 rows in it. Second table has a little bit less .. and third table (which contains 4 GEOGRAPHY FIELDS) has the same as the first. Those GEOGRAPHY fields in the 3rd table .. they should...
stackexchange/codereview
I've got a small problem and can't find a satisfactory solution for it. There's a byte array and I need these bytes sorted by high 7 bits while preserving the order of low bits. So originally it looked like this: // sort buf[N] to tmp[N] uint offs[128+1]; uint c,i,s; for( i=0; i<128; i++ ) offs[i]=0; for( i=0; i<l; i++...
stackexchange/codereview
I am planning to develop a ePub reader for iOS devices. I don't want to use webView for this. In this application, I want features like iBook or stanza app. I want to know, which approch is used in developing Stanza app.
stackexchange/codereview
I am a newbie in codeigniter framework.I am totally confused how can I start with CI? What would be the folder structure ,I am seeing a folder structure by default, but after searching ,all are concerned about a better folder structure Also it would be a themeable one .So I/anyone can simply theme it,without touchin...
stackexchange/codereview
I'm getting into MVC and is wonderful, however, still need to decide what dabatase system to use. For many years my options have been: 1) MS SQL. For complex web applications. Example: A shopping cart or CMS. 2) MS Access. For smaller and simple ones. Example: a small product catalog, blog or news system. I don't want ...
stackexchange/codereview
I have an Excel file that has some Spanish characters (tildes, etc.) that I need to convert to a CSV file to use as an import file. However, when I do Save As CSV it mangles the "special" Spanish characters that aren't ASCII characters. It also seems to do this with the left and right quotes and long dashes that appe...
stackexchange/codereview
I'm setting up an automatic deployment scheme. It would be really handy for us if we could put older msis on the server and have all the clients roll back to previous versions if one of our new releases turns out to be too bug riddled. Right now, the msi is bitching at me "Unable to install because a newer version of t...
stackexchange/codereview
I am considering starting a project so that I can learn more and keep the things I have learned thus far from getting rusty. A lot of the project will be new things so I thought I would come here and ask for advice on what to do and how to go about doing it. I enjoy photoshop and toying around with it, so I thought I...
stackexchange/codereview
We are using VS 2010 and TFS 2010 with the Microsoft Scrum Template. We use the Team Queries for the Current Sprint like the Sprint Backlog query. The problem is when we move to sprint 2 the "Current Sprint" still points to sprint 1. Is there a way to to tell TFS that we are now currently in sprint 2 and have the queri...
stackexchange/codereview
How can I use ORDER BY descending in a SQLAlchemy query like the following? This query works, but returns them in ascending order: query = (model.Session.query(model.Entry) .join(model.ClassificationItem) .join(model.EnumerationValue) .filter_by(id=c.row.id) .order_by(model.Entry.amount)...
stackexchange/codereview
I'm trying to use jQuery UI 1.7.3 datepicker widget in a jQuery UI dialog. The contents of the dialog are from a page template which includes all the various imports of javascript required to make the page function. One of the things I also import is the famous date.js file. This page that I load in the dialog also e...
stackexchange/codereview
So, I got a <select>-Roll with multiple items. How can I check via DOM which item was selected? I think I'd usually know it but I'm having a big blackout the whole day today...
stackexchange/codereview
I have a long list to display in a listview. Let's say 200 items. This is a long list, but i can't reduce it. Now my list is slow and is not convenient for the user. I need something like a paging system: at the beginning I load 25 items. When the user reach the end I show a button, or something like it, to load other ...
stackexchange/codereview
Please can you help and advise with a problem with python 2.6.6 and lxml Solaris 10 build? Installation instructions: www.sunfreeware.com/download.html direct link to the file: http://www.sunfreeware.com/ftp/pub/freeware/sparc/10/lxml-2.2.8-sol10-sparc-local.gz [rainier]/usr/apps/openet/bmsystest/relAuto/RAP_SW> python...
stackexchange/codereview
I suspect there's probably an easy answer to this I'm just not seeing, but whenever I run a TeamCity build with either MSBuild or the Visual Studio solution runner against a .csproj and target "Package", the build artifacts always include the "csproj.teamcity.patch" string after the project name: Running the same proc...
stackexchange/codereview
I must have looked at 2 dozen websites, but nothing I've tried has spewed the data I'm looking for yet. I'm running Tomcat 6 and I want to spew the actual Http request contents. Well, it's a Post. My real goal is to see the actual SOAP request in all it's glory. I'm trying to debug a customer request issue, but I need ...
stackexchange/codereview
I know that IE7 doesn't support the value inherit for any CSS properties except direction and visibility. When a browser doesn't support a value, it should simply not apply the given declaration (that particular line). Does anyone know why IE7 doesn't use the first ul a color declaration, instead choosing to use the pl...
stackexchange/codereview
we have recently upgraded an old VB6 windows app to C# .NET 4.0. I am looking to replace references to the Microsoft.VisualBasic.Compatibility.VB6.Support class, as Visual Basic 2010 is warning me that 'Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.mi...
stackexchange/codereview
My question isn't really about the mechanism of either search type. I feel it's a lot more mundane than that - I don't understand the input and output of either. More specifically, in CLRS, BFS takes as input a graph and a source node, but DFS takes only a graph. Does DFS not care where you search from then? So that's ...
stackexchange/codereview
The below code is working fine. But if i change the html string in newPara() to <textarea></textarea><button id="someId">Save</button> or <textarea></textarea><input type="button" value="Save"/> its not working. What is the problem in this? I need that id attribute to remove the newly attached html. Any Suggestions! T...
stackexchange/codereview
I have used a required field validator followed by a regular expression validator but the required field validator is not working..... <asp:TextBox ID="txtSummary" runat="server" TextMode="MultiLine" Width="700px" CssClass="txtStyle" Font-Names="Arial" MaxLength="1000" ValidationGroup="Valtxt" TabIndex="2" Row...
stackexchange/codereview
Whenever a URL that has %2F which is the hex code for / is posted to my JBOSS Server, I get an error: HTTP 400 Bad Request error message. Here is the URL: http://localhost:8080/application/**abc%2Fhi**?msg=hello" If I remove the %2F from the URL the link works fine. This %2F has to be part of the URL and cannot be ...
stackexchange/codereview
This does not compile in C++: class A { }; class B : public A { }; ... A *a = new B(); B *b = dynamic_cast<B*>(a);
stackexchange/codereview
i have the xml in a structure such as this: <RWFCriteria reportType="ProgramReview"> <item id="36" name="" value="9" type="Milestone" /> <item id="31" name="" value="9" type="Milestone" /> <item id="33" name="" value="11" type="Milestone" /> </RWFCriteria> and need to it be converted to: <data> <release id="9"...
stackexchange/codereview
I like this remove icon (png format), but unfortunately it's bigger. The icon finder site doesn't seem to contain a smaller size, maybe the same icon of size 16x16 would be preferable. How do I re-size?
stackexchange/codereview
how get the artist of a mp3 file using lisp (let ((in (open "test.mp3" :direction :input :element-type '(unsigned-byte 8)))) (when in (loop for line = (read-byte 'utf-8 in) while line do (format t "~a" line )) (close in)))
stackexchange/codereview
I have privacy settings for users to set. Privacy settings can be as such: Do not show my updates on the public timeline Do not show my email address Do not show my birth date I thought of having privacy settings embedded in the User collection. class User include Mongoid::Document include Mongoid::Timestamps ...
stackexchange/codereview
My Java application needs to know what version of IE (if any) is installed on the local machine, and querying the registry seems like the easiest way. What registry key and value should I look up? This needs to work on Windows XP, Windows Server 2003, and later.
stackexchange/codereview
In C++ how can i find the middle 'n' elements of an array? For example if n=3, and the array is [0,1,5,7,7,8,10,14,20], the middle is [7,7,8]. p.s. in my context, n and the elements of array are odd numbers, so i can find the middle. Thanks!
stackexchange/codereview
we've tried to make the background of a smartgwt window transparent with no success :/ setting a transparent image as backgroundimage yields nor directly setting a custom style class with a transparent background setting yields no success. is there any possibility to change the default background color : #ffffff or rg...
stackexchange/codereview
I'm trying to set the View for my ListView dynamically: But I get an Exception 'View cannot be shared by more than one ListView' although I'm using it only once. Anyways if I make an instance already, and then the DataTrigger triggers, the Exception takes place too. This is my wpf code: <ListView ItemsSource="{Binding...
stackexchange/codereview
I need to display a list on a ListBox component in VB .NET. // params is a string representing a path, empty means root folder params.itemsPath = "" // resp is a response object, here it is a String[] resp = myAPI.browseTags(params) Dim listSize As Integer listSize = resp.itemsList.GetLength Dim i As Integer For i =...
stackexchange/codereview
I have an app written in VB6 with a MDB database. When installing the latest version if user has an older version than I would like to copy the old DB Folder(Program Files/AppName/DATA/) to the new installation instead of setting up the default DB. The new version will be installed in a new folder Program Files/AppName...
stackexchange/codereview
Hi I want to implement the event-based asynchronous pattern using c#. The Microsoft documentation below is really helpful but quite rightly it leaves out the implementation details. http://msdn.microsoft.com/en-us/library/ms228969.aspx What are my options for implementing this pattern? Should I use the Delegate.BeginIn...
stackexchange/codereview
I am working on a program which requires a user to select the file that he/she wishes to open. There are about 3 different files they can choose from, and each of those files affect the layout of the buttons, and some of their attributes also. The problem is, at the moment I have this huge list with: label1.Visible = f...
stackexchange/codereview
I know this question has been asked thousands of times, and I've struggled with it before, but for some reason, I can't accomplish what I want to accomplish... I have a dynamically added LinkButton that when clicked will dynamically add a control (in this example, a textbox) to the same panel. The intent is to continuo...
stackexchange/codereview
i need to limit the directory listing for all users except certain IP's. Any idea how to do that? the option for it should be: Options -Indexes and let's say the directory i need to restrict is /restricted/ <Directory /restricted> Options -Indexes </Directory> but how to place the IP restriction for all but, for inst...
stackexchange/codereview
This example demonstrates how to determine the index at which an element should be inserted into a sorted list. Although binarySearch() is used to locate existent elements, it can also be used to determine the insert index for non-existent elements. // Create a list with an ordered list of items List sortedList = new ...
stackexchange/codereview
I have a TreeView in my webform and I need it to keep its focus after being selected. Is there anyway I can achieve this? <asp:TreeView ID="ReportList" runat="server" BorderWidth="0px" BorderColor="0" Font-Names="Arial" Font-Size="Small" ForeColor="Blue" SelectedNodeStyle-ForeColor="Red" SelectedNodeStyle-VerticalP...
stackexchange/codereview
Does anybody know any performance test results for rules transformation engine on Azure ACS? What about the performance during claims transformation? Can I use it to effectively manage roles for a few million users (with additional 20 transformation rules per user)? Does it/can it work effectively in such scenario?...
stackexchange/codereview
I have a projects controller/model. Instead of listing projects on the #index page, I show a list of drop downs, which submits to projects#select, which finds the right Project (I've made sure there can only be 1 for each combination of options) and forwards the user to the #show page for that Project. So for my routes...
stackexchange/codereview
In php i create a session with the id of the user. So i do $_SESSION['id'] = $id; So say for user 3. Is there a way i could list all sessions for user 3? Also remotely kill the session(logging them out). I want to give users something like gmail where they can view sessions for their account. I also want to allow the...
stackexchange/codereview
In my project I have 3 classes, let's call them Apple, Orange and Pear. Apple and Orange both have delegate properties. They both define protocols in their header file called AppleDelegate and OrangeDelegate. They each have initializers with similar signatures: - (id)initWithDelegate:(id<AppleDelegate>)delegate - (id)i...
stackexchange/codereview