text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
option from solution explorer. It will show you all files in your project directories structure. The files not included in project (modified outside VS, copied etc) should appear as pale white objects. Everything to do is to include them into project by clicking the menu option on context menu for selected item. This ...
[ 0.22688890993595123, -0.2666088044643402, 0.20405568182468414, 0.047815557569265366, -0.14540162682533264, -0.09838403016328812, 0.1981351375579834, -0.10846073925495148, -0.13643580675125122, -0.8190554976463318, -0.22732089459896088, 0.18348944187164307, -0.2399235963821411, 0.0279018525...
incorporate the file into project, you have to do it on your demand or copy it directly to solution explorer. Of course, if you wish to use SVN it's a good idea to choose VS plugin which will do the work without bothering you. (i.e AnkhSVN - open source and free). You can also develop your own "watchdog" plugin to re...
[ 0.6602461934089661, -0.044716976583004, 0.20731393992900848, 0.12640218436717987, -0.12047149240970612, -0.41364631056785583, 0.28031912446022034, -0.13908566534519196, 0.05744762346148491, -0.7157109379768372, -0.3660203814506531, 0.38047710061073303, -0.2069282978773117, -0.1108957752585...
Given two DateTimes in C#, how can I display the difference in years and months? I can do basic arithmatic on the timespan that comes from a simple subtraction but this won't take into account the differing lengths of months, leap years etc. Thanks for any help. Because the underlying representation is measured in 10...
[ 0.3771516978740692, -0.15301358699798584, 0.5983295440673828, -0.18368013203144073, 0.17681777477264404, 0.16069068014621735, 0.05960220843553543, -0.022106198593974113, -0.22588956356048584, -0.5840510725975037, 0.11744914203882217, 0.1216992437839508, 0.02328645996749401, 0.3157451748847...
I want to output my InnerXml property for display in a web page. I would like to see indentation of the various tags. Is there an easy way to do this? Here's a little class that I put together some time ago to do exactly this. It assumes that you're working with the XML in string format. ``` public static class Forma...
[ 0.5556653141975403, -0.0160838570445776, 0.6207951307296753, -0.22733350098133087, -0.005057837348431349, -0.19131965935230255, 0.14659269154071808, -0.6134622097015381, -0.1224580779671669, -0.6523926258087158, 0.014874731190502644, 0.7575584053993225, -0.37922993302345276, -0.04623303189...
new StringBuilder(); StringWriter sw = new StringWriter(sb); XmlTextWriter xtw = null; try { xtw = new XmlTextWriter(sw); xtw.Formatting = Formatting.Indented; xd.WriteTo(xtw); } finally
[ 0.06420398503541946, -0.3902485966682434, 0.9224168658256531, -0.3473879098892212, -0.11334197223186493, 0.1657177209854126, 0.40195152163505554, -0.6059370636940002, 0.010354917496442795, -0.5052714943885803, -0.2272309511899948, 0.3524598777294159, -0.1421811580657959, 0.2619387507438659...
{ if(xtw!=null) xtw.Close(); } return sb.ToString(); } } ```
[ 0.04001259803771973, -0.04785950109362602, 0.4290599524974823, -0.6570316553115845, 0.1390099674463272, -0.17383438348770142, 0.4858016073703766, -0.5799599885940552, 0.04720384627580643, -0.4020131230354309, -0.41169026494026184, 0.6560150384902954, -0.5550774931907654, 0.3050627410411834...
What is the difference between ActionError and AcrionMessage ? Soundex won't help you. Soundex focuses on the beginning of the word, not its ending. Generally it think you'll have hard time finding any tool to do this. Even to the linguist the root of the word is more interesting, than it's ending. Generally what you...
[ 0.1383824348449707, -0.19072480499744415, -0.043806158006191254, -0.011379823088645935, -0.3889324963092804, 0.3912012279033661, 0.5051592588424683, -0.188858300447464, -0.1377711296081543, -0.45044732093811035, 0.020425427705049515, 0.6335375308990479, -0.007877811789512634, -0.0701265856...
I know the blackberry has a custom IDE but if memory serves me it's quite a sub par IDE. Does anyone know if there's a different IDE out there for the device? For 'native' BlackBerry app development (i.e. Java app development), there are basically 4 options: 1. [RIM's JDE](http://na.blackberry.com/eng/developers/javaa...
[ -0.09041273593902588, 0.12769606709480286, 0.18211327493190765, 0.08013284206390381, -0.30972203612327576, 0.0415719710290432, 0.39798876643180847, -0.23077984154224396, -0.12897542119026184, -0.5511730909347534, 0.020065831020474434, 0.6275708079338074, -0.30232739448547363, -0.0806945264...
developers swore by it a couple of years ago 4. Custom Eclipse/JDE environment - using [ant scripts](http://bb-ant-tools.sourceforge.net/) and [RIM's JDWP debugger interface](http://na.blackberry.com/eng/developers/javaappdev/javadevenv.jsp) (the component package section on that page). This used to be the only way to ...
[ 0.46617376804351807, 0.1093650609254837, 0.22776828706264496, -0.04764823243021965, -0.2984045445919037, -0.10072363168001175, 0.39125630259513855, 0.10806148499250412, 0.014414757490158081, -0.5795206427574158, 0.3062112629413605, 0.5435028672218323, -0.02463679574429989, -0.1360033452510...
outweigh them. So either 1 or 2, with the caveat that you should chose one or the other for your whole team, as they're really not compatible with each other (differences in project structure and how they handle resources). You can move from 1 to 2 easily, but not really the other way around.
[ 0.06102311983704567, -0.19041845202445984, 0.08232922106981277, 0.2577953040599823, 0.02007949724793434, -0.10695298761129379, 0.2968197464942932, -0.2886638641357422, -0.05619075521826744, -0.49811238050460815, -0.10525152832269669, 0.5980751514434814, 0.09854397177696228, -0.236140325665...
I have a table: ``` Id Catg 1 cat01 2 cat01 3 cat01 1 cat02 2 cat02 ``` now I want to detect number of occurance of catg01 and catg02,like in this ex, catg01 is 3 times and catg02 is 2 times,I want to count that through LINQ/ simple db query. Pls note: cant use Where clause and hardcode Catg01/catg 02,as ...
[ -0.2327284961938858, 0.05880983546376228, 0.4505155682563782, -0.1627059131860733, -0.26901960372924805, 0.1069774255156517, -0.05236576870083809, -0.4427935779094696, -0.3201911151409149, -0.7135184407234192, 0.10207079350948334, 0.3133366107940674, -0.3276314437389374, 0.1018526777625083...
public int ID { get; set; } public string CatG { get; set; } } ``` Then if you had a list of that class, you could query it as follows ``` List<Table> y = new List<Table>(); y.Add(new Table() { ID = 1, CatG = "a" }); y.Add(new Table() { ID = 2, CatG = "a" }); y.Add(new Table() { ID = 3, CatG = "a" }); ...
[ -0.23216456174850464, -0.27059999108314514, 0.5096030235290527, -0.3587709367275238, -0.21204465627670288, 0.08220943063497543, 0.2565615475177765, -0.5021940469741821, -0.16746436059474945, -0.5517628192901611, -0.5284668207168579, 0.43816399574279785, -0.6532412767410278, 0.0198294725269...
Iterate over each IGrouping in the collection. foreach (var item in query) { Console.WriteLine("CatG: {0} Number of Items: {1}", item.Key, item.Count()); } ```
[ -0.44415631890296936, -0.17301928997039795, 0.2900148332118988, -0.3120385408401489, 0.16841959953308105, 0.1583215743303299, 0.060144614428281784, -0.47183263301849365, 0.08570171147584915, -0.4427492618560791, -0.0794939249753952, 0.31273138523101807, -0.46215805411338806, 0.290309399366...
I have seen a lot of C# programs that use the `[]`, for example `[STAThread]` and then the code follows. Another classic example is `[DLLImport]`. I know what `STAThread` means but my question is what is the significance of the square brackets, essentially what do they tell the compiler? It's an attribute. Attributes ...
[ 0.5795170664787292, 0.10697854310274124, -0.19960102438926697, 0.3494846224784851, -0.3946888744831085, -0.4038037955760956, -0.12001340836286545, -0.027097713202238083, -0.12381145358085632, -0.29309776425361633, -0.013294018805027008, 0.5727881193161011, -0.023368598893284798, 0.19657108...
I do not know the inner workings of the C# compiler). You can also create your own attributes (by inheriting `System.Attribute`). Using reflection you could then at run-time extract information from the attributes. A simple example would be to create an attribute to specify what kind of input field to use in a HTML f...
[ 0.44375407695770264, 0.3779965341091156, 0.088155597448349, 0.052992191165685654, -0.007699159439653158, -0.09349734336137772, 0.29296720027923584, -0.3621531128883362, 0.07430974394083023, -0.48358723521232605, 0.0918814018368721, 0.45474207401275635, -0.012872775085270405, 0.302422493696...
My code won't compile due to the error below: The call is ambiguous between the following methods or properties: 'System.Math.Round(double, int)' and 'System.Math.Round(decimal, int) My code is ``` Math.Round(new FileInfo(strFilePath).Length / 1024, 1) ``` How can I fix this? Thanks The problem is that you make a...
[ 0.15228497982025146, 0.45644065737724304, 0.40145501494407654, 0.033658433705568314, 0.003194895340129733, 0.21545517444610596, 0.560713529586792, -0.07875978946685791, -0.13260185718536377, -0.4878862500190735, 0.06457693874835968, 0.7748677730560303, -0.27164238691329956, 0.1238153055310...
How to bind to a WPF dependency property when the datacontext of the page is used for other bindings? (Simple question) The datacontext of the element needed to be set. XAML: ``` <Window x:Class="WpfDependencyPropertyTest.Window1" x:Name="mywindow"> <StackPanel> <Label Content="{Binding Path=Test, ElementNam...
[ 0.053331583738327026, -0.02945120260119438, 0.5445715188980103, -0.0838170275092125, -0.04600831866264343, -0.2512604296207428, 0.15813636779785156, -0.8689014911651611, -0.031041966751217842, -0.7055943608283997, -0.21499517560005188, 0.4794025123119354, -0.2859039306640625, 0.03843246772...
typeof(Window1), new FrameworkPropertyMetadata("Test")); public string Test { get { return (string)this.GetValue(Window1.TestProperty); } set { this.SetValue(Window1.TestProperty, value); } } ``` Also see this related question: [WPF DependencyProperties](https://stackoverflo...
[ 0.20180906355381012, -0.12360597401857376, 0.2833849787712097, -0.11907702684402466, 0.1858031153678894, -0.039679355919361115, 0.41183382272720337, -0.3869931101799011, -0.08372046798467636, -0.6580297350883484, -0.48826250433921814, 0.5660966038703918, -0.2619898021221161, 0.088150195777...
Difference between Custom Tag and Java Bean? A custom JSP tag has to be interpreted and run inside a JSP; a Java Bean does not. A custom JSP tag has to extend the javax.servlet.jsp.tagext.Tag interface; a Java Bean does not. A custom JSP tag might use other Java Beans to do its work, but the reverse is not true.
[ 0.32875195145606995, -0.27250775694847107, 0.2780669629573822, 0.004266864620149136, -0.17131756246089935, -0.2349931001663208, 0.03151336684823036, -0.2654810845851898, -0.25246986746788025, -0.40895333886146545, -0.15174247324466705, 0.48673731088638306, -0.6910738348960876, -0.217735096...
I hacked a following code: ``` unsigned long long get_cc_time () volatile { uint64 ret; __asm__ __volatile__("rdtsc" : "=A" (ret) : :); return ret; } ``` It works on g++ but not on Visual Studio. How can I port it ? What are the right macros to detect VS / g++ ? ``` #if defined(_MSC_VER) // visual c #elif def...
[ 0.368375688791275, 0.15205985307693481, 0.19238118827342987, -0.016601400449872017, -0.2756097912788391, -0.1083194762468338, 0.5855348706245422, -0.05233136937022209, -0.11476217955350876, -0.5542923808097839, 0.03701430559158325, 0.8854658007621765, -0.25673964619636536, 0.00823484454303...
If I have a list of objects that require similar layouts but need some attribute set based on the class of object how can I go about getting the class name while **class** and other **xx** values are not available within templates. ``` {% for obj in objects %} <div class={{obj.__class__.__name__}} .. </div> {% e...
[ -0.021775873377919197, 0.053604915738105774, 0.24796347320079803, 0.17203514277935028, 0.11372336000204086, 0.11695527285337448, 0.36906781792640686, -0.18506880104541779, -0.2756243348121643, -0.7910887002944946, 0.2314089685678482, 0.5632039308547974, -0.2482362538576126, 0.3191590309143...
.... return class_name ``` then in your template you can try: ``` {% for obj in objects %} <div class="{{obj.get_cname}}"> .. </div> {% endfor }} ```
[ 0.11102507263422012, -0.13097281754016876, 0.27606603503227234, -0.21615007519721985, 0.045996591448783875, 0.1787911206483841, 0.14214006066322327, -0.06636545807123184, -0.11314673721790314, -1.0137758255004883, -0.16608121991157532, 0.28286007046699524, -0.4529528319835663, 0.1840363889...
Is there a command that allows you to partially undo the changes to a file (or files) in the working directory? Suppose you have edited a file a lot but you realize that you want to undo some of the changes back to the committed state, but not the other changes. I'm envisioning an option for `git checkout` that works...
[ 0.36829179525375366, -0.10444774478673935, -0.0220970269292593, -0.05111171305179596, 0.2997223436832428, 0.1126425638794899, -0.017701270058751106, 0.08124491572380066, -0.48843979835510254, -0.5191017389297485, -0.23051074147224426, 0.48658865690231323, -0.28458985686302185, 0.0915897637...
then ``` git checkout -- <path> ``` to discard the working tree changes that you didn't want to keep, by checking out the staged version of the file. Finally, you can use ``` git reset -- <path> ``` to revert the staged version of the file to the most recent committed version of the file to leave you with your c...
[ 0.09904342144727707, -0.12572358548641205, 0.24731816351413727, 0.11598014831542969, 0.129805788397789, 0.10304625332355499, 0.1999812126159668, -0.01822492852807045, -0.24250392615795135, -0.6460180878639221, -0.13290217518806458, 0.9023874402046204, -0.11199295520782471, -0.1969578713178...
I hate repeating functions, particularly in Excel formulas. Is there any way that I can avoid something like: ``` =IF( VLOOKUP(A1, B:B, 1, 0) > 10, VLOOKUP(A1, B:B, 1, 0) - 10, VLOOKUP(A1, B:B, 1, 0) ) ``` [The above is just a simple example of the problem, and not a particular formula that I'm working with.] You co...
[ 0.07150158286094666, 0.25380265712738037, 0.27924802899360657, -0.09671644866466522, -0.17823264002799988, 0.043469663709402084, 0.41690394282341003, -0.09230560064315796, -0.25056716799736023, -0.3229334056377411, -0.09365789592266083, 0.3587223291397095, -0.4660938084125519, 0.3729713857...
Click Add, and close the dialog 6. In your original formula, replace the VLOOKUP parts with the name you just defined: `=IF( Value > 10, Value - 10, Value )` Step (1) is important here: I guess on the second row, you want Excel to use `VLOOKUP(A2,B:B, 1, 0)`, the third row `VLOOKUP(A3,B:B, 1, 0)`, etc. Step (4) achiev...
[ -0.25087058544158936, 0.00044467675616033375, 0.6495522856712341, -0.14705033600330353, -0.06143598631024361, 0.16206049919128418, 0.0893249362707138, -0.35260263085365295, -0.21303865313529968, -0.5450451970100403, -0.2016158252954483, 0.4289734959602356, -0.2657485008239746, -0.164666965...
you can do "Use in Formula", right under Define Name, while editing the formula, or else start typing it, and Excel will suggest the name (credits: Michael Rusch) > 2. **Shortened steps:** 1. Right click a cell and click Define name... 2. Enter a name and the formula which you want to associate with that name/local var...
[ 0.07866904884576797, 0.486030250787735, 0.1188446506857872, -0.01175929419696331, 0.4274463355541229, -0.06705807149410248, 0.217322438955307, -0.36622026562690735, 0.12141424417495728, -0.0016431710682809353, -0.2960764467716217, 0.8190872073173523, -0.37956467270851135, -0.16759444773197...
what is context object design pattern ? A Context is a collection of data, often stored in a `Map` or in a custom class which acts as a struct with accessors and modifiers. It is used for maintaining state and for sharing information within a system. [See this PDF for an indepth description](https://www.dre.vanderbilt....
[ 0.11708880960941315, -0.05676853284239769, 0.25487759709358215, 0.4156571328639984, -0.001206792425364256, -0.11067315936088562, 0.1163523718714714, -0.102260060608387, -0.22119799256324768, -0.6201466917991638, -0.16598191857337952, 0.13723303377628326, -0.1779177039861679, 0.356294572353...
Most of SQL queries have no math operation on where clause. What is wrong having them on 'where clause'? Is there any performance issue? Eg: SELECT \* FROM Employee WHERE Salary\*3 = 5000 If a where clause can utilise an index, it is often (but not always) faster. Using a math operation on a field will stop the ind...
[ 0.08113124221563339, -0.19774705171585083, 0.2421792596578598, 0.04295402765274048, -0.18148915469646454, 0.05413975939154625, 0.07359448820352554, -0.15106788277626038, -0.15122728049755096, -0.5322096943855286, -0.07976758480072021, 0.14091868698596954, -0.12636350095272064, 0.3057845234...
from table where date > dateadd(d, -7, getdate()) ``` query 2: ``` select date from table where dateadd(d, 7, date) > getdate() ``` --- In your example, the query would be far better as: ``` select * from employee where salary = (5000 / 3) ```
[ 0.08689534664154053, -0.1669209897518158, 0.35383787751197815, -0.23336485028266907, 0.09227996319532394, 0.40989378094673157, -0.30981701612472534, -0.336529403924942, -0.1581726372241974, -0.530259907245636, -0.09878645837306976, 0.5664462447166443, 0.10469262301921844, 0.143398120999336...
We currently have a website that has user account functionality, but we are looking to provide an API to allow users to manage their accounts/perform actions via other devices/websites, by providing an API for common tasks. Currently the website login is done via HTTPS for security, and then managed using PHP sessions...
[ 0.46687331795692444, 0.13522972166538239, 0.4138451814651489, 0.22254742681980133, -0.00044025247916579247, -0.19171519577503204, 0.37403324246406555, -0.05868428945541382, -0.27905339002609253, -0.5472058653831482, 0.045923519879579544, 0.32722827792167664, -0.10226763784885406, 0.1143944...
secure? Does the https setup happen before the URL is sent over the wire? If I can sort that out then I would have the login return an access token. The first request should include this token, and the response should return a *new* token, for use on the second request and so on.... Would this work? You can use [basi...
[ 0.3643009066581726, 0.03174927458167076, 0.3385801613330841, 0.015504954382777214, 0.1151018738746643, -0.4609459340572357, 0.40121138095855713, -0.1968337893486023, -0.05127176642417908, -0.5457944273948669, -0.005872300360351801, 0.6050082445144653, -0.17756794393062592, -0.0865836292505...
https, the security is fine. > Is isuing a URL like: <https://www.example.com/login/user-foo@password=bar> secure? It's not good to put the credentials in the URL, since it might end up in a log. > Does the https setup happen before the URL is sent over the wire? Yes, https is established before the http protocol. ...
[ 0.2591308653354645, -0.1507459431886673, 0.439042329788208, 0.05540383234620094, -0.10448957234621048, -0.596505343914032, 0.38764581084251404, 0.01882822811603546, -0.31102094054222107, -0.5401095747947693, -0.011397287249565125, 0.4039243459701538, -0.3158740699291229, 0.0174511391669511...
We're exporting some data from a website app into an Excel spreadsheet, however, when a GBP symbol is used, instead of outputting "£9.99" it produces "£9.99". Here's the code a colleague has written to produce the spreadsheet [tableOut is a StringBuilder that contains an HTML table]: ``` string filename = "EngageRep...
[ 0.3413568437099457, 0.08926764875650406, 0.8763580918312073, -0.1760038286447525, -0.09859288483858109, 0.05408928543329239, 0.2941821217536926, -0.33750876784324646, -0.08595585823059082, -0.48430514335632324, -0.43334510922431946, 0.5718855261802673, -0.43215611577033997, -0.122736632823...
to open, > 'EngageReplies.xls', is in a different > format than specified by the file > extension. Verify that the file is not > corrupted and is from a trusted source > before opening the file. Do you want > to open the file now? I've used Firefox and IE to Open the file with Office 2007. Clicking Yes opens the...
[ 0.05588753893971443, 0.39968428015708923, 0.6221093535423279, -0.132742241024971, -0.1286473572254181, -0.3255011737346649, 0.49364998936653137, -0.04300357401371002, -0.01404234953224659, -0.7200766801834106, -0.4402798116207123, 0.7957169413566589, -0.37085089087486267, 0.112161934375762...
correctly: ``` Response.Charset = ""; Response.ContentEncoding = System.Text.Encoding.Default; ``` Thanks for the inspiration Rowland!
[ -0.3420024514198303, 0.10251244157552719, 0.3495010435581207, 0.23990648984909058, -0.18181489408016205, 0.17476633191108704, 0.6653125286102295, 0.21691198647022247, -0.08965863287448883, -0.11596168577671051, -0.48044976592063904, 0.7789058685302734, 0.1642378568649292, -0.36742919683456...
Is there a way to disable IIS default authentication in global.asax or somewhere else depending on passed parameters. A client requests the same form would be secured using IIS authentication and by providing authentication information in POST variables IIS authentication happens before the request is passed to the A...
[ -0.04673340544104576, -0.29642948508262634, 0.36893153190612793, 0.14766055345535278, 0.07426579296588898, -0.08691976219415665, 0.3568049669265747, -0.24362970888614655, -0.20442357659339905, -0.6350935101509094, -0.22903932631015778, 0.43336963653564453, -0.20779038965702057, 0.169879734...
In our development team we create many small applications, all targeted at a very specific needs of our customers. Therefore we often have problems with creating a uniform user experience regarding: * Choice of icons (GUI) * Naming of configuration files * Naming of configuration options * GUI language (as in "formal...
[ 0.42347395420074463, 0.40534770488739014, 0.04448852688074112, 0.1003711000084877, -0.01011518482118845, -0.0072710574604570866, 0.05058271437883377, 0.15525966882705688, -0.11031000316143036, -0.8340535163879395, -0.058352626860141754, 0.6513813138008118, -0.08354230225086212, -0.01184042...
any of my approaches, but perhaps that's a misconception, so feel free to support them :) I've had several positions where I've had complete ownership of the GUI. This involved me doing all designs/mockups and also supervised the use case writing to make sure it was all consistent. This is by far the best approach to e...
[ 0.4659062922000885, 0.31852853298187256, 0.19237801432609558, 0.17777077853679657, -0.039823148399591446, 0.01981418766081333, 0.07393627613782883, -0.14217974245548248, -0.07167386263608932, -0.5746777653694153, 0.06794554740190506, 1.004112958908081, 0.15073533356189728, -0.3792972266674...
company might have. A must is a dictionary that contains the domain language your ase using and how it should be used in the GUI. This is one of the most important things that a lead gui developer needs to do. At the very least you should make sure that you review anything that is done by other developers unlessy you...
[ 0.6638326048851013, 0.4091587960720062, 0.24861185252666473, 0.03199150040745735, 0.1356819123029709, -0.40373608469963074, 0.11138620972633362, 0.14096754789352417, 0.08775492012500763, -0.5972219109535217, -0.21369217336177826, 0.7888829708099365, 0.23146259784698486, -0.2313386946916580...
I have given one HTML file. When someone fills the form & sends it, it should send email to their mail id. how to write code for this in ASP? **Your Name:\*** **Email:\*** **Phone No:** **Your Message:\*** * Gnaniyar Zubair Use CDOSYS like this:- ``` Dim oMsg : Set oMsg = CreateObject("CDO.Message") oMsg.From = "Me ...
[ 0.4278022050857544, 0.21682026982307434, 0.5017831325531006, -0.11842215061187744, -0.23012025654315948, -0.03335518762469292, 0.18321849405765533, -0.2678476572036743, 0.07972586154937744, -0.5405150055885315, -0.22583149373531342, 0.17828987538814545, -0.4325568974018097, 0.0909525677561...
default configuration for the CDO.Message object. Failing that you need to configure the mail settings yourself using a function like this:- ``` Function GetConfiguration() Const cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing" Const cdoSMTPServer = "http://schemas.microsoft.com/...
[ -0.24428637325763702, -0.24317944049835205, 0.5700695514678955, -0.01226039882749319, -0.13602136075496674, -0.3539271354675293, 0.354783833026886, -0.35873115062713623, -0.19423651695251465, -0.584878146648407, -0.503642201423645, 0.5119658708572388, -0.5218875408172607, -0.17835143208503...
.Item(cdoSMTPServerPort) = 25 .Update End With End Function ``` Then add this line to the main body of code before calling send:- ``` Set oMsg.Configuration = GetConfiguration() ``` Just tweak the the GetConfiguration content to use your SMTP servers host name. Note don't use CDONTS its deprecated.
[ -0.015437961556017399, -0.20277367532253265, 0.6535502672195435, -0.016987495124340057, -0.0787520706653595, -0.2727079689502716, 0.37886273860931396, 0.06023221090435982, -0.13929976522922516, -0.7230691313743591, -0.31571024656295776, 0.33765512704849243, -0.484106183052063, 0.1521504819...
I am trying include c++ library (DLL) in my c# project but every time I do that I get following error message in VS2008, any suggestions? **EDIT:** It's a C++ MFC DLL > ``` > --------------------------- > Microsoft Visual Studio > --------------------------- > A reference to 'C:\Users\cholachaguddapv\Desktop\imaging....
[ 0.35156381130218506, 0.13354367017745972, 0.3979801833629608, -0.16336499154567719, 0.11437539011240005, -0.028994861990213394, 0.15980401635169983, -0.05208302289247513, -0.22937297821044922, -0.8062508702278137, -0.2538825273513794, 0.41856661438941956, -0.4759567975997925, 0.08013864606...
your DLL. ``` [DllImport("yourdll.dll")] public static extern int ExportToCall(int argument); ``` Have a look at the [DllImport](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx) attribute in the online help.
[ -0.14777737855911255, -0.3053276538848877, 0.7495880126953125, 0.14176447689533234, 0.010724104009568691, -0.10149404406547546, 0.08154062181711197, 0.20264071226119995, -0.2492830902338028, -0.785847008228302, -0.4553254246711731, 0.6852094531059265, -0.3196724057197571, 0.083712577819824...
What is meant by latency which is returned by ping? i.e. the 'time' in the below ``` C:\Users\guest>ping -n 2 www.google.com Pinging www.google.com [62.252.60.89] with 32 bytes of data: Reply from 62.252.60.89: bytes=32 time=11ms TTL=58 Reply from 62.252.60.89: bytes=32 time=15ms TTL=58 Ping statistics for 62.252...
[ -0.32650288939476013, -0.3747329115867615, 0.6479901075363159, 0.30112484097480774, 0.01161776203662157, 0.3082044720649719, 0.5086366534233093, -0.14778049290180206, -0.28460779786109924, -0.5715099573135376, -0.2667522728443146, 0.4639216661453247, -0.035508010536432266, -0.1372478008270...
local network but can be very large (relatively) for satellite transmissions, for example. If it's likely to be more than one second, you may have to bump up the timeout so as to not detect it as a lost packet. The following diagram shows you the idea. ```` SENDER RECEIVER | |...
[ -0.04364614561200142, -0.5966246724128723, 0.4876415729522705, 0.1642744392156601, 0.11954399198293686, -0.2774125933647156, 0.2369668185710907, 0.3439234495162964, -0.5000166296958923, -0.854255199432373, -0.0675295740365982, 0.41318637132644653, -0.11059482395648956, 0.09099459648132324,...
^ | \ | | | \ | latency -+ | \| ping received | | /| ping response | | / |
[ -0.2992383539676666, -0.2651606500148773, 0.43449681997299194, -0.07151991128921509, 0.18306459486484528, 0.114954374730587, -0.1050567552447319, -0.0266080554574728, 0.03225965425372124, -0.5982481837272644, -0.2148664891719818, 0.4718846380710602, -0.39624089002609253, -0.132497221231460...
v | / | ping response |/ | received | | ````
[ 0.0012314398773014545, 0.0987800732254982, 0.47586214542388916, -0.06290005147457123, -0.0952114537358284, 0.09312058985233307, 0.2375248670578003, -0.15657958388328552, -0.1423918455839157, -0.4716693162918091, -0.21431422233581543, 0.5698323249816895, -0.379768967628479, 0.08644433319568...
I have this class you see below in the answer. There I can refer to for example the `Value` with `<see cref="Value"/>`, and the class itself with `<see cref="GenericEventArgs{T}"/>`. 1. How can I refer to default(T)? Is it even possible? 2. How can I refer to the constructors? --- ``` /// <summary> /// A simple <see...
[ -0.2468872219324112, -0.31684648990631104, 0.15817944705486298, 0.006274145562201738, -0.16573035717010498, -0.19056636095046997, 0.05324922874569893, -0.15910328924655914, -0.1264335662126541, -0.6683601140975952, -0.21208514273166656, 0.5096927881240845, -0.3510899543762207, 0.2612479031...
GenericEventArgs() : this(default(T)) {} /// <summary> /// Instantiates a <see cref="GenericEventArgs{T}"/> /// </summary> /// <param name="value"></param> public GenericEventArgs(T value) { Value = value; } /// <summary> /// The value. /// </summary> public...
[ -0.05891307070851326, -0.3516969382762909, 0.38966426253318787, 0.03484798222780228, -0.2680432200431824, 0.0690176710486412, 0.3398842215538025, -0.3010830581188202, -0.24660815298557281, -0.23114114999771118, -0.397927463054657, 0.4267263114452362, -0.31699827313423157, 0.276952713727951...
the value parameter". See the Documentation of [Dictionary.TryGetValue](http://msdn.microsoft.com/en-us/library/bb347013.aspx)
[ -0.14254283905029297, 0.022842945531010628, 0.27094849944114685, 0.1614098995923996, 0.18678441643714905, 0.16552917659282684, 0.0063074324280023575, -0.2466260939836502, -0.0766354650259018, -0.2346852421760559, -0.19061483442783356, 0.4999297857284546, -0.22237984836101532, -0.0173534620...
I am a bit confused and need your help. I have a database that has more than 150 tables. I have several fields which should support Unicode but right now they dont and therefore I want to change the column datatype to ntext and nvarchar in this process I have to drop the constraints and then create them again. Is it sa...
[ 0.04664256051182747, 0.2754329741001129, 0.3397708237171173, 0.06987017393112183, 0.07040219008922577, 0.249444842338562, 0.41347965598106384, -0.04140201956033707, -0.24466706812381744, -0.9075424075126648, 0.23243194818496704, 0.48029935359954834, -0.4185447096824646, -0.0534177534282207...
alter the column data type of a fully grown project. If you can do this without the database being live then it should be safe. Important things to bear in mind are making sure that you have all the constraints documented, that none of them will be affected by the change in column type (or if they are that you have mit...
[ 0.5721516609191895, 0.013369147665798664, 0.04788462072610855, 0.023224547505378723, 0.09417285770177841, -0.18693231046199799, 0.0819171816110611, 0.13600827753543854, -0.2742064595222473, -0.5031509399414062, 0.07617072016000748, 0.5629759430885315, -0.16028407216072083, -0.1372491270303...
MySQL doesn't seem to have deffering constraints until the end of a transaction implemented yet. If so, what's the best way to switch parents in two child records? For instance if we have some UI slots that each user can place items in. How should be switch items in user's slots, given that slotid is FK in item table...
[ 0.1259707808494568, -0.14017879962921143, 0.15953049063682556, 0.41641247272491455, 0.06414331495761871, 0.06642735749483109, -0.13004499673843384, 0.06747765839099884, -0.13757044076919556, -0.8762704133987427, 0.4550848603248596, 0.08378785103559494, -0.09173396229743958, 0.3402332067489...
item always has to be in some slot - so setting it as nullable would mean giving up semantic correctness and important safety check just to make some implementation detail easier. I described the similar issue [**in this post**](http://explainextended.com/2009/03/26/sorting-lists-moving-items/). Seems that making the ...
[ -0.10487721860408783, 0.1289968639612198, 0.07149231433868408, 0.09218884259462357, -0.19397376477718353, -0.25627952814102173, 0.40958860516548157, 0.22366882860660553, -0.607591986656189, -0.36489224433898926, -0.39439553022384644, -0.016549542546272278, -0.38365402817726135, 0.359571248...
I have two tables (item and category, I think they speak for themselves) and two associated model objects. I'm facing a design decisions in the function that fetches 1 item from the database. I need this method to also return the category (name, not just id) of the item. I have two options: * In the item model, use a...
[ -0.016301225870847702, -0.10511264950037003, 0.4177992045879364, 0.2328912913799286, -0.1948343962430954, 0.29520902037620544, -0.05111803859472275, -0.1461208015680313, -0.26720312237739563, -0.5894262194633484, 0.11804819852113724, 0.48011937737464905, -0.2620791792869568, 0.271183490753...
etc. You can always optimize later if you need to. In many cases, the overhead of the second select will be negligible. Your time isn't so negligible. Nor is the time of whomever (you? someone else?) maintains the code. Code it cleanly, call the category, and if it turns out to be "too slow", then change it. Prematu...
[ 0.17997699975967407, 0.15538448095321655, -0.020276615396142006, 0.15074662864208221, 0.29410505294799805, 0.13687244057655334, 0.17296285927295685, 0.06683201342821121, -0.11799409985542297, -0.6075522899627686, 0.05308741703629494, 0.8305396437644958, -0.5018999576568604, 0.2093872874975...
I am very new to iPhone programming and am running into a little bit of weirdness. For the following class, the init method just never gets called -- I have an NSLog function which should tell me when init is executed. Here's the relevant code: ``` @interface MyViewController : UIViewController { } @end @implementati...
[ 0.053440533578395844, 0.04971212521195412, 0.6571770310401917, -0.21041306853294373, 0.1322934329509735, 0.08361272513866425, 0.6268021464347839, 0.17957626283168793, -0.224476158618927, -0.7076927423477173, -0.18812306225299835, 0.6602558493614197, -0.2762333154678345, -0.2078867703676223...
viewDidLoad to do additional setup after loading the view. - (void)viewDidLoad { [super viewDidLoad]; //.. } ```
[ 0.09437721967697144, -0.17308099567890167, 0.40236976742744446, -0.14790862798690796, 0.034353107213974, -0.16123510897159576, 0.34152913093566895, -0.034750714898109436, -0.1765095293521881, -0.5229616165161133, -0.3684341609477997, 0.6989844441413879, -0.5155671834945679, 0.2567204535007...
I have a base controller abstract class, which my other controllers inherit. This class needs to load a local xml file in order to create some buttons for the master page. Given that the ControllerContext is null at this stage, what is the best practice for loading the file? (When running on the webserver, I get the fo...
[ 0.018666407093405724, -0.13276320695877075, 0.7179338335990906, -0.04874325171113014, 0.10231372714042664, -0.013738777488470078, -0.07685859501361847, -0.3426763117313385, -0.257499635219574, -0.7836685180664062, 0.05153419449925423, 0.3169187307357788, -0.3589387536048889, 0.399825900793...
{ XDocument buttonsXmlDoc = XDocument.Load("Content/Xml/Buttons.xml"); } } } ``` The document is actually loaded from a Model class, but I've left this out for brevity. As a side issue, would you put xml files in Content or in App\_Data? Don't call it in the constructor. Override the Initiali...
[ -0.004366139881312847, -0.2995906472206116, 0.5277544856071472, 0.0959257185459137, 0.1902247816324234, -0.17510861158370972, -0.0666043683886528, -0.11572036892175674, -0.30068063735961914, -0.5662398338317871, -0.11238191276788712, 0.7078970074653625, -0.5811251997947693, -0.082750029861...
I have a URL that also might have a query string part, the query string might be empty or have multiple items. I want to replace one of the items in the query string or add it if the item doesn't already exists. I have an URI object with the complete URL. My first idea was to use regex and some string magic, that sh...
[ 0.2780376970767975, 0.17586784064769745, 0.289623498916626, 0.15703649818897247, -0.1788274198770523, -0.18114161491394043, 0.14945469796657562, -0.03507710620760918, -0.0015035076066851616, -0.6916768550872803, 0.03777002915740013, 0.31040069460868835, -0.12165343016386032, 0.602319002151...
I know this is probably just a terminology mismatch but if i'm not mistaken i believe c# is? unless i'm missing something obvious?? ``` ... private const uint URL_COUNT = 18; private string[] _urls; public Redirector() { this._urls = new string[URL_COUNT]; ... } ... ``` Results i...
[ 0.32520392537117004, 0.0980130285024643, 0.47161704301834106, -0.2782851457595825, -0.03967104107141495, -0.11256519705057144, 0.3128375709056854, -0.1661473661661148, -0.34537142515182495, -0.28108838200569153, -0.10511354357004166, 0.8332363963127136, -0.30701830983161926, 0.188439056277...
going mad. I'm glad no one could repro this as that means it's just a local thing. Thanks for your help guys. This will only fail to compile when you supply both the dimension lengths and an array initializer. For example: ``` this._urls = new string[URL_COUNT]; ``` will be fine, but: ``` this._urls = new string[UR...
[ 0.5454358458518982, -0.010723263956606388, 0.14917254447937012, 0.18253308534622192, 0.0352410152554512, -0.5531754493713379, 0.7322322726249695, -0.13458606600761414, -0.28273263573646545, -0.3840397298336029, -0.12925173342227936, 1.0311726331710815, -0.547124981880188, 0.297891438007354...
be constant expressions > and the number of elements at each > nesting level must match the > corresponding dimension length.
[ 0.09960995614528656, -0.07619499415159225, -0.004071440082043409, 0.013765150681138039, 0.056542493402957916, -0.13039341568946838, 0.40594619512557983, -0.25560957193374634, 0.19353269040584564, -0.6435916423797607, -0.38045576214790344, 0.510658323764801, -0.4420310854911804, -0.22625298...
I'm hoping that we will be overhauling our system to use ASP.NET MVC, however all of the examples provided tend to use LINQ to SQL. We were told by a LINQ developer than it is actually slower than calling a store procedure. Furthermore, how would you call a stored procedure for output using MVC? I'm not entirely sure ...
[ 0.24560053646564484, 0.1196725144982338, 0.14653663337230682, 0.05847952142357826, 0.05765530467033386, -0.19349965453147888, 0.0959850549697876, -0.04551788419485092, -0.3582034707069397, -0.3837507963180542, 0.11450270563364029, 0.6346071362495422, -0.10688228905200958, 0.044067203998565...
simply a way to express your sql code in C#/VB.NET. It will get translated into plain sql. This is the old fight of Stored Procedures VS normal queries, Linq is not really a part of the question.
[ 0.5355512499809265, 0.11194424331188202, 0.18863368034362793, 0.2491360902786255, -0.033033017069101334, -0.4515394866466522, -0.047523025423288345, 0.0030167833901941776, -0.060004279017448425, -0.37280723452568054, 0.09864522516727448, 0.3471005856990814, -0.24811750650405884, -0.1763980...
I'm trying to create a hook to monitor the current position of the mouse cursor. Nothing important, I just need to count some pixels during interface design and wanted to learn how to create a hook, so I decided to go for a hard way instead of a sane way. I've found example code which declares the following function: ...
[ -0.05439469590783119, -0.14323067665100098, 0.7762733101844788, -0.28490185737609863, 0.2140556275844574, 0.16295503079891205, 0.10357487201690674, -0.29561471939086914, -0.11602449417114258, -0.6847090721130371, 0.03263562545180321, 0.729874312877655, -0.5859139561653137, 0.23417200148105...
the function is called, the following code is used: ``` hHook = SetWindowsHookEx(WH_MOUSE, _ hookproc, _ IntPtr.Zero, _
[ 0.1511688530445099, 0.13907146453857422, 0.5665215849876404, -0.4902465045452118, 0.5503987669944763, -0.06709010899066925, 0.022581836208701134, -0.25593531131744385, 0.00921466201543808, -0.2875753939151764, -0.1695227026939392, 0.48842254281044006, -0.3370453417301178, -0.00594387250021...
AppDomain.GetCurrentThreadId()) ``` But Appdomain.GetCurrentThreadID generates the warning: "'Public Shared Function GetCurrentThreadId() As Integer' is obsolete: 'AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threa...
[ -0.05015682429075241, 0.0074192313477396965, 0.8326337933540344, -0.08331967890262604, 0.18795056641101837, -0.2809601426124573, 0.24532775580883026, -0.0809924304485321, -0.32613298296928406, -0.5744474530220032, -0.2981257736682892, 0.548865795135498, -0.830816388130188, 0.38727867603302...
the Win32 thread identifier. Calling the function ith AppDomain.GetCurrentThreadID works, but I really would like to have a "stable identifier" for my thread. Can someone explain to me whether it is possible to use ManagedThreadID in this context (I assume not) and, if not, the things I need to avoid in order to stop...
[ -0.33899757266044617, 0.18152084946632385, 0.4141520857810974, 0.11784732341766357, -0.09441420435905457, -0.2740360200405121, 0.20398221909999847, 0.20377716422080994, -0.10272742807865143, -0.5854911208152771, 0.027403654530644417, 0.7275521755218506, -0.3681942820549011, 0.2641783356666...
there is not necessarily a 1-1 mapping between a native and managed thread. The CLR is free to use multiple native threads to run a single managed thread as long as the native thread is compatible with the one it's replacing. It cannot for instance, be in a different COM apartment. In some ways you're a bit stuck her...
[ 0.30463409423828125, -0.054299239069223404, 0.36531612277030945, 0.3901204466819763, 0.1911269575357437, -0.4246236979961395, 0.2957473695278168, 0.09977126121520996, -0.3408181965351105, -0.4774594306945801, -0.12500154972076416, 0.42947840690612793, -0.18578912317752838, 0.35652652382850...
application and the call to native code occurs on the UI thread. The reason being that both of these UI frameworks live in STA apartments which makes it very hard (if even possible) for the CLR to switch out from under you. Short Version: If you're in a WinForms or WPF application and running this on the UI thread, yo...
[ 0.19479791820049286, -0.08807866275310516, 0.49755558371543884, 0.028491223230957985, 0.17150598764419556, -0.5224396586418152, 0.2532559931278229, -0.1989613026380539, -0.1382933259010315, -0.6361402869224548, -0.3352806270122528, 0.4853646755218506, -0.08959973603487015, 0.22569997608661...
I've been googling around and I just can't find a simple answer to this. And it should be simple, as the STL generally is. I want to define MyOStream which inherits publicly from std::ostream. Let's say I want to call foo() each time something is written into my stream. ``` class MyOStream : public ostream { public: ...
[ 0.2572277784347534, 0.16783376038074493, 0.38632601499557495, -0.15571075677871704, 0.13519716262817383, -0.06190105527639389, 0.0489276722073555, 0.17504002153873444, -0.08507877588272095, -0.7097513675689697, 0.06446327269077301, 0.7959940433502197, -0.2974500060081482, 0.272014141082763...
class. It's not a simple question, unfortunately. The classes you should derive from are the `basic_` classes, such as `basic_ostream`. However, derivation from a stream may not be what you want, you may want to derive from a stream buffer instead, and then use this class to instantiate an existing stream class. The w...
[ 0.10613084584474564, -0.032596271485090256, 0.05787733197212219, 0.10980795323848724, 0.13092945516109467, 0.158710315823555, 0.3482588231563568, 0.05357924848794937, -0.000840547145344317, -0.46105170249938965, -0.09396625310182571, 0.4868400990962982, -0.2038022130727768, -0.224228009581...
I am fairly new to nHibernate and DDD, so please bear with me. I have a requirement to create a new report from my SQL table. The report is read-only and will be bound to a GridView control in an ASP.NET application. The report contains the following fields Style, Color, Size, LAQty, MTLQty, Status. I have the ent...
[ 0.30881595611572266, 0.12121035903692245, 0.5595835447311401, 0.18126708269119263, -0.13461333513259888, -0.11210431158542633, -0.09530400484800339, 0.02701234072446823, -0.13852868974208832, -0.7081479430198669, 0.0981103777885437, 0.3224402666091919, -0.0778832733631134, 0.06828951835632...
Qty and Status fields? If I should not use the same entities, should I create a new class for the report? As said I am new to this and just trying to learn and code properly. Thank you For reports its usually easier to use plain values or special DTO's. Of course you can query for the entity that references all th...
[ 0.6774560809135437, 0.05413560941815376, 0.02775733917951584, 0.406938761472702, -0.3670315742492676, -0.3129926025867462, 0.18468965590000153, 0.2439679056406021, -0.19556233286857605, -0.5582695007324219, 0.15009357035160065, 0.7806037068367004, 0.10034804791212082, 0.13089467585086823, ...
your domain model. How does the class model look like? generally, you have at least three options to get "plain" values form the database using NHibernate. **Write HQL that returns an array of values** For instance: ``` select e1.Style, e1.Color, e1.Size, e2.LAQty, e2.MTLQty from entity1 inner join entity2 where ...
[ -0.00033899088157340884, -0.24643272161483765, 0.5850749611854553, 0.2099171280860901, -0.2276151031255722, -0.059573374688625336, -0.026545321568846703, -0.07886424660682678, -0.17971765995025635, -0.6638085842132568, -0.05701456218957901, 0.5893206596374512, -0.3805394470691681, 0.230631...
one row of the result:** ``` select new ReportDto(e1.Style, e1.Color, e1.Size, e2.LAQty, e2.MTLQty) from entity1 inner join entity2 where (some condition) ``` ReportDto need to implement a constructor that has all this arguments. The result is a list of ReportDto. **Or you use CriteriaAPI (recommended)** ``` sessi...
[ -0.05500081926584244, -0.07567865401506424, 0.8348557949066162, 0.10690578818321228, 0.10537174344062805, 0.19204406440258026, -0.16839224100112915, -0.5749309062957764, 0.028330933302640915, -0.5027342438697815, -0.3901429772377014, 0.45134687423706055, -0.2727349102497101, 0.059290233999...
I am currently developing a query builder application, basically, a simple graphical interface that should allow users with no knowledge of SQL to define various queries on a database (joins, SELECT, INSERT, UPDATE, DELETE). I will be using .NET 3.5. My application should support multiple databases, it should work with...
[ 0.2888639271259308, 0.0859612450003624, 0.45699629187583923, 0.10870350897312164, -0.07562392204999924, -0.0029943175613880157, -0.03577597066760063, -0.11589774489402771, -0.025415893644094467, -0.9546344876289368, 0.04411416873335838, 0.2089044451713562, -0.13906092941761017, 0.312904179...
boxes) and finally execute the queries if they are valid. Of course, in the DAL I do want to have methods for each DB provider. I am thinking something on the lines of the factory pattern. Note: This is a simple school project, so I am not interested in the security or performance of the resulting queries. **UPDATE:...
[ 0.6239914894104004, -0.13977883756160736, 0.2660698890686035, 0.09633231908082962, -0.26748284697532654, -0.09324342757463455, 0.27271392941474915, -0.2718958854675293, -0.017760682851076126, -0.6523754596710205, -0.07894878834486008, 0.38122856616973877, -0.23716305196285248, 0.0166416559...
if you would point me to a detailed tutorial on how to use `DbProviderFactory` and the associated classes. I recommend using the `System.Data.Common.DbProviderFactories` class to generate generic ADO.NET classes. As you find more .NET providers for databases you want to support, simply drop the provider DLL in the app...
[ 0.39400166273117065, 0.1440412700176239, 0.37057337164878845, 0.06934521347284317, -0.2707154154777527, -0.06591585278511047, 0.2122999131679535, -0.025585832074284554, -0.07491879910230637, -0.8418518304824829, -0.19695833325386047, 0.5807174444198608, -0.4482285678386688, 0.2154386341571...
with a minor configuration change. Not sure, if it'll work as well for a query builder app though…
[ 0.06094607710838318, -0.31034931540489197, 0.39218536019325256, 0.24981091916561127, 0.11623867601156235, 0.07865768671035767, 0.15951040387153625, 0.2095116525888443, -0.0868920385837555, -0.32187119126319885, 0.35838544368743896, 0.3837777376174927, 0.001037766458466649, -0.2185128927230...
I am having a bit of trouble building my project with Ant. I wanted to take a look at the Ant scripts that eclipse uses to build my project. How can I do this? Select *Project » Properties » Builders* to see what runs when Eclipse builds your project.
[ 0.7930388450622559, 0.13229063153266907, -0.2133806198835373, 0.03274170681834221, -0.12851482629776, 0.13369928300380707, 0.05796433612704277, -0.025227578356862068, -0.14676383137702942, -1.0289169549942017, 0.452052503824234, 0.41504743695259094, 0.08952439576387405, 0.09699457883834839...
Basically, I have a list of colors and a defined datatemplate for listbox item: ``` <DataTemplate x:Key="colorItemDataTemplate"> <Border x:Name="borderInner" BorderBrush="Black" BorderThickness="1" Background="{Binding Brush}" Width="11" Height="11" /> </DataTemplate> ``` Now, when I add a bunch of items into th...
[ 0.12750285863876343, -0.3134639263153076, 0.8620302081108093, -0.1306714564561844, -0.014041508547961712, 0.17804135382175446, 0.18165399134159088, -0.6663243770599365, -0.22356021404266357, -0.7144606709480286, 0.24049124121665955, 0.4714066982269287, -0.14812926948070526, 0.0118248630315...
items have their templates applied and with more than 200 items in the listbox, this is pretty slow. So, is there any way to refresh the template for only one item from the listbox? Thanx I'm not sure I follow. If you've bound the `Background` to the property, changing the property should automatically udpate the bac...
[ 0.6178631782531738, -0.1310153752565384, 0.3798125684261322, 0.04199008643627167, 0.05628514289855957, -0.05231570824980736, 0.13879495859146118, -0.18143513798713684, -0.30921831727027893, -0.5843418836593628, 0.1812690645456314, 0.5179112553596497, -0.2828317880630493, 0.1432965099811554...
when I use " AllowPaging="True" " property in gridview and upload my webSite ,when I click next page , I can't see that and I see same record that I see already . point : I bind a dataBase on gridview,and I see that in gridview.above problem when I uplaod my website,happen . what is problem that I can't see next page o...
[ 0.3475312292575836, 0.10048211365938187, 0.20994871854782104, 0.22164516150951385, -0.06711208075284958, -0.2993256449699402, 0.44554394483566284, -0.4090060293674469, 0.0327143631875515, -0.5963135957717896, 0.12454541772603989, 0.914335310459137, -0.21255837380886078, -0.1972832679748535...
paging event like so: ``` void GridView_PageIndexChanging(Object sender, GridViewPageEventArgs e) { e.NewPageIndex = e.NewPageIndex + 1; DataBind(); } ``` Check it out on [MSDN](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.pageindexchanging.aspx)
[ -0.18146002292633057, -0.3682793080806732, 0.1780804991722107, 0.06535796821117401, -0.18798303604125977, 0.0703948587179184, 0.2481699138879776, 0.11374116688966751, -0.20017904043197632, -0.7764784097671509, -0.15803980827331543, 0.312282532453537, -0.5147878527641296, -0.061822500079870...
I am trying to run the following in php $test = `svn cat ....` Now the output of $test is basically a binary file returned by svn. How do I make this binary file available as a download. Am trying to put the following: ``` $test = `svn cat ....` header("Content-Disposition: attachment; filename=" . urlencode($filena...
[ 0.35382866859436035, 0.11419590562582016, 0.4116448760032654, -0.0913931205868721, 0.07908801734447479, 0.18273574113845825, 0.5105969309806824, -0.2828993797302246, 0.1901242583990097, -0.6007788181304932, -0.32933396100997925, 0.2397734522819519, -0.36595046520233154, 0.00195743446238338...
Quite often our systems call stored procedures which output multiple tables worth of results. Previously we used XML outputs to get each table and relate them correctly using XSLT. If I were using ASP.NET MVC with LINQ calling a stored procedure, how do I get each of the tables and then output the data as necessary? I ...
[ 0.3794030547142029, 0.1868164986371994, 0.3798448145389557, 0.26488593220710754, 0.05007681995630264, -0.0010031703859567642, -0.3270064890384674, -0.08256678283214569, -0.3926541805267334, -0.7746703028678894, -0.06637085974216461, 0.4900120496749878, -0.16665509343147278, 0.0116899823769...
can even get transaction support that way, which I don't think you'll get from the SOAP Toolkit, since there was no distributed transaction support in SOAP at all back in 2002/2003.
[ -0.0947861596941948, -0.07671476900577545, 0.14257457852363586, 0.318298876285553, -0.042482197284698486, -0.5174146294593811, 0.11849762499332428, 0.11189989000558853, -0.5544623136520386, -0.2849183678627014, 0.2698405086994171, 0.5048753023147583, -0.036424826830625534, 0.01068842597305...
I've got files on Amazon's S3. They are named with a unique ID so there are no duplicates. I am accessing them using an authorized URL. I need to be able to pass them through to the browser, but I need to rename them. Right now I'm using fopen, but it is downloading the file to my server before serving the file to the ...
[ 0.4677387475967407, 0.16891425848007202, 0.5639680027961731, 0.2666088044643402, 0.12078599631786346, -0.0645163506269455, 0.11395289748907089, 0.31827595829963684, -0.40032002329826355, -0.7115946412086487, -0.16324974596500397, 0.20876877009868622, 0.07501032948493958, 0.479000449180603,...
downloading the next chunk? Also - I would really like to use CloudFront but they don't offer authenticated URLs. I believe I can use CURL to send credentials for the request - can I do this sort of 'pass through' file serving with CURL? Thanks! I'm not familiar with how S3 works, so I don't know if this solution is ...
[ 0.531664252281189, -0.11334989964962006, 0.4816391170024872, 0.3593708574771881, -0.4668236970901489, -0.19694755971431732, 0.29610443115234375, 0.11511305719614029, -0.3841902017593384, -0.4884530305862427, -0.048751749098300934, 0.32983431220054626, -0.16556887328624725, 0.13844376802444...
generate a temporary URL for that download](http://bart.motd.be/using-amazon-s3-serve-static-files) and then remove that once the user has downloaded it. If that is not an option, you can try these PHP Classes: * [HTTP protocol client](http://www.phpclasses.org/browse/package/3.html) - A class that implements request...
[ 0.1348595917224884, -0.18640919029712677, 0.47838109731674194, 0.09085869789123535, -0.40914005041122437, -0.1155150830745697, 0.20213770866394043, -0.09575100243091583, -0.3559800982475281, -0.659107506275177, -0.420751690864563, 0.4077042043209076, -0.2175285667181015, 0.3107931613922119...
[This page](http://docs.amazonwebservices.com/AmazonS3/latest/index.html?RESTAuthentication.html) has the info on how to "pre-authenticate" a request by encoding the authentication key in the URL. It's under the section titled: **Query String Request Authentication Alternative**. ``` // I'm only implementing the parts...
[ 0.012834285385906696, -0.19192346930503845, 0.9565749764442444, 0.11786341667175293, 0.17542770504951477, -0.14588478207588196, 0.7401168346405029, -0.43401771783828735, 0.1522437036037445, -0.43392589688301086, -0.5238449573516846, 0.22878390550613403, -0.01942492090165615, 0.233321681618...
.'&Signature='.$signature; ``` Then just redirect the user to `$url`, and they should be able to download the file. The signature is encoded by a one-way encryption scheme (sha1), so there's no risk of your AWS Secret Access Key being uncovered.
[ 0.22742816805839539, 0.06726925820112228, 0.11388970911502838, 0.07872724533081055, 0.09398438781499863, -0.21072037518024445, 0.38773393630981445, 0.16844606399536133, 0.006970015820115805, -0.5284061431884766, -0.2911325991153717, 0.11385072767734528, -0.09872332960367203, 0.262205392122...
How do I retrieve the session ID value inside a JSF managed bean? ``` FacesContext fCtx = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false); String sessionId = session.getId(); ```
[ -0.008508049882948399, 0.10074536502361298, 0.47011321783065796, -0.11505911499261856, -0.0721832811832428, -0.3839549422264099, 0.6502900123596191, -0.18227611482143402, -0.22185027599334717, -0.631325900554657, -0.31405431032180786, 0.6144216656684875, -0.36163467168807983, 0.05587558075...
Does anyone know a way to access the text of stored procedures using LINQ to SQL? I'd like to audit a set of stored procedures to check that they contain all contain some common code. It feels like there should be a nice way of opening them through a LINQ to SQL data context but I don't know how. Any suggestions? You ...
[ 0.34576377272605896, 0.21154969930648804, 0.19218681752681732, 0.22693794965744019, 0.0927974060177803, -0.0862305536866188, 0.07404962182044983, -0.08884014189243317, -0.12387082725763321, -0.516920804977417, 0.09722234308719635, 0.7177774906158447, -0.14120177924633026, -0.04564780741930...
There's always skepticism from non-programmers when honest developers learn the techniques of black hat hackers. Obviously though, we need to learn many of their tricks so we can keep our own security up to par. To what extent do you think an honest programmer needs to know the methods of malicious programmers? I'm co...
[ 0.8346990346908569, 0.35959017276763916, -0.2980259358882904, 0.3321554660797119, 0.12657739222049713, -0.6287702322006226, 0.2352062463760376, 0.10369815677404404, 0.07211229205131531, -0.24473197758197784, 0.22292405366897583, 0.8551000952720642, 0.623304009437561, -0.07699700444936752, ...