text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Looking for a nifty helper function/method for grepping through all defined tables, columns, stored procedures, etc, for a MySql database. I had something similar for SQL Server. In the INFORMATION\_SCHEMA database: ``` select * from columns WHERE TABLE_NAME LIKE '%tablename%' AND COLUMN_NAME LIKE '%columnname%' ```...
[ -0.063819020986557, -0.09965246915817261, 0.19118593633174896, 0.3255041837692261, 0.03946923464536667, -0.1340806782245636, 0.02021178975701332, 0.16151706874370575, -0.1849009245634079, -0.6250127553939819, 0.19382412731647491, 0.3778020739555359, -0.273358553647995, 0.2896539866924286, ...
I'm porting a c++ app to c# that uses IOCP on it's server. Can mono handle IOCP as well as windows? will i get comparable performance to c++ or i should try something else? thanks Do you target mono for windows? If it is linux then there is a different async i/o model, not completion ports. I assume mono developers d...
[ 0.5460320115089417, 0.06384173780679703, -0.17874932289123535, 0.14335519075393677, -0.43021360039711, -0.246167853474617, 0.06427624076604843, -0.3025364577770233, -0.3404032289981842, -0.5749370455741882, -0.05360587313771248, 0.42734289169311523, -0.34673795104026794, -0.125495821237564...
We are working on a hiring application and need the ability to easily parse resumes. Before trying to build one, was wondering what resume parsing tools are available out there and what is the best one, in your opinion? We need to be able to parse both Word and TXT files. I suggest looking at some AI tools. Three that ...
[ 0.7406611442565918, 0.009743999689817429, 0.3849935531616211, 0.2439730316400528, 0.3250707983970642, 0.1317577213048935, -0.03169316425919533, -0.07517954707145691, -0.13224348425865173, -0.626559853553772, 0.37021398544311523, 0.9129557609558105, 0.4000246226787567, -0.21245503425598145,...
I'm a contract recruiter and have used both Sovren's and Hireability's parsers in different ATS's. From my view I thought Hireability did a better job, with Sovren it seemed like I was always fixing errors. And when there was a goof with Hire's I gave it to my ATS vendor and it seemed like it was fixed pretty quickly. ...
[ 0.48954951763153076, 0.4041728973388672, -0.18584688007831573, -0.011507706716656685, -0.2938055098056793, 0.5251404643058777, 0.22931426763534546, 0.3677508533000946, -0.2915947139263153, -0.3838237524032593, 0.3302795886993408, 0.7506809830665588, 0.03440183773636818, -0.4433704018592834...
I have a very very simple SQL string that MS Access doesn't seem to like. > Select Top 5 \* From news\_table Order By news\_date This is returning ALL rows from the news\_table not just the Top 5. I thought this was a simple SQL statement, apparently it is not. Any fixes or idea as to why this is not working? Thank...
[ -0.02776258997619152, 0.12315235286951065, 0.5122542381286621, 0.173412024974823, -0.0662330612540245, 0.12968116998672485, 0.2015347182750702, 0.22612999379634857, -0.3414018154144287, -0.6251773834228516, 0.0007404568023048341, 0.6722832918167114, -0.16123627126216888, 0.2870447039604187...
rank the table first and get the top 5 dates. It could have been to get the first 5 records and then rank them. I can't reproduce your problem in my version of Access. Weird.
[ 0.29963362216949463, 0.050282638520002365, 0.3004814386367798, 0.4239106774330139, 0.2252877652645111, 0.06555487960577011, -0.07718902826309204, 0.6554068922996521, -0.6248469948768616, -0.23901888728141785, 0.5876426100730896, 0.23068355023860931, 0.1169966384768486, 0.4929797053337097, ...
I need to create a trace route as part of a .NET appliation to support trouble shooting. I have figured out how to use the .NET Ping class to do the tracing. What I do not understand is what the numbers reported by the command line utility are. This is somewhat censored results of a "tracert yahoo.com" from the Windows...
[ 0.3412856161594391, -0.06488946080207825, 0.6140613555908203, 0.11214163899421692, 0.29735854268074036, -0.32562583684921265, 0.5531945824623108, -0.12118729948997498, -0.15629349648952484, -0.5315383076667786, 0.3011440634727478, 0.3886626958847046, -0.3547649383544922, -0.217322528362274...
<1 ms <1 ms yy.yy.yy.yy 3 42 ms 37 ms 41 ms zz.zz.zz.zz 4 38 ms 37 ms 37 ms aa.aa.aa.aa 5 36 ms 36 ms 36 ms bb.bb.bb.bb 6 42 ms 41 ms 41 ms cc.cc.cc.cc --- more lines deleted --- ``` The first
[ -0.1889212727546692, 0.1843917816877365, 0.3302066922187805, 0.2089725136756897, -0.26365941762924194, 0.6831621527671814, 0.4660341143608093, -0.09055282175540924, -0.35298070311546326, -0.5218539237976074, 0.04084823280572891, 0.290067195892334, -0.46823009848594666, 0.29256463050842285,...
column is the index and the next three columns are times in milliseconds. I have searched the web for an explanation and have come up dry. I thought that they might be min, average, and max numbers but line 2 would seem to counter that idea. Jon Stonecash Tracert sends sets of pings to the destination. The first set ...
[ 0.11520233750343323, 0.052596841007471085, 0.6330846548080444, 0.12886884808540344, 0.11004714667797089, 0.2613290846347809, 0.21411804854869843, 0.1702156513929367, 0.03944912180304527, -0.5269681811332703, 0.160245880484581, 0.004830783698707819, -0.4195362329483032, -0.02924898453056812...
program then increments the TTL and sends another set of pings to retrieve the next router's information. This process is repeated until the end point is reached. The first column is the number of hops to the destination (maximum of 30). The next three columns are the amounts of time to receive the responses. The rig...
[ 0.054692842066287994, -0.3433755934238434, 0.9035014510154724, 0.27895957231521606, 0.055256061255931854, 0.22488823533058167, 0.21594376862049103, -0.27745571732521057, -0.0775093287229538, -0.4385857582092285, -0.12288748472929001, 0.37844061851501465, -0.079812191426754, -0.345265984535...
I am stuck! this seems really daft but I can not see where I am going wrong. I am creating a 2.0 C# ASP.NET website. I am trying to use a custom section in the web.config file with: ``` DatabaseFactorySectionHandler sectionHandler = ConfigurationManager.GetSection("DatabaseFactoryConfiguration") as DatabaseFactorySect...
[ 0.29696545004844666, 0.318851113319397, 0.3285564184188843, -0.226400226354599, -0.08245762437582016, -0.17013297975063324, 0.6978411078453064, -0.03179948776960373, -0.3130020797252655, -0.7091962695121765, 0.03962216526269913, 0.15348444879055023, -0.28299012780189514, 0.5864792466163635...
(C:\\Documents and Settings\\Administrator.PIP\\My Documents\\Visual Studio 2005\\WebSites\\bailey\\web.config line 13)" Source="System.Configuration" ``` The class that I am trying to get is as follows: ``` namespace Bailey.DataLayer { public sealed class DatabaseFactorySectionHandler : ConfigurationSection ...
[ 0.003611608874052763, 0.19508309662342072, 0.5765466094017029, -0.06577388197183609, 0.25754398107528687, -0.014533000066876411, 0.0768277645111084, -0.3078070878982544, -0.2954435646533966, -0.7661452889442444, 0.014578986912965775, 0.25033265352249146, -0.3033880591392517, 0.675013780593...
{ get { return (string)base["ConnectionStringName"]; } } public string ConnectionString { get { try
[ -0.25791269540786743, -0.34587374329566956, 0.05254153162240982, 0.07821650058031082, 0.29161781072616577, -0.003154260804876685, 0.09171155095100403, -0.05541980639100075, 0.020369170233607292, -0.5179970860481262, -0.3151134252548218, 0.2380184382200241, -0.2701004445552826, 0.1821461766...
{ return ConfigurationManager.ConnectionStrings[ConnectionStringName].ConnectionString; } catch (Exception excep) { throw new Exception("Connection string
[ -0.12085144966840744, -0.48108017444610596, -0.09555652737617493, -0.07812929898500443, 0.2625720500946045, -0.07415056228637695, 0.21252912282943726, -0.28645461797714233, -0.41053009033203125, -0.4852340817451477, -0.26481786370277405, 0.3760504126548767, -0.4122917652130127, 0.282549738...
" + ConnectionStringName + " was not found in web.config. " + excep.Message);
[ -0.20303024351596832, -0.29841750860214233, 0.5347284078598022, -0.023085633292794228, 0.09663920849561691, -0.09576750546693802, 0.2351953238248825, -0.11711154878139496, -0.2335263043642044, -0.5622968077659607, -0.31279730796813965, 0.0618506595492363, -0.5029410123825073, 0.16023401916...
} } } } } ``` The web config file has this section: ``` <configSections> <section name="DatabaseFactoryConfiguration" type="Bailey.DataLayer.DatabaseFactorySectionHandler, Bailey.DataLayer" /> </configSections> ``` I have done this in a console app without a problem but can no...
[ -0.05460795760154724, 0.46836626529693604, 0.2244405895471573, -0.19684457778930664, 0.06742485612630844, 0.05683311074972153, 0.47170090675354004, -0.3355947434902191, -0.15436837077140808, -0.7728476524353027, 0.11654957383871078, 0.48417168855667114, -0.4078104794025421, 0.1350338310003...
in the test.aspx.cs page. I have the following using statement at the top of the test.aspx.cs page: ``` using Bailey.DataLayer; ``` Here is the whole web.config file so there is no confusion: ``` <configuration> <configSections> <section name="DatabaseFactoryConfiguration" type="Bailey.DataLayer.DatabaseF...
[ 0.056587908416986465, 0.17849600315093994, 0.20093879103660583, 0.12779685854911804, -0.002448559273034334, -0.1431233137845993, 0.5537420511245728, -0.7916072607040405, -0.11913396418094635, -0.7364048957824707, -0.09561388194561005, 0.28835394978523254, 0.0030497433617711067, 0.213879853...
<authentication mode="Windows"/> </system.web> </configuration> ``` Either you're using the wrong name (i.e. it's not called Bailey.DataLayer.dll), or it's not being copied to the bin directory on build. This last one doesn't seem likely however. (See my comments on the question for clarification).
[ 0.46612051129341125, 0.07071418315172195, 0.36243414878845215, 0.004271265584975481, 0.0447530522942543, -0.5713565349578857, 0.6383937001228333, -0.45160889625549316, -0.1681799292564392, -0.510863721370697, -0.09238580614328384, 0.27120932936668396, -0.18146120011806488, 0.33181902766227...
We're planning to move a SQL 2000 database to SQL 2005, and I am familiar with the ability in 2005 to create tables or other objects under a variety of owner/schemas. We didn't really have that ability in SQL 2000, so I'm wondering what my guidelines/best practices would be for creating/managing multiple schemas. Sho...
[ 0.057957813143730164, 0.0811714380979538, 0.465060293674469, 0.0710105299949646, -0.14903070032596588, -0.25755852460861206, -0.23980650305747986, -0.2583954930305481, -0.20387974381446838, -0.7983577847480774, 0.12035153806209564, 0.48800423741340637, -0.20756331086158752, 0.1929423063993...
the database. The procedures don't reference anything outside the utils schema. Then I'll have a scratch/work/temp schema where I can do SELECT INTO and create tables where I want a real table instead of a temp #table. There are basically just tables here, but possible also some views on the tables. I have a complete...
[ 0.618747353553772, 0.021266426891088486, -0.016718724742531776, 0.425484299659729, 0.07814998924732208, -0.11858183145523071, -0.09715831279754639, -0.11859486252069473, -0.012210601009428501, -0.46893903613090515, 0.13839182257652283, 0.7676278948783875, -0.1735503375530243, 0.05745439603...
few schemas - or maybe just one. In a large system, each subsystem might be a schema. Code in these can reference other schemas, but should be pretty carefully looked at any time it references anything outside the schema.
[ 0.34152910113334656, 0.10405302792787552, -0.053874075412750244, 0.4825744926929474, -0.011598452925682068, -0.2502230405807495, 0.282100111246109, 0.01828950084745884, -0.21861179172992706, -0.712950587272644, -0.43939775228500366, -0.05444493889808655, -0.23732055723667145, -0.0117594040...
Can SQL Server 2000 be used as the database for LINQ to SQL? Does LINQ to SQL rely on a specific version of Microsoft SQL Server? Yes, LINQ to SQL works with SQL Sever 2000 with one exception: you do need the ROW\_NUMBER() function, available only in SQL Server 2005/2008, to support efficient server-side paging. Witho...
[ -0.419247031211853, 0.23051540553569794, 0.3401012122631073, 0.08532366156578064, -0.13467776775360107, -0.06806871294975281, -0.11985534429550171, -0.23392890393733978, -0.2833090126514435, -0.12141314893960953, 0.20153775811195374, 0.3944728374481201, -0.32989147305488586, -0.13345183432...
I'm helping a colleague develop a "catch all" type error handler for some controls his application. What he wants to do is pass the object that has the error, and the type of that object, such a TextBox or ComboBox, and then call the DirectCast method within his handler to properly address the Text attribute within it....
[ 0.3329393267631531, 0.02682371623814106, 0.15019048750400543, -0.17905427515506744, -0.13556164503097534, -0.20158711075782776, 0.33154353499412537, -0.06556809693574905, 0.10147637128829956, -0.39601433277130127, -0.2059866189956665, 0.428846538066864, -0.5825070738792419, -0.025590615347...
object in the general signature) or to even pass in the a Type object properly set is not working. Any ideas here, or is this one of those "Casting doesn't work that way." type scenarios? `DirectCast()` needs a real type at compile time, so it knows what the result of the call looks like. The best you can hope for her...
[ 0.2800821363925934, -0.3297576606273651, 0.34708335995674133, 0.15305063128471375, -0.13428400456905365, -0.24814563989639282, 0.2926701307296753, -0.05420662835240364, 0.02840949408710003, -0.520047664642334, -0.03198133409023285, 0.42558541893959045, -0.4235008656978607, -0.1323148757219...
I want to get a list of result sets and columns that i can expect from a SP. I have been able to get at the parameters, script... but i don't know where to get at the result sets and column names. ``` using Microsoft.SqlServer.Management.Smo; using (SqlConnection conn = new SqlConnection(ConfigurationManager.Connecti...
[ -0.022151270881295204, 0.19134096801280975, 0.8150106072425842, -0.016038935631513596, 0.005182925146073103, -0.10955119878053665, 0.2604612410068512, -0.21530592441558838, -0.4822160303592682, -0.8390448689460754, -0.24743199348449707, 0.37330248951911926, -0.4261319637298584, 0.559005677...
foreach (StoredProcedure sp in db.StoredProcedures) { string[] columns = sp.?????? } } ``` Is there a way to get at the columns? I'm ultimately trying to write a code generator to automate my writing data access objects. Thanks SO! EDIT: "Another solution is if you ca...
[ -0.08225364238023758, 0.1830570101737976, 0.5452948212623596, -0.09162968397140503, 0.010785768739879131, 0.1953345686197281, 0.4946014881134033, -0.26296716928482056, -0.24511238932609558, -0.5212072730064392, -0.07631485909223557, 0.5122366547584534, -0.40863561630249023, -0.210294842720...
the value of ScalarResult, you may be able to convert it into something useful that you can derive the columns from." : Any ideas how to get at that? That is a known difficult area. Some systems try this by executing the stored procedure with `SET FMTONLY ON` enabled, but that has a range of problems (i.e. it will stil...
[ 0.3832213878631592, -0.3396495580673218, 0.48130300641059875, 0.17011386156082153, 0.3667895197868347, -0.08471070975065231, 0.24896612763404846, -0.32605674862861633, -0.5255143046379089, -0.33871954679489136, -0.03168134763836861, 0.7867193818092346, -0.3925635516643524, -0.1188901364803...
the `SET FMTONLY ON` trick - but at least understand the possible impact. For queries, in some ways table-valued-functions (UDFs) can be more practical, since the schema is formalised.
[ -0.07119444012641907, -0.04690978303551674, 0.3723490238189697, 0.11843305826187134, -0.14606402814388275, -0.37782052159309387, 0.05706802010536194, -0.41566479206085205, -0.22485607862472534, -0.3866577446460724, -0.6027961373329163, 0.7689297199249268, -0.3734898865222931, 0.00205758889...
Before I tear what is left of my hair out I have been trying to modify some master pages in SharePoint Designer and whenever I make HTML markup changes it reformats them as it see's fit. For example, I am trying to make the code readable so I am moving items to their own lines and such. As soon as I save it moves every...
[ 0.6692795157432556, -0.058572109788656235, 0.46564367413520813, 0.030079204589128494, -0.22849342226982117, 0.12409059703350067, 0.2230626344680786, -0.07680514454841614, -0.49703678488731384, -0.5402615666389465, 0.22882632911205292, 0.13187256455421448, -0.232069194316864, 0.426992565393...
is. Does anyone know how to disable this automatic reformatting of HTML in SharePoint Designer? My alternative would be to use VS2008 but when attempting to load the SharePoint web site I recieve an error that Visual Web Developer cannot open SharePoint sites. So apparently that is a no go. Is there any alternative to...
[ 0.2745828628540039, -0.30839917063713074, 0.17413705587387085, 0.17630434036254883, -0.10864530503749847, -0.23042336106300354, 0.2869607210159302, -0.10036006569862366, -0.22188633680343628, -0.8263230323791504, -0.09644158184528351, 0.588395893573761, -0.42658233642578125, 0.141460776329...
solution just to do so. While it takes longer, I author all my HTML in Visual Studio, and paste into SharePoint Designer if I need to. I NEVER paste from SharePoint Designer back into Visual Studio, since the tool tends to butcher the HTML and add to it just so it can open it. Having said that, it's important to un...
[ -0.034822192043066025, -0.042769722640514374, 0.32423004508018494, 0.05682561174035072, 0.12296553701162338, 0.20457452535629272, 0.3228086233139038, -0.1423494964838028, -0.34321075677871704, -1.0737943649291992, 0.0032167660538107157, 0.23601661622524261, -0.3607218563556671, -0.04164526...
unghosting/customizing them. This means that the file now lives in the content database instead of on disk. This might affect the performance of your website. Also remember that SharePoint Designer doesn't understand server side code. So if you have a Page Layout that has a code behind, editing it in SharePoint Desig...
[ 0.24709190428256989, -0.09501084685325623, 0.3391643464565277, 0.10085953027009964, -0.0517064593732357, -0.2769302427768707, 0.40756574273109436, 0.1652694046497345, -0.41573140025138855, -0.6225584745407104, -0.07194649428129196, 0.45684051513671875, -0.3507392704486847, 0.48591512441635...
What I want to do is: ``` bool Convert( out Object output, Object source) { // find type of output. // convert source to that type if possible // store result in output. return success } ``` Is it possible? Obviously, there is a brute force massive "if" construct that could work, but that would requi...
[ 0.3713657557964325, 0.2871946692466736, -0.00019820043235085905, -0.210079625248909, -0.08360344916582108, -0.10141141712665558, 0.017156722024083138, -0.3222367465496063, -0.011161643080413342, -0.679412305355072, 0.09562753140926361, 0.601865291595459, -0.23798365890979767, 0.01483037229...
the Convert.IsDBNull() method, which will save me a lot of ``` if ( !databasefield.GetType().Equals( DBNull.Value ) ) ``` Why in the name of G-d is it in Convert? Why not DBNull.IsDBNull() ? There is no holy grail of conversion. For m types you would need m\*(m-1) conversion routines to cover all the permutations....
[ 0.08239763975143433, 0.1353510469198227, 0.2804342210292816, -0.22619417309761047, -0.11215853691101074, -0.00401854794472456, 0.2988511621952057, -0.4037849009037018, 0.12036119401454926, -0.6753188967704773, -0.024068161845207214, 0.7298856377601624, -0.6466237306594849, 0.05024500191211...
What are the most significant events that impacted desktop software development? I'm trying to come up with a good timeline but I know I'm missing a bunch of important events: 1. Introduction of the personal computer (lates 70s?) 2. Release of VisiCalc (1980) 3. WordPerfect 4.2 in 1986 4. Windows 3.1 (1992) 5. Visual ...
[ -0.3636220097541809, -0.07628004997968674, 0.44248855113983154, 0.05612103268504143, -0.05636751651763916, 0.13100598752498627, 0.21542271971702576, 0.2966959774494171, -0.49939876794815063, -0.5150312185287476, 0.05163341388106346, 0.692682683467865, -0.06745679676532745, 0.15086022019386...
Related to: * [Testing firmware](https://stackoverflow.com/questions/451984/testing-firmware) * [starting a microcontroller simulator/emulator](https://stackoverflow.com/questions/448513/starting-a-microcontroller-simulator-emulator) * [Interpreting assembly code](https://stackoverflow.com/questions/448580/interpretin...
[ 0.8343958854675293, 0.11362042278051376, 0.11660486459732056, 0.06204048916697502, -0.05604119971394539, -0.007810376118868589, -0.1538422852754593, -0.2912592887878418, -0.1423863023519516, -0.4297889471054077, -0.012600734829902649, 0.5945184826850891, -0.12601909041404724, -0.0528952963...
chances of making a mistake 2) My preference would be C++ rather than C for its namespace encapsulation & its facilitation of *compile-time* object-oriented practices. C has too many opportunities for global variables and namespace collisions. (Real-time Java would be nice but from what I understand its requirements a...
[ -0.0961671695113182, 0.1376238614320755, -0.15257900953292847, 0.028392337262630463, -0.0923452377319336, -0.021720517426729202, 0.0710776075720787, -0.21424265205860138, -0.06526942551136017, -0.8105517029762268, -0.0013831433607265353, 0.5548165440559387, -0.33737924695014954, -0.2086940...
TI's and IAR's compilers for C++, for the TMS320 and MSP430 microcontrollers (respectively) and with proper optimization settings, they do a fantastic job of reducing the overhead you might expect from C++. (Especially if you help it out by judicious use of the `inline` keyword) I have even used templates for some of...
[ 0.4968889057636261, 0.14756976068019867, -0.3189730942249298, 0.09624359011650085, -0.25816720724105835, -0.17655697464942932, 0.08065151423215866, -0.1735140085220337, 0.03878350555896759, -0.7195922136306763, -0.019591588526964188, 0.4850817322731018, -0.5492293238639832, 0.0553992167115...
the TI compiler had an extremely low overhead with appropriate optimization settings. I have been looking for a C++ compiler for the Microchip PICs; the only company I've found that produces one is IAR. ($$$ has been an obstacle but I hope to buy a copy sometime) The Microchip C18/C30 compilers are pretty good but the...
[ 0.36513248085975647, 0.1766488403081894, -0.17936909198760986, 0.03638463094830513, -0.1356019675731659, -0.22202450037002563, 0.1829671561717987, 0.05817244574427605, 0.23419484496116638, -0.718906819820404, 0.259332537651062, 0.7419289946556091, -0.31203359365463257, -0.05511920154094696...
(A good debugger would warn you that a particular variable has been optimized out of existence or into a register rather than a memory location. Many debuggers do not. >:( Also a good compiler would let you pick/choose optimization at the function level through #pragmas. The ones I've used only let you specify optimi...
[ 0.1978258341550827, 0.2550037205219269, -0.18110480904579163, -0.10510743409395218, 0.06433124095201492, -0.11829084157943726, 0.248666912317276, -0.29974716901779175, -0.08486311882734299, -0.5500066876411438, -0.28898030519485474, 0.8364527225494385, -0.4382515549659729, -0.1374472081661...
# of bits explicit. Then compile it and edit the assembly it produces (just make sure to leave the begin/exit parts of the code) and **be careful** not to clobber any registers without restoring them after you are done. Inline assembly usually can have problems unless you are doing something *very* simple like enablin...
[ 0.43951934576034546, 0.15773728489875793, 0.23337647318840027, -0.005976188462227583, -0.47559425234794617, 0.14791075885295868, 0.17615729570388794, -0.2759588062763214, -0.07502062618732452, -0.4805048704147339, -0.055963922291994095, 0.6041023135185242, -0.5016789436340332, -0.207109689...
registers/variables you are referencing and it will handle all the saving/restoring of registers to make sure your assembly code "plays nice" with C. TI's compiler for the TMS320 DSP doesn't support these; it does have a limited set of intrinsics which have some use. I've used assembly to optimize some control loop co...
[ 0.19853992760181427, 0.1782553642988205, -0.18395958840847015, 0.04033764824271202, -0.20022794604301453, 0.006599493324756622, 0.3005371391773224, -0.0664675161242485, 0.07224807143211365, -0.3424288034439087, 0.0944153368473053, 0.5950916409492493, -0.3482881486415863, -0.266360491514205...
In the near future, I may be teaching a Ruby programming class to undergraduates at an art college. It's a safe assumption that the students have little to no experience with programming. The class will be taught in a computer lab, but they don't have any administrative rights on the lab computers. Ideally, I'd like ...
[ 0.5604627132415771, 0.3242233097553253, -0.1069391667842865, 0.4276084005832672, 0.19275955855846405, -0.3644998073577881, 0.5825312733650208, 0.12879550457000732, -0.07543610036373138, -0.655564546585083, 0.09096203744411469, 0.7629443407058716, 0.05524645745754242, -0.1664271354675293, ...
know how to set up Ruby anyway). And even better is if they could run Ruby on Rails and/or install gems using the Ruby installation on the Flash drive. Is this entirely unrealistic or is there a straightforward way to do this? These will be non-programmer, art students, so the less setup on their end, the better. Ed...
[ 0.7311667799949646, 0.0637408122420311, 0.057725805789232254, 0.44877827167510986, 0.1279178112745285, -0.20636270940303802, 0.5410288572311401, 0.02621261030435562, -0.16218526661396027, -0.4533938765525818, 0.12236947566270828, 0.762907862663269, 0.07358004152774811, -0.21466515958309174...
and allows them to run Ruby scripts and maybe even install gems. To start, you will need two copies of Ruby on your USB drive: one for Windows and one for Mac OS X. You will then need to create a script in each to add Ruby to the path and open a terminal. I would structure it like this: * ruby + windows - bin, li...
[ 0.1772790104150772, 0.027968058362603188, 0.4707951247692108, -0.02547888457775116, -0.30287447571754456, -0.043226566165685654, 0.28848859667778015, -0.3339889943599701, -0.031159598380327225, -0.9036298394203186, 0.0599716454744339, 0.7785757184028625, -0.23362962901592255, -0.0014220032...
instead of starting a terminal up normally, use the shortcuts and Ruby will run from the USB drive.
[ 0.10880832374095917, -0.2733295261859894, 0.24120917916297913, 0.09161794185638428, 0.036445654928684235, 0.04913930222392082, 0.3853495121002197, 0.28203698992729187, -0.10270668566226959, -0.5806002020835876, 0.06471867114305496, 0.5214735269546509, -0.24494849145412445, 0.20320716500282...
I am trying to build an SQL Statement for the following search scenario: I have trying to return all of the columns for an individual record for Table A based on the value of the status column in Table B. Each record in table A can have multiple rows in table B, making it a one to many relationship. The status column ...
[ 0.2785034477710724, 0.018324173986911774, 0.45933377742767334, 0.061671752482652664, 0.046345703303813934, 0.18436521291732788, 0.2322220355272293, -0.15021702647209167, -0.33795061707496643, -0.37957778573036194, 0.1401575803756714, 0.4137781858444214, -0.12913958728313446, 0.537125229835...
the following scenarios: * Approved - All table B records must have a value of 1 or 6 for status. * Denied - One table B record must have a value of 2 or 5. Any other records can have 1,6, or null. * Pending - All table B records can have a value of 1,6 or null. One record must be null because it is not considered com...
[ 0.38617029786109924, 0.029560750350356102, 0.43373093008995056, 0.1935342699289322, 0.34557050466537476, -0.19154001772403717, 0.052242714911699295, -0.4161970615386963, -0.2756101191043854, -0.16101819276809692, -0.2969712018966675, 0.3750236928462982, -0.19503983855247498, 0.490138351917...
IN (SELECT id from TableB WHERE status IS NULL) AND b.id NOT IN (SELECT id from TableB WHERE status in (2,7)) ``` Denied: ``` SELECT a.* FROM TableA a INNER JOIN TableB ON b.id = a.id WHERE (b.status in (2,7)) ``` Pending: ``` SELECT a.* FROM TableA a INNER JOIN TableB ON b.id = a.id WHERE (b.status IN (1,6) OR ...
[ -0.2178449183702469, -0.03332357481122017, 0.3280910849571228, -0.062080562114715576, 0.29849445819854736, 0.1678152084350586, -0.06054425612092018, -0.3855043649673462, -0.449138879776001, -0.43934085965156555, -0.565330982208252, 0.5247340798377991, -0.1521504670381546, 0.172281816601753...
@Micth Wheat - How would I refactor the following solution using the EXIST/NOT EXIST t-sql keyword? As an example for 'Approved': ``` select * from A where (select count(*) from B where B.parent_id = A.id and B.status in (1,6)) > 0 and (select count(*) from B where B.parent_id = A.id and B.status not i...
[ 0.29141753911972046, 0.1706801801919937, 0.4238344430923462, 0.1336754560470581, -0.13536816835403442, 0.09225280582904816, 0.502694308757782, -0.21307514607906342, 0.331722617149353, -0.538968563079834, 0.21773970127105713, 0.3613009750843048, -0.04621202126145363, 0.47874996066093445, ...
not exists (select * from B where B.parent_id = A.id and B.status not in (1,6)) ``` If you have passed in a criteria, you can package it all up in one query like this, if it is more convenient: ``` select * from A where (@Criteria = 'Approved' and (select count(*) from B where B.parent_id = A.i...
[ 0.7406440377235413, 0.03836413845419884, 0.45900359749794006, 0.20889802277088165, 0.5195860266685486, -0.16243787109851837, 0.40894201397895813, -0.12960323691368103, -0.02212069369852543, -0.6142529845237732, -0.33495837450027466, -0.012195496819913387, -0.31694626808166504, 0.7003102898...
from B where B.parent_id = A.id and B.status in (2,7)) > 0 ) or (@Criteria = 'Pending' and (select count(*) from B where B.parent_id = A.id and B.status not in (2,7)) = 0 and (select count(*) from B where B.parent_id = A.id and B.status is null) > 0 ) ``` Note, I changed the Denied example to be values of 2 ...
[ 0.577096700668335, 0.05673709511756897, 0.11350581794977188, 0.10495643317699432, 0.03211109712719917, 0.26052796840667725, 0.2033529430627823, -0.5737411975860596, -0.2222118079662323, -0.2816486358642578, -0.07389216125011444, 0.25886791944503784, -0.23802843689918518, 0.4817621409893036...
does perform better in some cases (depends mostly on your volume of data whether the performance increase is noticeable - sometimes it can be a big difference). I personally find the subqueries more readable, so I start with them, and if better performance is needed, I would benchmark both methods, and if max(case ...)...
[ 0.34664008021354675, 0.032492876052856445, 0.15713997185230255, 0.06571989506483078, 0.12512391805648804, 0.1024356335401535, 0.12259560078382492, -0.21196192502975464, -0.028102412819862366, -0.5483595728874207, 0.1268514096736908, 0.7413223385810852, 0.26677030324935913, -0.3139895200729...
How do I create a CD that opens a "Drag this icon to the Application folder to install" on the Mac and autoruns an installer on Windows? I think the current right way to do this is by `pip` like Pramod comments ``` pip install beautifulsoup4 ``` because of last changes in Python, see discussion [here](https://stacko...
[ 0.24480462074279785, -0.10848691314458847, 0.23877771198749542, -0.08602508902549744, 0.06792878359556198, -0.3456557095050812, 0.10397029668092728, -0.011623351834714413, -0.4038936197757721, -0.6922407746315002, -0.032190002501010895, 0.5275943875312805, -0.18030697107315063, -0.16858875...
What makes Python stand out for use in web development? What are some examples of highly successful uses of Python on the web? [Django](http://www.djangoproject.com/) is, IMHO, one of the major benefits of using Python. Model your domain, code your classes, and voila, your ORM is done, and you can focus on the UI. Add ...
[ 0.3806712031364441, 0.19708390533924103, -0.22273403406143188, 0.10197323560714722, -0.38681560754776, -0.3635845482349396, 0.08063626289367676, 0.13588400185108185, -0.31241634488105774, -0.4377235472202301, 0.2074187844991684, 0.7251837253570557, -0.19530746340751648, -0.2529802620410919...
How is it possible to maintain widgets aspect ratio in Qt and what about centering the widget? You don't have to implement your own layout manager. You can do with inheriting `QWidget` and reimplementing ``` int QWidget::heightForWidth( int w ) { return w; } ``` to stay square. However, `heightForWidth()` doesn't wo...
[ -0.06716332584619522, -0.3376004993915558, 0.6128175854682922, 0.08777333050966263, -0.10252019762992859, -0.17393440008163452, -0.1397308111190796, -0.17842742800712585, 0.21365295350551605, -0.5838916301727295, 0.10634229332208633, 0.6105278730392456, -0.09438025206327438, 0.035940364003...
and therefore `setWidthForHeight(true)` or `setHeightForWidth(true)` [only have an effect for descendants of QGraphicsLayout](http://doc.qt.io/qt-5/qsizepolicy.html#setWidthForHeight).
[ 0.19710443913936615, 0.0028971803840249777, 0.6067076921463013, -0.17734584212303162, -0.0733417198061943, -0.31297722458839417, 0.3705783486366272, -0.03555909916758537, 0.07522980868816376, -0.28558114171028137, -0.46976128220558167, 0.5817646384239197, 0.04984582960605621, -0.1718722432...
What is the best way to determine if a component in Flex/Flash is showing on the user's screen? I'm looking for an analog to Java's [Component.isShowing()](http://web.archive.org/web/20100604045251/http://java.sun.com:80/j2se/1.4.2/docs/api/java/awt/Component.html) method. The `show` and `hide` events fire for visibil...
[ 0.3585558533668518, -0.2957499027252197, 0.22183269262313843, -0.09874525666236877, -0.24078749120235443, -0.12823423743247986, 0.143913134932518, -0.4027731120586395, -0.0386650376021862, -0.4564204216003418, 0.14523424208164215, 0.6446333527565002, -0.18953990936279297, -0.15450613200664...
this to be true. What you can do is walk up the display list checking for visible to be false on a parent. Basically "visible" gives false positives but shouldn't give false negatives. Here is a quick utility I put together: ``` package { import flash.display.DisplayObject; import mx.core.Application; pu...
[ 0.37460193037986755, -0.0781908929347992, 0.1624605804681778, -0.23220252990722656, -0.1210516020655632, -0.06345110386610031, 0.49734288454055786, -0.07498671114444733, -0.026478055864572525, -0.7203018069267273, -0.17339307069778442, 0.6167929172515869, -0.415802001953125, -0.05791328474...
return checkDisplayObjectVisible(obj); } private static function checkDisplayObjectVisible(obj : DisplayObject) : Boolean { if (!obj.parent.visible) return false; if (obj.parent != null && !(obj.parent is Application)) return checkDisplayObjectVisible(obj.parent)...
[ 0.08731502294540405, -0.2202378213405609, 0.35396185517311096, -0.2906428575515747, 0.022691510617733, 0.08005504310131073, 0.2903154790401459, -0.14124912023544312, 0.04993302747607231, -0.4987715184688568, -0.14056803286075592, 0.6351369023323059, -0.8230576515197754, -0.1369008719921112...
return true; } } } ``` I haven't done anything more than trivial tests on this but it should get you started.
[ 0.2057652771472931, 0.3170357942581177, 0.19241778552532196, 0.017649469897150993, 0.03283907100558281, -0.365969717502594, 0.4315474033355713, 0.27983275055885315, 0.4254957139492035, -0.5257548093795776, -0.03011525608599186, 0.6274970769882202, -0.048412881791591644, 0.1507050096988678,...
(NOTE: This question is not about escaping queries, it's about escaping results) I'm using [GROUP\_CONCAT](http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat) to combine multiple rows into a comma delimited list. For example, assume I have the two (example) tables: ``` CREATE TABLE I...
[ -0.14937585592269897, 0.2017022669315338, 0.5398212671279907, -0.10945545881986618, -0.05082668736577034, 0.5230304002761841, 0.08718661963939667, -0.5546749830245972, -0.26047182083129883, -0.4941067397594452, -0.36637184023857117, 0.249786376953125, -0.4629988968372345, -0.14601019024848...
NOT NULL auto_increment, `title` varchar(255) collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; INSERT INTO `Post` (`id`, `title`) VALUES (1, 'first post'), (2, 'second post'), (3, 'third post'), (4, 'fourth post'), (5, 'fifth post'),...
[ -0.02923852950334549, 0.20862457156181335, 0.6962942481040955, 0.09013496339321136, -0.05704497918486595, 0.6413094401359558, -0.0044478909112513065, -0.3534221053123474, -0.13962888717651367, -0.45939576625823975, -0.3134460151195526, 0.35074084997177124, -0.5170996189117432, 0.1012504994...
fourth post x 5 fifth post NULL 6 sixth post NULL ``` This works great, except that if a username contains a comma it will ruin the list of users. Does MySQL have a function that will let me escape these characters? (Please assume usernames can contain any characters, since this is only an example schema) I...
[ 0.21893104910850525, 0.05959621071815491, 0.4929686486721039, 0.17006586492061615, -0.13718456029891968, -0.01182189118117094, 0.52711021900177, -0.21562832593917847, -0.05921126902103424, -0.41131967306137085, -0.036763373762369156, 0.1526157706975937, -0.4225517511367798, 0.5707629323005...
doing that escape backslashes themselves: ``` group_concat(replace(replace(name, '\\', '\\\\'), '|', '\\|') SEPARATOR '|') ``` This will: 1. escape any backslashes with another backslash 2. escape the separator character with a backslash 3. concatenate the results with the separator character To get the unescaped ...
[ -0.11625944823026657, -0.07004181295633316, 0.3584544360637665, 0.04824964329600334, 0.12752696871757507, -0.09647562354803085, 0.6815862655639648, -0.49983087182044983, -0.13672856986522675, -0.21712861955165863, -0.4440191984176636, 0.4998098611831665, -0.7838162183761597, -0.09484563767...
with singe backslashes, e.g. replace \\ with \
[ -0.14592304825782776, -0.2507106065750122, -0.0002926567103713751, -0.32856932282447815, -0.15963326394557953, 0.05773629993200302, 0.5762608647346497, 0.010655462741851807, 0.07301650941371918, -0.41589078307151794, -0.6247829794883728, 0.46705934405326843, -0.5291122794151306, -0.2858262...
Okay, this may be a dumb question, but I've not been able to find any information on it. Are String.Empty and string.Empty the same? I always find myself gravitating towards using the upper case version (String.Empty) because I prefer the color and look of it in my IDE than the lower case version (string.Empty)... Is...
[ 0.39407581090927124, 0.043902743607759476, -0.26981619000434875, -0.024761082604527473, -0.20518405735492706, -0.03782880678772926, 0.1331844925880432, 0.5076104402542114, -0.290924608707428, -0.577110230922699, 0.15672720968723297, 0.2998542785644531, -0.1509275883436203, 0.36357563734054...
they must both exist for a reason". *Is* there a reason that anyone knows of? If so, what is it? Can anyone enlighten me? P.S. The "exact duplicates" only answer half of the question - "which is right?", not the "why do they both exist?" --- **Exact Duplicate**: [What is the difference between String and string in ...
[ 0.21151937544345856, 0.3741215467453003, -0.07569417357444763, 0.057817958295345306, 0.0005639577866531909, -0.24329780042171478, 0.005030416883528233, 0.1253790259361267, -0.31098124384880066, -0.2654869854450226, 0.06726045161485672, 0.4847044348716736, -0.31846168637275696, 0.2046820074...
So you're doing it wrong. ;-) As for a reason why they both exist, the .NET types exist because they are defined in a language-independent standard for the .NET libraries called CTS (common type system). Why C# defines these aliases is beyond me (VB does something quite similar). I guess the two reasons are 1. Habit....
[ 0.8534005284309387, 0.1650002896785736, -0.06793802976608276, 0.08220939338207245, -0.1760643571615219, -0.5127766728401184, 0.5283963680267334, 0.24243953824043274, -0.18576879799365997, -0.4055708050727844, 0.2996246814727783, 0.6492960453033447, -0.3216286599636078, 0.2304118275642395, ...
this is by no means unreasonable. A good case can actually be made for the usage of the CTS type names rather than C#'s keywords and some superficially good arguments are offered in the other answers. From a purity/style point of view I would probably concur. However, consider if this is worth breaking a well-establis...
[ 0.4843856990337372, 0.3055477738380432, -0.15702305734157562, 0.10474896430969238, -0.21981821954250336, -0.4814927279949188, 0.13203954696655273, -0.13184218108654022, 0.02312401495873928, -0.050725847482681274, -0.2737058401107788, 0.6349006295204163, -0.15700070559978485, 0.045493487268...
Is it possible to send an Email with only **cc** or **bcc** recipients using Mail::Sender? When I try to send an Email without a "to" address, I get the expected return code: > -8 = argument $to empty Using an empty string `''` in the "to" field does not work. Using a space works like a charm. ``` use Mail::Sender; ...
[ 0.14008291065692902, -0.020393015816807747, 0.3882504999637604, -0.08285165578126907, 0.12311852723360062, 0.026452282443642616, 0.6201562881469727, -0.11869100481271744, -0.32087939977645874, -0.5992298722267151, -0.2939855456352234, 0.13506963849067688, -0.5277990698814392, 0.31688919663...
=> 'example@example.com', to => ' ', bcc => 'example@example.com', subject => 'test', ctype => 'text/plain; charset=utf-8',
[ 0.49470654129981995, 0.23364949226379395, -0.04905492439866066, 0.09025800973176956, -0.11624832451343536, 0.27795448899269104, 0.2855404019355774, -0.10936062783002853, 0.01891813799738884, -0.5306183099746704, -0.5660191774368286, 0.390863835811615, -0.35235604643821716, 0.08559010922908...
skip_bad_recipients => 1, msg => 'test' }; my $ret = $sender->MailMsg($mail); print $ret; ```
[ 0.21821722388267517, -0.06697023659944534, 0.3140697777271271, -0.2353692352771759, 0.2545308768749237, 0.16110676527023315, 0.5418056845664978, 0.13440625369548798, -0.632452130317688, -0.343768835067749, -0.414803147315979, 0.40132835507392883, -0.7583678364753723, 0.17903655767440796, ...
I’ve only just started using ASP.NET MVC, and I have a somewhat trivial question: it seems that each controller has an attached folder-like path, so that my site becomes mydomain.net/Home/something. Is it possible to somehow get rid of the /Home part, so that the Home controller becomes ‘default’ for my web site and it...
[ 0.2017199546098709, -0.2870813012123108, 0.5815479159355164, 0.062443025410175323, 0.208554208278656, -0.255624383687973, 0.058594364672899246, 0.09261473268270493, -0.4241313636302948, -0.9870309233665466, -0.054990749806165695, 0.16947732865810394, -0.2614651620388031, 0.4544210433959961...
I have an ASP .NET (2.0) app that connects to an Access database over a network share using impersonation and basic authentication in IIS. Everything was working fine up until today, when I started getting weird 'Unspecified Error' error messages. I ended up doing an IIS reset to resolve the problem, but I'm trying to ...
[ 0.265577107667923, -0.03981246426701546, 0.4626926779747009, 0.048071544617414474, 0.09704827517271042, -0.12318459153175354, 0.3479419946670532, 0.23734638094902039, -0.18983210623264313, -0.9419746398925781, 0.049819596111774445, 0.33122456073760986, -0.26290085911750793, 0.3267103135585...
solutions I would love to hear them.
[ 0.2134091854095459, 0.005029628053307533, 0.19134466350078583, 0.615190863609314, 0.3736589550971985, 0.5108969807624817, -0.23615890741348267, -0.23223520815372467, -0.032325033098459244, -0.6390660405158997, 0.013279267586767673, 0.3233420252799988, 0.08593685179948807, 0.079708367586135...
I need to query the database to get the *column names*, not to be confused with data in the table. For example, if I have a table named `EVENT_LOG` that contains `eventID`, `eventType`, `eventDesc`, and `eventTime`, then I would want to retrieve those field names from the query and nothing else. I found how to do this...
[ -0.24246230721473694, 0.04596005380153656, 0.38805505633354187, -0.00044941282249055803, 0.13064758479595184, -0.1813121736049652, -0.17325752973556519, -0.2686596214771271, -0.2191808819770813, -0.41886746883392334, -0.07238806784152985, 0.5442193746566772, 0.07297394424676895, 0.02016853...
I would like to know if you find the following pattern meaningful in domain driven design. The domain layer consists of model and repository. The application layer consists of services that handles queries from the user interface, or from controllers in the Model-View-Controller pattern. Details of the structure: ``...
[ 0.4924025535583496, -0.02037445828318596, 0.4920119345188141, 0.33624690771102905, -0.10745928436517715, 0.04760938882827759, 0.009822936728596687, -0.12582199275493622, 0.12544818222522736, -0.7560837268829346, -0.16039466857910156, 0.5246997475624084, -0.3865508437156677, 0.7502409219741...
interface IPhraseRepository { Phrase SavePhrase(**Phrase phrase**); **Phrase GetPhrase(int phraseId);** } // Assembly Services (references assemblies Model and Repository): public class PhraseService { private IPhraseRepository _phraseRepository; public PhraseService(IPhraseRepository phraseRepository)...
[ 0.05201607197523117, -0.14152891933918, 0.3785543739795685, 0.20182816684246063, -0.2028161734342575, 0.4919798970222473, 0.6008236408233643, -0.2194690704345703, 0.028260020539164543, -0.8028253316879272, -0.23863060772418976, 0.521827220916748, -0.5584210157394409, 0.08525311201810837, ...
... return Phrase; } } ``` Particularly, would it make sense to move the method into the Phrase entity class? In that case, how would that be called? EDIT: The example above has been modified after the answer from moffdub and the comment from Adeel Ansari. The changes are **highlighted**. I would like ...
[ 0.2913084030151367, 0.0007265733438543975, 0.07346420735120773, 0.12038165330886841, -0.12751659750938416, -0.021388258785009384, 0.2974531054496765, -0.060007598251104355, -0.0693865641951561, -0.391512930393219, -0.23523755371570587, 0.41907066106796265, -0.4573480188846588, 0.2992744445...
making every property in your domain model have public getters and setters. That can lead you to an anemic domain model.
[ 0.4367688298225403, 0.014906720258295536, -0.02969658561050892, 0.316056489944458, -0.05252711474895477, -0.4460046887397766, 0.08725054562091827, 0.1802578717470169, -0.2297958880662918, -0.5066654682159424, 0.12571370601654053, 0.3789006769657135, -0.5320413708686829, 0.6457223892211914,...
I’m trying to figure out how to iterate over an array of subroutine refs. What’s wrong with this syntax? ``` use strict; use warnings; sub yell { print "Ahh!\n"; } sub kick { print "Boot!\n"; } sub scream { print "Eeek!\n"; } my @routines = (\&yell, \&kick, \&scream); foreach my $routine_ref (@routines) { my &rou...
[ 0.3431865870952606, 0.09133198112249374, 0.35374370217323303, -0.33709532022476196, -0.13439904153347015, 0.08753405511379242, 0.868671715259552, -0.19243218004703522, -0.1588728427886963, -0.24478350579738617, -0.1602141261100769, 0.7547886371612549, -0.4475429952144623, -0.02769635990262...
to Do It." For example, if any of those subroutines took parameters, you could pass them inside parenthesis like this: ``` for my $routine_ref (@routines) { $routine_ref->(); } ``` Also note that I've used `for` instead of `foreach`, which is a best pratice put forth by [Damian Conway in Perl Best Practices](http:...
[ 0.38468584418296814, 0.08720684051513672, 0.08588192611932755, -0.30142083764076233, 0.09209935367107391, 0.12542325258255005, 0.5574995279312134, -0.13348035514354706, -0.25874921679496765, -0.275968998670578, -0.0428943857550621, 0.8165969848632812, -0.3316192924976349, -0.23135069012641...
So `QTMovie`s have `QTMovieDidEndNotification`, but no `QTMovieDidStartNotification`. How can I be notified when a `QTMovie` starts playing? Answering my own question: the `QTMovieRateDidChangeNotification` is activated when the movie starts to play. Of course the documentation doesn't actually document that. Bah.
[ 0.32668575644493103, -0.031447477638721466, 0.4129895567893982, 0.09659815579652786, 0.22256779670715332, -0.698487401008606, 0.1949591338634491, 0.17398428916931152, -0.22295215725898743, -0.2753952145576477, -0.10888688266277313, 0.8856866359710693, -0.09541751444339752, 0.49555325508117...
I can get the nameserver via NSLOOKUP on a Windows machine and get an AD DC via a WMI VBS script, but I can't use the VBS script from a Unix server ( which can ping the nameserver). I'd like to use Java to obtain all the Active Directory domain controllers from a Unix box. Is this possible? If you can query the DNS Se...
[ 0.4836607277393341, 0.09458353370428085, 0.30583831667900085, 0.22995814681053162, -0.1697332113981247, -0.24207241833209991, -0.12805652618408203, 0.08695115149021149, -0.14425894618034363, -0.6905037760734558, 0.1357448250055313, 0.5565546751022339, -0.2538279592990875, 0.378373801708221...
I ran into a situation today where Java was not invoking the method I expected -- Here is the minimal test case: (I'm sorry this seems contrived -- the 'real world' scenario is substantially more complex, and makes much more sense from a "why the hell would you do *that*?" standpoint.) I'm specifically interested in w...
[ 0.07090096920728683, 0.0880630612373352, -0.1706918478012085, -0.14005009829998016, 0.024654604494571686, -0.13700389862060547, 0.48053398728370667, -0.042724769562482834, -0.2171803116798401, -0.6647096872329712, 0.01566990278661251, 0.5058848857879639, -0.36787286400794983, 0.14893123507...
{ Test<Integer> t = new Test<Integer>() { protected Integer value() { return 5; } }; System.out.println(t.getValue()); } } abstract class Test<T> { protected abstract T value(); public String getValue() { // Why does this
[ 0.29640498757362366, -0.46904832124710083, -0.24271154403686523, -0.060912538319826126, 0.031622495502233505, -0.10153520107269287, 0.34237393736839294, -0.311183899641037, 0.19206050038337708, -0.5426947474479675, -0.25509941577911377, 0.449405699968338, -0.32399168610572815, 0.1448197215...
always invoke makeString(Object)? // The type of value() is available at compile-time. return Util.makeString(value()); } } class Util { public static String makeString(Integer i){ return "int: "+i; } public static String makeString(Object o){ return "o...
[ -0.11867943406105042, -0.17136678099632263, 0.4235742390155792, -0.3093965947628021, 0.42789608240127563, 0.03778192773461342, 0.08722959458827972, -0.3572866916656494, 0.11369894444942474, -0.480379581451416, -0.32499125599861145, 0.28904688358306885, -0.464614599943161, 0.105058133602142...
``` The output from this code is: ``` obj: 5 ``` No, the type of value is not available at compile time. Keep in mind that javac will only compile one copy of the code to be used for all possible T's. Given that, the only possible type for the compiler to use in your getValue() method is Object. C++ is different, b...
[ 0.13516689836978912, 0.26816022396087646, 0.23854658007621765, -0.23993068933486938, -0.05719970911741257, -0.04638361185789108, 0.2954249083995819, -0.17103208601474762, -0.05459340289235115, -0.5685797333717346, -0.32095128297805786, 0.5136544704437256, -0.5789064764976501, 0.02346756681...
I need to build simple site "one big page" like 37signals product's pages, and I was thinking about this. Anyone have an idea? are they using Radiant or coding manually? [Signal vs. Noise](http://www.37signals.com/svn) is run with our own little engine called Blog Cabin. It just does what we need it to do. The [Prod...
[ 0.8527070879936218, -0.01799841597676277, 0.44855621457099915, 0.09704162925481796, -0.023584460839629173, -0.06875922530889511, -0.01322648860514164, 0.22410506010055542, -0.20084615051746368, -0.6056575179100037, 0.017514515668153763, 0.3553566336631775, 0.06640300899744034, -0.189142793...
I've been using Hibernate for a few years but have only used it with annotations, and by setting the connection parameters in my code. Am I "missing something" by not using the XML files? Are there important capabilities available only in XML? Are there situations or patterns where it makes sense to use the XML? I thi...
[ 0.4219464063644409, -0.09264717996120453, 0.25335219502449036, 0.08588911592960358, -0.32357820868492126, -0.5323256254196167, 0.3847014009952545, -0.06351099163293839, 0.291404664516449, -0.6634257435798645, 0.16289274394512177, 0.6854422688484192, -0.15377108752727509, -0.215623542666435...
in the attribute. So you can't possibly miss out on any functionality. It might make sense to use XML if you have enough programmers in your team who simply prefer to manage separate files or if there is a genuine need to edit xml mappings on the fly. Xml mapping files are probably easier to manipulate for very comple...
[ 0.3591175079345703, 0.028963515534996986, -0.057987406849861145, 0.4394131004810333, -0.11590294539928436, -0.11352064460515976, -0.09725040942430496, -0.31743860244750977, -0.1917746514081955, -0.8198266625404358, -0.10701224207878113, 0.5993028283119202, -0.06325879693031311, -0.15367688...
persisted.
[ 0.48196062445640564, -0.08168907463550568, 0.37165483832359314, 0.2196984738111496, -0.2250748872756958, 0.03648892045021057, 0.363654762506485, -0.020494626834988594, -0.04051056131720543, 0.033095888793468475, 0.07789233326911926, 0.20282256603240967, -0.13504110276699066, 0.520124018192...
I would like to see errors in my terminal colorfully like: ![enter image description here](https://i.stack.imgur.com/SU0Vu.png) [IPython](http://ipython.scipy.org/moin/) will syntax-highlight Python code and stacktraces, as in the example you give (which is, in fact, a Python stack trace). The example you link to was...
[ 0.05513450875878334, -0.013938520103693008, 0.18084271252155304, -0.04453251510858536, 0.17553594708442688, -0.061882421374320984, 0.23577043414115906, 0.35672542452812195, -0.4155985713005066, -0.8088669180870056, -0.0665317252278328, 0.7548037767410278, -0.25043144822120667, -0.250490605...
What's the difference between the ASP.NET Master Page, and the MVC Master Page? And the AJAX Master Page for that matter? Mostly it comes down to the default controls and inheritance. The AJAX Master and ASP.NET Master both inherit from System.Web.UI.MasterPage, while the MVC Master inherits from ViewMasterPage. Obvi...
[ -0.052300967276096344, -0.09645820409059525, 0.3954640328884125, 0.049390897154808044, -0.24938684701919556, -0.2140529304742813, 0.1384793072938919, -0.18372373282909393, -0.28008782863616943, -0.6536386013031006, -0.28544512391090393, 0.5540257692337036, -0.3296605944633484, 0.0780313983...
head, one in the form. * AJAX Master page also adds a ScriptManager control inside the Form control. * MVC Master (depending on version - I'm refering to the Beta) will just have two ContentPlaceHolder controls (in head and body). The "lifecycle differences" come from the Page/ViewPage, rather than the MasterPage/View...
[ 0.11223545670509338, -0.3211556077003479, 0.8543124794960022, 0.01793452352285385, -0.3613685965538025, -0.28652650117874146, 0.26765739917755127, -0.25225281715393066, -0.1638411432504654, -0.8450468182563782, -0.310215562582016, 0.4294043183326721, -0.07266281545162201, -0.14163951575756...
I'm looking to create a (possibly 3D) scrolling credits screen for my app, that is similar to what you might see at the end of a movie, but should be able to include graphics, animations, etc. What is the best way to go about doing this? I'm thinking I could create a very tall UserControl that contains the entire cont...
[ 0.6710339784622192, 0.15890280902385712, 0.46713507175445557, 0.3773900866508484, 0.1636435091495514, -0.05433351546525955, -0.3797808587551117, 0.1483391523361206, -0.1792304366827011, -0.6051204800605774, 0.5491390824317932, 0.43744662404060364, 0.3496564030647278, 0.1304902285337448, ...
if the credits could scroll on a 3D surface, kind of like Star Wars, or with a fisheye effect, but I know squat about 3D in WPF. I do definitely want some kind of fading/alpha-blending so the credits appear to fade in at the bottom and/or fade out at the top, but I'm also stuck on how to do that.\* \*\*Actually, for ...
[ 0.6017550826072693, 0.3028290271759033, 0.18056711554527283, 0.24334806203842163, 0.0936412587761879, 0.09557928144931793, -0.23812849819660187, -0.04346666485071182, -0.14021435379981995, -0.32075443863868713, 0.36210742592811584, 0.5904335379600525, 0.1525735855102539, 0.1799869239330291...
quite good. I used a vertical LinearGradientBrush to do the fading, and simply animated a UserControl inside a Canvas for the scrolling (animating Canvas.Top from <ActualHeight of Canvas> to (negative)<ActualHeight of UserControl>). Looks pretty good. :) Here's the animation (note I had to set DoubleAnimation.To in co...
[ -0.2903139591217041, -0.10316789895296097, 1.055485725402832, 0.07640521973371506, 0.18156516551971436, 0.13083410263061523, -0.29760944843292236, -0.17727920413017273, -0.09126736223697662, -0.7506743669509888, 0.3546355962753296, 0.6591632962226868, 0.30171406269073486, -0.21341638267040...
EndPoint="0,1"> <GradientStop Offset="0" Color="Black" /> <GradientStop Offset="0.2" Color="#00000000" /> <GradientStop Offset="0.8"
[ -0.7716574668884277, -0.4486753046512604, 0.6389081478118896, 0.0022213230840861797, 0.2040061205625534, 0.23931211233139038, -0.18218779563903809, -0.29437875747680664, 0.133317768573761, -0.49653735756874084, 0.07555996626615524, 0.2626412808895111, -0.20382124185562134, -0.1759743690490...