text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I've just upgraded some old Java source which has been running on a Sun Java 1.4.2 VM to Sun Java (JRE) 6 VM. More or less the only thing I had to change was to add explicit datatypes for some abstract objects (Hashmap's, Vector's and so on). The code itself it quite memory intensive, using up to 1G of heap memory (usi... | [
0.2258160561323166,
0.05143359676003456,
0.11660326272249222,
0.005693177226930857,
-0.2470400184392929,
-0.1614125669002533,
0.36060354113578796,
-0.13019219040870667,
-0.0771927610039711,
-0.8350594639778137,
0.2053583860397339,
0.7651716470718384,
-0.1100383922457695,
-0.134794875979423... | |
worse in my case now (just in general, of course, since you can't take a look at the code)?
2. Has anyone some advice for a non Java guru what to look for if I wanted to optimize (speed wise) existing code? Any hints, recommended docs, tools?
Thanks.
Not much information here. But here are a couple of things you might... | [
0.3444870412349701,
0.13891491293907166,
0.0796489268541336,
0.13751913607120514,
-0.2554951608181,
-0.11914202570915222,
0.35102659463882446,
0.18175362050533295,
-0.4835728108882904,
-0.7050762176513672,
0.022095097228884697,
0.6217443346977234,
-0.00021844367438461632,
0.111913673579692... | |
or what objects are not being garbage collected
* Hook up your VM with the jconsole and trace through the objects | [
0.676892876625061,
-0.10040637105703354,
-0.03759709745645523,
0.5421093106269836,
0.09279879182577133,
-0.125466451048851,
0.41513386368751526,
0.4574108421802521,
-0.4895979166030884,
-0.48477086424827576,
-0.0034635583870112896,
0.20611943304538727,
0.21902203559875488,
-0.0454692468047... | |
I wanted to set a CSS class in my master page, which depends on the current controller and action. I can get to the current controller via `ViewContext.Controller.GetType().Name`, but how do I get the current action (e.g. `Index`, `Show` etc.)?
Use the `ViewContext` and look at the `RouteData` collection to extract bot... | [
0.09774881601333618,
-0.21980036795139313,
0.44135552644729614,
0.17329682409763336,
-0.07280785590410233,
0.08740253746509552,
0.004414500668644905,
-0.13667762279510498,
-0.13208933174610138,
-0.6141059398651123,
-0.13787242770195007,
0.47079065442085266,
-0.27934056520462036,
0.15751895... | |
How can one ignore Unexpected element situation in JAXB ans still get all other kind of javax.xml.bind.UnmarshalException?
```
obj = unmler.unmarshal(new StringReader(xml))
```
Notice i still want to get the obj result of the xml parsing.
The solution.
In JAXB implementing ValidationEventHandler like so:
```
class... | [
-0.18405863642692566,
-0.04079046845436096,
0.37296611070632935,
-0.1577317714691162,
0.0587913878262043,
0.07467380911111832,
0.40493160486221313,
-0.634409487247467,
-0.12578687071800232,
-0.37012410163879395,
-0.46330174803733826,
0.5295899510383606,
-0.3348957896232605,
-0.151759430766... | |
I am trying to find the best practice for generating and outputting html which would require a database query first to obtain the info. Currently in the aspx page I have a div with runat server:
```
<div runat="server" id="leaflet"></div>
```
Now just as a start to do a bit of testing I have a method that runs on pa... | [
-0.14014409482479095,
0.11442852765321732,
0.8782417178153992,
-0.04752481356263161,
-0.040736954659223557,
-0.050435904413461685,
0.14866624772548676,
-0.06038172170519829,
-0.13633298873901367,
-0.9361518621444702,
0.05396224930882454,
0.37759339809417725,
-0.12612098455429077,
0.1797012... | |
the return is a concatenation of about 10 fields some very long as they are content.
I don't by any means think this is the best solution, but what is? A StringBuilder? Can I Write Each Part in turn to the site avoiding the concatenation in the method? Is the server div even best?
Edit: Forgot to put some of my cont... | [
0.061242278665304184,
0.0891052782535553,
0.7493516802787781,
0.15923921763896942,
-0.34191885590553284,
0.08510082960128784,
0.18965642154216766,
-0.2506878972053528,
0.019280467182397842,
-0.3140906095504761,
-0.028861090540885925,
0.42503276467323303,
-0.07759177684783936,
-0.1182645708... | |
tags on the page, and doesn't stuff all the text in the ViewState.
And yes, use StringBuilder if you need to concatenate many long strings. This will be way more memory efficient.
The other solution would be to see if you can make some fixed markup on the page and put the contents of each DB field in it's own control... | [
0.5236337780952454,
-0.3186472952365875,
0.14377732574939728,
0.20486405491828918,
-0.3938971757888794,
-0.22997772693634033,
0.19104216992855072,
-0.35142946243286133,
-0.002929151291027665,
-0.6901988387107849,
0.029469341039657593,
0.4499264061450958,
-0.5609442591667175,
-0.11939375102... | |
`FromIp` contains `"192.168.1.1"`. I want to get the last number, but I can't figure out what's wrong here:
```
Dim str As String
str = FromIP.Text.Substring(FromIP.Text.LastIndexOf("."), FromIP.Text.Length).ToString()
MessageBox.Show(FromIP.Text.Length)
```
Tested code:
```
Dim FromIp As String = "... | [
0.3154718279838562,
-0.12490115314722061,
0.8343797326087952,
-0.201741024851799,
0.10062456876039505,
0.0052342223934829235,
0.39124253392219543,
-0.6474332809448242,
-0.10217652469873428,
-0.31380030512809753,
-0.19570063054561615,
0.5629607439041138,
-0.3320148289203644,
0.1111720353364... | |
Dim FromIp As String = "192.168.1.1"
Dim IpPart As String() = FromIp.Split(".")
MessageBox.Show(IpPart(3))
``` | [
0.43515744805336,
-0.592405378818512,
0.6348639726638794,
-0.19378286600112915,
-0.2587840259075165,
-0.25690391659736633,
0.3139806389808655,
-0.39143410325050354,
-0.30346187949180603,
-0.2071099579334259,
-0.3604682385921478,
0.48078101873397827,
-0.5358021855354309,
0.12197870016098022... | |
In a nutshell: I want to do the same thing "Dependency Walker" does.
Is there any Win32 API function which can enumerate the dependencies of a EXE and/or DLL file?
And is there any safe way to detect dependencies on ActiveX classes? (I doubt it is possible, but who knows ...)
**EDIT:** I'm aware of available tools w... | [
0.33204227685928345,
0.008773637935519218,
0.07019930332899094,
-0.23794561624526978,
-0.03015206940472126,
-0.0823550745844841,
0.23965227603912354,
-0.2171316146850586,
-0.24585652351379395,
-0.6710186004638672,
-0.006004070397466421,
0.6631600856781006,
-0.5874572992324829,
0.1489966362... | |
Dependency Walker](http://www.mail-archive.com/delphi@delphi.org.nz/msg11397.html)*.
You need to refer some other site to download since the link given in this mail trail is not working.
Please check *[MSJ Source Code Updates](http://www.microsoft.com/msj/codeupdates.aspx)*: Since I don't have time, I have not checke... | [
0.07231312245130539,
0.1676533967256546,
0.267393559217453,
-0.29368531703948975,
0.19611307978630066,
-0.18554407358169556,
0.36472415924072266,
-0.04532378166913986,
-0.29948684573173523,
-0.7890992760658264,
-0.12336914241313934,
0.5086325407028198,
-0.3311110734939575,
0.03729042783379... | |
I am using Carbide (just upgraded to 2.0) to develop an S60 3rd Edition application.
I would like to know the easiest way to change the icon (both the application icon on the device menu **and** the icon at the top left of the main view) because I have the need to skin my application in many different ways as easily a... | [
0.6587069034576416,
0.23430511355400085,
0.3858789801597595,
0.21896259486675262,
-0.029581313952803612,
0.05988861247897148,
0.12557806074619293,
-0.0042269970290362835,
-0.2144535928964615,
-0.6593119502067566,
0.3450653553009033,
0.8153943419456482,
-0.18881651759147644,
0.2909345030784... | |
your app use (in the status bar):
```
CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();
CAknContextPane* cp=(CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
_LIT(KContextBitMapFile, "my_bitmap_file.mbm");
CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(KContextBitMapFile, EMbmBitmap);
Clea... | [
0.04378710687160492,
0.2066696435213089,
0.819021999835968,
-0.0924399197101593,
0.2005053162574768,
0.4352014362812042,
0.5957441926002502,
-0.04842175543308258,
-0.2540287375450134,
-0.8489981889724731,
-0.6049374938011169,
0.6907438039779663,
-0.6490704417228699,
-0.19694073498249054,
... | |
It's been suggested that this might be a reasonable approach, in order to minimize changes to an existing server configurations, but is it actually valid/supported? I've not been able to find anything specific either way.
In practice, with a JBoss Portal V2.4.2 server, there appears to be some class-loading issues, so... | [
0.410934180021286,
-0.3276338577270508,
0.009423627518117428,
0.24878421425819397,
-0.204143688082695,
-0.24945077300071716,
0.11432966589927673,
0.21689382195472717,
-0.4816516637802124,
-0.7465012669563293,
0.046792034059762955,
0.1758425533771515,
-0.36938929557800293,
0.215606808662414... | |
be a valid AppServer?
The answer is that yes, it is valid, **but** the specific JBoss Portal V2.4.\* versions appear to have class-loader issues such that only the more basic web-apps will run correctly. | [
0.404705673456192,
0.09623343497514725,
0.539485514163971,
0.09535974264144897,
0.059342674911022186,
-0.2608751952648163,
0.4150460958480835,
-0.1713394969701767,
0.015318388119339943,
-0.2799972593784332,
-0.459314227104187,
0.6343837976455688,
-0.3432994484901428,
-0.21242378652095795,
... | |
the other day a colleague of mine stated that using static classes can cause performance issues on multi-core systems, because the static instance cannot be shared between the processor caches. Is that right? Are there some benchmarks around proofing this statement? This statement was made in the context of .Net develo... | [
0.39344459772109985,
0.2624536454677582,
-0.45218604803085327,
0.12247104942798615,
-0.30130815505981445,
-0.06069985032081604,
0.31277403235435486,
0.38920578360557556,
-0.4882625341415405,
-0.45676389336586,
0.23120811581611633,
0.4248168170452118,
-0.18216866254806519,
0.420399993658065... | |
isn't terribly important. If you don't need the shared data in the first place, I expect you wouldn't have a static class anyway.
Besides all of this, in any given application there's likely to be a much bigger bottleneck than processor caches for shared data in static classes.
As ever, write the most sensible, reada... | [
0.1578426957130432,
0.2026309370994568,
-0.1751054972410202,
0.3458903431892395,
0.06786543130874634,
-0.034607306122779846,
0.12198752909898758,
0.22282707691192627,
-0.1977570503950119,
-0.5796972513198853,
-0.23368361592292786,
0.7379651665687561,
-0.029251031577587128,
-0.1256296336650... | |
The company I work for sells a J2EE application that runs on Tomcat, WebSphere, or WebLogic. We have a customer that is trying to decide between Tomcat and WebSphere. They're leaning towards WebSphere because they're concerned that Tomcat has more security holes.
After searching around on the web, I've been unable to ... | [
0.6422788500785828,
0.4276406764984131,
0.14238324761390686,
0.14198347926139832,
0.0336826853454113,
0.013753821142017841,
0.122139111161232,
0.1039402186870575,
-0.17648477852344513,
-0.3546273112297058,
-0.005959675181657076,
0.6824288964271545,
-0.11729428917169571,
0.09133874624967575... | |
all up.
Are you also evaluating the security implications of Apache HTTP Server, IBM HTTP Server, and IIS?
Security involves so much more than just what application server you choose to run your webapp on.
[Tomcat security report](http://tomcat.apache.org/security-6.html)
[Websphere security report](http://www-01.i... | [
0.2601005733013153,
0.1061505451798439,
0.6353375315666199,
0.095606729388237,
0.19181157648563385,
-0.18346436321735382,
0.1636590212583542,
-0.382135272026062,
-0.6799589991569519,
-0.2968779504299164,
-0.2062251716852188,
0.5814314484596252,
-0.2541249692440033,
-0.07118869572877884,
... | |
I am dropping something in a ListView in WPF. I need to know the item in the (X,Y) position I am dropping. How can I do this?
---
The WPF ListView doesn't have GetItemAt. I return to my original problem.
Done! Thanks to this article
<http://www.codeproject.com/KB/WPF/WPF_Drag_And_Drop_Sample.aspx>
```
private int G... | [
0.15374691784381866,
-0.3865410387516022,
0.38579273223876953,
-0.29523757100105286,
-0.09659293293952942,
0.11530214548110962,
0.22374482452869415,
-0.40605878829956055,
-0.421474814414978,
-0.3865818679332733,
-0.26827529072761536,
0.29779183864593506,
-0.49820786714553833,
0.10597521066... | |
index = i;
break;
}
}
return index;
}
private bool IsMouseOverTarget(Visual target, GetPositionDelegate getPosition)
{
Rect bounds = VisualTreeHelper.GetDescendantBounds(target);
Point mousePos = getPosition((IInputElement)target);
return bounds.Contains(mousePos);
}
delegate P... | [
-0.15394949913024902,
-0.30379030108451843,
0.6841051578521729,
-0.0924077033996582,
0.010117119178175926,
0.06539890170097351,
0.26985496282577515,
-0.48589956760406494,
-0.3789873421192169,
-0.4651417136192322,
-0.34249016642570496,
0.4139571189880371,
-0.3360494375228882,
0.265377730131... | |
What are your opinions and experiences regarding using TDD when developing an user interface?
I have been pondering about this question for some time now and just can't reach a final decision. We are about to start a Silverlight project, and I checked out the [Microsoft Silverlight Unit Test Framework](http://code.msd... | [
0.6739590167999268,
0.001618727925233543,
0.09720443189144135,
0.13339225947856903,
-0.39513224363327026,
-0.16095009446144104,
0.01432414073497057,
-0.13462746143341064,
-0.009780575521290302,
-0.6432746052742004,
0.20162776112556458,
0.4897579252719879,
-0.11905698478221893,
0.0057555241... | |
UI components is pointless. First because layout is subjective and should be "tested" by humans. Second, because as the UI changes you'll be constantly rewriting your tests.
Similarly, don't test the GUI components themselves, unless you're writing new components. Trust the framework to do its job.
Instead, you shoul... | [
0.19693507254123688,
-0.08544644713401794,
0.37512707710266113,
0.49817585945129395,
-0.10012545436620712,
-0.29132071137428284,
0.4023570716381073,
-0.3409799635410309,
0.1238074079155922,
-0.703620195388794,
0.03723239153623581,
0.6617223024368286,
-0.3272950053215027,
-0.034938652068376... | |
coupled to the UI. | [
-0.04891647771000862,
-0.16499991714954376,
0.48061609268188477,
0.18923287093639374,
0.020166922360658646,
-0.004790811333805323,
-0.21354980766773224,
-0.07298929244279861,
-0.08909562230110168,
-0.45755136013031006,
-0.18723750114440918,
0.23898683488368988,
0.11864355951547623,
0.14323... | |
Is it recommended to set member variables of a base class to protected, so that subclasses can access these variables? Or is it more recommended to set the member variables to private and let the subclasses get or set the varible by getters and setters?
And if it is recommended to use the getters and setters method, w... | [
0.20881956815719604,
-0.25876036286354065,
-0.2861955761909485,
0.2384299784898758,
-0.18883483111858368,
-0.29983630776405334,
0.15884727239608765,
0.03670318052172661,
-0.3327771723270416,
-0.10705835372209549,
-0.15930648148059845,
0.7575427889823914,
-0.24790649116039276,
0.09461792558... | |
exception of static readonly fields with immutable values (whether const or not). To me, properties just give a better degree of encapsulation. How data is stored is an *implementation* decision, not an *API* decision (unlike properties). Why should class Foo deriving from class Bar care about the *implementation* of c... | [
0.10620787739753723,
0.1652592271566391,
-0.14909830689430237,
-0.02399415709078312,
-0.21300846338272095,
-0.27213165163993835,
0.23389707505702972,
-0.004870707634836435,
-0.3060028851032257,
-0.39039385318756104,
-0.162826269865036,
0.6598356366157532,
-0.3424891233444214,
0.04093713685... | |
How do you go about building a complete keyboard-accessible web application? Assuming that this for a controlled deployment environment (for use within an org) where access is restricted (not open to public).
Update: Forgot to mention that this is aimed at improving data entry efficiency and is not disability-related... | [
-0.1171971932053566,
-0.029363589361310005,
0.23209917545318604,
0.11196408420801163,
0.07162006199359894,
-0.18459030985832214,
0.2853524684906006,
-0.00555969076231122,
-0.19102953374385834,
-0.6303513050079346,
-0.20474356412887573,
0.6716945767402649,
-0.13604529201984406,
-0.751929044... | |
ready for a pain in the ass process as all the browser have different already predefined shortcuts.
* **You'll work in a controlled environment**. Same as above, with all this plugins, and associated tool that add functionalties to the browser, it becames a nightmare to avoid conflicts.
* **You'll make LOTS of User acc... | [
0.423662006855011,
-0.1127156987786293,
0.2825349271297455,
0.20752958953380585,
0.09625164419412613,
0.02901887334883213,
0.5139641165733337,
-0.06136401370167732,
-0.3432353436946869,
-0.8055916428565979,
0.14535556733608246,
0.7234446406364441,
0.13277295231819153,
-0.23084670305252075,... | |
it before going-on, or you'll hit the wall. | [
0.15048597753047943,
0.11489879339933395,
0.14989899098873138,
-0.0865858867764473,
-0.16080071032047272,
0.10075201094150543,
0.30881059169769287,
-0.21220044791698456,
-0.13879013061523438,
-0.31359991431236267,
0.1515864133834839,
0.6319549679756165,
0.6673007607460022,
-0.3697326481342... | |
Somewhere along the line I picked up the notion that using iframes is 'bad practice'.
Is this true? What are the pros/cons of using them?
As with all technologies, it has its ups and downs. If you are using an iframe to get around a properly developed site, then of course it is bad practice. However sometimes an ifra... | [
0.8544960021972656,
0.4501098096370697,
0.15042991936206818,
0.22858603298664093,
-0.04640103131532669,
-0.48990610241889954,
0.5362521409988403,
0.5314821004867554,
-0.07583095878362656,
-0.6813951730728149,
0.07933256775140762,
0.0026206737384200096,
-0.2701868712902069,
0.15177644789218... | |
I've seen iframes abused as well. It should never be used as an integral part of your site, but as a piece of content within a site.
Usually, if you can do it without an iframe, that is a better option. I'm sure others here may have more information or more specific examples, it all comes down to the problem you are t... | [
0.3616192936897278,
0.10389574617147446,
-0.10741651058197021,
0.13161303102970123,
-0.33653727173805237,
-0.2824798822402954,
0.4294939935207367,
0.5970634818077087,
-0.3879273235797882,
-0.6576630473136902,
0.003162371227517724,
0.0892496407032013,
-0.43400338292121887,
0.008906133472919... | |
I have a product registration form that allows the user to add additional product fields by clicking "add product". When the user clicks add product, Javascript creates new product field in an existing div.
I currently allow up to 10 products to be added on the form, so I setup a div structure like this:
```
<div id=... | [
0.9170213341712952,
0.15549442172050476,
0.5001595616340637,
-0.5051952004432678,
-0.18500331044197083,
0.33890026807785034,
-0.2867627739906311,
-0.3514452874660492,
-0.12899699807167053,
-0.5546196103096008,
-0.1529160887002945,
0.23641467094421387,
-0.3844919800758362,
0.344384968280792... | |
my current setup won't support this since I need to hard code separate div's for each potential product so Javascript has a specific place to drop more data.
NOTE: Before someone suggests using a single div and appending new data into it, that doesn't work. Sadly, all data entered in previous fields is cleared whenev... | [
0.5042055249214172,
-0.07554425299167633,
0.437852680683136,
-0.25336572527885437,
0.025613391771912575,
0.11251077055931091,
0.03286854177713394,
-0.30607858300209045,
-0.03471916541457176,
-0.7847667336463928,
-0.10394763201475143,
0.3435960114002228,
-0.4575568437576294,
0.2352977842092... | |
My question is, if an interface that is implemented implicitly by extending a class that already implements it, should be explicitly implemented by the class, if the class wants to advertise the fact, that it fulfills the contract of that interface.
For instance, if you want to write a class, that fulfills the contra... | [
0.196678027510643,
0.1619417667388916,
0.09142276644706726,
-0.14607574045658112,
-0.04002735763788223,
0.04944536089897156,
-0.1410444676876068,
-0.18460853397846222,
-0.10996518284082413,
-0.6178979873657227,
0.10164817422628403,
0.6167521476745605,
-0.5250179171562195,
-0.23235206305980... | |
considered better style? What reasons do you have to prefer one way or another? In which situations you would prefer way 1 or way 2?
I asked [this same question long ago on my blog](http://tech.puredanger.com/2007/03/30/java-inheritance-question/). There is a long discussion there as well if you're interested in seeing... | [
0.42766526341438293,
-0.08238200098276138,
0.04592744633555412,
-0.24727210402488708,
-0.471491277217865,
-0.0916837751865387,
0.6589851975440979,
-0.27176225185394287,
0.14257027208805084,
-0.7499043941497803,
0.2913236618041992,
0.6956080198287964,
0.04577427729964256,
-0.282320797443389... | |
We have an existing add-in that we publish to users via click once. We would now like to use this as a vehicle to publish some of our existing C# methods directly into Excel so that the users can call them as a UDF.
For example - I have an assembly called MyAssembly, that has a class called MyClass with a public metho... | [
0.7542352676391602,
-0.05536845326423645,
0.3885768949985504,
0.05337158963084221,
-0.15337242186069489,
-0.11377453058958054,
-0.33068031072616577,
0.0398641973733902,
-0.13866198062896729,
-0.6948992013931274,
0.052146703004837036,
0.2051423043012619,
-0.2862109839916229,
0.0736734941601... | |
installed can enter =MyMethod into a cell and have my custom method run.
How would one go about doing this?
I solved this quite comprehensively by using ExcelDna, an open source XLL implementation which is very simple to use, and pretty much avoids the whole COM debacle all together. So far it has matched our requirem... | [
0.5094038248062134,
-0.09258504956960678,
0.2058652937412262,
-0.07098054885864258,
-0.008113006129860878,
-0.0518072284758091,
-0.044949665665626526,
-0.056235600262880325,
0.011285090819001198,
-0.6522718667984009,
0.11812150478363037,
0.42501068115234375,
-0.45890775322914124,
-0.064836... | |
I need to get all dlls in my application root directory. What is the best way to do that?
```
string root = Application.StartupPath;
```
Or,
```
string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName;
```
And after that,
```
Directory.GetFiles(root, "*.dll");
```
Which way is better? Are... | [
-0.06025009602308273,
0.12685543298721313,
0.5049917697906494,
-0.04831128567457199,
0.3026870787143707,
-0.050267670303583145,
0.22850506007671356,
-0.17950446903705597,
-0.3508773446083069,
-0.9224336743354797,
-0.15406563878059387,
0.5147019624710083,
-0.4641939401626587,
0.221630528569... | |
I am actually trying to start a process for winzip and zip a folder. This i am doing using the below code in vb.
```
Dim startInfo As New System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
Dim tempFileName As String
Try
startInfo = New System.Diagnostics.ProcessStartInfo( _
"c:\Pr... | [
0.34699389338493347,
0.06803366541862488,
0.6224647760391235,
-0.33834677934646606,
0.21058982610702515,
0.0648735761642456,
0.3825252950191498,
-0.17118771374225616,
-0.3431176245212555,
-0.4455886483192444,
-0.16551175713539124,
0.5897853374481201,
-0.14249597489833832,
0.256877154111862... | |
Throw
End Try
```
This works fine when it's put in a button click event of a windows application. But when the same is done in a button click event of a web application I can see the process is started in the task manager of the machine. But its doesn't zip nor does it close the application nor does it pop up its win... | [
0.2613409161567688,
0.20786692202091217,
0.17875787615776062,
-0.1551259458065033,
-0.15712817013263702,
-0.15467704832553864,
0.5699428915977478,
-0.307401180267334,
0.010011842474341393,
-0.5796738862991333,
-0.08768095076084137,
0.4469357430934906,
-0.0031517071183770895,
0.181369557976... | |
using 7z zip, it does work fine form a web application itself...
Is there a workaround for this process?
I believe that the .Net framework has built in zip capabilities. I would try using those first. Your zip program probably isn't running because of permissions on the web server.
Edit
I just checked and there seem... | [
0.3398723006248474,
-0.15960828959941864,
0.2230868637561798,
0.03849930316209793,
0.17257578670978546,
-0.3166659474372864,
0.4420675039291382,
-0.08771262317895889,
-0.26461857557296753,
-0.590060830116272,
-0.29580721259117126,
0.5624804496765137,
-0.36690765619277954,
-0.00811459589749... | |
I have a fresh install of django 1.0 and a simple page served from it takes 5 secs to load. On my colleague's computer it takes almost no time.
I start the server using
```
python manage.py testserver
```
I can see each GET request (PNGs and style sheets) take about half a second.
Another weird thing, which I th... | [
0.40967226028442383,
0.4407602846622467,
0.19491682946681976,
-0.32791492342948914,
-0.3473129868507385,
-0.2329104095697403,
0.3626503348350525,
-0.1381392776966095,
-0.2441883236169815,
-0.8331097960472107,
0.1541229486465454,
0.4918592572212219,
-0.1710614562034607,
-0.1049095019698143,... | |
exclaim that sqlite doesn't much change the time it takes to load a page, but it does speed up server startup.
It looks like IO problem, but I don't see general performance problems on my machine, apart from django at least.
Django runs on python2.4, I'm running Vista. I have also checked python2.5.
Thanks ΤΖΩΤΖΙΟΥ,... | [
0.05930690839886665,
0.5684319734573364,
0.3646041452884674,
-0.17220216989517212,
-0.19340971112251282,
0.0017886353889480233,
0.4493085741996765,
0.10608328878879547,
-0.41274020075798035,
-0.8292676210403442,
0.20411178469657898,
0.7006410956382751,
-0.3660145401954651,
0.13306492567062... | |
a problem browsing to localhost on some Windows machines. You can solve it by switching off ipv6, which isn't really recommended. Using 127.0.0.1 directly is another way round the problem. | [
-0.09028459340333939,
0.011990592814981937,
0.10749891400337219,
0.2633488178253174,
0.06187717989087105,
-0.5044001340866089,
0.6754316091537476,
0.49307581782341003,
-0.437566339969635,
-0.8326572775840759,
-0.3895539343357086,
0.6614727973937988,
-0.3853868246078491,
0.510607898235321,
... | |
In a custom role provider (inheriting from RoleProvider) in .NET 2.0, the IsUserInRole method has been hard-coded to always return true:
```
public override bool IsUserInRole(string username, string roleName) { return true; }
```
In an ASP.NET application configured to use this role provider, the following code retu... | [
-0.3372032642364502,
-0.314719021320343,
0.6186409592628479,
-0.3322363793849945,
-0.07117439806461334,
-0.01590736210346222,
0.32627782225608826,
-0.2045765221118927,
-0.2733525037765503,
-0.5378797650337219,
-0.15084967017173767,
0.6043061017990112,
-0.5117021799087524,
0.015870425850152... | |
doesn't seem to be an override available for the version that takes a single string, which has led to my assumption in #2.
I looked at Roles.IsUserInRole(string rolename) in .net reflector, and it resolves to the following:
```
public static bool IsUserInRole(string roleName)
{
return IsUserInRole(GetCurrentUserNa... | [
-0.47254374623298645,
-0.2068299651145935,
0.7672891020774841,
-0.34066203236579895,
0.1513923704624176,
0.16423071920871735,
0.2560952305793762,
-0.1586262434720993,
-0.3298335373401642,
-0.5678159594535828,
0.031140044331550598,
0.6006227731704712,
-0.4668828248977661,
0.1556864380836486... | |
be willing to bet this is returning an empty string because you either don't have a Current User, or its name is an empty string or null.
In the `IsUserInRole(string username, string roleName)` method, there is the following block of code right near the beginning:
```
if (username.Length < 1)
{
return fa... | [
0.14192891120910645,
-0.21799880266189575,
0.407071977853775,
-0.11379185318946838,
-0.049834299832582474,
-0.20739689469337463,
0.3578474819660187,
-0.07905712723731995,
0.07721246778964996,
-0.780127227306366,
0.11662381142377853,
0.8179301619529724,
-0.25277912616729736,
0.3040770590305... | |
I'm working with NHibernate and need to retrieve and process up to 2 million rows. Ideally, I could process each row - one at a time - without NHibernate loading all 2 million in memory at once (because, you know, that hurts).
I'd prefer to get an IEnumerable which would call the data reader iteratively for each read... | [
-0.15264326333999634,
0.19071337580680847,
0.3701596260070801,
-0.18657125532627106,
-0.2270972579717636,
0.18562869727611542,
-0.04429209977388382,
-0.21288642287254333,
-0.12362108379602432,
-0.8981799483299255,
0.3114570379257202,
0.2785383462905884,
-0.20059822499752045,
0.324515640735... | |
with NHibernate's ICriteria? Everything it returns seems to be IList, and fully loaded before handing the collection reference off. Why IList instead of IEnumerable?!
I don't mean "lazy" in the traditional sense that NHibernate uses with regards to loading child or parent objects. I want a **lazy IEnumerable meaning s... | [
-0.20732687413692474,
-0.03243148326873779,
0.3860420286655426,
-0.1170387715101242,
-0.36000925302505493,
-0.08295127749443054,
0.1640709936618805,
-0.07834518700838089,
-0.31186774373054504,
-0.4534125030040741,
-0.02799558825790882,
0.2753009498119354,
-0.38722938299179077,
0.3097662329... | |
I’m looking for a Perl ORM library that has support for reverse engineering of the database schema. All I’ve found so far is
<http://perlorm.sourceforge.net/>
and it appears to have no reverse engineering support.
There is a [list of recommended ORM modules at the P5P wiki](http://www.perlfoundation.org/perl5/index.cgi... | [
0.284952312707901,
0.030341537669301033,
0.2983206808567047,
0.027396073564887047,
-0.10754210501909256,
0.15852735936641693,
0.19576846063137054,
-0.18926124274730682,
-0.2597656548023224,
-0.16625240445137024,
0.0137671809643507,
0.24892376363277435,
-0.264791876077652,
0.343837738037109... | |
I need to serve up a few .asp pages from within my ASP.NET site.
This ASP.NET site has a handler that allows us to serve up pages out of the database instead of finding them on disk (where the .asp files are located).
The problem appears to be that the .NET isapi (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet\_... | [
0.2260642945766449,
-0.043681707233190536,
0.35211676359176636,
0.09050261974334717,
-0.10858771204948425,
-0.1728767454624176,
0.1993120312690735,
0.15450061857700348,
-0.42328158020973206,
-0.5407143831253052,
-0.11379298567771912,
0.1718882918357849,
-0.36108115315437317,
0.327975749969... | |
leave the .asp files alone?
one alternative is to set up a virtual directory which only can execute .asp and without asp.net support. | [
0.3687092959880829,
-0.2721812129020691,
-0.11645611375570297,
0.22811955213546753,
0.13076600432395935,
-0.2785511612892151,
0.3950226902961731,
-0.06197734177112579,
-0.3603193759918213,
-0.44576677680015564,
-0.32395032048225403,
0.3682113587856293,
-0.3501734435558319,
0.02048929408192... | |
Is it Oracle or MySQL or something they have built themselves?
Bigtable
--------
[A Distributed Storage System for Structured Data](http://research.google.com/archive/bigtable.html)
> Bigtable is a distributed storage
> system (built by Google) for managing structured data
> that is designed to scale to a very
> l... | [
0.2029886543750763,
-0.01745586283504963,
0.026084937155246735,
0.4618142545223236,
0.17172256112098694,
-0.3824252188205719,
-0.28237199783325195,
0.11187482625246048,
-0.6193046569824219,
-0.5259934067726135,
-0.39311113953590393,
0.08518678694963455,
-0.31952857971191406,
0.251924306154... | |
latency requirements (from backend
> bulk processing to real-time data
> serving).
>
>
> Despite these varied
> demands, Bigtable has successfully
> provided a flexible, high-performance
> solution for all of these Google
> products.
**Some features**
* fast and extremely large-scale DBMS
* a sparse, distrib... | [
-0.24584059417247772,
-0.1181325614452362,
0.2921305298805237,
0.1906566172838211,
-0.021739166229963303,
-0.13808712363243103,
0.10433676093816757,
0.04261050373315811,
-0.43206509947776794,
-1.0345280170440674,
-0.2162451446056366,
0.07086390256881714,
-0.20478786528110504,
0.10035327076... | |
which is a field for time, allowing versioning)
* tables are optimized for GFS (Google File System) by being split into multiple tablets - segments of the table as split along a row chosen such that the tablet will be ~200 megabytes in size.
**Architecture**
BigTable is not a relational database. It does not support ... | [
-0.06100558489561081,
0.07508476078510284,
0.27900561690330505,
0.18892093002796173,
0.09226054698228836,
0.06216776743531227,
-0.0508909747004509,
0.15946602821350098,
-0.58543461561203,
-0.9579361081123352,
-0.1255297213792801,
-0.3067728579044342,
-0.350208044052124,
0.2857253849506378,... | |
"select 'n' versions of this Web page" or "delete cells that are older than a specific date/time."
In order to manage the huge tables, Bigtable splits tables at row boundaries and saves them as tablets. A tablet is around 200 MB, and each machine saves about 100 tablets. This setup allows tablets from a single table ... | [
-0.1302369236946106,
-0.014477429911494255,
0.5233415365219116,
0.1566968858242035,
0.24667194485664368,
0.1586216390132904,
-0.0340200699865818,
-0.10855770111083984,
-0.5820749402046204,
-0.9928103089332581,
-0.0937160775065422,
-0.09217902272939682,
-0.09800604730844498,
0.1904162019491... | |
a tablet may be spread across many other servers so that the performance impact on any given machine is minimal.
Tables are stored as immutable SSTables and a tail of logs (one log per machine). When a machine runs out of system memory, it compresses some tablets using Google proprietary compression techniques (BMDiff... | [
-0.1274135708808899,
0.42804205417633057,
0.44319143891334534,
0.21102052927017212,
0.292072057723999,
0.42768293619155884,
-0.14067120850086212,
0.09296013414859772,
-0.4186275601387024,
-0.7951133847236633,
-0.4735163152217865,
-0.1029490977525711,
-0.1414991170167923,
0.2088331729173660... | |
META0 table, of which there is only one. The META0 table keeps track of many META1 tablets that contain the locations of the tablets being looked up. Both META0 and META1 make heavy use of pre-fetching and caching to minimize bottlenecks in the system.
**Implementation**
BigTable is built on **Google File System** (G... | [
0.02530607581138611,
0.13619500398635864,
0.5613349676132202,
0.014114747755229473,
-0.021239498630166054,
0.24742472171783447,
0.05677544325590134,
-0.0448489785194397,
-0.28158247470855713,
-0.9859854578971863,
-0.006287946365773678,
0.04013499245047569,
-0.5047939419746399,
-0.078194476... | |
possibly associating it with some metadata, which it can renew by sending keep alive messages back to Chubby. The locks are stored in a filesystem-like hierarchical naming structure.
There are three primary **server types** of interest in the Bigtable system:
1. Master servers: assign tablets to tablet servers, keeps... | [
0.05347800999879837,
0.23313863575458527,
0.46749627590179443,
0.15995115041732788,
0.2984117567539215,
0.22391821444034576,
-0.12383653968572617,
-0.28383177518844604,
-0.35962924361228943,
-0.5333467125892639,
-0.30433231592178345,
-0.05970553681254387,
-0.27752894163131714,
0.4326279461... | |
the Chubby distributed lock service. Lots of actions within BigTable require acquisition of locks including opening tablets for writing, ensuring that there is no more than one active Master at a time, and access control checking.
**Example from Google's research paper:**
, discussing the Bigtable content storage system used in Google's backend. | [
0.05795605480670929,
0.06388375908136368,
0.06128271669149399,
0.30517393350601196,
0.04564028978347778,
0.21741442382335663,
-0.008601862005889416,
0.13412532210350037,
-0.34262895584106445,
0.02092485874891281,
-0.2891494333744049,
-0.0028194866608828306,
0.08551771938800812,
0.394269973... | |
I want to embed the native camera application into custom form.
The RECT r properties where I want to embed the camera are the following:
r.top = 26;
r.bottom = 220;
r.left = 0;
r.right = 320;
and this is the method which runs the native camera application:
> HRESULT CPhotoCapture::CameraCapture(HWND hwndOwner, LPTS... | [
0.17008362710475922,
0.06574375182390213,
1.0634206533432007,
-0.06890027225017548,
0.16940419375896454,
0.06970634311437607,
0.3121034801006317,
-0.5219551920890808,
0.02358267270028591,
-0.41323724389076233,
-0.3474057912826538,
0.6629670858383179,
-0.2953544557094574,
0.1015159487724304... | |
//TODO:: Write to log
}
return hResult;
```
}
The method above is called from the window which dimensions are equal to r:
```
HRESULT hr = S_OK;
hr = m_PhotoCapture.CameraCapture(this->m_hWnd, L"test");
```
Does anyone know how to modify the above function (hwndOwner) the way to display the embedded resource in ... | [
0.14760680496692657,
0.0894520953297615,
0.6864290237426758,
-0.12429894506931305,
0.13983796536922455,
0.14005137979984283,
0.1508355438709259,
-0.5101568102836609,
-0.00393567094579339,
-0.761374294757843,
-0.10898491740226746,
0.6164373755455017,
-0.15034061670303345,
0.0362453162670135... | |
output of the frame grabs from the camera to that Window that the handle represents. | [
0.002594996942207217,
0.09857773780822754,
0.7899240851402283,
0.11688411980867386,
0.09211001545190811,
0.19857235252857208,
-0.21675920486450195,
-0.49367624521255493,
0.03898346424102783,
-0.6016446352005005,
-0.11148993670940399,
0.21376484632492065,
-0.22748854756355286,
0.06690960377... | |
I am messing around with different PHP logging frameworks. I am currently trying PEAR::Log. I figured that I would use its `singleton` function to make sure there was only one instance of the class around.
I have a small daemon-like script I wanted to add logging to because it was probably the simplest script in the s... | [
0.2516530454158783,
0.07034088671207428,
-0.10482420027256012,
0.03742543235421181,
-0.2276453971862793,
0.172488734126091,
0.26661416888237,
0.2240334451198578,
-0.27618399262428284,
-0.6491674184799194,
0.4438452422618866,
0.5132812857627869,
-0.2239089161157608,
0.12241911143064499,
-... | |
already specified all of the options in the initial call. Pear::Log serializes this info, but from what it looks like you still have to provide all of those variables to get the instance.
Another alternative is passing the instance into every function. Again, seems like it's less than ideal.
I suppose you could make ... | [
0.13667041063308716,
-0.018805356696248055,
0.028005603700876236,
0.0342695452272892,
0.07590200752019882,
0.12669076025485992,
0.19883115589618683,
0.2466987669467926,
-0.39930495619773865,
-0.4880512058734894,
0.0013013671850785613,
0.6325678825378418,
-0.41458430886268616,
0.10020992904... | |
public static function init(Log $log) {
self::$log = $log;
}
public static function get() {
return self::$log;
}
}
```
Once you initialize `Logger` with `Log` instance you can access it via `Logger::get`. Since dereference is possible in PHP you can then do
```
Logger::get()->doSomethin... | [
-0.13247160613536835,
-0.029806697741150856,
0.43969476222991943,
0.018432389944791794,
-0.21794748306274414,
-0.02661583386361599,
0.2897304892539978,
-0.17156986892223358,
-0.1638788878917694,
-0.42722466588020325,
-0.24763624370098114,
0.586352527141571,
-0.4161422550678253,
0.046507801... | |
I have an edit page to edit some info. the page fills a complex object. one of the properties of this object is a generic list.
If I just edit information and save, updatemodel works fine. if i remove (I do this using jquery to remove the form elements client side) something from the list the updatemodel fails with an... | [
0.16070958971977234,
0.0868837982416153,
0.44403642416000366,
0.15804140269756317,
-0.1391334980726242,
-0.2394445687532425,
0.44996827840805054,
-0.029377814382314682,
-0.2658364176750183,
-0.7590036988258362,
0.26095446944236755,
0.7130468487739563,
-0.4141428470611572,
0.298797070980072... | |
retrieving data from:
1) values from the RouteData
2) URI query string
3) request form submission
Check this places to see why your property is null. If you're deleting your form elements your property will not receive any data.
Some info [here](http://weblogs.asp.net/scottgu/archive/2008/10/16/asp-net-mvc... | [
0.2189691811800003,
-0.007442801725119352,
-0.003893941640853882,
0.06465580314397812,
0.15843695402145386,
-0.08935516327619553,
0.6134587526321411,
-0.5757903456687927,
-0.20509180426597595,
-0.36631426215171814,
-0.17955408990383148,
0.13519123196601868,
-0.37062349915504456,
0.00014627... | |
Are there any algorithms or tools that can increase the resolution of an image - besides just a simple zoom that makes each individual pixel in the image a little larger?
I realize that such an algorithm would have to invent pixels that don't really exist in the original image, but I figured there might be some algori... | [
0.32574474811553955,
-0.058603689074516296,
0.37750574946403503,
0.12883992493152618,
-0.017538098618388176,
0.22435833513736725,
-0.04673071205615997,
0.05751772224903107,
-0.5148969292640686,
-0.5230042934417725,
0.22793571650981903,
0.3166176676750183,
-0.09451677650213242,
0.0830563828... | |
I have a `crontab` that looks like
```
0 0 * * * pg_dump DB_NAME > /path/to/dumps/`date +%Y%m%d`.dmp
```
which works fine when I run it manually, but not when `cron` runs it. After digging through the logs, I see
```
Dec 12 00:00:01 localhost crond[17638]: (postgres) CMD (pg_dump DB_NAME > /path/to/dumps/`date +)
... | [
-0.21552887558937073,
0.6607995629310608,
0.5639688372612,
-0.0019821871537715197,
0.10643679648637772,
0.06662867218255997,
0.3030814230442047,
0.052036114037036896,
-0.21720999479293823,
-0.6318842768669128,
-0.10894482582807541,
0.8315558433532715,
0.11359845846891403,
0.504655480384826... | |
specifies the command to
> be
> run. The entire command portion of the line, up to a
> newline or %
> character, will be executed by /bin/sh or by the shell specified in
> the
> SHELL variable of the crontab file. Percent-signs (%) in the
> command,
> unless escaped with backslash (\), will be changed into ne... | [
0.4591110944747925,
-0.414259135723114,
0.348198801279068,
-0.15233206748962402,
0.0920468419790268,
0.23830974102020264,
0.29136019945144653,
-0.3471486270427704,
0.3760586380958557,
-0.5427640080451965,
-0.32524657249450684,
0.4973894953727722,
-0.30985212326049805,
0.11408531665802002,
... | |
shell’s trailing "\". | [
-0.021756313741207123,
0.42349085211753845,
0.2669968008995056,
-0.41481342911720276,
0.1042511910200119,
0.08482544869184494,
0.04698719456791878,
0.003670340869575739,
-0.1227637305855751,
-0.33282458782196045,
-0.06207076460123062,
0.2861209809780121,
0.06470993161201477,
0.330337792634... | |
I am considering making use of GWT as the front-end to an **existing** web application.
I can't justify a complete rewrite to 100% GWT in one go. It is likely that I would migrate parts of the system to GWT gradually. However for consistency I would like to make use of the GWT TabPanel, MenuBar, etc as global interfac... | [
0.19458070397377014,
0.08639293164014816,
0.5556461811065674,
-0.19435840845108032,
-0.33940115571022034,
-0.12221821397542953,
0.2067810595035553,
0.19142676889896393,
-0.19804784655570984,
-0.8340001106262207,
-0.21774616837501526,
0.5059338808059692,
-0.4209801256656647,
0.2283812910318... | |
a selection of DIVs in the dynamically generated host page. If the DIV is found, a suitable widget is slotted into place, i.e. menuBar, tabPanel.
A lot of the configuration for the included widgets can also be slotted into the host page as JSON structures. For instance, I have implemented an adapter that dynamically s... | [
0.37151724100112915,
0.026813488453626633,
0.593764066696167,
0.24194015562534332,
-0.3193988502025604,
-0.06416770815849304,
0.0437580868601799,
0.07550773024559021,
-0.2937917411327362,
-0.7259689569473267,
-0.31918343901634216,
0.5943188667297363,
-0.3827553987503052,
-0.176365777850151... | |
hundreds of dynamically generated ones.
Can anyone highlight any issues that the above approach may run into, particularly as the GWT module increases in size? I would aim to keep the legacy wrapper module intentionally lean. Other functionality would be implemented in separate modules.
How have other people integrat... | [
0.7831438779830933,
-0.22061458230018616,
0.2885972857475281,
0.24418555200099945,
-0.02481987327337265,
0.0099989278241992,
-0.3014843761920929,
-0.2654121518135071,
-0.6192991733551025,
-0.3645660877227783,
0.07653027027845383,
0.5301870703697205,
-0.28030598163604736,
0.0256993602961301... | |
on a page or not. So I don't see that you'll have any issues at all going this way. We often use this approach even for new web applications, where we just want a few 'widgets' on the page, rather than coding the whole application in GWT.
It won't make a huge difference, but one thing I would suggest is not putting t... | [
1.0032718181610107,
-0.044834528118371964,
0.18602482974529266,
0.275360643863678,
-0.15502409636974335,
-0.5154797434806824,
0.4764705002307892,
0.23914499580860138,
-0.31500008702278137,
-0.5678952932357788,
-0.0017777712782844901,
0.2814846336841583,
-0.3781113922595978,
-0.005530470050... | |
people to load in the module if it's not actually needed on that page. This of course depends on how people use your site, if they are likely to download it anyway then it won't make any difference. | [
0.8197101354598999,
-0.10104084759950638,
0.14908255636692047,
0.1561049371957779,
0.04419683292508125,
-0.22993139922618866,
0.046253424137830734,
-0.04843752458691597,
-0.307115375995636,
-0.39508044719696045,
0.007666466757655144,
0.573320746421814,
0.003699160646647215,
-0.067879624664... | |
hey guys, i'm getting an exception on the following
inner exception: {"Value cannot be null.\r\nParameter name: String"}
Which reads like a simple error message, but none of the values (image, fileName) are null. How can i find out where this null String is?
```
RipHelper.UploadImage(image, fileName);
```
which c... | [
0.17362487316131592,
0.32615897059440613,
0.41979363560676575,
0.10086143761873245,
-0.10748882591724396,
-0.2304536998271942,
0.3362012505531311,
0.23424315452575684,
-0.751900851726532,
-0.43118247389793396,
-0.16481536626815796,
0.5044886469841003,
-0.40602976083755493,
-0.0134025653824... | |
info)
at System.Int32.Parse(String s)
at Helpers.RipHelper..cctor() in C:\Helpers\RipHelper.cs:line 23
--- End of inner exception stack trace ---
at Helpers.RipHelper.UploadImage(HttpPostedFile uploadFile, String fileName)
at Helpers.UploadHelper.UploadImage(HttpContext context) in C:\Helpers\UploadHelper.cs:line ... | [
-0.296742707490921,
0.13771644234657288,
0.19329556822776794,
0.020917147397994995,
0.2840158939361572,
-0.04079597443342209,
0.37085485458374023,
0.1152271181344986,
-0.32562312483787537,
-0.6837514042854309,
-0.41618791222572327,
0.2810033857822418,
-0.5927004218101501,
0.214971631765365... | |
Are there any native Git implementations for Windows that do not require Cygwin? I've become a fan of the TortoiseSVN client, and would really like to see a similar Git client for Windows.
**Edit:** I am also considering [Mercurial](http://www.selenic.com/mercurial/wiki/), but would prefer to check out a few before I ... | [
0.37576454877853394,
-0.042473603039979935,
0.6203475594520569,
0.027992798015475273,
-0.023476028814911842,
-0.3057955801486969,
0.23216509819030762,
0.3790287673473358,
-0.058131586760282516,
-0.9257586598396301,
-0.16920167207717896,
0.7955448627471924,
-0.021870018914341927,
0.01283848... | |
in production. The most important problem now is that the shell extension part is written in c# and therefore can cause problems. I'm rewriting this in c++ at the moment, should just take another few hours. I also want to build in some features that should prevent users from screwing up (like create a stash ontop of an... | [
0.3499218821525574,
-0.07957480847835541,
0.2694090008735657,
-0.19333159923553467,
0.2670183777809143,
0.07843638211488724,
0.24293474853038788,
-0.06419996917247772,
-0.08780331909656525,
-0.62661212682724,
-0.17705802619457245,
0.7964514493942261,
-0.17648988962173462,
0.013977504335343... | |
soon. The toolset is written in C# (.Net 3.5 until version 0.6, later versions use .Net 2.0) except the shell extension part. There is also a visual studio plugin, but this is still pretty basic.
I have not tried TortoiseGit yet btw, but I really like TortoiseSVN!
Henk | [
0.27048689126968384,
-0.19568192958831787,
0.7126918435096741,
-0.06726822257041931,
0.5248631238937378,
-0.22522377967834473,
0.3306380808353424,
0.3040872812271118,
0.23228657245635986,
-1.2165886163711548,
-0.21951475739479065,
0.7615523934364319,
0.098618283867836,
-0.23183639347553253... | |
I would like to know if it is possible to copy/move files to a destination based on the origin name.
Basically, I have a /mail folder, which has several subfolders such as cur and new etc. I then have an extracted backup in /mail/home/username that is a duplicate. mv -f will not work, as I do not have permission to ov... | [
0.2760234475135803,
0.15890103578567505,
0.6091640591621399,
0.019896699115633965,
0.23532922565937042,
-0.017836811020970345,
0.2135370522737503,
-0.14245332777500153,
-0.45187807083129883,
-0.6316789984703064,
-0.10926971584558487,
0.45998451113700867,
-0.40193113684654236,
0.52586466073... | |
could be any number of folders in place of username.com, with seperate sub sirectories of their own.
What is the best way to do this?
I have to do it this way as due to circumstances I only have access to my host with ftp and bash via php.
edit: clarification
I think I need to clarify what happened. I am on a share... | [
0.17105573415756226,
0.195877343416214,
0.21292367577552795,
0.15828213095664978,
-0.053711872547864914,
-0.2013215869665146,
0.40126141905784607,
0.10697907954454422,
-0.3167843520641327,
-0.7353876233100891,
0.04450966417789459,
0.4526340663433075,
-0.10217773169279099,
0.259647965431213... | |
as I forgot about the full path. Now, I cannot simply untar because the path is wrong, and I cannot mv -f because I only have write access to files, not directories.
For copying, you should consider using `cpio` in 'pass' mode (`-p`):
```
cd /mail; find . -type f | cpio -pvdmB /home/username/mail
```
The `-v` is for... | [
0.3843533992767334,
0.2657798230648041,
0.6794163584709167,
0.1141398698091507,
0.254169225692749,
0.012501116842031479,
0.29047641158103943,
-0.05901024118065834,
-0.4272983968257904,
-0.48256996273994446,
-0.3860915005207062,
0.5372171401977539,
-0.25906339287757874,
0.25468236207962036,... | |
does unconditional copying, overwriting pre-existing files in target area. The `cd` command ensures that the path names are correct; if you just did:
```
find /mail -type f | cpio -pvdmB /home/username
```
you would achieve the same result, but only by coincidence - because the sub-directory under `/home/username` w... | [
0.20268894731998444,
0.047575198113918304,
0.3503592312335968,
-0.021649667993187904,
0.07231160253286362,
-0.3491775095462799,
0.13527923822402954,
-0.3420948088169098,
-0.34295985102653503,
-0.4425352215766907,
-0.3613975942134857,
0.7893244624137878,
-0.38962364196777344,
0.100920617580... | |
(cd /home/username/mail; tar -xf - )
```
This copies directories, not just files. To do that, you need GNU-only facilities:
```
(cd /mail; find . -type f | tar -cf - -F - ) | (cd /home/username/mail; tar -xf - )
```
The first solo dash means 'write to stdout'; the second means 'read from stdin'; the '-F' option me... | [
-0.25289759039878845,
-0.10930997878313065,
0.2467266470193863,
0.03352518752217293,
-0.25972047448158264,
0.149933859705925,
0.48935094475746155,
-0.1376403123140335,
-0.19526353478431702,
-0.4695163071155548,
-0.7105391621589661,
0.5592033863067627,
-0.36376169323921204,
-0.0387768670916... | |
ASP.NET MVC routes have names when mapped:
```
routes.MapRoute(
"Debug", // Route name -- how can I use this later????
"debug/{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = string.Empty } );
```
Is there a way to get the route name, e.g. "Debug" in the above example? I'd l... | [
-0.15650202333927155,
-0.2079525887966156,
0.6396397352218628,
-0.09933577477931976,
-0.23430868983268738,
-0.15815407037734985,
0.2329406440258026,
-0.05950061231851578,
-0.4954705834388733,
-0.629990816116333,
-0.23598997294902802,
0.040039997547864914,
-0.29866665601730347,
0.2235861718... | |
as a key in a collection. I think this is something you can still use when creating links with HtmlHelper.RouteLink for example (maybe somewhere else too, no idea).
Anyway, I needed that too and here is what I did:
```
public static class RouteCollectionExtensions
{
public static Route MapRouteWithName(this Route... | [
-0.2172616720199585,
-0.18361195921897888,
0.7644238471984863,
-0.08696842938661575,
-0.06763217598199844,
-0.07692557573318481,
0.34113916754722595,
-0.18272000551223755,
-0.17292045056819916,
-0.7304322123527527,
-0.04082731902599335,
0.2927757799625397,
-0.14742004871368408,
0.258085876... | |
return route;
}
}
```
So I could register a route like this:
```
routes.MapRouteWithName(
"myRouteName",
"{controller}/{action}/{username}",
new { controller = "Home", action = "List" }
);
```
In my Controller action, I can access the route name with:
```
RouteData.DataTokens["RouteName"]
```... | [
-0.29957687854766846,
-0.26601383090019226,
0.4525991380214691,
-0.049450334161520004,
0.04897027835249901,
-0.06319307535886765,
0.2507847845554352,
0.0085134357213974,
-0.029291173443198204,
-1.0841304063796997,
-0.028453631326556206,
0.23372821509838104,
-0.1489034742116928,
0.199484586... | |
Is it possible to get a URL from an action without knowing ViewContext (e.g., in a controller)? Something like this:
```
LinkBuilder.BuildUrlFromExpression(ViewContext context, Expression<Action<T>> action)
```
...but using Controller.RouteData instead of ViewContext. I seem to have metal block on this.
Here's how I... | [
-0.04539753124117851,
-0.10843551158905029,
0.5750163197517395,
0.0969935953617096,
0.08780978620052338,
-0.3126998245716095,
0.43045899271965027,
-0.4154353737831116,
-0.14587196707725525,
-0.5888384580612183,
-0.08616656810045242,
0.2701188325881958,
-0.24804309010505676,
0.1872445642948... | |
new RequestContext(context, _
routes.GetRouteData(context)), rvd);
return vpd.VirtualPath;
}
```
Per comments, I'll adapt to a controller:
```
string path = RouteTable.Routes.GetVirtualPath(
new RequestContext(HttpContext,
RouteTable.Routes.GetRouteData(HttpContext)),
new... | [
-0.21715636551380157,
-0.4748089909553528,
1.0225011110305786,
-0.02314784750342369,
0.1712440401315689,
0.1802273541688919,
0.4205224812030792,
-0.2076755166053772,
-0.2892931401729584,
-0.901069700717926,
-0.294442743062973,
0.5832715034484863,
-0.39024028182029724,
0.3059592843055725,
... | |
the top of my head, so I can't guarantee that it's the most efficient solution possible, but it should get you on the right track. | [
0.43473559617996216,
0.2491612732410431,
0.32811522483825684,
0.09870060533285141,
0.15928559005260468,
-0.036723483353853226,
0.19550514221191406,
0.09593014419078827,
-0.1203501969575882,
-0.24384349584579468,
0.25666698813438416,
0.691798985004425,
0.3308291435241699,
-0.251102507114410... | |
I can't seem to find a good forum focusing on iCalendar format. Specifically how iCalendar is implemented with Outlook.
If you are producing iCalendar data and want to check for problems with Outlook then you could try validating it with [Douglas Day's validator](http://icalvalid.cloudapp.net/).
His validator not only... | [
0.27386850118637085,
0.18510547280311584,
0.7976630330085754,
0.5219511985778809,
-0.06071995198726654,
-0.3586968183517456,
-0.09682832658290863,
-0.1968746930360794,
0.025308659300208092,
-0.3182411193847656,
0.18160894513130188,
0.19279257953166962,
-0.03371622785925865,
0.0275958571583... | |
When programming in C++ in Visual Studio 2008, why is there no functionality like that seen in the refactor menu when using C#?
I use **Rename** constantly and you really miss it when it's not there. I'm sure you can get plugins that offer this, but why isn't it integrated in to the IDE when using C++? Is this due to ... | [
-0.03653920441865921,
0.27644574642181396,
-0.001685627386905253,
-0.032589707523584366,
-0.43491506576538086,
-0.08015307039022446,
0.23111169040203094,
-0.1374705731868744,
-0.2762281596660614,
-0.39062178134918213,
0.13980543613433838,
1.1035120487213135,
-0.524051308631897,
-0.21157252... | |
remaining 10% of cases that simple solution will horribly break your code by changing things you never wanted to change.
Read <http://yosefk.com/c++fqa/defective.html#defect-8> for a brief discussion of the difficulties that any refactoring code in C++ has to deal with.
Microsoft has evidently decided to punt on this... | [
0.45241016149520874,
0.45754316449165344,
-0.1440153270959854,
-0.08561082184314728,
-0.1450885534286499,
0.12448136508464813,
0.5028701424598694,
-0.030957583338022232,
-0.14859120547771454,
-0.4426366984844208,
-0.3325628936290741,
0.5656195878982544,
-0.25179046392440796,
0.086033426225... | |
I have the following code, which will not work. The javascript gives no errors and appears to load fine. but clicking on a link will do nothing. An example of a link is:
```
<a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li>
```
and the code:
```
var xmlHttp
var layername
var url
f... | [
0.1358155459165573,
0.010817766189575195,
0.7818963527679443,
-0.022627510130405426,
-0.16530805826187134,
-0.4073294997215271,
0.40271174907684326,
-0.2547626495361328,
0.030568119138479233,
-0.8725360035896301,
-0.13859832286834717,
0.28878286480903625,
-0.45547816157341003,
0.3729183077... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.