text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
respective repositories? I want to be able to use URLs like: ``` http://svn.project1.com/trunk/ ``` Instead of: ``` http://svn.project1.com/project1/trunk/ ``` And thus prevent access to e.g. project2 from project1 viz: ``` http://svn.project1.com/project2/ ``` This works with `SVNPath /svn/project#`. But be a...
[ 0.27813851833343506, -0.08445319533348083, 0.14095033705234528, 0.14107221364974976, 0.06626471877098083, -0.0168779157102108, 0.06256071478128433, 0.182170107960701, -0.4506467282772064, -0.3658328056335449, -0.17688040435314178, 0.31215816736221313, -0.026467764750123024, 0.3111501038074...
Is it possible to map all file extensions in a folder to a specific HttpHandler (assuming that their file extensions are mapped to aspnet\_isapi.dll in IIS) ? I've got the FLV extension mapped to ASP.NET in IIS, and have a folder named *Static* in my web application with the following files: * Static/Index.htm * Stat...
[ 0.28753861784935, -0.17726460099220276, 1.0727499723434448, -0.13836121559143066, -0.0396464504301548, -0.0028249984607100487, -0.2590177059173584, -0.26068758964538574, -0.6668036580085754, -0.5517648458480835, 0.05939169600605965, 0.9752616286277771, -0.18097956478595734, -0.044636696577...
without much luck. Ideally, I'd like to be able to have all FLV's in the Static folder use the PassthroughFileHandler, rather than have to specify each filename individually in web.config. Try placing a second web.config inside that folder, with something like: ``` <?xml version="1.0"?> <configuration> <system.we...
[ 0.16571156680583954, -0.14209629595279694, 0.8840796947479248, -0.10512815415859222, -0.11625955253839493, -0.03006921149790287, -0.1458299160003662, -0.026221988722682, -0.6093409657478333, -0.6090277433395386, -0.36531496047973633, 0.679366946220398, -0.08100610226392746, 0.0105606224387...
Say you want to take [CMU's phonetic data set](http://www.speech.cs.cmu.edu/cgi-bin/cmudict) input that looks like this: ``` ABERRATION AE2 B ER0 EY1 SH AH0 N ABERRATIONAL AE2 B ER0 EY1 SH AH0 N AH0 L ABERRATIONS AE2 B ER0 EY1 SH AH0 N Z ABERT AE1 B ER0 T ABET AH0 B EH1 T ABETTED AH0 B EH1 T IH0 D ABETTING AH0 ...
[ 0.2519998550415039, 0.33682742714881897, 0.1142096072435379, -0.2489519566297531, -0.12355303019285202, 0.22792015969753265, 0.6399886608123779, -0.25632691383361816, 0.043435800820589066, -0.5278663039207458, -0.16921846568584442, 0.5364012122154236, 0.17220990359783173, -0.24745167791843...
data for a machine learning system that would take new words and guess how they would be pronounced in English. It's not so obvious to me at least because there isn't a fixed token size of letters which could possible map to a phoneme. I have a feeling that something to do with a markov chain might be the right way to...
[ 0.04723915457725525, -0.1512596160173416, 0.06394745409488678, 0.34121811389923096, -0.08421725779771805, 0.13780862092971802, 0.1173073798418045, -0.08856717497110367, -0.013153493404388428, -0.7420307993888855, 0.18293730914592743, 0.28384336829185486, -0.16580478847026825, 0.05235005542...
I'm writing my first WCF service. I decided to write the service just as a DLL to begin with and then aspect the WCF stuff on afterwards which is where I am now. I was advised by the architect that I should stick to a specific format for message objects which I have done. However I've used Interfaces, complex types an...
[ 0.052562467753887177, 0.029774295166134834, 0.3538186252117157, -0.29199570417404175, -0.16923806071281433, -0.05400599166750908, 0.4421956539154053, -0.09033223241567612, -0.15043269097805023, -0.9710484743118286, 0.09463539719581604, 0.6175038814544678, -0.46732479333877563, 0.2963369786...
MyService : MyServiceContract { public MyMethodResponseMessage MyMethod(MyMethodRequestMessage request) { //Do things } } //Messages [MessageContract] public class MyMethodResponseMessage { [MessageBodyMember] public MyMethodResponse Body { get; set; } } [DataContract] public class MyMeth...
[ 0.11729754507541656, 0.08772654831409454, 0.4749591052532196, 0.14878173172473907, -0.08699598908424377, 0.10174623876810074, 0.28192251920700073, -0.42900216579437256, -0.23110520839691162, -0.7793271541595459, -0.4620361626148224, 0.30533257126808167, -0.16004280745983124, 0.264571368694...
string Identity { get; set; } } [DataContract] public class MyComplexType1 : IMyComplexType { [DataMember] public virtual string Identity } ``` Can anyone comment on the correctness in the use of MessageContract, DataContract, DataMember and Serializable etc? Any pointers or glaring mistakes? Also which s...
[ 0.23089201748371124, -0.10319661349058151, 0.48114243149757385, 0.12010513246059418, -0.18478946387767792, -0.2276308238506317, 0.22274109721183777, -0.1101226881146431, -0.19893912971019745, -0.5912440419197083, -0.22134387493133545, 0.6473510265350342, -0.32745182514190674, 0.09012916684...
but in many cases this isn't necessary. In such cases, I prefer to keep the contract as simple as possible, just as a data-contract. Re which serializer - that is largely a factor of the configuration. By default over http, for example, it will be `DataContractSerializer`. I'm not sure, however, that the list of `IMy...
[ 0.3413938283920288, -0.28357017040252686, 0.25248366594314575, 0.09657035022974014, -0.26921865344047546, -0.3478347361087799, 0.1405082494020462, -0.2223951369524002, -0.16478992998600006, -0.6579889059066772, -0.21785856783390045, 0.4723837673664093, -0.4480752646923065, 0.19809509813785...
to add an `OnDeserializing` callback method to initialize the list if you do that (WCF doesn't call constructors). Aside: you can also use [protobuf-net](http://code.google.com/p/protobuf-net/) with data-contracts and WCF (as long as they have an explicit Order); this is more densely packed than the regular xml. It ha...
[ 0.3268895149230957, -0.2176341414451599, 0.18588554859161377, 0.04166975989937782, -0.3171209394931793, -0.3686206638813019, -0.028326809406280518, -0.15063096582889557, -0.2234969437122345, -0.6263128519058228, -0.1345241218805313, 0.4212620258331299, -0.3868095874786377, -0.0710406154394...
I have a system which defines repeating patterns of days. Each pattern has a base date (often a few years in the past, when the pattern was created) and a day count (which loops), so for example it might define a pattern for a seven day period: **Table: Pattern** ``` ID | BaseDate | DayCount -----------------------...
[ 0.39507678151130676, -0.1262175291776657, 0.5516722798347473, -0.1659768968820572, -0.15716244280338287, 0.07802797108888626, 0.25709033012390137, -0.18233466148376465, -0.30324047803878784, -0.46525758504867554, 0.16251450777053833, -0.16438083350658417, -0.10874548554420471, 0.3601652085...
B 1 | 3 | C etc. ``` (The detail column is domain specific and not relevant.) What I want to do is, given a date (say today) work out the correct Offset in the **PatternDetail** table for a given working pattern. In pseudocode I would do: ``` offset = ((today.InDays) - (Pattern.BaseDate.InDays)) % (Patter...
[ 0.7216178178787231, 0.019523732364177704, 0.20544490218162537, -0.12874294817447662, 0.031085936352610588, -0.0325675830245018, -0.06124512478709221, -0.28988441824913025, -0.08747678995132446, -0.5540401339530945, 0.14475542306900024, 0.23236097395420074, -0.28318294882774353, -0.10605875...
but T-SQL has a DATEDIFF function which appears to be what you're looking for: ``` @Offset = ((DATEDIFF(day, @BaseDate, GETDATE()) % @DayCount) ```
[ 0.47780704498291016, -0.15279074013233185, 0.36145448684692383, -0.0659661665558815, -0.022192107513546944, -0.053132832050323486, -0.19533905386924744, 0.20766963064670563, 0.011315925978124142, -0.33153608441352844, 0.05650870129466057, 0.25265905261039734, -0.1202489361166954, 0.1967128...
I am trying to do some debuging on my rewrite rules and wanted to enable RewriteLog to view how they are interpreted. but when i activate it i get Internal Server Error heres the line: ``` RewriteLog "/home/solomongaby/www/project/logs/rewrite.log" ``` thanks The [`RewriteLog` directive](http://httpd.apache.org/doc...
[ 0.17200930416584015, 0.2591044008731842, 0.4776304364204407, -0.3693213164806366, 0.18016377091407776, -0.5809476375579834, 0.7743474245071411, -0.09096604585647583, -0.06132890284061432, -0.6664357781410217, -0.46573305130004883, 0.6638931632041931, -0.24101315438747406, 0.377894818782806...
I'm using the standard out-of-the-box aspnet membership provider, and I have the following settings in the web.config: ``` <anonymousIdentification enabled="false"/> <authentication mode="Forms"> <forms cookieless="AutoDetect" loginUrl="~/XXXX.aspx" name="XXXXAuth" slidingExpiration="true" timeout="432000"/> </aut...
[ 0.0018530591623857617, 0.18081864714622498, 0.6507833003997803, -0.12068046629428864, 0.15282870829105377, -0.12882384657859802, 0.5624241232872009, -0.35541483759880066, -0.32491523027420044, -0.7714298963546753, -0.10040021687746048, 0.5565882325172424, 0.15270237624645233, 0.29883563518...
site from a shared computer. Neither account's data shows any sign of being "hacked" in the database. The is hosted on two web servers behind a load balancer. The database architecture is one server for reads, one for writes with replication keeping them in sync. Does anyone know what might have occured to cause this...
[ 0.4718206822872162, -0.10694997757673264, 0.4903393089771271, 0.38054996728897095, 0.02282211370766163, -0.18733416497707367, 0.3474544286727905, 0.1005702093243599, -0.3132832944393158, -0.8772072196006775, 0.027589917182922363, 0.12799935042858124, -0.1726403534412384, 0.3637621104717254...
of values... If you create an index on (photo\_gallery\_id, date\_created\_on) it may do an index scan (depending on the distribution of photos), which ought to be faster than a table scan (provided your gallery\_id isn't 90% of the photos or whatnot). ``` SELECT @row := 0; SELECT MAX( position ) FROM ( SELECT @r...
[ 0.30292555689811707, 0.0377824567258358, 0.6393841505050659, -0.14019492268562317, 0.4633064866065979, 0.06707494705915451, -0.1332024484872818, -0.4639684855937958, -0.2203676700592041, -0.3500008285045624, 0.0587923601269722, 0.6915678381919861, -0.14098045229911804, 0.15907439589500427,...
ORDER BY date_created_on ) positions; ```
[ -0.3404639959335327, 0.39075368642807007, 0.2800029516220093, -0.33065229654312134, 0.1351061910390854, 0.3785504698753357, -0.007233712822198868, 0.16265541315078735, -0.329542338848114, -0.39809924364089966, -0.5680323839187622, 0.2561310827732086, -0.20652392506599426, 0.525104820728302...
I want to force a www. prefix on my website by using a .htaccess 301 redirect. I am currently trying: ``` RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] ``` Which normally works, but I am using Zend Framework which causes all requests to be redirected back to <http://...
[ 0.2415388524532318, 0.11869565397500992, 1.095786452293396, -0.12012813240289688, -0.05831200256943703, -0.16336598992347717, 0.3901293873786926, -0.28234344720840454, -0.08503277599811554, -0.6270051598548889, -0.11042418330907822, 0.5178819298744202, -0.2264348566532135, 0.06680958718061...
url... ``` http://mysite.com/some-file.htm ``` ... redirect to <http://www.mysite.com/some-file.htm> but use the index.php
[ 0.24845574796199799, 0.2872084081172943, 0.6664931774139404, 0.12041192501783371, -0.09468407928943634, -0.45319488644599915, 0.03592181205749512, 0.45521464943885803, -0.1839979737997055, -0.3462275564670563, -0.369037002325058, -0.027257749810814857, 0.03341158106923103, 0.65093082189559...
As was suggested in an answer to my last question ([How do I send an array of integers over TCP in C?](https://stackoverflow.com/questions/672241/how-do-i-send-an-array-of-integers-over-tcp-in-c)), I tried to send an array of long int, however I may be doing something to break the solution... ``` #define ARRAY_LEN 4 ...
[ -0.0060577611438930035, -0.15989406406879425, 0.4049995541572571, -0.071015365421772, -0.1846732497215271, 0.07410396635532379, 0.2548626959323883, -0.31428682804107666, -0.43931448459625244, -0.11414577811956406, 0.10400757193565369, 0.5389589667320251, -0.35871729254722595, 0.17783817648...
getting the numbers I sent (1, 2, 3, 4), I get long numbers such as 140088443806649... ``` #define ARRAY_LEN 4 long targetArray[ARRAY_LEN]; read(socketFD, targetArray, sizeof(targetArray) * ARRAY_LEN); ``` So, assuming that I need to read into a pointer, I tried this... ``` #define ARRAY_LEN 4 long *targetArray; ...
[ 0.07881414145231247, -0.2880350351333618, 0.2523939907550812, -0.07797539979219437, -0.19865421950817108, 0.2850915491580963, 0.3490937054157257, -0.2540464997291565, -0.3890545666217804, -0.339107871055603, 0.06326963007450104, 0.41838783025741577, -0.3939783573150635, 0.0906943753361702,...
2, 3, 4 }; write(clientSocketFD, originalArray, sizeof (originalArray)); ``` Read: ``` #define ARRAY_LEN 4 long targetArray[ARRAY_LEN]; read(socketFD, targetArray, sizeof (targetArray)); ``` If you are passing the array as a pointer, then `sizeof` cannot be used to get the total size of the array. In that case, th...
[ 0.19055093824863434, -0.16912181675434113, 0.29033589363098145, -0.28385505080223083, -0.21475158631801605, 0.059269554913043976, 0.07945000380277634, -0.3490823209285736, -0.42656785249710083, -0.45290225744247437, -0.16988304257392883, 0.5689593553543091, -0.2603459358215332, -0.02129493...
writing.
[ 0.1945577710866928, 0.5561118721961975, -0.3696771562099457, 0.1441328227519989, 0.20426252484321594, 0.10159286111593246, -0.015294811688363552, 0.03340085223317146, -0.40041759610176086, -0.8070595860481262, -0.19209064543247223, 0.4258233904838562, 0.025574734434485435, -0.3332599401473...
When deploying applications, I often use Hibernate’s capacity to create database schema in order to simplify the deployment. This is easily achievable by configuring hibernate.hbm2ddl.auto property. However, on occasion I also need to insert some initial data to database, for example root user. Is there a way I could...
[ 0.605025589466095, 0.1781230866909027, 0.4782971143722534, 0.04703359305858612, -0.2922801375389099, -0.42421120405197144, 0.36442092061042786, -0.23753449320793152, -0.140362948179245, -0.8148319721221924, -0.0773678719997406, 0.6563634872436523, -0.3014911711215973, 0.0913882926106453, ...
will create the database > when the entity manager factory is > created (actually when Hibernate's > SessionFactory is created by the > entity manager factory). If a file > named import.sql exists in the root of > the class path ('/import.sql') > Hibernate will execute the SQL > statements read from the file af...
[ 0.2274584025144577, -0.006543416064232588, 0.541822075843811, -0.09720859676599503, -0.21680410206317902, -0.3504895865917206, 0.3455922305583954, -0.2683177590370178, -0.016292132437229156, -0.6691203117370605, -0.16191378235816956, 0.3212425410747528, -0.5931628346443176, 0.0071864328347...
of building the schema). Source: <http://www.velocityreviews.com/forums/t667849-hibernate-quotfixturesquot-or-database-population.html> Give it a try and let us know if it works!
[ 0.6794196963310242, -0.2236308753490448, 0.33049124479293823, 0.19202575087547302, 0.2253953367471695, -0.26265156269073486, 0.6033580899238586, -0.041746556758880615, -0.15438009798526764, -0.3342036306858063, 0.19391758739948273, 0.42687588930130005, -0.2500176727771759, -0.2572578191757...
I have a considerably large application that uses MSDTC. How many ports should I open? Is there any way to determine it? **EDIT:** I know **what** ports I need to open, I don't know **how many** I need. I think Migol wants to know how big the range of the [RPC dynamic port allocation](http://support.microsoft.com/Defa...
[ 0.09366311877965927, 0.16160520911216736, 0.4258013963699341, -0.02890404313802719, 0.04822522774338722, -0.12357902526855469, 0.12011148035526276, 0.002386587904766202, -0.3843627870082855, -0.8669629693031311, -0.1748199611902237, 0.4948740005493164, -0.17622405290603638, 0.3097143769264...
to test different values of your dynamic range.
[ 0.2994164526462555, -0.1832534372806549, 0.10305336862802505, 0.4467222988605499, 0.033759426325559616, -0.15774518251419067, 0.4349169433116913, -0.396564245223999, -0.08945207297801971, -0.3880763649940491, 0.2646934986114502, 0.6356348991394043, 0.11263468116521835, -0.12452170997858047...
I thought I understood C# regular expressions, but clearly it's not the case. I need some help devising an expression that would find everything from START|BEGIN until )). Expression can be multi line. Ex. ``` START( FTP_STATE, XXX( VAL( FTP_INITIAL_STATE, 0 ) VAL( FTP_INBOUND, 1 ) AL( FTP_OUTBOUND, ...
[ -0.44703611731529236, -0.3053992688655853, 0.852627694606781, -0.1296771913766861, -0.13082236051559448, 0.13431428372859955, 0.4069080352783203, -0.13069182634353638, -0.033718518912792206, -0.7021035552024841, -0.6395505666732788, 0.8206016421318054, -0.31238070130348206, -0.427763670682...
than a `)` (`[^)]+`) or a `)` that is followed by any character other than `)` (`\)[^)]`) may follow. (So there is no way to match `))` with this expression.) * **`\)\)`**   Finally the `))`. I hope this will reduce backtracking.
[ -0.2459183633327484, -0.02367214858531952, 0.46458500623703003, -0.1831008493900299, 0.09796378016471863, -0.19987449049949646, 0.3318861424922943, -0.05870993435382843, 0.011421076022088528, -0.570421040058136, -0.5203018188476562, 0.7818999290466309, -0.13398729264736176, -0.019086262211...
I have a very large Java app. It runs on Tomcat and is your typical Spring/Hibernate webapp. It is also an extremely large Java program. It's easy for me to test the performance of database queries, since I can run those separately, but I have no idea to look for Java bottlenecks on a stack like this. I tried Eclipse's...
[ 0.34336036443710327, -0.0179712176322937, 0.1477579027414322, -0.0631287544965744, -0.32146576046943665, -0.018181802704930305, 0.17580653727054596, 0.15379598736763, -0.3437073826789856, -0.4942757487297058, 0.30744463205337524, 0.4600197672843933, -0.19203312695026398, 0.0656751543283462...
the JDK can be attached to running processes and may at least give an initial overview of the performance. It is based on the Netbeans profiler.
[ -0.042452991008758545, -0.028783904388546944, -0.04133060202002525, 0.002494901418685913, -0.3621790111064911, -0.4261287748813629, -0.3644716143608093, 0.012523893266916275, 0.11454056948423386, -0.7268775701522827, -0.2390850931406021, 0.42757895588874817, -0.11808469891548157, -0.157977...
We have a situation where we are importing a number of files with the same format, using the same SSIS package. The package is being loaded and executed from a .net assembly. Currently the package is being reloaded for each file. I would like to load the package once during the initialisation of the .net process, and ...
[ 0.6132574081420898, -0.053722359240055084, 0.051054950803518295, -0.06540528684854507, 0.013409925624728203, -0.20153704285621643, 0.08196122199296951, -0.2156251221895218, -0.14265717566013336, -0.6228813529014587, -0.14639006555080414, 0.6140217185020447, -0.20280329883098602, 0.22805041...
a very simple SSIS package first, then your more complex one. I can't say that I have done this exact scenario myself.
[ 0.13203729689121246, -0.10398304462432861, -0.21135357022285461, 0.04808751866221428, 0.09032732248306274, 0.07844838500022888, 0.19549661874771118, 0.005258000921458006, -0.051949094980955124, -0.6661797165870667, 0.05934470146894455, 0.3965984582901001, -0.3259923458099365, -0.0303463898...
I have a website (Flash) localized into a dozen of languages and I want to auto-define a default value depending on the user's browser settings in order to minimize the steps to access the content. FYI, I cannot use server scripts due to proxy restrictions, so I guess JavaScript or ActionScript would be appropriate to...
[ 0.2103623002767563, 0.1350356936454773, -0.059647370129823685, 0.13534201681613922, -0.08247379958629608, 0.009871202521026134, 0.4690468907356262, 0.4687466323375702, -0.0904645174741745, -0.6628875732421875, -0.24485842883586884, 0.16000299155712128, -0.12264742702245712, -0.213124901056...
way. 3. To which point can I trust such a solution? 4. Any other workarounds or suggestions? The proper way is to look at the HTTP [Accept-Language](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4) header sent to the server. This contains the ordered, weighted list of languages the user has configured th...
[ 0.4120873808860779, 0.04613325372338295, 0.7541712522506714, 0.19577659666538239, 0.18987223505973816, -0.09452438354492188, 0.24146981537342072, -0.050932276993989944, 0.0637410432100296, -0.9729631543159485, -0.26807138323783875, 0.7271332144737244, -0.14973579347133636, -0.1296731978654...
OS region), which are all similarly unhelpful. If I had to choose between those properties, I'd sniff for `userLanguage` first, falling back to `language` and only after that (if those didn't match any available language) looking at `browserLanguage` and finally `systemLanguage`. If you can put a server-side script s...
[ 0.03664954751729965, 0.2649838328361511, 0.2794981002807617, -0.21852435171604156, -0.059809185564517975, 0.04314153641462326, 0.24321840703487396, -0.006560562178492546, -0.030478691682219505, -0.8978899121284485, -0.1503354012966156, 0.5031552314758301, -0.2914726734161377, 0.10266682505...
know of any existing library code to do this, though, since Accept-Language parsing is almost always done on the server side. Whatever you end up doing, you certainly need a user override because it will always guess wrong for some people. Often it's easiest to put the language setting in the URL (eg. http​://www.exam...
[ 0.3906736671924591, 0.27939173579216003, -0.11167500913143158, 0.1843324899673462, -0.029550425708293915, -0.45660534501075745, 0.6609764099121094, 0.09083186835050583, -0.22996655106544495, -0.7287415266036987, -0.3253859281539917, 0.38318589329719543, -0.0945642963051796, -0.037523448467...
Does anyone have a "hello world" sample or tutorial for creating an Eclipse plugin fragment? I have a working host plugin that, for the sake of simplicity, is just this... ``` public void start(BundleContext context) throws Exception { System.out.println("Hello...."); super.start(context); plugin = this; ...
[ 0.11110740900039673, -0.03860299289226532, 0.1825505495071411, 0.06149493157863617, -0.24687711894512177, -0.042709749191999435, 0.4177296757698059, 0.07825096696615219, -0.05860457196831703, -0.7396647334098816, -0.14614346623420715, 0.345505028963089, -0.3563910722732544, 0.2622129321098...
fragment project and add logic to it. Let's say I just want to do something simple and have the fragment to print a "Hello2" at `start()` and "Goodbye2" at `stop()`. Can someone give me a working example? 1. *Eclipse* -> *File* -> *New...* -> *Fragment project* -> set the host plugin (which is either in your workspace ...
[ 0.18809382617473602, -0.18387171626091003, -0.04020536690950394, 0.0729605108499527, -0.5990586280822754, -0.3714143633842468, 0.08822695910930634, -0.22148752212524414, -0.08670470118522644, -0.9687827825546265, -0.019353283569216728, 0.3553001582622528, -0.1257343888282776, -0.0478264465...
which implements `org.eclipse.ui.IStartup` class. 4. Create this class and implement it. You need to implement method `earlyStartup()` which is entry point to the fragment. *Note: The lines below are just example. I didn't test it so there might be errors...* All you need is this (this is project structure / director...
[ 0.037780821323394775, -0.17018435895442963, 0.37285709381103516, 0.1177508756518364, -0.18802125751972198, -0.3402131497859955, 0.21267302334308624, -0.6499513983726501, -0.10182399302721024, -0.7531017065048218, -0.320144385099411, 0.2401638627052307, -0.19047695398330688, -0.014161047525...
., fragment.xml ``` **fragment.xml** content: ``` <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <fragment> <extension point="org.eclipse.ui.startup"> <startup class="FragmentStartClass"> </startup> </extension> </fragment> ``` **FragmentS...
[ -0.112043596804142, 0.035985998809337616, -0.01838293857872486, -0.1101316288113594, -0.2847295105457306, 0.028564415872097015, 0.4388063848018646, -0.08153487741947174, 0.07885816693305969, -0.881630003452301, -0.6384530067443848, 0.17806239426136017, -0.2993287742137909, 0.28310322761535...
`Float:right` specified for a `div` inside a table cell seems to have no effect in IE. I have also tried text-align right, among other things, to align the layer contents to the right, but without success in IE 7. CSS snippet: ``` .workloadcell { background-color: #E6D7E9; padding: 0px; width: 14px; ...
[ 0.06413546949625015, -0.1573118418455124, 0.7369608283042908, -0.16807158291339874, -0.026111692190170288, -0.0551653616130352, 0.241021528840065, -0.281712144613266, 0.015248259529471397, -0.821169912815094, -0.3944108486175537, 0.2696600556373596, -0.19079641997814178, -0.163738816976547...
1 </div> </td> ``` Both the HTML and the CSS validate, and in Firefox the text aligns right, as it should. If you want to test the complete code by copy/pasting it, it's here: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv...
[ 0.26601389050483704, 0.17609889805316925, 0.6069968342781067, -0.24582235515117645, -0.1363637000322342, -0.3024918735027313, 0.18723100423812866, -0.8086695075035095, -0.009250474162399769, -0.5383606553077698, -0.36237359046936035, 0.5227928161621094, -0.549536943435669, -0.3567961156368...
height: 16px; text-align: right; } div.workload { background-color: #E6D7E9; text-align: right; width: 14px; float: right; } </style> </head> <body> <table> <tr> <td> &nbsp;
[ -0.0763460099697113, -0.12486546486616135, 0.535984456539154, -0.13259154558181763, 0.039838653057813644, 0.31479769945144653, 0.07057150453329086, -0.3452203571796417, -0.17305807769298553, -0.46553099155426025, -0.4720023274421692, 0.5854519009590149, -0.01368227880448103, -0.04424227029...
</td> <td colspan="4"> <div> 2008 </div>
[ -0.15471243858337402, -0.1249985471367836, 0.4511319696903229, 0.019176211208105087, -0.524601399898529, 0.03559582680463791, 0.2554342746734619, -0.2691332697868347, -0.3190268576145172, -0.12300483137369156, -0.2069227397441864, 0.5301403999328613, -0.09912527352571487, 0.095403850078582...
</td> </tr> <tr> <td> &nbsp; </td> <td>
[ 0.014268667437136173, -0.45023298263549805, 0.09215015918016434, -0.10515452921390533, 0.11440259218215942, 0.1761605143547058, -0.06730444729328156, -0.4017908573150635, -0.2299676239490509, -0.44664904475212097, -0.5527313947677612, 0.37536704540252686, -0.41808587312698364, 0.0952282771...
<div> Q1 </div> </td> <td>
[ 0.1196073591709137, -0.5650362968444824, 0.0006432895897887647, -0.07720214873552322, -0.39124515652656555, -0.026096627116203308, 0.2566150426864624, -0.34409844875335693, 0.09253551810979843, -0.3213546872138977, -0.30294424295425415, 0.2993208169937134, -0.3432669937610626, 0.1019359603...
<div> Q2 </div> </td> <td>
[ 0.035414885729551315, -0.5222634077072144, 0.07098273187875748, -0.09288700670003891, -0.2750168740749359, -0.02229541912674904, 0.2751849293708801, -0.3763720691204071, 0.024954693391919136, -0.4001765549182892, -0.3613028824329376, 0.29692038893699646, -0.24337567389011383, 0.08462867140...
<div> Q3 </div> </td> <td>
[ 0.009507286362349987, -0.5174007415771484, 0.1002558246254921, -0.09662323445081711, -0.4129447937011719, 0.0011334196897223592, 0.27635419368743896, -0.29965484142303467, -0.014912795275449753, -0.40112003684043884, -0.4063403904438019, 0.2636962831020355, -0.24094553291797638, 0.13038551...
<div> Q4 </div> </td> </tr> <tr>
[ -0.11972349137067795, -0.5459529161453247, 0.12987840175628662, -0.08478296548128128, -0.3101615607738495, 0.17839576303958893, 0.13062579929828644, -0.2675987780094147, -0.07350072264671326, -0.3402487337589264, -0.4162150025367737, 0.45334795117378235, -0.27825990319252014, 0.07932120561...
<td> workload forecast </td> <td class="workloadcell"> <div class="workload">
[ 0.3410876393318176, -0.6216625571250916, 0.12079530954360962, -0.0946010872721672, -0.3524571657180786, 0.11939658224582672, 0.11167602986097336, -0.41713303327560425, -0.1159452348947525, -0.4410998523235321, -0.21462056040763855, 0.5685328245162964, -0.03848545625805855, 0.09773710370063...
1 </div> </td> <td class="workloadcell"> <div class="workload"> 2
[ 0.32366153597831726, -0.7048095464706421, -0.0815092995762825, -0.03763943538069725, -0.5849406719207764, -0.31101348996162415, -0.08547023683786392, -0.6349997520446777, 0.22013673186302185, -0.44970566034317017, -0.16740263998508453, 0.5336633324623108, -0.49819663166999817, -0.113561280...
</div> </td> <td class="workloadcell"> <div class="workload"> 2
[ 0.05374523997306824, -0.48704540729522705, 0.16455520689487457, -0.0672265812754631, -0.40099337697029114, -0.09771855920553207, -0.11687999963760376, -0.543463408946991, -0.025264602154493332, -0.5066583752632141, -0.32023900747299194, 0.4650399684906006, -0.18458706140518188, 0.099478751...
</div> </td> <td class="workloadcell"> <div class="workload"> 2
[ 0.05374523997306824, -0.48704540729522705, 0.16455520689487457, -0.0672265812754631, -0.40099337697029114, -0.09771855920553207, -0.11687999963760376, -0.543463408946991, -0.025264602154493332, -0.5066583752632141, -0.32023900747299194, 0.4650399684906006, -0.18458706140518188, 0.099478751...
</div> </td> </tr> <tr> <td> actual workload
[ 0.25845572352409363, -0.2138577699661255, 0.16329261660575867, -0.049303315579891205, -0.1763056516647339, 0.19055935740470886, 0.06673746556043625, -0.3390091359615326, -0.11711765080690384, -0.4492589831352234, -0.5233548283576965, 0.6217755079269409, 0.03954929858446121, 0.0657178461551...
</td> <td class="workloadcell"> <div class="workload"> 3 </div>
[ 0.30196821689605713, -0.291255921125412, 0.21155713498592377, -0.16732186079025269, -0.4937593340873718, 0.0728297010064125, 0.2484423667192459, -0.6490398049354553, -0.15402832627296448, -0.33464860916137695, -0.27175772190093994, 0.5400078892707825, -0.1820589303970337, 0.124945133924484...
</td> <td class="workloadcell"> <div class="workload"> 3 </div>
[ 0.30196821689605713, -0.291255921125412, 0.21155713498592377, -0.16732186079025269, -0.4937593340873718, 0.0728297010064125, 0.2484423667192459, -0.6490398049354553, -0.15402832627296448, -0.33464860916137695, -0.27175772190093994, 0.5400078892707825, -0.1820589303970337, 0.124945133924484...
</td> <td class="workloadcell"> <div class="workload"> 2 </div>
[ 0.27852216362953186, -0.43675777316093445, 0.11125854402780533, -0.10660094767808914, -0.3425823152065277, 0.019296273589134216, 0.11694930493831635, -0.5553958415985107, -0.07221350073814392, -0.3853290379047394, -0.2507193386554718, 0.5019315481185913, -0.1309090405702591, 0.082917079329...
</td> <td class="workloadcell"> <div class="workload"> 3 </div> </td>
[ 0.3300507366657257, -0.3278810977935791, 0.16129787266254425, -0.1710743010044098, -0.4552021324634552, 0.06316722929477692, 0.25619667768478394, -0.6763612031936646, -0.09737706929445267, -0.32029733061790466, -0.326817125082016, 0.5436676144599915, -0.21214263141155243, 0.068856604397296...
</tr> </table> </body> </html> ``` (I know that the CSS is are not optimal in the sense that the class declarations are repeated for several elements, but please don't comment on this, if it is not relevant to the problem.) It should work the way you have it (or the way alexmeia suggests). But, (this bei...
[ 0.26620134711265564, -0.10338175296783447, 0.19076181948184967, -0.008866744115948677, -0.07824172079563141, 0.08681540936231613, 0.21309393644332886, -0.24814364314079285, -0.2896330654621124, -0.6227906942367554, -0.18500874936580658, 0.2233809530735016, -0.21398089826107025, -0.02265975...
you've requested. The columns are right justified within the 14px you've defined, but the divs are not moving to the right in IE. (The div is staying within the 14px defined for it even though the column is *actually* wider than 14px) To illustrate this, you can either make the width say 28px **or** change the color ...
[ 0.5005568265914917, -0.1994357705116272, 0.5674141645431519, -0.1032307893037796, 0.051066815853118896, 0.11540207266807556, 0.24990254640579224, -0.31782370805740356, -0.08769390732049942, -0.7778602242469788, -0.29299500584602356, 0.6922155618667603, -0.2765789330005646, -0.2254603505134...
background-color: #E6EEE9; text-align: right; width: 14px; float: right; } ``` The solution for IE is to either not define a width *or* to make it wide enough to accomodate the header.
[ 0.15737928450107574, 0.07070569694042206, 0.31974804401397705, -0.18647132813930511, 0.3242868483066559, -0.2113236039876938, 0.08364205807447433, 0.013919119723141193, 0.050356511026620865, -0.5140058398246765, -0.454129159450531, 0.5043764710426331, -0.32624414563179016, -0.2217370718717...
Architecture ARM9. Programming Language C. We have a third-party stack and one of the calls takes a pointer(`pBuffer`) to a memory location. Within the stack, they are free to move around the pointer passed and access it as they wish. Unfortunately, they offset the passed in pointer and passed it into a another functi...
[ -0.06302155554294586, 0.15641562640666962, 0.6540859341621399, -0.08379162847995758, 0.04561009630560875, 0.22051556408405304, -0.021999642252922058, -0.26398369669914246, -0.27975407242774963, -0.6702361702919006, -0.166544109582901, 0.3380199074745178, -0.3451358377933502, 0.173846274614...
on the heap. As mentioned, even though we can peek into the third-party stack, we can not update the code officially. So we notify the provider and they provide the update in the next release. I want to understand if there is a work around for this. How do I perform the above assignment without violating the unalign...
[ 0.45546555519104004, 0.19098685681819916, 0.04700784757733345, 0.14874325692653656, -0.07670486718416214, -0.029568126425147057, 0.23349162936210632, -0.05836109444499016, -0.27397412061691284, -0.5690401196479797, 0.06651920080184937, 0.5910629630088806, -0.10168605297803879, 0.2175012081...
I am performing a code review (VS2008/.NET 3.5). The development team has created several data access components in a DAC assembly. I encountered a business proces assembly where every DAC is wrapped with a business component with no additional value or code. Is this a right premature architectual step ? Just to be p...
[ 0.4533563554286957, 0.10834342986345291, 0.3234219253063202, -0.025273233652114868, 0.1403733193874359, -0.28688597679138184, 0.12117511034011841, -0.2746918499469757, -0.22199267148971558, -0.44695329666137695, 0.04680955782532692, 0.30732157826423645, -0.04073473811149597, 0.083391323685...
introduce it only when it is really needed. What are your experiences about this issue? My vote is to always have business objects, and always write your applications in terms of them. This makes the application layer data access agnostic, and improves your flexibility overall. It does take a little more up-front work...
[ 0.6400305032730103, 0.2197890281677246, 0.21657925844192505, 0.19080059230327606, -0.06878839433193207, -0.2676955759525299, 0.0946219190955162, 0.1621040254831314, -0.10457147657871246, -0.7567192912101746, -0.016973668709397316, 0.48733124136924744, -0.07260479032993317, -0.0921216979622...
I've got a String column defined with ``` @Column(length = 4000) ``` The attribute contains log information and can be longer than the defined length. In this case, the field can be safely truncated without throwing an error message. I'd like to find out the determined length of the column in the DAO class for the...
[ 0.01936563476920128, 0.30263516306877136, 0.33182230591773987, -0.007129667326807976, -0.0729372426867485, -0.01812034286558628, 0.1311773806810379, -0.37285059690475464, -0.26353490352630615, -0.21819017827510834, -0.11168079078197479, 0.3518289029598236, -0.05303920432925224, 0.014001172...
code. ``` person.getClass().getDeclaredField("firstName").getAnnotation(Column.class).length() ```
[ -0.11743289977312088, -0.0854317843914032, -0.06252098828554153, 0.14996686577796936, 0.0005160448490642011, -0.029449427500367165, 0.3671404719352722, -0.0733719989657402, 0.054984454065561295, -0.5894231200218201, -0.5969095826148987, 0.261440634727478, -0.4307047128677368, 0.07473694533...
I'm writing CRUD code for the WPF Datagrid. In the TheDataGrid\_CellEditEnding method below: * how do I get the original text before the user made the change? * I need the original text to be able to change the customer and save it back to the database with \_db.SubmitChanges() Here's the full solution with database...
[ 0.18807640671730042, 0.1804662048816681, 0.4462239146232605, -0.012300483882427216, -0.11091944575309753, -0.15920515358448029, 0.5040588974952698, -0.319744735956192, 0.04720643535256386, -0.5254603028297424, 0.15961043536663055, 0.44188588857650757, -0.3926621973514557, 0.213839575648307...
e) { //get the original text Customer customer = e.Row.Item as Customer; string customerID = customer.CustomerID; int displayIndex = (int)e.Column.DisplayIndex; // e.g. equals 4 when user edits the 5th column //HOW TO I GET THE ORIGINAL TEXT? THERE IS NO FIELDS METHOD IN THE LINQ-TO-SQL CLASSES ...
[ -0.012386403977870941, 0.0015697708586230874, 0.9772212505340576, -0.25353166460990906, 0.23760919272899628, 0.5479027032852173, -0.042333245277404785, -0.3574301302433014, -0.14574386179447174, -0.40737783908843994, -0.36623311042785645, 0.6075900197029114, -0.29368194937705994, 0.1810616...
String.Format("cell was changed from {0} to {1}", originalText, changedText); //I NEED TO CHANGE THE CUSTOMER WITH THE ABOVE TEXT //BEFORE I SAVE IT BACK HERE _db.SubmitChanges(); } ``` Why do you need the original text? Is it to display some informational message? In your case, you seem to be binding th...
[ 0.19772042334079742, 0.07102590799331665, 0.6844184994697571, -0.20637288689613342, 0.06219843029975891, -0.1383056491613388, 0.18967044353485107, -0.09201806038618088, -0.17878776788711548, -0.5641238689422607, -0.06215865537524223, 0.589518666267395, -0.39831092953681946, 0.3814766108989...
I am working on a MCQ module and I need to fetch random questions from my database. The problem is that I seem to get duplicates. If you're fetching them from database, use SQL to do your job. e.g. fetching 20 random questions (without repeating): ``` SELECT * FROM questions ORDER BY RAND() LIMIT 20 ```
[ 0.10987111926078796, 0.09002295136451721, 0.14542993903160095, 0.21065983176231384, -0.019301949068903923, 0.1921544075012207, -0.08578762412071228, -0.4732833802700043, -0.4774264395236969, -0.5079642534255981, 0.18888728320598602, 0.48813509941101074, -0.25574183464050293, 0.281544744968...
i have a need to get an undefined $\_GET['$VARIABLE']. so that if a link comes into item.php?changingitemstyle=10101010101010 I need to find out how to extract the name of the variable not the value. Any ideas? Use the [`array_keys()` function](http://docs.php.net/array_keys) to retrieve an array of the keys of an a...
[ 0.19639034569263458, -0.13166522979736328, 0.3624606430530548, -0.0869484543800354, -0.06765211373567581, 0.08547203987836838, 0.3252725303173065, 0.08693839609622955, -0.235061377286911, -0.40579456090927124, 0.20678673684597015, 0.527422308921814, -0.21267154812812805, 0.2539460062980652...
I have been looking at a few of our VB.NET dll's using FxCop and all of the errors relate to DLL setup (i.e. Strong Names, Culture Info) and the case of Variables methods. Looking at a few examples of FxCop examining a C# Dll, it appears to offer a lot more potential errors. Does this mean that FxCop is more valuab...
[ 0.5242685079574585, 0.09518274664878845, -0.17395976185798645, 0.2354368418455124, -0.16129428148269653, -0.3031562268733978, -0.017636923119425774, 0.2126179188489914, -0.40760213136672974, -0.3608707785606384, 0.15850651264190674, 0.8285777568817139, -0.4127887487411499, -0.0963661000132...
there more available for C#? I would say that's not correct. FxCop is invaluable to any .NET developer. You need to show an example of where you get more (or less) output from FxCop for a piece of VB.NET code, versus a piece of C# code, both of which compile to the same IL.
[ 0.5230635404586792, -0.2754985988140106, -0.18191519379615784, 0.20213454961776733, -0.3522963225841522, -0.040198128670454025, -0.4891798794269562, 0.2666061222553253, -0.2818460166454315, -0.4200890362262726, 0.20295070111751556, 0.9570886492729187, -0.2261158525943756, -0.38916674256324...
My company is looking to replace all websites in the group with a new CMS-based system and similar designs/styling, with E-Commerce functionality being added in a future phase. It's too big a job for me to do in a reasonable time-frame, so we are going to be inviting tenders from agencies. I'm currently in the process...
[ 0.5782098770141602, 0.4197569191455841, 0.47383612394332886, -0.02713678777217865, 0.1265990436077118, -0.40617337822914124, 0.44655972719192505, 0.16861920058727264, -0.17317354679107666, -0.616935670375824, -0.28443992137908936, 0.4189848303794861, 0.07018281519412994, -0.124074518680572...
for IE, obviously]. I've done a bit of homework an all of this - I don't want the spec to be limited by my ignorance, after all - but it won't surprise you all that I've found that 'current opinion' is completely divided on what is good practice. There are plenty of people who advocate HTML4.01 Strict (fair enough), ...
[ 0.7702313661575317, 0.17175579071044922, 0.4608279764652252, -0.2685711681842804, -0.48776787519454956, -0.5746285319328308, 0.5231947302818298, -0.17056603729724884, -0.15976344048976898, -0.35547876358032227, 0.007799054961651564, 0.8240410685539246, -0.22061413526535034, -0.056428670883...
a not-inconsiderable number (including people on other SO threads) who recommend XHTML1.0 Transitional. I just don't understand the reasoning for this... OK, you may happen to want to temporarily use something that been deprecated, and thus Transitional seems sensible, but some people recommend XHTML Transitional for ...
[ 0.8509659767150879, 0.19349558651447296, -0.08105411380529404, -0.023898854851722717, -0.26178470253944397, -0.47125473618507385, -0.003744234098121524, 0.10466286540031433, -0.18905557692050934, -0.6862982511520386, -0.07075626403093338, 0.5270402431488037, -0.22233955562114716, 0.1638165...
that we've come across, there are an amazing proportion of them (the vast majority of them, I would say) are using XHTML 1.0 Transitional. Fine, so you don't necessarily have to be an expert to call yourself a Web Designer, but the sheer volume of Transitional layouts makes me wonder... Most of the sites seem to be ot...
[ 0.9075514674186707, 0.1508112996816635, -0.011111634783446789, 0.11446160078048706, -0.06107672303915024, -0.2871786057949066, 0.04995700716972351, 0.18933288753032684, -0.356312096118927, -0.535443127155304, -0.11382543295621872, 0.3710218071937561, -0.10397056490182877, 0.125363051891326...
sites? **Edit:** Yeah, I realise the purpose of the Transitional DTD - I was just suspicious that so many otherwise-competent web developers are clinging on to deprecated markup. I wonder if you guys are correct and the answer is simply that they are a) are too lazy to get their own website to validate, or b) sticking...
[ 0.8072108626365662, 0.17080412805080414, 0.135528102517128, 0.3386334180831909, -0.2481842339038849, -0.37420621514320374, 0.32570353150367737, 0.25337398052215576, -0.5077099800109863, -0.5491448640823364, -0.18976660072803497, 0.5312460064888, -0.08235187083482742, -0.08379621058702469, ...
short-listed agencies thankfully seem to have their heads screwed on - Strict, valid and accessible. I'm going to take a hard-nosed approach and say that Transitional doctypes are popular because some people are lazy or just don't care. Somebody told them they should validate their code, and transitional is the easiest...
[ 0.5555376410484314, 0.12632282078266144, 0.054551608860492706, 0.01287328265607357, -0.025392090901732445, -0.04852164164185524, 0.21205516159534454, 0.14402548968791962, -0.2674112915992737, -0.5015574097633362, -0.28049251437187195, 0.6141634583473206, -0.19701673090457916, 0.00873290933...
important than XHTML vs. HTML4. I would strongly recommend to you that in your technical requirements you require Strict.
[ 0.28432247042655945, -0.05811220407485962, -0.116426482796669, 0.212877094745636, -0.34925997257232666, -0.9010658264160156, -0.07567506283521652, 0.15815524756908417, -0.1972002536058426, -0.6606532335281372, -0.255171000957489, 0.5750491619110107, -0.25146180391311646, -0.245955854654312...
I am trying to bind a `List<AreaField>` to a repeater. I have converted the list into an array by using the `ToArray()` method and now have a array of `AreaField[]` Here's my class hierarchy ``` public class AreaFields { public List<Fields> Fields { set; get; } } public class Fields { public string Name { se...
[ 0.22374573349952698, -0.11750050634145737, 0.6157611012458801, -0.2385854721069336, -0.007115685846656561, -0.08488769829273224, 0.21894322335720062, -0.409613698720932, -0.15966558456420898, -0.5489968657493591, -0.051982663571834564, 0.43200457096099854, -0.4412599503993988, 0.4200966656...
DataSource='<%# Eval("Fields") %>'> <ItemTemplate> <span><%# Eval("Name") %></span> </ItemTemplate> </asp:Repeater> ``` You can also cast your fields ``` <%# ((ArrayFields)Container.DataItem).Fields[0].Name %> ``` Finally you could do a little CSV Function and write out your fields with a function ``` <%#...
[ -0.0813087448477745, -0.255609929561615, 0.6637881994247437, -0.16703759133815765, -0.07714413106441498, 0.2442016303539276, 0.2793160080909729, -0.6431203484535217, -0.286943256855011, -0.5276708602905273, -0.3254714608192444, 0.40948596596717834, -0.19723506271839142, 0.04655949026346207...
I have a `UserControl` which basically wraps a `ListBox` like this - ``` <ListBox x:Name="lb" ItemsSource="{Binding ElementName=UC,Path=Pages}" Background="{Binding ElementName=UC,Path=Background}" BorderBrush="Transparent" ScrollViewer.CanContentScroll="False" ...
[ 0.053912241011857986, -0.2571806013584137, 0.7096028327941895, -0.004435681737959385, 0.0023780465126037598, -0.057223569601774216, -0.005617825780063868, -0.34444257616996765, -0.04330349713563919, -0.7778670191764832, 0.07693462818861008, 0.18613524734973907, -0.11642210185527802, 0.1332...
<ItemsPanelTemplate> <StackPanel Orientation="Horizontal" IsItemsHost="True"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <Grid Width="{Binding ElementName=UC,Path=ActualWidth}">
[ -0.07960977405309677, -0.2079315483570099, 0.5146523118019104, 0.13051007688045502, -0.12961775064468384, 0.30948227643966675, -0.294206827878952, -0.4566381871700287, -0.5378572344779968, -0.6817425489425659, -0.17642827332019806, -0.018098264932632446, 0.26722702383995056, 0.083239980041...
<Grid.ColumnDefinitions> <ColumnDefinition MinWidth="20"/> <ColumnDefinition/> <ColumnDefinition MinWidth="20"/>
[ -0.4674248993396759, -0.46871793270111084, 0.4056893289089203, -0.23651693761348724, -0.06446719914674759, 0.25470030307769775, -0.16804145276546478, -0.620442271232605, -0.5606169104576111, -1.0258405208587646, -0.17327210307121277, 0.1870223730802536, -0.13835379481315613, -0.15930351614...
</Grid.ColumnDefinitions> <ContentPresenter Grid.Column="1" Content="{Binding}"/> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox> ``` I need to set the `FocusVisualStyle` to `{x:Null}` to hide this functionality but no matter where i apply it, i s...
[ 0.1943446546792984, -0.35740095376968384, 0.4253314435482025, -0.07761457562446594, -0.05857860669493675, -0.03438780829310417, 0.15964233875274658, 0.09073247760534286, -0.09740188717842102, -0.9433049559593201, -0.15265527367591858, 0.3654851019382477, -0.25015488266944885, -0.0622383914...
Grid but to no avail. Any help would be great. thanks. FocusVisualStyle applies the "marching ants" around the focused element, not the background color. To change the background color of selected ListBoxItems, do something like: ``` <ListBox> <ListBox.Resources> <SolidColorBrush x:Key="{x:Static SystemCo...
[ 0.2437501698732376, -0.52362459897995, 0.1424182802438736, 0.007761599030345678, -0.3781976103782654, 0.1689540147781372, 0.21196560561656952, -0.1745515912771225, -0.2037782222032547, -0.9833112955093384, 0.329841673374176, 0.27804335951805115, -0.6115643978118896, -0.3033110797405243, ...
I have a standard Visual Studio (2008) application setup project, which generates an msi containing a few files. I noticed however that: 1) When the msi installs and some of the files already exist, it simply silently ignores these files. This is the behaviour that I *don't* want, because of obvious reasons. 2) When I ...
[ 0.605538547039032, 0.19643212854862213, 0.10400152206420898, 0.03181198239326477, -0.09783034026622772, -0.09111641347408295, 0.48568955063819885, -0.15072675049304962, -0.18025530874729156, -0.5445665121078491, -0.04722808301448822, 0.7586461901664734, -0.3205430507659912, 0.1655096560716...
of GUIDs. You'll feel very dirty afterward (assuming you ever get it to work). My advice is to switch to Inno Setup which is much more suited to people like you and me. Leave .msi to people who do "corporate rollouts" instead of "installs".
[ 0.6537327170372009, 0.059639234095811844, 0.35026535391807556, 0.2787136733531952, 0.2770324945449829, -0.37428566813468933, 0.19291308522224426, 0.40592557191848755, 0.01856599561870098, -0.7785612344741821, 0.037170495837926865, 0.7101437449455261, -0.39196351170539856, -0.05948296934366...
I am receiving data representing a time slot from a service as a string in the form of: > 1500-1600 This meaning 3pm to 4pm. I will have a list of these e.g. > 1200-1300 > > > 1300-1400 > > > 1400-1500 and I have to represent this in the UI as > 12pm - 1pm > > > 1pm - 2pm > > > 2pm - 3pm Unfortunately th...
[ 0.5060641765594482, -0.33916521072387695, 0.7114232182502747, 0.008630776777863503, -0.10605265945196152, 0.1846328228712082, 0.04892938956618309, -0.02400677464902401, -0.19821572303771973, -0.6180530786514282, 0.06538619846105576, 0.1868032068014145, 0.16202183067798615, 0.24924346804618...
times in order? At the moment I am feeling I will have to write a custom parsing function but wondering if anyone knows how to do this better? or could advise on how they would achieve this. If you have the four digit strings (1200, 1300) and it will always be four digits (e.g. 9 am is 0900) then you can call the stat...
[ 0.15873593091964722, -0.07626376301050186, 0.6123382449150085, -0.1345473974943161, 0.10624684393405914, 0.16848692297935486, -0.11600322276353836, -0.5013912916183472, -0.4444563686847687, -0.5515683889389038, 0.08590029180049896, 0.6209750771522522, -0.19340947270393372, 0.00541840866208...
a four-digit string because of the ambiguity presented with a time like "121". From there, if you want to output am/pm, etc, etc, you would just call the [`ToString` method](http://msdn.microsoft.com/en-us/library/zdtaw1bw.aspx), passing the following format: ``` string ampm = dt.ToString("htt"); ```
[ 0.3111734390258789, -0.1478022038936615, 0.5464185476303101, -0.03286977857351303, -0.051337357610464096, 0.20323337614536285, 0.06486079096794128, -0.4822205901145935, -0.26649707555770874, -0.0637325793504715, -0.2690165042877197, 0.5533225536346436, -0.3823821544647217, -0.0588884800672...
I'm trying to add content assist to my editor. I've added ``` public IContentAssistant getContentAssistant(ISourceViewer sv) { ContentAssistant ca = new ContentAssistant(); IContentAssistProcessor pr = new TagCompletionProcessor(); ca.setContentAssistProcessor(pr, XMLPartitionScanner.XML_TAG); ca.s...
[ -0.40889111161231995, -0.16547831892967224, 0.873850405216217, 0.033645231276750565, 0.04066776484251022, 0.25266146659851074, 0.3082694709300995, -0.4562891125679016, -0.09361202269792557, -0.6988875269889832, -0.53830486536026, 0.6444305777549744, -0.4684404730796814, -0.1922974437475204...
wordRegion = viewer.getDocument().getDocumentPartitioner().getPartition(offset); try { int offs = wordRegion.getOffset(); int len = wordRegion.getLength(); currentWord = viewer.getDocument().get(offs, len); return tags.getProposals(currentWord.toLowerCase(), offs, len); } catch (...
[ -0.12705352902412415, -0.5398498773574829, 0.8213987946510315, -0.05806742608547211, 0.05705810338258743, 0.03662325441837311, 0.4781757891178131, -0.13742278516292572, -0.28060680627822876, -0.7577376961708069, -0.46428582072257996, 0.5383675694465637, -0.4557673931121826, 0.0455864444375...
return new char[] {'<'}; } @Override public char[] getContextInformationAutoActivationCharacters() { return null; } @Override public IContextInformationValidator getContextInformationValidator() { return null; } @Override public String getErrorMessage() { return "No tags found"; } ``` } ... but it's not ...
[ 0.1797243356704712, -0.004872078076004982, 0.8812426924705505, -0.12360449880361557, -0.10881048440933228, -0.04685914143919945, 0.5618261694908142, -0.44897791743278503, -0.3202383816242218, -0.4360797107219696, -0.019894035533070564, 0.6363278031349182, -0.23132391273975372, 0.1522647291...
method](http://msdn.microsoft.com/en-us/library/w2sa9yss.aspx) on the [`DateTime` structure](http://msdn.microsoft.com/en-us/library/system.datetime.aspx) like so: ``` DateTime dt = DateTime.ParseExact(time, "HHmm", formatInfo); ``` `formatInfo` is an [`IFormatProvider` interface](http://msdn.microsoft.com/en-us/lib...
[ -0.1506158858537674, -0.12315667420625687, 0.7878801822662354, -0.07789341360330582, 0.13350453972816467, -0.013753052800893784, -0.04945690557360649, -0.6546112298965454, -0.17274317145347595, -0.37229660153388977, -0.08864648640155792, 0.49070659279823303, -0.228663831949234, 0.123782321...