text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
[item setObject:currentDate forKey:@"date"]; [item setObject:currentImage forKey:@"media:thumbnail"]; ``` The RSS to used is: ``` <item><title>Knife robberies and burglaries up</title> <description>The number of robberies carried out at knife-point has increased sharply and burglaries are also up, latest...
[ -0.3652481734752655, 0.20100291073322296, 0.775818943977356, -0.013376741670072079, -0.14233039319515228, 0.0274654608219862, 0.2886808216571808, -0.5822409987449646, -0.5415219068527222, 0.010641315951943398, -0.17703917622566223, 0.46152183413505554, 0.3339885175228119, -0.04598031938076...
I've got apache2.2 on windows. I'm trying to serve both subversion (/svn) and redmine (/redmine). I have svn running fine with this config: ``` <Location /svn> DAV svn SVNParentPath C:/svn_repository ... </Location> ``` This is working great--my svn users can hit <http://mybox/svn> just fine. Now I want to ad...
[ 0.16076545417308807, 0.06161362677812576, 0.2154816836118698, -0.18517230451107025, -0.3213598430156708, -0.24580024182796478, 0.5515342950820923, -0.13099288940429688, -0.18316014111042023, -0.8064910769462585, 0.15848217904567719, 0.6004021167755127, -0.3250461220741272, -0.0007937799091...
to change: I removed the trailing slash: ``` <Location /redmine> ProxyPass http://localhost:3000 ProxyPassReverse http://localhost:3000/ </Location> ``` And in my rails app: ``` # added to end of file C:\redmine\config\environment.rb ActionController::AbstractRequest.relative_url_root = "/redmine" ``` Now it...
[ -0.2688573896884918, -0.28010860085487366, 0.5410559773445129, -0.21461334824562073, -0.25370314717292786, -0.0905766412615776, 0.45981407165527344, -0.43438321352005005, -0.364480584859848, -0.75339275598526, 0.10953613370656967, 0.7311978936195374, -0.3050989508628845, -0.273370116949081...
I recently was quickly shortening some method names in a JavaScript file and ran into a problem when I converted one method name: Before: ```js RefreshSevenDayGrid(){ // some stuff } ``` After: ```js 7Day() { // some stuff } ``` I quickly discovered that the javascript no longer worked. I heard from ...
[ 0.10411470383405685, 0.24376368522644043, -0.19044122099876404, 0.07913297414779663, -0.24950110912322998, -0.06455247849225998, 0.21220846474170685, -0.025337619706988335, -0.22666090726852417, -0.2903449833393097, 0.012660210020840168, 0.2704184651374817, -0.3558101952075958, 0.272334575...
is used widely in most languages, is `[S except for 0-9][S]*` where S is some set of valid characters (A-Z, a-z, 0-9, sometimes \_, $, or -) -- so the first character can't be a digit but the rest can.
[ -0.0625486969947815, 0.2150685340166092, 0.34023818373680115, -0.13143092393875122, -0.0063138483092188835, 0.3051188290119171, -0.0731394961476326, 0.08261215686798096, -0.16704364120960236, -0.20637141168117523, -0.5503171682357788, 0.023680362850427628, -0.002369762398302555, -0.0046231...
Database structure: ``` Clubs: ID, ClubName Teams: ID, TeamName, ClubID Players: ID, Name Registrations: PlayerID, TeamID, Start_date, End_date, SeasonID ``` Clubs own several teams. Players may get registered into several teams (inside same club or into different club) during one year. I have to generate a query to...
[ -0.04121606424450874, 0.11275377869606018, 0.2787112593650818, 0.21410338580608368, -0.06678543984889984, -0.24489960074424744, 0.060323040932416916, -0.11885154247283936, -0.38391128182411194, -0.472034215927124, 0.26741328835487366, -0.020771345123648643, -0.215129092335701, 0.7158130407...
ON r.team_id = t.id left Join ejl_clubs AS c ON t.club_id = c.id WHERE r.season = '2008' having counter >1 ``` I can't figure out how to count and show only different clubs... (It's getting too late for clear thinking). I use MySQL. Report should be like: Player name, Club name, Start\_date, End\_date This is a sec...
[ -0.1382366269826889, 0.29492253065109253, 0.3667565584182739, -0.1987091302871704, -0.6012295484542847, -0.11830370128154755, 0.2189643234014511, -0.5454044342041016, -0.6494418978691101, -0.4055608808994293, 0.3128262758255005, 0.16495369374752045, -0.26345956325531006, 0.3681354224681854...
= '2008' GROUP BY p.id HAVING counter > 1; ``` Note that since you're using MySQL, you can be pretty flexible with respect to columns in the select-list not matching columns in the GROUP BY clause. Other brands of RDBMS are more strict about the Single-Value Rule. There's no reason to use a LEFT JOIN as in your exam...
[ -0.12891094386577606, 0.1749841719865799, 0.09860198944807053, -0.27345871925354004, -0.312399685382843, -0.18780691921710968, -0.2467399537563324, -0.34397444128990173, -0.18129880726337433, -0.08512675762176514, 0.02676110342144966, 0.31284141540527344, -0.546919047832489, 0.107591442763...
t2.team_name)) AS teams, CONCAT_WS(',', GROUP_CONCAT(DISTINCT c1.short_name), GROUP_CONCAT(DISTINCT c2.short_name)) AS clubs FROM ejl_players p -- Find a club where this player is registered JOIN ejl_registration r1 ON (r1.player_id = p.id) JOIN ejl_teams t1 ON (r1.team_id = t1.id) JOIN ejl_clubs c1 ON (t1.c...
[ -0.24317476153373718, 0.0847884863615036, 0.3735736906528473, -0.060780152678489685, -0.4030101001262665, -0.22704312205314636, 0.21050749719142914, -0.48063504695892334, -0.7152058482170105, -0.5181258320808411, -0.2687625586986542, -0.06602393090724945, -0.2836575508117676, 0.20420829951...
c1.id < c2.id GROUP BY p.id; ```
[ -0.08706323802471161, 0.3816799223423004, 0.08842462301254272, -0.12065085768699646, 0.05128251388669014, 0.12619930505752563, -0.24081845581531525, -0.24466241896152496, -0.08861453086137772, -0.29691144824028015, -0.45371997356414795, 0.1754801720380783, -0.2292855978012085, 0.2004487812...
How would I do this in PHP? ``` Server.Transfer("/index.aspx") ``` (add ';' for C#) **EDIT:** It is important to have the URL remain the same as before; you know, for Google. In my situation, we have a bunch of .html files that we want to transfer and it is important to the client that the address bar doesn't chan...
[ 0.49778470396995544, 0.011372563429176807, 0.40233415365219116, -0.11208841949701309, -0.27389079332351685, -0.32892873883247375, 0.23948152363300323, -0.19534018635749817, -0.35006681084632874, -0.7449980974197388, -0.09688740968704224, 0.45512571930885315, -0.4369632601737976, 0.02255762...
We've inherited a large Oracle project that was originally Oracle 9 and is now Oracle 11. We don't have much confidence in the Forms change register. Are there any tools we could use to compare the two Forms projects? (By virtue of the fact that two different versions of Forms are involved, there will be differences...
[ 0.46617940068244934, 0.001883964636363089, 0.47524890303611755, 0.06801649183034897, 0.18819580972194672, -0.29983851313591003, 0.05353739857673645, -0.3777543604373932, 0.19733497500419617, -0.6133421063423157, -0.07742318511009216, 0.6326794028282166, 0.10152056068181992, -0.396621733903...
for form. The problem with the FMB->FMT is that the queries in the forms are converted to a binary format which is unreadable by humans. Forms version 10 has an ability to convert FMB to XML files, assuming you can read the XML files and do diffs. Don't assume that just because you are using two versions of forms...
[ 0.2902429699897766, 0.03394255042076111, 0.7897835969924927, -0.09713227301836014, -0.024146515876054764, -0.17417722940444946, 0.23828841745853424, -0.478912889957428, 0.08425089716911316, -0.7038151025772095, -0.18067850172519684, 0.5766106843948364, -0.3763619661331177, -0.3045209646224...
are you using?
[ 0.4333220422267914, 0.42234084010124207, -0.11640538275241852, -0.06100490316748619, 0.029140373691916466, -0.1919437199831009, 0.32044726610183716, -0.10103385150432587, -0.28147393465042114, -0.10028361529111862, 0.14748166501522064, 0.18897874653339386, -0.30460652709007263, -0.02555721...
How can I get a list of the indices on a table in my sybase database using Perl? The goal is to "copy" all the indices from a table to a nearly identical table. Is `$dbh->selectarray_ref('sp_helpindex $table')` the best I can do? There's a statistics\_info() method in DBI, but unfortunately, the only DBD I've seen it...
[ 0.24065563082695007, 0.022258104756474495, 0.43124547600746155, 0.06464773416519165, -0.11928337812423706, -0.1932404488325119, 0.03718215227127075, -0.05865180119872093, -0.10333579033613205, -0.7247596979141235, 0.16563458740711212, 0.6290437579154968, -0.32595476508140564, -0.0737220719...
returns only unique indexes unless the all\_indexes argument is true): ``` { my $sql_t = <<EOT; select sysindexes.name, index_col(object_name(sysindexes.id), sysindexes.indid, syscolumns.colid) col_name from sysindexes, syscolumns where sysindexes.id = syscolumns.id and syscolumns.colid <= sysindexes.keycnt an...
[ -0.5724148750305176, 0.06671205908060074, 0.7306107878684998, 0.037813346832990646, 0.15200187265872955, 0.47008413076400757, -0.09940887987613678, -0.2992020845413208, -0.2688468396663666, -0.37637919187545776, -0.3250233829021454, 0.37984028458595276, -0.4128699004650116, 0.3064845502376...
push @{$ind{$row{name}}}, lc($row{col_name}); } } return unless %ind; return \%ind; } } ``` Or if your goal is to just copy indexes, maybe you should get the [dbschema.pl](http://freshmeat.net/projects/dbschema.pl/) utility (which uses Sybase::DBlib). It will generate the "CREATE INDEX" statements for you.
[ 0.18158645927906036, -0.307416707277298, 0.48870405554771423, -0.14913016557693481, -0.27123934030532837, 0.05862979218363762, -0.00048507790779694915, -0.13371311128139496, -0.14250242710113525, -0.7340846657752991, 0.035399243235588074, 0.26903313398361206, -0.28843560814857483, 0.192197...
I have a software project which consists of multiple Project files and multiple Solution files. The Solution files have a one-to-many relationship with the Project files, and a given Project file may appear in multiple different solution files. Is there any good/spiffy way to come up with a map of the relationships be...
[ 0.6172232031822205, 0.12567836046218872, 0.014268327504396439, 0.24065594375133514, 0.17370569705963135, 0.1872788667678833, -0.09225238859653473, -0.08883599936962128, -0.27135103940963745, -0.6907795667648315, 0.18323194980621338, 0.42518383264541626, -0.1917981654405594, 0.3094943165779...
and map it out for me" I realize the net effect could be produced by opening up every Solution file and inspecting it but I'm looking for an automated, repeatable action. **EDIT:** I'm afraid I also have Solution/Project combos dating back to VS2003, so I need to map those as well. Both project files and solution fil...
[ -0.12493590265512466, -0.21393588185310364, 0.518574059009552, -0.026833776384592056, 0.19948764145374298, -0.0752326175570488, 0.17462603747844696, -0.23846915364265442, -0.2547723054885864, -1.0502848625183105, -0.05957736074924469, 0.27894529700279236, -0.16759295761585236, 0.1290829330...
to the project file. Using your favorite scripting language you could do something like the following. (Example in ruby) ``` require 'find' def project_name(string) string =~ /= "(.+?)"/ $1 end #the script doesn't use this method but you may want it def project_path(string) string =~ /, "(.+?)"/ $1 end def...
[ 0.1477765589952469, -0.08163794130086899, 0.3691626489162445, -0.20710614323616028, 0.050644680857658386, -0.26199692487716675, 0.15888358652591705, -0.4101584255695343, -0.0959729552268982, -0.8506007194519043, -0.2632961869239807, 0.31355729699134827, -0.339605450630188, 0.10563390702009...
Find.prune # Don't look any further into this directory. else next end elsif path =~ /\.sln$/ find_projects(path) end end ```
[ 0.10112438350915909, 0.04043911024928093, 0.5786342024803162, -0.04741314798593521, 0.5087409019470215, -0.28993234038352966, 0.22717227041721344, -0.1446092277765274, -0.21966767311096191, -0.6585678458213806, -0.02744103968143463, 0.49456122517585754, -0.15442755818367004, 0.162454038858...
Given: * a sequence of random numbers * X clients select Y numbers from the sequence, forming their own sub-sequences * the rules governing the selection process is not known Is there a mathematical property that guarantees that each client will end up with a random sequence of numbers? That is, is a subset of a rand...
[ 0.3582952916622162, -0.031958382576704025, -0.018003439530730247, 0.27195194363594055, -0.06070902943611145, 0.3456888496875763, -0.07641411572694778, -0.17642052471637726, -0.4963306486606598, -0.3654084801673889, -0.18941648304462433, 0.44851475954055786, -0.3463261127471924, 0.283488780...
replacement. That being said, I was wondering about the general case as well (when the selection rules are not known). The word "random" in "a sequence of random numbers" is generally construed to mean that there is no additional information about any element of the sequence from looking at any other elements of the se...
[ 0.4690476655960083, -0.1289721578359604, 0.20684580504894257, 0.2673036754131317, 0.06783874332904816, -0.018003448843955994, -0.15014879405498505, -0.33550330996513367, -0.36666491627693176, -0.46375641226768494, -0.18434025347232819, 0.6795697212219238, -0.20526757836341858, 0.0404023788...
mentioned, you can't decide to accept one of the elements after you look at its value.)
[ 0.4106332063674927, 0.10529689490795135, -0.2960923910140991, 0.21802857518196106, 0.025119593366980553, 0.04492644593119621, 0.3536519706249237, -0.27958038449287415, 0.016488580033183098, 0.006412456277757883, 0.0677732527256012, 0.40726619958877563, -0.1260877549648285, 0.28898429870605...
I'm trying to search and replace a string in all files matched by grep: `grep -n 'foo' *` will give me output in the form: ``` [filename]:[line number]:[text] ``` For each file returned by grep, I'd like to modify the file by replacing `foo` with `bar`. Do you mean search and replace a string in all files matched b...
[ 0.015197930857539177, 0.29983702301979065, 0.4765007197856903, -0.06152336299419403, -0.2301636040210724, 0.27464547753334045, 0.12930899858474731, -0.004421690013259649, -0.2614234387874603, -0.41919538378715515, -0.22783561050891876, 0.500516951084137, -0.49871164560317993, -0.0368548184...
can run: ``` ack --print0 -l searchpattern | xargs -0 perl -p -i -e 's/old/new/g' ``` you can do more with `ack-grep`. Say you want to restrict the search to HTML files only: ``` ack --print0 --html -l searchpattern | xargs -0 perl -p -i -e 's/old/new/g' ``` And if white space is not an issue it's even shorter: ...
[ 0.18854473531246185, -0.0721227303147316, 0.5163005590438843, 0.27548614144325256, -0.05685115605592728, -0.1848912388086319, 0.3089858591556549, 0.10146628320217133, -0.2515336275100708, -0.41307201981544495, -0.2850804626941681, 0.6451870203018188, -0.5152382850646973, -0.102506540715694...
I cannot get my code to work :/ Here's a quick example from Microsoft. ``` static TCHAR hdrs[] = _T("Content-Type: application/x-www-form-urlencoded"); static TCHAR frmdata[] = _T("name=John+Doe&userid=hithere&other=P%26Q"); static LPSTR accept[2]={"*/*", NULL}; // for clarity, error-checking h...
[ 0.02707413211464882, 0.18599562346935272, 0.40341222286224365, 0.02501555345952511, 0.17125600576400757, 0.0011559870326891541, 0.9620307683944702, -0.16088229417800903, 0.14076444506645203, -0.755379855632782, -0.45353931188583374, 0.36287981271743774, -0.40223145484924316, 0.222419500350...
accept, 0, 1); HttpSendRequest(hRequest, hdrs, strlen(hdrs), frmdata, strlen(frmdata)); // close any valid internet-handles ``` The example comes from [here](http://support.microsoft.com/kb/165298).
[ -0.12514542043209076, 0.13098570704460144, 0.5654677748680115, 0.047342728823423386, -0.21907946467399597, -0.16758860647678375, 0.4371226131916046, -0.32858577370643616, 0.005946415476500988, -0.5547149181365967, -0.42683541774749756, 0.17231276631355286, -0.21496082842350006, 0.218419298...
Sometimes I see Θ(n) with the strange Θ symbol with something in the middle of it, and sometimes just O(n). Is it just laziness of typing because nobody knows how to type this symbol, or does it mean something different? ### Short explanation: > If an algorithm is of Θ(g(n)), it means that the running time of the algo...
[ 0.23700231313705444, 0.02963266149163246, 0.21861888468265533, -0.08630534261465073, -0.34280797839164734, 0.08069204539060593, 0.1946035772562027, -0.08007515966892242, -0.3121037185192108, -0.9630964994430542, 0.018464062362909317, 0.34663715958595276, -0.30122071504592896, 0.23966571688...
they actually mean Θ(g(n)) but technically, there is a difference. --- ### More technically: O(n) represents upper bound. Θ(n) means tight bound. Ω(n) represents lower bound. > > f(x) = Θ(g(x)) iff f(x) = > > O(g(x)) and f(x) = Ω(g(x)) Basically when we say an algorithm is of O(n), it's also O(n2), O(n1000000), ...
[ -0.34196391701698303, -0.12241341918706894, 0.2685266435146332, -0.12338574230670929, -0.053143810480833054, 0.3397984206676483, 0.06143157184123993, -0.5086901187896729, -0.3631504774093628, -0.6776160597801208, -0.27034637331962585, 0.5617997646331787, -0.29438692331314087, 0.18532653152...
lower bound **and** and an upper bound of f. This directly implies f can be a lower bound and an upper bound of g as well. Consequently, > f(x) = Θ(g(x)) iff g(x) = Θ(f(x)) Similarly, to show f(n) = Θ(g(n)), it's enough to show g is an upper bound of f (i.e. f(n) = O(g(n))) and f is a lower bound of g (i.e. f(n) = Ω(...
[ -0.2281256914138794, -0.2181617021560669, 0.2523496150970459, -0.025490108877420425, -0.15535208582878113, 0.0913950577378273, 0.17100317776203156, -0.4793492257595062, -0.026214923709630966, -0.6291880011558533, -0.5174236297607422, 0.6290335059165955, -0.35575559735298157, 0.077929131686...
lower bounds of a function. To summarize: > `f(x) = O(g(x))` (big-oh) means that > the growth rate of `f(x)` is > asymptotically **less than or equal > to** to the growth rate of `g(x)`. > > > `f(x) = Ω(g(x))` (big-omega) means > that the growth rate of `f(x)` is > asymptotically **greater than or > equal to...
[ -0.3367486000061035, -0.05165187641978264, 0.10699239373207092, -0.14158137142658234, 0.0878877341747284, 0.4417373836040497, 0.11712232232093811, -0.24148567020893097, 0.15915191173553467, -0.5974285006523132, -0.5290644764900208, 0.7045848965644836, -0.5475214123725891, -0.04019944369792...
`f(x)` is > asymptotically **greater than** the > growth rate of `g(x)` > > > `f(x) = Θ(g(x))` (theta) means that > the growth rate of `f(x)` is > asymptotically **equal to** the > growth rate of `g(x)` For a more detailed discussion, you can [read the definition on Wikipedia](http://en.wikipedia.org/wiki/Big_O...
[ -0.17768065631389618, -0.07266197353601456, 0.14982786774635315, -0.17438623309135437, 0.048627302050590515, 0.13539531826972961, 0.07032183557748795, -0.15791518986225128, -0.30411821603775024, -0.7393708825111389, -0.5166577696800232, 0.6126908659934998, -0.4455302059650421, 0.1376196593...
When I hover over a variable in visual studio, it brings up a small control which shows the variable name, type, and a + box for viewing members, etc. But for some types the variable type is replaced by more helpful information such as "{X = 0.0 Y = 0.0 Width = 0.0 Height = 0.0}" for a RectangleF. Is there a way to sp...
[ 0.09576147794723511, 0.10128277540206909, 0.44766274094581604, -0.24722234904766083, -0.3693062961101532, -0.07560328394174576, 0.007593682501465082, -0.41858476400375366, 0.009777188301086426, -0.693736732006073, 0.19792234897613525, 0.6162174940109253, -0.26488691568374634, -0.0169616546...
Height = {heightvar}")] ``` More info can be found [here](http://msdn.microsoft.com/en-us/library/ms228992.aspx)
[ 0.08156920224428177, 0.049126219004392624, 0.554348886013031, -0.18128305673599243, 0.024932458996772766, -0.10151060670614243, 0.32054030895233154, -0.1816234439611435, -0.4149247109889984, -0.36127161979675293, -0.10540109127759933, 0.6537460684776306, 0.20245890319347382, 0.162495940923...
I searched my Linux box and saw this typedef: ``` typedef __time_t time_t; ``` But I could not find the `__time_t` definition. The [time\_t Wikipedia article](http://en.wikipedia.org/w/index.php?title=Time_t&oldid=450752800) article sheds some light on this. The bottom line is that the type of `time_t` is not guaran...
[ 0.22947221994400024, 0.12771067023277283, 0.13215935230255127, -0.07497134059667587, 0.4088236093521118, 0.0009411213104613125, -0.05086146667599678, 0.02934936061501503, -0.04508034139871597, -0.6818447709083557, -0.34858354926109314, 0.35395678877830505, -0.40688857436180115, 0.554688870...
specify any particular type**, > range, resolution, or encoding for it. > Also unspecified are the meanings of > arithmetic operations applied to time > values. > > > **Unix and POSIX-compliant systems implement the `time_t` type as a `signed > integer` (typically 32 or 64 bits wide) > which represents the numb...
[ 0.3148546516895294, 0.03203572705388069, 0.2194862812757492, 0.1502317637205124, 0.14383605122566223, -0.05577032268047333, 0.021704791113734245, 0.20412799715995789, -0.15993237495422363, -0.32219168543815613, -0.12605121731758118, 0.2640877962112427, -0.054693859070539474, 0.433045536279...
2038 problem](http://en.wikipedia.org/wiki/Year_2038_problem).
[ -0.860487699508667, -0.28001850843429565, 0.4211985766887665, -0.006300977896898985, 0.33491751551628113, 0.15636909008026123, -0.3964501619338989, -0.16754986345767975, -0.9766212701797485, -0.3917931616306305, -0.1646759957075119, 0.056465715169906616, -0.1883566975593567, 0.011838522739...
I just got a question that I can't answer. Suppose you have this loop definition in Java: ``` while (i == i) ; ``` What is the type of `i` and the value of `i` if the loop is not an infinite loop and **the program is using only one thread**? ``` double i = Double.NaN; ``` The API for [Double.equals()](http://java...
[ 0.4222944974899292, 0.062833271920681, 0.06910580396652222, -0.18360809981822968, -0.07762571424245834, 0.22394128143787384, 0.4584755599498749, -0.12209843099117279, -0.30905377864837646, -0.23901136219501495, 0.09561923891305923, 0.18935330212116241, -0.17472057044506073, 0.2347556650638...
The > equality operator `==` returns `false` if > either operand is `NaN`, and the > inequality operator `!=` returns `true` if > either operand is `NaN`. **In > particular, `x!=x` is `true` if and only > if `x` is `NaN`**, and `(x<y) == !(x>=y)` will > be `false` if `x` or `y` is `NaN`.
[ -0.33967792987823486, 0.1677452176809311, -0.27793005108833313, -0.030636031180620193, -0.21445949375629425, 0.2095383107662201, 0.17059411108493805, -0.11550696939229965, 0.10715329647064209, -0.5773603320121765, -0.4064651131629944, 0.7902906537055969, -0.021652450785040855, 0.2350186407...
Is there any alternative method to System.Windows.Forms.Application.DoEvents() to flush the event queue which doesn't use the System.Windows.Forms namespace? If not, is it ok to use the above method/namespace within a web service. Application.DoEvents is used to make form elements redraw during processes that are preve...
[ 0.29718124866485596, 0.017391443252563477, 0.36937257647514343, 0.10829530656337738, 0.03703158721327782, -0.13681969046592712, 0.2708739936351776, -0.27435502409935, -0.3027168810367584, -0.7494548559188843, 0.20403265953063965, 0.5344531536102295, -0.16888132691383362, 0.1698293536901474...
threads if you need to do several things in parallel. EDIT see ctackes post for more info
[ 0.6733686327934265, -0.26382869482040405, -0.13751505315303802, 0.46810922026634216, -0.09753578156232834, -0.28452372550964355, 0.018338536843657494, 0.7831946611404419, -0.779316246509552, -0.6902044415473938, -0.036663204431533813, 0.010888301767408848, -0.3044041395187378, 0.6595102548...
When you buy TFS 2008, you get a license to run SQL Server 2005 as the data repository for TFS. With SP1 of TFS 2008, SQL Server 2008 is now supported. Does any one know if the TFS 2008 license allows us to install SQL Server 2008 instead of SQL Server 2005? Are there any advantages using SQL Server 2008 over SQl Ser...
[ 0.1808786690235138, 0.2369059920310974, 0.4652533531188965, 0.2100100815296173, -0.3507385551929474, -0.3288072645664215, 0.352347731590271, -0.10983443260192871, -0.39764952659606934, -0.23790253698825836, 0.14165335893630981, 0.45008739829063416, -0.1470090001821518, 0.3266898989677429, ...
on another server, you require a separate SQL license anyway as if you want to use the SQL license that comes with TFS, it has to run on the application tier. [More info.](http://internationalized.spaces.live.com/Blog/cns!43F3A7682D1564E4!972.entry) From the advantages point, SQL 2008 reporting services is much impro...
[ 0.021797586232423782, 0.06510221213102341, 0.3534609377384186, 0.1680767685174942, -0.33935657143592834, -0.40785565972328186, 0.1774403154850006, -0.01381691824644804, -0.27982214093208313, -0.33880239725112915, 0.03302130103111267, 0.30605775117874146, 0.028873665258288383, 0.12377406656...
I come from a DBA world and performance has always been an obsession. I am turning to development and I always think about performance, constantly, all the time. Reading on SO sometimes seems that performance does not matter. For instance for evangelists on hibernate (or any other ORM). As a developer, when do I have...
[ 0.9274608492851257, 0.7442928552627563, 0.0022862900514155626, -0.15679694712162018, -0.24600456655025482, 0.04151467978954315, 0.8294290900230408, 0.2897109389305115, 0.11731944233179092, -0.4826427400112152, 0.05021052435040474, 0.5891792178153992, 0.02776019088923931, 0.3716999292373657...
software developer on most projects is getting to correct and reliable functionality and also of course maintainability of the system. Then, once implemented and working correctly, you evaluate performance, find out where the bottlenecks are, and optimize them accordingly to meet your overall goals. ***One Caveat***: ...
[ 0.404037743806839, 0.13110047578811646, -0.010871819220483303, 0.3040926158428192, 0.2999056577682495, -0.36873292922973633, 0.4683440625667572, -0.12022289633750916, 0.081166572868824, -0.7429137229919434, -0.13423898816108704, 0.7212927341461182, 0.06768190115690231, -0.23247574269771576...
bottlenecks are will result in optimizing things that don't matter and usually make things less maintainable, harder to understand, etc.
[ 0.451976478099823, 0.031079988926649094, 0.4239974319934845, 0.43522924184799194, 0.37843063473701477, -0.3715085983276367, 0.4849487543106079, -0.03949817642569542, 0.1342684030532837, -0.554772675037384, -0.3592871129512787, 0.4015401005744934, -0.44674935936927795, -0.22306734323501587,...
I am building a simple client/server application using java sockets and experimenting with the ObjectOutputStream etc. I have been following the tutorial at this url [http://java.sun.com/developer/technicalArticles/ALT/sockets](http://java.sun.com/developer/technicalArticles/ALT/sockets/) starting half way down when i...
[ 0.298805296421051, 0.16887050867080688, 0.232786163687706, -0.13041602075099945, -0.24520668387413025, -0.020400425419211388, 0.19736091792583466, 0.058564718812704086, -0.47926682233810425, -0.6947721838951111, 0.2114839404821396, 0.3993699550628662, -0.1586194783449173, 0.290915429592132...
are creating the streams: In the server from the article (which I assume is what you are using), when a new connection is opened, the server opens first an input stream, and then an output stream: ``` public Connect(Socket clientSocket) { client = clientSocket; try { ois = new ObjectInputStream(client.getInputStr...
[ 0.16736000776290894, -0.242854043841362, 0.49926626682281494, -0.14070969820022583, -0.02731160819530487, 0.11135949939489365, 0.03730912134051323, -0.06906336545944214, -0.2323213666677475, -0.8529378771781921, -0.09806082397699356, 0.34027099609375, -0.5083604454994202, 0.209973782300949...
your code does it the other way around: ``` server = new Socket(host, port); in = new ObjectInputStream(server.getInputStream()); out = new ObjectOutputStream(server.getOutputStream()); ``` Establishing an output stream/input stream pair will stall until they have exchanged their handshaking information, so you must...
[ 0.3551662564277649, -0.16586731374263763, 0.15841910243034363, 0.04879298061132431, -0.05842329189181328, 0.13631777465343475, 0.07628807425498962, -0.03619266673922539, -0.04604916274547577, -0.6889471411705017, 0.009922304190695286, 0.35580962896347046, -0.39726313948631287, 0.2143873125...
Ok I've been tasked with creating a wss v3.0 website for a government internal site with very little internal SharePoint experience (though it's an IT department so they're very tech literate). I'm already fairly good at SharePoint (having earned some Microsoft Certifications in SharePoint and done plenty of stuff for ...
[ 0.9514503479003906, 0.30277106165885925, 0.19186796247959137, -0.05779656022787094, 0.13021133840084076, -0.3089189827442169, 0.3157917559146881, 0.2702781558036804, -0.2539415955543518, -0.42131951451301575, -0.010224136523902416, 0.5210078954696655, 0.3239826560020447, -0.139864385128021...
past. So what's worked out well for yourselves in learning SharePoint? Edit: I'd like to emphasize on the "beginning" aspect of this, not developer tutorials but simple stuff like "how to submit to a document library", etc. Thanks! There are a handful of podcasts out there - but you need to sift through them to find t...
[ 0.4873756170272827, 0.04103410989046097, -0.038073569536209106, 0.20271310210227966, 0.040480926632881165, -0.502133846282959, -0.08994130790233612, 0.30764153599739075, -0.14803999662399292, -0.8214086890220642, -0.06017209216952324, 0.5098267793655396, 0.37102407217025757, 0.075090423226...
More the "How to add documents to Document Libraries" types of instructions rather than "How to create a new SharePoint Site Collection." I haven't been there in a while, but I spent a fair amount of time poking around that site for ideas on my team's "SharePoint Tip of the Week" docs I send out (and by "send out" I m...
[ 0.46613839268684387, 0.005581055302172899, 0.19539450109004974, 0.1894216537475586, 0.046657152473926544, -0.15797612071037292, 0.06315480917692184, -0.17181524634361267, -0.2401285022497177, -0.7857432961463928, 0.2328144907951355, 0.35459694266319275, 0.24271303415298462, -0.130944356322...
to keep it 1-2 pages depending on the content. I also setup a Discussion Board with a thread for each Tip, a summary, a link to the Tip, etc. so people can add comments and questions. One last thing - check this place out: <http://www.customguide.com/quick_references.htm> They have "Quick References" for a LOT of app...
[ 0.8205835223197937, -0.12350228428840637, 0.253685861825943, 0.39470425248146057, 0.11705457419157028, -0.23759561777114868, 0.3064092695713043, 0.04515229910612106, -0.32551267743110657, -0.329555869102478, 0.48810717463493347, 0.656421422958374, 0.35821932554244995, -0.3242097496986389, ...
I need to debug some annoying CSS issues on IE7, I have the Internet Explorer Developer Toolbar installed. It is having trouble resolving all of the styles that are being applied. I am also using [Firebug lite](http://getfirebug.com/lite.html), it is helpful but way too basic. Debugging this stuff in Firefox is not...
[ 0.18705865740776062, 0.36569324135780334, 0.06573161482810974, 0.053713683038949966, -0.2663014233112335, -0.34697815775871277, 0.6097545027732849, 0.003297563875094056, -0.056704893708229065, -0.7207647562026978, -0.0421641543507576, 0.7271373271942139, -0.4495074450969696, 0.047582913190...
help.
[ 0.0019945641979575157, 0.16264812648296356, 0.37847277522087097, 0.5041760802268982, 0.031826451420784, 0.22760933637619019, 0.3213093876838684, 0.05622706189751625, 0.008121389895677567, -0.7514412999153137, -0.21591737866401672, 0.226548433303833, -0.19419676065444946, 0.0670749098062515...
When using the generic bootstrapper with MSBuild how is the order of installation of prerequisite items determined? For example, given: ``` <Project ToolsVersion="3.5" xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> <ItemGroup> <BootstrapperFile Include='A' /> <BootstrapperFile Include='B' /> ...
[ 0.2077091932296753, -0.19995106756687164, 0.4230533838272095, -0.03530960530042648, -0.025813741609454155, 0.0693613737821579, 0.3165198862552643, -0.6662283539772034, -0.1839718073606491, -0.5182597041130066, -0.2729205787181854, 0.4771888554096222, -0.5305423736572266, 0.0669529810547828...
ComponentsLocation='HomeSite' OutputPath='.\' /> </Target> </Project> ``` What is the order that A, B, C, and D get installed? How do I control that order? It looks like I can specify in the product manifest with the `DependsOnProduct` tag: ``` <Product ProductCode="A"> <PackageFiles>...</PackageFiles> <...
[ 0.8064205050468445, 0.16026923060417175, 0.6227189302444458, -0.3932904005050659, 0.09143154323101044, 0.22864042222499847, -0.15371422469615936, -0.5652692914009094, -0.10149720311164856, -0.3788270652294159, -0.1927192658185959, 0.7196803689002991, -0.27591627836227417, 0.180129289627075...
In C# I want to communicate to the calling method that the parameters passed to an object have caused its instantiation to fail. ``` // okay Banana banana1 = new Banana("green"); // fail Banana banana2 = new Banana("red"); ``` Throw an exception? If so how? ``` throw new ArgumentException("Reason", "param name"); ...
[ -0.2328030914068222, 0.19804655015468597, 0.023088201880455017, -0.2685665190219879, 0.09100613743066788, -0.024362441152334213, 0.42867976427078247, -0.1312069594860077, -0.2523065209388733, -0.003955090884119272, -0.7344963550567627, 0.6307380199432373, -0.4075179398059845, -0.2727344036...
I have have the following data in excel: ``` a, b, c d e f, g h i ``` with each row, representing a row and in one cell. I would like to convert it to: ``` a b c d e f g h i ``` I am using the following macro, but I can't get the autosize to do an insert, instead of overriding the cell values. Any help is apprec...
[ 0.26923394203186035, 0.24953100085258484, 0.3810974061489105, -0.298514723777771, 0.2224259376525879, 0.2807397246360779, -0.12162921577692032, -0.023189086467027664, -0.1634252667427063, -0.8049851655960083, 0.055088501423597336, 0.5837581753730774, -0.5049924254417419, 0.1432021260261535...
Dim splitValues As Variant splitValues = split(Selection.Rows(i).Value, ",") Selection.Rows(i).Resize(UBound(splitValues) - LBound(splitValues) + 1).Value = Application.Transpose(splitValues) Next i .Calculation = xlCalculationAutomatic .ScreenUpdating = True End With End ...
[ 0.14415305852890015, -0.39915114641189575, 1.0381749868392944, -0.15723617374897003, 0.13429339230060577, 0.08943130820989609, 0.047357648611068726, -0.4878525733947754, -0.22154270112514496, -0.4558779001235962, -0.11993259191513062, 0.8210638165473938, -0.3717444837093353, -0.04024961963...
<- B -> 1 a, b, c a 2 d b 3 e c 4 f, g d 5 h e 6 i f 7 g 8 h 9
[ -0.03749527409672737, 0.5366941094398499, 0.39327502250671387, 0.22841359674930573, -0.13501542806625366, 0.45804136991500854, 0.2570692002773285, -0.1438262164592743, -0.13276678323745728, -0.3987348675727844, -0.11791451275348663, -0.03616466745734215, 0.020639818161725998, 0.17655645310...
i ``` I've left it as non-destructive for testing purposes, and since it's relatively easy to create a new column, populate it and delete the old column in VBA. An exercise for the reader... Here is the macro: ``` Option Explicit Sub Macro1() Dim fromCol As String Dim toCol As String Dim fromRow As Stri...
[ 0.0735856294631958, 0.02237492799758911, 0.5922618508338928, -0.3802015781402588, 0.12048476934432983, 0.07081876695156097, 0.020651571452617645, -0.2524220049381256, -0.019365746527910233, -0.31514155864715576, -0.3581959903240204, 0.8281594514846802, -0.3296756148338318, -0.0561359040439...
column A to column B.' fromCol = "A" toCol = "B" fromRow = "1" toRow = "1" ' Go until no more entries in column A.' inVal = Range(fromCol + fromRow).Value While inVal <> "" ' Go until all sub-entries used up.' While inVal <> "" Range(fromCol + fromRow).Select
[ -0.43617483973503113, 0.05284404009580612, 0.7043273448944092, -0.41255906224250793, -0.06651952117681503, 0.32832613587379456, 0.22300004959106445, -0.16660170257091522, -0.10150512307882309, -0.5026839375495911, -0.6709228754043579, 0.40365105867385864, -0.39932528138160706, -0.255541682...
' Extract each subentry.' commaPos = InStr(1, inVal, ",") While commaPos <> 0 ' and write to output column.' outVal = Left(inVal, commaPos - 1) Range(toCol +
[ -0.7932226657867432, -0.10239608585834503, 0.8724230527877808, -0.3730439841747284, 0.15754014253616333, 0.46902012825012207, 0.17935799062252045, -0.33437544107437134, 0.07716149091720581, -0.25198522210121155, -0.3259679675102234, 0.29599621891975403, -0.3089035451412201, -0.160173386335...
toRow).Select Range(toCol + toRow).Value = outVal toRow = Mid(Str(Val(toRow) + 1), 2) ' Remove that sub-entry.' inVal = Mid(inVal, commaPos + 1) While Left(inVal, 1)
[ -0.48664015531539917, -0.2943294942378998, 0.3943388760089874, -0.5363964438438416, 0.15577076375484467, 0.260306179523468, 0.18694375455379486, -0.29516661167144775, 0.33100658655166626, -0.3539712429046631, -0.6036924719810486, 0.6751524806022644, 0.003685108618810773, 0.2233621925115585...
= " " inVal = Mid(inVal, 2) Wend commaPos = InStr(1, inVal, ",") Wend ' Get last sub-entry (or full entry if no commas).'
[ -0.6658816933631897, -0.18134745955467224, 0.6096027493476868, -0.20045675337314606, -0.06181556358933449, 0.4227147698402405, 0.2916879951953888, -0.08188768476247787, 0.012162433937191963, -0.46882006525993347, -0.8990768790245056, 0.017301363870501518, 0.4583316445350647, 0.011605741456...
Range(toCol + toRow).Select Range(toCol + toRow).Value = inVal toRow = Mid(Str(Val(toRow) + 1), 2) inVal = "" Wend ' Advance to next source row.' fromRow = Mid(Str(Val(fromRow) + 1), 2) Range(fromCol + fromRow).Select
[ -0.30796319246292114, -0.15597093105316162, 0.918458104133606, -0.5967620015144348, 0.21167069673538208, 0.26879847049713135, 0.02959422580897808, -0.5149629712104797, 0.5082237720489502, -0.4980761706829071, -0.39159175753593445, 0.7695876359939575, 0.013298694975674152, -0.01860681734979...
inVal = Range(fromCol + fromRow).Value Wend End Sub ```
[ -0.4181428849697113, -0.19550098478794098, 0.49797552824020386, -0.6717402935028076, -0.05188610032200813, 0.10909051448106766, 0.20974335074424744, -0.5076053142547607, 0.38117414712905884, -0.4462974965572357, -0.18664591014385223, 0.5692847371101379, 0.10540159046649933, -0.022734403610...
I'm getting the folling linker errors when compiling with gcc: ``` undefined reference to `SetStretchBltMode@8' undefined reference to `StretchDIBits@52' undefined reference to `SetDIBitsToDevi ``` Are these functions defined in the windows libs? If so do they come installed with Vista, or do I need to install th...
[ 0.12793247401714325, -0.23944295942783356, 0.42554134130477905, -0.06835653632879257, -0.08294117450714111, -0.31474053859710693, 0.3933734893798828, -0.05032118409872055, -0.2419537752866745, -0.7983307838439941, -0.052845120429992676, 0.8037168383598328, -0.3582502007484436, -0.016992192...
I've seen numerous methods of POSTing data with PHP over the years, but I'm curious what the suggested method is, assuming there is one. Or perhaps there is a somewhat unspoken yet semi-universally-accepted method of doing so. This would include handling the response as well. You could try the [Snoopy script](http://so...
[ 0.38742685317993164, -0.2703532576560974, 0.3893783986568451, 0.13314835727214813, -0.2833101153373718, -0.3145585060119629, 0.04816148057579994, 0.32454657554626465, -0.3803170621395111, -0.2887546122074127, 0.1533670574426651, 0.2932230234146118, -0.1329687386751175, -0.1427639126777649,...
Is there a widely-used algorithm that has time complexity *worse* than that of another known algorithm but it is a *better* choice in *all* practical situations (***worse*** complexity but **better** otherwise)? An acceptable answer might be in a form: > There are algorithms `A` and `B` that > have `O(N**2)` and `O...
[ -0.24089691042900085, -0.04641936346888542, -0.10604521632194519, 0.19430463016033173, -0.009899785742163658, 0.19289490580558777, -0.2231399118900299, -0.106564462184906, -0.2880677878856659, -0.6023206114768982, -0.028875531628727913, 0.3060797452926636, -0.31294307112693787, -0.10184968...
for convex optimization problems. * A naive median of medians algorithm -- worst-case O(N\*\*2) *vs.* known O(N) algorithm. * Backtracking regex engines -- worst-case exponential *vs.* O(N) Thompson NFA -based engines. All these examples exploit worst-case vs. average scenarios. Are there examples that do not rely on...
[ -0.21063397824764252, 0.029308682307600975, -0.25064343214035034, 0.029345925897359848, -0.27172476053237915, 0.1936883181333542, 0.3696420192718506, -0.18377861380577087, -0.2971000671386719, -0.8048749566078186, -0.021177195012569427, 0.604743480682373, -0.371704638004303, -0.21769267320...
structure algorithms that were proven > to be optimal for asymptotically large > collections (but were not so great for > small collections). This example would be the answer if there were no computers capable of storing these large collections (in other words large is not large enough in this case). * [Coppersmith...
[ -0.20721592009067535, 0.0546199195086956, 0.24525538086891174, -0.014930627308785915, -0.035136621445417404, -0.21695059537887573, -0.20182736217975616, -0.3069292902946472, -0.6423443555831909, -0.6190018653869629, -0.1768363118171692, -0.03209901973605156, -0.47620418667793274, 0.4373325...
modern hardware (Robinson 2005)." [Coppersmith–Winograd algorithm](http://en.wikipedia.org/wiki/Coppersmith-Winograd_algorithm) for square matrix multiplication. Its time complexity is O(n2.376) *vs.* O(n3) of a naive multiplication algorithm or *vs.* O(n2.807) for [Strassen algorithm](http://en.wikipedia.org/wiki/Stra...
[ -0.2855309247970581, 0.46636298298835754, 0.46357983350753784, -0.11136182397603989, 0.13072258234024048, 0.4209977388381958, -0.18841338157653809, -0.4713191092014313, -0.2548366189002991, -0.5539014935493469, -0.13612627983093262, 0.4746244251728058, 0.018863150849938393, 0.1478761583566...
I tried overriding `__and__`, but that is for the & operator, not *and* - the one that I want. Can I override *and*? You cannot override the `and`, `or`, and `not` boolean operators.
[ 0.11419446021318436, 0.2178744673728943, 0.1858976185321808, -0.07417814433574677, 0.0922151580452919, -0.19391678273677826, 0.36389046907424927, 0.025943705812096596, -0.1526540219783783, -0.22215664386749268, -0.42407047748565674, 0.6214271187782288, -0.4001355469226837, -0.0068345498293...
I am using jQuery on my site and i have a update section on my project and I have three dropdowns: * Completed? * Hours Worked * Who worked on this project? I am trying to create an ajax call using jQuery to when I select it, call a $.ajax() and send the data to my php page to update my mysql database. I am guessing...
[ 0.3757229447364807, 0.12101877480745316, 0.19683532416820526, -0.049732137471437454, -0.2651478052139282, 0.08471692353487015, 0.06529783457517624, 0.06986983865499496, -0.09449274837970734, -0.5935234427452087, 0.33654677867889404, 0.4582570791244507, 0.04712644964456558, 0.00210073357447...
ajax? Any suggestions? As FryGuy said the $.post method is probably your best bet although I'd lay it out like this: ``` $("#project select").change(function(){ // use one selector for all 3 selects $.post("someurl.php",{ // data to send completed: $("select#completed").val(), hours: $...
[ 0.0967424139380455, -0.37373796105384827, 0.25199094414711, 0.06554505228996277, -0.12059852480888367, 0.10864149779081345, 0.09091845899820328, 0.012493434362113476, -0.16960261762142181, -0.6143284440040588, 0.07165941596031189, 0.6190996170043945, -0.2519356608390808, -0.053364813327789...
response 'data' here }); }); ``` This might not be exactly what you wanted if the three selects occur more than once on the page. I'd recommend reading through the jquery docs to get a handle on events. As for pulling out data you just need to use selectors and methods like `.text()`, `.val()`, `.html()`, `.attr(...
[ -0.21132677793502808, -0.546122670173645, 0.5290351510047913, 0.1658095121383667, -0.19712065160274506, 0.03415754809975624, 0.13562966883182526, -0.3304579257965088, -0.1789022833108902, -0.6154108643531799, -0.384679913520813, 0.7787281274795532, -0.13037988543510437, -0.0436354018747806...
I'm really confused. I want to do something that a) seems like it *should* be pretty simple, and b) other people must do all the time, but I cant find out the best way to do it anywhere. There's an external repository that contains some 3rd party code. I want to take a copy of version 1 of the code and put it in my ow...
[ 0.8842185139656067, 0.21546296775341034, 0.11706294119358063, -0.05271776020526886, -0.014523057267069817, -0.3047592043876648, 0.42604947090148926, -0.15697768330574036, -0.09123341739177704, -0.5169990658760071, 0.1681775152683258, 0.46910345554351807, -0.31091850996017456, -0.1835495531...
my customisations. I've read about vendor branches (<http://svnbook.red-bean.com/en/1.5/svn.advanced.vendorbr.html>) but I don't understand why merging the previous copy of the vendor code and the new copy of the vendor code needs to be so complicated (ie. svn\_load\_dirs.pl). Surely, if the 3rd party code is stored i...
[ 0.19052334129810333, 0.19263827800750732, 0.32374605536460876, -0.2648929953575134, -0.10218553245067596, 0.15767452120780945, 0.11235573142766953, -0.01130738202482462, -0.5502224564552307, -0.6458456516265869, 0.035811636596918106, 0.4296422600746155, -0.10449489951133728, 0.264057546854...
also read (<http://svn.haxx.se/users/archive-2006-04/0285.shtml>) that it is possible to simply run a merge between different repositories, but I didn't think that was possible, and whenever I've tried it it's failed (though I could have been doing something wrong). Can anyone clarify this for me, and suggest the best...
[ 0.19734598696231842, 0.029763061553239822, 0.4369334578514099, -0.00653331121429801, 0.07928582280874252, 0.23332972824573517, 0.17443716526031494, -0.3381190001964569, -0.7107561826705933, -0.4530198872089386, -0.240589439868927, 0.19789628684520721, -0.32115495204925537, -0.0767135769128...
local 'branch' in a new repository. The last two steps are all you need for an existing project. To simulate some changes to the original repo, modify the text file in co1 and commit the changes. **Merging Changes** Now, to create your own working copy, check out rep2 into co2. We should be ready to try merging fro...
[ 0.10326855629682541, -0.18823057413101196, 0.5652400255203247, -0.03464037925004959, 0.27858227491378784, 0.05426416173577309, -0.07857797294855118, -0.20326580107212067, -0.6360914707183838, -0.5803771018981934, -0.3024495542049408, 0.3084568381309509, -0.3559507429599762, -0.061862260103...
HEAD or the latest update you want to apply. **Results** This seems to work as expected, with the modifications from rep1 being applied to the working copy of rep2 in co2. These then need to be committed back to your local repository.
[ 0.4100739061832428, -0.004053871612995863, 0.8994328379631042, 0.02025250345468521, 0.08899324387311935, -0.1556859165430069, -0.03409649431705475, -0.17719581723213196, -0.5352527499198914, -0.2723158299922943, -0.06741214543581009, 0.5395339727401733, 0.29256510734558105, -0.223813459277...
I was wondering if it were possible to write a file FileResult that worked something like this. ``` public ActionResult Generate(int id) { //Fill Model string ViewName = "template1"; return new FileResult(ViewName, @"c:\save"+ id +".txt"); } ``` where it would take the model, and combine it with the...
[ 0.11410371214151382, -0.19284804165363312, 0.3662550151348114, -0.08560308068990707, 0.0830606073141098, -0.06999995559453964, 0.26633715629577637, -0.18118742108345032, -0.366546630859375, -0.6593962907791138, 0.10188112407922745, 0.7154818773269653, -0.2601686120033264, 0.022891422733664...
on both of the websites that you currently have. Have it require authentication through WebService header (or use client certs to authenticate) and use SSL, then call both of the WebServices from your launch page with the name of the patient and return link to his/her profile for both site.
[ 0.42221254110336304, -0.09562838077545166, 0.7122958302497864, 0.07497558742761612, 0.01845715381205082, -0.2507825195789337, 0.20777350664138794, -0.15705199539661407, 0.013083667494356632, -0.7273386120796204, -0.02854003943502903, 0.2780878245830536, -0.09299662709236145, 0.194028884172...
This might sound like a noob question, but are: ``` string var; if (var == null) ``` and ``` string var; if (var == string.Empty) ``` The same? > ### **Duplicate** > > > [What's the Difference between String.Empty and Null?](https://stackoverflow.com/questions/151472/what-is-the-difference-between-string-empty...
[ 0.11178048700094223, 0.142353817820549, 0.19487027823925018, -0.2907174229621887, 0.13562344014644623, -0.2663169205188751, -0.023027516901493073, -0.1671050786972046, -0.2144516408443451, -0.12907527387142181, -0.17417611181735992, 0.45762908458709717, -0.1495032161474228, 0.1164915114641...
I am trying to workout a way to programatically create a key for [Memcached](http://en.wikipedia.org/wiki/Memcached), based on the method name and parameters. So if I have a method, ``` string GetName(int param1, int param2); ``` it would return: ``` string key = "GetName(1,2)"; ``` I know you can get the MethodB...
[ 0.3281443119049072, 0.12468348443508148, 0.13448752462863922, -0.06676263362169266, -0.24045395851135254, -0.11847830563783646, 0.40000349283218384, -0.5278372168540955, 0.0920996442437172, -0.5096374154090881, 0.1165166050195694, 0.40775418281555176, -0.2744959890842438, -0.01519416179507...
When using WinDbg, where should the private symbol files (pdb?) be placed? My situation is: I have a DLL which I want to debug. I have the source code and symbol files for this DLL. This DLL is called by another DLL (which I don't have symbols or source for) which, in turn, is called by an EXE (which I also don't have...
[ -0.1429685652256012, 0.31299689412117004, 0.29520389437675476, -0.1507076770067215, -0.2698005139827728, -0.34997648000717163, 0.6462517976760864, 0.1430368721485138, -0.2001037299633026, -0.6160680055618286, 0.09001608937978745, 0.13236986100673676, -0.2588825523853302, 0.3452220261096954...
the call stack: > MyDll!AClass::AFunction+SomeHexAddress My file structure looks something like this: The exe: C:\TheProgram\program.exe The calling dll: C\TheProgram\SomeSubfolder\caller.??? My DLL that I want to debug: C:\TheProgram\SomeSubfolder\AnotherSubfolder\MyDll.dll Note: I set Symbol File path and the S...
[ 0.048382699489593506, 0.19560174643993378, 0.3128555715084076, -0.08686312288045883, 0.17573504149913788, -0.08098428696393967, 0.21868017315864563, -0.01987016201019287, -0.21982349455356598, -0.4173128604888916, -0.12315066903829575, 0.5563230514526367, -0.32048892974853516, 0.2098292112...
I put my symbols for my DLL in the symbol path?" **Here is a response for the first problem:** Steps to identify mismatched symbols. 1. !sym noisy - .reload - x MyDll!\*class\* \*This reloads your dll, alternatively you can type kb to display the call stack of the DLL which should load it as well. - !sym quiet...
[ 0.05250520259141922, -0.3109762668609619, 0.2796400487422943, -0.05591452866792679, -0.0008691386319696903, -0.09411393851041794, 0.4086701571941376, -0.11878859251737595, -0.3071845471858978, -0.9112311005592346, -0.1428350955247879, 0.5617313385009766, -0.20314791798591614, -0.0533536337...
a different way to generate a checksum. **Here is the response for the questions about where to put the PDBs** If you have MyDll.pdb added to a symbol store then you can use the following syntax ``` .sympath SRV*c:\symcache*http://msdl.microsoft.com/download/symbols ``` As Roger has suggested above... However if...
[ 0.13138990104198456, 0.03553808480501175, 0.2836654782295227, 0.27075669169425964, -0.5139080286026001, -0.20910555124282837, 0.3379105031490326, -0.17004874348640442, -0.26252037286758423, -0.7457357048988342, 0.06463906913995743, 0.2174413949251175, -0.11703762412071228, -0.0001185077198...
I have a Java program consisting of about 15 methods. And, these methods get invoked very frequently during the exeuction of the program. At the moment, I am creating a new connection in every method and invoking statements on them (Database is setup on another machine on the network). What I would like to know is: S...
[ 0.0185592882335186, 0.3329959511756897, 0.2095278948545456, 0.08804921805858612, -0.06577663123607635, 0.06640414893627167, 0.19198961555957794, -0.13756397366523743, -0.14209692180156708, -0.7092583775520325, 0.31419098377227783, 0.14090847969055176, -0.3304038345813751, 0.365604400634765...
very frequently in every method. I suspect I am not using the resources very efficiently with the current design, and there is a lot of scope for improvement, considering that this program might grow a lot in the future. Yes, you should consider re-using connections rather than creating a new one each time. The usual...
[ 0.23303823173046112, 0.0948290228843689, 0.2698499262332916, 0.23497025668621063, 0.0945577472448349, -0.048562224954366684, 0.28375479578971863, 0.12333058565855026, -0.6905657052993774, -0.8246846199035645, 0.13496582210063934, 0.42838412523269653, -0.375114381313324, 0.1745513528585434,...
disk-bound your queries are) * create a **pool** of this many connections: essentially a class that you can ask for "the next free connection" at the beginning of each method and then "pass back" to the pool at the end of each method * your getFreeConnection() method needs to return a free connection if one is availabl...
[ 0.2938414216041565, -0.2519878149032593, 0.2734224200248718, 0.5381210446357727, -0.02791588380932808, -0.14458376169204712, -0.2211906760931015, 0.25815150141716003, -0.3322315216064453, -0.8048775792121887, -0.038788292557001114, 0.665248692035675, -0.19093139469623566, 0.115370020270347...
short article on my web site on [managing a resource pool with a Semaphore](http://www.javamex.com/tutorials/synchronization_concurrency_semaphore2.shtml) with an example I think you could adapt to your purpose A couple of practical considerations: * For optimum performance, you need to be careful **not to "hog" a co...
[ 0.3955795168876648, -0.06828771531581879, 0.2811371386051178, 0.2378145307302475, 0.04688289016485214, -0.3949511647224426, 0.2404274046421051, 0.06743421405553818, -0.7223610281944275, -0.8316123485565186, 0.12333550304174423, 0.20254088938236237, -0.1866544485092163, 0.1306798756122589, ...
'forever'**: the O/S will close them after some maximum time. So in your 'return a connection to the pool' method, you'll need to think about **'retiring' connections that have been around for a long time** (build in some mechanism for remembering, e.g. by having a **wrapper object** around an actual JDBC Connection ob...
[ 0.08436372131109238, -0.21218624711036682, 0.5758374929428101, 0.04263513162732124, 0.46922528743743896, -0.17763251066207886, -0.04747637361288071, 0.06646592170000076, -0.528434157371521, -0.5329583287239075, -0.29335886240005493, 0.20730899274349213, -0.14397835731506348, 0.610619485378...
I'm using hibernate to store a set of objects from a web service. As the object are received each I am saving them using hibernate. Receiving the objects is wrapped in a transaction and all the objects appear in the database after the final object is received. I am now trying have each object appear in the databas...
[ 0.3134617507457733, 0.05087491497397423, 0.5293211340904236, -0.09066981822252274, -0.2267971932888031, 0.08931010216474533, 0.639173686504364, -0.20390455424785614, -0.059340644627809525, -0.7194461226463318, 0.11201801151037216, 0.4924917221069336, -0.3667469322681427, 0.0481313616037368...
another class wrapping the save call. The solution was to remove the `for` loop and replace it with an `iterator`. Hibernate was keeping the same transaction for the entire `for` loop. Using the `iterator`, Hibernate seems to start a new transaction and hence performs the commit to the database and then a flush befor...
[ 0.0215276051312685, -0.42236143350601196, 0.18900059163570404, -0.09255120903253555, -0.09361189603805542, -0.17844067513942719, 0.03678446263074875, -0.2011614888906479, -0.01923523098230362, -0.3524157404899597, 0.05423767492175102, 0.4476304352283478, -0.5455036163330078, 0.085557624697...
How do I get Spring to load Hibernate's properties from `hibernate.cfg.xml`? We're using Spring and JPA (with Hibernate as the implementation). Spring's `applicationContext.xml` specifies the JPA dialect and Hibernate properties: ``` <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManage...
[ -0.04793542996048927, -0.11314286291599274, 0.38076427578926086, -0.13892704248428345, -0.28127408027648926, 0.21614553034305573, 0.16398069262504578, -0.44801065325737, -0.031231775879859924, -0.4654045104980469, -0.22794713079929352, 0.23394931852817535, -0.07370295375585556, -0.12487278...