text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
"Sport", "# of Years",
[ 0.23844611644744873, 0.3363519012928009, 0.264661967754364, 0.06736838072538376, -0.18664290010929108, 0.2043147087097168, 0.17928147315979004, 0.240502268075943, -0.5458468198776245, -0.25890567898750305, -0.3442416787147522, 0.31092143058776855, 0.18984055519104004, 0.3429597318172455, ...
"Vegetarian"}; final Object[][] data = { {"Tom", "Roberts","Athletic", new Integer(5), new Boolean(false)}, {"Sarah", "Watt", "Football", new Integer(3), new Boolean(true)}, {"Laura", "Brown", "Swimming", new Integer(2), new Boolean(false)}, {"Simon", "Sm...
[ 0.27687782049179077, 0.3017325699329376, 0.17278674244880676, -0.08346262574195862, 0.2600107192993164, 0.7807226181030273, 0.18792608380317688, -0.08660095930099487, -0.25473693013191223, -0.16007205843925476, -0.4377642571926117, 0.32962703704833984, -0.1757993847131729, 0.39767855405807...
"Tennis", new Integer(20), new Boolean(true)}, {"Paul", "Jones", "Rugby", new Integer(10), new Boolean(false)} }; JTable table = new JTable(data, columnNames); table.setPreferredScrollableViewportSize(new Dimension(500, 100)); table.setSelectionMode(ListSelectionMode...
[ -0.11227144300937653, -0.4080653190612793, 0.5356916189193726, -0.09131034463644028, 0.30515897274017334, 0.23498554527759552, 0.24243758618831635, -0.385278582572937, -0.5024809837341309, -0.6403093338012695, -0.09460293501615524, 0.6037585735321045, -0.4278310537338257, 0.171644657850265...
public void mouseExited(MouseEvent me){} public void mouseReleased(MouseEvent me){} public void mouseClicked(MouseEvent me){} public void mousePressed(MouseEvent me){ if (me.isControlDown()){ System.out.println("This is working ");
[ -0.048429399728775024, -0.21007183194160461, 0.47356483340263367, -0.5725354552268982, 0.5679973363876343, -0.018935108557343483, 0.5050600171089172, -0.12413856387138367, 0.16432729363441467, -0.5398180484771729, -0.22822649776935577, 1.0908291339874268, -0.3524361848831177, 0.01818722113...
} } }); InputMap inputMap = table.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); KeyStroke keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_A, InputEvent.CTRL_MASK); inputMap.put(keyStroke, "none"); JScrollPane scrollPane = new JScrollPane(table); add...
[ 0.05313051864504814, -0.3463200330734253, 0.5337411761283875, -0.407551109790802, 0.2967229187488556, 0.218042254447937, 0.2657540440559387, -0.4032003581523895, -0.23719152808189392, -0.5223899483680725, -0.3566795587539673, 0.7523711323738098, -0.4217677116394043, 0.21056808531284332, ...
JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame("TableTester"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); TableTester newContentPane = new TableTester(); newContentPane.setOpaque(true); frame.setContentPane(newContentPane); frame.pack();...
[ 0.25974971055984497, -0.03942212834954262, 0.7335125803947449, -0.28714248538017273, 0.22000086307525635, 0.19865980744361877, 0.38581353425979614, -0.6893678903579712, -0.2147829234600067, -0.6077204346656799, -0.4545348882675171, 0.2139270156621933, -0.40519195795059204, 0.15736520290374...
public void run() { createAndShowGUI(); } }); } } ``` In the mousePressed method I've played around with getting all the selected rows from the table, and was then going to check if the newly clicked row was in the selectedRows... However, I'm not sure if there is a way to see ...
[ 0.006288265343755484, -0.12278686463832855, 0.11949682980775833, -0.29898402094841003, 0.1985142081975937, -0.20000846683979034, 0.4421633183956146, 0.10671660304069519, -0.24921907484531403, -0.5776190161705017, 0.15277083218097687, 0.7631286978721619, -0.4818982183933258, 0.2642911374568...
shouldn't be played around with too much, but it's to replicate a legacy system in the company) Any ideas/suggestions would be appreciated! OK, second take (I left the first one as it might interest somebody for some other usage, who know? Say it is there for educational purpose... :-)). I had a look at the source co...
[ 0.15323486924171448, -0.3545916974544525, 0.28626149892807007, 0.1356533020734787, 0.350437194108963, -0.07646170258522034, 0.07075518369674683, -0.20889291167259216, -0.21489211916923523, -0.3855700194835663, 0.04163036122918129, 0.627575159072876, -0.14815065264701843, -0.248938828706741...
no?) but I don't know context. ``` class SpecialTable extends JTable { SpecialTable(Object[][] data, String[] columnNames) { super(data, columnNames); // That's already the default // setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); } /** * Called by javax....
[ -0.05306811258196831, -0.11205828934907913, 0.7357991337776184, -0.32944807410240173, 0.23813402652740479, 0.1275058388710022, 0.15040165185928345, -0.5700586438179016, -0.2987027168273926, -0.48698681592941284, -0.4500736594200134, 0.5588268041610718, -0.3271027207374573, 0.06406019628047...
{ if (toggle && !isRowSelected(rowIndex)) return; // Don't do the selection super.changeSelection(rowIndex, columnIndex, toggle, extend); } } ``` Much simpler and exactly what you need! BTW, thanks for providing such simple good test case, I might have not tried if I had to write it m...
[ -0.27707386016845703, -0.07479941844940186, 0.27217090129852295, -0.03776806965470314, 0.0633121058344841, -0.1968384087085724, 0.3112127482891083, -0.25635388493537903, 0.04720814526081085, -0.5767899751663208, 0.027067817747592926, 0.578274667263031, -0.3408367931842804, 0.05806675925850...
I need to compare one given value with a retrieved values. I do this several times in the code. I am not satisfied with how it looks and I am seeking for a some sort of an util function. Anyone wrote one? Number of values I am comparing with is known at the compile time. **Update:** I'd like to get rid of containers...
[ 0.23716339468955994, 0.3730601370334625, 0.24686235189437866, 0.1417725533246994, -0.11992482095956802, 0.06508127599954605, 0.29314011335372925, 0.10996842384338379, -0.17344126105308533, -0.771486222743988, 0.23836584389209747, 0.4053887128829956, 0.10256059467792511, 0.20613446831703186...
neither because it is not obvious as "find". ``` #include <algorithm> #include <string> #include <vector> std::string getValue1() { return "test"; } std::string getValue2() { return "the"; } std::string getValue3() { return "world"; } int main() { const std::string value = "the"; // simple if ...
[ -0.13090233504772186, -0.3443785607814789, 0.2782573699951172, -0.30289849638938904, 0.23685523867607117, 0.055901311337947845, 0.41212260723114014, -0.3795042335987091, 0.031937893480062485, -0.4827509820461273, -0.49916738271713257, 0.5540784001350403, -0.6235293745994568, -0.05261875316...
values.push_back( getValue1() ); values.push_back( getValue2() ); values.push_back( getValue3() ); if ( values.end() != std::find( values.begin(), values.end(), value ) ) return 1; // third option I'd use instead // return 0; } ``` For your request to do ``` if (InSet(value)(GetValu...
[ -0.17453373968601227, -0.43599870800971985, 0.7538279294967651, -0.4997940957546234, 0.2758195996284485, 0.22748929262161255, 0.4103259742259979, -0.5689117908477783, -0.008498837240040302, -0.5188212394714355, -0.6010609269142151, 0.7237855195999146, -0.41795411705970764, 0.08098986744880...
{} template<class Other, class Another> bool operator()(const Other &value1, const Another &value2) const { return Value == value1 || Value == value2; } template<class Other, class Another, class AThird> bool operator()(const Other &value1, const Another &value2, const AThird &va...
[ -0.33166494965553284, -0.1835022121667862, 0.07845631241798401, -0.2783981263637543, 0.21335722506046295, 0.03975602239370346, 0.38472363352775574, -0.8234556317329407, 0.03087267093360424, -0.23945358395576477, -0.6464713215827942, 0.46064621210098267, -0.5203515887260437, -0.140788391232...
} }; template <typename T> InSetHelper<T> InSet(const T &value) { return InSetHelper<T>(value); } ``` This syntax might be more clear though: ``` if (MakeSet(GetValue1(), GetValue2(), GetValue3()).Contains(value)) { // Do something here... } template <typename T, typename U, typename V> class Set3 { const ...
[ 0.1982516646385193, -0.30899640917778015, 0.508962869644165, -0.0754833072423935, 0.2953124940395355, 0.07949762046337128, 0.3297961354255676, -0.7002376914024353, -0.0202820785343647, -0.6291685700416565, -0.5134737491607666, 0.728730320930481, -0.45819327235221863, -0.11919994652271271, ...
return V1 == v || V2 == v || V3 == v; } }; template <typename T, typename U> class Set2 { // as above }; template <typename T, typename U, typename V> Set3<T, U, V> MakeSet(const T &v1, const U &v2, const V &v3) { return Set3<T, U, V>(v1, v2, v3); } template <typename T, typename U> Set3<T, U> MakeSe...
[ 0.5033745169639587, -0.3367837369441986, 0.5096008777618408, 0.10502259433269501, 0.41272929310798645, -0.030249031260609627, 0.0477372370660305, -0.5727798938751221, -0.10916920006275177, -0.6174905300140381, -0.14690542221069336, 0.5975044965744019, -0.1389959305524826, -0.21665197610855...
to just use some recursion: ``` parent.ThisOrDescendantHasValue(value); ``` You'd just add this to whatever class parent and child belong to: ``` class Node { public: Value GetValue(); Node *GetChild(); bool ThisOrDescendantHasValue(const Value &value) { return GetValue() == value ...
[ -0.3304383456707001, -0.04365970939397812, 0.29232075810432434, -0.17895808815956116, 0.4782528281211853, -0.15038414299488068, 0.568131148815155, -0.2481299489736557, -0.09455668926239014, -0.4645918011665344, -0.43684887886047363, 0.35009515285491943, -0.1402500569820404, 0.2742543816566...
I'm looking how to perform date/time math within an HQL query. Specifically, how do I add or subtract (x) amount of time from the result of the `current_timestamp()` function? Or do I have to drop into SQL for this and hope that whatever database is being run supports it? HQL query example: ``` FROM RandomThing WHERE...
[ 0.34791508316993713, -0.28241825103759766, 0.3598710894584656, 0.047991495579481125, 0.31795477867126465, 0.009664366021752357, -0.04733940213918686, -0.37070250511169434, -0.1672278195619583, -0.6491281986236572, 0.09431139379739761, 0.21132634580135345, -0.050705768167972565, 0.289449870...
I realize this can be easily done outside of the query. But for philosophical reasons, let's say it's important to use the database server's time, rather than the querying system's time. Practical example: I'm querying an automatic timestamp for all entries made within the last (x) amount of time. Since the timestamp i...
[ 0.18298904597759247, 0.030788185074925423, 0.6476312279701233, 0.20092305541038513, 0.24476951360702515, -0.14068765938282013, 0.06750454753637314, -0.0857221856713295, -0.0751187652349472, -0.8342940807342529, 0.09579336643218994, 0.5052443742752075, 0.15266883373260498, 0.096625708043575...
calculated maxTimeStamp to a query like the one of ccclark.
[ -0.07538796961307526, -0.4471117854118347, 0.5079882144927979, 0.39397943019866943, 0.0728292390704155, 0.01734805293381214, -0.05520030856132507, -0.10128457844257355, -0.2602616548538208, -0.43974703550338745, 0.41631031036376953, 0.3976118862628937, -0.12809686362743378, -0.078871302306...
see above... I would do something like so in button click of the popup ``` ClientScript.RegisterStartupScript(typeof(string), "auto_refreshparent", @" window.opener.location.reload(); ", true); ClientScript.RegisterStartupScript(typeof(Page), "ThatsAllFolks", "window.close();", true); ```
[ -0.20578695833683014, 0.07828765362501144, 0.9007658958435059, -0.30647340416908264, 0.16882207989692688, -0.06648791581392288, 0.17945648729801178, -0.025904379785060883, -0.23454397916793823, -0.8221861720085144, -0.48477086424827576, 0.6202833652496338, -0.44365477561950684, 0.055705677...
I'm currently reading up on OO before I embark upon my next major project. To give you some quick background, I'm a PHP developer, working on web applications. One area that particularly interests me is the User Interface; specifically how to build this and connect it to my OO "model". I've been doing some reading o...
[ 0.1367441713809967, 0.4906117916107178, 0.25119802355766296, -0.17717032134532928, -0.23029594123363495, 0.02722306177020073, -0.08326031267642975, 0.4210737347602844, -0.34901273250579834, -0.7526366114616394, 0.11289127916097641, 0.21541734039783478, 0.15114131569862366, -0.0357720851898...
example. One of my methods is then "display\_yourself" or similar. I can use this throughout my code. Perhaps to start with this will just be their name. Later, if I need to adjust to show their name+small avatar, I can just update this one method and hey-presto, my app is updated. Or if I need to make their name a lin...
[ 0.2841821312904358, 0.1870719939470291, 0.30094459652900696, -0.11875925958156586, 0.09964575618505478, 0.03577309846878052, -0.3274553716182709, -0.0533774271607399, -0.5928807258605957, -0.9290991425514221, 0.006624726578593254, 0.42219027876853943, -0.41938039660453796, 0.03646233305335...
of > concerns (SoC) is the process of > breaking a computer program into > distinct features that overlap in > functionality as little as possible. A > concern is any piece of interest or > focus in a program. Typically, > concerns are synonymous with features > or behaviors. Progress towards SoC is > traditio...
[ 0.14120489358901978, 0.2664378583431244, -0.050549689680337906, -0.010129212401807308, 0.3375735282897949, -0.10375099629163742, 0.24131262302398682, -0.23963360488414764, -0.23234093189239502, -0.46663135290145874, -0.5689288377761841, 0.5557631254196167, -0.3956761658191681, 0.1531321704...
to go against what other people seem to think of as "best practice". To quote the "selected" (green one) answer from the same question: > "The separation of concerns is keeping > the code for each of these concerns > separate. Changing the interface > should not require changing the > business logic code, and vi...
[ 0.1382540911436081, -0.08818015456199646, 0.11113814264535904, 0.003972033970057964, -0.1288413405418396, -0.08309157192707062, -0.05280366912484169, -0.2509007155895233, -0.5206285119056702, -0.4539754390716553, 0.05396183952689171, 0.5980908870697021, -0.5263413190841675, -0.037123717367...
article for a detailed discussion on this point: [Building user interfaces for object-oriented systems](http://www.javaworld.com/javaworld/jw-07-1999/jw-07-toolbox.html) Anyway... getting to the actual point, finally! **1.** Can anyone recommend any books that discuss this in detail? I don't want an MVC book; I'm no...
[ 0.04450312629342079, 0.33486178517341614, -0.019901126623153687, -0.018306123092770576, -0.4628767967224121, -0.2896105945110321, 0.23174265027046204, -0.027005523443222046, -0.3140921890735626, -0.45985254645347595, -0.09632525593042374, 0.7248590588569641, -0.24081793427467346, -0.066073...
is a good idea? Many thanks for anyone who can help me reach a conclusion on this. This is a failure in how OOP is often taught, using examples like rectangle.draw() and dinosaur.show() that make absolutely no sense. You're almost answering your own question when you talk about having a user class that displays itse...
[ 0.3793485164642334, 0.18517285585403442, 0.13211429119110107, 0.21052883565425873, 0.07103075087070465, -0.21061086654663086, 0.12120330333709717, -0.032583869993686676, -0.4772754907608032, -0.5174078941345215, 0.08179013431072235, 0.29605257511138916, 0.043810728937387466, 0.154633343219...
Does it look the same in each case? No, at the top you've just got an envelope next to your username followed by your reputation and badges. In a question thread you've got your avatar followed by your username with your reputation and badges below it. Do you think that there is a user object with methods like getUserN...
[ 0.1852317750453949, 0.10003457963466644, 0.40529003739356995, 0.4650617241859436, 0.07219737768173218, -0.05019235238432884, -0.0340002067387104, 0.17021988332271576, -0.5410628318786621, -0.5505346059799194, 0.15518046915531158, 0.3367575407028198, 0.1469597965478897, -0.1471467763185501,...
method like toString() (in Java terms) that would return the user's name in a common format, like the first name followed by a space and then the last name. Aside from that, the user object shouldn't do much else. It is up to the client to decide what it wants to do with the object. Take the example that you've given ...
[ -0.006790383718907833, -0.32749485969543457, 0.236042782664299, 0.1552259624004364, -0.13697563111782074, -0.19056567549705505, -0.16071908175945282, -0.22847141325473785, -0.3443637490272522, -0.5534009337425232, -0.0017938873497769237, 0.26702365279197693, -0.3587176501750946, 0.10103418...
GUI and a Web-based interface to work with the user object. 3. Show an avatar next to the username in one place, but only show the username in another. 4. Provide an RSS list of users. 5. Show the username bold in one place, italicized in another, and as a hyperlink in yet another place. 6. Show the user's middle initi...
[ 0.04524868726730347, 0.06188233941793442, 0.6092609167098999, 0.2952740788459778, -0.17012159526348114, 0.019981570541858673, -0.1757623553276062, -0.0473858118057251, -0.139178067445755, -0.7979906797409058, -0.19530324637889862, 0.7496749758720398, -0.2685863971710205, -0.289909422397613...
means to get at user data. It is up to each of the *many* views you will create to decide how it wants to display the user data. Your idea about updating code in one place to update your views in many places is a good one. This is still possible without mucking with things at a too low of a level. You could certainly ...
[ 0.6420738101005554, -0.41268715262413025, 0.23345106840133667, 0.5535423159599304, 0.03739427030086517, 0.026607805863022804, 0.28184205293655396, -0.08601687103509903, -0.2828129529953003, -0.7756320238113403, 0.14810852706432343, 0.6267374157905579, 0.014198833145201206, 0.02766710147261...
I am trying to write a Wix3 install for a visual studio add-in. I have it just about there, but I need reset the plugin by deleting a registry entry. Specifically any value starting with ``` HKCU\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged\MyAddinName.Connect; ``` How to a convince Wix to delete a...
[ 0.36088213324546814, 0.1406921148300171, 0.3475152850151062, -0.06038808822631836, 0.008035016246140003, 0.010717286728322506, 0.5099685192108154, -0.03151295334100723, -0.0807972177863121, -0.8926215767860413, 0.05503380298614502, 0.6663144826889038, -0.33158811926841736, 0.29107171297073...
you find. I would think a DTF (Deployment Tools Foundation) custom action would a viable option.
[ 0.5390872955322266, -0.20306116342544556, -0.0642465204000473, 0.24889548122882843, 0.18453983962535858, -0.14924132823944092, -0.05536980181932449, 0.10042601078748703, -0.3659180700778961, -0.6286896467208862, 0.10376526415348053, 0.5408793091773987, 0.13245420157909393, 0.06643393635749...
I am trying to overload the global operator new and delete for a performance sensitive application. I have read the concerns described at <http://www.informit.com/articles/article.aspx?p=30642&seqNum=3> and the recommendations to use Intel TBB's allocator <http://www.intel.com/technology/itj/2007/v11i4/5-foundations/5-...
[ 0.20523689687252045, 0.44504308700561523, 0.18600991368293762, 0.01781165413558483, -0.12651729583740234, -0.02456696145236492, 0.26608672738075256, -0.270119309425354, -0.050021350383758545, -0.4635690152645111, -0.13859786093235016, 0.7791743278503418, -0.33208221197128296, 0.42975339293...
all compilers support something analogous to "gcc -include"? If you want to overload the global `operator new` and `operator delete`, you just need to implement it. You don't need to explicitly define it everywhere since it already is defined as part of the language. Edit: If you want to define an operator new that ta...
[ 0.31764811277389526, 0.029782073572278023, -0.08695320039987564, -0.06453916430473328, -0.10668619722127914, -0.459384560585022, 0.3693152368068695, -0.10035596787929535, -0.20292402803897858, -0.41425424814224243, -0.5011790990829468, 0.6690176725387573, -0.6571855545043945, -0.2170523852...
I am looking to replicate the panning (not necessarily the zooming) effect of the Google Maps API, but without the images. Essentially, I want to position HTML elements in a large coordinate system and be able to navigate around them, [Prezi](http://prezi.com/) style (though without the rotation). Preferably, I'd like...
[ 0.48180073499679565, -0.06315555423498154, 0.1937466412782669, 0.26706594228744507, -0.06348534673452377, -0.08398041129112244, 0.06335803866386414, 0.02860216423869133, -0.16748763620853424, -0.8592053055763245, 0.04952844977378845, 0.3844960331916809, -0.15689615905284882, -0.01177770271...
Maps API, and if so, how? Implementing the GOverlay interface? Open layers - <http://www.openlayers.org/> is an open source implementation of the Google maps component, which might be more than you need, but is a good place to start.
[ 0.4094618558883667, -0.10047124326229095, 0.4943689703941345, 0.3381290137767792, -0.03199092298746109, -0.34310388565063477, 0.10763943940401077, -0.0030030172783881426, 0.020981058478355408, -0.9071587324142456, -0.04455805942416191, 0.19431641697883606, -0.410371333360672, -0.1203827708...
I've decided to get into IronPython, as I work pretty much exclusively in .NET, but need something a little less stuffy than C# for mocking up quick stuff. Python has been fine for small things, throwaway tests, that sort of stuff, but it's to the point that I need to be able to get to some of our .NET code. Despite m...
[ 0.41884496808052063, 0.18325144052505493, 0.01320249680429697, -0.00799631979316473, -0.18256495893001556, -0.06817895919084549, 0.2243780791759491, 0.5087234973907471, -0.2395499348640442, -0.38493236899375916, 0.007699386216700077, 0.43703871965408325, 0.013002150692045689, -0.0723246037...
of a way to get that working. You can use IronPython as if it were a standard Jython interpreter in emacs. This assumes that you are using [EmacsW32](http://ourcomments.org/Emacs/EmacsW32.html) and that you have installed [python-mode](https://launchpad.net/python-mode/+download) from launchpad. (Note that python-mode...
[ 0.10783977061510086, 0.1593000590801239, 0.28157415986061096, 0.10814528167247772, 0.2564999759197235, 0.019074080511927605, 0.3282325863838196, -0.016342416405677795, -0.25342923402786255, -0.5353793501853943, -0.29720768332481384, 0.6977054476737976, -0.35892006754875183, 0.0164184328168...
sure that variable is set correctly. Open a python file, hit control-c control-t to toggle to the Jython(IronPython) shell, then hit control-c ! to start up the shell. At this point you can hit control-c control-c to execute the contents of the open file inside IronPython, or just play around inside IronPython. The ...
[ 0.35801365971565247, 0.013888861052691936, 0.27176082134246826, 0.01914260722696781, 0.21250171959400177, -0.28220537304878235, 0.49357181787490845, 0.08686912804841995, 0.010360858403146267, -0.44032055139541626, -0.21488994359970093, 0.8948854804039001, -0.22040912508964539, -0.067413821...
I have a `ListView` that I want to group results into, however the examples I am finding are not working. How can I group my results? I want to group on the `Status` property of a custom object. This is what I have: ``` <ListView IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" Horizo...
[ 0.31528350710868835, -0.11756911873817444, 0.7900835871696472, -0.07445522397756577, -0.050803184509277344, -0.08539720624685287, 0.08391757309436798, -0.3914436399936676, -0.4261173903942108, -0.7626943588256836, 0.013169771991670132, 0.37470272183418274, -0.09558279067277908, 0.146945297...
<ListView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> <TextBlock FontWeight="Bold" FontSize="15" Text="{Binding
[ 0.22977903485298157, 0.008363348431885242, 0.6318031549453735, 0.013358068652451038, -0.40786826610565186, -0.09077079594135284, -0.04345623776316643, -0.9096818566322327, -0.2466452717781067, -0.34603413939476013, 0.0472138486802578, 0.08477594703435898, -0.1464751809835434, -0.0652374327...
Path=Status}"/> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </ListView.GroupStyle> <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="BorderThickness" Value="1" />
[ 0.19480979442596436, -0.6292865872383118, 0.6875503063201904, 0.2574106752872467, -0.10165485739707947, -0.15440276265144348, 0.29392263293266296, -0.5937661528587341, -0.12081599235534668, -0.6803479790687561, 0.002172306412830949, 0.32144638895988464, -0.16009420156478882, -0.08753553032...
<Setter Property="Width" Value="Auto" /> <Setter Property="FontSize" Value="10.4" /> </Style> </ListView.ItemContainerStyle> <ListView.View> <GridView>
[ 0.2083963006734848, -0.4374527037143707, 0.6080349683761597, -0.2055586874485016, -0.3796968460083008, 0.22809581458568573, 0.04925088956952095, -0.4934917986392975, -0.3406467139720917, -0.7056698203086853, -0.21125029027462006, 0.48445630073547363, -0.06018619239330292, -0.18469709157943...
<GridViewColumn DisplayMemberBinding="{Binding Path=Number}" Header="Shelve ID" /> <GridViewColumn DisplayMemberBinding="{Binding Path=Customer}" Header="Customer" /> <GridViewColumn DisplayMemberBinding="{Binding Path=PurchaseOrderNo}" Header="PO Number" /> <GridViewCol...
[ -0.127755269408226, -0.2703246474266052, 0.6998920440673828, -0.31464192271232605, -0.02335618995130062, 0.3154066205024719, -0.5779733061790466, -0.19172026216983795, -0.10894725471735, -0.5146157741546631, -0.14596128463745117, 0.18398799002170563, 0.07550685852766037, 0.1643208414316177...
/> <GridViewColumn DisplayMemberBinding="{Binding Path=CustomerTerms.Description}" Header="Order Terms" /> <GridViewColumn DisplayMemberBinding="{Binding Path=ShippingMethod.Description}" Header="Shipping" /> <GridViewColumn DisplayMemberBinding="{Binding Path=TotalPric...
[ 0.12173429131507874, -0.09855283051729202, 0.7938709259033203, -0.3876612186431885, 0.005492403171956539, 0.23544548451900482, -0.26077091693878174, -0.14819209277629852, -0.3061959147453308, -0.5038037896156311, -0.023468017578125, 0.6351657509803772, -0.029657535254955292, 0.210316002368...
sender, System.Windows.DependencyPropertyChangedEventArgs e) { AddGrouping(); } private void AddGrouping() { if ( lstShelvedOrders.ItemsSource == null) { return; } CollectionView myView = (CollectionView)CollectionViewSource.GetDefaultView(lstShelvedOrders.ItemsSource); Prop...
[ 0.041267216205596924, -0.15888215601444244, 0.6661376953125, -0.08192673325538635, -0.021845674142241478, -0.1535218209028244, 0.024423804134130478, -0.39780786633491516, -0.431088387966156, -0.5478782653808594, -0.3783954679965973, 0.2620830535888672, -0.24062612652778625, 0.2797658741474...
<TextBlock FontSize="15" FontWeight="Bold" Text="{Binding Name}"/> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> ``` `CollectionViewGroup.Name` will be assigned the value of `Status` for that group.
[ -0.019028065726161003, -0.08005910366773605, 0.4969094693660736, 0.020215783268213272, -0.24169407784938812, -0.15216098725795746, -0.10310360789299011, -0.5172894597053528, -0.2861664295196533, -0.33805787563323975, -0.33268409967422485, 0.10775922983884811, 0.040120817720890045, -0.12568...
Any ideas on this one? I'm trying to write a unit test that will delete an item and confirm that item is no longer in a repository by trying to retrieve the item by its ID which should throw a DataAccessException. However, the test keeps failing. I added a try catch block and sure enough I caught the exception I was ex...
[ 0.11630886793136597, 0.057308379560709, 0.05334211140871048, 0.24724340438842773, -0.039044339209795, 0.1403459757566452, 0.19118648767471313, -0.11221045255661011, -0.17129921913146973, -0.7211141586303711, 0.21414907276630402, 0.40983515977859497, -0.11951390653848648, 0.4917621314525604...
new MyTestRepository<T, TKey>(); myRepository.Delete(myItem); myRepository.CommitChanges(); try { myRepository.GetById(myItemId, false); } catch (DataAccessException dae) { Assert.IsTrue(true); } } ``` You need to
[ -0.0890193060040474, -0.18775023519992828, 0.4843689799308777, -0.07213827222585678, 0.2884625196456909, 0.26315245032310486, 0.5089884996414185, -0.19197459518909454, -0.04361289367079735, -0.696697473526001, -0.22936609387397766, 0.4389081299304962, 0.001266376581043005, 0.25487452745437...
add the ExpectedException attribute onto the same method which has the TestMethod attribute. The VS Unit Test Framework will only look for an ExpectedException attribute at the entry point of a particular test. ``` [TestMethod] [ExpectedException(typeof(DataAccessException))] public void ATestMethod() { ... NHiber...
[ 0.013345622457563877, -0.3263391852378845, 0.21410341560840607, -0.017445078119635582, 0.19466252624988556, 0.17617329955101013, 0.3102048635482788, -0.3071981966495514, 0.35903462767601013, -0.6165424585342407, 0.03698597103357315, 0.6915825009346008, -0.20827579498291016, -0.072119697928...
I was under the assumption that if I disabled a div, all content got disabled too. However, the content is grayed but I can still interact with it. Is there a way to do that? (disable a div and get all content disabled also) Many of the above answers only work on form elements. A simple way to disable any DIV includi...
[ 0.0015779214445501566, 0.17860932648181915, 0.1709175854921341, 0.15629121661186218, 0.09614178538322449, -0.23947349190711975, 0.6373330354690552, 0.009635820053517818, -0.1763632446527481, -0.7343841195106506, -0.3112575113773346, 0.6566935181617737, -0.42618611454963684, 0.0622640773653...
by keyboard". You Could add this code to your script and inputs can't be reached in other ways like keyboard tab. You could change this code to fit your needs. ``` $([Parent Container]).find('input').each(function () { $(this).attr('disabled', 'disabled'); }); ```
[ -0.0706440731883049, 0.01912294328212738, 0.4556559920310974, -0.0610298253595829, 0.3160577118396759, 0.16806592047214508, 0.22072243690490723, -0.08372858166694641, -0.18626318871974945, -0.6062113642692566, -0.3755466639995575, 0.6266878247261047, -0.4479832053184509, 0.2000728845596313...
What is the purpose of the csrss.exe (Client/Server Runtime Server Subsystem) on Windows? Maybe someone could give a good explanation or pointers to documentation? Unfortunately Google results are pretty noisy when searching a core process of Windows. The reason I'm asking is that I got a BSOD from my service applic...
[ -0.2426397204399109, 0.3757459819316864, 0.34433573484420776, 0.06580675393342972, -0.09439139068126678, 0.13410942256450653, 0.14835195243358612, -0.054751500487327576, -0.43807268142700195, -0.5257698893547058, -0.10963752120733261, 0.30453670024871826, -0.44656243920326233, 0.4289654493...
8095b1fa 85eeeb70 85eeecd4 nt!PspCatchCriticalBreak+0x75 f5175d54 8082350b 00000494 ffffffff 051bf114 nt!NtTerminateProcess+0x7a f5175d54 7c8285ec 00000494 ffffffff 051bf114 nt!KiFastCallEntry+0xf8 051bf114 00000000 00000000 00000000 00000000 ntdll!KiFastSystemCallRet STACK_COMMAND: kb FOLLOWUP_NAME: MachineOwner FA...
[ -0.17042699456214905, 0.2763698995113373, 0.37526604533195496, 0.06536024063825607, 0.10241648554801941, -0.20116078853607178, 0.43799838423728943, 0.11766375601291656, -0.1772158443927765, -0.5987110733985901, -0.33122771978378296, 0.43513867259025574, -0.25068503618240356, 0.270490467548...
terminating csrss, or if it is crashing due to a bug. [Windows Internals](https://rads.stackoverflow.com/amzn/click/com/0735625301) is a great book for stuff like this. [Wikipedia](http://en.wikipedia.org/wiki/CSRSS) also has an article on CSRSS.
[ -0.03633279725909233, -0.01180845033377409, 0.27108484506607056, -0.09154552221298218, 0.3675963878631592, -0.4348140358924866, 0.26281702518463135, 0.5143460035324097, -0.3527528941631317, -0.17339155077934265, -0.351073682308197, 0.12029612809419632, -0.38117140531539917, 0.4670777022838...
I need to verify if an object exists and return the object, then based on that perform actions. What's the right way to do it without returning a 404? ``` try: listing = RealEstateListing.objects.get(slug_url = slug) except: listing = None if listing: ``` I would not use the 404 wrapper if you aren't given a...
[ 0.380538672208786, 0.14441242814064026, 0.3316267430782318, 0.16715693473815918, 0.3614614009857178, -0.19344955682754517, 0.3968020975589752, -0.046104926615953445, -0.18881358206272125, -0.47692474722862244, 0.004791744984686375, 0.8320870399475098, -0.12740369141101837, -0.0372915714979...
I am trying to make a form with some dynamic behavior. Specifically, I have my inputs in divs, and I would like to make it so when the user clicks anywhere in the div, the input is selected. I was using JQuery 1.2.6 and everything worked fine. However, I upgraded to JQuery 1.3.2 and I am getting some strange behavior....
[ 0.13551250100135803, -0.1894674301147461, 0.44788312911987305, -0.1701124906539917, -0.18762390315532684, -0.16227507591247559, 0.21741004288196564, 0.09825719892978668, -0.13104693591594696, -0.708365261554718, 0.1093788743019104, 0.6669973134994507, -0.625582218170166, 0.0050792633555829...
got an error saying "Object doesn't support this property or method". Am I doing something wrong, or is this a bug in JQuery? Does anyone know a way to fix this behavior, without going back to the old version? I am using Firefox 3.0.7 in case that matters. Here is a simple example I made to illustrate the problem: ``...
[ 0.3246231973171234, 0.33172670006752014, 0.3441673219203949, -0.01105712540447712, -0.27096647024154663, -0.4844280481338501, 0.3542848825454712, -0.28329601883888245, -0.04959888011217117, -0.22583194077014923, 0.024789785966277122, 0.6109263300895691, -0.2195252925157547, 0.0337303765118...
$(".question div").click(function() { $(this).children("input").click(); }); }); </script> </body></html> ``` Thank you all. I tried grillix's idea of setting the checked attribute, although I had to fix up the syntax a little bit. Here is what I did: ``` $(this).children("input").attr("checked", true); ...
[ 0.0948338732123375, 0.11785583198070526, 0.3988669514656067, 0.060620784759521484, -0.16802281141281128, 0.007404093164950609, 0.21085543930530548, -0.24516159296035767, -0.06986179947853088, -0.6016635894775391, -0.195919007062912, 0.8268263936042786, -0.10422295331954956, -0.090461686253...
I have an interface defined like so: ``` public interface IRipper { IRipperHost Host { get; set; } void Rip(FileStream stream); event RipperEventHandler OnStart; event RipperEventHandler OnComplete; event RipperEventHandler OnProgressChanged; } public delegate void RipperEventHandler(obj...
[ -0.09912574291229248, -0.2367730587720871, 0.5029240846633911, -0.00520654022693634, -0.12630535662174225, 0.05202881619334221, 0.19608142971992493, -0.1932327002286911, 0.108995221555233, -1.0149849653244019, -0.15117883682250977, 0.7225610017776489, -0.5220927596092224, 0.531540334224700...
event RipperEventHandler IRipper.OnComplete { add { if (PostRipEvent != null) { lock (PostRipEvent) {
[ -0.14814963936805725, -0.7015647888183594, 0.08107740432024002, 0.13760465383529663, 0.07568482309579849, 0.1163129061460495, 0.14257009327411652, -0.0036508000921458006, 0.05498024448752403, -0.2877874970436096, -0.1870415359735489, 0.6182064414024353, -0.5257532000541687, 0.2437401711940...
PostRipEvent += value; } } else { PostRipEvent = value; } }
[ -0.40756505727767944, -0.2733989655971527, 0.44126224517822266, -0.05122995004057884, 0.2530710995197296, 0.2180061787366867, -0.014442898333072662, -0.1369047462940216, 0.08593112975358963, -0.299312561750412, -0.0638781413435936, 0.532867431640625, -0.33301740884780884, 0.083574652671813...
remove { if (PostRipEvent != null) { lock (PostRipEvent) { PostRipEvent -= value;
[ -0.03568938001990318, -0.031442493200302124, 0.3072054088115692, -0.15604673326015472, 0.6188725829124451, 0.06550901383161545, 0.1840289980173111, -0.154767245054245, 0.26436910033226013, 0.1289776861667633, -0.21041914820671082, 0.2802934944629669, -0.5859712958335876, 0.4485466778278351...
} } } } ... and so on } ``` My question is how would ***you*** inherit from RipperBase and override the BaseClass Rip method. in reality that function should be abstract - but i don't know how to do that with interfaces. Also how can i call the base classes event handler from the class d...
[ 0.1370585858821869, -0.1638047844171524, -0.05924905091524124, 0.03471944108605385, 0.008971850387752056, -0.43000519275665283, -0.07272280752658844, -0.18149414658546448, 0.010939253494143486, -0.48039767146110535, 0.047140758484601974, 0.7614780068397522, -0.4123466908931732, 0.321214884...
if (handler != null) { handler(this, new RipperEventArgs { Message = "Started Ripping file to CSV!" }); } handler = RipProgEvent; ``` this but I'm getting the "event can only appear on the left hand side of += or -=." error any help would be greatly appreciated! I'm trying to make this as scalab...
[ 0.1415492594242096, -0.4770964980125427, 0.06490901112556458, -0.17197440564632416, -0.01927279867231846, -0.3587920665740967, 0.12405454367399216, 0.04968481883406639, -0.3728671073913574, -0.7826218605041504, -0.21987125277519226, 0.6923937797546387, -0.6958519816398621, 0.42856568098068...
Filestream fs ) { RipCore (fs); OnCompleted(); } protected abstract void RipCore(Filestream fs); public event EventHandler<RipperEventArgs> Completed; protected void OnCompleted { if( Completed !=
[ 0.009117918089032173, -0.65196293592453, 0.20646145939826965, -0.19345419108867645, 0.28618451952934265, -0.003534433664754033, 0.26206836104393005, -0.06477069854736328, -0.40094345808029175, -0.3806038498878479, -0.5986891388893127, 0.5550118088722229, -0.48563480377197266, 0.20219692587...
null ) { // TODO: make this Threadsafe. Completed (this, new RipperEventArgs( ... ) ); } } } ``` I've declared the class as abstract, since I presume that you cannot instantiate objects from RipperBase ? Classes that inherit from RipperBase have to override...
[ 0.20207583904266357, 0.047996386885643005, 0.011555389501154423, -0.28891515731811523, -0.013847148977220058, -0.28768348693847656, 0.3904891908168793, 0.049622561782598495, -0.2292894870042801, -0.4466862976551056, -0.11386436223983765, 0.42781776189804077, -0.6759978532791138, 0.52938383...
the correct functionality. Rip is the method that calls the RipCore method, and it also raises the Completed eventhandler. (Maybe you do not want to do this, i dunno). You can also make sure that the Rip method calls the RipCore method on another thread if you want. For the events, I create a protected method in the ...
[ 0.20482824742794037, -0.3353952169418335, 0.0940416008234024, 0.28230708837509155, -0.09756487607955933, -0.2921006679534912, 0.10496918112039566, -0.17859604954719543, -0.4761865735054016, -0.5578870177268982, 0.06099598482251167, 0.7874525785446167, -0.2329099029302597, -0.15987038612365...
Whats the shortest way to assert that an attribute is applied to method in c#? I'm using nunit-2.5 :) ``` MethodInfo mi = typeof(MyType).GetMethod("methodname"); Assert.IsFalse (Attribute.IsDefined (mi, typeof(MyAttributeClass))); ```
[ 0.008223420940339565, 0.03088388964533806, 0.6181719899177551, -0.17494188249111176, 0.2342192828655243, -0.10021761059761047, 0.32583287358283997, -0.4048384130001068, 0.07701581716537476, -0.02481049671769142, 0.00892571173608303, 0.5065427422523499, -0.3618932068347931, 0.02415199950337...
I am curious about prevalent methodologies. I found myself doing both of these things interchangeably: *Note in all cases the object is allocated locally.* ``` std::string GetDescription () { std::string desc; /* Create a description */ return desc; } void GetResult (map<int, double> & resultMap...
[ -0.27664944529533386, -0.12744781374931335, 0.2353268563747406, -0.015330166555941105, 0.10999502241611481, -0.0690305158495903, 0.2076011598110199, -0.380920946598053, -0.23143155872821808, -0.9619507789611816, -0.4656447470188141, 0.44899120926856995, -0.23825761675834656, 0.073606014251...
*/ return resultMap; } ``` What is the preferred way to do this? It greatly depends on the task at hand. I would go for the first approach for functions that create new values while using the second approach for functions that change the parameters. As mentioned by others, in some cases other restrictions (...
[ 0.1471034437417984, -0.25924888253211975, 0.03148713335394859, -0.05202079936861992, -0.003756621852517128, -0.007319728843867779, 0.09356967359781265, -0.35354483127593994, 0.07108131796121597, -0.562178373336792, -0.09072604775428772, 0.8287205696105957, -0.35634973645210266, 0.162530347...
and third definitions require the caller to create an object *before* calling the function. This can be a hassle to the user as she cannot just ignore the return value (or use it as an unnamed temporal to feed another function, see snippet 1), and can be limited in cases (i.e. cannot reassign a reference from an alread...
[ 0.12136487662792206, -0.37010103464126587, 0.3207207918167114, -0.017822789028286934, -0.350736528635025, 0.4256281852722168, -0.0282717514783144, -0.22745899856090546, -0.3411653935909271, -0.4047570824623108, -0.06048890948295593, 0.5322103500366211, -0.5501134395599365, 0.20413754880428...
third type is, I believe, the worst option. Not only it forces the caller to create a named variable to pass to the function but also makes a copy to return (unless it was a typo and you are returning a [possibly const] reference) At any rate, other considerations can unbalance the advantage of clear semantics that th...
[ -0.19338171184062958, -0.2161758989095688, 0.2845104932785034, -0.21806631982326508, -0.22007855772972107, -0.051641836762428284, 0.3284912109375, -0.2290215939283371, -0.03223618119955063, -0.28944602608680725, -0.4279364049434662, 0.4355112612247467, -0.662771999835968, 0.182066738605499...
); void test1() { g( f1() ); // valid code } void test2() { X x; // must create instance before f2( x ); // then call the function g( x ); } void test3() { X x; // must create instance before g( f3( x ) ); } // snippet 2 class Y {}; class X { public: X( Y & y ) : y_( y ) {} private: Y & y_; };...
[ 0.22941619157791138, 0.05122167989611626, 0.15012586116790771, -0.1457909792661667, -0.0965406596660614, 0.3490851819515228, 0.4649287164211273, -0.27398768067359924, 0.06098490580916405, -0.5725668668746948, -0.5239265561103821, 0.5687099695205688, -0.4335809350013733, 0.1255095899105072,...
x( y ); // user must create with a reference f2( x ); // f2 cannot change the reference inside x to another instance } // snippet 3 class X { private: X( X const & ); X& operator= ( X const & ); }; X f1(); // Returned object cannot be used void f2( X & ); X f3( X & ); void test1() { X x = f1(); // compila...
[ 0.24394534528255463, 0.17986376583576202, 0.23967809975147247, -0.10026906430721283, -0.03207196667790413, 0.1317927986383438, 0.47846749424934387, -0.3382834792137146, 0.03388307988643646, -0.4995725154876709, -0.5284510254859924, 0.5418408513069153, -0.5595158338546753, 0.111389964818954...
I have the following HTML and I would like to display a blue background behind the buttons and text. Unfortunately, with the following code, the blue background disappear. If I remove the CSS for the ids buttons and text, the background is back. What am I doing wrong? Thanks! ``` <!DOCTYPE html PUBLIC "-//W3C//DTD X...
[ 0.27807530760765076, 0.1850113719701767, 0.24283987283706665, -0.20811015367507935, 0.035956818610429764, 0.14481857419013977, 0.02231075055897236, -0.20906642079353333, -0.36224812269210815, -0.7405294179916382, -0.1646905541419983, 0.3002380430698395, -0.1159374862909317, 0.0814304351806...
float: left; } #text { float: right; } </style> </head> <body> <div id="actions"> <div id="buttons"> <input type="button" id="btnOne" value="Bla bla" /> <input type="button" id="btnTwo" value="Bla bla bls" />
[ 0.1819869875907898, -0.22537924349308014, 0.22186776995658875, -0.28671523928642273, 0.05200789123773575, 0.5396819710731506, -0.06154296174645424, -0.4442269206047058, -0.47766849398612976, -0.3203257918357849, -0.28956344723701477, 0.2948057949542999, -0.223715677857399, -0.0911137238144...
</div> <div id="text">Bla bla bla</div> </div> </body> </html> ``` You have to "clear" your floats. Floating elements takes them out of the normal block positioning of the page, so an element that is floated right breaks out of the parent container, collapsing the div. You can clear them, or the m...
[ 0.034843213856220245, 0.08608225733041763, 0.5615752935409546, -0.09132993966341019, 0.14508719742298126, 0.23362024128437042, 0.07465088367462158, -0.3208535611629486, -0.462415874004364, -0.40735214948654175, -0.5476850867271423, -0.10744301974773407, -0.4464612305164337, -0.105487033724...
overflow: hidden; } #text { float: right; overflow: hidden; } ``` Since "overflow: auto" can produce scrollbars in certain instances, I usually explicitly prevent that by specifying 'overflow: hidden' on children elements. This works reliably in my experience.
[ -0.07289254665374756, 0.16467395424842834, 0.09393525123596191, -0.18689106404781342, 0.20766396820545197, 0.005559827666729689, 0.48219454288482666, 0.2054983675479889, -0.06124623492360115, -0.5122871398925781, -0.40345507860183716, 0.6337173581123352, -0.16374386847019196, 0.02874724753...
**Scenario** You have an Assembly for Data Transfer Objects containing 10 classes that exactly represent 10 tables in your database. You generate / build a DAL layer that has methods like - ``` DTOForTable1[] GetDataFromTable1(); DTOForTable2[] GetDataFromTable2(); ``` and so on.... **Question** How do I mak...
[ 0.15440545976161957, -0.03460000082850456, 0.15510471165180206, 0.22958041727542877, 0.09459790587425232, 0.2978634536266327, -0.09302088618278503, -0.3363500237464905, -0.15738263726234436, -0.6630415320396423, 0.027244053781032562, 0.2543063461780548, -0.2621390223503113, -0.135860368609...
(1) and (2) does this simplifies or complicate design ? Thanks in advance. You could define it like: ``` T[] GetDataFromTable1<T>() where T:IDto { // you can know the table with the type of T } ``` That said, I would rather either have the different methods or even classes to work with it. I use the repository p...
[ 0.3153279721736908, -0.2080104649066925, -0.066292405128479, 0.2160818874835968, -0.11573417484760284, -0.3994329273700714, -0.05872109532356262, -0.045286182314157486, -0.07093175500631332, -0.6994239687919617, -0.1717623472213745, 0.5554249286651611, -0.20238752663135529, -0.000442530406...
Our Python CMS stores some date values in a generic "attribute" table's *varchar* column. Some of these dates are later moved into a table with an actual *date* column. If the CMS user entered an invalid date, it doesn't get caught until the migration, when the query fails with an "Invalid string date" error. How can ...
[ 0.05587022006511688, 0.2414194643497467, 0.13969802856445312, 0.1320018470287323, 0.060660313814878464, -0.10788664221763611, -0.02735459990799427, 0.15631933510303497, -0.4489275813102722, -0.5349150896072388, 0.029268817976117134, 0.046034447848796844, -0.13274827599525452, 0.09857227653...
Have Python parse the original date input as forgivingly as possible, then output the date in a known-good representation. [dateutil](http://labix.org/python-dateutil)'s liberal parser may be a good place to start: ``` import dateutil.parser d= dateutil.parser.parse('1/2/2003') d.strftime('%d-%b-%y') ``` I'm not su...
[ 0.06151501089334488, 0.10904788225889206, 0.17049859464168549, -0.13567031919956207, -0.06635619699954987, -0.08172287046909332, 0.07038307934999466, 0.03889022022485733, -0.1261586844921112, -0.1329614818096161, -0.1473509520292282, 0.47228142619132996, -0.18350467085838318, -0.2593789100...
Basically I have a sql 2005 standard server with a named instance installed (server/instance1). I also have created a DNS entry (dnsDBServer) that points to the ip address of the sql server. A web application we have can connect using the following methods (ipaddress/instance1, server/instance1) but cannot connect usin...
[ -0.12097181379795074, 0.44386741518974304, 0.31709495186805725, 0.005759608466178179, -0.1694219708442688, -0.14960281550884247, 0.29410141706466675, 0.12911267578601837, -0.4268072247505188, -0.5386943817138672, 0.2962082028388977, 0.2976475656032562, -0.32155469059944153, 0.3330194652080...
own dns updated. I should have checked that first thing. I ran ipconfig /flushdns and it started working. It never dawned on me to check the server itself. Thanks for your help.
[ 0.5062257647514343, -0.10147169977426529, 0.307473748922348, 0.2253638356924057, -0.12014835327863693, -0.3351995050907135, 0.4771609902381897, 0.4259225130081177, -0.49507611989974976, -0.5138933658599854, 0.2718435227870941, 0.3378992974758148, -0.05212961509823799, -0.10738914459943771,...
Is it possible to perform a web service call inside a reporting services report? (i.e. use a WS call for a data source) <http://technet.microsoft.com/en-us/library/aa964129.aspx> This white paper will give you information on using both webservices and other XML based sources as a datasource for your reports.
[ 0.5614790320396423, -0.18330396711826324, 0.021128565073013306, 0.4852534234523773, 0.10809335112571716, -0.5263656377792358, -0.18277554214000702, -0.2750290036201477, -0.051329463720321655, -0.2598332464694977, -0.03129957988858223, 0.20611773431301117, 0.10272692888975143, -0.0658522546...
I'm trying to handle a bunch of files, and I need to alter then to remove extraneous information in the filenames; notably, I'm trying to remove text inside parentheses. For example: ``` filename = "Example_file_(extra_descriptor).ext" ``` and I want to regex a whole bunch of files where the parenthetical expression...
[ 0.18780262768268585, 0.13781826198101044, 0.1503210961818695, -0.12090141326189041, 0.019854167476296425, -0.06220019981265068, 0.07353932410478592, 0.005809694062918425, -0.23506879806518555, -0.431027889251709, -0.470923513174057, 0.6297792196273804, -0.4876974821090698, -0.0294657051563...
I have a program that gets a string from a method. I want to know how to insert a string value to that string at certain positions. For example: ``` mystring = "column1 in('a','b')column2 in('c','d')column3 in('e','f')"; ``` Here, how would I insert the string value " and " after every occurance of the character '...
[ -0.2601504921913147, 0.10312826186418533, 0.3823677599430084, -0.066635362803936, 0.22697611153125763, 0.28782880306243896, 0.19004034996032715, -0.2939598560333252, 0.122890904545784, -0.41003307700157166, -0.45659568905830383, 0.4955141842365265, -0.225750133395195, -0.16312940418720245,...
I am a systems guy and currently doing a part time web development project so am pretty new to it. I am trying to write a http client for www.portapower.com. It will for certain items which are posted on the website and if they match a particular requirement it will print a message. While trying to access this page...
[ 0.1177598387002945, 0.11737249791622162, 0.7244150042533875, -0.06495749205350876, 0.05472320690751076, -0.016405073925852776, 0.6092724204063416, -0.2998320758342743, -0.14340032637119293, -0.7571958899497986, -0.19860593974590302, 0.49069100618362427, -0.26085951924324036, 0.224431648850...
have the username and password and it works fine when used from a browser. Please tell me if this a correct way to access a authenticated page. It depends on how the website is authenticating users. If they are using basic authentication or Windows authentication, then you can set the [`Credentials` property](http://ms...
[ 0.4016934931278229, 0.20828218758106232, 0.5752675533294678, 0.20096877217292786, 0.1522878110408783, -0.3875698149204254, 0.37282252311706543, -0.18266966938972473, -0.11956125497817993, -0.6930153965950012, -0.1277242749929428, 0.48178809881210327, 0.15337595343589783, 0.1955379545688629...
`<form>` element that handles login: ``` <form name="formlogin" method="post" action="./defalogin.php" > <input name="emtext" type="text" id="emtext" size="12"> <input name="pstext" type="password" id="pstext" size="12"> <input type="submit" name="Submit" value="Logn in" onClick="return logincheck()" > </fo...
[ -0.14782977104187012, 0.1411406695842743, 0.5854241847991943, 0.025397220626473427, 0.18060125410556793, -0.044163018465042114, 0.2943364381790161, -0.3430265486240387, -0.1615796685218811, -0.8259248733520508, -0.6267605423927307, 0.500886082649231, -0.18006746470928192, -0.01989787444472...
keep setting the `CookieContainer` property on any subsequent `HttpWebRequest` instances to that `CookieContainer` to make sure the cookies are passed around. Then you would go to the page indicated in the link. Of concern is also the `logincheck` javascript function, but looking at the script sources, it does nothin...
[ 0.23682205379009247, -0.04424666613340378, 0.052986640483140945, 0.3208097815513611, -0.11467191576957703, -0.5274367332458496, 0.3722843825817108, 0.356829971075058, -0.2822040021419525, -0.8407382965087891, 0.06322284042835236, 0.6435686349868774, -0.046396318823099136, 0.092092044651508...
Is there a way to get a list of all classes contained within then currently running SWF? You could use describeType on the root and then traverse down the list to find all Classes of instances referenced within your app, but this method does not work for classes that have been included, but not referenced (local refere...
[ 0.33939671516418457, 0.16031113266944885, 0.1949775367975235, 0.2223535180091858, -0.030953390523791313, -0.03512055054306984, 0.5860112309455872, 0.09124087542295456, -0.10492154955863953, -0.8487686514854431, 0.1802878975868225, 0.4533054232597351, -0.487468957901001, 0.3673018515110016,...
I use Java for client-side development with Swing. I love Swing; I believe it is one of the better GUI frameworks there. What I miss, however, is the support for declarative validation. Like [this snippet](http://en.wikibooks.org/wiki/XForms/Facet_Validation) from XForms. Do you know any library which allows validatin...
[ 0.4663292467594147, 0.3398181200027466, 0.07237125188112259, -0.24028503894805908, -0.6216975450515747, -0.16089308261871338, 0.39743924140930176, -0.3105659782886505, -0.06464732438325882, -0.5165618658065796, 0.43383949995040894, 0.5654300451278687, -0.041099634021520615, -0.199852481484...
either but reading through some examples of how Bean Validation will be used makes it look promising. Here is an [interview](http://java.dzone.com/articles/bean-validation-rest-us-%E2%80%93 "Spec Lead") with the spec lead. What I like most about the proposal is that the validation rules can be reused in different layer...
[ 0.6001212000846863, 0.1531030237674713, 0.23462370038032532, -0.004225649405270815, -0.3277429938316345, -0.3065045475959778, -0.06802371889352798, -0.43652641773223877, -0.056058771908283234, -0.4671809673309326, 0.011289768852293491, 0.47130435705184937, -0.14003056287765503, -0.25130137...
I have an infrastructure library which must be used from both WinForms and ASP.Net. I would like to wrap this up in some unit tests. Which project do I put these in? Do I use another folder in my library project? A different solution which contains only my infrastructure project and a separate unit testing project? ...
[ 0.4926707446575165, -0.011962009593844414, -0.08215103298425674, 0.49757447838783264, -0.20400884747505188, -0.1225687563419342, -0.014810376800596714, -0.16208285093307495, 0.09019657224416733, -0.8941612243652344, 0.464253306388855, 0.6363680362701416, 0.15891194343566895, 0.260022521018...
to ship your production code out with your unit tests, even if they are not accessed via the winform or web interface. Additionally, consider using MVP architecture pattern with Dependency Injection to organize your classes and make your presenter and other components more test friendly.
[ 0.43364641070365906, 0.012490489520132542, -0.2218821793794632, 0.37622296810150146, -0.22998517751693726, -0.13184981048107147, 0.0860217809677124, -0.10493665188550949, -0.08221638202667236, -0.7562584280967712, -0.025606093928217888, 0.45415058732032776, 0.11993560194969177, -0.02863972...
I recently had my first encounter with PHP (5) through a Drupal application for a client. There was certainly nothing difficult about the experience (documentation is good for instance), but I never had a moment where I thought, "that's really clever!", or "wow this is fun to use!" Moreover, I couldn't accurately predi...
[ 0.34420257806777954, -0.0024108360521495342, -0.2492247372865677, 0.13362552225589752, -0.4367970824241638, -0.17703448235988617, 0.46568357944488525, 0.1555858552455902, -0.2853764593601227, -0.31869590282440186, -0.01878233440220356, 0.3069174587726593, -0.3131599426269531, 0.02152684144...
contrast: Python's list comprehensions change the way you think about iteration, C brings you back to the hardware with it's pointers and bit operations, javascript is surprisingly wonderful with its nameless functions and advanced suppport for hashes, and even SQL in its crustiness forces you to appreciate your data a...
[ 0.25665849447250366, 0.21095415949821472, -0.0981144979596138, 0.11586132645606995, -0.5208786725997925, -0.017348702996969223, 0.07216644287109375, 0.1545461118221283, -0.37588852643966675, -0.29479485750198364, 0.19933122396469116, 0.5881367325782776, -0.20451118052005768, -0.30782675743...