text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Yeah, I know this seems like a dumb question, its just a one-off hack I need to wrap up a somewhat mundane task so I can move on to something more interesting. EDIT: Maybe more info would help: I'm trying to remove some shortcuts from the desktop and I need the user to see it removed right away (so they don't have to ...
[ 0.12154516577720642, -0.1800134927034378, 0.7539459466934204, 0.12530459463596344, -0.1766253411769867, 0.039225537329912186, 0.15303762257099152, -0.07211077213287354, -0.248830646276474, -0.5662819147109985, 0.2689727544784546, 0.5277981758117676, -0.15028762817382812, -0.008679727092385...
I currently have some general purpose H1, H2, H3 styles for my site which work great for most 'general' headings where I need a simple 'traditional' header. ``` h1 { /* lots of style attributes */ } h2 { /* lots of style attributes */ } h3 { /* lots of style attributes */ } ``` I am also creating some components ...
[ 0.2475675791501999, -0.0004926625406369567, 0.6308335065841675, 0.4748958647251129, -0.14656402170658112, -0.41207167506217957, 0.12917986512184143, -0.08865305036306381, -0.012338235042989254, -0.5428422689437866, -0.19705592095851898, 0.3913417160511017, -0.1936887502670288, 0.2922785282...
`titledimage` is also an `h1` as defined earlier so it inherits all the styles defined by `h1`. This is generally undesired - I just want `red` and `1px solid blue` for the header in the `.titledImage` div. I was reading and trying to answer [this question about H1 styles](https://stackoverflow.com/questions/503925/is...
[ 0.4324676990509033, -0.2305404096841812, 0.7024096846580505, 0.3678929805755615, -0.6198787093162537, -0.623688817024231, 0.1519232839345932, -0.22248199582099915, -0.126214861869812, -0.4362203776836395, -0.14036232233047485, 0.5553081035614014, -0.3798527419567108, 0.03849762678146362, ...
few attributes that you'd be overriding anyway ``` I've noticed that for styling the [YUI menu control](http://developer.yahoo.com/yui/menu/) they actually use `H6` and I'm wondering if they are doing that to avoid such conflicts. Should I ``` a) be using <h6> like yahoo does? b) reset every attribute defined...
[ 0.26740172505378723, -0.037272702902555466, 0.3247149586677551, 0.3480626940727234, -0.15924273431301117, -0.16972601413726807, 0.12018204480409622, -0.08341668546199799, 0.02000921405851841, -0.44896480441093445, -0.4096822738647461, 0.6128230690956116, -0.014356771484017372, 0.1936081498...
1px solid blue; } ``` To me resetting seems wasteful. There must be a clean way to apply the `/* lots of style attributes */` to the `h1` tags you want it applied to while not having it apply to the `h1` within a `.titledimage`. Say you had: ``` <div class="top"><h1>PageName</h1></div> <div class="leftNavigation"><h...
[ -0.007020356599241495, -0.18462413549423218, 0.5969922542572021, 0.14689472317695618, -0.2553046643733978, -0.03268641233444214, 0.18840046226978302, -0.4374563992023468, -0.1554669886827469, -0.589881956577301, -0.429510235786438, 0.3313769996166229, -0.32994991540908813, -0.1754282861948...
1px solid blue; } ``` Instead of the alternative ``` h1 { /* lots of style attributes */ } h2 { /* lots of style attributes */ } h3 { /* lots of style attributes */ } .titledimage h1, .otherCase h1, .anotherCase h1, yetAnotherCase h1 { /* lots of style backtracking */ } .titledimage h1 { color:red; bottom-border: ...
[ -0.10324127227067947, 0.054028261452913284, 0.709511935710907, 0.3135998845100403, 0.04777592048048973, 0.020599056035280228, 0.08270728588104248, -0.4489668905735016, -0.046621572226285934, -0.5206946134567261, -0.4515141248703003, 0.31584879755973816, -0.0382835678756237, -0.021480996161...
for the resetting that is applied not to the h1 but to the containing div of any class. ``` <div class="titledimage hReset"><h1>title</h1></div> ```
[ -0.004860224202275276, -0.14994695782661438, 0.32894423604011536, 0.015004009939730167, -0.09804759919643402, -0.005596215836703777, 0.203788161277771, -0.3041221499443054, -0.12653426826000214, -0.4980182945728302, -0.5850430130958557, 0.48348134756088257, -0.16184179484844208, 0.28875410...
Got a question. I have images hosted on my server. I already know of the method when an image is uploaded to resize it and save, but I have another thought in mind. 1. I was wondering if there is a way to resize when the image is requested from the user. Not when it was uploaded by the user. So for example a user goe...
[ 0.6233007907867432, -0.2435184121131897, 0.14676208794116974, 0.15174469351768494, -0.12703633308410645, 0.004143750760704279, -0.06826778501272202, -0.02507014572620392, -0.6826671957969666, -0.70186847448349, 0.09384097903966904, 0.29898208379745483, -0.3126773238182068, 0.16657257080078...
image on the fly to display it and display it via the img tag/control. Why would I want to do this? To save on disk space. Most servers have a disk space limit, but not a server processing limit. So I would like to save on disk space and use the processing space instead. **EDIT:** As a startup website its currently ...
[ 0.6713860630989075, -0.08843957632780075, 0.5600451231002808, 0.21144822239875793, -0.16714294254779816, -0.18308624625205994, 0.12105125188827515, 0.5325564742088318, -0.41145867109298706, -0.8381317257881165, 0.04296619072556496, 0.6493592858314514, -0.2038179486989975, 0.212638974189758...
the resized images, so for example the full-sized image might be referenced as `<img src="uploads/myphoto.jpg"/>` the thumbnail could be to an ASPX or ASHX like `<img src="uploads/myphoto.jpg.ashx"/>`? This **[article on CodeProject - Dynamic Image Resize](http://www.codeproject.com/KB/aspnet/ImageResizeWithHttpModule...
[ 0.43913373351097107, -0.1861182451248169, 0.6343398690223694, 0.26976028084754944, -0.27556782960891724, -0.15591146051883698, 0.09910913556814194, 0.008787156082689762, -0.280604749917984, -0.5962273478507996, -0.47504666447639465, 0.5255337953567505, -0.10437177121639252, 0.1369206756353...
same images over-and-over). Although you'll be saving disk-quota, you're effectively slowing down every other page/request... just a thought.
[ 0.2476731240749359, -0.160072460770607, 0.6477037668228149, 0.343005508184433, 0.038555603474378586, 0.10597613453865051, 0.08253538608551025, -0.019013984128832817, -0.6975294351577759, -0.8591433763504028, -0.007080584764480591, 0.7110975980758667, -0.26769521832466125, -0.08021239936351...
I've never done anything with payment gateways, can anybody give me suggestions? Payment gateways differ from country to country and they are agencies who can enable payment processing in your applications. For example. in UK BT has it payment gateway. They call it [BTBuynet](http://www.epayments.bt.com/) . In India I...
[ 0.8457621932029724, -0.11045213788747787, 0.3948013186454773, -0.050621941685676575, -0.0014319801703095436, 0.23277543485164642, 0.025234252214431763, 0.3691554665565491, -0.5592840313911438, -0.7346983551979065, -0.060401227325201035, 0.052870605140924454, 0.08767645061016083, 0.24629038...
the payment gateway. This type has some advantages and disadvantages. Advantages We dont have to worry about validating or storing cards details as everything is taken care by their pay page. Disadvantages Since we redirect the user to a different site the look and feel of the site will be different. 2. **Payment ...
[ 0.28062012791633606, -0.22492840886116028, 0.5986085534095764, 0.1839120239019394, -0.15914639830589294, -0.09984701126813889, -0.09679324179887772, -0.10178257524967194, -0.29951635003089905, -0.7957673072814941, 0.0513404943048954, 0.39581698179244995, -0.04542382434010506, 0.23706975579...
I currently have code that calls `matplotlib.pylab.plot` multiple times to display multiple sets of data on the same screen, and Matplotlib scales each to the global min and max, considering all plots. Is there a way to ask it to scale each plot independently, to the min and max of that particular plot? There's no dire...
[ -0.11836755275726318, -0.11654124408960342, 0.9138514995574951, -0.06589068472385406, -0.36042410135269165, 0.5095767378807068, 0.011402727104723454, -0.4945437014102936, -0.3954288959503174, -0.6177682876586914, 0.6022063493728638, 0.5503999590873718, -0.3093925714492798, 0.24051159620285...
If a servlet implements Single thread model interference ,How servlet container ensure that servlets handle only one request at a time ? Even single thread model interface has no methods too.Thanks. The servlet container creates a pool of servlet instances, and keeps track of which instances are currently "in use". If ...
[ 0.06396721303462982, -0.250590443611145, 0.30418136715888977, 0.4627191722393036, 0.042808257043361664, -0.33724531531333923, 0.24436208605766296, -0.09747520834207535, -0.44913050532341003, -0.6891162991523743, 0.01731136068701744, 0.25464263558387756, -0.5465309619903564, 0.1562019735574...
and allow several requests to be handled simultaneously.
[ 0.1808200180530548, 0.0850665345788002, 0.3314126133918762, 0.21580412983894348, 0.48953497409820557, 0.022063102573156357, -0.2548312842845917, -0.2734164297580719, -0.07837565988302231, -0.5053964853286743, -0.4407995939254761, 0.42562490701675415, 0.14498883485794067, 0.1190723031759262...
My question is about writing a video file to the hard drive that is being downloaded from the network and playing it at the same time using Windows Media Player. The file is pretty big and will take awhile to download. It is necessary to download it rather than just stream it directly to Windows Media Player. What hap...
[ 0.5760253071784973, 0.08656036108732224, 0.10561390966176987, 0.2686484754085541, 0.24907298386096954, -0.27060601115226746, 0.08115215599536896, -0.07488135248422623, -0.13766081631183624, -0.6253557205200195, 0.3154069781303406, 0.7920852899551392, -0.07431057840585709, 0.269607514142990...
to do because Amazon Unbox downloads does it. Unbox lets you play WMVs while it is downloading them. And Unbox is written in .NET so... I've read the "[C# file read/write fileshare doesn’t appear to work](https://stackoverflow.com/questions/124946/c-file-read-write-fileshare-doesnt-appear-to-work)" question and answer...
[ 0.4111437499523163, -0.013310068286955357, 0.44686195254325867, 0.05616958439350128, 0.023103520274162292, -0.2289324402809143, 0.1839834749698639, -0.17907549440860748, -0.3728349804878235, -0.6943267583847046, 0.14732518792152405, 0.7139607667922974, -0.232977956533432, 0.184405490756034...
the download thread void StartStreaming(Stream webStream, int bufferFullByteCount) { int bytesRead; var buffer = new byte[4096]; var fileStream = new FileStream(MediaFile.FullName, FileMode.Create, FileAccess.Write, FileShare.ReadWrite); var writer = new BinaryWriter(fileStream); var totalBytesRead ...
[ -0.1237645149230957, -0.30975353717803955, 0.8497169613838196, -0.21915754675865173, 0.35084542632102966, 0.1386142373085022, 0.236460879445076, 0.20227278769016266, -0.1499614268541336, -0.7022951245307922, -0.41472557187080383, 0.7222874164581299, -0.3065759539604187, 0.43148061633110046...
writer.Flush(); totalBytesRead += bytesRead; } if (totalBytesRead >= bufferFullByteCount) { // fire an event to a different thread to tell // Windows Media Player to start playing
[ -0.1203819140791893, -0.4796053469181061, 0.17746716737747192, -0.1384388655424118, 0.42625221610069275, -0.17549359798431396, 0.3774101436138153, -0.04115675762295723, -0.30919671058654785, -0.5407915115356445, -0.06532023102045059, 0.9257429242134094, -0.31743043661117554, 0.194285750389...
OnBufferingComplete(this, new BufferingCompleteEventArgs(this, MediaFile)); } } while (bytesRead != 0); } ``` This seems to work fine. The file writes to the disk and has the correct permissions. But then heres the event handler in the other thread for playing back the video ``` // the playback thre...
[ 0.20193637907505035, 0.021890345960855484, 0.9197960495948792, -0.13181905448436737, 0.24115745723247528, -0.18524503707885742, 0.05458053946495056, -0.24312736093997955, -0.39284199476242065, -0.4595557749271393, -0.2992972731590271, 0.9366068840026855, -0.269325315952301, 0.3151841759681...
can think of. What am I missing? If the Amazon guys can do this then so can I, right? edit: this code works with mplayer, VLC, and Media Player Classic; just not Windows Media Player or Windows Media Center player. IOW, the only players I need them to work with. ugh! edit2: I went so far as to use MiniHttp to stream ...
[ 0.4166546165943146, -0.04459133371710777, 0.22328868508338928, 0.17432165145874023, -0.374111533164978, -0.34184157848358154, 0.31271642446517944, -0.06843182444572449, -0.5207987427711487, -0.8177400827407837, 0.11331238597631454, 0.6298094987869263, -0.337079793214798, 0.2919019460678100...
How does it know? edit3: After some digging I discovered the problem. I am working with MPEG2 files. The problem is not necessarily with Windows Media Player, but with the Microsoft MPEG2 DirectShow Splitter that WMP uses to open the MPEG2 files that I am trying to play and download at the same time. The Splitter open...
[ 0.1231917068362236, -0.13662947714328766, 0.23772969841957092, 0.10240266472101212, -0.13429805636405945, -0.6165087819099426, 0.07183593511581421, 0.127846822142601, -0.4052090346813202, -0.46479666233062744, -0.010397503152489662, 0.41190505027770996, -0.32150426506996155, 0.569272100925...
this writing) will allow a file to be downloaded and play at the same time as long as that functionality is supported by CODECS involved in rendering the file. To quote from the last edit to the question: After some digging I discovered the problem. I am working with MPEG2 files. The problem is not necessarily with W...
[ 0.18252170085906982, 0.06688956916332245, 0.2792529761791229, 0.10455994307994843, -0.06457271426916122, -0.35024645924568176, 0.0509820431470871, -0.215565025806427, -0.49351879954338074, -0.732557475566864, -0.1284259557723999, 0.6025293469429016, -0.29363876581192017, 0.1884408146142959...
them in shared mode and everything works as expected.
[ 0.4397118389606476, 0.10837088525295258, 0.500218391418457, 0.20797321200370789, -0.07328777760267258, -0.20345962047576904, 0.5215495228767395, 0.1369006335735321, -0.06980521976947784, -0.8290981650352478, -0.1708461344242096, 0.7109295129776001, 0.3435057997703552, -0.08616170287132263,...
I want to find out my Python installation path on Windows. For example: ``` C:\Python25 ``` How can I find where Python is installed? In your Python interpreter, type the following commands: ``` >>> import os >>> import sys >>> os.path.dirname(sys.executable) 'C:\\Python25' ``` Also, you can club all these and us...
[ 0.334328293800354, 0.3589880168437958, 0.22720256447792053, -0.1019284725189209, 0.2354261726140976, -0.20414572954177856, 0.17132896184921265, 0.019443988800048828, 0.01955416612327099, -0.7059239745140076, -0.20486211776733398, 0.8766692280769348, -0.20420683920383453, -0.015080633573234...
Since Google stopped supporting Notebooks, I decided to look for alternatives and so I gave TiddlyWiki + TiddlySnip a shot. However, when trying to install TiddlySnip2.1, I'm getting this error: *"TiddlySnip" will not be installed because it does not provide secure updates* I followed the procedure specified in the s...
[ 0.13273780047893524, -0.19037792086601257, 0.3746584951877594, -0.07402212172746658, -0.029959073290228844, -0.06634756922721863, 0.6020706295967102, 0.5308936834335327, -0.126256063580513, -0.9080934524536133, 0.15963168442249298, 0.4098260700702667, -0.35108691453933716, 0.29557001590728...
anyone have any success with this? Thank you. Eureka! Google has saved me! Their google group has a post on how to shoehorn it into Firefox 3.5.x: <http://groups.google.com/group/tiddlysnip/browse_thread/thread/e5edef97dec18a17/ce49452f6397083a?lnk=gst&q=does+not+provide+secure+updates#ce49452f6397083a>
[ 0.5267329812049866, 0.07365091890096664, 0.37912338972091675, 0.17321622371673584, 0.06953193247318268, -0.20348221063613892, 0.46737170219421387, -0.04303673282265663, -0.2677741050720215, -0.4143780469894409, 0.1477564126253128, 0.3956698477268219, -0.04941544309258461, -0.14120320975780...
I know that performance never is black and white, often one implementation is faster in case X and slower in case Y, etc. but in general - are B-trees faster then AVL or RedBlack-Trees? They are considerably more complex to implement then AVL trees (and maybe even RedBlack-trees?), but are they *faster* (does their com...
[ 0.2798995077610016, 0.1262354999780655, -0.09693478047847748, -0.11557558178901672, -0.2936720848083496, -0.10082308202981949, 0.4382976293563843, 0.11561524122953415, -0.10360820591449738, -0.5865827798843384, -0.10858979821205139, 0.6721522212028503, -0.23732686042785645, -0.120368249714...
I hope I can convince you that my statement is based in fact. > They're totally different in their use cases, so it's not possible to make a comparison. They're both used for maintaining a set of totally ordered items with fast lookup, insertion and deletion. They have the same interface and the same intention. > RB...
[ 0.21862012147903442, 0.11081407964229584, -0.12959091365337372, 0.15169624984264374, -0.1726938784122467, 0.032762736082077026, 0.27159830927848816, -0.16736838221549988, -0.26599767804145813, -0.4315691590309143, -0.2805543839931488, 0.34563881158828735, -0.41767871379852295, 0.1134549453...
you store data on disk, it's slower to access than data in memory. But a red-black tree stored on disk is *also* slower than a red-black tree stored in memory. You're comparing apples and oranges here. What is really interesting is a comparison of in-memory B-trees and in-memory red-black trees. [As an aside: B-trees...
[ -0.15839838981628418, 0.09943552315235138, -0.390560507774353, 0.37557098269462585, -0.12560483813285828, 0.4280657470226288, -0.02393675222992897, 0.24697411060333252, -0.43012845516204834, -0.9987975358963013, -0.1499120146036148, 0.37456175684928894, 0.02206067554652691, 0.1515054553747...
be clear, the size range of B-tree nodes is a parameter of the tree (in C++, you may want to use an integer value as a template parameter). > The management of the B-tree structure can be quite complicated when the data changes. I remember them to be much simpler to understand (and implement) than red-black trees. >...
[ 0.3768545985221863, 0.12618914246559143, 0.006668631453067064, 0.16292326152324677, -0.07579801231622696, -0.20536839962005615, 0.25717270374298096, -0.06407056748867035, -0.5523504018783569, -0.4999186396598816, -0.1974479705095291, 0.6624426245689392, -0.2571823298931122, 0.0644823983311...
say that in-memory RB trees are faster. Got data? > Because the lookup is binary it's very easy to find something. B-tree can have multiple children per node, so on each node you have to scan the node to look for the appropriate child. This is an O(N) operation. The size of each node is a fixed parameter, so even if...
[ -0.029479101300239563, -0.02083742804825306, -0.06438090652227402, -0.0007895990274846554, 0.15830501914024353, 0.34931325912475586, 0.18471765518188477, -0.28273966908454895, -0.23345351219177246, -0.4971083998680115, 0.051716748625040054, 0.30573752522468567, -0.3177139461040497, 0.19582...
comparing apples and oranges. The O(log n) is because the height of the tree is at most O(log n), just as it is for a B-tree. Also, unless you play nasty allocation tricks with the red-black trees, it seems reasonable to conjecture that B-trees have better caching behavior (it accesses an array, not pointers strewn ab...
[ -0.1618543118238449, 0.027023447677493095, -0.04382212832570076, -0.04946903511881828, -0.22456452250480652, 0.4418080151081085, 0.11372304707765579, -0.13552266359329224, -0.43669593334198, -0.9013165831565857, -0.05741577968001366, 0.4411288797855377, -0.28905734419822693, 0.007268873974...
and outperforms it hands down for even moderately large values of n. See <http://idlebox.net/2007/stx-btree/stx-btree-0.8.3/doxygen-html/speedtest.html> B-trees are faster. Why? I conjecture that it's due to memory locality, better caching behavior and less pointer chasing (which are, if not the same things, overlappi...
[ -0.2660982310771942, -0.05778858810663223, 0.2972460091114044, 0.14717547595500946, -0.12710396945476532, 0.010227318853139877, 0.24933962523937225, -0.04904450476169586, -0.5521190166473389, -0.43467438220977783, -0.027076654136180878, 0.20608124136924744, -0.22827693819999695, 0.01863583...
My team has been assigned to build a e-health platform for a customer, and in the design process we have arrived at this dilemma: We have two options for the data model, the [HL7 RIM](http://www.hl7.org/Library/data-model/) (reference information model) and another one that is yet to be designed. Although the RIM has...
[ 0.4424455761909485, 0.13510620594024658, 0.5936424136161804, 0.037683937698602676, 0.40234068036079407, 0.08097190409898758, -0.09376323223114014, 0.01231372356414795, -0.10497395694255829, -0.6856079697608948, 0.29017144441604614, 0.31841909885406494, 0.21136251091957092, 0.03060611709952...
think? Should I follow the HL7-RIM? Or should I think up a simpler model for the requirements of my customer? In any case, the need for interchange of information would require an implementation of the HL7 messaging protocol, so we must develop that part independently of the underlying model. The more flexibility you ...
[ 0.6119934916496277, 0.2750268578529358, 0.583673894405365, -0.23277157545089722, 0.27631884813308716, 0.18795539438724518, 0.13227695226669312, -0.0974729061126709, -0.17589019238948822, -0.6022483706474304, 0.10429824888706207, 0.6457040309906006, 0.04455183818936348, -0.14725786447525024...
of well-defined workflows, the more reason to use a data model that's optimzed for that particular workflow. I agree with John Saunders: make sure your 'optimized data model' can be mapped to the RIM. That should help to 'future proof' your application and to make it easier to support HL7 interfaces.
[ 0.16396331787109375, 0.18117761611938477, 0.15449781715869904, 0.1347762942314148, 0.26426225900650024, -0.18172618746757507, -0.038934435695409775, -0.14110706746578217, -0.26986801624298096, -0.6437833309173584, -0.006448972038924694, 0.6251277923583984, 0.0058960700407624245, -0.3243762...
I am trying to get flickr images to work in Drupal, any idea how to do this? You can use [FlickrGallery](http://drupal.org/project/flickrgallery) module which is available for Drupal 6 as well as Drupal 7 to get all your images from your account.
[ 0.8204038143157959, -0.18366897106170654, 0.5257867574691772, 0.284060001373291, -0.38383322954177856, -0.1725219339132309, 0.1639387011528015, 0.38318344950675964, -0.29679879546165466, -0.5331014394760132, 0.13873045146465302, 0.5253526568412781, -0.28666505217552185, 0.12195006012916565...
Is there any way to implement text editing macros in SSMS? I would, e.g. like to convert the the code as shown below, but with a key-press, not a long-winded regex search and replace. This: ``` INSERT INTO [TABLE] ([fieldOne] ,[fieldTwo]) VALUES (<fieldOne, datetime,> ...
[ -0.07410398870706558, -0.025013646110892296, 0.5700049996376038, -0.1646634042263031, 0.410737544298172, -0.00655726483091712, 0.07188344746828079, 0.006831347942352295, -0.16108766198158264, -0.6958039999008179, -0.30990952253341675, 0.605197548866272, -0.3530449867248535, -0.222558900713...
([fieldOne] ,[fieldTwo]) VALUES (@fieldOne ,@fieldTwo) ``` I know SSMS doesn't natively support this, but I also know that it is extensible, if undocumented, and there is also room for a totally external application that will take copied text, transform it, and paste it back, wit...
[ 0.30561280250549316, 0.009465514682233334, 0.07513013482093811, -0.08510096371173859, 0.16356362402439117, -0.3222968280315399, 0.5066449046134949, -0.03180301934480667, -0.21233360469341278, -0.6882116794586182, -0.33212345838546753, 0.6504116058349609, -0.3409809172153473, 0.032795593142...
templates are dynamically generated, and using Ctrl+Shift+M is not an option either, as I still have to type each parameter name, but without the convenience of copying and pasting in the query editor. There is no SSMS solution! I am looking for some sort of external voodoo that can help me do this. What about an [Aut...
[ 0.6647529602050781, -0.1920320987701416, 0.2356858253479004, 0.13962773978710175, -0.1377604752779007, 0.10326000303030014, 0.22193771600723267, -0.13646210730075836, -0.30714505910873413, -0.6683396697044373, 0.1957629919052124, 0.8554616570472717, -0.5067973136901855, 0.03784684836864471...
tried the second. [This question](https://stackoverflow.com/questions/200587/how-can-i-mimic-visual-studios-ctrl-k-c-two-step-macro-behaviour-using-autoit) gives an indication of how an AutoHotKey script can be written to listen for keyboard chords.
[ 0.0024601721670478582, -0.38266751170158386, 0.17603540420532227, -0.2538348138332367, -0.29834726452827454, 0.18376979231834412, 0.3259231448173523, -0.1678541898727417, -0.17920775711536407, -0.3749885857105255, 0.15240849554538727, 0.881919801235199, -0.22569337487220764, -0.66489267349...
I had worked in the IDE of Adobe Flex Builder for quite a while. Is there a simple equivalent to VBox (Flex) in ASP.NET? **ASP .NET 2.0:** ``` C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir ``` **ASP .NET 4.0:** ``` C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir ``` Run C...
[ 0.36129030585289, -0.050502244383096695, 0.5137074589729309, -0.1488002985715866, -0.10265786945819855, -0.17298874258995056, 0.19826336205005646, -0.2943825423717499, -0.28370967507362366, -1.096793293952942, -0.12525801360607147, 0.7097579836845398, -0.06923338025808334, 0.05827512592077...
Can anyone tell me about using (Steel Bank) Common Lisp for writing GUIs via system calls? I know there are some libraries out there but this is a language learning exercise, so I want to do it myself. I'm developing on Kubuntu 8.10 and SBCL 1.0.18. Thanks. You can take a closer look at the [sb-posix-package](http://...
[ 0.15530799329280853, 0.1182132437825203, 0.15770335495471954, -0.08071593940258026, -0.14625141024589539, -0.40872976183891296, 0.26283565163612366, 0.021759748458862305, -0.01931537128984928, -0.6564210057258606, -0.14168903231620789, 0.7910547852516174, -0.3309473395347595, -0.4613904058...
create a windowed GUI, you must use X11, at least to give you a Window to paint on. Therefore, you must know the X11-Specifications to create a window, and implement the Syscalls for accessing Unix Domain Sockets, or initiating shm-devices etc. If you just want graphics on a console, you could think of using the frame...
[ 0.2913798987865448, -0.11457937210798264, 0.5050017833709717, 0.11250194907188416, -0.22717714309692383, -0.07357344776391983, -0.0976870059967041, 0.11124736070632935, -0.14883552491664886, -0.8902885913848877, 0.027734817937016487, 0.7202335596084595, -0.3713627755641937, -0.347480803728...
or something similar to see how to initialize it, etc. Is this really what you want to do? This is a lot of work, you will learn a lot, but more about the linux system infrastructure, rather than about SBCL, I think. If you want to use Syscalls under SBCL, maybe its better to try to open TCP-Sockets only with Linux-Sy...
[ 0.6242586970329285, 0.05092364922165871, 0.08229552954435349, 0.19288723170757294, -0.027070969343185425, -0.546223521232605, 0.01735217496752739, -0.05197639390826225, -0.20010250806808472, -0.4382646679878235, -0.01929427683353424, 0.5013270974159241, -0.16937074065208435, 0.045284710824...
I'm trying to call a C# method from JavaScript by using `ActiveXObject`: ``` var myobj = new ActiveXObject('myobject'); var arr = myobj.GetArray(); ``` Eventually, `arr` will contain a `SAFEARRAY` object, but not `JScript` array. Is there any way to return native JavaScript object from a C# method? I found the solut...
[ -0.1524650901556015, 0.16709378361701965, 0.514029860496521, -0.41332802176475525, -0.010309304110705853, 0.07447502017021179, 0.3067202568054199, -0.28965169191360474, -0.22394174337387085, -0.45967063307762146, -0.2542911469936371, 0.7354731559753418, -0.45921987295150757, -0.12918089330...
Since many of the Project Euler problems require you to do a divisibility check for quite a number of times, I've been trying to figure out the fastest way to perform this task in [ZX81](http://en.wikipedia.org/wiki/ZX81) BASIC. So far I've compared `(N/D)` to `INT(N/D)` to check, whether `N` is dividable by `D` or no...
[ 0.1106327623128891, -0.16120260953903198, -0.10792196542024612, -0.10540184378623962, -0.26781409978866577, -0.11054234951734543, 0.17140157520771027, -0.42306777834892273, -0.08366430550813675, -0.5620266199111938, 0.06320592015981674, 0.45768314599990845, -0.3496093153953552, 0.001625588...
used to call routines in assembly. To pass arguments you might need to use POKE to set some fixed memory locations before executing RANDOMIZE USR. I remember to find a list of routines implemented in the ROM to support the ZX Basic. I'm sure there are a few to perform floating operation. An alternative to floating po...
[ 0.3213503956794739, 0.016848033294081688, -0.2083951085805893, -0.11739742010831833, -0.26780107617378235, 0.22272247076034546, 0.024452660232782364, -0.12807241082191467, -0.42606455087661743, -0.14482691884040833, 0.3366762101650238, 0.5413340926170349, -0.34403130412101746, -0.003441486...
When we convert a float to integer in visual basic 6.0, how does it round off the fractional part? I am talkin about the automatic type conversion. If we assign like ``` Dim i as Integer i=5.5 msgbox i ``` What will it print? 5 or 6 ?? I was getting "5" a couple of months before. One day it started giving me 6! A...
[ 0.2697445750236511, 0.1450587511062622, 0.5761497020721436, -0.21895824372768402, -0.27514979243278503, 0.1383756846189499, 0.15986426174640656, -0.06411910057067871, -0.02027597650885582, -0.37372735142707825, 0.06324132531881332, 0.6220788359642029, -0.28469419479370117, -0.0647515356540...
something like floor(x + 0.49); Part of this is in the VB6 help: topic *Type Conversion Functions*. Unfortunately it's one of the topics that's not in the [VB6 documentation](http://msdn.microsoft.com/en-us/library/aa314411%28VS.60%29.aspx) on the MSDN website, but if you've installed the help with VB6, it will be ther...
[ -0.2136024385690689, -0.08148568868637085, 0.4654638171195984, 0.11098933964967728, -0.13279227912425995, -0.08225887268781662, 0.15808044373989105, -0.18865308165550232, -0.504899263381958, -0.6318104863166809, -0.1846350133419037, 0.1307307332754135, 0.05167700722813606, -0.0592426434159...
a value of the same type as is passed in. Implicit type coercion - a.k.a. ["evil type coercion (PDF)"](http://vb.mvps.org/articles/pt199511.pdf) - from a floating point number to a whole number uses the same rounding rules as **CInt** and **CLng**. This behaviour doesn't seem to be documented anywhere in the manual. ...
[ -0.16079957783222198, 0.0637783631682396, 0.345309853553772, -0.2532297372817993, -0.20792564749717712, 0.2064540535211563, 0.08680650591850281, -0.3808179497718811, -0.36684536933898926, -0.038581375032663345, 0.062020193785429, 0.3107694387435913, -0.2781820297241211, 0.3191794157028198,...
now it works. Public Function RoundNumber(ByVal value As Currency, Optional PlacesAfterDecimal As Integer = 0) As Currency Dim nMultiplier As Long nMultiplier = 10 ^ PlacesAfterDecimal RoundNumber = Fix(0.5 * Sgn(value) + value * nMultiplier) / CDbl(nMultiplier) End Function ``` Sample output: ``` Debug.Print...
[ -0.2988881766796112, 0.16622129082679749, 0.8868252635002136, -0.3844406306743622, 0.10920532047748566, 0.1350409835577011, 0.05208585783839226, -0.23392371833324432, -0.2169254869222641, -0.32944318652153015, -0.2834585905075073, 0.55111163854599, -0.19325338304042816, 0.01460373029112815...
I have a server that's written in C, and I want to write a client in python. The python client will send a string "send some\_file" when it wants to send a file, followed by the file's contents, and the string "end some\_file". Here is my client code : ``` file = sys.argv[1] host = sys.argv[2] port = int(sys.argv[3])...
[ 0.15435495972633362, 0.16652242839336395, 0.6008235216140747, -0.4165601432323456, -0.27399390935897827, -0.018289905041456223, 0.20256008207798004, 0.02088339626789093, -0.123580701649189, -0.8366611003875732, -0.03959951549768448, 0.43109652400016785, -0.34379929304122925, 0.365886777639...
buffer's size is 4096. I first noticed this bug when trying to send a file that's less than 4096k. How can I make sure that the server receives the strings independently? With socket programming, even if you do 2 independent sends, it doesn't mean that the other side will receive them as 2 independent recvs. One simpl...
[ 0.07575888931751251, -0.2524655759334564, 0.4419342279434204, -0.15247346460819244, -0.3831862807273865, 0.22231900691986084, -0.05821605771780014, -0.22699227929115295, -0.6096463799476624, -0.6319011449813843, 0.19726523756980896, 0.03314797207713127, -0.23274125158786774, 0.309756487607...
the number of bytes in the following send * Send the actual data **Receiver side:** * From the receiver side do a loop that blocks on a read for 4 bytes * Then do a block on a read for the number of characters specified in the preceding 4 bytes to get the data. Along with the 4-byte length header I mentioned above, ...
[ 0.36772164702415466, -0.41991424560546875, 0.44054657220840454, 0.25696006417274475, -0.3058701455593109, 0.06155781075358391, 0.1711035519838333, -0.12258129566907883, -0.3361831307411194, -0.46924781799316406, 0.007417930755764246, 0.45269203186035156, 0.058960750699043274, -0.0389725491...
I am looking for experience/tools to improve refactoring techniques using VS Studio 2005/2008. Currently I only use standard refactor menu choices: Rename... Extract Method... Encapsulate Field... [alt text http://img208.imageshack.us/img208/5852/vsrefactor.gif](http://img208.imageshack.us/img208/5852/vs...
[ 0.012151453644037247, -0.01902875304222107, 0.5234013199806213, 0.027716925367712975, -0.009564158506691456, 0.05819186940789223, 0.153606578707695, -0.31625896692276, 0.03736679628491402, -0.6009777188301086, 0.05149585008621216, 0.7621472477912903, -0.16625288128852844, -0.08965286612510...
and never have to add files to the project by hand.
[ 0.42404502630233765, 0.421121746301651, -0.033535756170749664, 0.12713493406772614, -0.0057060010731220245, -0.2617475390434265, 0.007092073559761047, 0.13132508099079132, -0.08535420894622803, -0.3123367130756378, -0.10295234620571136, 0.3721669912338257, 0.3856225311756134, -0.2502664029...
I know about `unittest` Python module. I know about `assertRaises()` method of `TestCase` class. I would like to write a test that succeeds when an exception is **not** raised. Any hints please? The test runner will catch all exceptions you didn't assert would be raised. Thus: ``` doStuff() self.assert_(True) ``` ...
[ 0.23647217452526093, 0.09809775650501251, -0.04257424175739288, -0.08066911995410919, -0.1832418441772461, -0.19732052087783813, 0.569617509841919, -0.16425317525863647, 0.06844703108072281, -0.5345957279205322, 0.04074835032224655, 1.003910779953003, 0.08425988256931305, -0.01331175398081...
I have an XML file where the number are comma-separated ``` <foo> <bar val="1,23"/> <bar val="4,56"/> <bar val="7,89"/> </foo> ``` I would like to make a sum over `/foo/bar/@val` values in XSLT, but I am a bit stuck the formatting. Does anyone knows what would be the proper syntax? I am guessing, that the valu...
[ 0.05964256450533867, 0.23894855380058289, 0.6108533143997192, -0.21855659782886505, -0.2877304255962372, 0.105745829641819, 0.040976397693157196, -0.5626834034919739, -0.25376737117767334, -0.5356258749961853, -0.01561727374792099, 0.5484292507171631, -0.10512328892946243, 0.25210535526275...
--> <xsl:template match="foo"> <xsl:variable name="vrtfBars"> <xsl:for-each select="bar"> <bar val="{translate(@val, ',', '.')}"/> </xsl:for-each> </xsl:variable> <!--
[ 0.03711768239736557, -0.05167866125702858, 0.6884785294532776, -0.13981693983078003, -0.1450614184141159, 0.052590787410736084, 0.13639019429683685, -0.4867848753929138, 0.2482300102710724, -0.341229110956192, -0.45883190631866455, 0.7775282859802246, -0.48804378509521484, -0.0164981093257...
--> <xsl:value-of select= "sum(ext:node-set($vrtfBars)/*/@val)"/> </xsl:template> </xsl:stylesheet> ``` **when applied on the originally-provided XML document**: ``` <foo> <bar val="1,23"/> <bar val="4,56"/> <bar val="7,89"/> </foo> ``` **produces the wanted result**: ``` 13.68 ``` ...
[ -0.0992899239063263, 0.0070200697518885136, 0.8400423526763916, -0.2823895514011383, -0.1766536682844162, 0.25415095686912537, -0.019375024363398552, -0.972701370716095, -0.0710957795381546, -0.5467985272407532, -0.3499947786331177, 0.5592662692070007, -0.3086082339286804, -0.0244569890201...
--> <xsl:template match="foo"> <xsl:sequence select= "sum(bar/@val/number(translate(., ',', '.')))" /> </xsl:template> </xsl:stylesheet> ``` **when applied on the same XML document, produces the same correct result**: 13.68 **III. [FXSL 2.x](http://fxsl.sf.net)** **This transformation**: ``` <xsl:style...
[ 0.08560726046562195, -0.1115097925066948, 0.765178382396698, -0.26709020137786865, -0.446469783782959, 0.11177783459424973, 0.1099952980875969, -0.9350200891494751, -0.10777604579925537, -0.4776761829853058, -0.29426613450050354, 0.5767114758491516, -0.3756985366344452, -0.2159571796655655...
method="text"/> <!-- --> <xsl:template match="foo"> <xsl:sequence select= "sum( f:transform-and-sum(my:makeNum(), bar/@val ) )" /> </xsl:template> <!--
[ -0.13827307522296906, -0.2386842668056488, 0.4042758345603943, -0.17245860397815704, -0.025480614975094795, 0.15501399338245392, 0.2202014923095703, -1.0295332670211792, 0.284627228975296, -0.07229479402303696, -0.1429285854101181, 0.382025808095932, -0.4048900604248047, -0.100932918488979...
--> <xsl:function name="my:makeNum" as="xs:double"> <xsl:param name="psNum" as="xs:string"/> <!-- --> <xsl:sequence select="number(translate($psNum, ',', '.'))"/> </xsl:function> <!--
[ -0.08009577542543411, -0.058300137519836426, 0.3915058672428131, -0.2985657751560211, -0.1975526660680771, 0.24457554519176483, 0.1697000116109848, -0.6523358225822449, -0.16958817839622498, -0.08900076150894165, -0.6623280644416809, 0.3796948790550232, -0.32776153087615967, -0.12436113506...
--> <xsl:function name="my:makeNum" as="element()"> <my:makeNum/> </xsl:function> <!-- --> <xsl:template match="my:makeNum" as="xs:double" mode="f:FXSL"> <xsl:param name="arg1" as="xs:string"/> <!--
[ 0.05297081544995308, -0.21087287366390228, 0.36416077613830566, -0.252147376537323, -0.24328117072582245, 0.20773525536060333, 0.18627382814884186, -0.8889492750167847, -0.1346341371536255, -0.12543946504592896, -0.35124021768569946, 0.6190842390060425, -0.48242098093032837, -0.21670036017...
--> <xsl:sequence select="my:makeNum($arg1)"/> </xsl:template> </xsl:stylesheet> ``` **when applied on the same XML document produces the same correct result**: 13.68 **The last solution is more flexible** and can be used successfully when a more complex transformation of the values is needed before summing.
[ 0.09134843200445175, -0.09011109173297882, 0.48877784609794617, -0.19597308337688446, -0.004098063800483942, 0.05364774912595749, -0.005282922647893429, -0.6529744267463684, 0.043203335255384445, -0.5931474566459656, -0.26873186230659485, 0.4968550503253937, -0.17129746079444885, -0.173929...
I have an application which is used internally and uses WCF for communication between client and server portions, however it will soon need deploying to sites where server names are different. The WCF services are hosted as a Windows service using the netTcp binding. At the moment, the addresses of the services are spe...
[ 0.6552844047546387, 0.2393454611301422, 0.7015291452407837, -0.22148877382278442, -0.1394946128129959, -0.237085223197937, -0.02871910110116005, -0.045962143689394, -0.0240717064589262, -1.0270744562149048, -0.1392027884721756, 0.2776558995246887, -0.12469357997179031, 0.4042801558971405, ...
"CustomerService", is it possible for two separate users in different places to specify the addresses: ``` net-tcp://myserver1/ ``` and ``` net-tcp://anotherserver/ ``` and have the service reference convert these as necessary into ``` net-tcp://myserver1/CustomerService ``` and ``` net-tcp://anotherserver/Cu...
[ -0.1654355376958847, 0.08339113742113113, 0.8274351358413696, -0.21733570098876953, -0.02112552337348461, 0.16488011181354523, 0.0327327661216259, 0.05748471990227699, -0.3070763051509857, -0.6839155554771423, -0.18101859092712402, 0.32649844884872437, -0.11573264002799988, 0.2700937986373...
I want to ensure certain input into my webapp contains only characters that can represented as ascii (it's for tagging and I'm trying to save space in the database column by using varchar instead of nvarchar) Is there a framework feature to do this in .net or should I check the character codes one by one to ensure the...
[ 0.3836255371570587, -0.08112067729234695, 0.3427712619304657, -0.29499325156211853, 0.21537216007709503, -0.14817899465560913, 0.3485948145389557, -0.03846731781959534, -0.05032725632190704, -0.3428545296192169, -0.04111727327108383, 0.7361631989479065, -0.5848710536956787, 0.1281780749559...
current < value.Length; current++) { if ((int)value[current] > 127) return false; } return true; } ``` Given that you're using an extension method, you're presumably using C# 3 and .NET 3.5. In that case I'd use: ``` using System.Linq; ... public static bool IsPrinta...
[ 0.05267680808901787, -0.11113844811916351, 0.6122127175331116, -0.1899590939283371, 0.44554972648620605, -0.08291669189929962, 0.17760398983955383, -0.41318824887275696, -0.21518082916736603, 0.02034553699195385, -0.19482192397117615, 0.5933486819267273, -0.34590569138526917, 0.40624096989...
check that every character is in the range [U+0020-U+007E] which only contains printable characters. Is that what you're after? As other comments have said, that will exclude everything with accents etc - are you sure that's okay? This also rejects carriage return, linefeed and tab. Again, is that all right?
[ 0.16182594001293182, -0.03384676203131676, 0.42855051159858704, -0.06997375935316086, -0.05540597811341286, 0.10851456224918365, 0.3873216509819031, -0.03978024050593376, -0.18427930772304535, -0.3821124732494354, -0.2801037132740021, 0.5390726327896118, -0.2743089199066162, -0.19527146220...
I'm writing a spec for my Rails controller, this is the action I'm testing: ``` def create @course = Course.new(params[:course]) if @course.save then #flash[:notice] = 'Course Created' redirect_to courses_path else render :action => 'new', :status => 400 end end ``` And this is the spec that vali...
[ 0.21718353033065796, 0.03907761722803116, 0.6601626873016357, 0.05376650020480156, 0.14343677461147308, -0.222665935754776, 0.29791581630706787, -0.502827525138855, -0.06904485076665878, -0.45347854495048523, -0.055638283491134644, 0.6728063225746155, 0.03693210333585739, -0.08354341983795...
POST /courses [Good > Input] > > > should redirect to Courses > index page after creation' **FAILED** > expected redirect to "/courses", got > no redirect Any ideas why this happens? **SOLVED** as **rishavrastogi** stated, *should be\_success* expects a http code on the 2xx range, and a redirect falls into the 3...
[ 0.13116592168807983, 0.08774414658546448, 0.852214515209198, -0.17479686439037323, -0.1751842498779297, 0.07138378918170929, 0.4863223433494568, -0.23963512480258942, 0.016583094373345375, -0.4180009067058563, -0.28550833463668823, 0.5096041560173035, 0.08571451902389526, 0.201522633433341...
response is actually a "HTTP redirect" not "HTTP success" ... so try removing response.should be\_success Also change ``` post :create ``` to ``` post :create, :course => {} ```
[ -0.1348496973514557, -0.23096223175525665, 0.5616199970245361, 0.07112400233745575, -0.18887284398078918, 0.11785223335027695, 0.41250261664390564, -0.16835390031337738, -0.14575955271720886, -0.6792086362838745, -0.3054612874984741, 0.5228649377822876, -0.21278783679008484, 0.058852050453...
I have constructed a frameset which is meant to center a webpage in the middle of the browser window. ``` <html> <frameset rows="100%,567px,100%" border="0"> <frame src="blank.html" noresize="noresize" scrolling="yes"> <frameset cols="100%,1128px,100%" border="0"> <frame src="blank.ht...
[ -0.19239605963230133, 0.02649414911866188, 0.9193341135978699, -0.053032878786325455, -0.15036574006080627, 0.2158178985118866, -0.03160775825381279, -0.2802152633666992, -0.16496053338050842, -1.0098907947540283, -0.02378479763865471, 0.05376831442117691, -0.17051230370998383, 0.294697314...
<frame src="blank.html" noresize="noresize" scrolling="yes"> <noframes> <body>Page requires a frame-supporting browser.</body> </noframes> </frameset> </html> ``` Blank is an empty html document. This works brilliantly in both Firefox and IE6, but in IE8 it simply shows a white page...
[ 0.08516328036785126, 0.06252974271774292, 0.6441776156425476, 0.02228022739291191, -0.19150662422180176, -0.15046600997447968, 0.25650733709335327, -0.34467780590057373, -0.36702674627304077, -0.8651638031005859, 0.09633944928646088, 0.3350839912891388, -0.3576287031173706, 0.1473593264818...
bits excluded. I've tried your solution, but it still doesn't center vertically. ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=i...
[ -0.12077745795249939, -0.20662514865398407, 0.6970314979553223, 0.09097787737846375, -0.2322060465812683, 0.07499236613512039, -0.12898391485214233, -0.6176878809928894, -0.21159593760967255, -0.30129918456077576, -0.3275790512561798, 0.40226098895072937, -0.008538112975656986, 0.107803143...
z-index:2; left: 13px; top: 101px; overflow: visible; } #imgInteraction { } #iframeInteraction { display: none; } --> </style> </head> <body> <div id="divInteraction"> <iframe id="iframeInteraction" width="100%" height="100%" ></iframe> <img id="imgInteraction" src="powerpoint_pic_0.jpg" /> </div>...
[ -0.4556199610233307, 0.1452775001525879, 0.7993509769439697, 0.10500127822160721, -0.2666007876396179, 0.2782863676548004, 0.13535840809345245, -0.6957002282142639, -0.2987751066684723, -0.5260255932807922, -0.1892179548740387, 0.37397658824920654, -0.06920638680458069, 0.15437328815460205...
<param name="ShowAudioControls" value="1" /> <param name="ShowPositionControls" value="0" /> <param name="ShowTracker" value="1" /> <param name="ShowDisplay" value="0" /> <param name="ShowCaptioning" value="0" /> <param name="ShowGoToBar" value="0" /> <param name="Control...
[ -0.21195125579833984, 0.00037327941390685737, 0.6565291285514832, 0.20672470331192017, -0.400758296251297, 0.02554742433130741, 0.1571340560913086, -0.567771852016449, -0.06151878088712692, -0.21346883475780487, 0.009947340935468674, 0.26602956652641296, -0.24062249064445496, 0.06254081428...
<param name="AnimationAtStart" value="0" /> <param name="TransparentAtStart" value="0" /> <param name="SendStateChangeEv" value="1" /> <param name="SendOpenChangeEv" value="1" /> <param name="SendPlayChangeEv" value="1" /> <param name="AllowChangeCtrlType" value="1" /> <p...
[ -0.18949489295482635, -0.23927243053913116, 0.834068775177002, 0.16711902618408203, -0.35451892018318176, 0.14211827516555786, 0.07672490179538727, -0.5174972414970398, -0.35230767726898193, -0.5243334174156189, -0.2435591071844101, 0.3889769911766052, -0.26909658312797546, -0.249202817678...
<param name="PlayCount" value="1" /> <param name="Volume" value="0" /> <param name="Filename" value="http://www.example.com/example/example.wmv"/> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" name="Player1NS" AutoSize="fal...
[ -0.15576009452342987, -0.04663451388478279, 0.7053129076957703, 0.04573383927345276, -0.5031843781471252, 0.20533646643161774, 0.027397342026233673, -0.6952376365661621, -0.592948853969574, -0.27730825543403625, -0.2508475184440613, 0.4589049220085144, -0.264363557100296, 0.080516651272773...
ShowAudioControls="1" ShowPositionControls="0" width="424" height="284"> <br /> </embed> </object> </div> </body> </html> ``` No need for a frameset. The code below will center a div in the page. The horizontal centering is done by setting the left and right margins to auto. The vertica...
[ 0.08435731381177902, -0.05185547098517418, 1.1241683959960938, -0.10585843026638031, -0.39449194073677063, -0.03125588223338127, -0.04633945971727371, -0.546586275100708, -0.1032678484916687, -0.6260882616043091, -0.05584028363227844, 0.30212512612342834, -0.1344340443611145, -0.1144010648...
the height of the `html` and `body` elements to 100%, otherwise they will only be as high as the content. The div has `position:relative` which also takes care of your problem with absolutely positioned elements inside it. The div becomes a layer, which means that any absolutely positioned element inside it will use t...
[ -0.0725952759385109, -0.14323845505714417, 0.8813333511352539, 0.028656572103500366, 0.19850388169288635, -0.12873990833759308, -0.018766416236758232, -0.5317330360412598, 0.2011435627937317, -0.612794816493988, -0.262861967086792, 0.3119705319404602, -0.0876932367682457, -0.13777203857898...
xmlns="http://data.w3.org/1999/xhtml"> <head> <title>Center</title> <style type="text/css"> html { height: 100%; } body { margin: 0; padding: 0; height: 100%; } .Content { width: 1128px; height: 567px; margin: -283px auto 0; position: relative; top: 50%; border: 1px solid #000; } </style> </head> <body> <div ...
[ -0.3711989223957062, 0.08850648254156113, 0.9428715705871582, 0.08533168584108353, -0.5178040266036987, -0.0065648299641907215, -0.28588852286338806, -0.45245444774627686, -0.30814263224601746, -0.4715075194835663, -0.469889372587204, 0.2823179364204407, 0.09372110664844513, -0.04729958623...
position:absolute; width:640px; height:480px; z-index:1; left: 460px; top: 47px; overflow: hidden; } #divVideo { position:absolute; width:424px; height:284px; z-index:2; left: 13px;
[ -0.5417336225509644, -0.26144498586654663, 0.6736400723457336, 0.017918245866894722, 0.17799556255340576, -0.12218226492404938, 0.1397124081850052, -0.030684659257531166, 0.09599621593952179, -0.36582762002944946, -0.6423152685165405, 0.8276341557502747, -0.06142359599471092, 0.18516126275...
top: 101px; overflow: visible; } #imgInteraction { } #iframeInteraction { display: none; } </style> </head> <body> <div class="Content"> <div id="divInteraction"> <iframe id="iframeInteraction" width="100%" height="100%" ></iframe> <img id="imgInteraction" src="powerpoint_pic_0.jpg" /> </div>...
[ -0.6051624417304993, -0.051611993461847305, 0.9292115569114685, 0.11645997315645218, -0.30871838331222534, 0.1214727833867073, 0.1976999193429947, -0.5820162296295166, -0.2938745319843292, -0.4243178069591522, -0.28121665120124817, 0.2713470160961151, -0.07397399842739105, -0.1530197113752...
<param name="DefaultFrame" value="x" /> <param name="ShowControls" value="1" /> <param name="ShowAudioControls" value="1" /> <param name="ShowPositionControls" value="0" /> <param name="ShowTracker" value="1" />
[ -0.05205698311328888, 0.060614414513111115, 0.6443057060241699, 0.035960860550403595, -0.4907851815223694, 0.07511988282203674, 0.057366855442523956, -0.5769484639167786, -0.229384645819664, -0.28433549404144287, -0.14325575530529022, 0.03704409673810005, -0.2686832547187805, 0.14169727265...
<param name="ShowDisplay" value="0" /> <param name="ShowCaptioning" value="0" /> <param name="ShowGoToBar" value="0" /> <param name="ControlType" value="2" /> <param name="Autostart" value="1" />
[ -0.15675728023052216, -0.07708802819252014, 0.613513171672821, 0.32371610403060913, -0.24097885191440582, 0.09631422162055969, 0.22732432186603546, -0.3129051923751831, -0.042921554297208786, -0.10857892781496048, 0.041070450097322464, 0.4071081876754761, -0.3123244643211365, -0.0523877032...
<param name="InvokeUrls" value="1" /> <param name="AnimationAtStart" value="0" /> <param name="TransparentAtStart" value="0" /> <param name="SendStateChangeEv" value="1" /> <param name="SendOpenChangeEv" value="1" /> <param name="SendPlayCh...
[ -0.25885576009750366, -0.37068480253219604, 0.7207678556442261, 0.04677746817469597, -0.4327787160873413, 0.3256581127643585, 0.02974538318812847, -0.1684422492980957, -0.4941958487033844, -0.45004671812057495, -0.28522977232933044, 0.31917983293533325, -0.2947145998477936, -0.056457351893...
value="1" /> <param name="AllowChangeCtrlType" value="1" /> <param name="AllowChangeDisplaySize" value="1" /> <param name="AllowScan" value="1" /> <param name="AutoRewind" value="1" /> <param name="PlayCount" value="1" />
[ -0.11248514801263809, -0.31827327609062195, 0.7220879793167114, 0.29792520403862, 0.06389574706554413, -0.30638331174850464, -0.024910589680075645, -0.7473770976066589, -0.19034820795059204, -0.5313296318054199, -0.2131199836730957, 0.539993405342102, -0.41512173414230347, -0.3739449381828...
<param name="Volume" value="0" /> <param name="Filename" value="http://www.xxx.com/xxx/xxx.wmv"/> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" name="Player1NS" AutoSize="false" ShowStatusBar="0"...
[ -0.1772947758436203, -0.15166227519512177, 0.7671261429786682, 0.03877032548189163, -0.24593622982501984, 0.029665246605873108, 0.04435679689049721, -0.5747502446174622, -0.5943410396575928, -0.3630802035331726, -0.2247844636440277, 0.5218923091888428, -0.3945590555667877, 0.14813573658466...
ShowTracker="1" ShowDisplay="0" ShowCaptioning="0" ShowGoToBar="0" Autostart="1" AnimationAtStart="0" TransparentAtStart="0" PlayCount="1" Volume="0" Filename="http://www.xxx.com/xxx/xxx.wmv" ShowAudioControls="1" ShowPositionContro...
[ -0.17157962918281555, -0.005132423713803291, 0.6002779603004456, 0.14493918418884277, -0.41520825028419495, -0.13058356940746307, 0.06641606241464615, -0.16617096960544586, -0.29543745517730713, -0.35316476225852966, -0.2628619372844696, 0.3539220094680786, -0.2765748202800751, 0.018033472...
width="424" height="284"> <br /> </embed> </object> </div> </div> </body> </html> ```
[ 0.15740109980106354, -0.04980197176337242, 0.5468130111694336, -0.26666420698165894, -0.3748921751976013, 0.31989437341690063, 0.2549189329147339, -0.2982364892959595, -0.3598325550556183, -0.47565123438835144, 0.06919965893030167, 0.33081671595573425, 0.2754324674606323, 0.236213296651840...
I'm trying to call a stored procedure with an output parameter from F#, so I need to pass an `int?` value initialized to `null`. However, F# is resisting my attempts, saying that the object cannot be null. I've read up on the web as to why that is but my problem remains - I need to call that stored procedure. Has anyon...
[ 0.1274033933877945, 0.1605420708656311, -0.001767869689501822, -0.001150869531556964, -0.2929379940032959, -0.05486208200454712, 0.4575377404689789, 0.21087677776813507, -0.2277296781539917, -0.5866495370864868, -0.06889527291059494, 0.5553468465805054, -0.2007875144481659, 0.3336952924728...
is the equivalent of passing null in C#/VB. ``` myStoredProc (new System.Nullable<int>()) ```
[ -0.09941376000642776, 0.03336266428232193, 0.19438698887825012, -0.11270684748888016, 0.16522015631198883, -0.34094616770744324, 0.5208142995834351, 0.3390340209007263, -0.04530114307999611, -0.4725758731365204, -0.43895184993743896, 0.41651344299316406, -0.5571394562721252, 0.278319478034...
I am sorry if the post is too long, but I would be happy if someone would at least point read the bolded titles, and point me in the right direction. I am having this problem for couple of days, but was unable to found the answer on the net. These are the things I have found out so far. **1. "Access violation" excepti...
[ -0.08083667606115341, 0.17633365094661713, 0.5211759805679321, -0.004678024910390377, -0.027311116456985474, -0.36387452483177185, 0.5747532248497009, 0.3215760588645935, -0.22494599223136902, -0.6603037118911743, -0.2626339793205261, 0.4456855058670044, 0.012300674803555012, 0.33963978290...
trace (try/catch around Application.Run) I can see that the exception happens at `System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)`, called inside `UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)`. ``` -- Message: Attempted to read or w...
[ 0.09199265390634537, -0.034126777201890945, 0.1621052771806717, 0.04629546031355858, 0.4782244861125946, -0.01849442720413208, 0.5243802070617676, -0.3669579029083252, -0.09610269218683243, -0.6146786212921143, -0.05352579057216644, 0.26222866773605347, -0.43142321705818176, 0.101043179631...
ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at MyApp.Program.Main() ``` **2. The faulting module seems to be a COM object (ChartFX Client Server 6.2)** Using WinDbg (with SoS loaded), I caught it on the unmanaged side, inside ChartFX.ClientServer.Core.dll (th...
[ -0.49579089879989624, 0.09096663445234299, 0.44223740696907043, 0.04370494559407234, 0.020825570449233055, -0.09669576585292816, 0.4436047673225403, -0.2245149314403534, -0.29087185859680176, -0.4797441363334656, -0.11404181271791458, 0.45153313875198364, -0.3169557750225067, -0.0330540314...