text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
"less popular" HTTP actions, such as DELETE? Let's say that on the widget 12's view page (returned by HTTP GET), I want to include a form with just a single submit button to delete that widget. For example: ``` <form action="/widget/12" method="DELETE"> <input type="submit" value="Delete Me!" /> </form> ``` However...
[ 0.174899622797966, -0.22388947010040283, 0.31831493973731995, 0.11897269636392593, -0.47495436668395996, -0.2197176069021225, 0.321153461933136, -0.17299993336200714, -0.2837138772010803, -0.6529600620269775, -0.20578184723854065, 0.6533374786376953, -0.3341998755931854, -0.300572186708450...
become common to use the custom X-HTTP-Method-Override header to specify the action.
[ 0.5546734929084778, -0.21936582028865814, -0.04149001091718674, -0.2558824121952057, -0.1561260223388672, -0.36787739396095276, 0.31453099846839905, -0.05442861467599869, -0.2105310708284378, -0.17069625854492188, -0.45122507214546204, 0.26495200395584106, -0.25523602962493896, -0.02162455...
(**Disclaimer:** This question is **not** specific to ASP.NET) I have a control which may be templated, similar to the login controls: ``` public abstract class TemplatedControl : CompositeControl { public ITemplate Template { get; set; } protected override void CreateChildControls() { var templa...
[ 0.41599687933921814, -0.2487773895263672, 0.18346130847930908, -0.009729541838169098, 0.09090284258127213, 0.1662323772907257, 0.21577556431293488, -0.42668846249580383, -0.15023134648799896, -0.7399886250495911, -0.03529410809278488, 0.3376725912094116, -0.2614218592643738, 0.187836423516...
like: ``` public class FooControl : TemplatedControl { public override ITemplate CreateDefaultTemplate() { return new FooTemplate(); } } ``` My question is: would a Singleton be appropriate here instead? ``` public override ITemplate CreateDefaultTemplate() { return FooTemplate.Instance; } ...
[ 0.08112967014312744, -0.07878252118825912, -0.0424540750682354, 0.045407734811306, 0.13756118714809418, 0.09101571887731552, 0.12315624207258224, -0.11966068297624588, -0.3114582598209381, -0.696976363658905, -0.21384267508983612, 0.35366979241371155, -0.4286108613014221, 0.247416391968727...
controls, pages and threads. You would have to be very careful that the template did not contain any request or user specific information, and also synchronize any method calls. It is much easier, and just a bit less performant to instantiate it each time. The only reason I see doing it that was is that it takes a lon...
[ 0.32405903935432434, -0.2740806043148041, 0.19697242975234985, 0.455914705991745, -0.13195396959781647, -0.05831313878297806, -0.15704120695590973, -0.098063625395298, -0.3323846757411957, -0.45464685559272766, 0.11295095831155777, 0.28499650955200195, -0.48653918504714966, 0.0444481559097...
In my SharePoint app, I deploy some aspx pages to the `[12 Hive]\TEMPLATE\LAYOUTS` folder. The pages are compiled in a debug mode, I'm copying both .apsx and .cs files. I used to be able to attach to w3wp.exe and set a breakpoint inside the .cs files and hit them just fine. Not today. I'm getting the dreaded "The...
[ 0.6707223653793335, 0.08451137691736221, 0.23667262494564056, 0.08325260132551193, 0.07231192290782928, 0.002616895828396082, 0.5991362929344177, 0.15582168102264404, -0.253602534532547, -0.9853249192237854, 0.07792029529809952, 0.2273797243833542, -0.335589736700058, 0.0411347858607769, ...
my next step? Thanks. *update*: I figured it out. Dont' know what did "debug=false" in `C:\Inetpub\wwwroot\wss\VirtualDirectories\80\web.config` but it's working now. Check to make sure that the section of your web.config does not have the debug value set to "false". :)
[ 0.14294016361236572, 0.07291106879711151, 0.5453909039497375, 0.2436288744211197, 0.4734458327293396, -0.34420955181121826, 0.9485622644424438, 0.06943178921937943, -0.10488487780094147, -0.664350688457489, -0.14278821647167206, 0.6202830076217651, 0.056732550263404846, -0.0084916707128286...
Is there a portable wchar\_t in C++? On Windows, its 2 bytes. On everything else is 4 bytes. I would like to use wstring in my application, but this will cause problems if I decide down the line to port it. If you're dealing with use internal to the program, don't worry about it; a wchar\_t in class A is the same as in...
[ 0.34293434023857117, 0.21786272525787354, 0.4268195331096649, 0.0626114159822464, 0.10529781132936478, 0.06856592744588852, -0.017115021124482155, -0.12193683534860611, -0.412087619304657, -0.6905423998832703, 0.09978750348091125, 0.5160218477249146, -0.3847772479057312, 0.2312769144773483...
that you'll define to be four bytes everywhere, and implement your own strings, etc. (since most text handling in C++ is templated), but I don't know how well that would work for your needs. Something like `typedef int my_char; typedef std::basic_string<my_char> my_string;`
[ 0.4138765037059784, 0.25908470153808594, 0.3650833070278168, -0.16728025674819946, 0.0025594031903892756, 0.19053898751735687, 0.17014387249946594, -0.17592062056064606, -0.25716790556907654, -0.20395423471927643, -0.17044180631637573, 0.5256120562553406, -0.48682281374931335, -0.145641297...
I am generating associative arrays and the key value is a string concat of 1..n columns. Is there a max length for keys that will come back to bite me? If so, I'll probably stop and do it differently. It seems to be limited only by the script's memory limit. A quick test got me a key of 128mb no problem: ``` ini_set...
[ 0.14497010409832, 0.07349719852209091, 0.44382667541503906, -0.43120887875556946, -0.08063739538192749, 0.2900404930114746, 0.7076358795166016, -0.4570469558238983, -0.03217996656894684, -0.4866875112056732, 0.040722109377384186, 0.675258219242096, -0.3381674587726593, 0.06725424528121948,...
**Duplicate**: [Generating SQL Schema from XML](https://stackoverflow.com/questions/263836/generating-sql-schema-from-xml) --- In a project i am working on, i have a need to support either a strongly-typed dataset for storing the data as XML, or storing the data in sql server. Now i already have the XSD schema create...
[ 0.5023127198219299, 0.4314975440502167, 0.04562228173017502, 0.3735150992870331, 0.0472748763859272, -0.1445748656988144, -0.050972916185855865, 0.12389806658029556, -0.529268205165863, -0.7212501168251038, 0.36888542771339417, 0.23841162025928497, -0.5400160551071167, 0.27018481492996216,...
be done? I managed to come up with the following class based on the SQL Server Management Objects: ``` using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.IO; using System.Text; using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Sm...
[ 0.5121826529502869, 0.04831584542989731, 0.5231645703315735, -0.05197061225771904, 0.21231743693351746, 0.03907735273241997, 0.2855241596698761, -0.6940077543258667, -0.17943572998046875, -0.4105386734008789, -0.3921428322792053, 0.48256346583366394, -0.2966063618659973, 0.2682251930236816...
_source = source; } public void CreateDatabase(string databaseName) { _databaseName = databaseName; _db = _server.Databases[databaseName]; if (_db != null) _db.Drop(); _db = new Database(_server, _databaseName); _db.Create(); } public void PopulateDatabase()...
[ 0.09613855183124542, 0.12042287737131119, 0.2868303656578064, -0.1218101903796196, -0.07582371681928635, -0.07586400955915451, 0.04451729357242584, -0.06540293246507645, 0.19325987994670868, -0.7320712804794312, -0.2091236114501953, 0.3063172698020935, -0.6223335266113281, 0.67380863428115...
CreateRelationships(); } private void CreateRelationships() { foreach (DataTable table in _source.Tables) { foreach (DataRelation rel in table.ChildRelations) CreateRelation(rel); } } private void CreateRelation(DataRelation relation) { ...
[ -0.08110193908214569, 0.29145097732543945, 0.5894206762313843, 0.010713482275605202, 0.25187021493911743, 0.16674838960170746, -0.2361333817243576, -0.2063070833683014, -0.2538466453552246, -0.3439245820045471, -0.491610050201416, 0.3075703978538513, -0.42188766598701477, 0.474683851003646...
primaryTable = _db.Tables[relation.ParentTable.TableName]; Table childTable = _db.Tables[relation.ChildTable.TableName]; ForeignKey fkey = new ForeignKey(childTable, relation.RelationName); fkey.ReferencedTable = primaryTable.Name; fkey.DeleteAction = SQLActionTypeToSMO(relation.ChildK...
[ -0.39593207836151123, 0.0961427316069603, 0.6156062483787537, -0.10316211730241776, 0.011544059962034225, 0.6123082041740417, 0.29953116178512573, -0.3692348897457123, 0.04500496760010719, -0.29112422466278076, -0.29318246245384216, 0.026486730203032494, -0.23170427978038788, 0.69610899686...
ForeignKeyColumn fkc = new ForeignKeyColumn(fkey, col.ColumnName, relation.ParentColumns[i].ColumnName); fkey.Columns.Add(fkc); } fkey.Create(); } private void CreateTables(DataTableCollection tables) { foreach (DataTable table in tables) {
[ -0.5457891225814819, 0.33182552456855774, 0.4987223446369171, -0.5298829078674316, 0.06786368042230606, 0.32839512825012207, 0.18104290962219238, -0.06373090296983719, -0.0533188059926033, -0.21927134692668915, -0.2848770022392273, -0.009760696440935135, -0.39208102226257324, 0.51754182577...
DropExistingTable(table.TableName); Table newTable = new Table(_db, table.TableName); PopulateTable(ref newTable, table); SetPrimaryKeys(ref newTable, table); newTable.Create(); } } private void PopulateTable(ref Table outputTable, DataT...
[ 0.060693830251693726, -0.2609272003173828, 0.7447723150253296, 0.00005339963172446005, 0.10017766058444977, 0.2865171730518341, -0.02177119068801403, -0.08500504493713379, -0.05005759373307228, -0.27955639362335205, -0.5544626712799072, 0.39863917231559753, -0.704436182975769, -0.044958736...
{ foreach (DataColumn column in inputTable.Columns) { CreateColumns(ref outputTable, column, inputTable); } } private void CreateColumns(ref Table outputTable, DataColumn inputColumn, DataTable inputTable) { Column newColumn = new Column(outputTable, inputColumn....
[ -0.27305784821510315, 0.12032938003540039, 0.6392782330513, -0.12545336782932281, 0.4101122319698334, 0.48637068271636963, 0.0241549089550972, -0.33440303802490234, -0.13811610639095306, -0.44576898217201233, -0.6356486082077026, 0.6129822134971619, -0.3516530990600586, 0.15655174851417542...
newColumn.IdentityIncrement = inputColumn.AutoIncrementStep; newColumn.IdentitySeed = inputColumn.AutoIncrementSeed; newColumn.Nullable = inputColumn.AllowDBNull; newColumn.UserData = inputColumn.DefaultValue; outputTable.Columns.Add(newColumn); } private void SetPrimaryKeys(re...
[ -0.1482628732919693, -0.16853035986423492, 0.8529810309410095, -0.16417196393013, 0.37978827953338623, 0.41385483741760254, 0.01057247444987297, -0.4642360806465149, -0.28253698348999023, -0.4254685044288635, -0.31596603989601135, 0.5569062232971191, -0.5980120301246643, 0.2196323424577713...
false; foreach (DataColumn keyColumn in inputTable.PrimaryKey) { newIndex.IndexedColumns.Add(new IndexedColumn(newIndex, keyColumn.ColumnName, true)); } if
[ -0.33826619386672974, -0.062429096549749374, 0.30359822511672974, -0.1814878135919571, 0.3310820162296295, 0.01839892379939556, 0.3040219843387604, -0.08727671951055527, 0.028618909418582916, -0.33986130356788635, -0.3670949339866638, 0.5807985067367554, -0.3604145348072052, 0.312346339225...
(newIndex.IndexedColumns.Count > 0) outputTable.Indexes.Add(newIndex); } private DataType CLRTypeToSQLType(Type type) { switch (type.Name) { case "String": return DataType.NVarCharMax; case "Int32":
[ -0.12803228199481964, -0.21915510296821594, 0.6405866146087646, -0.01380104012787342, 0.3772760331630707, -0.03809360787272453, -0.01423578429967165, -0.23322665691375732, -0.2792228162288666, -0.5061008334159851, -0.2960255444049835, 0.6435974836349487, -0.42688605189323425, 0.42430442571...
return DataType.Int; case "Boolean": return DataType.Bit; case "DateTime": return DataType.DateTime; case "Byte[]": return DataType.VarBinaryMax;
[ 0.10346947610378265, -0.6095607876777649, 0.3253023624420166, -0.1529974788427353, 0.016921762377023697, 0.1351115107536316, 0.14475639164447784, -0.10935503989458084, 0.11214417964220047, -0.34164080023765564, -0.4087066650390625, 0.754016101360321, -0.23265723884105682, 0.384327858686447...
} return DataType.NVarCharMax; } private ForeignKeyAction SQLActionTypeToSMO(Rule rule) { string ruleStr = rule.ToString(); return (ForeignKeyAction)Enum.Parse(typeof (ForeignKeyAction), ruleStr); } private void DropExistingTable(string tableName) { Table tabl...
[ -0.0851207971572876, -0.012799640186131, 0.49862906336784363, -0.2634132504463196, 0.3550638258457184, -0.1721077859401703, 0.4069211184978485, -0.4065668284893036, -0.10642289370298386, -0.16802123188972473, -0.21588145196437836, 0.4496428668498993, -0.44122081995010376, 0.278421282768249...
needs to be more SQL to CLR types mapped out, but it does create a new database, all the tables, columns, primary keys, and foreign keys. For this code to work, a few assemblies need to be referenced: ``` Microsoft.SqlServer.ConnectionInfo Microsoft.SqlServer.Management.Sdk.Sfc Microsoft.SqlServer.Smo Microsoft.SqlSe...
[ 0.0399932861328125, 0.3079051971435547, 0.34868472814559937, 0.24014605581760406, 0.033746860921382904, -0.43800219893455505, 0.005046964157372713, 0.02641458623111248, -0.4401637613773346, -0.510497510433197, -0.1817583292722702, 0.19341333210468292, -0.3852095901966095, 0.141363233327865...
I am attempting to write a XML parser in VB6. The standards that the XML is based off of comes with a DTD to verify the XML before you begin parsing. I have also written a sample XML file so that I have something with which to test. I am able to load the XML via the vb6 code ``` Dim objXMLDoc As MSXML.DOMDocument...
[ 0.3400925099849701, 0.18207170069217682, 0.4876631498336792, -0.06443066895008087, -0.00918433628976345, 0.09812591969966888, 0.28362971544265747, -0.48360010981559753, -0.002668649423867464, -0.3824649155139923, 0.1378769725561142, 0.45680105686187744, -0.2755768597126007, 0.0878084599971...
SYSTEM "sample.dtd"> <Root> ... </Root> ``` The research I did lead me to believe that the Load would validate the XML if the XML pointed to the DTD via the doc type. I've done a lot of research and cant figure out where I'm going wrong. It could be as simple as the DTD provided isn't syntactically correct, ...
[ 0.24122004210948944, -0.08226398378610611, 0.2922609746456146, 0.024872856214642525, 0.05612628906965256, 0.12003234773874283, 0.24263039231300354, -0.1278528869152069, -0.16967622935771942, -0.5872857570648193, -0.0012983479537069798, 0.4306449890136719, -0.20573413372039795, 0.2394357174...
error I get is: Error #: -2146697211: The system cannot locate the resouce specified. error processing resource 'sample.dtd' Any additional resources, or suggestions would be greatly appreciated. I can't reproduce your error. It works just fine with both files in the same folder for me. It's not a problem of the D...
[ 0.2420407086610794, 0.3319304883480072, -0.12848466634750366, 0.13420113921165466, -0.05960428714752197, 0.07552055269479752, 0.34654295444488525, 0.19724133610725403, -0.12892696261405945, -0.5977792143821716, 0.051409993320703506, 0.42150530219078064, -0.10638829320669174, 0.445485085248...
to the old **version 2.0**? Try **v6.0** if possible.
[ 0.38784661889076233, -0.06679403781890869, 0.15994799137115479, 0.039395418018102646, -0.019379951059818268, -0.1957377940416336, 0.4551856517791748, 0.1379045993089676, -0.08087024837732315, -0.7410878539085388, -0.08712100982666016, 0.7817022800445557, -0.16754822432994843, 0.31800568103...
How would one model resources that are hierarchical? Assume for example that a person has a "message board" and that a "message" is a resource. Let's say that the "message" can have replies so that it forms a discussion *thread*. How does one model the notion of a thread? Does the "message" include it's children? Is ...
[ -0.03281877934932709, -0.10724420100450516, -0.035082437098026276, 0.3709937036037445, -0.03104599192738533, -0.06127229332923889, 0.21557681262493134, 0.04915061965584755, -0.5606676340103149, -0.63386070728302, -0.06641489267349243, 0.3064749538898468, -0.2887900769710541, 0.421283245086...
can rename any thread by enumerating threads (as others have mentioned) and applying an arbitrary name to each, but this is a fragile way of naming threads that are not your own. If the 3rd party library changes their naming, you'll have to change your code. I agree that 3rd party libraries with poorly-named threads m...
[ 0.5091536641120911, 0.03934229165315628, -0.08736588805913925, 0.2405034899711609, 0.0016141488449648023, -0.31248927116394043, 0.3475511968135834, 0.1705031394958496, -0.39209333062171936, -0.6214691400527954, -0.06454970687627792, 0.29087042808532715, -0.34343165159225464, 0.904358386993...
at all to name threads? EDIT: Add back text that somehow disappeared from the end
[ 0.5704030990600586, -0.22532008588314056, 0.09396770596504211, 0.30540940165519714, -0.1088070273399353, 0.015404831618070602, 0.37018492817878723, 0.4471658766269684, -0.6517624258995056, -0.1848209798336029, 0.053720567375421524, -0.05002298578619957, -0.3883722126483917, 0.2815220654010...
I want to write a simple servlet in JBoss which will call a method on a Spring bean. The purpose is to allow a user to kick off an internal job by hitting a URL. What is the easiest way to get hold of a reference to my Spring bean in the servlet? JBoss web services allow you to inject a WebServiceContext into your se...
[ 0.3196413516998291, 0.09864357858896255, 0.07110988348722458, 0.22582203149795532, -0.2470216453075409, 0.06697331368923187, 0.09014222770929337, -0.002376264426857233, -0.2975367605686188, -0.34707069396972656, 0.1053173616528511, 0.20415593683719635, -0.12148914486169815, 0.1086222380399...
the application context, but then your servlet code will have a direct dependency on the Spring Framework. Another solution is configure the application context to export the Spring bean to the servlet context as an attribute: ``` <bean class="org.springframework.web.context.support.ServletContextAttributeExporter"> ...
[ -0.12771092355251312, 0.09808869659900665, 0.3086184859275818, -0.19955463707447052, -0.14989599585533142, 0.11945731192827225, 0.15200234949588776, -0.39945629239082336, -0.3618996739387512, -0.3650379776954651, -0.46390146017074585, 0.4267233908176422, -0.40080949664115906, 0.11563092470...
I'm writing an ASP.NET application. When a specific kind of request is being handled, I want to schedule a method to be called in a certain number of minutes after the request is handled. The postponed method does not need to communicate with the client that made the original request, it is just intended to do some "ho...
[ 0.29596754908561707, -0.00013541830412577838, 0.3861106038093567, -0.06448890268802643, 0.21904964745044708, -0.4781803488731384, 0.35690003633499146, -0.02137102000415325, -0.22111107409000397, -0.7869755029678345, -0.10014033317565918, 0.3401951491832733, -0.2944001853466034, 0.185728102...
sender, EventArgs e) { CheckRequest(HttpContext.Current.Request); } ``` if your request is valid, register a cache entry: ``` private void CheckRequest(HttpRequest request) { if (request) RegisterCacheEntry(); } private void RegisterCacheEntry() { if (...
[ -0.20838472247123718, -0.28649815917015076, 0.45325157046318054, -0.04846484586596489, -0.01256716251373291, -0.024932535365223885, 0.5777971148490906, -0.23217973113059998, 0.009474247694015503, -0.6056651473045349, -0.3531416356563568, 0.3294675052165985, -0.3853124976158142, 0.386728286...
HttpRuntime.Cache.Add(CacheItemKey, "your key", null, DateTime.Now.AddSeconds(60), //change to fire in whatever time frame you require Cache.NoSlidingExpiration, CacheItemPriority.NotRemovable, new CacheItemRemovedCallback(CacheItemRemovedCallback)); ...
[ 0.050542570650577545, -0.25776970386505127, 0.5248990654945374, -0.1637088805437088, 0.01537921279668808, -0.07161201536655426, 0.9209904074668884, -0.1422354280948639, -0.04111490771174431, -0.8795731663703918, -0.33405056595802307, 0.7559161186218262, -0.2961469888687134, 0.2160579562187...
callback: ``` private void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason) { // execute your function } ```
[ -0.22867363691329956, 0.14276698231697083, 0.20754632353782654, -0.2185971885919571, 0.1425769031047821, 0.13801564276218414, 0.6118062734603882, -0.07538668811321259, 0.1370839923620224, -0.2477170079946518, -0.2849213480949402, 0.7403841614723206, -0.45915836095809937, 0.1815713047981262...
Given a domain object (say, for example, Person), should that object contain its Data Mapper (Person\_Mapper)? For example, I could have an inactivate action work in these two different ways: ``` $mapper = new Person_Mapper(); $person = $mapper->load(1); $person->active = false; $mapper->save($person); ``` Or lik...
[ -0.4065715968608856, -0.36834716796875, 0.1993458867073059, 0.01802288182079792, -0.04939137026667595, -0.13418719172477722, 0.4253196716308594, -0.26500266790390015, 0.03754717856645584, -0.5810394883155823, -0.29109176993370056, 0.5024479627609253, -0.4816989302635193, 0.3391989767551422...
<http://en.wikipedia.org/wiki/Single_responsibility_principle>
[ 0.6235443949699402, -0.028061099350452423, -0.3123296797275543, 0.13412322103977203, -0.39908310770988464, -0.2238527536392212, 0.485643208026886, -0.5540782809257507, -0.3077179789543152, 0.031423356384038925, -0.048005130141973495, 0.21484442055225372, -0.22262699902057648, 0.41669586300...
It is not really a question because I have already found a solution. It took me a lot of time, that's why I want to explain it here. Msxml is based on COM so it is not really easy to use in C++ even when you have helpful classes to deal with memory allocation issues. But writing a new XML parser would be much more dif...
[ 0.3343360126018524, 0.02365996688604355, 0.34911009669303894, 0.2845378518104553, -0.2926177680492401, -0.09781239181756973, -0.027451850473880768, 0.19783800840377808, -0.23928256332874298, -0.647847592830658, 0.1931619942188263, 0.4241134822368622, -0.3507169783115387, 0.1250364780426025...
manually), `CComBSTR` (to convert C++ strings to the COM format for strings) and `CComVariant`. This 3 helpful classes are ATL classes and need an `#include <atlbase.h>`. Problem: Visual Studio 2008 Express (the free version) doesn't include ATL. **Solution:** Use `comutil.h` and `comdef.h`, which include some simpl...
[ -0.21870069205760956, -0.09756085276603699, 0.49173441529273987, 0.17254555225372314, -0.10557714849710464, 0.037779998034238815, 0.04558737203478813, -0.3021729588508606, -0.18009275197982788, -0.5757268071174622, -0.15201453864574432, 0.7065853476524353, -0.3643116056919098, -0.218362048...
__uuidof(IXMLDOMNodeList)); // IXMLDOMNodeListPtr _COM_SMARTPTR_TYPEDEF(IXMLDOMNamedNodeMap, __uuidof(IXMLDOMNamedNodeMap)); // IXMLDOMNamedNodeMapPtr _COM_SMARTPTR_TYPEDEF(IXMLDOMNode, __uuidof(IXMLDOMNode)); // IXMLDOMNodePtr void test_msxml() { // This program will use COM CoInitializeEx...
[ -0.05130479112267494, 0.026033002883195877, 0.3885658383369446, -0.14735925197601318, -0.12134330719709396, 0.1066715344786644, 0.42083683609962463, -0.40726789832115173, 0.041054051369428635, -0.6670398712158203, -0.1897110641002655, 0.33904606103897095, -0.21003128588199615, 0.2612761259...
pXMLDoc->put_resolveExternals(VARIANT_FALSE); pXMLDoc->put_preserveWhiteSpace(VARIANT_FALSE); // Open file VARIANT_BOOL bLoadOk; std::wstring sfilename = L"testfile.xml"; hr = pXMLDoc->load(_variant_t(sfilename.c_str()), &bLoadOk); // Search for node <testtag> I...
[ 0.16191330552101135, -0.20492172241210938, 0.5293096303939819, -0.13875991106033325, 0.09329921007156372, 0.016576383262872696, 0.0825061947107315, -0.09952162206172943, -0.12272591888904572, -0.6104011535644531, -0.4585534632205963, 0.11540456861257553, -0.3025023341178894, -0.09184168279...
_bstr_t bstrText; hr = pNode->get_text(bstrText.GetAddress()); std::string sSomething = bstrText; } // I'm finished with COM // (Don't call before all IXMLDOMNodePtr are out of scope) CoUninitialize(); } ``` I'm happy I posted my question although I already had a solution because I got...
[ 0.3727017045021057, 0.07528848201036453, 0.6837435960769653, 0.10866588354110718, -0.24873465299606323, -0.07014121115207672, 0.5777227282524109, 0.16009558737277985, -0.2862635850906372, -0.6070366501808167, -0.26302778720855713, 0.49420860409736633, -0.324268639087677, 0.0440791025757789...
make it easier to port the program to another operating system). Using an [`#import`](http://msdn.microsoft.com/en-us/library/8etzzkb6%28VS.80%29.aspx) directive, apparently a Microsoft specific extension to simplify the use of COM, is also interesting and brought me to the following web page [`MSXML in C++ but as ele...
[ 0.09553118050098419, 0.06246579810976982, 0.4188653826713562, -0.06609407067298889, -0.22434528172016144, -0.04383281245827675, 0.050414394587278366, -0.08818943053483963, -0.1981692910194397, -0.6619170308113098, -0.1311902105808258, 0.4087096154689789, -0.26141196489334106, -0.1066174134...
I want to use SubSonic (2.2) in an application I'm building because I like its simplicity and it handles any type of query I can foresee needing. At the same time, I want to keep the upper layers of my application de-coupled from the Subsonic Types. I want to return just Plain Old C# Objects and also pass in POCOs to b...
[ -0.0749494880437851, 0.12633606791496277, 0.39465904235839844, 0.28020405769348145, -0.1199735626578331, -0.35019856691360474, 0.23213651776313782, 0.11213421076536179, -0.07596658170223236, -0.2736073136329651, 0.043427955359220505, 0.3094351291656494, -0.379588782787323, 0.17672413587570...
member on my POCO and use that internally in the getter for a lazy loaded property. Any ideas about how to implement this specifically with SubSonic? Anyone done this before? I do realize that the next major release of SubSonic will do this out-of-box, but that looks to be atleast a few months away. Couldn't ever fig...
[ 0.1809522658586502, 0.02638666331768036, 0.46086806058883667, -0.11166539043188095, -0.5360633134841919, -0.32262080907821655, 0.20210523903369904, -0.08866961300373077, -0.08774195611476898, -0.3105020523071289, -0.07430079579353333, 0.5520278215408325, -0.5281376242637634, -0.01038133073...
I keep getting a 413 error "Entity too large" when uploading images (particular image is a 275kb PNG) with an asp.net form. I have thoroughly researched this, and changed: AspMaxRequestEntityAllowed to 1000000 as suggested here- <http://www.banmanpro.com/support2/File_Upload_limits.asp> UploadReadAheadSize to 1000000...
[ 0.12567640841007233, 0.008013084530830383, 0.6436752080917358, 0.060666948556900024, -0.4530051052570343, -0.0762154757976532, 0.5023748278617859, -0.16487720608711243, -0.23121529817581177, -0.6403462886810303, 0.2581351101398468, 0.5496304035186768, -0.03791719675064087, 0.13277025520801...
very nice and would solve the problem, but in the mean time we just [went with NHibernate](https://stackoverflow.com/questions/508035/t4-template-for-nhibernate-not-fuent-nhibernate).
[ 0.050802309066057205, -0.2143561691045761, 0.1799856573343277, -0.5378344058990479, -0.11388088762760162, -0.2470017373561859, 0.30299243330955505, -0.10914640873670578, 0.008669744245707989, -0.03573789447546005, -0.1935233622789383, 0.4890250861644745, -0.5266522765159607, 0.100773274898...
Recently , I found some shortcut key really helpful which I never used before . Such keys like `F7` ,`F3` ,`Ctrl`+`g` help me a lot when editing and debuging. What are your most frequently used shortcut keys in visual studio? `Ctrl` + `.` for bringing up the smart tag for adding namespaces, renaming/refactoring, etc. ...
[ 0.23486384749412537, -0.06075458973646164, 0.083894282579422, -0.014187364839017391, -0.30148082971572876, 0.09908473491668701, -0.13847659528255463, 0.10230574756860733, -0.27547380328178406, -0.7967991828918457, -0.14488792419433594, 0.4733368754386902, -0.030785394832491875, 0.019392170...
What is the best way to avoid that an application is copied and used without the owner’s knowing? Is there any way to trace the usage? Meaning periodically the application communicates back, with enough information so that we can know where it is, and if it’s legal. Next thing, of course, shut it down, if it’s not leg...
[ 0.6021859645843506, 0.21437740325927734, 0.25379130244255066, 0.5989049077033997, 0.5604222416877747, -0.41819748282432556, -0.19413267076015472, 0.2067151814699173, -0.5396481156349182, -0.08080044388771057, -0.2640557885169983, 0.891932487487793, -0.11594611406326294, -0.128431037068367,...
without a significant investment in time, a lot more than just changing a few JEs to JNEs in your assembly. **Phoning home is not the way to go** unless you are providing a service that requires a subscription and constant updates (like antivirus products, for example) as part of your business model. You need to have ...
[ 0.8783780932426453, 0.2241188883781433, -0.025509966537356377, 0.1390785276889801, -0.18200810253620148, -0.17921529710292816, 0.38356122374534607, 0.23672685027122498, -0.27344033122062683, -0.29163289070129395, -0.14051838219165802, 0.24126474559307098, -0.06410441547632217, 0.0639312341...
it? What if you some time in the future sold your company and the new owners decided to sell all that historic information to a marketing company? Privacy is not just about trusting a company not to abuse your data, it is trusting that company to go out of their way to protect your data. Which is pretty far down the li...
[ 0.811519205570221, 0.02120905928313732, -0.08565498143434525, 0.6916494965553284, 0.48473262786865234, -0.5745981335639954, 0.14424508810043335, 0.07169834524393082, -0.1980798840522766, 0.3121514916419983, 0.5641135573387146, 0.5439128279685974, -0.26692286133766174, 0.22166797518730164, ...
I'm interested in creating software/games for Sony PlayStation 2 consoles since they contain **powerful** processors for graphics (GPUs), floating-point calculations and general CPU. I have acquired a **PS2 console** and its **PS2 SDK v3.07** which, supposedly came with the PS2 Dev Kit (which costs $8,000). I don't ha...
[ 0.49854224920272827, 0.32871222496032715, 0.11762360483407974, 0.28262263536453247, -0.031812217086553574, 0.07858861982822418, -0.03682365268468857, 0.25349485874176025, -0.07034629583358765, -0.6054621338844299, -0.16517670452594757, 0.5741101503372192, 0.23564200103282928, 0.05948352813...
can **write code** and **get it to run** on the PS2! Also, is the PS2 supplied with the PS2 Dev Kit a special one with extra/**different hardware?** Or just a **different OS** in order to have debugging facilities etc? Here's whats I got in the PS2 SDK: * PlayStation 2 Programmer Tool Tool Chain EE 3.2-ee-030926 * P...
[ 0.4808218777179718, 0.01161073986440897, 0.3834422826766968, 0.18928955495357513, -0.0984194204211235, -0.37566298246383667, 0.17460715770721436, -0.2738209664821625, 0.10674989223480225, -0.5975766181945801, -0.17063812911510468, 0.7873662710189819, -0.2805439233779907, -0.304251521825790...
GCC ee 3.2 ee Cygwin * Hardware Docs (eg. Instruction Set Manual, User Guide, etc) Thanks for any help! Install [Linux on your PS2](http://en.wikipedia.org/wiki/Linux_for_PlayStation_2) and then target **PS2 Linux**, similar to **Red Hat Linux 6**. > The documentation with this Linux kit will give all the same inform...
[ 0.38110220432281494, -0.0378914512693882, 0.5875330567359924, -0.08486448228359222, -0.22656412422657013, -0.3934773802757263, -0.2653723657131195, 0.2678452730178833, -0.03412587195634842, -0.4887106716632843, -0.46669378876686096, 0.6682682633399963, -0.05656907334923744, -0.246676757931...
I am using Berkeley sockets (both: Internet domain and Unix domain) and I was wondering if the server can use the same sockets for reading the request and writing a response to the client. Or should the client create an other socket to wait for the replay and the server connect to it after processing the message receiv...
[ 0.32259175181388855, -0.06031423807144165, 0.09839978814125061, -0.053280703723430634, -0.2704731822013855, -0.1630748212337494, -0.008719716221094131, 0.26777806878089905, -0.3018214702606201, -0.64688640832901, 0.26741912961006165, 0.4191986322402954, -0.3132287561893463, 0.5298683643341...
server_addr; char buf[1024]; char aux[256]; int bytes_read; server_socket = socket(AF_INET, SOCK_STREAM, 0); server_addr.sin_family = AF_INET; server_addr.sin_addr.s_addr = INADDR_ANY; server_addr.sin_port = htons(1234); bind(server_socket, &server_addr, sizeof(server_addr)) l...
[ -0.30863189697265625, -0.07698430120944977, 0.6376451849937439, -0.4425886273384094, -0.22834643721580505, 0.27043086290359497, 0.5521668195724487, -0.42202234268188477, -0.16391730308532715, -0.6193325519561768, -0.3878577947616577, 0.23772366344928741, -0.4030822515487671, 0.348240882158...
} while (bytes_read > 0); /* Here I want to use connected_socket to write the reply, can I? */ close(connected_socket); close(server_socket); return (EXIT_SUCCESS); } ``` And this is the simplified client code (I ommit error checking on system calls here just for simplicity): ```...
[ -0.12434037774801254, 0.166060209274292, 0.8493616580963135, -0.2672230899333954, -0.007581872865557671, 0.1561480015516281, 0.20145559310913086, 0.0023593988735228777, 0.030986549332737923, -0.7747737765312195, -0.19527742266654968, 0.44348061084747314, -0.2424919158220291, 0.283972471952...
server_addr.sin_family = AF_INET; memcpy(&server_addr.sin_addr, hp->h_addr_list[0], hp->h_length); server_addr.sin_port = htons(1234); connect(client_socket, &server_addr, sizeof(server_addr)); write(client_socket, MSG, sizeof(MSG)); /* Here I want to wait for a response from the server using cli...
[ -0.12293673306703568, 0.14060617983341217, 0.7958884835243225, -0.33035171031951904, -0.39720550179481506, 0.3627687990665436, 0.5409570932388306, -0.3518369495868683, -0.22417530417442322, -0.7266404628753662, -0.1690668910741806, 0.42426279187202454, -0.3344363272190094, 0.33807548880577...
using read/wrint in the client/server where the comment is shown but that way both programs keep blocked, it seems to be a dead-lock. Thanks ins advance! Regards. You can use the same socket BUT your program is set up to have the server read EVERYTHING the client sends before attempting to reply. So the loop in the se...
[ 0.48498278856277466, -0.2952882647514343, 0.27682027220726013, 0.3496808111667633, -0.4409070611000061, -0.06092172488570213, 0.39081406593322754, -0.10141606628894806, -0.4183376133441925, -0.7252533435821533, -0.02299925498664379, 0.6391474604606628, -0.2856144607067108, 0.21090966463088...
loop in the server after its seen the whole request, rather than reading until EOF. This requires that the data sent by the client be self-delimiting somehow, so the server can know when its read it all. 2. You can use a second connection for the reply. Probably not the best. 3. You can use asymmetric shutdown of the s...
[ 0.0497184693813324, -0.3351776897907257, 0.4950850009918213, -0.005260552279651165, -0.2581998109817505, -0.14045895636081696, 0.3152718245983124, 0.06683265417814255, -0.4138719141483307, -0.3448052704334259, -0.2758157551288605, 0.31189465522766113, -0.33164289593696594, 0.19815470278263...
I'm looking to create a simple short-lived reservation system, and I'd like to generate confirmation numbers that are * unique * random-looking * alphanumeric * short-ish, at least much shorter than 32 character-long strings returned by sha1 I'm only looking to have ~500 reservations, so I don't *imagine* high likely...
[ -0.08453374356031418, 0.14909982681274414, -0.005791624076664448, 0.24441511929035187, -0.09233831614255905, 0.2756010890007019, -0.08328869193792343, 0.00627459492534399, -0.21922484040260315, -0.5921221971511841, 0.15375612676143646, -0.006991203874349594, -0.04759937897324562, 0.0525628...
so that's possible. Another way would be to fold the hash into itself using XOR until you have 60 bits worth of data, then encode it using [Base 64](http://en.wikipedia.org/wiki/Base64) to get a mostly alpha-numeric result. This is only necessary if you want to be able to generate the same Id repeatedly for the same i...
[ 0.13174256682395935, 0.06287956982851028, 0.08227372914552689, -0.04455544427037239, -0.21915102005004883, 0.062151774764060974, 0.046475932002067566, -0.5771867036819458, -0.13816095888614655, -0.330961138010025, -0.1319054663181305, 0.3543134331703186, -0.26059165596961975, 0.03333293274...
What exactly do I need delegates, and threads for? Delegates act as the logical (but safe) equivalent to function-pointers; they allow you to talk about an operation in an abstract way. The typical example of this is events, but I'm going to use a more "functional programming" example: searching in a list: ``` List<Pe...
[ 0.32888466119766235, 0.025533068925142288, -0.022028636187314987, 0.3673050105571747, 0.07047969102859497, -0.1698683649301529, -0.12180957198143005, -0.43748271465301514, -0.09725568443536758, -0.39345988631248474, 0.0539296418428421, 0.4774986207485199, -0.000790304271504283, 0.183930709...
all sorts of things based on the delegate that the caller passes in. In this way, they act largely like a 1-method interface - but much more succinctly.
[ 0.5159498453140259, 0.1361384093761444, 0.15889133512973785, 0.4433714747428894, -0.036801356822252274, 0.034136466681957245, 0.006031873170286417, -0.23903930187225342, -0.021301236003637314, -0.5301095247268677, -0.20978891849517822, 0.390311062335968, -0.1432187706232071, -0.02215419709...
I have multiple lists of strings, `IList<string>`, that I want to consolidate in one list showing distinct string and count for each item (like a dictionary). what is the most efficient way to do this? ``` Dictionary<string, int> count = new Dictionary<string, int>(); foreach(IList<int> list in lists) foreach(int it...
[ -0.043491680175065994, -0.039672985672950745, 0.2571742534637451, -0.13428378105163574, 0.08272752165794373, 0.2749564051628113, 0.21327853202819824, -0.6673360466957092, -0.16472138464450836, -0.8598038554191589, -0.11645182222127914, 0.747861385345459, -0.5595742464065552, -0.03139001503...
Today again, I have a MAJOR issue with what appears to be parameter sniffing in SQL Server 2005. I have a query comparing some results with known good results. I added a column to the results and the known good results, so that each month, I can load a new months results in both sides and compare only the current mont...
[ 0.04684948921203613, 0.07818946987390518, 0.5072131752967834, 0.059160325676202774, -0.2874148488044739, -0.3323444426059723, 0.35032230615615845, -0.26006340980529785, -0.2532815635204315, -0.2626175880432129, 0.32189124822616577, 0.5091100335121155, -0.1655854880809784, 0.324847072362899...
because all DATA\_DT\_ID are 20081231 right now. Performance goes to pot. From 7 seconds to compare about 1.5m rows to 2 hours and nothing completing. Running the generated SQL right in SSMS - no SPs. I've been using SQL Server for going on 12 years now and I have never had so many problems with parameter sniffing as...
[ 0.3609878718852997, 0.21093812584877014, 0.7356200218200684, 0.0028442670591175556, -0.10154794156551361, -0.015271618962287903, 0.6277700662612915, -0.016896676272153854, -0.2943297028541565, -0.8106931447982788, 0.20403730869293213, 0.7078365087509155, 0.1477983593940735, 0.3815861642360...
parameter or no `WHERE` clause at all. And, no, I don't have DBA access, and they haven't given me enough rights to see the execution plans. It's to the point where I'm not sure I'm going to be able to handle this system off to SQL Server users with only a couple years experience. **UPDATE** Turns out that although ...
[ 0.13286228477954865, 0.029979759827256203, 0.577436625957489, 0.22965581715106964, -0.19945216178894043, 0.09767895191907883, 0.48254820704460144, -0.04132312908768654, -0.21510003507137299, -0.4253762662410736, 0.284935861825943, 0.514744222164154, 0.11202718317508698, 0.19898571074008942...
NOT IN instead of a LEFT JOIN with NULL check. Not quite an answer, but I'll share my experience. Parameter sniffing took a few years of SQL Server to come and bite me, when I went back to Developer DBA after moving away to mostly prod DBA work. I understood more about the engine, how SQL works, what was best left to ...
[ 0.323472797870636, -0.05939621105790138, 0.12671591341495514, 0.06411094963550568, -0.6369354724884033, -0.21157501637935638, 0.5029169321060181, 0.011545071378350258, -0.026454463601112366, -0.5978905558586121, 0.374534010887146, 0.5169296860694885, -0.4261784851551056, 0.1805884838104248...
SQL more likely will. I noticed it for complex search code (plenty of conditionals) and complex reports where parameter defaults affected the plan. When I see how less experienced developers would write this code, then it won't suffer parameter sniffing. In any event, I prefer parameter masking to WITH RECOMPILE. Upd...
[ 0.39210590720176697, -0.08023838698863983, 0.12914937734603882, 0.2898302972316742, -0.31330233812332153, -0.3688025176525116, 0.3780170977115631, -0.11793564260005951, -0.20042897760868073, -0.31848517060279846, 0.3529278039932251, 0.6522228121757507, -0.26706451177597046, -0.084356538951...
the query case by case, rather than blanket recompiling. Especially with statement level recompilation of SQL Server 2005 OPTIMISE FOR UNKNOWN in SQL Server 2008 also appears to do exactly the same thing as masking. My SQL Server MVP colleague and I spent some time investigating and came to this conclusion.
[ -0.4371795654296875, -0.1696254462003708, -0.07975619286298752, 0.24168545007705688, -0.33127331733703613, -0.1669059693813324, 0.26870787143707275, -0.12204103916883469, 0.047538403421640396, -0.38549473881721497, 0.06731744110584259, 0.7443742156028748, -0.4923388361930847, -0.0400172322...
I'm implementing a prototype of a RESTful API using ASP.NET MVC and apart from the odd bug here and there I've achieve all the requirements I set out at the start, apart from callers being able to use the `X-HTTP-Method-Override` custom header to override the HTTP method. What I'd like is that the following request......
[ 0.42485684156417847, -0.06986024230718613, 0.36606988310813904, 0.010302502661943436, 0.010655905120074749, -0.13071222603321075, 0.1675863265991211, -0.15830910205841064, -0.12925347685813904, -0.5647984147071838, -0.12768732011318207, 0.5263084173202515, -0.27468734979629517, 0.008395064...
I would like the above request to be dispatched to the second one: ``` [ActionName("someresource")] [AcceptVerbs(HttpVerbs.Get)] public ActionResult GetSomeResource(int id) { /* ... */ } [ActionName("someresource")] [AcceptVerbs(HttpVerbs.Delete)] public ActionResult DeleteSomeResource(int id) { /* ... */ } ``` Doe...
[ -0.14004898071289062, -0.3114773631095886, 0.7604873776435852, 0.10546251386404037, -0.13998772203922272, -0.19734235107898712, 0.2621544301509857, -0.337279349565506, -0.32558542490005493, -0.4511599540710449, -0.36826610565185547, 0.39506837725639343, -0.2096693217754364, 0.2038486748933...
Verbs.Contains(incomingVerb, StringComparer.OrdinalIgnoreCase); ```
[ -0.3913295567035675, 0.13662265241146088, 0.4412148594856262, -0.23054595291614532, -0.48094937205314636, 0.39182358980178833, 0.5015479326248169, 0.04368908703327179, -0.27804461121559143, -0.6215882897377014, -0.5019842982292175, 0.1885397583246231, -0.2827047109603882, 0.050582800060510...
Assume a listening socket on localhost:80 and a client connecting using: telnet localhost 80 The problem is that I want only to accept a limited number of concurrent clients, assume only one. After that I simply don't accept any. The problem that I saw using: netstat -a is that next client connection was established....
[ 0.20757822692394257, -0.157217875123024, 0.1852440983057022, -0.0888965055346489, -0.006226006429642439, -0.23904204368591309, 0.29823097586631775, -0.03886081278324127, -0.20340761542320251, -0.8174916505813599, -0.09009917080402374, 1.0515869855880737, -0.45803186297416687, 0.35374152660...
specifies how many outstanding sockets are allowed to hang around in the operating system kernel waiting for the server to `accept()` them. On my Linux system the man page for `listen()` says that most of the time the client will get a `connection refused` error - just the same as if the socket wasn't listening at all...
[ -0.05001186951994896, 0.08551740646362305, 0.39397796988487244, -0.22502915561199188, -0.04117317870259285, -0.2527991831302643, 0.28554767370224, -0.20067183673381805, -0.36173343658447266, -0.6176552176475525, -0.028467297554016113, 0.8612769842147827, -0.2318265289068222, 0.404361963272...
to the number of concurrent connections, since the parameter doesn't take into account how many connections are already active.
[ 0.03599206730723381, -0.29139992594718933, 0.4547455310821533, 0.3131781816482544, 0.1815095990896225, 0.023148320615291595, 0.13097454607486725, 0.053008243441581726, -0.6829438209533691, -0.5523685812950134, 0.08137311786413193, 0.38018959760665894, -0.23082785308361053, 0.39134752750396...
I have an HTML table that I use as column headers to a grid view. Clicking on a column header triggers javascript that makes the grid view sort, and an icon showing that the column is sorted shows up next to the column text, similar to below: ``` |-----------------------------------------------------------------------...
[ -0.40733224153518677, -0.03489202260971069, 0.9339629411697388, -0.2070883959531784, -0.020221887156367302, 0.07668345421552658, -0.11860667169094086, -0.15034329891204834, -0.3500485420227051, -0.8591333627700806, -0.14238403737545013, 0.21134063601493835, -0.2221216857433319, -0.06123334...
set) gets clipped off the right side of the table cell. Any suggestions how to make sure the sort icon gets precedence for space over the ellipsizing text via CSS? If a column is "sorted", I want the sort img to always be there and have the text ellipsize instead of the text pushing the img out of the visible space of ...
[ 0.21111434698104858, -0.2630141079425812, 0.5833234190940857, -0.04688352718949318, -0.08182859420776367, 0.07180513441562653, -0.3369666337966919, -0.20540176331996918, -0.41957902908325195, -0.7332414984703064, 0.010218478739261627, -0.019515633583068848, -0.2541486322879791, -0.17740368...
I've been doing a little work with SQL Server and C# and every time I run the darn thing the connection times out unless I start services.msc and manually restart the service (SQL Browser Service). It's already set to automatic, does anyone know why it would do this? I'm not an advanced programmer, more of an intermedi...
[ 0.1531631201505661, 0.017391659319400787, 0.5930506587028503, -0.11439269036054611, 0.031449995934963226, -0.3337150514125824, 0.6457479596138, 0.406486451625824, -0.6376745104789734, -0.5301796197891235, 0.05492305010557175, 0.7135545611381531, -0.024633018299937248, 0.2235490083694458, ...
log? Can you supply some more info., such as the C# code you are using to open/close the connection, the connection string etc.
[ 0.688829243183136, -0.08663548529148102, 0.2625487744808197, 0.5386099815368652, 0.26105716824531555, -0.5033480525016785, 0.06620743870735168, 0.40150514245033264, -0.35634827613830566, -0.4800761640071869, -0.15484462678432465, 0.3417924642562866, -0.16421958804130554, 0.2430143207311630...
I'm interested in developing software for [Sony PlayStation 3](http://en.wikipedia.org/wiki/PlayStation_3) consoles which contains a **multi-core Cell processor**, targeting any [PS3-compatible Linux](http://en.wikipedia.org/wiki/Linux_for_PlayStation_3) distribution. > *"A single PS3 performs **better** than the high...
[ 0.2477439045906067, -0.016137437894940376, 0.47218090295791626, 0.07862088084220886, 0.06483520567417145, 0.27289390563964844, -0.2585441768169403, -0.027896175161004066, -0.22548386454582214, -0.6646184921264648, -0.3207648992538452, 0.5231569409370422, -0.1039927527308464, -0.01318306103...
- installation guide [here](http://www.terrasoftsolutions.com/support/installation/ydl6.0_ps3_guide.pdf) * For **[Fedora 8](http://fedoraproject.org/)** - installation guide [here](http://www.gnuradio.org/trac/wiki/PS3FC8Install) and [here](http://www.bohmer.net/ps3_stuff/install-fedora-8-on-PS3.html). * For **[Ubunt...
[ 0.4734140634536743, 0.08925237506628036, 0.3611716032028198, -0.16539818048477173, -0.16028200089931488, -0.12942935526371002, -0.0038206935860216618, -0.33128002285957336, -0.208814337849617, -0.5982995629310608, -0.5354459881782532, 0.558387815952301, -0.515155017375946, -0.3400673270225...
compiler toolchain allows compilation of code for the PS3 on Windows, which can be useful given the resource constraints (e.g. system memory) on a PS3 console running Linux, which can impact compile times and make the use of a PS3 as a desktop awkward. Versions of the Offload C++ compiler and tools are available targ...
[ 0.5961790680885315, 0.2915075719356537, -0.313703328371048, -0.09320583939552307, -0.13965165615081787, -0.2387978583574295, 0.09616782516241074, -0.08816301822662354, 0.2630741596221924, -0.6889534592628479, -0.2004876732826233, 0.3459261953830719, -0.23386959731578827, -0.275510489940643...
Platform Builder is a tool for building a Windows CE Operating system on your computer and then loading it on a Windows CE device. All this is done through Platform Builder. And I do it all through the Microsoft Visual Stuido Development Environment (IDE). I want to automate the process of using the Platform Builder....
[ 0.6394253969192505, 0.26039037108421326, 0.1671178787946701, -0.05164477229118347, -0.19572681188583374, -0.22568272054195404, -0.03511922433972359, 0.2453458607196808, 0.15396010875701904, -0.828040361404419, 0.04222556948661804, 0.7606222629547119, 0.02477947436273098, 0.0443590320646762...
done by the command line, then it could also be done through a C# program. I have seen some links here and there that say that you can do a Platform Builder build from the command line, but so far, they are not so good. Any tips? This link: <http://msdn.microsoft.com/en-us/library/ms924536.aspx> talks about "How to U...
[ 0.6015120148658752, -0.15835949778556824, 0.1514064073562622, 0.27680855989456177, -0.08180738985538483, 0.10150574147701263, 0.3327217102050781, 0.08850915729999542, -0.17102600634098053, -0.8776278495788574, 0.14854180812835693, 0.7445539236068726, 0.11942587047815323, -0.074508175253868...
IDE, I should be able to do what I need to do from the command line. If I can do what I need to do from the command line, I should be able to do what I need to do from a C# program. That is my goal. You may want to try [Offload C++](http://offload.codeplay.com/) from Codeplay Software. It provides an extended dialect o...
[ 0.4930676817893982, -0.010763796046376228, -0.018394961953163147, 0.036007195711135864, -0.1625111997127533, -0.12039254605770111, -0.09366420656442642, -0.131206676363945, 0.08261547237634659, -0.5916963219642639, 0.03167799487709999, 0.7344067692756653, -0.022748325020074844, -0.23744371...
a PS3 console running Linux, which can impact compile times and make the use of a PS3 as a desktop awkward. Versions of the Offload C++ compiler and tools are available targeting the PS3 GameOS and Linux on Cell with the Cell BE SDK. The Cell Linux version integrates with the Eclipse CDT for an IDE. Disclaimer: I am...
[ 0.1610070765018463, 0.20458023250102997, 0.1427173912525177, -0.13003498315811157, 0.10401932895183563, -0.24295508861541748, 0.12079000473022461, -0.016783498227596283, 0.2865087687969208, -0.5025319457054138, -0.42754846811294556, 0.32687655091285706, -0.33941978216171265, -0.28874474763...
Faced with the challenge of a new application with which you had free reign to design, assemble a team to develop and manage: 1. Which language/platform would you choose? 2. Why? **Background:** The desktop application will control a hardware device and perform computations, analyze and display the data returned by ...
[ 0.12635430693626404, 0.12932206690311432, 0.45136338472366333, 0.298969030380249, 0.4850574731826782, 0.1395852416753769, -0.07903161644935608, -0.21823789179325104, -0.19680097699165344, -0.5540165901184082, -0.3313649892807007, 0.587986171245575, 0.12869508564472198, -0.14402303099632263...
has a *long* life-cycle (10) * cross-platform (3) * richness and breadth of libraries available (9) * the application will need to be able to interpret a scripting language (6) * unit testing (9) **Assumptions**: * For USB variants of the device, a device driver will be written in C/C++ * Application will be a comple...
[ 0.42084041237831116, 0.1612062156200409, 0.47483351826667786, 0.24230673909187317, 0.2857729196548462, -0.12523308396339417, -0.06823647022247314, 0.045278970152139664, -0.23979084193706512, -0.6693326234817505, -0.1959552764892578, 0.631800651550293, 0.2318202704191208, -0.062367327511310...
be honest, I'd choose Java (with a small component of C) for the following reasons, based on your requirements. * `Lifetime of language/API/platform/framework- i.e., how future-proof will the investment in this application be?... the product has a long life-cycle (10).` That really depends on what you mean by long. I ...
[ 0.25705063343048096, 0.08619681000709534, -0.1425195336341858, 0.040972910821437836, -0.10234187543392181, -0.11228658258914948, 0.19104740023612976, 0.27460977435112, -0.3078058362007141, -0.6383259892463684, -0.1360483318567276, 0.4342283010482788, -0.2779376804828644, 0.1811250150203704...
it has JNI to do the grunt work. You'll still need a C component to do this (and it will change for each platform but it's better to have the bulk of your code write-once - with C, you'll probably have *most* of your code changing for each platform, and with C#, well, is it *really* supported on platforms other than Wi...
[ 0.338525652885437, -0.14674262702465057, -0.17076826095581055, -0.14303794503211975, -0.33534377813339233, -0.12330447882413864, 0.0833798497915268, 0.2793355882167816, -0.33289098739624023, -0.6397664546966553, -0.01210425142198801, 0.6906866431236267, -0.1804608553647995, -0.177473857998...
the web. * `Richness and breadth of libraries available (9).` You have Boost for C++ and cross-platform GUIs but they're something that has to be added - there's nothing built in to the development environment like with Eclipse/Java. * `Unit testing (9).` Same response as availability of tools below - there are plenty ...
[ 0.45395198464393616, 0.42034485936164856, -0.23365385830402374, 0.12841877341270447, -0.2975495457649231, -0.1261381059885025, 0.2039269655942917, 0.3147282898426056, -0.25410860776901245, -0.8187044858932495, -0.26202353835105896, 0.8697769641876221, -0.20480287075042725, -0.4455995857715...
my mind. The number of plug-ins for it is truly immense. NetBeans may look nicer but I'd rather have functionality than looks (and so would my wife, so that's lucky :-). * `Cost of IDE/tools (7).` Eclipse is free. * `The application will need to be able to interpret a scripting language (6).` Last I heard, Java now inc...
[ 0.4876915216445923, 0.280405193567276, 0.17923370003700256, -0.21745410561561584, -0.3660256862640381, -0.3415820002555847, 0.4542337656021118, -0.03418716788291931, -0.25094103813171387, -0.619968056678772, -0.289007306098938, 0.9126139879226685, -0.15382499992847443, -0.04947176948189735...
is the FOSS world will work on it due to its MS associations).
[ 0.20269463956356049, -0.3947591781616211, 0.870875358581543, -0.08052980154752731, 0.010576179251074791, -0.19117361307144165, 0.03336728736758232, 0.06836777180433273, -0.3919233977794647, -0.19289393723011017, -0.36600714921951294, 0.20022521913051605, -0.04948059841990471, -0.1181821972...
**Note**: * No MFC * No ATL * Using Visual C++ While attempting a connection between the connection point and the caller's sink, an **E\_NOTIMPL** (0x80004001) was returned. Illustrated below: ``` hresult = pConnection->Advise( pSinkUnk, &dwAdvise); ``` **...
[ 0.09655690938234329, 0.06779912114143372, 0.3596526086330414, 0.0500110425055027, 0.24886788427829742, 0.09851817041635513, 0.3417058289051056, -0.11760342121124268, 0.1685629040002823, -0.6794275045394897, -0.18910600244998932, 0.6697993278503418, -0.3385706841945648, -0.04656489565968513...
connection can return `E_NOTIMPL` from its `EnumConnections()` method. Would it be possible that a connection has already been made for this connection point? Maybe this particular implementation returns `E_NOTIMPL` from `Advise()` in this case as well?
[ 0.028024306520819664, -0.12828277051448822, 0.5140314102172852, 0.15780560672283173, 0.40164482593536377, -0.13742101192474365, 0.055477041751146317, -0.08105556666851044, -0.06034661456942558, -0.5857561230659485, -0.14464178681373596, 0.5080479383468628, -0.21981839835643768, -0.05487350...
What libraries, extensions etc. would be required to render a portion of a PDF document to an image file? Most PHP PDF libraries that I have found center around creating PDF documents, but is there a simple way to render a document to an image format suitable for web use? Our environment is a LAMP stack. You need [`I...
[ 0.26605933904647827, -0.015350324101746082, 0.7706516981124878, 0.14092522859573364, -0.2205703854560852, -0.2431255728006363, -0.09557968378067017, -0.355112224817276, -0.17003220319747925, -0.6810780167579651, -0.20094558596611023, 0.21006949245929718, -0.35230451822280884, 0.06816125661...