text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I noticed that the MapRoute extension includes an overload that accepts a string[] parameter which is called 'namespaces'. I read what Google had for me on it, and supposedly this is to help the framework find controllers in places it wouldn't otherwise look. I did some spiking, and tried putting controllers in weird ...
[ 0.06965775042772293, -0.288652241230011, 0.2879147231578827, 0.6197308897972107, 0.07289639115333557, -0.05853841453790665, -0.08534916490316391, -0.0312911719083786, -0.39401188492774963, -0.6945429444313049, 0.09633569419384003, 0.15614871680736542, -0.41615718603134155, -0.0953575149178...
controllers. I thought maybe it would use that array to disambiguate between similarly named controllers, but that didn't happen either. A HomeController in MyProj.Controllers and one in SomeOtherName.Stuff would collide still. So my question is, is that parameter deprecated? Or is it still used somehow in a way that ...
[ 0.2871170938014984, -0.34324389696121216, 0.36505210399627686, 0.7081342339515686, -0.030192874372005463, -0.3911861181259155, -0.2301226407289505, 0.30350983142852783, -0.20818860828876495, -0.4822975695133209, 0.19467352330684662, 0.09768658876419067, -0.456624835729599, 0.51625013351440...
logical flow is something like this: * Look for a namespace in the \_cache that matches one in the namespaces array + if that's found, look for a controller of the right name + -- if that's found, return it + -- if it's not found, return search everywhere else that it'd normally look * if it's not found, search eve...
[ -0.21641983091831207, -0.2857767343521118, 0.11170471459627151, 0.4796384274959564, -0.03299565613269806, -0.23604314029216766, 0.0949111357331276, -0.033799488097429276, 0.006188758183270693, -0.5837143659591675, 0.22929289937019348, 0.3111938238143921, -0.39433225989341736, -0.0116369845...
the assembly (in other wordss, MyRoot instead of MyRoot.Controllers). What this namespaces thing allows, then, is to have a HomeController in two different namespaces and match them differently depending on the url or params.
[ 0.15163178741931915, -0.3274310827255249, 0.07542314380407333, 0.47554221749305725, 0.1683180034160614, 0.3854816257953644, -0.39768412709236145, -0.06329883635044098, -0.16901466250419617, -0.5095208883285522, -0.2776564657688141, 0.254498690366745, -0.26488882303237915, 0.296488851308822...
I have a large-ish web project which is migrating from classic ASP to ASP.NET (about time), and would like to redirect requests from the old addresses, such as: > /some/path/old-page.asp?foo=bar to the new addresses: > /other/path/new-page.aspx?qaz=bak For a fairly long time, there will be classic ASP pages running...
[ 0.23304224014282227, -0.11737293750047684, 0.5635370016098022, 0.05758674442768097, -0.144450381398201, -0.040120869874954224, 0.19453021883964539, 0.05770484358072281, -0.5055239200592041, -0.5712440013885498, 0.04156893119215965, 0.4065808653831482, -0.32805129885673523, 0.11551807820796...
logic from the classic ASP to the new templates? The obvious solution is to replace old-page.asp with some simple VBScript that redirects to new-page.aspx, but in the long run I want to get rid of the old .asp files, so I would like to implement the redirection in such a way that they will exist also after the site is ...
[ 0.15619291365146637, -0.2890438437461853, 0.42547446489334106, 0.12938059866428375, -0.2899298369884491, -0.14680494368076324, 0.4153890013694763, -0.18701599538326263, -0.23265419900417328, -0.48291847109794617, -0.0742345005273819, 0.6833274960517883, -0.4497056305408478, 0.0752806439995...
passed to ASP.NET. A couple of years ago, I ran into the very same issue at an eCommerce company where we upgraded their website to .NET. The main issue is that we had no idea how many customers had the old asp pages in their favorites, as well as the issue of SEO. Yes you can map the asp extension to ASP.net, but you ...
[ 0.22261975705623627, -0.4272659122943878, 0.6131559014320374, 0.04756823182106018, -0.19777034223079681, -0.22037458419799805, 0.13336440920829773, 0.0453808568418026, -0.5555320382118225, -0.549996018409729, 0.09111020714044571, -0.06761638075113297, -0.2347576916217804, 0.168884202837944...
ISAPI redirection filter in IIS. This is an app that is run by IIS BEFORE, the asp or asp.net runtimes. It would make a decision based on the url or any rules you want, whether it should allow the asp files to run or whether they should be redirected, or use url-rewriting to handle the request. It is not always a clean...
[ 0.034586261957883835, -0.6704836487770081, 0.30749455094337463, 0.1405215859413147, 0.13501666486263275, -0.13217557966709137, -0.000986750004813075, -0.4110877513885498, -0.16436639428138733, -0.7135071158409119, 0.16337449848651886, 0.6358756422996521, -0.5580484867095947, -0.47551712393...
documentation to let developers know there is this thing in IIS running... There is a good explanation of how to implement this in Code Project. Go here and check it out. <http://www.codeproject.com/KB/ISAPI/isapiredirector.aspx> Good Luck!
[ 0.5111988186836243, -0.16141921281814575, 0.32406413555145264, 0.20480109751224518, 0.18710874021053314, -0.4212627112865448, 0.355910062789917, 0.1272999346256256, -0.16893097758293152, -0.45094308257102966, 0.18436530232429504, 0.4833458662033081, 0.2282809466123581, 0.07129362225532532,...
I have implemented a ui datepicker which works perfectly in FF but not in IE. See here [link](http://mbvdoornedu.cursistennet.nl/aanmelden/aanmelden) try to click on the "Geboortedatum" field. What's going wrong? I'm going to recommend against a LinkButton and recommend Hyperlinks / QueryString parameters instead. For...
[ 0.06272758543491364, -0.1783377081155777, 0.6655681729316711, 0.049971941858530045, -0.1619521826505661, -0.22503553330898285, 0.5359699130058289, -0.10168089717626572, -0.29731619358062744, -1.0027810335159302, 0.004238600376993418, 0.5022789239883423, -0.21991758048534393, 0.147475868463...
(hopefully this is correct, I'm better at C# than vb.net): ``` Public Property CurrentPage() As Integer Get Dim o As Object = Me.Request.QueryString("page") If o Is Nothing Then Return 1 Else Return CType(o, Integer) End If End Get End Property ``` Then...
[ 0.00754039129242301, -0.030647989362478256, 1.0752092599868774, -0.15432730317115784, -0.17554102838039398, -0.1812729835510254, 0.17845237255096436, -0.16639362275600433, -0.42814144492149353, -0.6614812016487122, -0.27458998560905457, 0.41704002022743225, -0.330496609210968, 0.4563988447...
- <a href='mypage.aspx?page=2'>2</a> etc... ``` **Alternative:** If you want to use the LinkButton, you might want to consider putting a single LinkButton in a repeater. Then the only event you have to worry about is the OnItemCommand event. Then no dynamic controls or events. Something like this: ``` <asp:Repeater ...
[ -0.19330960512161255, -0.33009088039398193, 0.6950743198394775, 0.03671391308307648, 0.023413045331835747, -0.03206015005707741, 0.16365766525268555, -0.31893405318260193, -0.46403270959854126, -0.44870659708976746, -0.2026490420103073, 0.44039708375930786, -0.412995845079422, 0.1784673333...
page number.
[ -0.2952597439289093, 0.1802433878183365, 0.3517085015773773, 0.030727222561836243, 0.010788846760988235, 0.12181278318166733, 0.05141282454133034, -0.09323384612798691, -0.22891493141651154, -0.40865641832351685, -0.1774064004421234, -0.06575783342123032, -0.08906564861536026, 0.1492254585...
I feel like I've seen this question asked before, but neither the SO search nor google is helping me... maybe I just don't know how to phrase the question. I need to count the number of events (in this case, logins) per day over a given time span so that I can make a graph of website usage. The query I have so far is t...
[ 0.17291174829006195, 0.05591931566596031, 0.3863677680492401, -0.08871347457170486, -0.019074460491538048, 0.20693381130695343, 0.03526260331273079, 0.06159286946058273, -0.31641173362731934, -0.7949041724205017, -0.10717760771512985, 0.011253421194851398, 0.0066802832297980785, 0.46351924...
does most of what I need (I get a row per date as the output containing the total number of logins and the number of unique users on that date). The problem is that if no one logs in on a given date, there will not be a row in the dataset for that date. I want it to add in rows indicating zero logins for those dates. T...
[ 0.11538323014974594, 0.1716524064540863, 0.5185596346855164, 0.029955320060253143, 0.1511891633272171, 0.017311573028564453, 0.2072656899690628, 0.1344415843486786, -0.45871028304100037, -0.3770153224468231, -0.05879153683781624, 0.09117766469717026, -0.2747816741466522, 0.2826222181320190...
the start of the period and the date of the current row. When I'm building my chart output, I'll keep track of this value and if the next row is not equal to the current row plus one, insert zeros into the chart for each of the missing days. 2. Create a "date" table that has all the dates in the period of interest and ...
[ 0.297301322221756, -0.019047431647777557, 0.6248095631599426, 0.06490527093410492, 0.3317859172821045, 0.12370440363883972, -0.30511707067489624, 0.1880784034729004, -0.4580625891685486, -0.5304065346717834, 0.0433146134018898, 0.21755224466323853, -0.11411204189062119, 0.38193750381469727...
avoid using it, especially since that table is intended for another module of the system and would thus introduce a dependency on what I'm developing currently. Any better solutions or hints at better search terms for google? Thanks. Frankly, I'd do this programmatically when building the final output. You're essentia...
[ 0.5342450141906738, 0.00814750138670206, 0.10517577826976776, 0.1967514604330063, 0.21239377558231354, -0.10474081337451935, -0.18406249582767487, 0.4380064308643341, -0.21150019764900208, -0.37145480513572693, 0.1267935186624527, 0.2509382963180542, -0.1649962216615677, 0.0748491510748863...
the fly, using i.e. your DB's date functions and a derived table.
[ 0.5490970611572266, -0.09806440025568008, -0.02961271069943905, 0.008420814760029316, 0.02422364428639412, -0.3357893228530884, 0.001938890665769577, -0.004860424902290106, 0.1484031081199646, -0.4363962411880493, -0.055514004081487656, 0.2974313497543335, -0.2575717568397522, 0.0440803393...
I'm trying to do exactly the same thing as detailed in this question: [ASP.NET MVC: Redirecting back to page when no parameter is given to URL](https://stackoverflow.com/questions/272454/asp-net-mvc-redirecting-back-to-page-when-no-parameter-is-given-to-url) Here's my code: ``` public ActionResult Details(long? id) ...
[ 0.05208483710885048, -0.09321403503417969, 0.8393185138702393, -0.10140615701675415, -0.09202729165554047, -0.1411839872598648, 0.15832141041755676, -0.4696043133735657, -0.4536561071872711, -0.4486011564731598, -0.03022640570998192, 0.8124847412109375, -0.3251611888408661, 0.1763047128915...
IE7. Are there any known issues with RedirectToAction in Firefox 3? Try this. Open Firefox. Type "about:config" in the address bar. Hit enter. Accept the warning. Then look for: network.dns.disableIPv6 set it to true by double-clicking the line. Try your web app now. Does that work?
[ 0.1700790524482727, -0.27183297276496887, 0.7539771795272827, -0.1850004494190216, 0.09530693292617798, -0.36216142773628235, 0.7165625691413879, -0.004062348511070013, -0.1725870817899704, -0.6461134552955627, -0.22778525948524475, 0.9597028493881226, -0.5267930626869202, -0.3655246794223...
I have a long stored procedure that does a lot of querying and generates a report. Since its a summary report, it calls a lot of other procs to get data. I am wondering if its possible to execute concurrent sql batches from with a proc in Sql server ... many thanks No, SQL Server does not do concurrency in the sense I...
[ 0.5248359441757202, 0.07568328827619553, 0.20905059576034546, 0.12397037446498871, -0.24208803474903107, -0.10578401386737823, 0.38564449548721313, 0.05276770889759064, -0.6429972648620605, -0.42724841833114624, 0.353624165058136, 0.559581995010376, -0.13881205022335052, 0.1883663237094879...
same or longer: if each query is fairly intense and is resource heavy, then you may max out the server by running them together and affect other processes. + then you have to assemble data in the final form in the client.
[ 0.3049551546573639, -0.32826900482177734, 0.4281153976917267, 0.1386519968509674, -0.09460484236478806, 0.019926156848669052, -0.04331778362393379, -0.20601576566696167, -0.4626002609729767, -0.4770117402076721, -0.03846670314669609, 0.5741967558860779, -0.06938379257917404, -0.03495372459...
I am using RenderControl in a string builder to add a dropdownlist in a asp:TreeView. My dropdownlist is set to autopostback and I have an event on the SelectedIndexChanged attached. Unfortunaltly, I see my dropdownlist correctly populated inside my treeview, but changing the selection ain't raising events. here is my...
[ 0.11598028987646103, -0.1839459240436554, 0.5618718266487122, -0.3155147433280945, -0.15929915010929108, 0.1685848981142044, 0.620842456817627, -0.4478002190589905, -0.08219496160745621, -0.7175118327140808, -0.26474905014038086, 0.4634730815887451, -0.3546385169029236, -0.0999393388628959...
do? [SQuirreL](http://squirrel-sql.sourceforge.net/), written in java, will work with any RDBMS for which there's a JDBC driver. It works very well for both sending SQL, rendering result sets, and allowing browsing of database objects (from a tree). For several RDBMS, it includes extensions to automatically generate c...
[ 0.766112744808197, 0.16368940472602844, -0.2603984475135803, 0.06167372688651085, -0.12254053354263306, 0.08959941565990448, 0.2835230231285095, 0.03459896519780159, -0.09073583781719208, -0.3042139410972595, -0.01230663526803255, 0.02377912402153015, -0.5018650889396667, -0.25726267695426...
I have `MyClass<T>`. And then I have this `string s = "MyClass<AnotherClass>";`. How can I get Type from the string `s`? One way (ugly) is to parse out the "<" and ">" and do: ``` Type acType = Type.GetType("AnotherClass"); Type whatIwant = typeof (MyClass<>).MakeGenericType(acType); ``` But is there a cleaner ...
[ 0.25372403860092163, 0.006633481476455927, 0.4359961748123169, -0.12743866443634033, -0.21086736023426056, -0.08756561577320099, 0.27377501130104065, -0.2839750647544861, -0.053566623479127884, -0.554058313369751, 0.013721813447773457, 0.4031357169151306, -0.32254883646965027, 0.4630075693...
CLR wants. I started writing a quick regex to parse it out like you mentioned in the question, but realized that unless you give up the ability to have nested generics as type parameters the parsing will get very complicated.
[ 0.24214822053909302, -0.10865498334169388, 0.6148684620857239, -0.05901268497109413, 0.06761854141950607, -0.21733373403549194, 0.02318452298641205, -0.18532219529151917, -0.04338163137435913, -0.2577928900718689, 0.1548272967338562, 0.5786857008934021, -0.42814141511917114, 0.230592250823...
I'm using a seperate .dtd file as a doctype for my custom xml file: **names.xml** ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE name SYSTEM "names.dtd"> <names> <name> <text>Pep&eacute;</text> <creator>&lost;</creator> <history>&lost;</history> </name> <name> <text>C...
[ 0.39521658420562744, 0.26276564598083496, 0.49891987442970276, -0.18216723203659058, 0.1948135793209076, 0.22411870956420898, 0.00258704018779099, -0.3183274567127228, -0.21803507208824158, -0.7468225955963135, 0.04010062292218208, 0.3001876771450043, -0.27573734521865845, 0.34984475374221...
"Lost in the depths of time."> <!ENTITY eacute "é"> ``` However when trying to access names.xml I get the following error: > XML Parsing Error: undefined entity > Location: > <http://localhost/.../names.xml> Line > Number 5, Column 18: ``` <text>Pep&eacute;</text> ---------^ ``` Just for clarification names.xm...
[ 0.1519113928079605, 0.12914326786994934, 0.06640169769525528, 0.3074856102466583, 0.31089654564857483, 0.10496070235967636, 0.08241405338048935, -0.29046890139579773, 0.0036472356878221035, -0.5358169674873352, 0.18144044280052185, 0.541645348072052, -0.21483317017555237, 0.322798967361450...
because of the different approach the C# and VB.Net designers took. VB.Net takes a more hand holding approach and fixes your mistake and converts `IEnumerable` to `IEnumerable<object>` so it can be used. In C#, you can simulate this by using ``` var q = from e in m.Cast<object>() select e; ```
[ 0.10078637301921844, -0.20159797370433807, 0.10635212808847427, -0.1458137184381485, -0.025291675701737404, -0.1069544106721878, 0.06472699344158173, -0.48080262541770935, 0.07283812016248703, -0.6918575167655945, -0.01865869201719761, 0.661400556564331, -0.2440991997718811, -0.03422077745...
My project **requires I use VB (5 or 6)\*** to store a date in an SQL Server database. The SQL datetime type includes the time, which I don't want. I'm also aware that VB's representation of a date doesn't mirror that of SQL Server. So, how can I store a date held in VB's date type in the SQL database, as the datetime...
[ 0.5430893898010254, 0.02814328856766224, 0.3542490303516388, 0.06685387343168259, 0.22941936552524567, 0.06967847794294357, 0.1903400421142578, 0.0018154183635488153, -0.3288290202617645, -0.4879186451435089, 0.12810397148132324, 0.07612764090299606, 0.05161632224917412, 0.6058034300804138...
start from here. But given the constraints, any VB6/MS SQL fiends out there? VB6 has a [`DateValue()`](http://www.vb6.us/tutorials/date-time-functions-visual-basic) function which returns the date portion of a Date/Time value, with the time portion "zeroed out". (Note: When the time portion of a date/time variable is "...
[ 0.19785407185554504, -0.2988022565841675, 0.3945707380771637, -0.05587775632739067, 0.17846639454364777, -0.08842173218727112, 0.09612680226564407, 0.19782426953315735, -0.007986672222614288, -0.4053642153739929, -0.22095076739788055, 0.14864785969257355, 0.005158779677003622, 0.0332149006...
I have a Java webapp using Hibernate and MySQL. If the site isn't used for a few days, the MySQL connection goes stale, and I am met with the following exception: ``` com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Connection.close() has already been called. Invalid operation in this state. ``` ...
[ 0.29375383257865906, 0.25608888268470764, 0.33370909094810486, -0.3112180233001709, -0.05501623451709747, -0.5059429407119751, 0.24078448116779327, -0.09355085343122482, -0.15646682679653168, -0.7880633473396301, 0.02870200015604496, 0.44465309381484985, -0.2905330955982208, 0.195745468139...
using? The [Hibernate suggestion](http://www.hibernate.org/117.html#A15) is not to use the built-in pooling, but use the application server datasource or something like [Commons DBCP](http://commons.apache.org/dbcp/) or [C3PO](http://sourceforge.net/projects/c3p0).
[ 0.4396958649158478, -0.22943514585494995, 0.38457411527633667, -0.012790336273610592, -0.29092171788215637, -0.4306689202785492, 0.0795951634645462, -0.3985801339149475, -0.14014530181884766, -0.2785644829273224, -0.26895755529403687, 0.015624397434294224, -0.23434658348560333, -0.31792408...
I am going to create Admin screens in my ZF app. Should I used separate controller or separate module to contain admin section? My assumption is that this has something to do with application size. If it's small, using a controller for Admin part is ok, isn't it? I don't see the problem with that. Keeping each screen ...
[ 0.47926458716392517, 0.25267645716667175, 0.5359514951705933, 0.1415529102087021, -0.03432135283946991, 0.040352415293455124, -0.3377059996128082, 0.018736043944954872, -0.3785540461540222, -0.8064829111099243, 0.08002285659313202, 0.5305590629577637, -0.29503536224365234, 0.29762172698974...
Let's say you have a page that produces text/plain output. If you set the ViewState in Page\_Load, it doesn't do anything to the output (which makes sense). My question is, does text/plain turn off ViewState processing? What does ASP.NET do to decide when it'll turn things off? In order to have a view state enabled yo...
[ 0.20866745710372925, -0.304335355758667, 0.5045656561851501, -0.03696274012327194, -0.25521206855773926, -0.05519194155931473, 0.22392825782299042, 0.1729242354631424, -0.35594263672828674, -0.7518637180328369, -0.15619629621505737, 0.5613738894462585, -0.4021167755126953, 0.22099500894546...
My cube isn't rendering as expected when I use GL\_BLEND. ``` glEnable(GL_CULL_FACE); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE); ``` I'm also having a similar problem with drawing some semi-opaque vertices in front, which could well be related. > Related: [Why do my semi-opaque vertices make background ...
[ -0.011333209462463856, -0.002687659114599228, 0.6186068654060364, -0.03599581494927406, -0.4493715465068817, 0.2244037240743637, 0.25379711389541626, 0.14607948064804077, -0.1292375922203064, -0.8472585082054138, 0.050741229206323624, 0.43650150299072266, -0.3195717930793762, 0.01744364574...
drawing the cube: ``` glDisable(GL_LIGHTING); ```
[ 0.02783382683992386, 0.21623434126377106, 0.6926833987236023, -0.17221111059188843, -0.4648251533508301, 0.280981183052063, 0.08688762038946152, -0.11949658393859863, -0.29425105452537537, -0.8153157234191895, -0.22399470210075378, 0.42185792326927185, -0.6225497722625732, 0.09966608136892...
One C++ program is filling a logfile, it keeps a handle to the logfile. I want to open this logfile with a C# program and parse it to see if a certain line has been added to the logfile. However, if I open the logfile with C# I get a "this file is being used by another process" IOException. Code used: ``` using(Stre...
[ -0.13805922865867615, 0.028741197660565376, 0.6840720772743225, -0.16308577358722687, -0.05492057278752327, -0.07183065265417099, 0.15908204019069672, -0.08454129099845886, -0.1888168752193451, -0.6942685842514038, -0.42962589859962463, 0.6509894728660583, -0.4305434823036194, -0.112955234...
my C# program to open the file in readonly mode? Perhaps try opening the file with the `ReadWrite` `FileShare`? ``` File.Open(myFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite) ```
[ 0.16904866695404053, 0.3357391059398651, 0.42914333939552307, -0.022765396162867546, 0.11934662610292435, -0.1587669551372528, 0.18511340022087097, 0.32916611433029175, -0.10242712497711182, -0.6201518774032593, -0.25412872433662415, 0.7050248980522156, -0.21182264387607574, 0.094112791121...
can you show me how to assign css properties to the button that is of type=file,say: ``` <input type="file" name="coolFile"> ``` I know that in css you need to do this: ``` input[type=file]{ background:#ccf; //and so on } ``` How do I assign values for the button? Unfortunately, mainstream browsers do not...
[ 0.41697558760643005, 0.020026633515954018, 0.029693886637687683, 0.20867325365543365, 0.11725682765245438, -0.18261194229125977, -0.09743644297122955, 0.018532564863562584, -0.2921988070011139, -0.8143683075904846, 0.17614087462425232, 0.42144089937210083, -0.24429811537265778, -0.08805851...
it. The following was lifted from <http://www.quirksmode.org/dom/inputfile.html>: ``` div.fileinputs { position: relative; } div.fakefile { position: absolute; top: 0px; left: 0px; z-index: 1; } input.file { position: relative; text-align: right; -moz-opacity:0 ; filter:alpha(opac...
[ -0.02028399519622326, -0.2549085319042206, 0.5289878845214844, 0.10323724895715714, 0.07407287508249283, 0.08005472272634506, 0.43547964096069336, -0.06224983558058739, -0.09506364166736603, -0.35343700647354126, -0.20993301272392273, 0.3534465730190277, -0.4489516019821167, 0.122812651097...
</div> </div> ```
[ -0.07190121710300446, 0.4921887218952179, 0.05531216040253639, -0.17986783385276794, -0.13135050237178802, -0.0751023069024086, 0.28936469554901123, 0.20548641681671143, -0.147556871175766, -0.622516930103302, -0.4902050495147705, 0.2702726721763611, -0.10220156610012054, 0.330144584178924...
I have a DataTable which has some rows and I am using the select to filter the rows to get a collection of DataRows which I then loop through using foreach and add it to another DataTable, but it is giving me the error "This Row already belongs to another table". Here is the code: ``` DataTable dt = (DataTable)Session...
[ 0.03312087804079056, 0.02731551043689251, 0.6611447930335999, -0.3103851079940796, 0.05255868658423424, 0.15146347880363464, -0.14922364056110382, -0.34101831912994385, -0.2092609852552414, -0.7179434299468994, 0.0005656044813804328, 0.6577455401420593, -0.318217933177948, 0.49000635743141...
also use `Add` which takes an array of values: ``` myTable.Rows.Add(dr.ItemArray) ``` Or probably even better: ``` // This works because the row was added to the original table. myTable.ImportRow(dr); // The following won't work. No data will be added or exception thrown. var drFail = dt.NewRow() drFail["CustomerI...
[ -0.11125318706035614, 0.11944033205509186, 0.7717925310134888, -0.4248478412628174, 0.19930443167686462, 0.22099708020687103, -0.04486418142914772, -0.19480322301387787, -0.05337629094719887, -0.5717357397079468, -0.11972387880086899, 0.8145159482955933, -0.4621741771697998, 0.234522745013...
I'm stuck with a LINQ group by situation trying to solve it without using `foreach` statement, here is the escenary: I have two generic collections `List<OrderHeader>` and `List<OrderDetail>`, both have a same field `TOTRGVS` that contains total amount from a order, and the number of order is the key named `NDORGV`. ...
[ -0.17171162366867065, -0.018465908244252205, 0.5076494216918945, -0.14112712442874908, -0.14941541850566864, 0.0480738990008831, 0.016669990494847298, -0.5034732818603516, -0.36755117774009705, -0.3642352223396301, -0.16359293460845947, 0.38062235713005066, -0.2224465161561966, 0.217095673...
join c in lstOrderHeader on d.NDORGV equals c.NDORGV
[ -0.47673776745796204, 0.000867727561853826, 0.7542682886123657, -0.3928620517253876, -0.26396599411964417, -0.21309424936771393, -0.017094621434807777, -0.6981870532035828, -0.30734527111053467, -0.4520491361618042, -0.1491508036851883, 0.28457924723625183, -0.3697162866592407, 0.011228173...
group d by d.NDORGV into g let difTOTOrderDetail = g.Select(p => p.TOTRGVS).Sum() let difTOTOrderHeader = g.Key.????
[ -0.30003100633621216, -0.3389063775539398, 0.5573147535324097, -0.39113762974739075, -0.0068725887686014175, -0.10304169356822968, -0.07285690307617188, -0.6335909962654114, 0.06606438010931015, -0.4665828049182892, -0.4245225787162781, 0.2692524790763855, -0.6399564743041992, -0.128646090...
let diffTOT = difTOTOrderHeader - difTOTOrderDetail where diffTOT != 0 select new _ERRORS
[ 0.15857520699501038, -0.08321110159158707, 0.32570183277130127, -0.38417208194732666, 0.2697316110134125, -0.11087808758020401, 0.2862732708454132, -0.276061475276947, 0.056643981486558914, -0.6134836673736572, 0.0029008076526224613, 0.5260934829711914, -0.48087894916534424, -0.03706996515...
{ NDORGV = g.Key, IMPORT = diffTOT
[ -0.2216436266899109, -0.18421918153762817, 0.11236447840929031, -0.2600547671318054, 0.25984880328178406, 0.11759280413389206, 0.3035050928592682, -0.20781704783439636, -0.2667870819568634, -0.1610001027584076, -0.2772344648838043, 0.7579485774040222, -0.4279474914073944, 0.291035383939743...
} ).ToList(); ``` in `difTOTOrderHeader` I don't know how to retrieve the `TOTRGVS` field from `OrderHeader`. I have tried using Key but can't get any field, just extensions for formatting methods. This might do the trick: ``` var dictDetails = lstOrderDetail .GroupBy(d => d.NDORGV) .ToDictionary(g => g.Key, g...
[ -0.20870327949523926, -0.20738953351974487, 0.7120030522346497, -0.4291171133518219, 0.4313638210296631, 0.0328531414270401, 0.3182995319366455, -0.47279807925224304, -0.08679936826229095, -0.4251182973384857, -0.3101709187030792, 0.6484166979789734, -0.44644635915756226, 0.062365774065256...
I'm using the Spring IDE plugin with Eclipse 3.4 (finally decided to upgrade), and I have several projects which use the Webflow integration that comes with the Spring IDE plugin. For some reason, I can't view anything having to do with Spring Webflow in Eclipse 3.4. It worked just fine in 3.3, but not 3.4. Has anybody...
[ 0.17814965546131134, 0.03349955379962921, 0.6363253593444824, -0.16393527388572693, -0.3970393240451813, 0.0029129227623343468, 0.06952912360429764, -0.040537286549806595, -0.19791385531425476, -0.6301171183586121, 0.3332637548446655, 0.7843794822692871, 0.11351796239614487, -0.19764147698...
Running Fedora 9/10, Apache 2, PHP 5... Can I run a shell script as root, from a PHP script using exec()? Do I just give Apache root priveleges, and then add "sudo" in front of them command? Specifically, I'm trying to start and stop a background script. Currently I have a shell script that just runs the app, start...
[ 0.15582436323165894, 0.06419826298952103, 0.34316331148147583, -0.17634546756744385, 0.08044362813234329, -0.13050314784049988, 0.4359264373779297, -0.06081991270184517, -0.25374835729599, -0.5647243857383728, -0.11184027791023254, 0.8550189733505249, -0.6474646925926208, -0.18148049712181...
privileges in sudoers file in such way to constrain the apache user to that single command you wish to run (i.e. your shell script). Even then, it poses a security risk, because anyone could create a PHP script and run your shell script in turn. So make sure that shell script itself is secure from alteration by Apache...
[ 0.23500898480415344, 0.1315862089395523, 0.1140148863196373, 0.26172661781311035, -0.018375858664512634, -0.6189419627189636, 0.26625803112983704, -0.20429593324661255, -0.3265010118484497, -0.2371130883693695, -0.0965535119175911, 0.4135785400867462, -0.0730099231004715, 0.135237917304039...
and do not use setuid. Both open a can of worms, and since you are a newbie (given the question you asked) you are very likely to miss some of small details that would create potential problems.
[ 0.5083552002906799, 0.048684846609830856, -0.39862149953842163, 0.27444198727607727, 0.1264401227235794, -0.560035228729248, 0.4075351655483246, 0.41646113991737366, 0.23402047157287598, -0.9289569854736328, -0.02591785602271557, 0.6257008910179138, 0.014065369963645935, 0.0487872213125228...
How to enable logging of all SQL executed by PostgreSQL 8.3? *Edited (more info)* I changed these lines : ``` log_directory = 'pg_log' log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' log_statement = 'all' ``` And restart PostgreSQL service... but no log was created... I'm using Windows Server 2...
[ 0.10085204988718033, 0.09959735721349716, 0.48410671949386597, 0.0031355186365544796, -0.023927338421344757, -0.21062514185905457, 0.4723665416240692, 0.11409155279397964, -0.400573194026947, -0.48715054988861084, -0.1620686948299408, 0.9599750638008118, -0.3510684669017792, 0.047536958009...
that the `log_directory` directory already exists inside of the `data` directory, and that the postgres user can write to it.
[ 0.13585306704044342, 0.21220093965530396, 0.15569210052490234, 0.10463051497936249, 0.3709804117679596, -0.04398892819881439, 0.09857571125030518, 0.484325110912323, 0.007067991886287928, -0.34372881054878235, -0.4617079496383667, 0.3931269943714142, -0.16339707374572754, -0.04028493165969...
How can I detect that a client has disconnected from my server? I have the following code in my `AcceptCallBack` method ``` static Socket handler = null; public static void AcceptCallback(IAsyncResult ar) { //Accept incoming connection Socket listener = (Socket)ar.AsyncState; handler = listener.EndAccept(ar); }...
[ -0.11030852794647217, 0.12340334057807922, 0.4581664204597473, -0.2787926197052002, -0.12371375411748886, 0.04836498573422432, 0.5078533887863159, -0.22549447417259216, -0.13192617893218994, -0.48878777027130127, -0.12563075125217438, 0.43603646755218506, -0.4764624536037445, 0.41420832276...
detect client disconnection.* Any help will be appreciated. Since there are no events available to signal when the socket is disconnected, you will have to poll it at a frequency that is acceptable to you. Using this extension method, you can have a reliable method to detect if a socket is disconnected. ``` static c...
[ -0.06013675779104233, -0.2827366590499878, 0.5308045148849487, -0.18015362322330475, 0.06296344846487045, -0.23230715095996857, 0.26796430349349976, -0.15781860053539276, -0.1384497731924057, -0.6903606057167053, -0.271097332239151, 0.7384048700332642, -0.5380882620811462, 0.11063918471336...
Is there a problem with some versions of PHP and file names which look like this: ``` report.class.php ``` I tried to use one and it failed once and worked once, but I can't replicate the failure. So I'm not sure exactly what the cause is, prefer using the period-separated filenames, but would strongly prefer not to...
[ 0.4678604304790497, 0.22858387231826782, -0.3370412290096283, 0.021525293588638306, -0.3240204453468323, -0.14337599277496338, 0.4828910529613495, 0.35136544704437256, -0.40781641006469727, -0.44608330726623535, 0.276440292596817, 0.15343786776065826, -0.1336686611175537, 0.525595664978027...
pattern class.xxx.php instead though. They will be alphabetized together that way.
[ 0.2882682979106903, -0.22230936586856842, 0.3039022386074066, 0.26423928141593933, -0.40028291940689087, -0.11324550956487656, 0.016228659078478813, 0.22109323740005493, -0.37192559242248535, -0.784705400466919, 0.13030759990215302, -0.19153471291065216, -0.07897724211215973, -0.0075158057...
I have an < mx:Label > tag that has a set width, which is usually large enough to display the text it needs to show. Every once in a while though the text is a little too long and gets chopped off and "..." gets appended. Instead of this happening I would like to decrease the font-size just low enough to show the whole...
[ 0.8676596879959106, -0.04630117118358612, 0.1576002538204193, 0.12627583742141724, -0.2357175499200821, -0.08191221952438354, 0.2878949046134949, 0.18952547013759613, -0.45820650458335876, -0.7563709616661072, -0.08924251794815063, 0.2121153175830841, -0.020488316193223, 0.0444786287844181...
referencing the relevant assembly or namespace, without having to include individual code files. You might be looking for user controls, which allow you to create fragments of markup with their corresponding code behind, and then reference these in your page.
[ 0.5597047805786133, 0.12474551051855087, 0.13821916282176971, 0.40929436683654785, -0.20103363692760468, -0.002409838605672121, -0.07193915545940399, -0.10969811677932739, -0.2593299448490143, -0.7075101137161255, -0.2881014943122864, -0.07293733209371567, -0.05602023005485535, 0.121847316...
I am fresh out of College (graduated in December with BS in Comp Sci). I have been working for a very large (40,000+ employee) company for over two years. My job is as stable as anyone could hope for. However, I am always bored, they cannot keep us (developers) busy. I am thinking about apply at some local contracting ...
[ 0.993686854839325, 0.5694290399551392, 0.3381626009941101, -0.20253045856952667, 0.47639593482017517, -0.23908498883247375, 0.2811053395271301, 0.6237019896507263, -0.3735272288322449, -0.6900680661201477, 0.06441409885883331, 0.46616145968437195, 0.7324209213256836, 0.28931549191474915, ...
constantly coding, no BS meetings about project charters and stage gates, and that I would learn more in a year than I would in 10 years at my current job (this I believe since we're using java 1.4 and our brand new laptops have windows 2000 on them... lol). I just want to know what to expect if I decided to go the con...
[ 0.9538542032241821, 0.13324353098869324, -0.20674605667591095, 0.18675105273723602, 0.458372563123703, -0.17949755489826202, 0.23841041326522827, 0.30220112204551697, -0.35079213976860046, -0.7802702784538269, 0.24916696548461914, 0.5492701530456543, 0.23611147701740265, -0.242394462227821...
travel as a contractor work (what is paid for, do you work 4 10 hour days... etc)? Will I really be *mostly* coding? Will I really gain valuable insight and knowledge of the IT world? I've been migrant IT labor for 30+ years. **"I have been told that as a contractor I would basically be constantly coding"** False. Yo...
[ 0.9208730459213257, 0.0232279971241951, 0.2969788610935211, -0.04787874221801758, 0.1325879544019699, 0.18428285419940948, 0.3538852632045746, 0.24065932631492615, -0.39128389954566956, -0.7017022967338562, 0.049541205167770386, 0.5860853791236877, 0.20866639912128448, -0.05813337862491608...
proposals that get shot down in flames. In-house initiatives are quietly morphed into something else. Out-of-house initiatives turn ugly -- the contracts are fired -- there are lawsuits. **"and that I would learn more in a year than I would in 10 years at my current job"** True. If you pay close attention and take ca...
[ 0.6051992774009705, 0.07648863643407822, 0.04849974811077118, 0.25911054015159607, -0.014775725081562996, 0.13915546238422394, -0.0027656350284814835, -0.37866267561912537, -0.2997159957885742, -0.5578564405441284, 0.15844270586967468, 0.3058435618877411, 0.3139173686504364, -0.11703016608...
expect if I decided to go the contracting route"** Parts of it are bad. Parts are good. It's a job -- that's why they have to pay you to do it. **"if traveling is worth it."** Let me list the benefits -- Skiing in Anchorage, Skiing in Utah, Diving in the Florida Keys, flying the entire family first-class to San Dieg...
[ 0.9031898975372314, 0.02698008343577385, 0.2588326036930084, 0.23453769087791443, 0.2849482297897339, -0.04070035368204117, 0.30608296394348145, 0.056505344808101654, -0.06529071927070618, -0.47653451561927795, 0.031272776424884796, 0.3103434145450592, 0.07615085691213608, -0.4096350967884...
I've been doing PHP/MySQL web development for a while and I'm fairly competent in it. Lately however, I've learnt Java and fallen in love with it, and I'd really like to do more Java work now. I've gotten my first opportunity with a client who needs a web 2.0ish web app built, and he has agreed to let me use anything ...
[ 0.6492020487785339, 0.34146276116371155, -0.167977973818779, -0.2385556697845459, -0.23113271594047546, -0.0631931871175766, 0.3398784101009369, 0.2447560727596283, -0.2213316708803177, -0.8881220817565918, 0.1542002260684967, 0.6740419268608093, 0.12455979734659195, -0.06316439062356949, ...
in [Google Web Toolkit](http://code.google.com/webtoolkit/). I need to get started with this project in the next 2-3 days max, so I don't have much time to read long books about the topic. This is what I've learnt so far: * Setup a Tomcat on my dev machine to work with Eclipse * Learnt the basics of servlets, the `do...
[ 0.5257056355476379, -0.17330746352672577, 0.38752827048301697, 0.01875845342874527, -0.3048945963382721, -0.06511348485946655, 0.11199120432138443, -0.3052070736885071, 0.06322942674160004, -0.6851998567581177, -0.2064715027809143, 0.22817504405975342, -0.3002716600894928, -0.2982941269874...
page which shows which value you picked. I think these are the next few things I'd need to learn: * How to access/use databases * Sessions and Cookies * Possibly more about the syntax of JSP pages. There seem to be hundreds of topics about Java web dev which I don't know anything about., but I don't have time to lea...
[ 0.7503873109817505, 0.15297430753707886, 0.40599706768989563, 0.02642887458205223, -0.3509353995323181, 0.21393877267837524, 0.10909456014633179, 0.0776439681649208, -0.1679937094449997, -0.8529627919197083, 0.15854647755622864, 0.4495719373226166, -0.09717969596385956, -0.0925394371151924...
PHP that makes things like form validation, sessions management (it uses database sessions), pagination, and common tasks like these very easy. If there is a similar, lightweight framework in Java that can take care of things like this, please mention it as well. Thanks. There are so many different Java Enterprise tec...
[ 0.14701001346111298, 0.14735011756420135, 0.45023009181022644, 0.29577988386154175, -0.4085603356361389, -0.2624187767505646, -0.07817110419273376, -0.029880620539188385, -0.2810242176055908, -0.3982006013393402, 0.5138862729072571, 0.3259032666683197, -0.11163854598999023, -0.269672036170...
using any of the newer frameworks. So it is for sure a valid way to do it, although dated. The thing about java, is that most enterprise development is a conjunction of a bunch of different technologies. For example, you could create an app using JSP's for the views with a Servlet back-end, using Hibernate for you DB ...
[ 0.3740023374557495, -0.06827886402606964, 0.021192627027630806, 0.12329372763633728, -0.27259543538093567, -0.21719975769519806, 0.19367334246635437, 0.17757168412208557, -0.5147996544837952, -0.7654118537902832, -0.055764149874448776, 0.44257238507270813, -0.4429624378681183, -0.147944316...
technologies in the next 3 days. What I would suggest is (as previously mentioned) to pick a framework, and there are many to choose from such as Tapestry, JSF, Wicket, Struts, etc. that will abstract away a lot of the underlying technologies. Any java technology you pick will have a good community behind it willing ...
[ 0.5616418719291687, 0.06539756059646606, 0.2659606337547302, 0.2218826860189438, 0.10476978123188019, -0.3567618429660797, 0.3017407953739166, 0.05245933309197426, 0.014999857172369957, -1.2097231149673462, -0.17363744974136353, 0.37631818652153015, 0.2072109580039978, 0.011913198977708817...
good Java web design it is very easy to shoot yourself in the foot. Perhaps you should look at some of the other technologies that are available on the JVM (so that you have all the Java libs available) such as Groovy. Groovy allows you the ability to program with Java syntax if you choose, or a dynamic Ruby-like syn...
[ 0.23079445958137512, 0.14305835962295532, -0.09481145441532135, 0.1602954864501953, -0.26114827394485474, -0.31098809838294983, 0.41412416100502014, 0.436484158039093, -0.3660924732685089, -0.6182321906089783, 0.3435613214969635, 0.7857795357704163, -0.2749618887901306, -0.2875376641750335...
Last week , my boss ask my team to evaluate ASP.NET MVC, for next project. all of us working with webform since .NET 1.1, we have no MVC experience before ,but all of my colleagues are interested in ASP.NET MVC ,But no luck , our finally answer is NO. Because: 1. We believe although you are ASP.NET Guru, you can buil...
[ 0.45131462812423706, 0.1652245819568634, 0.3284468650817871, -0.06284025311470032, -0.21276354789733887, -0.25953227281570435, 0.3466140925884247, -0.15870144963264465, -0.2678575813770294, -0.4129314422607422, 0.15247860550880432, 0.5358027219772339, -0.12650920450687408, 0.11825178563594...
for ask How-To question. 2. We had see many times people say MVC provide better project management , but if it is a complex web site, I can imagine there are hundred <%=%> TAGs in one page, and keep open controller to see what to return, and keep opening model to see the logic. I can say , MVC is not bad, but Webform ...
[ 0.46195995807647705, -0.1524478644132614, 0.4595993161201477, 0.254484087228775, -0.10391992330551147, -0.3185387849807739, 0.1603371948003769, -0.43732622265815735, -0.1388387829065323, -0.6554246544837952, 0.14171069860458374, 0.5845689177513123, -0.09150680899620056, 0.01271369028836488...
application" in that "how many pages we have, over 300 pages! that would be huge!". You change the view of your entire application. You shift from old thinking of "what page need to create next" to the MVC way of thinking of "what function do we need to implement next". For example, I myself took control of a project ...
[ 0.23451124131679535, 0.36285337805747986, 0.5918223857879639, -0.06619680672883987, 0.13292774558067322, -0.08401784300804138, 0.29075518250465393, -0.44081857800483704, -0.6632516980171204, -1.0344945192337036, -0.15168514847755432, 0.4543847441673279, -0.20299787819385529, 0.162604764103...
am moving away from "here's one page. Here's another page." to a "here's the function I want to implement" way of thinking. By looking at pages as the function you are trying to accomplish, you instead start abstracting pieces of that page out into common functionality. MVC can greatly scale with this way-of-thinking...
[ 0.21841958165168762, 0.2689913511276245, 0.7486693859100342, -0.20398102700710297, -0.23567377030849457, -0.16205048561096191, 0.03690293803811073, -0.19455116987228394, -0.5081921815872192, -0.7831998467445374, -0.029768791049718857, 0.6079678535461426, -0.3749629259109497, -0.02097442001...
this calls for a different way of thinking. There is the HtmlHelper that is used for basic rendering and encoding. I use the same concept with an abstracted class called MyProjectHelper that renders my "functions" onto the page (functions=code). For example, I always created a Server Control for my DisplayNames in th...
[ 0.21381652355194092, 0.05318031832575798, 0.7731866240501404, -0.047005023807287216, -0.2828400433063507, -0.03573804348707199, -0.13557381927967072, 0.33663469552993774, -0.17321456968784332, -0.9364805221557617, 0.12692250311374664, 0.3543575406074524, -0.16460680961608887, 0.24226969480...
the UI layer, this will render the Anchor as needed with any options I wish (of course, the abstract is inherited by the CollegeProjectViewModel that picks up on the "basic" text rendering). MVC's power lies in the ability to no longer require a "webpage", but instead "functions" or methods of what you want to do with...
[ 0.23231598734855652, -0.254786878824234, 1.0539053678512573, 0.11203881353139877, -0.1646125167608261, -0.40022143721580505, -0.17729955911636353, 0.01847442239522934, -0.307098388671875, -0.930108368396759, -0.13928191363811493, 0.533602237701416, -0.05935441702604294, 0.2518203556537628,...
I have the following code on my site (using php and smarty) to try and avoid a form resubmitting when I hit f5: ``` if ($this->bln_added == false) { if (isset($_POST['submit'])) { $this->obj_site->obj_smarty->assign('title', $_POST['tas_heading']); $this->obj_site->obj_smarty->assign('desc', $_POST...
[ 0.24389491975307465, 0.16700392961502075, 0.7124510407447815, -0.20458026230335236, -0.0043807681649923325, 0.01625150255858898, 0.38042908906936646, -0.49182844161987305, 0.12092308700084686, -0.7968344688415527, -0.2753026485443115, 0.6106240153312683, -0.03824891149997711, 0.13913181424...
content there in case there is a user error and they need to change what they entered. If the form is submitted successfully it sets bln\_added = true, so the second bit of code should not only clear the form fields, but also empty $\_POST. But if I press f5 the post data is still there. Any ideas? Your method could ...
[ 0.5364525318145752, -0.026938624680042267, 0.842153787612915, 0.051789745688438416, -0.21432988345623016, -0.3378092050552368, 0.08296194672584534, -0.2159406840801239, -0.18461309373378754, -0.7527111768722534, -0.3364332616329193, 0.46521860361099243, -0.0589308999478817, 0.1597627252340...
Append a $\_GET parameter to the URL if you want to display a confirmation message. Hope this helps, Tom
[ 0.6173363327980042, 0.018969420343637466, 0.14972762763500214, 0.3523658812046051, 0.15045367181301117, -0.3175831437110901, 0.3595168888568878, 0.6448369026184082, -0.17623010277748108, -0.32145896553993225, -0.24788688123226166, 0.4070311188697815, -0.29285115003585815, 0.371315777301788...
We are building a service-oriented system where we have separated the application into several layers: 1. SOAP web services (e.g., BuildingService.asmx) 2. Business logic layer (e.g., BuildingXXX) 3. Data Access layer (e.g, BuildingProvider) 4. Types (e.g., Building) The SOAP web services simply instantiate an object...
[ 0.6228270530700684, 0.4103699028491974, 0.3868793249130249, 0.00125950260553509, -0.1409684121608734, -0.0906047523021698, 0.33280518651008606, -0.39217478036880493, -0.06584788858890533, -0.5723060369491577, -0.18972273170948029, 0.29456838965415955, -0.2421111911535263, 0.198269486427307...
naming convention for naming these business level entities? Personally, I would call your business logic layer services "BuildingService" then call the web services "BuildingWebService". Or you could always go with the generic "BuildingManager" as well for the service layer..
[ 0.6162919402122498, 0.37072333693504333, 0.09130968153476715, 0.22854965925216675, -0.16164204478263855, -0.2597281336784363, 0.283001571893692, 0.01068680640310049, -0.3885462284088135, -0.4078046977519989, -0.13061803579330444, 0.28921785950660706, 0.13967031240463257, 0.6203939318656921...
I've now completed my first web application using ASP.NET MVC and overall, I still am not grasping why this is getting all the praise and glory. Maybe I'm being stubborn. I know that what makes MVC great is that is forces separation between the presentation layer and the business object or data layer along with its sta...
[ 0.48449450731277466, -0.000654122733976692, 0.3762170970439911, -0.2695882320404053, -0.24122931063175201, -0.22560805082321167, 0.1912483274936676, -0.09474025666713715, -0.4440746009349823, -0.650727391242981, -0.15062499046325684, 0.762416422367096, -0.24254906177520752, 0.0549074187874...
runat="server" /></h2> ``` **Web Forms Code Behind:** ``` //CODE BEHIND this.lblPageHeader.Text = myObject.Header; ``` **MVC Code View:** ``` //UI <h2><%= Html.Encode(Model.PageTitle) %></h2> ``` **MVC Controller Code:** ``` index = new Index { PageText = sb.ToString(), PageTitle = "WELCOME" }; return ...
[ 0.1815839409828186, -0.13680776953697205, 0.9024607539176941, -0.03767148777842522, -0.08150289207696915, -0.17314963042736053, 0.3512154221534729, -0.37924855947494507, -0.1481112539768219, -0.7913392782211304, -0.03190293908119202, 0.6141241788864136, -0.14690430462360382, 0.011701441369...
write: ``` <h2><%= Html.Encode(Model.Title) %></h2> ``` (it's possible with a help of typed views) instead of ``` <h2><%= Html.Encode((MyApp.MyObject)ViewData["PageObject"].Header) %></h2> ``` I think it's all about how you use it. If you're more happy with classic ASP.NET, than maybe it will be a better idea to...
[ 0.009956197813153267, -0.01191315334290266, 0.4397309422492981, 0.08154967427253723, -0.24962860345840454, -0.15913458168506622, 0.1978013664484024, -0.09698669612407684, -0.12141556292772293, -0.8664085865020752, -0.21472449600696564, 0.42118167877197266, -0.280585914850235, -0.1070334836...
I have into my main.py ``` from modules import controller ctrl = controller help(ctrl) print(ctrl.div(5,2)) ``` and the controllor.py is: ``` class controller: def div(self, x, y): return x // y ``` when I run my main I got the error: ``` Traceback (most recent call last): File "...\main.py", line...
[ -0.15653711557388306, -0.11441368609666824, 0.684005618095398, -0.01051483303308487, 0.21817778050899506, 0.026150980964303017, 0.06660527735948563, -0.2742083668708801, -0.22854496538639069, -0.36794233322143555, -0.2093641459941864, 0.6205768585205078, -0.3781859278678894, 0.313024431467...
I have read several of the post about Objective-C method syntax but I guess I don't understand multiple names for a method. I'm trying to create a method called `getBusStops` with `NSString` and `NSTimeInterval` parameters and a return type of `NSMutableArray`. This is how I have constructed the method but it obviousl...
[ -0.027256671339273453, -0.1715039312839508, 0.13835810124874115, 0.04823419451713562, -0.04216328635811806, -0.16636250913143158, 0.2213412970304489, 0.028166435658931732, -0.16595689952373505, -0.7034299373626709, 0.07056832313537598, 0.5524873733520508, -0.3812512159347534, 0.17032833397...
numberOfRowsInComponent:(NSInteger)component ``` I don't understand why this method has a method name for each parameter. Should I do the same with something like: ``` - (NSMutableArray *)getBusStops:(NSString *)busStop forTime:(NSTimeInterval *)timeInterval ``` Objective-C doesn't have name...
[ -0.29849472641944885, -0.25528210401535034, 0.2228235900402069, 0.06430792063474655, 0.012704689987003803, 0.105765700340271, 0.1344936192035675, -0.15018697082996368, -0.21185673773288727, -0.49260231852531433, 0.10527179390192032, 0.3700672686100006, -0.3498471677303314, 0.24752174317836...
your method ``` getBusStops: : ``` but that doesn't tell you much about the second parameter.
[ 0.032718244940042496, 0.019737064838409424, 0.20884308218955994, 0.1939106285572052, -0.046690188348293304, -0.14764314889907837, 0.14267216622829437, -0.18959829211235046, 0.014826660975813866, -0.4816477596759796, -0.0066915410570800304, 0.44513139128685, -0.20338663458824158, 0.07167473...
Is there a way to force a browser window to always be on top and in focus? I am working on a project that I need to have the browser window on top and in focus all the time except when closing the browser window. I have tried a few things through javascript, but have not had any success keeping the window in focus. I...
[ 0.5770730972290039, -0.19624823331832886, 0.0922800824046135, -0.06181001663208008, -0.3435264825820923, -0.13803482055664062, 0.33084121346473694, 0.3539049029350281, -0.14295336604118347, -0.5516069531440735, 0.20941495895385742, 0.6285383701324463, -0.2786409258842468, 0.053469642996788...
look up answers on the web. You will need to install a windows application on the clients machine which will force the browser to be on top. This is the only way. If you are using IE, you can open a Modal dialog which will always be on top and in focus but only while in that browser session, the user is free to switch...
[ 0.35050877928733826, 0.09784575551748276, 0.4337770342826843, 0.4429435133934021, -0.10078761726617813, 0.022070545703172684, 0.3960137367248535, 0.21197308599948883, -0.3434257507324219, -0.9009058475494385, -0.10065162926912308, 0.30506405234336853, -0.25439321994781494, -0.0178273487836...
two machines side by side? What if they have their buddy next to them helping with the answers. You are going to have to go with the honor system on this one.
[ 0.3916228413581848, -0.2855161428451538, -0.17336446046829224, 0.6599516868591309, 0.5299600958824158, -0.16824762523174286, -0.22318001091480255, -0.00888791773468256, -0.49134066700935364, -0.5284345149993896, 0.40941888093948364, 0.7866771221160889, -0.2097167819738388, -0.0429352447390...
I am looking for reporting solution for ASP.NET MVC. I need: * parameters support render to HTML * export to Excel * free / reasonably priced Any suggestion? There is an ongoing discussion about people [using ActiveReports in ASP.NET MVC on stack overflow](https://stackoverflow.com/questions/668328/how-to-render-act...
[ 0.08213336765766144, -0.08293949067592621, 0.4095751643180847, -0.020964207127690315, -0.30352863669395447, -0.07892965525388718, 0.19877253472805023, 0.10566471517086029, -0.1920444667339325, -0.7486596703529358, 0.03482769802212715, 0.6213037371635437, -0.3052995800971985, -0.20697519183...
I'm using Python 3.0. How to expand an environment variable given the %var\_name% syntax? Any help is much appreciated! Thanks! It's in a slightly unexpected place: [os.path.expandvars()](http://docs.python.org/3.0/library/os.path.html#os.path.expanduser). Admittedly it is quite often used for processing paths: ```...
[ -0.3793525993824005, -0.03468123450875282, 0.46556416153907776, -0.216814324259758, 0.050778597593307495, 0.02202499285340309, 0.11033500730991364, 0.13818535208702087, -0.14185070991516113, -0.7814911007881165, 0.09720111638307571, 0.6406459808349609, -0.284621000289917, 0.121762961149215...
I have an Apache Ant build file with a `<javac>` command that requires four specific JARs to be on the build `classpath`. I've tried to do this: ``` <project basedir=".." default="build_to_jar" name="Transnet Spectrum Analyzer"> <property environment="env"/> <property name="src" value="src"/> <property nam...
[ 0.3129692077636719, 0.3236701190471649, 0.20451004803180695, -0.3315593898296356, -0.23454715311527252, 0.07665228098630905, 0.5265156626701355, -0.5589415431022644, -0.03304998204112053, -0.8271044492721558, 0.48694559931755066, 0.1936921626329422, -0.17556753754615784, 0.0874940529465675...
<include name="${libsrc}/JCommon/jcommon-1.0.15.jar" /> <include name="${libsrc}/JFreeChart/jfreechart-1.0.12.jar" /> </fileset> <target name="compile" depends="clean,init" description="compile the source " > <echo>Compile from ${src} to ${build}</echo> <javac destdir="${build}" sourc...
[ 0.4069467782974243, -0.19662800431251526, 0.06815949827432632, -0.1674402356147766, -0.0839167907834053, 0.08281482011079788, 0.5213266015052795, -0.8155245184898376, -0.15870434045791626, -0.5637108683586121, -0.13722001016139984, 0.4439389407634735, -0.37511542439460754, -0.1373517662286...
</javac> </target> <!-- blah blah blah --> </project> ``` …but none of the files specified in `TSA.classpath` appear to show up. How do I include these files in my classpath? Here's an example from a project I am currently working on. I suspect you can modify it to work for your situation. ``` <path id="mas...
[ -0.08693230897188187, 0.20034131407737732, 0.3690817356109619, -0.31546083092689514, -0.015900783240795135, 0.09794296324253082, 0.0778747946023941, -0.5170151591300964, -0.31124767661094666, -0.9857725501060486, -0.0827769935131073, 0.3047795295715332, -0.3094925582408905, -0.002712095389...