Posts

c# - Sorting by two columns with LINQ (Edited). Forget it! I'll post the answer to make things clear -

Hi my list that looks like this: val1 val2 r1 10 3 r2 5 5 r3 9 7 r4 4 r5 2 r6 1000 0 I need to get the line in which the two values ​​meet with their maximum example: val1 val2 r1 10 3 can match any match both values ​​highe r2 5 5 any match can be more than two values ​​r3 9 7 MATCH val1 can be higher, but it lowers val2 and make viceversa r4 4 1 Both values ​​can be higher than r5 29 Any match val 2 your At the fourth, but val 1 can be more r6 1000 0 no match val1 is at its highest but val 2 could be higher In this case it is R3 Hope this time it is clear It is not clear what you are asking : 1) You do not want any pays that another pair is dominated by R. 2) You do not want items where val1 is maximum but val 2 can be high, and vice versa. 1 means that you want some pair on the upper edge of the set. 2 simply means that you abandon two endpoints it still leaves any possible number In the graph above, 2 points are strictly dominated, and therefo...

c# - Validating Entries in an ASP.NET GridView without JavaScript -

background I have a gridView where in column 1 The input depends on input column 2 . If a user enters a , then Column2 will be in a system in code Column 1 . Assumptions are implemented using Regexs and custom verification. I like a verification solution that does not use JavaScript. | Column1 Column2. __________________ | | Y N __________________ | En | Y __________________ | En | N question How can I verify these entries in gridview without the use of JavaScript? "itemprop =" text "> You can use the radio button and the 'Template' column with a GridView feature. GridView markup will look like this: & lt; ASP: GridView id = "gvTest" runat = "server" AutoGenerateColumns = "false" OnRowDataBound = "gvTest_RowDataBound" & gt; & Lt; Columns & gt; & Lt; Asp: TemplateField Header Text = "Column 1" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: R...

html - Best practice for building a "Narrow your results" product filtering feature -

I am making the "narrow my results" feature and the best way to store the user's filter selection in that URL What is the practice that can be shared / bookmarked? The clear selection is to keep all the user's selection in the query string only. However, both of these examples, some are much more secret: Best Buy: http://www.bestbuy.com/site/olstemplatemapper.jsp?id=pcat17080&type= Page & amp; Cup = Krutktegoryid% 23% 23-1% 23% 23-1 ~~ q70726f63657373696e6774696d653a3e313930302d30312d3031 ~~ cabcat0500000% 23% 230% 23% 2311a ~~ cabcat0502000% 23% 230% 23% 23o ~~ nf518 || 24363030202d2024383939 & amp; List = y & amp; Nrp = 15 & amp; Sc = abComputerSP & amp; sp =% 2Bcurrentprice + skuid and usc = abcat0500000 It appears that they are telling a unique value for the search and are temporarily stored in their favor. Or maybe wrapping your DB ID into a bunch of garbage because they believe in security through ambiguity? Is there some in...

synchronization - Mobilink error with Syncing to Production Oracle DB Options -

OK, this is the scenario. We have two developers who use the Developer version of Mobilink to sync in an integrated Oracle database using SqlAnywhere. MOBILINK VERSION Version 11.0.1.2331 Everything works well in two development environments. A Dev environment is Windows 7 x64 and Oracle 11g r1. Second xp x86 and oracle 10g2. Both work is fine and sync with the replication of the production database (took a dump file from the production server) We are now in beta state and are trying to set up sync And it remains unsuccessful. Beta environment "SQL is using anywhere Mobilink Server version 11.0.1.2044" and it's running on Windows 2003 x64. Looking at error logs on PDAs and the server confirms that the user is getting certified and that synchronization is starting, but it breaks at the same point every time. Below are some additional details from the log. I 2009-12-04 13:30:38 & lt; 1> End_download_oroz G_INV_LOCATION_DESC (no script) I 2009-12-04 13:30:3...

java - Hibernate: find duplicates -

Assume that I have a lower Groovy class (or equivalent in Java) class User {long ID string name} I would like to write the hibernate query (either HQL or benchmark) which gives at least one user all users with the same name. Update The following query has been suggested Choose the minimum user (user.id), user users Username Username group grouping (user.name) & gt; However, there are some problems with this: This does not actually return user objects, only their ID and name If there are 3 users of the same name, it will only return the ID of one of them, while I want all 3 This will not work on MySQL, which is RDBMS I. Thank you, Don I will try something like this: / P> select minimum (user.id), user.name user.name From user.name count count (user.name) & gt; According to 1 , SQL functions and consolidated tasks are allowed by the clause and in sequence if they are supported by the underlying database (i.e., not in MySQL). Edit Edit...

.net - ASP.NET membership providers in non-web apps? -

Does anyone know if it is using a ASP.NET subscription (and role) provider in a non-web app? Is possible (i.e. a desktop c # in)? Related questions - There is an LDAP subscription provider (it looks like SharePoint has one, but I do not think it is similar to ASP.NET provider). I'm sure the Active Directory is probably close, but I'm not sure whether it will work against Novell or Sun's LDAP servers. Thanks I have spoken the same thing and VS After doing some research in 2008. I can understand the ASPNET membership and role provider by using CAS, although I have not tried it yet. Here are some references that are useful:

django - String causes rendering exception with utf-8 defined -

One of my template tags should return a list of links; Most of the elements get their name from the database with the exception of one, which I am harsh because it will change at any time. lista_menu = '& lt; Ul class = "menu" & gt; \ N \ & lt; Li & gt; & Lt; A href = "'+ + reverse (' profilelogo ', args = (s_loja,)) +'" & gt; '+ \ Loja.nome.title () +' & lt; / A & gt; & Lt; / Li & gt; \ N & lt; Li & gt; & Lt; A href = "'+ + reverse (' index ', arg = (s_loja,)) + \'" & gt; '+' Pagina Principal '+' & lt; / A & gt; & Lt; / Li & gt; The string 'Pagina Principal' causes the following error: An exception was caught in TemplateSyntaxError rendering: ('ASCI', 'P \ xc3 \ Xa1gina principal ', 1, 2,' sequentially not in bounds (128) ') > If I define the string as Unicode (Eupagina .. . ...