text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
you've mentioned the biggest problem is the network operators. Even if you buy a certificate from Verisign or Thawte (which is by the way cheaper), your application won't run in network operators branded phones, since these have their own CA rules. At first it was possible for a developer to install his/her own certi...
[ 0.76167231798172, 0.5852267146110535, 0.3722875416278839, 0.09909746795892715, 0.40573444962501526, -0.6569548845291138, 0.44767892360687256, -0.07620807737112045, -0.18876539170742035, -0.02017577737569809, -0.17011778056621552, 0.18923957645893097, -0.20158901810646057, 0.194150209426879...
by the network operators. Finally, although [MIDP 3.0](http://www.jcp.org/en/jsr/detail?id=271) has been announced for years, nothing has really come out of it. It seems that even Sun believe that J2ME is only for games. All of these have been extensively discussed in J2ME forums for a long time. The general consensu...
[ 0.3578282296657562, -0.13908058404922485, 0.21923381090164185, 0.09405585378408432, 0.06406959891319275, -0.5000231862068176, -0.00010377484431955963, 0.34314852952957153, -0.19822455942630768, -0.4813879430294037, -0.14735016226768494, 0.5708795189857483, -0.1706397533416748, -0.269922256...
as a conspiracy theory, if you are new in the J2ME world, but have in mind that network operators sell phones with their own firmware that lock even basic functionalities (e.g. transferring photos via Bluetooth or using MP3s as ringtones) to force the owner to use paid services! I don't know if this is going to change...
[ 0.6820471286773682, 0.1704125702381134, -0.014509917236864567, 0.38725903630256653, 0.19976167380809784, -0.7240966558456421, 0.19706910848617554, 0.2529059648513794, -0.2544238865375519, 0.0582638718187809, -0.0615830272436142, 0.510385274887085, -0.4113304913043976, 0.195187047123909, ...
I have 4 listboxes (lstStates, lstCounties, lstCities, and lstZipcodes). Here are a few constraints: * None of the listboxes are disabled. * Any listbox can be selected at anytime, meaning there is no specific order the user has to choose. * Filtering is forward and backwards. By this, I mean if a user selects a state...
[ -0.04365602880716324, -0.19216503202915192, 0.5459164977073669, 0.01927078515291214, -0.06382875144481659, 0.2661518454551697, 0.08516225218772888, -0.3235046863555908, -0.07943528145551682, -0.8975139856338501, -0.06496738642454147, 0.08130382001399994, -0.5358339548110962, 0.078651510179...
stored procedure. Each listbox has its own stored procedure, for example, lstStates has one called GetStates which returns one column (State) and the ListBoxes DataValueField and DataTextField are both set to State. Similar to lstStates, lstCities is bound to a datatable which gets one column from a GetCities stored pr...
[ -0.010537620633840561, -0.4845506250858307, 0.5042369961738586, -0.07641752064228058, -0.18217460811138153, -0.042089615017175674, -0.10729890316724777, -0.15626788139343262, -0.30904364585876465, -0.7776457071304321, -0.05606701225042343, 0.3296809196472168, -0.6823341846466064, -0.081853...
event. When the selection is changed you'll need to refresh all the other listboxes based on those selections. I assume that this will need to be handled by the database, since linking States to ZipCodes any other way would be ugly. So presumably your data for States<-->Zips<-->Counties relationships is in your db some...
[ 0.2509585916996002, -0.3209967613220215, 0.3420604467391968, 0.06836100667715073, 0.04263151437044144, 0.19017378985881805, 0.01539886835962534, -0.3440954387187958, -0.5100343227386475, -0.8238595128059387, -0.3555832803249359, 0.09838250279426575, -0.24706809222698212, 0.2409151345491409...
be able to make one sproc for each one that returns all states if no zip is passed in and so on. [/edit]
[ 0.4065719246864319, -0.2872629463672638, 0.4140108525753021, 0.244700089097023, 0.3337275981903076, -0.27226588129997253, 0.27278608083724976, -0.099532350897789, -0.5793360471725464, -0.4194680154323578, -0.4149389863014221, 0.24962589144706726, -0.30915379524230957, -0.3566027283668518, ...
SiteA.com and siteB.com are .NET 2.0 apps on IIS6. SiteA uses SSL. Can I set things up so siteA.com/train gets people to siteB.com? Are there multiple ways to do this? How would a good way be configured? Go to MyComputer, right+mouse+click and chose Manage. Go to IIS/Websites and open up your sitename.com website.. n...
[ 0.739809513092041, -0.14714662730693817, 0.2861677408218384, -0.05089371278882027, 0.038935914635658264, -0.2629740834236145, 0.2385205328464508, -0.05124484747648239, -0.029477182775735855, -1.3310819864273071, 0.20601078867912292, 0.4724491536617279, -0.26270800828933716, 0.2921161651611...
When doing a string comparison in C#, what is the difference between doing a ``` string test = "testvalue"; test.Equals("TESTVALUE", StringComparison.CurrentCultureIgnoreCase); ``` and ``` string test = "testvalue"; test.Equals("TESTVALUE", StringComparison.InvariantCultureIgnoreCase); ``` ... and is it importan...
[ 0.1783013790845871, -0.2555541694164276, 0.24426130950450897, 0.21651782095432281, -0.20220306515693665, -0.021921571344137192, 0.0285039059817791, -0.31654998660087585, -0.003657279070466757, -0.39405977725982666, -0.024958210065960884, 0.14961417019367218, -0.29324081540107727, 0.1798765...
If a security decision will be made > based on the result of a string > comparison or case change, your > application should use an ordinal > comparison that ignores case instead > of using InvariantCulture. [...] > > > **String Operations** > > > If your application needs to perform a > culture-sensitive str...
[ 0.15744411945343018, -0.3920675814151764, 0.24646350741386414, 0.24449771642684937, 0.029993638396263123, -0.020763538777828217, -0.07456058263778687, -0.3935035467147827, -0.15051665902137756, -0.3804435729980469, 0.10264456272125244, 0.24712757766246796, -0.49320513010025024, 0.190351635...
directly to users. > Storing data in a culture-independent > format guarantees a known format that > does not change. When users from > different cultures access the data, it > can be formatted appropriately based > on specific user. [...]
[ 0.5590107440948486, 0.21161092817783356, 0.29278212785720825, 0.48311617970466614, 0.15140800178050995, 0.0011527299648150802, 0.15084291994571686, -0.2337261289358139, 0.09603757411241531, -0.6929095983505249, -0.49296504259109497, 0.21132998168468475, -0.169967383146286, -0.0282574146986...
I have a datatable which returns around 30,000 records. I am displaying these records in an ASP:GridView control. I have a dropdown control in which I want the user to be able to select the number of records to display in the GridView. The default should be All, but it could also have values such as 20, 50, 100 for exa...
[ 0.3624587953090668, -0.06604495644569397, 0.4361986815929413, 0.09914042800664902, 0.06654738634824753, 0.1412910372018814, 0.07369150221347809, -0.17570720613002777, -0.36673328280448914, -0.9866164922714233, 0.35396474599838257, 0.48173558712005615, -0.09388436377048492, 0.19603748619556...
set AllowPaging of GridView to true. Obviously you have to create the method to manage the event PageIndexChanging. Like this: ``` protected void myGvw_OnPageIndexChanging(object sender, GridViewPageEventArgs e) { myGvw.PageIndex = e.NewPageIndex; // then recall the method that bind myGvw } ``` The DropD...
[ 0.3462551236152649, -0.07868371158838272, 0.6049379706382751, -0.044718798249959946, 0.10597670078277588, -0.23709984123706818, 0.46828436851501465, -0.307161420583725, 0.07798010855913162, -0.6783543229103088, -0.1784105747938156, 0.8709518909454346, -0.3524654805660248, 0.150932848453521...
Is there a way to disable a tab in a [TabControl](https://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol(v=vs.110).aspx)? The [TabPage](https://msdn.microsoft.com/en-us/library/system.windows.forms.tabpage(v=vs.110).aspx) class hides the Enabled property. That was intentional as there is an awkward UI...
[ 0.0016388969961553812, -0.1295827180147171, 0.3087059259414673, 0.15643177926540375, 0.12629733979701996, -0.20355340838432312, 0.5626837611198425, -0.1322411298751831, -0.16211332380771637, -0.5161916613578796, -0.33368703722953796, 0.5432863235473633, -0.2647036612033844, -0.179851740598...
can simply do this: ``` public static void EnableTab(TabPage page, bool enable) { foreach (Control ctl in page.Controls) ctl.Enabled = enable; } ```
[ 0.01890559494495392, -0.06271662563085556, 0.6606157422065735, -0.3956621587276459, 0.16788139939308167, 0.08599311113357544, 0.25930553674697876, -0.2529221177101135, -0.09358099102973938, -0.7111562490463257, -0.5309280157089233, 0.6156460642814636, -0.6789544820785522, -0.10046645253896...
On my laptop, I use the computer's name when accessing my svn repository (e.g. svn://computername/repository) with tortoise svn. However, when I'm outside of my network, I need to use an Internet addressable name (e.g. svn://computername.dyndns.com/repository). I would like to continue to do it this way, so that when I...
[ 0.09057155251502991, 0.11503618955612183, 0.4964034855365753, -0.019022393971681595, 0.1185651496052742, 0.09172374755144119, 0.31830286979675293, 0.42064377665519714, -0.6535542607307434, -0.8272762894630432, -0.2888294458389282, 0.70895916223526, 0.24955454468727112, 0.4092472791671753, ...
'Relocate'. You can change the URL of the repository from there.
[ 0.6930712461471558, -0.03472844511270523, 0.2180328667163849, 0.1411796510219574, 0.038160838186740875, 0.10189579427242279, -0.1292678713798523, 0.3116172254085541, -0.16140040755271912, -0.39109084010124207, -0.3159275949001312, 0.19896940886974335, -0.10396925359964371, 0.56073796749114...
It says that rubyscript2exe license is GPL, but I can't understand the following: If I create an executable with it, may I use the application I created in my company without contribute it to the GNU society (without sharing my Ruby code?) Can I even include it in our product and sell my executable as a part of our pr...
[ 0.4307103455066681, 0.35620641708374023, 0.159844771027565, 0.046584248542785645, -0.41251540184020996, -0.5699640512466431, 0.40287235379219055, 0.20090700685977936, 0.05532317981123924, -0.1727108657360077, 0.1084657683968544, 0.5144788026809692, -0.27909135818481445, 0.3180847764015198,...
use it with. So, if you were to write an extension to the original program, or modified its source, you would be obliged to publish that modification. But the GPL never obliges you to observe any rules concerning your data that are used/produced by the program under GPL. In your case, this data happens to be code as w...
[ 0.4718448221683502, 0.4700596332550049, 0.14646290242671967, 0.019563037902116776, 0.11522086709737778, -0.864063560962677, -0.027563171461224556, -0.003873019479215145, -0.33514857292175293, -0.422268807888031, -0.24649004638195038, 0.7108474969863892, -0.3452776074409485, 0.1571889221668...
I have a few classes such that: ``` public class XMLStatusMessage extends XMLMessage {} public abstract class XMLMessage implements IMessage {} public interface IMessageListener { public void onMessage( IMessage message ); } public interface XMLMessageListener <T extends XMLMessage> extends IMessageListener...
[ -0.1389695256948471, -0.21626843512058258, 0.5149515271186829, 0.0037003785837441683, 0.1069277971982956, 0.19837738573551178, 0.39429008960723877, -0.5016345977783203, 0.057512376457452774, -0.9529831409454346, -0.19599835574626923, 0.3578621447086334, -0.4120746850967407, 0.1566071063280...
//... } } ``` My problem is that AStatusHandler won't compile because I'm not also implementing public void onMessage(IMessage). I don't see why I should have to implement onMessage(IMessage) also as it already implements onMessage(XMLStatusMessage) and XMLStatusMessage is an IMessage. Is there a simple solution ...
[ -0.03328325226902962, -0.03920905664563179, 0.47217875719070435, -0.08211999386548996, -0.015342775732278824, -0.04240952432155609, 0.5417171716690063, -0.26562246680259705, -0.03759593516588211, -0.9513717889785767, -0.1978195458650589, 0.6290246844291687, -0.5433034300804138, 0.187500610...
message); } public interface XMLMessageListener<T extends XMLMessage> extends IMessageListener<T> { } public interface XMLStatusMessageListener extends XMLMessageListener<XMLStatusMessage> { } ``` Then you can create your message listener as follows; ``` public class AStatusHandler implements XMLStatusMessageListe...
[ 0.08430081605911255, -0.04534342139959335, 0.5888745784759521, -0.13712692260742188, -0.17003467679023743, 0.09665582329034805, 0.6447051167488098, -0.3184385299682617, -0.12579472362995148, -0.6954688429832458, -0.21473996341228485, 0.5621268153190613, -0.4379739761352539, 0.0880664587020...
Is there any api for viewing html content from w/in your blackberry application? To be clear, I don't mean launching the browser on top of my app to view a page. But rather rendering the page w/in my app. Yes. Check out the net.rim.device.api.browser.field package or the Blackberry Browser section of application integr...
[ 0.07661184668540955, 0.17135046422481537, 0.4507165253162384, -0.13097544014453888, -0.019520005211234093, -0.17825938761234283, 0.11103646457195282, -0.03596138581633568, -0.21740898489952087, -0.3884093463420868, -0.09716707468032837, 0.6367659568786621, -0.19555741548538208, -0.15824079...
I am writing an application in C# that needs to run as a service but also have user interaction. I understand that services have no UI, etc, so I've divided up my program into a windows form application and a service that can communicate with each other. The problem I'm having is that I need the service to make sure t...
[ 0.27902570366859436, 0.4116626977920532, 0.32923105359077454, -0.21085399389266968, 0.14670094847679138, -0.1947363317012787, 0.4831239581108093, 0.009015482850372791, 0.016829337924718857, -0.69048011302948, -0.19859084486961365, 0.7745932936668396, -0.3142407536506653, 0.1877466440200805...
Local/System process which is invisible to the user. Does someone way around this? Is there some way to detect which user is currently logged on and run the new process as that user? I don't need to account for fast-user switching at this point. Something - anything - basic would suffice. I would be grateful for any h...
[ -0.057696495205163956, -0.12225914001464844, 0.4645758867263794, 0.11915741115808487, -0.06469038873910904, -0.46357524394989014, 0.6129583716392517, 0.18883800506591797, -0.1345345675945282, -0.9695401191711426, -0.14621414244174957, 0.9626709222793579, -0.26681527495384216, 0.12452732771...
general idea for this sort of thing is, if the user needs to interact with a service, they should launch a separate application. If you want to help them out, you can configure that separate application to start with windows by placing a shortcut in the start up menu. You can also build crash recovery into your applica...
[ 0.5506975054740906, -0.02976156212389469, 0.12667909264564514, 0.29441556334495544, -0.04375052824616432, -0.5253244638442993, 0.2963721752166748, 0.2606818377971649, -0.4173433780670166, -0.46766987442970276, 0.09515147656202316, 0.5498131513595581, -0.16133299469947815, 0.188695237040519...
to listeners is the way to go. When the forms application starts it can notify the service it wants to listen to events.
[ 0.6203007698059082, 0.050003085285425186, 0.632236123085022, -0.11865286529064178, -0.18815132975578308, -0.4154619574546814, 0.29669201374053955, 0.13743813335895538, -0.13884586095809937, -0.30748558044433594, -0.047673482447862625, 0.7812223434448242, 0.05059792101383209, -0.05359328165...
``` #include "iostream" #include "vector" class ABC { private: bool m_b; public: ABC() : m_b(false) {} ABC& setBool(bool b) { m_b = b; return *this; } bool getBool() const { return m_b; } }; void foo(const std::vector<ABC> &vec) {
[ 0.27174699306488037, 0.20483022928237915, 0.2275969684123993, -0.4146316945552826, 0.17387838661670685, 0.27850377559661865, 0.4615696668624878, -0.46799910068511963, -0.14582756161689758, -0.4087597131729126, -0.43783795833587646, 0.7346311211585999, -0.9916343092918396, -0.18818904459476...
vec[0].setBool(true); } int main(int argc, char*argv[]) { std::vector<ABC> vecI; ABC i; vecI.push_back(i); foo(vecI); } ``` When I compile it I get this error: passing `const ABC` as `this` argument of `ABC& ABC::setBool(bool)` discards qualifiers Any ideas why this would happen since the ob...
[ 0.21959203481674194, 0.07877238839864731, 0.43774649500846863, -0.4940493106842041, -0.03902534022927284, 0.07690077275037766, 0.31047290563583374, -0.28741657733917236, 0.05256873741745949, -0.39613768458366394, -0.3866576552391052, 0.6590510010719299, -0.6448249220848083, 0.1809473335742...
about the implementation... You see, these two functions exist: ``` T& vector<T>::operator[](int); T const& vector<T>::operator[](int) const; ``` When you call "vec[i]" on a const object, only the second one is valid, so it gets selected. But this overload obviously returns T const&, and that's the thing you ca...
[ -0.09989380091428757, -0.12203260511159897, 0.10031353682279587, 0.025850342586636543, 0.013238967396318913, -0.02927611768245697, 0.07432842254638672, -0.04549669474363327, -0.024890301749110222, -0.4824369251728058, -0.17881937325000763, 0.7571254968643188, -0.5816657543182373, 0.0133009...
What is the trick in MySql (Version 4) to write from PHP thtree Inserts and to be sure that we can link tables properly. ``` [Table1]-[LinkTable]-[Table2] ``` In the PHP code I create an Insert that add 1 row in table 1 and an other Insert that add an other row in table 2. I get both rows PK (primary key) with two S...
[ -0.06560711562633514, 0.2942410707473755, 0.591581404209137, 0.02162100374698639, -0.1942906528711319, 0.06194300204515457, 0.10959871113300323, -0.22237735986709595, -0.12993240356445312, -0.3472474217414856, 0.16179683804512024, 0.4876740872859955, -0.2769971191883087, -0.210187688469886...
get a lot of transaction something it doesn't link properly. How can I make a link between 2 tables in MySQL 4 that preserve data? I cannot use any stored procedure. your problem is here: > SELECTs that return me the last row of each tables. if you did something like this: SELECT MAX(id) FROM `table` you can get a w...
[ 0.16811546683311462, -0.20389147102832794, 0.21599945425987244, 0.2017858475446701, 0.03950963541865349, -0.25349777936935425, -0.05619422346353531, -0.4024542272090912, -0.452382355928421, -0.5410940051078796, 0.44305935502052307, 0.6918855309486389, -0.43327054381370544, 0.10409015417098...
the same table. you always will get the last id for your current connection.
[ 0.35827574133872986, -0.1629648357629776, 0.7621402740478516, 0.24445876479148865, 0.36307695508003235, 0.024361206218600273, -0.308931440114975, 0.22497041523456573, -0.5744206309318542, -0.6883606910705566, 0.2140786498785019, 0.27909886837005615, 0.02226881869137287, 0.01754222251474857...
There is ASMX, WCF, REST, and ADO.NET Data Services... I've used WCF and ASMX succesfully with Silverlight 2, but what about the others? What are the pros and cons of using each type of service with Silverlight 2? You have multitude of options - 1. RESTful webservice (if u need more than just CRUD) + ADO.net Data Serv...
[ 0.6715251803398132, -0.03234384208917618, 0.17654737830162048, 0.21730941534042358, -0.5672723650932312, -0.18705719709396362, -0.08304625749588013, -0.334002822637558, -0.18546725809574127, -0.6631738543510437, 0.32497158646583557, 0.7468496561050415, -0.41182538866996765, -0.057580880820...
What are the things I should be looking for when I produce a dependency graph? Or to put it another way, what are the characteristics of a good looking graph vs a bad one? Edit: The context here is my first look at my assemblies in NDepend. The biggest problem you can spot is definitely Dependencies Cycles. The tool ...
[ 0.4271579682826996, 0.11778084933757782, 0.38669997453689575, -0.11906830966472626, -0.14266102015972137, 0.020364297553896904, 0.08754000812768936, -0.2290164828300476, -0.5554238557815552, -0.9210118055343628, 0.23580096662044525, 0.6602192521095276, -0.5243116617202759, 0.13856641948223...
a cycle avoid the matrix to be triangular. The other ranges of problems are relative to your application structure: For example, is it normal that the UI uses directly the DB? or much worse, the DB depends on UI? You can write [code rules over LINQ queries (CQLinq)](http://www.ndepend.com/Features.aspx#CQL) to check ...
[ 0.4421275556087494, 0.081275075674057, 0.4757940471172333, -0.016039256006479263, -0.21914495527744293, 0.042626846581697464, 0.3277479410171509, -0.5984851121902466, -0.3644910454750061, -0.8894897103309631, 0.08657234162092209, 0.25147882103919983, -0.30172160267829895, 0.164711520075798...
what are DB types. let dbTypes = ThirdParty.Assemblies.WithNameIn("System.Data", "EntityFramework", "NHibernate").ChildTypes() // Ideally even DataSet and associated, usage should be forbidden from UI layer: // http://stackoverflow.com/questions/1708690/is-list-better-than-dataset-for-ui-la...
[ 0.18176546692848206, 0.1315510869026184, 0.38951143622398376, 0.033791281282901764, -0.21208196878433228, -0.10241660475730896, 0.2853787839412689, -0.5884197354316711, 0.005544543731957674, -0.7153218388557434, -0.09962001442909241, 0.21947519481182098, -0.240098774433136, 0.2983905673027...
I have a really cool website that allows people to upload images. Sometimes there images are really large, as seen in the below div: `![Overflow][1]` Is there a style that can I add to my DIVs to fix this? [Link](http://img242.imageshack.us/img242/6711/overflowds1.png) Set your [CSS overflow property](http://www.w3....
[ 0.4630599021911621, -0.17671675980091095, 0.557744026184082, -0.013853456825017929, -0.16508807241916656, -0.39399653673171997, 0.31623831391334534, 0.16008417308330536, -0.36870917677879333, -0.5843858122825623, -0.07615664601325989, 0.44755852222442627, -0.25030186772346497, -0.133716136...
I'm writing a small shell script that needs to reverse the lines of a text file. Is there a standard filter command to do this sort of thing? My specific application is that I'm getting a list of Git commit identifiers, and I want to process them in reverse order: ``` git log --pretty=oneline work...master | grep -v ...
[ -0.1196029931306839, 0.13853801786899567, 0.2943088412284851, -0.2630731761455536, -0.132358580827713, 0.49123746156692505, 0.1593978852033615, -0.12037333846092224, -0.05883443355560303, -0.6389258503913879, 0.1436326503753662, 0.3719392716884613, -0.4962775409221649, -0.09744584560394287...
up reversing the whole file), then `cut` to remove the unneeded line number. The above works for my application, but may fail in the general case because `cat -b` only numbers nonblank lines. Is there a better, more general way to do this? In [GNU coreutils](http://www.gnu.org/software/coreutils/), there's [tac(1)](h...
[ 0.4569532573223114, -0.1182267814874649, 0.40155693888664246, -0.15030808746814728, -0.0503169521689415, 0.053381871432065964, 0.047825317829847336, -0.06787749379873276, -0.2726863920688629, -0.478823184967041, -0.27693232893943787, 0.40438228845596313, -0.6363192200660706, -0.14675208926...
I know the Google Search Appliance has access to this information (as this factors into the PageRank Algorithm), but is there a way to export this information from the crawler appliance? External tools won't work because a significant portion of the content is for a corporate intranet. A free tool called Xenu turned o...
[ 0.5105870962142944, -0.04843796789646149, 0.049768052995204926, 0.3626481890678406, 0.04229871928691864, -0.19323481619358063, 0.1323065459728241, 0.2218727320432663, -0.2067219316959381, -0.614159882068634, 0.06093340739607811, 0.3952120244503021, -0.28329071402549744, 0.2555306851863861,...
I am working on a Word VBA macro app for 80 or so users. The office has high staff turnover, so training suffers, and so one of the self imposed requirements for this project is comprehensive, friendly documentation. However, to supplement this, and to save newbies having to open up a 100 page document when they want t...
[ 0.6576890349388123, 0.2666856050491333, 0.2505195140838623, -0.21826687455177307, 0.1973922997713089, 0.280417799949646, 0.36283108592033386, -0.007976509630680084, -0.002523542381823063, -0.6313019394874573, -0.08980664610862732, 0.5125163197517395, -0.2134208381175995, -0.137733310461044...
is currently a text file, but I was wondering if I should use a spreadsheet or csv for ease of editing by other staff in future.) Every control has a MouseMove event which refers to a function: getStatus(cID) that opens the file, grabs the line and displays it in the status label. It also grabs a few parameters from th...
[ -0.12469306588172913, -0.48553434014320374, 0.6933884024620056, 0.617822527885437, 0.48841726779937744, -0.31330883502960205, 0.10416761040687561, 0.23780648410320282, -0.16671423614025116, -0.6734623908996582, -0.3900611698627472, 0.32639309763908386, -0.03744986653327942, -0.097577974200...
constantly referring to a file? It feels fine to me, but I've been in it far too long, and I'm the only user accessing that file. There will be 80 constantly accessing it. Is MouseMove over a control the best way? Should I instead use co-ordinates? Most importantly (in terms of me having to do as little work as possi...
[ 0.4011453092098236, 0.18370351195335388, 0.591332197189331, 0.2987167239189148, 0.04613015800714493, -0.057136498391628265, 0.2822085916996002, 0.11319024115800858, -0.3610535264015198, -0.5138117074966431, 0.076534204185009, 0.5540441274642944, -0.32306069135665894, 0.028154566884040833, ...
if this is the only way to do it). Maybe when the form loads I could load ALL the possible status lines so they're ready for whenever the control is moused over. But then, maybe the loading time is negligible? Appreciate any ideas or thoughts - especially if VBA already has a whole range of functions to do this alread...
[ 0.41710495948791504, -0.18544337153434753, 0.6491940021514893, 0.16764254868030548, 0.10676758736371994, -0.15663465857505798, 0.34748733043670654, 0.09688534587621689, -0.3112087547779083, -0.4932084381580353, 0.14765281975269318, 0.6669509410858154, -0.20387206971645355, -0.1717803776264...
environment so macro security issues aren't a big concern for me - and if something goes wrong it's someone else's fault or problem :) Is this data entry app or do they just click stuff? Because often the field with focus is different to the item the mouse is hovering over, this can cause a lot of confusion. Constantl...
[ 0.336473673582077, -0.027484813705086708, 0.3729951083660126, 0.14305846393108368, 0.1630896031856537, -0.274187296628952, -0.09728411585092545, 0.16919083893299103, -0.42011526226997375, -0.8207823634147644, 0.2597348093986511, 0.813733696937561, -0.39286109805107117, -0.3085203170776367,...
things around without worrying. It's a lot of code but you should be able to generate most of that if you have a list of control names because the code should be identical. ie ``` Sub Control_MouseMove() DisplayStatus(Control) End sub ```
[ 0.31395840644836426, 0.056311216205358505, 0.39841461181640625, 0.13599586486816406, 0.1575135439634323, -0.27964240312576294, 0.24489910900592804, -0.024528516456484795, -0.21595314145088196, -0.6444388031959534, 0.02596205286681652, 0.5424565672874451, -0.5560275912284851, -0.05890943109...
I'm setting up Fact and Dim tables and trying to figure out the best way to setup my time values. AdventureworksDW uses a timekey (UID) for each time entry in the DimTime table. I'm wondering there's any reason I shouldn't just use a time value instead i.e. 0106090800 (My granularity is hourly)? "Intelligent keys" (in ...
[ 0.25124868750572205, -0.22753454744815826, 0.5417899489402771, 0.4354453384876251, 0.3124079704284668, -0.030895128846168518, 0.24310865998268127, 0.08438786119222641, -0.30930089950561523, -0.735548198223114, 0.1652383804321289, 0.4845845699310303, 0.2239966094493866, 0.2226024866104126, ...
the old value in the dimension. Further, with a midnight roll-over issue, the date part of your intelligent key might not match the actual date of the UTC vs. local time change. To prevent the key from becoming a problem, you can't use it for any calculation of any kind. In which case, it's little better than a simpl...
[ 0.2514626979827881, -0.25615981221199036, 0.4795466661453247, 0.5934059023857117, 0.22492346167564392, 0.036470912396907806, -0.009861144237220287, 0.15523993968963623, -0.08083820343017578, -0.5195979475975037, 0.10402386635541916, 0.4533671736717224, -0.05274660140275955, 0.4626193940639...
good design.
[ 0.23302426934242249, 0.1517803817987442, -0.10710211098194122, 0.1611006259918213, -0.03212645649909973, 0.02938099205493927, 0.3202703893184662, 0.16859136521816254, -0.23001481592655182, -0.634767472743988, 0.16181503236293793, 0.36625808477401733, 0.15496599674224854, -0.078606918454170...
Currently, Boost only implements the `random_device` class for Linux (maybe \*nix) systems. Does anyone know of existing implementations for other OS-es? Ideally, these implementations would be open-source. If none exist, how should I go about implementing a non-deterministic RNG for Windows as well as Mac OS X? Do AP...
[ -0.04590624198317528, 0.014102315530180931, 0.2889954149723053, 0.10576484352350235, -0.264090359210968, -0.22673775255680084, 0.16205164790153503, 0.286469429731369, -0.11027419567108154, -0.41876232624053955, 0.044047761708498, 0.7045705318450928, -0.12309936434030533, 0.015633475035429,...
I have a situation where I have many CALayers which animate in a "turn based" fashion. I animate the position on each of those CALayers, but they have the exact same duration. Once all of those CALayers are finished animating, a new "turn" is initiated and they animate changing positions again. The whole idea is that ...
[ 0.28519657254219055, 0.017573418095707893, 0.02010982483625412, 0.061559777706861496, -0.07460824400186539, 0.7012162208557129, -0.002280122134834528, 0.10839884728193283, 0.14605601131916046, -0.8038185238838196, 0.09226899594068527, 0.39548683166503906, 0.13095684349536896, 0.35986718535...
CALayer. But I was wondering, is there a simple solution to group animations, which are supposed to have the same durations, on several CALayers together? *Edited to include a reply to Kevin Ballard's question* My problem lies in this. I'm creating animations for each of my CALayers, then putting those in an NSArray...
[ 0.2145071029663086, 0.2504647672176361, 0.06268347054719925, 0.21874067187309265, -0.08823414146900177, 0.6957313418388367, -0.009838324040174484, 0.08884523063898087, -0.3971054255962372, -0.5563355088233948, -0.3324834406375885, 0.25613170862197876, -0.30350032448768616, 0.09032381325960...
that if I could group all of these animations into a single one, a lot more layers could be animated without a delay between animations. Thereby not ruining the illusions of a contiguous animation. If you attach animations to multiple CALayers within a single method, they will all commence at (effectively) the same tim...
[ 0.3502948582172394, 0.18652769923210144, 0.10972388088703156, 0.4097021818161011, -0.06887377053499222, 0.6422364711761475, -0.08336853981018066, -0.04883992671966553, -0.37674471735954285, -0.7290008068084717, -0.03207841143012047, 0.3017153739929199, 0.011396337300539017, 0.1408496648073...
the animation, but I don't cache the animations in an array of any sort, I'm not sure of thge overhead you have there. My animations are relatively simple, and created and attached to each CALayer on the fly. My sprites are 60px square and use a couple dozen possible images to represent their content. In some cases t...
[ 0.4994977116584778, 0.27438125014305115, 0.49914267659187317, 0.35486698150634766, -0.2239672988653183, 0.6422144770622253, -0.1323530524969101, 0.11932703107595444, -0.050536416471004486, -0.6052649021148682, 0.20587007701396942, 0.3871241509914398, 0.08994970470666885, 0.1738567501306533...
Is there a decent way with static HTML/XHTML to create common header/footer files to be displayed on each page of a site? I know you can obviously do this with PHP or server side directives, but is there any way of doing this with absolutely no dependencies on the server stitching everything together for you? Edit: Al...
[ 0.435450941324234, -0.030996229499578476, 0.16881521046161652, 0.32118934392929077, -0.3677464723587036, -0.2854900360107422, 0.3291235864162445, 0.15728363394737244, -0.45773133635520935, -0.44740891456604004, 0.0014953308273106813, 0.36555859446525574, -0.3246802091598511, -0.11007587611...
don't require scripting. There are three ways to do what you want Server Script ------------- This includes something like php, asp, jsp.... But you said no to that Server Side Includes -------------------- Your server is serving up the pages so why not take advantage of the built in [server side includes](http://e...
[ 0.5089648962020874, -0.04815404862165451, 0.3502432107925415, 0.17639897763729095, -0.2660715878009796, -0.20290705561637878, 0.1848732829093933, 0.007405080832540989, -0.15079309046268463, -0.7893439531326294, -0.08732785284519196, 0.46193966269493103, -0.3631031811237335, -0.037437550723...
It's been a while since I used GTK+, and the last time I did was in C, not using gtkmm and C++ as I am now. Anyway, I have what I think should be an easy problem to solve: I have a pop-up menu consisting of a list of radio buttons, and when I click one of them I want some action to occur. The code goes like this: ```...
[ -0.123271644115448, 0.07576364278793335, 0.2912602722644806, -0.23622490465641022, -0.0450909398496151, -0.10296690464019775, 0.18934331834316254, -0.45937103033065796, -0.09967391192913055, -0.23567542433738708, -0.08900868147611618, 1.121169090270996, -0.43790873885154724, -0.15923894941...
= new Gtk::RadioMenuItem( group, names[i], names[i] ); pItem->set_name( names[i] ); pItem->signal_activate().connect( sigc::mem_fun(*this, &MyClass::on_item_activated) ); pItem->show(); m_Menu.append( *Gtk::manage(pItem) ); } ``` The only problem I see is that `MyClass::on_item_act...
[ -0.09900633245706558, -0.13010531663894653, 0.4578971564769745, -0.28583306074142456, 0.01176312007009983, -0.24473102390766144, 0.4460364282131195, -0.40863940119743347, -0.40069544315338135, -0.5743880271911621, -0.6532415151596069, 0.9186511039733887, -0.4031713008880615, 0.248969271779...
new radio button activation. Whether I'm right or wrong, the question is the same: how best can I have my handler only take action once per click? Either I need the handler to get called only once, or I need something to check from inside it to know if the callback is a "duplicate" or not. You could use sigc::bind to s...
[ -0.14900052547454834, -0.37373846769332886, 0.7067371606826782, -0.09548236429691315, -0.01607363484799862, -0.3164671063423157, 0.4042125344276428, -0.5207051634788513, -0.22511990368366241, -0.5400816798210144, -0.31611162424087524, 1.1124701499938965, -0.627639889717102, -0.065750367939...
{ // Do some stuff } } ```
[ 0.6269426941871643, 0.7055844068527222, -0.06428202986717224, -0.0408383384346962, 0.22076673805713654, -0.22165346145629883, 0.2854706346988678, 0.28296032547950745, -0.06637755781412125, -0.34853413701057434, -0.42399680614471436, 0.3417397141456604, 0.03891855850815773, 0.07022583484649...
Here's an example of the query I'm trying to convert to LINQ: ``` SELECT * FROM Users WHERE Users.lastname LIKE '%fra%' AND Users.Id IN ( SELECT UserId FROM CompanyRolesToUsers WHERE CompanyRoleId in (2,3,4) ) ``` There is a FK relationship between `CompanyRolesToUsers` and `Users`, ...
[ -0.2221713364124298, 0.4217868447303772, 0.7945995330810547, -0.00801461935043335, 0.05395689234137535, 0.24287839233875275, -0.2507186233997345, -0.11337070912122726, -0.11076725274324417, -0.37525883316993713, 0.1907103955745697, -0.12026433646678925, -0.07745611667633057, 0.157686024904...
a PredicateExtensions class. The code for the straightforward filters looks something like this: ``` if (!string.IsNullOrEmpty(TextBoxLastName.Text)) { predicateAnd = predicateAnd.And(c => c.LastName.Contains( TextBoxLastName.Text.Trim())); } e.Result = context.Users.Wher...
[ -0.009970951825380325, -0.4027034342288971, 0.5781810283660889, -0.28765204548835754, 0.14501923322677612, -0.07046518474817276, 0.1861366182565689, -0.3526674807071686, 0.07020478695631027, -0.7529119849205017, -0.15655972063541412, 0.5342928171157837, -0.3755743205547333, -0.144034355878...
select the userid from here ???: var subquery = from u in CompanyRolesToUsers where u.RoleID in selectedRoles select u.UserId; //somehow transform this into an Expression ???: var subExpression = Expression.Invoke(subquery); //and add it on to the existing express...
[ -0.3484739661216736, -0.0935577005147934, 0.654495894908905, -0.1658172607421875, 0.3386465013027191, 0.23055848479270935, 0.24337100982666016, -0.19728733599185944, 0.07079359889030457, -0.6337172985076904, -0.4485507309436798, 0.47553104162216187, -0.42852458357810974, -0.120560564100742...
frustrating because I can write the stored procedure easily, but I'm new to this LINQ thing and I have a deadline. I haven't been able to find an example that matches up, but I'm sure it's there somewhere. Here's a subquery for you! ``` List<int> IdsToFind = new List<int>() {2, 3, 4}; db.Users .Where(u => SqlMethods....
[ -0.24080601334571838, 0.2904706299304962, 0.5036749839782715, -0.08418767154216766, 0.11049225926399231, 0.08832491934299469, 0.09347746521234512, -0.262411504983902, -0.17728246748447418, -0.5815635323524475, -0.08786606788635254, 0.4973548352718353, -0.16114477813243866, 0.31422689557075...
TextBoxLastName.Text.Trim())); ``` I strongly recommend extracting the string from the textbox before authoring the query. ``` string searchString = TextBoxLastName.Text.Trim(); predicateAnd = predicateAnd.And(c => c.LastName.Contains( searchString)); ``` You want to maintain good control over what gets sent to t...
[ -0.27884092926979065, 0.20135639607906342, 0.4936320185661316, -0.46706676483154297, 0.15989093482494354, -0.25294986367225647, 0.3836462199687958, -0.13271667063236237, -0.09855567663908005, -0.6401492953300476, -0.4136640131473541, 0.6649741530418396, -0.33981573581695557, 0.100000590085...
In PHP you have the create\_function() function which creates a unique named lambda function like this: ``` $myFunction = create_function('$foo', 'return $foo;'); $myFunction('bar'); //Returns bar ``` Is this actually any better (apart from being more easy) then just doing: ``` do{ $myFunction = 'createdFunction_'...
[ 0.09725739061832428, 0.21712249517440796, 0.3384096622467041, -0.030926773324608803, -0.4716898202896118, -0.11985940486192703, 0.11359870433807373, -0.309574693441391, 0.04160088673233986, -0.41863685846328735, 0.13435374200344086, 0.4129886031150818, -0.22630827128887177, 0.1725713163614...
of your code, whereas eval is only useful for the given scope. It may well be that eval() runs in the current scope, but function definitions get dumped into the global namespace anyway.[2] So whenever you define a function, it will be accessible everywhere else in your program. > Using eval() will clutter the global...
[ 0.01216843817383051, 0.0017641085432842374, 0.26687300205230713, -0.12326667457818985, -0.22685447335243225, -0.1712953746318817, 0.5861735343933105, -0.12832506000995636, -0.29614245891571045, -0.5980045795440674, -0.25433099269866943, 0.6222381591796875, -0.6800795793533325, 0.0508814007...
<http://au.php.net/create_function> ; <http://au.php.net/eval> [2] <http://au2.php.net/manual/en/functions.user-defined.php> [3] <http://au.php.net/create_function>
[ 0.11920572817325592, 0.012374728918075562, 0.19650347530841827, -0.2542700171470642, -0.3924202024936676, 0.30818167328834534, -0.1122436448931694, -0.47378212213516235, -0.35016486048698425, -0.20145776867866516, -0.4159553050994873, 0.598915159702301, -0.22976765036582947, -0.19282907247...
Is there a way to have directories within an `.app`? At the moment if I add a file into `Xcode`, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle. If you just want to copy existing files into your application bundle's Resources folder (which on iPhone...
[ 0.5462488532066345, 0.06027614325284958, 0.48558902740478516, 0.06081714853644371, 0.10461146384477615, 0.05040265992283821, 0.1017223373055458, -0.11656154692173004, -0.2971110939979553, -0.8155651092529297, -0.20417961478233337, 0.21597039699554443, -0.3440980315208435, -0.01811801083385...
change the radio button to "Create folder references for any added folders'. The folder you dragged in and all of its contents will be copied verbatim during building.
[ 0.3980162441730499, 0.19562681019306183, 0.6481090188026428, 0.26458224654197693, 0.40406614542007446, -0.7273584008216858, 0.48476192355155945, 0.015105027705430984, -0.03787216171622276, -0.44725877046585083, -0.345747172832489, 0.7170340418815613, -0.4112636148929596, 0.3337528705596924...
I am writing a simple web app using Linq to Sql as my datalayer as I like Linq2Sql very much. I have been reading a bit about DDD and TDD lately and wanted to give it a shot. First and foremost it strikes me that Linq2Sql and DDD don't go along too great. My other problem is finding tests, I actually find it very har...
[ 0.4315378963947296, 0.34432706236839294, -0.10583000630140305, 0.2598729431629181, 0.022944506257772446, -0.2058851569890976, 0.15796852111816406, 0.05147311091423035, 0.14031948149204254, -0.81339031457901, 0.4542211592197418, 0.5271131992340088, -0.012538162060081959, -0.0453597679734230...
you know to be frail / weak / likely to break * Follow the user scenario (what your user will be doing) and see how it will touch your code (often this means Debugging it, other times profiling, and other times it simply means thinking about the scenario) - whatever points in your code get touched by the user, those ar...
[ 0.5360358953475952, -0.07605999708175659, -0.30786100029945374, 0.20556515455245972, 0.22294791042804718, -0.09203857183456421, 0.5835064053535461, -0.14415116608142853, 0.12364093214273453, -0.5977905988693237, 0.15053986012935638, 0.5368697643280029, -0.09528734534978867, 0.1393595635890...
write test cases out there, but unless you are working in a large organization that requires documented test cases, your best bet is to think of all the parts in your code that you don't like (that aren't "pure") and make sure you can test those modules thoroughly.
[ 0.8502105474472046, 0.32025405764579773, -0.4633912742137909, 0.43083256483078003, 0.22943595051765442, -0.25319069623947144, 0.3865365982055664, -0.17585031688213348, -0.09838049113750458, -0.5263944864273071, -0.009880277328193188, 0.5618139505386353, 0.09556550532579422, -0.426828444004...
I'd like to just create a thread, then call CloseHandle immediately and let the thread die on its own so that I don't have to do extra clean-up work in the 'original' thread (not that cleanup is hard in itself, but it means a fair amount of extra book-keeping which I'd like to avoid). MSDN says that calling CloseHandl...
[ 0.9082860946655273, 0.07895968109369278, 0.21439941227436066, -0.058173272758722305, 0.1559530347585678, -0.47198286652565, 0.5428289771080017, 0.14664262533187866, -0.04588975012302399, -0.18413332104682922, -0.15854910016059875, 0.34218063950538635, -0.24750782549381256, 0.43277713656425...
the thread unless I'm going to need it elsewhere.
[ 0.7533811330795288, -0.2824663817882538, 0.4452214241027832, 0.3208104968070984, 0.17887024581432343, 0.09705530852079391, 0.09157832711935043, -0.028479931876063347, -0.41049447655677795, -0.35296982526779175, 0.23586945235729218, 0.00318344053812325, -0.3311595916748047, 0.26316481828689...
I have rows of text data that can vary between 0 and 100, and all need to be visible on the screen at one time. The default behavior is fine for the grid until the rows \* rowHeight > gridHeight. Basically I need a hook into the item height, or row height to calculate it based on the height of the grid. I've set paddi...
[ 0.1613224297761917, 0.12262699753046036, 0.6919962167739868, -0.2970665991306305, -0.04146723449230194, 0.1516387015581131, 0.01973089948296547, -0.505539059638977, -0.00367122795432806, -0.5641394853591919, -0.011997233144938946, 0.4960787296295166, -0.1945895552635193, -0.009723499417304...
//setRowHeight(10); } override protected function setRowHeight(v:Number):void { super.setRowHeight(v); } ]]> </mx:Script> </mx:DataGrid> ``` setRowHeight() helps, but the itemRender for the cell bigger than the cell, if I set the row height to something like 10. Thank you inferis, that ...
[ -0.022585323080420494, -0.07332368940114975, 0.6811447143554688, -0.1323082000017166, -0.03402963653206825, -0.09700695425271988, 0.07501913607120514, -0.5841074585914612, -0.10235397517681122, -0.5955638885498047, -0.21641604602336884, 0.4081902503967285, -0.37757936120033264, -0.34624144...
import mx.containers.Panel; import mx.core.Application; import mx.events.ResizeEvent; protected function OnResize(event:ResizeEvent):void { this.invalidateDisplayList(); } /** * @private * Sizes and positions the column headers, columns, and items based on the * size of the DataGrid....
[ -0.026679575443267822, -0.10675453394651413, 0.4120166301727295, -0.09776069968938828, 0.35111984610557556, 0.3282542824745178, 0.3373206555843353, -0.32689133286476135, -0.5026349425315857, -0.5211588740348816, -0.419026255607605, 0.5175890326499939, -0.6911922693252563, 0.229188159108161...
unscaledHeight:Number):void { if( this.collection.length > 0 ) // so don't divide by zero { var appHeight:Number = Application.application.height; var appMinusMenuHeight:Number = appHeight - Application.application.hboxPrintBar.height; var boxHeight:Number = Application.application.vboxV...
[ 0.32732126116752625, -0.0895683690905571, 0.7292459607124329, -0.10168595612049103, 0.3237949013710022, 0.13199859857559204, 0.41963624954223633, -0.5866049528121948, -0.20350003242492676, -0.3259572982788086, -0.1836293339729309, 0.33925315737724304, -0.40234872698783875, 0.05377421528100...
(appMinusMenuHeight - this.headerHeight) * 0.93; var calcHeight:Number = gridHeight / this.collection.length; var calcHeightFloor:Number = Math.floor( calcHeight ); setRowHeight( calcHeightFloor ); //var p:Panel = this.parent as Panel; //p.title = calcHeightFl...
[ 0.028104208409786224, 0.22021210193634033, 0.4303738474845886, -0.032501883804798126, 0.17789560556411743, 0.2953643500804901, 0.16083002090454102, -0.41671931743621826, -0.29364749789237976, -0.5176852345466614, -0.6208153367042542, 0.3509170711040497, 0.027250174432992935, 0.065488956868...
this.setStyle("fontSize",calcHeightFloor); } } super.updateDisplayList(unscaledWidth,unscaledHeight); } ]]> </mx:Script> </mx:DataGrid> ```
[ -0.15377794206142426, -0.23363037407398224, 0.6913799047470093, -0.08557815849781036, 0.1741313934326172, -0.24611133337020874, 0.30641889572143555, -0.20006580650806427, -0.14022456109523773, -0.9540662169456482, -0.48234766721725464, 0.5441814064979553, -0.5824205875396729, -0.0922611057...
I want to create analog of program [conky](http://conky.sourceforge.net/screenshots.html). What is the best way to draw information on a OS X desktop? NSWindow has a method, `setLevel:`, that lets you control how the window is positioned compared to other windows. From my own experience, you might want to try feeding i...
[ 0.652083158493042, -0.20487751066684723, 0.2331116795539856, 0.16328683495521545, -0.09375641494989395, 0.2527906894683838, -0.09330141544342041, -0.10346456617116928, -0.24206022918224335, -0.667500913143158, 0.3291766941547394, 0.5173999667167664, -0.20645904541015625, 0.1088779270648956...
to keep your window pinned to the desktop during an Expose event.
[ 0.43040260672569275, -0.16457617282867432, 0.09679815173149109, 0.16278904676437378, 0.13503795862197876, -0.2812493145465851, 0.23356619477272034, -0.12938091158866882, -0.38670018315315247, -0.5451229214668274, -0.31751418113708496, 0.4647393822669983, -0.17824703454971313, -0.3403053283...
Ok, so my site is centric to a lot of dynamic user entered images for different user defined objects throughout. So I have many objects, and those objects have images. Is it good practice to treat images like an object since the "Image Name" and "Image Bytes" columns are repeated many times? Or is it more sensible ju...
[ 0.46160200238227844, 0.05233919247984886, 0.3464878499507904, 0.14258837699890137, -0.22562094032764435, 0.010002000257372856, 0.01335144229233265, 0.16803549230098724, -0.4457646906375885, -0.5552166700363159, 0.3117388188838959, 0.2764626145362854, -0.307742714881897, 0.19530992209911346...
there are several tables with multiple images per object... so I guess it would be better???? Opinions? I generally have a Files table that stores files more generically. Then in your other tables, you could have a column for each image (file) which is just a reference into the files table. Your files table would hav...
[ 0.6605959534645081, 0.18321412801742554, 0.3864923119544983, 0.42743706703186035, -0.12064655125141144, 0.16118061542510986, -0.2992994785308838, 0.1463935524225235, -0.5318974852561951, -0.6962628364562988, 0.40924307703971863, 0.5037790536880493, -0.3961477279663086, 0.15693308413028717,...
that's what your after but if anyone else gets that idea--just don't do it!
[ 0.45099177956581116, 0.28816860914230347, -0.025173138827085495, 0.10010983049869537, -0.2115710824728012, -0.26386505365371704, 0.7566739320755005, 0.21863991022109985, 0.010286924429237843, 0.023100964725017548, 0.2267599254846573, 0.3133377730846405, -0.4125550389289856, 0.1200544461607...
Is there a proper way yet to unit test views with the aspx view engine? I've been playing with various ways that will let me get a parseable string as a result like : ``` view.RenderView(viewContext); ``` But I'm not having any luck so far. Most of what I've read strays into integration test territory. Integration...
[ 0.4780714213848114, -0.004436298739165068, 0.3422715961933136, 0.06107816472649574, -0.2318384349346161, -0.0835469514131546, 0.1622340977191925, -0.06436732411384583, -0.05264793336391449, -0.6763920783996582, 0.3326895833015442, 0.6754162311553955, -0.06844346225261688, -0.02862164564430...
to lead to a fragile test base, that will break the moment you make the slightest change to the layout.
[ 0.4296799600124359, 0.10423474758863449, -0.06024838984012604, 0.1710255891084671, 0.5682127475738525, -0.3194340765476227, 0.4572698771953583, -0.03931688144803047, -0.02235081046819687, -0.49519824981689453, -0.11430122703313828, 0.018571745604276657, -0.06422439217567444, 0.279904723167...
[To an earlier question of mine, invovling VBC and NAnt with WinForms](https://stackoverflow.com/questions/417261/vbc-nant-error-compiling-winform), I have since come up with a better way of stating this. Within vbproj file, you have the following: ``` <ItemGroup> <None Include="My Project\Settings.settings"> <...
[ 0.08523517847061157, 0.19621720910072327, 0.4957423508167267, -0.29962998628616333, 0.1113160252571106, 0.1702892929315567, 0.23901623487472534, -0.45514026284217834, -0.18084120750427246, -0.6422609090805054, -0.3538770079612732, 0.4631923735141754, -0.11301329731941223, 0.045832570642232...
from Visual Studio, and running it directly on the command line yields: ``` ... My Project\Settings.Designer.vb(67) : error BC30002: Type 'My.MySettings' is not defined. Friend ReadOnly Property Settings() As Global.My.MySettings ...\My Project\Settings.Designer.vb(69) : error BC30456: 'My' is not a member of ...
[ 0.16125762462615967, 0.022165164351463318, 0.21339435875415802, -0.08118340373039246, -0.07441924512386322, 0.11626836657524109, 0.3425616919994354, -0.22620446979999542, -0.19459325075149536, -0.4831857681274414, 0.004050150513648987, 0.7319605946540833, -0.4903262257575989, 0.13588319718...
with looking at the build string within visual studio is that it's not actually calling vbc.exe to build from visual studio. All builds in visual studio happen with the in-memory compiler instead of the command line compiler (true for C# as well). The command that looks like vbc.exe ... is a generated string that isn...
[ 0.746103048324585, 0.13491182029247284, 0.1921480894088745, -0.25718849897384644, -0.14120732247829437, -0.07510943710803986, 0.39525118470191956, -0.20014837384223938, -0.0911385789513588, -0.6716635227203369, -0.039801329374313354, 0.6754788756370544, -0.14691810309886932, 0.045699592679...
Once the build is completed search for vbc.exe within that file. It will have the actual command line needed to build your project.
[ 1.0277398824691772, 0.17700478434562683, 0.4504585564136505, 0.09886199235916138, 0.1326538324356079, -0.16894108057022095, 0.3007657527923584, 0.028920553624629974, -0.014185748994350433, -0.4856233298778534, -0.22403860092163086, 0.5242902636528015, 0.2927335798740387, 0.3071882426738739...
I have a pointer to pointer array. I am assigning each row in the while loop below and the printf inside the while loop shows each is assigned my id number 1-20. After, out side of the while loop I iterate through the array and every element is written with id 20? Any help is greatly appreciated. (FYI- I am using...
[ -0.08919290453195572, 0.37555214762687683, 0.4143815040588379, -0.29193177819252014, 0.0510738231241703, 0.2838284969329834, 0.0009806437883526087, -0.5899465680122375, -0.2451121062040329, -0.8501200675964355, 0.10372694581747055, 0.41168412566185, -0.2754017114639282, -0.0770078748464584...
char *myData[500][2]; while(rc == SQLITE_ROW){ tableData[r] = myData[r]; printf(*tableData[r]); <-- Displays id 1-20 fine r=r+1; }//end while tableData[r+1] = NULL;//null terminated array for (a=0; a<r; a++){ printf("\n"); printf(*tableData[a]); <--Displays 20 elements all of id 20? } outputF...
[ 0.06915274262428284, -0.0013913672883063555, 0.4464508593082428, -0.15718968212604523, 0.04188233241438866, 0.21643321216106415, 0.19095537066459656, -0.7058610320091248, -0.4467657804489136, -0.35363808274269104, -0.06157110631465912, 0.7078403234481812, -0.3759159743785858, -0.0135999415...
its value is ever going to change and therefore terminate the loop * What the initial value of r is * What the actual contents of myData are I created this code based on what you posted, which produces the same output from both loops. So either I've missed something in what you did post, or you left something importan...
[ 0.12760092318058014, -0.1142723336815834, 0.5865158438682556, -0.29887422919273376, 0.21470236778259277, 0.07710768282413483, 0.4669908285140991, -0.362410306930542, -0.12894973158836365, -0.3844718933105469, 0.018165497109293938, 0.3267425298690796, -0.2840239703655243, 0.2292069941759109...
myData[r][1] = dummy+r; tableData[r] = myData[r]; printf(*tableData[r]); printf("\n"); r=r+1; }//end while int a; for (a=0; a<r; a++){ printf(*tableData[a]); printf("\n"); } } ```
[ -0.34043845534324646, 0.050412025302648544, 0.4536650776863098, -0.49600887298583984, 0.20061185956001282, 0.24667325615882874, 0.3524737060070038, -0.3635045289993286, -0.10847244411706924, -0.2865866422653198, -0.6324881911277771, 0.6063482165336609, -0.4133346676826477, 0.01689269021153...
I'm writing a program as follows: * Find all files with the correct extension in a given directory * Foreach, find all occurrences of a given string in those files * Print each line I'd like to write this in a functional way, as a series of generator functions (things that call `yield return` and only return one item...
[ 0.13204456865787506, -0.019132329151034355, 0.7263267636299133, -0.26776325702667236, 0.09989398717880249, 0.12196604907512665, 0.22900311648845673, -0.2870059907436371, -0.013429009355604649, -0.8167311549186707, -0.19778013229370117, 0.6077046394348145, -0.28909239172935486, -0.178307861...
but what I'd also like to do is print some statistics at the end. Something like this: ``` Found 233 matches in 150 matching files. Scanned 3,297 total files in 5.72s ``` The problem is, writing the code in a 'pure functional' style like above, each item is lazily loaded. You only know how many files match in tot...
[ 0.4530468285083771, 0.40918776392936707, 0.2759944498538971, 0.09076327085494995, -0.14429618418216705, 0.035771679133176804, 0.15253974497318268, -0.610701858997345, -0.1600920706987381, -0.7212316393852234, 0.2358045130968094, 0.4732376039028168, -0.24273253977298737, -0.0025394107215106...
can think of many ways to solve this problem, but all of them seem to be somewhat ugly. It strikes me as something that people are bound to have done before, and I'm sure there'll be a nice design pattern which shows a best practice way of doing this. Any ideas? Cheers In a similar vein to other answers, but taking a ...
[ 0.7827754020690918, 0.19113537669181824, 0.27637961506843567, 0.4157569110393524, 0.003723613452166319, 0.2953481078147888, 0.06578294932842255, -0.0018883527955040336, -0.34066343307495117, -0.5869970917701721, 0.24350346624851227, 0.4791574478149414, 0.19588735699653625, 0.19630853831768...