text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
partial class.
[ -0.654075026512146, -0.11223334074020386, -0.1520186811685562, 0.20308437943458557, -0.3770642876625061, 0.1737416535615921, 0.4391978085041046, 0.31442272663116455, -0.19982925057411194, -0.5105619430541992, -0.5116953253746033, 0.14276522397994995, -0.0863909125328064, 0.0680855438113212...
There are two QTreeViews in the screenshot below. For the one on the right, I've add a css customization: ``` setStyleSheet( "background-color: #EAF5FF;" "alternate-background-color: #D5EAFF;" ); ``` Notice however, the scrollbar appearance has changed. It went to the "windows" style, not the "windowsxp" sty...
[ 0.1382581740617752, 0.020131375640630722, 0.5460413098335266, -0.0438060536980629, -0.18283535540103912, 0.08550164103507996, 0.42653995752334595, 0.011799603700637817, -0.05105441436171532, -0.9208875298500061, 0.2879479229450226, 0.8043528199195862, -0.0966772586107254, -0.04336480423808...
"background-color: #EAF5FF;" "alternate-background-color: #D5EAFF;" ); #else // this works correctly QPalette p = palette(); p.setColor(QPalette::Base, QColor(qRgb(0xEA, 0xF5, 0xFF))); p.setColor(QPalette::AlternateBase, QColor(qRgb(0xD5, 0xEA, 0xFF))); setPalette(p); #endif ``` Both metho...
[ 0.12476047873497009, -0.2015349417924881, 0.45679718255996704, -0.09100387990474701, -0.008971408009529114, 0.09592005610466003, 0.39967161417007446, -0.31268998980522156, -0.1936061680316925, -0.6447581052780151, -0.13177300989627838, 0.6935740113258362, -0.34789812564849854, -0.314072161...
I have a ctypes wrapper for a library. Unfortunately, this library is not 100% reliable (occasional segfaults, etc.). Because of how it's used, I want the wrapper to be reasonably resilient to the library crashing. The best way to do this seems to be forking a process and sending the results back from the child. I'd l...
[ 0.5116347074508667, 0.041177865117788315, 0.3944258689880371, -0.037218574434518814, 0.24170134961605072, 0.16566412150859833, 0.16971571743488312, -0.13096736371517181, 0.250702440738678, -0.8010076284408569, 0.1639920175075531, 0.5802074074745178, -0.28954017162323, 0.3716151714324951, ...
result = os.read(r, 524288) # can be this big os.close(r) return pickle.loads(result) ``` This doesn't quite work, though. The forked process hangs on the write. Am I trying to send too much at once? Is there a simpler solution to this problem? Probably you are trying to write more data than can fit into the...
[ 0.252837210893631, 0.09101636707782745, 0.5611785054206848, -0.05022065341472626, 0.08947748690843582, -0.01732792891561985, 0.2126653641462326, -0.09455885738134384, -0.30786117911338806, -0.5796765089035034, 0.15642274916172028, 0.4240742325782776, -0.13762396574020386, 0.228569716215133...
the child terminates before it reads anything. This is what we call a *deadlock*. You might consider taking out that os.waitpid call and see what happens. Another option would be to see if os.pipe has any methods that give it a bigger buffer (I don't know your environment enough to say).
[ 0.08686555922031403, -0.3106830418109894, 0.29489898681640625, 0.28369006514549255, 0.3334021270275116, 0.06848451495170593, 0.19946390390396118, 0.36904165148735046, -0.04370066151022911, -0.640823245048523, -0.02463928423821926, 0.4644755423069, -0.06907088309526443, 0.413119375705719, ...
I need to embed an excel sheet portion (not the whole sheet) in a user control in C# language. And I want to manipulate the data on it and save it in a collection. What is the best way to go about it? I would open the spreadsheet with the Excel COM Library. If you add a reference to the Microsoft Excel Object Library...
[ 0.38452866673469543, 0.19305790960788727, 0.4096335172653198, 0.16932396590709686, 0.09678932279348373, 0.019943371415138245, -0.0909145176410675, -0.05350656062364578, 0.12057076394557953, -0.7179433703422546, -0.21638068556785583, 0.6835026741027832, -0.49279120564460754, -0.033969074487...
Workbook theWorkbook; Application ExcelObj = null; ExcelObj = new Application(); theWorkbook = ExcelObj.Workbooks.Open(fileName, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Typ...
[ -0.050913985818624496, 0.3104845881462097, 0.6095224618911743, -0.2331910878419876, 0.1399620622396469, 0.20096157491207123, 0.3245156705379486, -0.08098161965608597, -0.23501664400100708, -0.6664631366729736, -0.5873994827270508, 0.3452400863170624, -0.7962313890457153, -0.160868689417839...
Sheets sheets = theWorkbook.Worksheets; Worksheet worksheet = (Worksheet)sheets[tabName]; Range range = worksheet.get_Range("A1:A1", Type.Missing); string data = range.Text as string; // // TODO : store the data // theWorkbook.Close(false, fileName, null); ...
[ 0.2955320477485657, 0.33574047684669495, 0.4153905212879181, -0.3172045350074768, 0.026927733793854713, 0.23932497203350067, 0.12829098105430603, -0.6129791140556335, -0.4608619511127472, -0.5201579332351685, -0.22829669713974, 0.0701608657836914, -0.583267331123352, 0.08725985139608383, ...
of the quirks of working with the Excel COM interface is that you have to access data in a Range, even if you just want one cell. You can set the range to be a group of cells, then you can iterate over the collection that it returns to get the contents of each cell. You would also want to add some error checking/handl...
[ 0.3485109806060791, -0.0957496389746666, 0.10414854437112808, 0.21507880091667175, -0.1266757994890213, -0.32482844591140747, -0.12162020057439804, -0.2768024504184723, -0.18249386548995972, -0.5638636946678162, 0.10512135177850723, 0.5777727961540222, -0.33474069833755493, -0.108627416193...
row 1. I've found it easier to use the COM interface. Once you have acquired the data you need, you could put it into a typed DataSet. Then you could bind that dataset to a DataGridView if you're using WinForms or a ListBox in WPF. If you just want to save the data in an XML format, you could use the DataSet WriteXml ...
[ 0.0696217343211174, -0.04520430415868759, 0.5815165042877197, -0.029282134026288986, 0.012111011892557144, 0.012511408887803555, -0.3552752733230591, 0.04092039540410042, -0.000033393767807865515, -0.7908031940460205, 0.11933135986328125, 0.3616049289703369, -0.5330053567886353, 0.27246135...
We have the following situation: 1. We invoke a url which runs an action in a controller. The action is fairly long running - it builds a big string of XML, generates a PDF and is supposed to redirect when done. 2. After 60 seconds or so, the browswer gets a 200, but with content type of "application/x-unknown-content...
[ 0.162858247756958, -0.4252711534500122, 0.8257247805595398, 0.36620083451271057, -0.045535922050476074, -0.22577595710754395, 0.20052962005138397, -0.27070364356040955, -0.2602722942829132, -0.4870874881744385, -0.19562049210071564, 0.2677285671234131, -0.13364224135875702, 0.0199560932815...
look? We're running Rails 2.2.2 on Apache/Phusion Passenger. Thanks, You can Attach() a subscription then Remove() it - note, we're not using Add() here, just Attach, so effectively we're telling EF that we know the object is attached in the store, and asking it to behave as if that were true. ``` var db = new Topic...
[ 0.18058937788009644, -0.12265527993440628, 0.65511155128479, -0.07903800904750824, -0.2251032143831253, -0.22285260260105133, 0.2811671793460846, -0.15927253663539886, -0.08029673248529434, -0.813164472579956, -0.26343655586242676, 0.44198402762413025, -0.4314284920692444, 0.17631027102470...
database sends these 3 queries to the database: ``` SELECT TOP (1) [Extent1].[TopicId] AS [TopicId], [Extent1].[Description] AS [Description] FROM [dbo].[Topic] AS [Extent1] WHERE 1 = [Extent1].[TopicId] SELECT TOP (1) [Extent1].[SubscriptionId] AS [SubscriptionId], [Extent1].[Description] AS [Description] FROM [...
[ -0.07955626398324966, -0.05200779065489769, 0.6241862773895264, 0.1744699478149414, -0.3508055806159973, -0.010386831127107143, -0.035415634512901306, -0.18122203648090363, -0.4228218197822571, -0.4651426076889038, -0.20350171625614166, 0.2458774596452713, -0.1825704723596573, 0.3450726568...
I'm trying to implement an OS X drawer like feature in Java, and so I'm going to have one window hiding under another. However when I drag the primary window (JFrame) I need to send updates as it moves to the secondary window (JWindow) below. So it'd be something like this… ``` --------------- | |--------...
[ 0.13976989686489105, 0.1628512442111969, 0.3512936234474182, -0.20919464528560638, 0.11368322372436523, -0.028615888208150864, 0.3367358148097992, 0.10625819861888885, -0.07812085002660751, -0.9889450669288635, 0.006435169372707605, 0.47995591163635254, -0.3783252239227295, 0.3795133233070...
| | | | | | | | | |----------- --------------- ``` That said, ComponentListener in OS X doesn't send constant updates for componentMoved, only when you pause for a second or lift off
[ -0.12270554155111313, -0.31407177448272705, 0.8411064147949219, 0.23156583309173584, 0.07339733839035034, -0.27988114953041077, 0.32850703597068787, 0.1145143061876297, -0.16354209184646606, -0.449835866689682, -0.3505776822566986, 0.8586915731430054, -0.41685160994529724, 0.19264450669288...
the mouse. This seems to differ from Win/Linux, so I was wondering if anyone had a different solution. Without completely understanding everything, I was hoping to get and deal with whatever is drawing the window's titlebar (something about the rootpane it seems). I'm not even sure if that is going to be possible to d...
[ 0.26221945881843567, -0.2167239636182785, 0.5274768471717834, 0.08085380494594574, 0.01094142161309719, -0.20933839678764343, -0.045452360063791275, 0.3875381648540497, -0.2665795385837555, -0.5825290083885193, -0.056155405938625336, 0.7747141718864441, -0.21085858345031738, 0.168012514710...
know the object is attached in the store, and asking it to behave as if that were true. ``` var db = new TopicDBEntities(); var topic = db.Topics.FirstOrDefault(x => x.TopicId == 1); // Get the subscription you want to delete var subscription = db.Subscriptions.FirstOrDefault(x => x.SubscriptionId == 2); topic.Subscr...
[ 0.25550583004951477, 0.10083887726068497, 0.7582156658172607, -0.041521377861499786, -0.007029785308986902, -0.1626092791557312, 0.09018752723932266, -0.30953916907310486, -0.06656815856695175, -0.5096867084503174, -0.17509450018405914, 0.49899089336395264, -0.31420230865478516, 0.55793458...
[dbo].[Subscription] AS [Extent1] WHERE 2 = [Extent1].[SubscriptionId] exec sp_executesql N'delete [dbo].[TopicSubscriptions] where (([TopicId] = @0) and ([SubscriptionId] = @1))',N'@0 int,@1 int',@0=1,@1=2 ``` so it's not pulling all the subscriptions at any point.
[ -0.027304116636514664, -0.0483335442841053, 0.6434727311134338, -0.27978092432022095, -0.4925411641597748, 0.009146173484623432, 0.12982363998889923, -0.1961042284965515, -0.5022231936454773, -0.21884211897850037, -0.40670645236968994, 0.1342751681804657, -0.26627880334854126, 0.2386200278...
There is a process that seems to be running all the time in SQL Server 2005 activity monitor. Double clicking on it produces the following query: `CREATE TABLE #tmpDBCCinputbuffer ([EVENT TYPE] NVARCHAR(512), [PARAMETERS] INT, [EVENT Info] NVARCHAR(512)) INSERT INTO #tmpDBCCinputbuffer EXEC ('DBCC INPUTBUFFER(58)')...
[ -0.12815164029598236, -0.11840728670358658, 0.5762638449668884, 0.5577161312103271, -0.1458653211593628, -0.5764303207397461, 0.17767883837223053, 0.013646568171679974, -0.5926015973091125, -0.1432334929704666, 0.40911540389060974, 0.5474827885627747, -0.22388805449008942, 0.00846307165920...
need it?
[ 0.46079596877098083, 0.46075499057769775, -0.4373840093612671, 0.1502934694290161, -0.24006961286067963, 0.015514638274908066, -0.08500169962644577, 0.03465863689780235, -0.11664046347141266, 0.04469585046172142, 0.300581157207489, 0.16726548969745636, -0.13338561356067657, 0.0856971740722...
I have a set of rather complex ORM modules that inherit from [Class::DBI](http://search.cpan.org/dist/Class-DBI). Since the data changes quite infrequently, I am considering using a Caching/Memoization layer on top of this to speed things up. I found a module: [Class::DBI::Cacheable](http://search.cpan.org/dist/Class-D...
[ 0.19713245332241058, 0.19347700476646423, 0.38725483417510986, 0.10290808230638504, -0.14168597757816315, -0.18523254990577698, -0.020004307851195335, -0.19309881329536438, -0.2473350614309311, -0.5141049027442932, -0.022672593593597412, 0.5882895588874817, -0.14916443824768066, 0.16503947...
unique key you can just cache based on a concatenation of the keys. A naive approach might be: ``` my %_cache; sub get_object_from_db { my ($self, $table, %table_lookup_key) = @_; # concatenate a unique key for this object my $cache_key = join('|', map { "$_|$table_lookup_key{$_}" } ...
[ -0.1730215698480606, 0.17920131981372833, 0.07856516540050507, 0.045499373227357864, 0.04980456084012985, -0.0004162272089160979, 0.04972076416015625, -0.3000195324420929, -0.17340131103992462, -0.5445235967636108, 0.04526067152619362, 0.22779466211795807, -0.3658406138420105, 0.5312618613...
from the db and cache it in the hash # before returning } ``` Instead of a hash, you can use the Cache:: suite of modules on CPAN to implement time and memory limits in your cache. If you're going to cache for some time you might want to think about a way to expire objects in the cache. If for instance all your ...
[ 0.17800207436084747, 0.1093447282910347, 0.23603983223438263, 0.08539945632219315, 0.009216595441102982, -0.05937426909804344, 0.16670620441436768, -0.28630179166793823, -0.1451350599527359, -0.5302139520645142, -0.25255757570266724, 0.2861051857471466, -0.2126229852437973, 0.3953912258148...
eg., one piece of code retrieves an object and updates a value but doesn't commit that change to the db, all other code retrieving that object will see that change. This can be very useful if you're stringing together a series of operations - they can all update the object and then you can commit it at the end - but it...
[ 0.5577850341796875, 0.12598437070846558, -0.17737536132335663, 0.017813924700021744, -0.14926080405712128, -0.1914796233177185, 0.24805878102779388, -0.4065591096878052, -0.019615894183516502, -0.46360093355178833, -0.07577460259199142, 0.6725354790687561, -0.22292718291282654, 0.194956675...
you can always check that flag if you really want a fresh object.
[ 0.5767349600791931, 0.039472706615924835, -0.040796421468257904, 0.2720377445220947, -0.0709710642695427, -0.2112712413072586, 0.2071962207555771, 0.3833295404911041, -0.4121397137641907, -0.2825646996498108, 0.2593880593776703, 0.1895836889743805, 0.17037296295166016, -0.24917392432689667...
Here's my situation. I've noticed that code gets harder to maintain when you keep embedding queries in every function that will use them. Some queries tend to grow very fast and tend to lose readability after concatenating every line. Another issue that comes with all of the concatenation is when you must test a specif...
[ 0.1683623045682907, 0.1195310577750206, -0.1043260246515274, 0.30682700872421265, 0.060483645647764206, 0.20108743011951447, 0.3885531723499298, 0.0706576481461525, -0.1349164843559265, -0.43358081579208374, 0.1736292988061905, 0.27565479278564453, -0.057352013885974884, 0.2493485808372497...
thing because i'm not finding anything relevant. I'd like to note that views and stored procedure are not possible since my queries fetch data from a production database. Thank you. I avoid this problem by wrapping queries in classes that represent the entities stored in the table. So the accounts table has an Accoun...
[ 0.1291092038154602, 0.18366162478923798, 0.07757467031478882, 0.28693145513534546, 0.06052789092063904, -0.012812361121177673, 0.22345885634422302, 0.30792751908302307, -0.37327468395233154, -0.5982530117034912, 0.21527250111103058, 0.3874857425689697, 0.04707122966647148, 0.11930841952562...
How does one export a 3D Studio animated model to OBJ format (if possible)? What will be the resulting file like? How would I read that? No, `.obj` files do not support animation. You can check the [`.obj` specification](http://paulbourke.net/dataformats/obj/) for details of what it does support. You could potentiall...
[ 0.34256911277770996, 0.08066703379154205, 0.34252646565437317, 0.12367990612983704, -0.09310989826917648, 0.2427809089422226, 0.10201497375965118, 0.07471897453069687, -0.33331921696662903, -0.7129147052764893, -0.175749734044075, 0.4349524676799774, -0.36382514238357544, 0.182270929217338...
I need to generate pseudo-random numbers for my genetic algorithm on a Spartan-3E FPGA and i want to implement it in verilog: could you give me any pointers on this? Typically you'd use the [IEEE.math\_real](http://www.csee.umbc.edu/help/VHDL/stdpkg.html) uniform function ``` use IEEE.math_real.all; procedure UNIFORM...
[ 0.20727108418941498, -0.06559497863054276, 0.14187030494213104, 0.3065495789051056, -0.2675550580024719, 0.047841284424066544, -0.2546272873878479, -0.3043056130409241, -0.2921800911426544, -0.3317931890487671, 0.08301163464784622, 0.4924827218055725, -0.20426055788993835, 0.28648972511291...
I have a class X, which I provide a snippet of here: ``` class X { public: template <typename Iter> X(Iter begin, Iter end) : mVec(begin, end) {} private: vector<Y> const mVec; }; ``` I now want to add a new concatenating constructor to this class, something like: ``` template <typename Iter1, type...
[ 0.007142945658415556, 0.009028364904224873, 0.5806282162666321, -0.08072479814291, 0.05204921215772629, 0.09813658148050308, 0.045582063496112823, -0.27332803606987, -0.1559995412826538, -0.6369532942771912, -0.1382124423980713, 0.5976259708404541, -0.4286031723022461, 0.07957633584737778,...
considered constant throughout the other methods of X. 2) I would like to avoid unnecessary copies if at all possible. That is, one solution is to have a static method that constructs a non-const temporary to range 1, inserts range 2 and returns it, and then define the concatenating constructor to ``` template <type...
[ 0.07540857791900635, -0.026144998148083687, 0.7614392042160034, -0.26518118381500244, 0.24524229764938354, 0.09584606438875198, -0.00017981008568312973, -0.27633070945739746, -0.06829732656478882, -0.3503701388835907, -0.19286984205245972, 0.504482090473175, -0.43740084767341614, 0.0631788...
a single range. Something in the lines of: ``` // compacted syntax for brevity... template <typename T1, typename T2> struct concat_iterator { public: typedef std::forward_iterator_tag iterator_category; typedef typename iterator_traits<T1>::value_type value_type; typedef *value_type pointer; typedef &val...
[ -0.16584227979183197, -0.12098697572946548, 0.6111396551132202, -0.1782667636871338, -0.16440962255001068, 0.40366652607917786, 0.0017537454841658473, -0.7126105427742004, 0.00929717905819416, -0.36750003695487976, -0.31346437335014343, 0.6366739273071289, -0.4640951156616211, -0.004462791...
this; } reference operator*() { if ( seq1 != seq1end ) return *seq1; else return *seq2; } pointer operator->() { if ( seq1 != seq1end ) return &(*seq1); else return &(*seq2); } bool operator==( concat_iterator const & rhs ) { return seq1==rhs.seq1 && seq1end==rhs.seq2 ...
[ -0.2991544008255005, -0.08876442909240723, 0.6207005977630615, -0.3304338753223419, 0.1890825778245926, -0.036215029656887054, 0.5127166509628296, -0.8021957874298096, 0.21644219756126404, -0.6476672887802124, -0.5495628714561462, 0.4540770649909973, -0.4069203734397888, 0.0522583089768886...
bool operator!=( contact_iterator const & rhs ) { return !(*this == rhs); } private: T1 seq1; T1 seq1end; T2 seq2; T2 seq2end; }; template <typename T1, typename T2> concat_iterator<T1,T2> concat_begin( T1 b1, T1 e1, T2 b2, T2 e2 ) { return concat_iterator<T1,T2>(b1,e1,b2,e2); } template <typen...
[ -0.3139154613018036, 0.15645377337932587, 0.40417060256004333, -0.3161720037460327, 0.08498278260231018, -0.11116965115070343, 0.4342248737812042, -0.3044660985469818, 0.24756813049316406, -0.505175769329071, -0.5994417071342468, 0.6312770843505859, -0.4737573266029358, 0.04038881883025169...
: mVec( concat_begin(b1,e1,b2,e2), concat_end(b1,e1,b2,e2) ) {} private: vector<Y> const mVec; }; ``` or (I have just thought of it) you don't need to redeclare your constructor. Make your caller use the helper functions: ``` X x( concat_begin(b1,e1,b2,e2), concat_end(b1,e1,b2,e2) ); ``` I have not che...
[ -0.13270914554595947, 0.01418981608003378, 0.9468668699264526, -0.07848232984542847, 0.15301750600337982, 0.025935117155313492, 0.4194283187389374, -0.19480878114700317, -0.14845871925354004, -0.5575191974639893, -0.5317681431770325, 0.850342333316803, -0.7809635996818542, 0.04446668550372...
Is there any good explanation of how to use MySQL's foreign key construct? I don't quite get it from the MySQL docs themselves. Up until now I've been handling things like foreign keys with joins and programming code. And the second part of the question, are there any improvements to be made by using MySQL's inbuilt...
[ 0.23683838546276093, 0.38225919008255005, 0.06444157660007477, 0.08994743973016739, -0.004456913564354181, 0.03915102779865265, -0.040462445467710495, -0.07478019595146179, -0.21583281457424164, -0.6937081217765808, 0.09734316915273666, 0.5423189997673035, -0.21342246234416962, 0.239112973...
NULL, FOREIGN KEY (dept_id) REFERENCES department(id)) ``` , then you cannot delete a `department` if it has some `employee`'s. If you supply `ON DELETE CASCADE` to the `FOREIGN KEY` definition, the referencing rows will be deleted automatically along with the referenced ones. As a constraint, `FOREIGN KEY` actuall...
[ -0.035517048090696335, 0.2052648514509201, 0.3688886761665344, 0.09094157069921494, 0.1810734122991562, 0.06970194727182388, 0.3569040596485138, 0.0876370519399643, -0.27774202823638916, -0.30560824275016785, -0.33350712060928345, 0.24099622666835785, -0.4719293415546417, 0.763584077358245...
I want to use the same style for all `Image`s and `AutoGreyableImage`s (my custom control that inherits from `Image`). I have the following style declared application-wide: ``` <Style TargetType="{x:Type Image}" x:Key="ImageType"> <Setter Property="Stretch" Value="Uniform" /> <Setter Property="...
[ 0.3734857439994812, -0.1417386531829834, 0.6365540027618408, -0.21221432089805603, -0.13396520912647247, -0.09921655803918839, 0.039088163524866104, -0.36645764112472534, -0.13457505404949188, -0.7999565601348877, -0.26731356978416443, 0.8590909242630005, -0.15878669917583466, -0.069219902...
Value="True" /> </Style> ``` But the `AutoGreyableImage`s don't accept the style. This doesn't work either: ``` <Style TargetType="{x:Type my:AutoGreyableImage}" BasedOn="{DynamicResource ImageType}" /> ``` What is the correct way to do this? `FOREIGN KEYS` just ensure your data are consistent. They do not...
[ 0.14551573991775513, 0.08813511580228806, 0.3466256856918335, 0.2116067111492157, -0.01819404773414135, -0.006218562833964825, 0.2822127044200897, -0.21266235411167145, -0.059786610305309296, -0.41718900203704834, 0.009260674007236958, 0.6842576265335083, -0.3842613101005554, 0.24563719332...
KEY` definition, the referencing rows will be deleted automatically along with the referenced ones. As a constraint, `FOREIGN KEY` actually slows down the queries a little. Extra checking needs to be performed when deleting from a referenced table or inserting into a referencing one.
[ -0.31192588806152344, 0.17537960410118103, 0.38948413729667664, 0.0359841026365757, 0.28498485684394836, -0.3228733241558075, 0.19749854505062103, -0.03543925657868385, -0.05480916053056717, -0.5948171019554138, -0.260720431804657, 0.39178046584129333, -0.12222883850336075, 0.4089953005313...
I'm using an iframe to integrate two of our customer's apps. I'd like the iframe's location to persist even when the top level window is refreshed. Example: * user loads <http://myserver/main.page?target=>"sub.page" in his browser * my Javascript code sets the source of the iframe to "sub.page" * user clicks a link ...
[ 0.019175469875335693, 0.1440988928079605, 0.650148868560791, -0.2564535439014435, 0.009714249521493912, 0.16435906291007996, 0.10440967977046967, 0.09675908833742142, -0.1272343248128891, -1.091160535812378, 0.038856908679008484, 0.16551949083805084, -0.27926182746887207, -0.01516105979681...
around. My issue is how to track the iframe's src value. I need a way to detect that the iframe's src has changed. The only thing I can think of is "polling" the value. I'd be interested to find out if someone has a better idea. You can also add a 'load' event handler to this frame. Every time this event occurs, you w...
[ 0.40339395403862, 0.1629185527563095, 0.3709704279899597, 0.34134504199028015, 0.07678889483213425, -0.266353577375412, -0.06792177259922028, -0.2216450273990631, -0.5737830400466919, -0.5150201320648193, 0.21241328120231628, 0.1785202920436859, -0.2847110331058502, 0.1086515560746193, -...
Say I got this C++ code: ``` class class1{ class2 *x; } class class2{ class1 *x; } ``` The compiler would give an error in line 2 because it couldn't find class2, and the same if i switched the order of the classes. How do I solve this? Two things - one, you need semicolons after class declarations: ``` cl...
[ 0.1396791934967041, 0.2088509500026703, 0.24154537916183472, 0.05906675010919571, -0.1796223372220993, -0.03830208256840706, 0.146725133061409, 0.01274467445909977, -0.3409823179244995, -0.425141304731369, -0.17272570729255676, 0.44187691807746887, -0.252899169921875, 0.229239821434021, ...
a `class2` declaration in front of the definition of `class1`: ``` class class2 ; class class1{ class2 *x; }; class class2{ class1 *x; }; ```
[ -0.10105178505182266, -0.11087075620889664, -0.0028716058004647493, -0.11033394932746887, -0.005739186890423298, -0.1719006448984146, 0.15701621770858765, 0.07336034625768661, -0.041815146803855896, -0.34227582812309265, -0.6421741247177124, 0.41848522424697876, -0.41200149059295654, 0.091...
My goal is to convert a PDF into an image (specifically in TIFF). There is a PDF property called [BitsPerComponent](http://www.abcupload.com/helppdf7net/source/6-abcpdf6.objects/pixmap/2-properties/bitspercomponent.htm) And According to description on the page, > This property can take the value 1, 2, 4, 8 or 16....
[ 0.26457443833351135, 0.017803695052862167, 0.6978676915168762, 0.11195779591798782, -0.19131524860858917, 0.17398688197135925, -0.10641619563102722, -0.42466384172439575, -0.04269383102655411, -0.699216365814209, -0.14833110570907593, 0.46005964279174805, -0.21718145906925201, 0.0665698349...
if you're talking an RGB image you have 3 components. An RGB at 8 bit per component would be a 8 \* 3 = 24bit per pixel image. If it was greyscale, e.g. one component, an 8 bit per component would be 8 bit per pixel.
[ 0.05376913398504257, 0.005587921477854252, 0.5050051212310791, 0.1686805933713913, -0.24430572986602783, 0.39436399936676025, 0.06609303504228592, -0.33334749937057495, -0.297204852104187, -0.5524078011512756, -0.012666115537285805, 0.2809751629829407, -0.5996562838554382, 0.16692401468753...
In C++, a function template specialization is supposed to act exactly like a normal function. Does that mean that I can make one virtual? For example: ``` struct A { template <class T> void f(); template <> virtual void f<int>() {} }; struct B : A { template <class T> void f(); template <> virtual vo...
[ -0.02675054594874382, -0.19883239269256592, 0.2768501043319702, -0.23350098729133606, -0.09091746807098389, 0.22804947197437286, 0.1774069368839264, -0.3488764762878418, -0.2373933643102646, -0.3912503123283386, -0.029657475650310516, 0.8159396648406982, -0.49622654914855957, -0.0929288491...
compiler. Nice compiler error. For this type of checks I always fallback to the [Comeau](http://www.comeaucomputing.com/tryitout) compiler before going back to the standard and checking. > Comeau C/C++ 4.3.10.1 (Oct 6 2008 > 11:28:09) for ONLINE\_EVALUATION\_BETA2 > Copyright 1988-2008 Comeau Computing. > All right...
[ -0.17746296525001526, 0.09277422726154327, 0.23632192611694336, 0.08441387116909027, -0.04094073176383972, -0.13779401779174805, 0.5891994833946228, 0.1943749189376831, -0.036118727177381516, -0.5332791805267334, -0.2552933394908905, 0.42909449338912964, -0.46628886461257935, 0.16970406472...
been posted by another user, the fact is that the standard does not allow you to define virtual templated methods. The rationale is that for all virtual methods, an entry must be reserved in the vtable. The problem is that template methods will only be defined when they have been instantiated (used). This means that th...
[ 0.637202799320221, -0.06451433151960373, 0.19684219360351562, 0.19974346458911896, -0.2449299693107605, -0.14228570461273193, 0.3998321294784546, 0.20496207475662231, -0.36179545521736145, -0.44561731815338135, -0.014293363317847252, 0.39072149991989136, -0.2863982319831848, 0.263874650001...
one specific version being virtual (note the part of the argument) you can do it: ``` class Base { public: template <typename T> void f( T a ) {} virtual void f( int a ) { std::cout << "base" << std::endl; } }; class Derived : public Base { public: virtual void f( int a ) { std::cout << "derived" << std::endl...
[ 0.02883310429751873, -0.3951285183429718, 0.5139532685279846, -0.12020939588546753, 0.025194639340043068, -0.06221620738506317, 0.219495490193367, -0.11135391145944595, -0.13724420964717865, -0.6412050724029541, -0.28072187304496765, 0.4367072880268097, -0.4812687337398529, 0.5013729333877...
luck. Consider another type of delegation instead of polymorphism (aggregation + delegation could be a solution). More information on the problem at hand would help in determining a solution.
[ -0.4675368368625641, -0.26678183674812317, -0.32820621132850647, 0.45511025190353394, -0.3409874737262726, -0.08820903301239014, 0.2584594190120697, -0.08058947324752808, -0.2758987843990326, -0.7135560512542725, -0.03094976581633091, 0.22629734873771667, -0.1606166958808899, -0.0091419387...
Anyone know of a way to get your hands on a specific version of IE? Specifically, I am doing browser compatibility and originally developed for IE 6.0.3790.3959 (which most of our users have). Some of our employees that have IE 6.0.2900.xpsp\_sp3\_gdr.080814-1236 are having issues with some of our custom Javascript an...
[ 0.7681147456169128, -0.08967659622430801, 0.3790058195590973, 0.15154312551021576, -0.08028442412614822, -0.17457063496112823, 0.21273072063922882, 0.11593940109014511, -0.12012752890586853, -0.9130891561508179, 0.10699299722909927, 0.3228216767311096, 0.0027706860564649105, 0.148323580622...
than that your out of luck. Also, multipleIE and the Internet Explorer Collection will not run IE 5.5 or 6 on Vista. (IE < 5.5 works fine though)
[ 0.3406650424003601, -0.31859591603279114, 0.47370296716690063, 0.37117648124694824, 0.3507729470729828, -0.41401681303977966, 0.7061673998832703, 0.11477768421173096, 0.12175638973712921, -1.0915417671203613, -0.04510987922549248, 0.843885600566864, -0.20049349963665009, 0.2752070128917694...
I'm writing an Adobe Air client to a service similar to Twitter. On the timeline (List component) I have a custom item renderer which is basically a Canvas with a fixed-width Image and a Text control, which is multi-line. If the text is long enough to change the Canvas height, it will only be resized if I manually ch...
[ 0.3432607352733612, -0.08108063787221909, 0.6639097332954407, -0.01219023484736681, -0.301414430141449, 0.09084753692150116, 0.04431505128741264, -0.12516093254089355, 0.032336100935935974, -0.8961073756217957, 0.037921156734228134, 0.5763827562332153, -0.18901361525058746, -0.018204573541...
I set it's data? Thanks in advance! :) You will probably want to create an Abstract Factory or Factory Method class. These are common [Design Patterns](http://en.wikipedia.org/wiki/Design_pattern_(computer_science)) which are tested, proven development paradigms.
[ 0.9820888042449951, -0.10882584005594254, 0.00299020460806787, 0.45927000045776367, -0.1273181438446045, -0.011468414217233658, 0.058373380452394485, -0.15792691707611084, -0.18421493470668793, -0.3776528537273407, 0.05472836643457413, 0.19852371513843536, -0.2727762758731842, -0.002084614...
I'm trying to get a simple mixture between Managed C++ and plain C++ working. I'm using Visual Studio 2005 but keep hitting a problem. Here's my setup. First, I have a simple DLL built from the code ``` #using "mscorlib.dll" #include "windows.h" __declspec(dllexport) void sayHello() { OutputDebugStringA( "Hello...
[ -0.16226047277450562, -0.15475469827651978, 0.49227264523506165, -0.3624720871448517, -0.060473114252090454, -0.053578298538923264, 0.2576946020126343, -0.13321693241596222, -0.23250843584537506, -0.5651237964630127, -0.1047133356332779, 0.7310178279876709, -0.563662052154541, 0.1321954429...
} return 0; } ``` I build an application out of this using ``` cl loader.cpp ``` So I end up with `dllcode.dll` and `loader.exe` in the same directory. When trying to run `loader.exe`, I always get return code '1'. Looking up the error code yielded by `GetLastError()` shows that loading `dllcode.dll` failed du...
[ 0.02269747108221054, 0.010226326063275337, 0.3160977363586426, -0.11204665899276733, -0.006684062536805868, -0.31596431136131287, 0.23874503374099731, 0.015977682545781136, -0.2487366795539856, -0.5660039186477661, -0.039968091994524, 0.5817435383796692, -0.32977163791656494, 0.41840934753...
tell. I just found out why loading the Managed C++ DLL from my vanilla C++ program didn't work. Thanks once again to jdigital for pointing me to a useful tool: The source of the error was that the MSVC8 runtime library was not found. I thought that the manifest which is generated when building via ``` cl /CLR /LD dll...
[ 0.6361013650894165, 0.03754592686891556, 0.24917607009410858, 0.12126048654317856, 0.005787343718111515, -0.31653815507888794, 0.3160801827907562, 0.028528451919555664, 0.12960325181484222, -0.7756826281547546, 0.11555735766887665, 0.9221041202545166, -0.3724694848060608, 0.277408152818679...
I suspect...
[ 0.3856859505176544, 0.49408164620399475, -0.0030232351273298264, -0.04150213301181793, 0.1674956977367401, -0.38621196150779724, -0.033845193684101105, 0.049655068665742874, 0.0031059521716088057, -0.3880777657032013, -0.007971733808517456, 0.221823051571846, 0.041727740317583084, 0.238402...
For frequent network troubleshooting purposes, do you know a publicly pingable host with an easy to remember IP address (such as 1.2.3.4)? ``` C:\Documents and Settings\Administrator>ping -a 4.2.2.2 Pinging vnsc-bak.sys.gtei.net [4.2.2.2] with 32 bytes of data: Reply from 4.2.2.2: bytes=32 time=10ms TTL=246 Reply fro...
[ -0.3526313900947571, -0.075295090675354, 0.623441219329834, 0.2531794607639313, -0.0733802393078804, 0.09104200452566147, 0.3465235233306885, -0.14649325609207153, -0.555793285369873, -0.637194037437439, -0.0952085331082344, 0.6748257279396057, -0.3765111267566681, -0.1303594559431076, 0...
I have a page that consists of two frames: one being a flash app, and one being an aspx page with a user control that contains a grid with several "add to cart" buttons. When the user clicks a button I would like to reload the whole window with a shopping cart page. I found out how to do so [here](http://weblogs.asp....
[ 0.36463016271591187, -0.10551124066114426, 0.42627450823783875, -0.06574615091085434, -0.30186405777931213, 0.11984831094741821, 0.11648955196142197, -0.039312586188316345, 0.012389018200337887, -0.6064218878746033, 0.006428950000554323, 0.41084998846054077, -0.38430145382881165, 0.1179861...
button. (bad usability) So my question is, is there a way to detect if the user arrived at the page via the back button and avoid executing the script? Change your javascript to replace the current URL instead of just setting it ``` // Creates browser history top.location = 'http://www.stackoverflow.com' // Doesn't ...
[ 0.11401411890983582, 0.08083546906709671, 0.8029041886329651, -0.13164840638637543, 0.16712571680545807, -0.15241551399230957, 0.18538157641887665, 0.015019676648080349, -0.33893096446990967, -0.5936563611030579, -0.1443798840045929, 0.44152048230171204, -0.30061036348342896, 0.10881634056...
One of the first lines in a batch file I have is this: ``` IF "%FirstServer2%" == "No" goto :SkipSolution ``` The variable %FirstServer2% is not declared anywhere, so it must be passed to the batch file somehow. So, how can I pass in the value? ``` set FirstServer2=No MyBatchFile.cmd ``` Simply set the environment...
[ 0.25605320930480957, -0.006487433798611164, 0.04535917192697525, -0.4012700617313385, 0.08266644924879074, 0.014195752330124378, 0.103997603058815, -0.06643166393041611, -0.07671211659908295, -0.7472761869430542, -0.0670015886425972, 0.3151163160800934, -0.20055100321769714, 0.242184370756...
already defined ones. This is a pretty useful technique if you want to avoid excessive parsing of parameters passed directly to the batch.
[ 0.6208438277244568, -0.023931561037898064, -0.02351505681872368, 0.2568296492099762, 0.07634937763214111, 0.008767077699303627, -0.10798939317464828, -0.27918028831481934, -0.19122743606567383, -0.4153483808040619, 0.24685919284820557, 0.5595077276229858, -0.2231762856245041, 0.03504627570...
I'm using a library that generates a bunch of classes for me. These classes all inherit from a common base class but that base class doesn't define a couple methods that are common to all subclasses. For example: ``` SubClassA : BaseClass{ void Add(ItemA item) {...} ItemA CreateNewItem() {...} } SubClassB: Base...
[ 0.08201655745506287, 0.02004843018949032, 0.05158812180161476, -0.08565912395715714, -0.18028956651687622, -0.1014559268951416, 0.3022860288619995, -0.23663733899593353, -0.20314545929431915, -0.6691508889198303, -0.0022131309378892183, 0.42059633135795593, -0.39403635263442993, 0.19968456...
class for my A+B objects and a common base class for the Item objects, I had hoped to benefit from the wonderful world of polymorphism. Unfortunately, since the common methods aren't actually present in the base class, I can't call them virtually. e.g., this would be perfect: ``` BaseClass Obj; Obj = GetWorkUnit(); /...
[ 0.08860110491514206, -0.15306442975997925, 0.10211817920207977, -0.15924085676670074, -0.05676382780075073, 0.06734948605298996, 0.6312726736068726, -0.4739800691604614, -0.11603735387325287, -0.5792171955108643, -0.21994036436080933, 0.5099939107894897, -0.5510368943214417, -0.00959469750...
these methods? I'm not worried about getting an object that doesn't implement the method I'm trying to call. I can actually do what I want in VB--I don't get intellisense but the compiler's happy and it works: ``` CType(Obj, Object).Add(Item) // Note: I'm using C#--NOT VB ``` Againt, I have no control over these cla...
[ 0.28361108899116516, 0.17654861509799957, 0.2787207365036011, 0.08254442363977432, -0.19994452595710754, -0.08749327063560486, 0.36374565958976746, -0.28122690320014954, -0.12283658236265182, -0.522606611251831, 0.10737399011850357, 0.7235657572746277, -0.5040190815925598, -0.0694288983941...
How do I obtain a reference to the current cell? For example, if I want to display the width of column A, I could use the following: ``` =CELL("width", A2) ``` However, I want the formula to be something like this: ``` =CELL("width", THIS_CELL) ``` Create a named formula called THIS\_CELL ========================...
[ -0.20553573966026306, 0.22786207497119904, 0.6986156105995178, -0.33834439516067505, 0.35640618205070496, -0.3136095106601715, 0.08950280398130417, -0.16605615615844727, -0.17607325315475464, -0.7187051177024841, -0.2218920737504959, 0.48285865783691406, -0.2746916711330414, 0.075372777879...
the formula in the worksheet exactly as you wanted ====================================================== ``` =CELL("width",THIS_CELL) ``` **EDIT:** Better solution than using `INDIRECT()` It's worth noting that the solution I've given should be preferred over any solution using the `INDIRECT()` function for two re...
[ 0.15993379056453705, 0.2343558818101883, 0.5725206136703491, -0.2138085663318634, -0.0754798948764801, -0.08145465701818466, 0.21654385328292847, -0.5420951247215271, 0.09039285033941269, -0.2829241156578064, 0.009006086736917496, 0.5742495059967041, -0.24672271311283112, 0.148338556289672...
sheet dependent named ranges. **EDIT:** Also see [@imix's answer](https://stackoverflow.com/a/25291631/2437514) below for a variation on this idea (using RC style references). In that case, you could use `=!RC` for the `THIS_CELL` named range formula, or just use `RC` directly.
[ 0.6727384924888611, -0.11191975325345993, 0.27408769726753235, -0.0669645220041275, -0.028576530516147614, -0.36170655488967896, -0.17664340138435364, -0.5146034955978394, -0.3665822744369507, -0.0070703704841434956, -0.07951744645833969, 0.420470654964447, -0.5333628058433533, 0.128300160...
Just wondering if there's a preferred method or Best Practice for storing "Updated By" type fields in a database. I tend to see just the name of the user being stored pretty frequently, but I've been designing my tables with the ID of the user who last updated that table. Is there a reason to use one method over the o...
[ 0.8031573295593262, 0.12603788077831268, 0.3143314719200134, 0.08896878361701965, -0.04359646514058113, -0.1897604614496231, 0.22008304297924042, 0.30400440096855164, -0.45657411217689514, -0.3996250331401825, 0.29864591360092163, 0.2838137447834015, -0.17681504786014557, 0.257329106330871...
enough reason not to? Not to mention how messy diagrams or ORM mappings seem to get when everything has to point back at the one table... If you have a way to tie the update to a user that's represented by an entity in the database, then use that. If you don't have that sort of mechanism in place (no users in the datab...
[ 0.4405931532382965, 0.12981577217578888, 0.11248081922531128, 0.3501216769218445, 0.08631684631109238, -0.26202070713043213, 0.023345960304141045, -0.002422804944217205, -0.4468780755996704, -0.36112114787101746, 0.01917983964085579, 0.5942724943161011, -0.2543621361255646, 0.0302195828408...
For many Subversion operations, appending the '@' symbol to the end of a file or URL argument allows you to target a specific revision of that file. For example, "svn info test.txt@1234" will give information about test.txt as it existed in revision 1234. However, when the name of the file contains an @, it is incorre...
[ 0.8628119826316833, -0.015859557315707207, 0.23006859421730042, -0.14097723364830017, -0.42087578773498535, -0.02528875507414341, 0.24600349366664886, -0.016984522342681885, 0.04915818199515343, -0.30869153141975403, 0.17972885072231293, 0.3298311233520508, -0.31771671772003174, 0.37221214...
file name? From the [SVN book](http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html) (emphasis added): > The perceptive reader is probably wondering at this point whether the peg revision syntax causes problems for working copy paths or URLs that actually have at signs in them. After all, how does *svn* know w...
[ 0.45640793442726135, 0.1580873429775238, 0.45634889602661133, 0.1379375159740448, -0.24196234345436096, -0.03083571419119835, 0.6164212822914124, 0.10533474385738373, -0.3713853061199188, -0.7170857787132263, -0.2838427722454071, 0.55561763048172, -0.0233925674110651, 0.2026381492614746, ...
the argument, and it is not considered illegal to omit a literal peg revision specifier after that at sign. This workaround even applies to paths that end in an at sign—you would use `filename@@` to talk about a file named *filename@*.
[ 0.27645331621170044, 0.1726664900779724, 0.5563892126083374, 0.07038883864879608, -0.0688094049692154, -0.1148604154586792, 0.38074159622192383, -0.13737066090106964, -0.13204804062843323, -0.6034038066864014, -0.04455260559916496, 0.4621778428554535, -0.10718005895614624, 0.29986301064491...
I create a JTree and model for it out in a class separate to the GUI class. The data for the JTree is extracted from a file. Now in the GUI class the user can add files from the file system to an AWT list. After the user clicks on a file in the list I want the JTree to update. The variable name for the JTree is schema...
[ 0.20906460285186768, -0.30490753054618835, 0.2660529911518097, -0.18452540040016174, -0.09149634838104248, 0.01900901459157467, 0.09992669522762299, -0.46826082468032837, -0.011626833118498325, -0.8409451842308044, -0.09339882433414459, 0.5283641219139099, -0.4574647545814514, 0.1703669130...
File selectedFile = schemas.get(selection); long fileSize = selectedFile.length(); fileInfoLabel.setText("Size: " + fileSize + " bytes"); schemaParser = new XSDParser(selectedFile.getAbsolutePath()); TreeModel model = schemaParser.generateTreeModel(); schemaTree.setModel(model)...
[ 0.22746999561786652, -0.25977638363838196, 0.6275597810745239, 0.06809744983911514, 0.1379828006029129, -0.06221794709563255, 0.15958134829998016, -0.4355868697166443, -0.2553677558898926, -0.6923220157623291, -0.26681774854660034, 0.4928678572177887, -0.35535928606987, 0.01589873619377613...
should be, IMHO: * get the file * create a new TreeModel from your file * give the model to the JTree In pseudocode, it would look like that: ``` File newContent = getSelectedByUser(...); TreeModel newModel = new MyFileBasedTreeModel(newContent); //this next part must be done in the EventDispatcherThread myTree.setM...
[ 0.07696656137704849, -0.3009505569934845, 0.528825044631958, -0.04111357033252716, 0.06335542351007462, -0.12129141390323639, 0.5108325481414795, -0.2168406993150711, -0.28626275062561035, -0.7564014792442322, -0.24518126249313354, 0.6097217202186584, -0.23151111602783203, -0.0769638493657...
I have a couple email addresses, `'support@company.com'` and `'1234567@tickets.company.com'`. In perl, I could take the `To:` line of a raw email and find either of the above addresses with ``` /\w+@(tickets\.)?company\.com/i ``` In python, I simply wrote the above regex as`'\w+@(tickets\.)?company\.com'` expecting...
[ 0.06727559864521027, 0.06381242722272873, 0.32358381152153015, -0.018308136612176895, -0.0722203180193901, 0.027298428118228912, -0.08580981940031052, -0.0865454375743866, -0.3240341246128082, -0.47090035676956177, -0.030610160902142525, 0.5779359936714172, -0.45549851655960083, -0.0169121...
matches in the string. > > If one or more groups are present in the pattern, return a > list of groups; this will be a list of tuples if the pattern > has more than one group. > > Empty matches are included in the result. > > ``` Since `(tickets\.)` is a group, `findall` returns that instead of the ...
[ -0.142739936709404, -0.0663662776350975, 0.17863748967647552, -0.13076159358024597, -0.02614879049360752, -0.09333619475364685, 0.035999104380607605, -0.30297553539276123, -0.048295702785253525, -0.6268627047538757, -0.31851014494895935, 0.16095763444900513, -0.8231755495071411, -0.0082128...
of each tuple returned by `findall` in the first case.
[ -0.32797732949256897, 0.3103085160255432, 0.3677428662776947, -0.3985300362110138, -0.2766251862049103, 0.44650623202323914, 0.1063561886548996, -0.1332525610923767, -0.14445090293884277, -0.32153618335723877, -0.5986555218696594, 0.4748896062374115, -0.05857372656464577, 0.075841695070266...
I've got a `Button` style that I've been developing in WPF, as stated in [this question](https://stackoverflow.com/questions/754137/wpf-button-textwrap-style). Another thing I'd like to do with this style is to have the `Button` shrink just a little bit, to make it appear like it's getting clicked as it's getting click...
[ 0.35647499561309814, -0.3044692575931549, 0.6238011121749878, -0.3865094780921936, -0.2264268696308136, 0.11744287610054016, 0.03307807445526123, -0.3493289351463318, -0.1638573408126831, -0.8778042793273926, 0.2026195079088211, 0.8336133360862732, -0.10330575704574585, 0.04009893164038658...
<SkewTransform AngleX="0" AngleY="0"/> <RotateTransform Angle="0"/> <TranslateTransform X="0" Y="0"/> </TransformGroup> </Setter.Value> </Setter> <Setter Property="Button.BitmapEffect"> <Setter.Value>
[ -0.009016556665301323, -0.5990071892738342, 0.707429826259613, -0.017543628811836243, -0.3468027710914612, 0.16347286105155945, 0.014751482754945755, -0.5961325168609619, 0.1700754165649414, -0.4806007146835327, -0.21510207653045654, 0.7200601100921631, -0.21019013226032257, -0.11206446588...
<OuterGlowBitmapEffect GlowColor="Green" GlowSize="10"></OuterGlowBitmapEffect> </Setter.Value> </Setter> </Trigger> ``` So, that's exciting. Problem is, the `ScaleTransform` scales the `Image` associated with the `Button` to the upper left of the area where the button is (...
[ -0.215667262673378, -0.3044652044773102, 0.8937798738479614, 0.09902361035346985, -0.09199197590351105, -0.0402834452688694, -0.1996813416481018, -0.24811433255672455, -0.15298379957675934, -0.7342005372047424, 0.09293335676193237, 0.6303258538246155, -0.04166525602340698, -0.2727991640567...
in coordinates relative to the size of the object. If I put in a `TranslateTransform` of 0.01, 0.01, then it will move the `Button` by 0.01 pixels in both x and y, rather than 0.01\*sizeof(imagedimension) pixels in each direction. How can I get that relative transform, and how can I have it happen as a style, ie, so I ...
[ 0.0336664579808712, -0.1439666450023651, 1.0202745199203491, -0.07319299131631851, -0.04598204046487808, 0.2852969169616699, 0.004474552348256111, -0.36233076453208923, -0.0825500413775444, -0.830278217792511, 0.11712069064378738, 0.25911611318588257, -0.08511471748352051, 0.15947106480598...
I'm creating a regular gallery in ASP.NET but I have little experiences with creation of thumbnails. I know the algorithms and the GetThumbnailImage method, but my problem is somewhere else - I'm currently displaying the images (just resized) using the ImageButton control. And that's the point - I have no idea how to h...
[ 0.6373284459114075, -0.11222422122955322, 0.6841800808906555, 0.15022839605808258, -0.22941868007183075, -0.10324589163064957, 0.12200510501861572, 0.21116358041763306, -0.31557777523994446, -0.8191331028938293, 0.1816064864397049, 0.6443177461624146, -0.05811517685651779, 0.28148528933525...
images). Whenever you do graphics stuff in ASP.NET, keep in mind that almost *all* of System.Drawing is a wrapper for GDI+ and thetrefore holds references to unmanaged memory which needs to be disposed properly (use the `using` statement). This holds true even for simple classes like StringFormat etc.
[ 0.1709762066602707, -0.28933629393577576, 0.4119679033756256, 0.22144916653633118, -0.29553258419036865, -0.18875473737716675, 0.007903896272182465, 0.03780290111899376, -0.3163139522075653, -0.7861925363540649, -0.05352427437901497, 0.46673694252967834, -0.29130253195762634, -0.0021234357...
I've been looking for ways to improve the overall attractiveness of my iPhone applications. A majority of the functionality happens in UITableView. I think I can start by adding subtle gradients to UITableViewCells, as that seems to improve the feel of the app by an order of magnitude. Selecting the appropriate fonts/s...
[ 0.06929513067007065, -0.09970346093177795, 0.500333845615387, 0.1793280839920044, -0.17914827167987823, 0.48829248547554016, 0.17392855882644653, -0.006107554771006107, 0.04470735043287277, -0.650709867477417, 0.2944183945655823, 0.5820773243904114, -0.06656955927610397, -0.203695163130760...
Tumblr iPhone app: <http://dl-client.getdropbox.com/u/57676/screenshots/tumblr.jpg> Does anyone have any good examples of how to make your UITableViewCell's stick out? And for performance reasons is it better to use an image or draw with Quartz? If Quartz, I'd love to see some sample codes of how folks are drawing th...
[ 0.32674792408943176, -0.06462054699659348, 0.7844675183296204, 0.07615944743156433, -0.018743550404906273, 0.08209167420864105, 0.26923537254333496, -0.378410667181015, -0.14445272088050842, -0.406166136264801, -0.03301173076033592, 0.6446701884269714, -0.19490975141525269, -0.109880581498...
are 1x61 vertical gradients that UIKit automatically stretches horizontally to fit the width of the cell.
[ -0.13172058761119843, -0.08796841651201248, 0.4742887318134308, 0.09532669186592102, 0.2858279347419739, 0.28413307666778564, 0.12574490904808044, -0.3363664150238037, -0.19150599837303162, -0.6037040948867798, -0.042855873703956604, 0.23172162473201752, -0.16563405096530914, -0.1908001154...
mobclix.com has an API for integrating with facebook.com. Is there something similar for twitter.com and other social services? Meaning, these will look like native parts of your app? Try [MGTwitterEngine](http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa)
[ 0.296367883682251, -0.19940561056137085, 0.3665755093097687, 0.09363868087530136, -0.37318670749664307, 0.18862716853618622, 0.5554917454719543, 0.08770871162414551, -0.4418206214904785, -0.39915868639945984, 0.1884525567293167, 0.6565269231796265, -0.5008108615875244, -0.2118212729692459,...
I would like to convert a date object its integer representation for the day of week in C#. Right now, I am parsing a XML file in order to retrieve the date and storing that info in a string. It is in the following format: "2008-12-31T00:00:00.0000000+01:00" How can I take this and convert it into a number between 1 ...
[ 0.2664675712585449, 0.0011741378111764789, 0.6863517165184021, -0.021754981949925423, -0.07717482000589371, 0.0678083673119545, -0.048460353165864944, -0.13051378726959229, -0.05945001170039177, -0.5945878624916077, 0.16405677795410156, 0.5230727195739746, -0.2664656639099121, 0.2434903532...
I have an enum in a low level namespace. I'd like to provide a class or enum in a mid level namespace that "inherits" the low level enum. ``` namespace low { public enum base { x, y, z } } namespace mid { public enum consume : low.base { } } ``` I'm hoping that this is possible, or perhaps s...
[ 0.34858909249305725, 0.10426827520132065, -0.17750847339630127, 0.10082219541072845, 0.2152741253376007, 0.05268475040793419, -0.25976112484931946, 0.14117920398712158, -0.007654998917132616, -0.932826817035675, -0.11577314138412476, 0.4381311237812042, -0.12353668361902237, 0.265834689140...
access the enum. Thoughts? EDIT: One of the reasons I haven't just switched this to consts in classes is that the low level enum is needed by a service that I must consume. I have been given the WSDLs and the XSDs, which define the structure as an enum. The service cannot be changed. This is not possible. Enums canno...
[ 0.24770429730415344, 0.09162356704473495, 0.2358223795890808, 0.2258373200893402, 0.10541366040706635, -0.32978692650794983, 0.07964455336332321, 0.05244354158639908, 0.006883938331156969, -0.9053213000297546, -0.1492866426706314, 0.5021970868110657, -0.13370761275291443, 0.228812992572784...
the full details. Relevant information from the spec * All enums must derive from `System.Enum` * Because of the above, all enums are value types and hence sealed
[ 0.5124015212059021, 0.23445698618888855, 0.3064054846763611, 0.23987844586372375, 0.3986341655254364, -0.5202528834342957, -0.18749673664569855, -0.2958701550960541, -0.052331432700157166, -0.3280680179595947, -0.6119270324707031, 0.10388149321079254, 0.10942541062831879, 0.419258862733840...
My work has over 24 pages in Latex. I need only the abstract and introduction in pdf. How can you compile only the first two pages? I'd just make a new file with only the abstract and introduction and compile that. Actually, if this is not just a one-time thing, I'd use three files: `absintro.tex`: ``` \begin{abstra...
[ 0.08963631838560104, 0.24960848689079285, 0.44230934977531433, 0.005309964995831251, -0.1279079169034958, 0.13813871145248413, -0.005144740454852581, -0.2404848337173462, -0.09342683851718903, -0.7283651828765869, -0.22211574018001556, 0.5482584238052368, -0.27459320425987244, -0.228773117...
I want a modal popup effect to display dynamic content on a single page. I'm working with Telerik controls. Telerik has a control called RadWindow which is more or less a modal window. It looks like the only content that is to be displayed in RadWindow is the content of a page that is specified in NavigateURL. That i...
[ -0.14255401492118835, 0.06849811971187592, 0.6229810118675232, 0.050949692726135254, -0.2858963906764984, -0.13452526926994324, 0.17615045607089996, 0.04503955319523811, -0.2992820739746094, -0.8251577615737915, 0.09242342412471771, 0.6647292971611023, -0.5883164405822754, 0.16566981375217...
input from the current page instead of from an external URL.
[ 0.006376957520842552, 0.026035267859697342, 0.4622591733932495, 0.13543929159641266, 0.10804520547389984, -0.06055569276213646, 0.09140484035015106, 0.3843807876110077, -0.1041284054517746, -0.696575403213501, -0.7319765090942383, 0.042402368038892746, -0.2032807320356369, 0.53406357765197...
If you don't know what the operation aborted error is, here's a Microsoft KB Article about it, <http://support.microsoft.com/default.aspx/kb/927917> . There's also tonnes of posts about it but the simple answer for it's occurrence is this; the error only occurs if you try to manipulate a DOM element via JavaScript befo...
[ 0.22996552288532257, 0.20498614013195038, -0.010270992293953896, -0.05727561190724373, -0.1259179264307022, -0.19529882073402405, 0.7022995948791504, 0.299437016248703, -0.38712605834007263, -0.4716344177722931, -0.1053314134478569, 0.5580348372459412, -0.102114737033844, 0.308143466711044...