text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
enable caching at the JPA level (see your persistence provider of preference for details), so you can lookup whatever data you need very fast (really fast). This is portable and cluster-friendly. That's the way I use to do it in my projects and I am very happy with it. Hope it helps.
[ 0.24981801211833954, 0.07935561239719391, 0.21551479399204254, 0.004917224869132042, -0.18445631861686707, -0.2745453715324402, 0.01173133309930563, 0.22499479353427887, -0.07917331904172897, -1.006005048751831, -0.08436313271522522, 0.38312584161758423, -0.3755840063095093, -0.14763279259...
i used this corner style: ``` .corners4{ background:url(../img/panelHeaderColor.jpg) repeat-x; -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-ra...
[ 0.11093094944953918, 0.0452621653676033, 0.8768916130065918, -0.0714477151632309, -0.08114778995513916, -0.435787558555603, 0.3039129376411438, 0.028483670204877853, -0.2897668182849884, -0.8665962219238281, 0.013760690577328205, 0.48616066575050354, -0.13076935708522797, 0.088074743747711...
you can use -webkit-border-radius. See [this question](https://stackoverflow.com/questions/262616/how-to-use-only-css-to-round-my-div-tag-areas-corners) for more information on rounded corners.
[ 0.00609970185905695, -0.08727119863033295, 0.4771796464920044, 0.2126556634902954, -0.33878958225250244, -0.24441362917423248, 0.021898876875638962, 0.05270873382687569, -0.5392259955406189, -0.554060161113739, 0.06261507421731949, 0.21455000340938568, 0.16102051734924316, -0.0695310235023...
I have my own inherited `App.Controller` from `Mvc.Controller` which then all of my controllers inherit from. I wrote a provider utilizing an interface and implemented it as `MyService` and the constructor takes the `Server` property of `Mvc.Controller` which is of `HttpServerUtilityBase`. However, I instantiate `MyS...
[ 0.0809410959482193, 0.327793687582016, 0.4310363829135895, -0.10258252173662186, -0.05062464624643326, 0.1725042164325714, -0.07117880880832672, -0.10829928517341614, -0.1247674822807312, -0.6752203106880188, 0.024128692224621773, 0.3785964548587799, -0.418758362531662, 0.4520474374294281,...
Well, I have implemented tvanfosson's suggestion, and when my app constructs `MyService` in the property `get` method, `Server` is still null. **Edit 2:** Nevermind, I was a goof. I had another `Controller` using `Server` aswell and did not change that. Case closed. Use delayed initialization to construct your service...
[ 0.10694217681884766, -0.11235519498586655, 0.4956059455871582, -0.022143380716443062, 0.12744201719760895, 0.01718418300151825, 0.5097339153289795, 0.03440917283296585, -0.19667229056358337, -0.667127251625061, -0.48114264011383057, 0.421588659286499, -0.25999394059181213, 0.40385374426841...
} return this.service; } } ``` Then, your service isn't actually instantiated until it is used in the controller action and by that time the Server property has been set.
[ -0.1491030752658844, -0.1361527293920517, 0.32112595438957214, -0.16925956308841705, 0.11856458336114883, -0.2273913323879242, 0.2946147322654724, 0.1535220444202423, 0.09987001121044159, -0.7038560509681702, -0.4123057425022125, 0.4621267020702362, -0.21433508396148682, 0.3292284905910492...
I'm encountering a situation where it takes a long time for ASP.NET to generate reply with the web page (more than 2 hours). It due to the codebehind running for a while (very long, slow loop). Browser (both IE & Firefox) stops waiting for the reply (after about an hour) and gives generic cannot display webpage error ...
[ 0.2194521576166153, -0.0606205128133297, 0.6324712634086609, -0.034967292100191116, -0.427683025598526, -0.11965391784906387, 0.7696595788002014, 0.09587224572896957, -0.3610040247440338, -0.9045105576515198, -0.05167491361498833, 0.28407740592956543, -0.04493110999464989, 0.17938141524791...
there's a timeout setting that I'm missing that's causing this. Maybe a settings in IE or Firefox? But I think they wait while the server is keeping connection alive. I'm experiencing this even when I launch app in debug mode (with compilation debug="true") on my local machine from VS (so it's not running on IIS, bu...
[ 0.4833378195762634, 0.09525105357170105, 0.7225250005722046, 0.013659575954079628, -0.17771239578723907, -0.3140367269515991, 0.6654375195503235, -0.02317921444773674, -0.20885956287384033, -0.952184796333313, -0.23824599385261536, 0.6496512293815613, -0.0652613416314125, 0.183131217956542...
can redesign around this issue running logic to a background process and getting notified when it's done through AJAX, or pull it to a desktop app or service or whatever. Something along those lines will be done eventually, but that's not what I'm asking about right now. Sounds like you're using IE and it is timing out...
[ 0.26670095324516296, -0.35168150067329407, 0.5319241881370544, 0.1487397849559784, 0.12333016842603683, -0.2560804486274719, 0.4987304210662842, -0.1512339562177658, -0.23632146418094635, -0.7741393446922302, -0.1913985162973404, 0.4105357527732849, -0.08914004266262054, -0.137418240308761...
for versions 4.0 and 4.01 > and is 60 minutes for versions 5.x, 6, > and 7. As a result, Internet Explorer > does not wait endlessly for the server > to come back with data when the server > has a problem. Back to the top > > > ### RESOLUTION > > > In general, if a page does not return within a few > minutes,...
[ -0.03972095623612404, -0.3673456609249115, 0.9345513582229614, 0.2231467366218567, 0.128877192735672, -0.321106880903244, 0.6164471507072449, 0.046193432062864304, -0.20253632962703705, -1.0078867673873901, -0.40161728858947754, 0.28060615062713623, -0.06402637809515, 0.241654634475708, ...
wait for an extensive period of time.
[ 0.7215569019317627, 0.09032723307609558, -0.07722008973360062, 0.06476573646068573, 0.016487061977386475, -0.3065422475337982, -0.1526065319776535, 0.25240615010261536, 0.22966960072517395, -0.5561850666999817, 0.21398349106311798, 0.17867420613765717, 0.18068483471870422, -0.0977642089128...
After debugging my code, I've gotten to the point where the complier accepts it, but it throws a simulator exception. The main problems I've had are with initializing the temp arrays and adding the vectors at the end. The method used for adding is one I found in a reference since you can't add STD\_LOGIC\_VECTORs Th...
[ -0.08108698576688766, -0.21251320838928223, 0.7974641919136047, -0.05596179515123367, -0.1697993278503418, 0.2783520221710205, -0.0030517238192260265, -0.5056878328323364, -0.14926351606845856, -0.6947354674339294, -0.15545515716075897, 0.5633259415626526, -0.35278552770614624, 0.182820528...
a,b,c,d,e: std_logic_vector(9 downto 0); begin process (a,b,c,d,e) variable j:integer; begin for j in 0 to 9 loop a(j) <= '0'; b(j) <= '0'; c(j) <= '0'; d(j) <= '0'; e(j) <= '0'; end loop; end process; process (cand, lier,a,b,c,d,e) variable i:integer; begin for i in 0 to 4 loop ...
[ -0.10915694385766983, -0.1269831508398056, 0.4500476121902466, -0.2858220934867859, 0.11995106935501099, 0.5330079793930054, 0.38534286618232727, -0.5127620697021484, -0.3251630663871765, -0.23025646805763245, -0.489345908164978, 0.24624238908290863, -0.23653776943683624, 0.291654348373413...
d(i+3) <= cand(3) and lier(i); e(i+4) <= cand(4) and lier(i); end loop; end process; a(5) <= a(4); a(6) <= a(4); a(7) <= a(4); a(8) <= a(4); b(6) <= b(5); b(7) <= b(5); b(8) <= b(5); c(7) <= c(6); c(8) <= c(6); d(8) <= d(7); pro <= std_logic_vector(unsigned(a) + unsigned(b)); -- + c + d + e;...
[ 0.0513463169336319, -0.1549089401960373, 0.5393423438072205, -0.3685731589794159, 0.03500092029571533, 0.4383520185947418, 0.5186439752578735, -0.8684362173080444, -0.2748187184333801, -0.13619107007980347, -0.401504784822464, 0.7189794182777405, -0.3689647614955902, 0.2871515154838562, ...
drive your signals from multiple processes, likely getting garbage in `a` and `b`. Is that what causes the error? Try putting all assignment to your temp arrays into one process.
[ 0.5022784471511841, -0.17674294114112854, -0.05578688904643059, 0.4708517789840698, -0.1834499090909958, -0.056795619428157806, 0.049767088145017624, 0.018799344077706337, -0.07144132256507874, -0.3897936940193176, 0.22331376373767853, 0.6685457229614258, -0.5465977191925049, 0.13891415297...
What are the pros and cons of using **@Autowired** in a class that will be wired up by Spring? Just to clarify, I'm talking specifically about the **@Autowired** annotation, not auto-wiring in XML. I probably just don't understand it, but to me it almost seems like an anti-pattern - your classes start to become awar...
[ 0.8016247749328613, -0.17979474365711212, 0.028060125187039375, 0.2650070786476135, -0.13151969015598297, -0.26990264654159546, 0.10841865092515945, 0.10253510624170303, -0.2832678556442261, -0.2453179806470871, 0.07876959443092346, 0.4096887707710266, 0.14868076145648956, -0.0734372138977...
time I believed that there was a value in having a "centralized, declarative, configuration" like the xml files we all used to use. Then I realized that most of the stuff in the files wasn't *configuration* - it was never changed anywhere after development, ever. Then I realized that "centralized" only has value in qui...
[ 0.4237680435180664, -0.07096527516841888, -0.06942149996757507, 0.429926335811615, 0.21108178794384003, -0.12156883627176285, 0.15799714624881744, 0.16652582585811615, -0.29890376329421997, -0.6598097085952759, 0.12557953596115112, 0.43894946575164795, 0.1654341071844101, 0.166527882218360...
So the only thing I've kept is meta-data (annotations), which is still kind-of declarative. These *never* change at runtime and they're *never* "configuration" data that someone will change on the fly - so I think keeping it in the code is nice. I use full auto-wiring as much as I can. I love it. I won't go back to ol...
[ 0.6260699033737183, 0.1466081440448761, -0.04577615112066269, 0.005975255277007818, 0.06275483965873718, -0.024497635662555695, 0.3273964822292328, 0.1910790652036667, -0.3569929897785187, -0.24595516920089722, 0.05956951156258583, 0.5176460146903992, 0.008056750521063805, -0.1103058531880...
is effectively gone. It turns out the bean name only exists because of xml. So a full layer of abstract indirections (where you would wire bean-name "foo" into bean "bar") is gone. Now I wire the "Foo" interface into my bean directly, and implementation is chosen by run-time profile. This allows me to *work with code* ...
[ 0.28894516825675964, 0.2370864301919937, 0.5995137095451355, -0.2105908989906311, -0.03423507139086723, -0.23103156685829163, 0.2376602739095688, -0.10320160537958145, -0.19197499752044678, -0.5780320763587952, 0.17924553155899048, 0.4516828954219818, -0.5558370351791382, 0.058087706565856...
into the class. Can't be much simpler than that, and I always know *exactly* what implementation is being used (I claim that the opposite is closer to the truth with xml wiring - funny how your perspective changes!) Now you could say that it's just a very simple layer, but each layer of abstraction that we add to our ...
[ 0.440724641084671, -0.22148683667182922, -0.15785223245620728, 0.3287641108036041, -0.1234477162361145, -0.43395012617111206, 0.2684527635574341, 0.27080538868904114, -0.11275529116392136, -0.4662383198738098, 0.0397530198097229, 0.40636131167411804, 0.21506835520267487, 0.0467844754457473...
and so on. I'd say that full autowiring is the ruby-on-rails of spring: It embraces the notion that there's a normal and common usage pattern that most use cases follow. With XML configuration you *permit* a lot of consistent/inconsistent configuration usage that may/may not be intended. I've seen so much xml configur...
[ 0.31633076071739197, -0.03389519825577736, 0.17793071269989014, 0.032114967703819275, -0.260881632566452, -0.18821722269058228, 0.30559563636779785, 0.1365487426519394, -0.20747946202754974, -0.5076776146888733, -0.22918272018432617, 0.8363979458808899, -0.20826447010040283, -0.19051925837...
the way we code to make it interact smoother with autowiring: A customer repository no longer implements the generic `Repository<Customer>` interface but we make an interface `CustomerRepository` that extends `Repository<Customer>`. Sometimes there's also a trick or two when it comes to subclassing. But it usually just...
[ 0.22335484623908997, -0.26950475573539734, 0.017026038840413094, 0.36945608258247375, -0.32908087968826294, -0.04380803927779198, 0.23204566538333893, 0.04119850695133209, -0.07331256568431854, -0.4952082335948944, -0.05483336001634598, 0.5497942566871643, -0.1988874077796936, 0.0835454612...
have some xml in our system, but the xml basically *only* contains the anomalies. Full autowiring integrates nicely with xml. The only thing we need now is for the `@Component`, `@Autowired` and the rest to be included in a JSR (like [JSR-250](https://www.jcp.org/en/jsr/detail?id=250)), so we don't have to tie in with...
[ 0.3772027790546417, -0.017322182655334473, 0.29171472787857056, 0.21670393645763397, -0.041222140192985535, -0.3141929507255554, 0.19309723377227783, 0.10692150145769119, -0.3937213718891144, -0.42032748460769653, -0.030757784843444824, 0.4190969467163086, -0.128666490316391, -0.0789464265...
I have some JavaScript code that does the following ``` link.NavigateUrl = string.Format("javascript:MyFunction({0}, {1});", ID1, ID2); ``` So when the link is click MyFunction will be called and the dynamic parameters will be passed in. How can I pass in these parameters using jQuery like: ``` $(function(){ ...
[ -0.07176543772220612, 0.0030121593736112118, 0.9362114071846008, 0.15920962393283844, -0.03865664452314377, 0.08320493996143341, 0.07815270870923996, -0.3601967394351959, -0.3501293957233429, -0.5713551044464111, 0.009299653582274914, 0.5115785002708435, -0.40993252396583557, 0.20211656391...
is to parse the href of the link. Something like this should work (inside your jQuery click event): ``` var href = this.href; var startPos = href.indexOf("(") + 1; var endPos = href.indexOf(")"); var parms = href.substr(startPos, endPos - startPos).split(","); ```
[ -0.35222363471984863, 0.19642174243927002, 0.47305819392204285, -0.17144307494163513, 0.023563120514154434, -0.14112819731235504, 0.2533130645751953, -0.3147570490837097, -0.11455637961626053, -0.3943447768688202, -0.4830499589443207, 0.3119383156299591, -0.34034067392349243, -0.0382736697...
I've been developing "traditional" ASP.NET applications with server side ASP.NET controls and code behind files, etc. Now I'm exploring several JavaScript libraries like: jQuery, YUI, Ext Js, Prototype. (also it's hard to pick one, but it's another post). All these libraries make client to server communication a lot ea...
[ 0.33866798877716064, -0.06934384256601334, 0.10070310533046722, 0.22592471539974213, -0.4997696280479431, -0.08426928520202637, 0.015193074010312557, 0.11389407515525818, -0.13849419355392456, -0.8579257130622864, 0.00748767564073205, 0.4876255393028259, -0.14752288162708282, 0.02190598659...
do you think? Have anyone used this approach? What are some drawbacks and gotchas? Also if you could comment on what JS Library/Framework you used and your experience with it, that would be great too. Thanks This is a very lengthy topic covered by numerous people, but at its core the difference is basically this: Fo...
[ 0.5764439702033997, 0.0506579615175724, 0.02715230919420719, 0.26041656732559204, -0.15818122029304504, -0.21892549097537994, 0.14030030369758606, -0.039055414497852325, -0.3895832896232605, -0.6945512890815735, 0.033656395971775055, 0.42345303297042847, -0.14480428397655487, -0.0480075776...
**REST/MVC model** works best. This is a generalization and does not apply to every single situation, but on the whole it's a good rule of thumb. It's also very important to point out that if you don't have a captive audience (such as a corporate intranet, and sometimes even then) you should code your site, WebForms ...
[ 0.5913395881652832, -0.05030713975429535, 0.38108667731285095, -0.13345062732696533, -0.052674297243356705, -0.18711750209331512, 0.3793444037437439, 0.2748068571090698, -0.18188896775245667, -0.6636043190956116, -0.4182727336883545, 0.7350284457206726, -0.21342940628528595, -0.28557458519...
i'm trying to create a user manual for based on a vb6 desktop application, it should be used mostly by non technical people on how to use the software and i also need it to show the clients what they're buying into as well. i've seen this [previous discussion on best-practice](https://stackoverflow.com/questions/24142...
[ 0.8426840305328369, 0.18700936436653137, 0.02343510463833809, 0.14961980283260345, 0.1559697985649109, -0.05402764678001404, -0.032275501638650894, 0.14893342554569244, -0.021890390664339066, -0.5441376566886902, 0.3975665271282196, 0.8355565667152405, 0.12275832146406174, -0.0435091927647...
series is well reguarded, as are some of the others. Best advice I've ever received in this area was **Know your Audience** - and write to their needs. Don't write the manual you need. Write what the end users need. Put yourself in their shoes and think about their goals. Think about the situations they'll be in, an...
[ 0.47202032804489136, -0.29878103733062744, 0.45862966775894165, 0.44338715076446533, -0.10417357832193375, -0.1487780064344406, 0.020122703164815903, 0.2297711819410324, 0.1286286860704422, -0.47477367520332336, -0.22469991445541382, 0.4135756492614746, 0.17175671458244324, 0.1245364099740...
my recent projects has been a *Support Guide* - detailed information for the Help Desk and Infrastructure, all about how to look after the system. A narrative style is useless for these support guides - because no one will never sit down and read it. Busy people just dont' have time. I broke the document down into 3...
[ 0.14134390652179718, 0.22887809574604034, 0.5449605584144592, -0.1156144067645073, -0.060862649232149124, 0.47782260179519653, 0.5279565453529358, -0.1780371069908142, -0.48913976550102234, -0.5461465120315552, -0.07317538559436798, 0.22006048262119293, -0.02919984608888626, 0.087803766131...
is not working as expected. This is set up so that they can just look up the user complaint and get some guidance. Under each symptom, a list of Solutions to try. **Solutions** lists different procedures, how to check configuration, test operation, isolate problems, and so on. The document is highly repetetive - so t...
[ 0.30384019017219543, 0.13591694831848145, 0.28632792830467224, 0.07061193138360977, 0.17574970424175262, 0.005476952996104956, 0.2086685448884964, -0.1857222318649292, -0.035733506083488464, -0.6250147819519043, 0.03767421096563339, 0.3757857382297516, -0.13459442555904388, -0.059129439294...
My team often puts the word TODO in unfinished sections of code. Is there a way to add user-specified keywords to Visual Studio so that these are highlighted in some way? For example, in vim the word TODO is automatically highlighted. For example, I'd want to see something like this: `//This is a stub -`***`TODO:`***...
[ 0.557651162147522, -0.1759488433599472, 0.07282085716724396, 0.03749149292707443, -0.3896927833557129, 0.10811766237020493, 0.11010970175266266, -0.16473661363124847, -0.14036086201667786, -0.8710988163948059, 0.1365140825510025, 0.3253481090068817, 0.24584956467151642, -0.1099070757627487...
Lets say I did a check out, edited some stuff and realized I want to re-download the repository code and overwrite my local changes without commiting them. I downloaded a project, made some edits and I realize I don't like my local changes (which I haven't comitted yet). How can I get back to the current state of the ...
[ 0.24784433841705322, -0.00011903919948963448, 0.31941184401512146, 0.2483944594860077, 0.18515241146087646, 0.008500633761286736, 0.27152135968208313, 0.3000907301902771, -0.5647620558738708, -0.5620251893997192, -0.022971900179982185, 0.7942795753479004, -0.10444357991218567, 0.3633215129...
I'm working on a project where i find i'm checking for the following in many, many places: ``` if(item.Rate == 0 || item.Rate == null) { } ``` more as a curiousity than anything, what's the best way to check for both cases? I've added a helper method which is: ``` public static bool nz(object obj) { var parsed...
[ -0.07450712472200394, -0.03179582208395004, 0.3758724331855774, 0.047395385801792145, 0.06575912982225418, 0.009658959694206715, 0.26387375593185425, -0.1519991010427475, -0.20362362265586853, -0.5166424512863159, -0.13049758970737457, 0.472566694021225, -0.4463513493537903, 0.166539192199...
IsNullOrValue(this double? value, double valueToCheck) { return (value??valueToCheck) == valueToCheck; } ``` And use it like this: `if(item.IsNullOrValue(0)){}` // but you don't get much from it
[ -0.3588924705982208, -0.23833216726779938, 0.5644432306289673, -0.296526163816452, 0.16591396927833557, 0.08224385976791382, 0.16068457067012787, -0.2872587740421295, -0.05057121068239212, -0.18973308801651, -0.005870814435184002, 0.5136438012123108, -0.06689566373825073, 0.168674439191818...
I am having problems with MVC RC2 where upon validation failure, the failed field will throw a NullReferenceException when the view is passed back to the user. A short term solution was found: which was to rename the Html.ValidationMessage to be different than the Target Form Field. This works! BUT now the automatic ...
[ 0.33036884665489197, 0.2445681393146515, 0.500164806842804, -0.2774621546268463, -0.4736853241920471, -0.24727314710617065, 0.7133491039276123, -0.02953469753265381, -0.20034189522266388, -0.34781280159950256, -0.049448978155851364, 0.46178579330444336, -0.35129982233047485, 0.223415300250...
the following code is run: **View Code** ``` <% using (Html.BeginForm()) { %> <fieldset> <h5>Terms and Conditions</h5> <p> <%= Html.CheckBox("Terms", false)%> <%= Html.ValidationMessage("Terms")%> I agree to the <a href="/signup/terms">Terms & Conditions.</a> </p> </fieldset>...
[ 0.10024996101856232, -0.2162032276391983, 1.0671855211257935, -0.10764221101999283, -0.016912361606955528, -0.04826003313064575, 0.22074998915195465, -0.9073706865310669, 0.13074533641338348, -0.29020851850509644, -0.2491803765296936, 0.6736495494842529, 0.016906529664993286, 0.02753104269...
true : false; if (Terms) { return RedirectToAction("Success", "Signup"); } else { ModelState.AddModelError("Terms", "Please agree to the Terms"); ModelState.AddModelError("_FORM", "Terms not checked"); } return View(); } ``` I can get the code to work if I omit th...
[ 0.38905736804008484, 0.12472423166036606, 0.4849395751953125, -0.11528515070676804, 0.41668230295181274, -0.08188699930906296, 0.5663902163505554, -0.6120865941047668, 0.1982153356075287, -0.6160818934440613, -0.31087568402290344, 0.9803963303565979, -0.17539481818675995, 0.002031235955655...
"Please agree to the Terms"); ModelState.SetModelValue("Terms", form.ToValueProvider()["Terms"]); ModelState.AddModelError("_FORM", "Terms not checked"); } ``` If that doesn't work, then please post the full stack for the exception.
[ -0.06723751872777939, 0.023655923083424568, 0.738739013671875, -0.16295474767684937, 0.31684941053390503, -0.41126692295074463, 0.271157443523407, -0.5258914232254028, 0.19550663232803345, -0.6310024857521057, -0.45612895488739014, 0.9656447768211365, -0.3084276616573334, -0.02869821153581...
The title speaks for itself really. I only want to know if it exists, not where it is. Is there a one liner to achieve this? ``` File.open(filename).grep(/string/) ``` This loads the whole file into memory (slurps the file). You should avoid file slurping [when dealing with large files](https://stackoverflow.com/ques...
[ 0.44497808814048767, 0.2584395706653595, 0.20637962222099304, 0.04148760810494423, -0.20495182275772095, -0.26051947474479675, 0.3365253806114197, 0.05549462139606476, -0.26350119709968567, -0.28129228949546814, -0.179084911942482, 0.4415954053401947, -0.16543355584144592, 0.22515285015106...
is closed when the block terminates. ``` File.foreach(filename) do |file| file.grep(/string/) end ```
[ -0.2908521592617035, 0.40047168731689453, 0.5375894904136658, -0.2971934974193573, 0.24403616786003113, -0.2398415058851242, 0.3208546042442322, 0.09947826713323593, -0.20603275299072266, -0.2523402273654938, -0.8475821018218994, 0.05483812466263771, -0.24789993464946747, 0.479786038398742...
say there is a function to calculate factorial(n) Does factorial(7) creates 7 function object for each of n from 1 to 7 and use those values when ever necessary (for factorial(8) as like factorial(7)\*8) It depends on the language and the language implementation. In many functional languages (e.g. Haskell), a functi...
[ 0.00998414121568203, 0.03361088037490845, 0.4753975570201874, -0.12181828171014786, 0.13364796340465546, 0.005316462833434343, 0.4083280563354492, -0.17166663706302643, -0.2519114315509796, -0.39382514357566833, -0.6263266801834106, 0.8422895073890686, -0.45930755138397217, 0.0079972110688...
would also be tail recursive; in that case the language might choose to simply jump from the bottom of the function to the top to avoid creating another function call. In this case the language is turning the recursive function into a loop "for free".
[ 0.12387451529502869, -0.49143198132514954, -0.12953373789787292, 0.09014631062746048, -0.2073172628879547, -0.380489319562912, 0.5024847984313965, -0.03542651608586311, -0.1995082050561905, 0.17617908120155334, -0.4806215465068817, 0.4555632472038269, -0.707597017288208, 0.0305792968720197...
Short question: Has anybody got any C# code to parse robots.txt and then evaluate URLS against it so see if they would be excluded or not. Long question: I have been creating a sitemap for a new site yet to be released to google. The sitemap has two modes, a user mode (like a traditional sitemap) and an 'admin' mode...
[ 0.49589160084724426, 0.0866302102804184, 0.43285664916038513, 0.22510232031345367, 0.08148208260536194, -0.10997538268566132, 0.09389655292034149, 0.07887745648622513, -0.02560015395283699, -0.2889954745769501, -0.09685388952493668, 0.6559138298034668, -0.10446768254041672, -0.049714908003...
in an Excel spreadsheet. I would have to assume that someone might publish the `/oprah` link on their blog or somewhere. We don't actually want this 'mini-oprah site' to be indexed because it would result in non-oprah viewers being able to find the special Oprah offers. So at the same time I was creating the sitemap ...
[ 0.5334737300872803, 0.15659506618976593, 0.4158608615398407, 0.27437084913253784, -0.3159252107143402, -0.04019102826714516, -0.1810140609741211, 0.29108279943466187, -0.2022169530391693, -0.41555914282798767, -0.03129773959517479, 0.6300187706947327, -0.3197953701019287, 0.150481313467025...
be quite simple - just parse robots.txt and then evaluate a link against it. However this is a 'bonus feature' and I certainly don't have time to go off and write it (even thought its probably not that complex) - so I was wondering if anyone has already written any code to parse robots.txt ? Hate to say that, but just...
[ 0.39870861172676086, -0.00006052935350453481, 0.45703184604644775, 0.005530905444175005, -0.07767243683338165, -0.18764257431030273, 0.22488245368003845, -0.060505080968141556, -0.20919407904148102, -0.5740635395050049, -0.017902247607707977, 0.6651036739349365, -0.4797428548336029, -0.137...
robots.txt file on the site > 2. Provide an interface for the Spider to check each Url against the robots.txt rules
[ 0.2967411279678345, -0.26383695006370544, 0.3599434196949005, 0.12986207008361816, -0.07321091741323471, -0.2789938151836395, 0.29435160756111145, 0.00436833081766963, -0.4055960476398468, -0.9307132959365845, 0.1877877563238144, 0.17044669389724731, -0.7157538533210754, -0.127201050519943...
I thought it was odd that C# let me call sort on my class and not specify a way to sort them nor write a compare overload. When i ran this code this error popped up ``` List<MyClass> myClassArray= new List<MyClass>(); //myClassArray.add(...); myClassArray.Sort(); An unhandled exception of type 'System.InvalidOperatio...
[ -0.09007325768470764, -0.10686102509498596, 0.2436288595199585, -0.012929492630064487, -0.18725308775901794, -0.034533772617578506, 0.3590967059135437, -0.18746201694011688, -0.41270479559898376, -0.6189138889312744, 0.14835546910762787, 0.3338978588581085, -0.46128296852111816, 0.32291972...
CompareTo(A a) { return 0; } } class C //: IComparable<A> { public int CompareTo(A a) { return 0; } } static void test() { A a = new A(); bool b; C c = new C(); object o = a; IComparable<A> ia = (IComparable<A>)o; b = ia == ia;
[ 0.04407631978392601, -0.05500636249780655, 0.01994866132736206, -0.04638046398758888, -0.19501686096191406, 0.24229595065116882, 0.34966543316841125, -0.33784013986587524, 0.14945676922798157, -0.4857533872127533, -0.24496369063854218, 0.451460063457489, -0.38398438692092896, 0.30648750066...
o = c; IComparable<A> ic = (IComparable<A>)o; b = ic == ic; //uncomment this to get a compile time error //IComparable<A> ic2 = c; return; } ``` If you uncomment the line before return, you'll get a compile time error. When you uncomment IComparable in class c, it will com...
[ -0.06854387372732162, -0.10928444564342499, 0.27751424908638, -0.018450787290930748, 0.20449401438236237, -0.030461566522717476, 0.2673509120941162, -0.3840896487236023, -0.38932928442955017, -0.3633483648300171, -0.3342808187007904, 0.46008533239364624, -0.3791062533855438, 0.126411259174...
requiring it to implement IComparable<T>. If there were, it would (sort of) guarantee that elements could be sorted, but you wouldn't be able to use List<T> to hold anything that didn't implement IComparable. And since you probably won't be sorting every list you create, this is the right decision.
[ -0.04199684411287308, -0.45109426975250244, 0.1691015511751175, 0.23300160467624664, 0.12751245498657227, -0.19624018669128418, -0.19137410819530487, -0.46511727571487427, -0.12816186249256134, -0.3876979351043701, -0.08048912137746811, 0.4339318573474884, -0.27157509326934814, 0.094198472...
I want to run some code on all my treeView nodes depending on a value returned from the database and repeat this until a certain value is returned. I was thinking that: 1. Give all my tree nodes the same css class so I can access them from JQuery 2. have a timer in my JQuery function that used ajax to go to the datab...
[ 0.2847977578639984, 0.09686097502708435, 0.2413530796766281, -0.031196504831314087, -0.1883312314748764, -0.06877055019140244, 0.33210399746894836, -0.05248241126537323, -0.22989435493946075, -0.6901068091392517, 0.21868786215782166, 0.6160603165626526, -0.2798638939857483, -0.038119543343...
do I do Timer functionality in JavaScript? ForEachTimeInterval { //use Ajax to go to database and retrieve a value AjaxCallBackFunction(result) { if (result = 1) //How to stop the timer here? } } });` }); Hope i'm clear. Thanks a lot --- thanks a lot for the answer. And i would like you to comment on the desig...
[ 0.149699404835701, 0.0672110989689827, 0.3448801338672638, -0.08667661994695663, -0.18212786316871643, -0.07780662924051285, 0.30381110310554504, -0.17487040162086487, -0.01651168055832386, -0.9053878784179688, 0.2835296392440796, 0.5653484463691711, -0.11092028021812439, 0.011508643627166...
implement this if you have any. thanks again You can do: ``` $(function(){ $('cssClassOfAllMyNodes').each(function (){ // Do something with "this" - "this" refers to current node. }); }); ``` Te proper way to handle timers in JS is to have a reference to each timeout or interval and then clearing them out. ...
[ 0.2590968906879425, -0.29622799158096313, 0.30838531255722046, -0.24084609746932983, 0.17619895935058594, -0.2564032971858978, 0.5051417350769043, -0.2063954472541809, -0.2851129472255707, -0.6481524705886841, -0.1590527445077896, 0.5044412016868591, -0.274041086435318, -0.0135948248207569...
with the name of the function to be called. Or you could pass a reference to the function itself: ``` var callback = function () { alert(1); }; var timer = setTimeout(callback, delay); ``` Be sure not to set an Interval for AJAX requests, because you response might be delayed and successive calls to the server could...
[ 0.09048514068126678, -0.4148472845554352, 0.3645314574241638, -0.22097492218017578, -0.07427270710468292, -0.21890822052955627, 0.12814873456954956, -0.07714471220970154, -0.19843104481697083, -0.454445481300354, -0.4338405728340149, 0.8001054525375366, -0.48151493072509766, -0.04315208271...
I'm hunting for a mail sending program which can be used with command line arguments. Ive tried [jaber's](http://www.geocities.com/jaber_aljundi/) sendmail . Its really neat, but its unfortunately broken for SSL auth. Any alternatives ? (Oh yeah, I dont want to use perl :P) A weird option : You can get the [sendm...
[ 0.24291861057281494, -0.009849680587649345, 0.21984563767910004, 0.12588757276535034, -0.4569242298603058, 0.03615773469209671, 0.06287278234958649, 0.24179816246032715, -0.02876494638621807, -0.7024591565132141, 0.13829192519187927, 0.21293416619300842, -0.35308995842933655, 0.19639931619...
Months after my company has upgraded from 4.6c to ECC6.0, our team of programmers are still coding in the traditional 4.7c way. I'm eager to try out the new OO approach of ABAP, but much to my dismay most people here only emphasize on getting things done in the shortest time frame given. My question would be: 1) W...
[ 0.6121749877929688, 0.22708404064178467, 0.20728951692581177, -0.19738543033599854, 0.09257736057043076, -0.19880954921245575, 0.01837538182735443, -0.02477315068244934, -0.32673853635787964, -0.49573051929473877, 0.07293440401554108, 0.46488791704177856, 0.05691082403063774, -0.1229473352...
do people in your organization actually started coding in OO ABAP?* Most developers in my organisation have learnt the classic ABAP before introduction of ABAP OO. They are mostly senior developers who restrain from learning proper OOP and OOD principles. They are still using mostly procedural ABAP features. Furtherm...
[ 0.4742513597011566, 0.25988179445266724, -0.2354385107755661, -0.12809889018535614, 0.02211669832468033, -0.09032360464334488, 0.0024141736794263124, -0.005979246459901333, -0.3452223539352417, -0.7187014818191528, 0.0033235230948776007, 0.5147391557693481, -0.16686664521694183, -0.2643453...
You might know Update Function Modules or Subroutines exclusively for database transactions (those you can call `IN UPDATE TASK`). They are an integral part of the ABAP basic components. One can't deny that the procedural ABAP part is still needed. *2) Is there any significant reason that people would want to code it ...
[ 0.01672203838825226, -0.2060699313879013, 0.06143330782651901, 0.16300198435783386, -0.12055569142103195, -0.00719052366912365, 0.017365194857120514, -0.20032256841659546, -0.2475048005580902, -0.46930548548698425, 0.12345080822706223, 0.6117116808891296, -0.41669586300849915, -0.175216943...
significantly from a method invocation. However, if called in mass test method invocations have a slightly better performance (in the magnitude of microseconds). On the whole, I recommend OOD and OOP with the same arguments as the users who posted before. But you have to keep in mind that senior developers familiar w...
[ -0.049769096076488495, 0.3532673120498657, 0.004301820416003466, -0.0025638111401349306, -0.1916636824607849, -0.06532216817140579, 0.5013536810874939, -0.22861109673976898, -0.045791156589984894, -0.56716388463974, -0.11539719998836517, 0.6573954224586487, 0.19870571792125702, -0.14418566...
actually mimicking procedural principles with classes (e.g. a class with static methods exclusively - as a substitute for function modules/subroutines). Best of luck for your organisation for your challenge with ABAP OO! It is not about the language, it is more about getting OO principles into the mind of your staff.
[ 0.23110142350196838, -0.3460119068622589, -0.06553111970424652, 0.3102360665798187, -0.3946024477481842, -0.2293388396501541, 0.6536070108413696, -0.06248203292489052, -0.21835148334503174, -0.4929486811161041, 0.07886944711208344, 0.6611518263816833, -0.1638961136341095, -0.52101379632949...
Are there any advantages of using SQL Passthrough facility along with SAS? Although this question is overly broad, I can provide an overly broad answer. The pass-through SQL in SAS allows you to communicate directly with a database. This becomes very advantageous when you are using database specific functions. An exa...
[ 0.42765113711357117, 0.06481115520000458, -0.11121927201747894, 0.2876260280609131, -0.24089361727237701, -0.2935824692249298, 0.15110337734222412, 0.02920479141175747, -0.08204388618469238, -0.7452791929244995, -0.28782427310943604, 0.23330704867839813, -0.18064242601394653, -0.0434815734...
you can opt to send the processing logic directly to the database. This is possible without using Pass-through SQL, but you have a higher degree of control when utilizing it. This is by no means an exhaustive list of benefits, simply a few high level perks to using pass-through SQL. If you have a more concrete use ca...
[ 0.7492473125457764, -0.1291351467370987, -0.3176157772541046, 0.5218173265457153, 0.1298692524433136, -0.03742780163884163, -0.16397705674171448, -0.08306770771741867, 0.015806006267666817, -0.7150273323059082, -0.29639244079589844, 0.6373236775398254, -0.1603386104106903, -0.1813172399997...
I developed a device driver for a USB 1.1 device onr Windows 2000 and later with Windows Driver Model (WDM). My problem is the pretty bad Tx performance when using 64byte bulk transfers. Depending on the used USB Host Controller the maximum packet throughput is either 1000 packets (UHCI) or 2000 packets (OHCI) per sec...
[ 0.005113275721669197, -0.05597737058997154, 0.3872382640838623, 0.07150692492723465, -0.2455119639635086, 0.03252258896827698, 0.010338643565773964, 0.053207799792289734, -0.42163169384002686, -0.9732114672660828, 0.14522188901901245, 0.45884281396865845, -0.20787079632282257, 0.1269854158...
but I already tried with asynchronous bulk transfers as well without success (no performance gain). Does anybody has some tips and tricks how to boost the performance on Windows? I've now managed it to speed up sending to about 6.6k messages/s. The solution was pretty simple, I've just implemented the same mechanism a...
[ 0.22503167390823364, -0.0762246623635292, 0.5691893100738525, 0.06390676647424698, -0.4052993953227997, 0.1742546409368515, 0.41085708141326904, 0.27148765325546265, -0.44215112924575806, -0.6830902695655823, 0.13946853578090668, 0.420095831155777, -0.061417482793331146, 0.2723837196826935...
I didn't imagine that I would encounter radically new syntax in Java anymore at this stage, but lo and behold, I just encountered something: *The exact context and what the code below should do is pretty irrelevant - it's there just to give some kind of context.* I'm trying to synthetically create an event in IT Mill...
[ -0.11031199246644974, -0.058504264801740646, 0.09184578061103821, -0.1478603631258011, -0.03776993975043297, -0.2506754398345947, 0.41196614503860474, 0.03455386310815811, -0.3503889739513397, -0.749483048915863, -0.19743026793003082, 0.5373488664627075, -0.3664901852607727, -0.01242158561...
I rewrite the line above as follows, it doesn't complain anymore: ``` buttonClick(button.new ClickEvent(button)); // button instanceof Button ``` So, my question is: **What does the latter syntax mean, exactly, and why doesn't the first snippet work?** What is Java complaining about, and what's it doing in the secon...
[ -0.18238337337970734, -0.050643663853406906, 0.3184848129749298, -0.13999414443969727, -0.09917248785495758, -0.13075827062129974, 0.27442991733551025, 0.17675195634365082, -0.32780998945236206, -0.6464678049087524, -0.10133527219295502, 0.7027592658996582, -0.30641642212867737, -0.0898178...
purposes of demonstration: ``` class Outer { String name; class Inner { void sayHi() { System.out.println("Outer name = " + name); } } } public class Test { public static void main(String[] args) { Outer outer = new Outer(); outer.name = "Fr...
[ 0.4403344690799713, -0.14249834418296814, -0.09841695427894592, -0.31125763058662415, -0.07323280721902847, 0.10377738624811172, 0.5733426213264465, -0.465052992105484, 0.0974750816822052, -0.33861052989959717, -0.21674080193042755, 0.5755203366279602, -0.23899750411510468, 0.2908891439437...
Outer.Inner inner = outer.new Inner(); inner.sayHi(); } } ``` See [section 8.1.3 of the spec](http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.1.3) for more about inner classes and enclosing instances.
[ 0.03582606837153435, 0.10619781911373138, -0.01556657999753952, -0.3026554584503174, 0.0424882210791111, -0.019015813246369362, 0.29539254307746887, -0.25148239731788635, -0.009097511880099773, -0.6352280378341675, -0.21414563059806824, 0.7559574246406555, -0.3253801167011261, 0.0915676057...
I need to understand the following sentence: "Charles Simonyi introduced the idea of organizing really big software teams by creating one super duper uber programmer writing the **top-level functions**, while handing off the implementation of the **lower-level functions** to a team of grunt junior-programmers as needed...
[ 0.22968119382858276, -0.014731577597558498, -0.23097001016139984, 0.30139994621276855, -0.10970881581306458, -0.1592133492231369, 0.08341550081968307, -0.18446822464466095, -0.19129201769828796, -0.4102678596973419, -0.41548436880111694, 0.3236255943775177, -0.4031372368335724, -0.22810520...
to be a program manager. The closer it is to human language, the higher-level the function is. The closer it is to machine language, the lower-level the function is. I'm simplyfying but here are some examples: High level functions: ``` Car.Start() Car.MoveTo(Home) ``` Low level functions: ``` Car.Insert(Key); if...
[ -0.022382089868187904, 0.0773853063583374, 0.25070369243621826, -0.23364779353141785, 0.23075252771377563, 0.12939614057540894, 0.17229653894901276, -0.43264684081077576, 0.0536731518805027, -0.5460671782493591, -0.3596343398094177, 0.8336914777755737, -0.25203266739845276, 0.1533958911895...
especially one that doesn't have the 256 max chars/line and 1000000 max chars/buffer limitation. Maybe one of these options will suit your needs (depending whether you write something on server side or client side): * UTL\_FILE * TEXT\_IO * [AskTom post](http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION...
[ 0.17564958333969116, -0.17838835716247559, 0.391058087348938, -0.09448286890983582, -0.2876254618167877, 0.13992860913276672, 0.16692206263542175, -0.15526077151298523, -0.024707423523068428, -0.6886219382286072, -0.02546854503452778, 0.3530787527561188, -0.15511883795261383, -0.0546378605...
Using the [MVVM](http://msdn.microsoft.com/en-us/magazine/dd419663.aspx)-pattern you set the DataContext to a specific ViewModel. Now is there any way to tell the XAML the type of the DataContext so that it will validate my bindings? Looking for something like the typed viewdata in ASP.NET MVC. No, the current spec do...
[ 0.19474658370018005, -0.12138514220714569, 0.7342342138290405, -0.0057367426343262196, -0.33901113271713257, -0.2635146379470825, 0.17370152473449707, -0.26080602407455444, -0.3019808828830719, -0.584220290184021, -0.24619464576244354, 0.6511274576187134, -0.43083176016807556, 0.2552214860...
im writing a bot that replies to a user message instantly. from what i've read their api only allows checking updates every minute or so. it's there a push feature or a 3rd party service that pushes the new message to my server right away? i've seen bots that can do this. **Update**: As noted by other answers, this ...
[ 0.5295709371566772, 0.3130146563053131, 0.37578085064888, 0.07932528108358383, -0.018831869587302208, -0.1263488084077835, 0.36719799041748047, -0.06857216358184814, -0.27296388149261475, -0.5648078918457031, -0.06416250765323639, 0.47616827487945557, -0.35262805223464966, 0.07373137027025...
the Foo bean into the Foo bean itself the container would initially have to create a Foo instance which he can inject afterwards. But to create this he has to inject an already existing instance of Foo into the Foo to be created... which leads to an infinite recursion. If you need separate transactions I'd suggest to ...
[ -0.0786382257938385, 0.08526632189750671, 0.10209464281797409, 0.04912349581718445, -0.13690873980522156, -0.12084629386663437, -0.1788398176431656, 0.09627502411603928, -0.0400879792869091, -0.5669670104980469, 0.4171240031719208, 0.44900795817375183, -0.7314057350158691, 0.26009407639503...
There is a lot of AOP implementation in C#, VB.net. this is some of AOP Implementations: * [PostSharp](http://www.sharpcrafters.com/postsharp/features) * [Castle DynamicProxy](https://www.castleproject.org/projects/dynamicproxy/) * [LinFu](https://github.com/philiplaureano/LinFu) * [LOOM.NET](http://loom.codeplex.com...
[ -0.033286914229393005, -0.12453331053256989, 0.34065282344818115, 0.049850549548864365, -0.3104429841041565, 0.2602083384990692, 0.16926009953022003, -0.30273377895355225, -0.4765188694000244, -0.23855943977832794, -0.15836091339588165, 0.18067455291748047, 0.24158057570457458, -0.33593121...
internally by a lot of other frameworks that want to offer AOP capabilities. Typically, most of existing IoC containers now provide some dynamic interception mechanisms (Spring.NET, Castle Windsor, StructureMap, etc.) If you already work with an IoC container, maybe it could be easier to look at what it proposes. If d...
[ 0.36774900555610657, -0.3872801959514618, 0.1858433187007904, 0.12030282616615295, -0.10358363389968872, -0.3409988582134247, -0.013290639966726303, -0.08529138565063477, -0.5377994179725647, -0.5407156944274902, -0.399881511926651, -0.14779412746429443, -0.3069557547569275, 0.168833091855...
On my iPhone app I have a UIImage instance. I want to get a derived a UIImage that is the result of the first UIImage where one of its colors (e.g. magenta) is made transparent. How can I do this? ``` -(void)changeColor { UIImage *temp23=[UIImage imageNamed:@"leaf.png"]; CGImageRef ref1=[self createMask:temp23]...
[ 0.23178057372570038, -0.10098838806152344, 0.9196364283561707, -0.06307785212993622, -0.032603781670331955, 0.1728576123714447, 0.5132746696472168, -0.37362390756607056, -0.019129514694213867, -0.7281340956687927, -0.053384050726890564, 0.5867728590965271, -0.28558972477912903, -0.04490835...
void *bufferdata=malloc(count); CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB(); CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault; CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault; CGContextRef cgctx = CGBitmapContextCreate (bufferdata,mWidth,mHeight, 8,mWidth*4, col...
[ -0.06165552884340286, -0.02340386062860489, 0.6058754324913025, -0.1760031282901764, 0.09541533142328262, 0.43655869364738464, 0.5607531070709229, -0.33105161786079407, -0.24549876153469086, -0.5255117416381836, -0.3800402879714966, 0.4977330267429352, -0.20829342305660248, 0.2347169369459...
changed the green color to red color by using mask
[ -0.1104535236954689, -0.014329284429550171, 0.01358906738460064, 0.01007313746958971, 0.13330338895320892, 0.1605534702539444, 0.4906507730484009, -0.18662136793136597, -0.3841637074947357, -0.5379567742347717, -0.12254566699266434, 0.260149747133255, -0.3186793923377991, 0.156236037611961...
I have written this event photography application that features a slideshow among other things. The application written in Java and is multi-platform. However on Mac OS X, it takes advantage of the graphics abilities of Quartz Composer by including a QC component in a Java window. The component is based on the sample t...
[ 0.7794937491416931, 0.05093520134687424, 0.5446838736534119, -0.1549217700958252, -0.3599226772785187, -0.2565777599811554, -0.02520923689007759, -0.1990015208721161, 0.14952141046524048, -0.8239651322364807, 0.43415260314941406, 0.43487638235092163, -0.26905590295791626, 0.105772674083709...
that it requires a lot of ugly javascript code in the QC project and the designer that builds these projects is not a programmer. Ideally, I would like to bind the parameters to published inputs in the QC project. Has anyone already done this kind of stuff, or can point me to some information about interfacing Java an...
[ 0.1508156657218933, 0.12564945220947266, -0.14940780401229858, 0.08904863148927689, -0.35645875334739685, 0.006663024891167879, 0.2309214174747467, -0.19028893113136292, -0.14732328057289124, -0.22991091012954712, 0.40076446533203125, 0.6986214518547058, -0.5215336680412292, 0.059761501848...
over a UDP or TCP connection. Your designer then should be able to connect these named inputs to whatever patch parameters he needs using Quartz Composer's visual editor.
[ 0.19019684195518494, -0.072811558842659, 0.1712324172258377, 0.0888698548078537, 0.18642547726631165, -0.03552410379052162, -0.09917716681957245, 0.05412210524082184, -0.1373577117919922, -0.9084681868553162, -0.2976631224155426, 0.6014745235443115, -0.3983272612094879, -0.0969722643494606...
I have in the database words that include special character (in Spanish mostly, like tildes). In the database everything is saved and shown correctly with PHPmyAdmin, but when I get the data (using PHP) and display it in a browser, I get a weird character, like a "?" with a square... I need a general fix so I don't nee...
[ -0.04617753252387047, 0.41454026103019714, 0.6187321543693542, -0.047764260321855545, -0.04196625202894211, -0.001182307954877615, 0.4220132529735565, 0.22247761487960815, -0.0005195383564569056, -0.5460876226425171, -0.23841005563735962, 0.25532060861587524, 0.10039785504341125, 0.1016568...
suggestions??? Thanks!!! Changed the HTML charset to ISO-8859-1 fixed the problem! Silly
[ 0.11078280210494995, 0.14189761877059937, 0.22580622136592865, 0.3055507242679596, -0.25867724418640137, -0.048249006271362305, 0.15135721862316132, -0.023473627865314484, -0.24603308737277985, -0.25243017077445984, 0.06271100044250488, 0.22958822548389435, -0.48901867866516113, 0.05956777...
As a best practice I use a virtual machine for my development - I would like to try and optimize my VM as much as possible. All I have installed is server 2003, IIS and Visual Studio 2008. What do you do to optimize your development VM i.e what service do you switch off etc... Ixclude my build folder from my virus guar...
[ 0.21197186410427094, 0.1297585368156433, 0.2756243944168091, 0.11111601442098618, -0.1617298722267151, -0.12904684245586395, 0.1547936052083969, 0.045811157673597336, -0.23811762034893036, -0.7157692313194275, 0.23161262273788452, 0.8995264768600464, -0.17437031865119934, 0.074012517929077...
Help Session Manager * Remote Registry * Uninterruptible Power Supply * Windows Audio * Wireless Zero Configuration
[ -0.2157372683286667, -0.12307672202587128, 0.0867091566324234, 0.29740411043167114, 0.09351266175508499, -0.4996262490749359, 0.694959282875061, 0.10666870325803757, -0.13885731995105743, -0.787246823310852, -0.421718031167984, 0.8605651259422302, -0.0465131551027298, 0.008847886696457863,...
I need to automatically generate a PDF file from an exisiting (X)HTML-document. The input files (reports) use a rather simple, table-based layout, so support for really fancy JavaScript/CSS stuff is probably not needed. As I am used to working in Java, a solution that can easily be used in a java-project is preferable...
[ 0.4117421805858612, 0.41337406635284424, 0.21466760337352753, 0.08059483766555786, -0.23124012351036072, -0.27261003851890564, -0.07996603101491928, -0.12827132642269135, 0.04094161093235016, -0.7662563323974609, 0.011995476670563221, 0.5315693616867065, -0.20365674793720245, -0.0742800459...
are converted nicely, the table-layout is pretty messed up, with text flowing out of the table cell. I also took a quick look at Jrex, a Java-API for using the Gecko rendering engine. Is there maybe a way to grab the rendered page from the internet explorer rendering engine and send it to a PDF-Printer tool automati...
[ 0.1739882379770279, 0.15803684294223785, 0.39271390438079834, 0.3933434784412384, -0.21115896105766296, -0.12445622682571411, -0.20165865123271942, 0.12164400517940521, -0.3057420253753662, -0.8010498285293579, -0.20768781006336212, 0.6281744241714478, -0.15390270948410034, -0.086668066680...
I have run into trouble using NHibernate when I am doing ajax calls using JQuery. I get different exceptions regarding either the connection or reader being closed like: "Invalid attempt to call Read when reader is closed". Does anybody know how to fix this? I suggest that it might be due to the caching of some con...
[ 0.0065368348732590675, 0.19027523696422577, 0.1520993560552597, 0.10998108237981796, -0.339624285697937, -0.35880497097969055, 0.38445574045181274, 0.365092933177948, -0.27258381247520447, -0.6130351424217224, 0.03260619565844536, 0.3626720905303955, -0.1392684131860733, 0.4792765378952026...
It's easy for a WPF application to make parts of a window transparent or semi-transparent. But how to I apply the current Vista theme (colors, opacity) to these transparent parts? When I have a green glass border how will I get a green glass background of the same style? Is it even possible to do this without calls t...
[ 0.5957328081130981, -0.042028266936540604, 0.5667869448661804, -0.03322331979870796, -0.04404722526669502, -0.11962803453207016, 0.24684955179691315, -0.429712176322937, -0.5551008582115173, -0.678334653377533, 0.13596494495868683, 0.4158650040626526, 0.09586910903453827, -0.03003393113613...
Is there a way to find a value in DataTable in C# without doing row-by-row operation? The value can be a part of (a substring of row[columnName].value , separated by comma) a cell in the datatable and the value may be present in any one of columns in the row. A DataTable or DataSet object will have a Select Method tha...
[ 0.040090352296829224, -0.1377047747373581, 0.3150556683540344, 0.0611770898103714, 0.05297914519906044, 0.11267755180597305, -0.13215577602386475, -0.16684263944625854, -0.2516791820526123, -0.6211665868759155, 0.04896444454789162, 0.2962813377380371, -0.6066417098045349, -0.07858507335186...
I am currently in the process of debugging a database performance issue. I have run extended trace on the suffering oracle box to obtain a trace file which I have analyzed using tkprof. One thing that caught my eye straight away was the following output; ``` Elapsed times include waiting on following events: Even...
[ 0.3895544111728668, -0.09757564961910248, 0.24295763671398163, -0.14845508337020874, -0.15348616242408752, -0.17594881355762482, 0.18854786455631256, -0.016551252454519272, -0.36296263337135315, -0.45242488384246826, 0.35371825098991394, 0.38056784868240356, -0.03710423409938812, 0.1499361...
------------ SQL*Net message to client 4 0.00 0.00 SQL*Net message from client 4 109.06 141.31 ``` I have run the relate query manually via a SQL client an it executes
[ 0.5479557514190674, 0.6768261194229126, 0.8564514517784119, -0.31472286581993103, -0.18435189127922058, -0.08759794384241104, 0.2213173508644104, -0.3115052580833435, 0.15682533383369446, -0.6180371642112732, 0.129263237118721, 0.6836513876914978, -0.23505166172981262, 0.4375409781932831, ...
in a timely fashion. So I don't think its cause directly by the query. Can some one clarify what exactly "SQL\*Net message from client" means ? Does anyone have any idea what could be causing such large wait times ? Thanks in advance Karl SQL\*Net message from client means the time taken by oracle waiting for inpu...
[ 0.3043808937072754, 0.15627548098564148, 0.2257276028394699, 0.11280465871095657, -0.10447707027196884, -0.21168725192546844, 0.2593074142932892, 0.2595970928668976, -0.3541034162044525, -0.4990697205066681, 0.06634675711393356, 0.3242030143737793, -0.1686527580022812, 0.29475530982017517,...
uses. <http://oracletoday.blogspot.com/2005/09/sqlnet-message-from-client.html> Also, another good link is <http://www.dba-oracle.com/m_sql_net_message_to_client.htm>
[ 0.4390466809272766, 0.0906217023730278, 0.014692342840135098, -0.08574796468019485, -0.06594759970903397, -0.1121048778295517, 0.004189070779830217, 0.06735961884260178, -0.26677006483078003, -0.03951145336031914, 0.06158928573131561, 0.2090548872947693, -0.17079266905784607, -0.0215195193...
Take the tsql query below: ``` DECLARE @table TABLE(data VARCHAR(20)) INSERT INTO @table VALUES ('not duplicate row') INSERT INTO @table VALUES ('duplicate row') INSERT INTO @table VALUES ('duplicate row') INSERT INTO @table VALUES ('second duplicate row') INSERT INTO @table VALUES ('second duplicate row')...
[ -0.09905114024877548, -0.061681490391492844, 0.1403597891330719, 0.038423195481300354, 0.013002945110201836, 0.057047680020332336, -0.08581993728876114, -0.39063912630081177, -0.583634078502655, -0.4421268105506897, -0.1371210217475891, 0.09899892657995224, -0.5780682563781738, 0.117364890...
@table FROM @table o INNER JOIN #duplicates d ON d.data = o.data -- insert one row for every duplicate set INSERT INTO @table(data) SELECT data FROM #duplicates ``` I understand what it is doing, but the last part of logic (after --insert one row
[ 0.1268063634634018, 0.40551143884658813, 0.3745560944080353, 0.10661044716835022, 0.16549403965473175, 0.023079272359609604, -0.12446212023496628, -0.2567913234233856, -0.0941968634724617, -0.5844747424125671, 0.07622028887271881, 0.30486977100372314, -0.47594842314720154, 0.19923317432403...
for every duplicate set), doesn't make sense. Where we have the set of code for --delete all rows that are duplicated, that gets rid of the duplicates so what's the part of the last section? This query was found [here](http://www.simple-talk.com/sql/t-sql-programming/removing-duplicates-from-a-table-in-sql-server/) T...
[ 0.043798234313726425, 0.3386395573616028, 0.09252007305622101, 0.3121228814125061, 0.25649988651275635, 0.14418034255504608, -0.03800060600042343, 0.05396287888288498, -0.7130410075187683, -0.392835408449173, 0.11130902916193008, 0.1989852637052536, -0.46166983246803284, 0.4935419261455536...