text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
How do you solve the infinite login loop problem when you are using cookieless sessions and cannot change the name of login.aspx to a httphandler ? i.e. When a user with admin rights hits the logout button and the return url to a restricted page is passed to login.aspx then another user without admin rights try's to l...
[ 0.146998330950737, -0.24133433401584625, 0.3562188744544983, 0.2714743912220001, 0.007939493283629417, -0.11225154995918274, 0.5209468007087708, 0.05977671593427658, -0.46120592951774597, -0.49638786911964417, -0.09433300048112869, 0.32752230763435364, -0.3666325807571411, 0.11847896873950...
auth ticket seems to be stripped from the url when redirected back to the login page. **EDIT:** Because this application is already in production I cannot alter the page flow of the login/logout/timeout process or rename the login page. Check if the user is authorized to access the page in the returnUrl, after log in...
[ 0.24417078495025635, -0.04930710047483444, 0.8322780132293701, 0.12656177580356598, 0.06613781303167343, -0.2032826989889145, 0.33590593934059143, 0.014600632712244987, -0.15258297324180603, -0.9056572318077087, -0.3940214216709137, 0.5478970408439636, -0.29489532113075256, 0.2381168305873...
the user can access. To get the user Principal: ``` var roles = System.Web.Security.Roles.GetRolesForUser(username); var principal = new System.Security.Principal.GenericPrincipal( new System.Security.Principal.GenericIdentity(username), roles ); ```
[ -0.3859173357486725, -0.287624329328537, 0.6523902416229248, 0.1554207056760788, 0.17761361598968506, 0.10429053008556366, 0.2703295052051544, 0.3055359125137329, -0.20285694301128387, -0.5710636377334595, -0.44453856348991394, 0.5129057765007019, -0.25990381836891174, 0.7362678050994873, ...
I'll just start out by saying I am not at all experienced with creating Perl modules so I'm sorry if I'm way off here. Let's say I am creating a few modules: ``` foo::bar foo::bar::a foo::bar::b ``` Since I don't know what they are called, I am calling the a.pm and b.pm modules "sub modules" since they are related ...
[ 0.33120179176330566, 0.14853644371032715, 0.23168770968914032, -0.3787911534309387, -0.15378187596797943, -0.046971116214990616, 0.21509556472301483, -0.19901923835277557, -0.34230881929397583, -0.31262633204460144, -0.05835089087486267, 0.6146956086158752, -0.43726304173469543, 0.03482581...
want to do something like this: ``` use foo::bar qw(:a :b); ``` In my mind, that would give my script access to everything in bar.pm, a.pm, and b.pm. I tested something like this, and I was obviously wrong. Is something like this possible? I suppose I could have bar.pm use a.pm and b.pm, and then have "wrapper" fu...
[ 0.6971482038497925, 0.30093973875045776, 0.08533985912799835, -0.050931815057992935, 0.08847428113222122, -0.15829943120479584, 0.21467475593090057, -0.18399055302143097, -0.1335093230009079, -0.30335018038749695, 0.04428594559431076, 0.38575488328933716, -0.3047081232070923, 0.06422819197...
a Plugin or Mixin approach instead. There are some modules on [CPAN](http://search.cpan.org) that can help with this. Here's the custom `import` that I wrote for Test::Data: ``` sub import { my $self = shift; my $caller = caller; foreach my $package ( @_ ) { my $full_package = "Te...
[ 0.5078856945037842, -0.003627518890425563, 0.18257687985897064, -0.4217580258846283, 0.03946666792035103, -0.03464462608098984, 0.4391528367996216, -0.488885760307312, 0.07057208567857742, -0.22903703153133392, -0.14744916558265686, 0.728898823261261, -0.45372143387794495, -0.0359274260699...
{ carp "Could not require Test::Data::$package: $@"; } $full_package->export($caller); } } ```
[ 0.20177409052848816, 0.1479814499616623, -0.12684133648872375, 0.009755619801580906, 0.006944062653928995, -0.0034535990562289953, 0.223913311958313, 0.2764763832092285, -0.12280172109603882, -0.36237794160842896, -0.16266125440597534, 0.5979575514793396, -0.09235987067222595, 0.2405119538...
I followed ScottGu's advice on enabling javascript intellisense using a -vsdoc.js file. <http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx> I now get intellisense when I write javascript inside my HTML/ASPX files. I write most of my javascript in separate javascript files that I a...
[ -0.029091667383909225, 0.09252478927373886, 0.3690461218357086, -0.16151338815689087, -0.18002618849277496, -0.2782001793384552, 0.1640280783176422, 0.30962198972702026, 0.03860137239098549, -1.1007630825042725, -0.000906177912838757, 0.4765927195549011, -0.06997925043106079, -0.1152421832...
Is it possible to write a REGEX (search replace) that when run on an XML string will output that XML string indented nicely? If so whats the REGEX :) > Is it possible to write a REGEX (search replace) that when run on an XML string [...anything] No. Use an XML parser to read the string, then an XML serialiser to wri...
[ 0.04752160981297493, -0.20608945190906525, 0.6868286728858948, -0.2272011637687683, -0.035467419773340225, -0.08002947270870209, 0.3828672468662262, -0.39643099904060364, -0.3230992257595062, -0.5490463376045227, -0.33197155594825745, 0.6110478639602661, -0.4211919605731964, -0.23495540022...
I'm new to TFS build. I am looking at the .proj file right now, and I see it references the microsoft.teamfoundation.build.targets file. Which file do I add my custom tasks to? And where is that file located (if it's not the .proj file)? I want to add a custom task to run dotfuscator (command line tool) and pass it ...
[ 0.6800420880317688, -0.16749395430088043, 0.46358272433280945, -0.0925031378865242, -0.033829256892204285, -0.054544273763895035, 0.35110628604888916, -0.15785102546215057, -0.30259454250335693, -0.9555298686027527, 0.0369248241186142, 0.6784513592720032, -0.278324693441391, -0.19342434406...
has its own options so it depends on platform, but here is the somewhat long-winded way that works on DOM Level 3 LS-compliant implementations: ``` input= implementation.createLSInput(); input.stringData= unprettyxml; parser= implementation.createLSParser(implementation.MODE_SYNCHRONOUS, null); document= parser.parse(...
[ -0.05533366650342941, -0.24149703979492188, 0.8405308127403259, -0.27667567133903503, -0.027961459010839462, 0.11798685789108276, 0.4172888696193695, -0.5266450643539429, -0.3572581708431244, -0.5448319315910339, -0.30576664209365845, 0.5779895782470703, -0.47608938813209534, -0.0249999687...
I'm developing a card game that uses rummy-style sets of three cards. From a random selection of cards, I need the algorithm to pick out which cards would get me the highest number of sets. By "rummy-style sets of three" I mean: * All three cards have the same value, like three Jacks. OR * All three cards are of the ...
[ 0.27737516164779663, 0.14574703574180603, 0.37385112047195435, -0.28001973032951355, -0.2138773649930954, 0.20668020844459534, 0.09141790121793747, -0.567169725894928, -0.5025044679641724, -0.2923800051212311, -0.005785561166703701, 0.2876259386539459, -0.3342895805835724, 0.16174240410327...
I would get out of it, and it would not be optimum. The optimum sets in this case are: { {6D, 7D, 8D}, {7C, 8C, 9C} } I have tried brute force (permute through all the given cards, see what matches in order in that permutation), but that proved too slow. The problem feels like it has similarities to other solved pr...
[ 0.013316750526428223, -0.10587819665670395, 0.22898341715335846, -0.2574542164802551, 0.09493866562843323, 0.2646852433681488, 0.10506003350019455, -0.7468363046646118, -0.2790377140045166, -0.6481343507766724, -0.004152351059019566, 0.4187130630016327, -0.23013362288475037, 0.038854751735...
8 you get 336). This is pretty fast. Check which ones of the triples are "rummy-style" sets, and store them in a table as integer triples (the integer denote the sequence numbers of the cards). That's the first step. The second step is now to do combinatorial optimization and calculate the optimal choice. The simple w...
[ 0.04225744679570198, -0.07200314849615097, 0.4217747449874878, -0.11883595585823059, -0.14223988354206085, 0.06149373948574066, 0.21892334520816803, -0.8607137203216553, -0.7198488116264343, -0.27195629477500916, 0.008219508454203606, 0.4247540235519409, -0.29205042123794556, -0.0190561804...
the 'i'th triple is *not* in the solution, and continue from i+1 recursively. There are many optimizations to this, but for the small sets it's going to work pretty fine. Here how it works with your example: Cards: 6D, 7D, 7C, 7H, 8D, 8C, 9C, 10H Let's enumerate all the possible triples: ``` Cards Index trip...
[ 0.17361420392990112, 0.2285439670085907, 0.6104428172111511, -0.16255885362625122, -0.14612151682376862, 0.1690344214439392, 0.07351621985435486, -0.7170537114143372, -0.28972503542900085, -0.43256425857543945, 0.030481969937682152, 0.36010658740997314, -0.17481598258018494, 0.043383829295...
<1, 2, 3> CLASHES with <0, 1, 4> Decide on <2, 5, 6>: <2, 5, 6> INCLUDED: Solution with 2 sets (* BEST SOLUTION) <2, 5, 6> EXCLUDED: Solution with 1 sets <0, 1, 4> EXCLUDED: Decide on <1, 2, 3>: <1, 2, 3> INCLUDED:
[ -0.6267780065536499, -0.14570197463035583, -0.05084650218486786, 0.17181704938411713, -0.16350924968719482, 0.5704085826873779, 0.051602527499198914, -0.47791698575019836, -0.04252248257398605, -0.34646570682525635, -0.41871631145477295, -0.07860135287046432, -0.40538841485977173, -0.21474...
<2, 5, 6> CLASHES with <1, 2, 3> Solution with 1 sets <1, 2, 3> EXCLUDED: Decide on <2, 5, 6>: <2, 5, 6> INCLUDED: Solution with 1 set
[ -0.466760516166687, -0.2324615716934204, -0.07864799350500107, 0.1335648149251938, -0.0478382483124733, 0.34380432963371277, 0.07699596136808395, -0.7350193858146667, -0.016693945974111557, -0.33935365080833435, -0.4274386167526245, 0.0175867211073637, -0.5357417464256287, -0.3463099896907...
<2, 5, 6> EXCLUDED: Solution with 0 sets ``` Then you pick the solution with most sets (marked with asterisk). This is pretty simple to implement. Try it!
[ -0.14634650945663452, -0.07449105381965637, 0.05625109374523163, 0.05303765833377838, -0.047551363706588745, -0.2775125205516815, 0.35032057762145996, -0.4116609990596771, -0.04632002115249634, -0.6837910413742065, -0.3131461441516876, 0.43519824743270874, -0.3484472930431366, -0.094376482...
I'm trying to import a spreadsheet to our database using SSIS. For some reason SSIS wants to believe two of the columns are of type Double, when they contain character data. I've tried remapping the columns to be nvarchar(255) but it still doesn't want to select the data it thinks is double, because there are character...
[ 0.2207755446434021, 0.43435806035995483, 0.06999402493238449, -0.034034255892038345, -0.22744835913181305, 0.16145695745944977, 0.32211780548095703, -0.15121252834796906, -0.17247287929058075, -0.7814558744430542, 0.24308514595031738, 0.2433946579694748, -0.6420286893844604, 0.118891328573...
output columns don't match. Why is SSIS insisting that these columns are Double? How can I force it to realize these are strings? Why does everything from microsoft have to not quite work correctly? **EDIT:** I found this: * [PRB: DTS Wizard may not detect Excel column type for mixed data in SQL Server](https://s...
[ 0.14921706914901733, 0.10094928741455078, 0.2786938548088074, -0.07135151326656342, -0.45434996485710144, 0.05704493448138237, 0.17830128967761993, -0.08590520918369293, -0.09745892137289047, -0.3123331665992737, 0.08801387995481491, 0.16921120882034302, -0.4685649871826172, 0.048708651214...
that is the issue not SSIS. Excel samples the 1st few rows and then infers the data type even if you explicitly set it to text. What you need to do is put this into the Excel file connection string in the SSIS package. This instruction tells Excel that the columns contain mixed data types and hints it to do extra check...
[ -0.1232515349984169, 0.18192309141159058, 0.31418779492378235, -0.03727760165929794, -0.13912494480609894, -0.04231191426515579, 0.02772539108991623, -0.24560503661632538, 0.043565455824136734, -0.8368774056434631, -0.13488875329494476, 0.336038202047348, -0.4867103695869446, -0.3886163532...
SSIS to import that. * <http://blogs.acceleration.net/ryan/archive/2005/01/11/477.aspx>
[ -0.42325344681739807, -0.2633494436740875, 0.2023746520280838, 0.12845894694328308, -0.06924571841955185, 0.17614127695560455, 0.29853561520576477, 0.23509985208511353, -0.38065657019615173, -0.863598108291626, -0.5393652319908142, 0.2775425314903259, -0.20971718430519104, -0.2460665851831...
I've heard that "everyone" is using parameterized SQL queries to protect against SQL injection attacks without having to vailidate every piece of user input. How do you do this? Do you get this automatically when using stored procedures? So my understanding this is non-parameterized: ```vb cmdText = String.Format("S...
[ 0.22392410039901733, 0.12340942025184631, 0.19213412702083588, -0.02452867478132248, -0.06841200590133667, -0.08834904432296753, 0.3361082375049591, -0.4104294180870056, -0.25254976749420166, -0.26462337374687195, -0.042172159999608994, 0.7766945958137512, -0.3749070465564728, 0.1126600727...
advantages to using parameterized queries besides the security considerations? Update: This great article was linked in one of the questions references by Grotok. <http://www.sommarskog.se/dynamic_sql.html> The `EXEC` example in the question would **NOT** be parameterized. You need parameterized queries (prepared stat...
[ 0.13251903653144836, -0.23453177511692047, 0.29086628556251526, 0.193635493516922, -0.36615967750549316, -0.047613196074962616, 0.20803238451480865, -0.2770254909992218, -0.1790965497493744, -0.26073208451271057, -0.10599423199892044, 0.8389042615890503, -0.3087441325187683, 0.138952329754...
foo FROM bar WHERE baz= @Baz" Using cn As New SqlConnection("Your connection string here"), _ cmd As New SqlCommand(sql, cn) cmd.Parameters.Add("@Baz", SqlDbType.VarChar, 50).Value = Baz Return cmd.ExecuteScalar().ToString() End Using End Function ``` Stored procedures are sometimes ...
[ 0.18429701030254364, 0.25241613388061523, 0.42089152336120605, -0.48524993658065796, -0.04582413658499718, 0.1437726616859436, 0.39731723070144653, -0.2926586866378784, -0.12052000313997269, -0.08168366551399231, -0.13030850887298584, 0.7364422678947449, -0.6976912021636963, 0.177756443619...
DELETE, etc (just about everything but EXEC) for the application user account and get some protection that way.
[ 0.0180034339427948, 0.19093872606754303, 0.3072708547115326, 0.24551105499267578, 0.1347586065530777, -0.616213321685791, 0.3635411560535431, 0.30504029989242554, -0.2559920847415924, -0.21555444598197937, -0.6191014647483826, 0.5112842321395874, -0.11708421260118484, 0.09098587930202484, ...
If I place it in the .dpr or any other unit will it be considered globally? Project -> Options -> Delphi Compiler -> Code generation, set "String format checking" OFF.
[ 0.1245093122124672, -0.0913558378815651, 0.24548649787902832, 0.025664400309324265, 0.18875788152217865, -0.3497515916824341, -0.041608184576034546, -0.0826394259929657, -0.10885338485240936, -0.5237157940864563, -0.3324708044528961, 0.3791559636592865, -0.12635494768619537, 0.103362508118...
I'm trying to use String.Format("{0:c}", somevalue) in C# but am having a hard time figuring out how to configure the output to meet my needs. Here are my needs: 1. 0 outputs to blank 2. 1.00 outputs to $1.00 3. 10.00 outputs to $10.00 4. 100.00 outputs to $100.00 5. 1000.00 outputs to $1,000.00 I've tried String.For...
[ 0.19820277392864227, 0.18041382730007172, 0.5261725187301636, -0.20650185644626617, 0.07101133465766907, 0.22182656824588776, 0.17514793574810028, -0.2890382409095764, 0.05032295361161232, -0.6775811910629272, 0.10287810862064362, 0.674547553062439, -0.05954184755682945, 0.0386033579707145...
cases above? All of the documentation I've read only details the basics and doesn't touch on this type of scenario. If you use ``` string.Format("{0:$#,##0.00;($#,##0.00);''}", value) ``` You will get "" for the zero value and the other values should be formatted properly too.
[ -0.036406509578228, 0.16765911877155304, 0.15762650966644287, 0.07072819769382477, 0.2992747128009796, -0.21915876865386963, 0.15762145817279816, -0.24233916401863098, -0.12481813132762909, -0.5074698328971863, -0.002479058923199773, 0.823175847530365, -0.2303391993045807, 0.13101708889007...
I am a noob when it comes to SQL syntax. I have a table with lots of rows and columns of course :P Lets say it looks like this: ``` AAA BBB CCC DDD ----------------------- Row1 | 1 A D X Row2 | 2 B C X Row3 | 3 C D Z ``` Now I want to create an advanced select statement that gives me this c...
[ -0.029317770153284073, 0.2865228056907654, 0.09245879203081131, -0.07765509188175201, -0.16995716094970703, -0.11572461575269699, -0.03367820382118225, -0.046856943517923355, -0.03924097865819931, -0.3967215120792389, -0.001610278501175344, 0.3117477297782898, -0.38841477036476135, 0.06767...
AND DDD='X' ``` The output would be: ``` Test1, 1, A, D, X Test2, 2, B, C, X ``` How would I combine those two select statements into one nice select statement? Would it work if I complicated the SQL like below (because my own SQL statement contains an exists statement)? I just want to know how I can combine the ...
[ 0.36931508779525757, -0.031299203634262085, 0.023115260526537895, 0.0834370106458664, -0.09365637600421906, 0.29724299907684326, -0.1816563904285431, -0.24690313637256622, -0.02147478424012661, -0.718420684337616, 0.011080502532422543, 0.38984712958335876, -0.4018155336380005, 0.0538695380...
exists (select 1 from workitems t2 where t1.TextField01=t2.TextField01 AND (BoolField05=1) ) AND TimeStamp=(select max(t2.TimeStamp) from workitems t2 where t2.TextField01=t1.TextField01) AND TimeStamp>'2009-02-12 18:00:00' ``` which gives me a result. But I want to combine it with a copy of this select statement wi...
[ 0.11710920929908752, 0.034792426973581314, 0.7222710847854614, -0.14118339121341705, 0.381213903427124, -0.06319689005613327, 0.36142298579216003, -0.230193629860878, -0.03105711005628109, -0.7782297134399414, -0.16310198605060577, 0.4086320400238037, -0.19674915075302124, 0.19133621454238...
set 'Test1' or 'Test2' based on the condition in the `WHERE` clause, and then `UNION` them together: ``` select 'Test1', * from TABLE Where CCC='D' AND DDD='X' AND exists(select ...) UNION select 'Test2', * from TABLE Where CCC<>'D' AND DDD='X' AND exists(select ...) ``` This might be...
[ 0.468360960483551, -0.30264413356781006, -0.20100921392440796, 0.07018592953681946, 0.09061597287654877, 0.07339103519916534, 0.013882013037800789, -0.3753642439842224, 0.0320865698158741, -0.850317656993866, -0.20960623025894165, 0.4530356228351593, -0.36340880393981934, 0.022511610761284...
case when CCC='D' AND DDD='X' AND exists(select ...) then 'Test1' when CCC<>'D' AND DDD='X' AND exists(select ...) then 'Test2' end, * from TABLE Where (CCC='D' AND DDD='X' AND exists(select ...)) or (CCC<>'D' AND DDD='X' AND exists(select ...)) ``` The catch here being that y...
[ 0.33154335618019104, -0.21655945479869843, -0.14620862901210785, 0.03747917711734772, 0.25221264362335205, -0.06246020272374153, 0.0006020774017088115, -0.26169970631599426, 0.11750418692827225, -0.8341536521911621, -0.20310412347316742, 0.5435180068016052, -0.332210898399353, 0.2272923141...
Apparently, in Flash 10, you can use the GPU to calculate shaders, and if the user doesn't have a compatible gpu, it falls back to the cpu. The problem is that the cpu is very slow to calculate the filters, it would be nice to detect if it can't use the gpu, and use fewer effects. Is it possible to detect using actions...
[ -0.19294707477092743, 0.16580791771411896, 0.6137732267379761, -0.12259026616811752, -0.1553346961736679, -0.18122562766075134, 0.09926533699035645, -0.10465437173843384, -0.00926422979682684, -0.7634878754615784, -0.04467157647013664, 0.4765514135360718, -0.5660797357559204, -0.3083657622...
I have [a problem](https://stackoverflow.com/questions/539661/server-side-includes-and-character-encoding) with character encoding in some HTML pages. It seems that the cause of the problem is that some of the .html files are not saved as UTF-8 encoded files. Even though I have instructed Eclipse to save these files as...
[ 0.32005396485328674, 0.36666348576545715, 0.12795916199684143, -0.0005904134013690054, -0.33880507946014404, -0.3247734010219574, 0.398017555475235, 0.05893651768565178, -0.14110524952411652, -0.8862675428390503, -0.1551867574453354, 0.3881126344203949, -0.14530472457408905, -0.03932639956...
your web server sends the client. Edit: While this did work for this particular situation, using a tool to change the file encoding as suggested by other posters may be a better solution in other situations. YMMV. --- Instructions for saving as UTF-8 in Eclipse (which I realize you already have): You should probabl...
[ 0.5559659600257874, -0.08946812897920609, 0.506794273853302, 0.03931625932455063, -0.5411574840545654, -0.1497945934534073, 0.15157166123390198, 0.13163787126541138, -0.1741051971912384, -0.9748649597167969, 0.0631176233291626, 0.4810222089290619, -0.2439085990190506, -0.24547253549098969,...
of the preferences window. Expand 'Text' and select HTML. In the 'Default Encoding' entry, put UTF-8. Then click 'update' at the right. After this, all HTML files should be saved in UTF-8 format.
[ 0.06012702360749245, -0.09037389606237411, 0.6684369444847107, -0.1944185048341751, 0.17148105800151825, -0.22534140944480896, -0.004570001736283302, 0.16448204219341278, -0.024209344759583473, -0.9348591566085815, -0.6106553673744202, 0.5231659412384033, -0.41968223452568054, -0.244532749...
I've been thinking about writing a web framework (think Struts, Ruby on Rails, Seaside) that is based on the idea of a work queue. I'm looking to see if anyone has done such a framework before. I'm happy to check out frameworks that are for processing requests and spitting back results, but *aren't* web (HTTP). I'm *n...
[ 0.3936106264591217, -0.09704580157995224, -0.042908016592264175, 0.031091388314962387, -0.27595338225364685, 0.23532545566558838, 0.28460490703582764, 0.31524527072906494, -0.45260411500930786, -0.5568436980247498, 0.020801298320293427, 0.23939190804958344, -0.15782958269119263, 0.02764124...
infancy are probably of less interest.) I'm not sure if this is what you mean, but it sounds a lot like [Twisted](http://twistedmatrix.com/trac/). It doesn't expose the actual work queue, but it is centered around asynchronous work items. See the description of Deferreds [here](http://twistedmatrix.com/projects/core/do...
[ 0.43525585532188416, -0.6210488080978394, 0.1784704327583313, 0.2924951910972595, 0.10060831904411316, 0.30108731985092163, -0.05123056098818779, 0.31939366459846497, -0.40026921033859253, -0.34109073877334595, 0.09140283614397049, 0.2734149694442749, 0.009764178656041622, 0.29716280102729...
In the following ruby code, the output becomes: "x y" ``` x = "x %s" y = "y" z = "z" print x % y %z ``` The %z is ignored. I want the output to be "x y z". **To understand the possibilities and limitations of the syntax of Ruby, I want to use only the print command and the %s and % flags**. I know how to do this ...
[ 0.16547727584838867, 0.25131136178970337, 0.1835598349571228, -0.35217466950416565, -0.3527418375015259, 0.07355441898107529, 0.47249507904052734, 0.009562262333929539, 0.15006273984909058, -0.49257394671440125, -0.25781771540641785, 0.3640401065349579, -0.3908449709415436, 0.1651612669229...
"y" z = "z" print x % y %z ``` But I got this error: ``` in `%': too few arguments (ArgumentError) ``` With sprintf you could do this: ``` x = "x %s %s" y = "y" z = "z" print (sprintf(x, y, z)) ``` The output would be what I wanted: ``` x y z ``` But that's just too easy. ***Is there a way to do this with j...
[ -0.2937762439250946, -0.0351717546582222, 0.4388589859008789, -0.09733443707227707, -0.1544245481491089, 0.12123717367649078, 0.31146377325057983, -0.12461923807859421, 0.033074088394641876, -0.5633060932159424, -0.22148878872394562, 0.5561402440071106, -0.3903709948062897, -0.165476635098...
z x y z=> nil ``` and: ``` irb(main):006:0> x = "x %s %s" => "x %s %s" irb(main):007:0> y = "y" => "y" irb(main):008:0> z = "z" => "z" irb(main):009:0> x % [y,z] => "x y z" ```
[ -0.5522510409355164, 0.4075271487236023, 0.3834124505519867, 0.029089048504829407, -0.3087584972381592, 0.27731841802597046, 0.09403671324253082, -0.005967235192656517, 0.13206815719604492, -0.31544584035873413, -0.3276209235191345, 0.5873953700065613, -0.3054147958755493, 0.72311592102050...
Today we have built a console application for running the scheduled tasks for our ASP.NET website. But I think this approach is a bit error prone and difficult to maintain. How do you execute your scheduled task (in an windows/IIS/ASP.NET environment) Update: Examples of tasks: * Sending email from an email-queue i...
[ 0.30741000175476074, -0.125315323472023, 0.3003380596637726, 0.13702142238616943, 0.09877372533082962, -0.005923298187553883, 0.19403348863124847, -0.1825689822435379, -0.2637632489204407, -0.7534390687942505, 0.13525836169719696, 0.36584028601646423, -0.07223060727119446, -0.1460510790348...
calls this page every so often. Once the page runs it returns a value. If I know there is more work to be done, I run the page again, right away, otherwise I run it in a little while. This has worked really well for me and keeps all my task logic with the web code. Before writing the simple Windows service, I used Wind...
[ 0.43259334564208984, -0.0891481339931488, 0.5952749848365784, -0.001905819051899016, 0.026941372081637383, -0.36143186688423157, 0.5014857649803162, 0.032244473695755005, -0.2297324240207672, -0.6002814173698425, 0.2694377601146698, 0.7553731799125671, -0.16094495356082916, 0.0746994391083...
the page return results which then can be used to trigger Pingdom to send alert messages when something isn't right.
[ 0.36387771368026733, -0.25636377930641174, 0.7885900735855103, 0.259782999753952, -0.15014442801475525, -0.38990792632102966, 0.3549599349498749, 0.04945812374353409, -0.08880925923585892, -0.5556824207305908, -0.26454129815101624, 0.20610372722148895, -0.21124331653118134, 0.0073942672461...
I’ve got a table: CA * ca\_id * placement\_id * blah * blah This table gets updated with new unique placements every hour from data warehouse. Now the end-user wants to track statuses for those placements. I was thinking of adding a new table which would get updated hourly as well: CA\_Status * placement\_id * r...
[ 0.5080692172050476, 0.32747527956962585, 0.36332565546035767, -0.17322006821632385, 0.19237558543682098, 0.39351147413253784, -0.35329940915107727, -0.2392735481262207, -0.4385540187358856, -0.6484228372573853, 0.3883128762245178, 0.3139975368976593, -0.0015005030436441302, 0.1612664014101...
on the placement\_id. This will let the table grow with the latest record\_status for any placement. When I join I can get `MAX(last_updated_on)` to get the latest record\_status. OPTION 3: Dump the CA\_Status table all together. Add the new attributes to the CA table and do something like option 1 If OPTION 1 are t...
[ 0.38592028617858887, 0.06417780369520187, 0.44961029291152954, -0.11635137349367142, 0.24639634788036346, -0.05018775537610054, -0.03864762559533119, -0.15300484001636505, -0.4469759166240692, -0.7760207653045654, 0.20278248190879822, 0.8337239623069763, -0.030965736135840416, -0.047094464...
a website are kept within the website and called from a special page. I then wrote a simple Windows service which calls this page every so often. Once the page runs it returns a value. If I know there is more work to be done, I run the page again, right away, otherwise I run it in a little while. This has worked really...
[ 0.4250117540359497, 0.10742685198783875, 0.5421854257583618, 0.02324678748846054, -0.14429216086864471, -0.2006703019142151, 0.5537893772125244, 0.08580045402050018, -0.21649634838104248, -0.6340257525444031, 0.16397319734096527, 0.5194398760795593, -0.15989156067371368, 0.1256331205368042...
is to use a monitoring service like [Pingdom](http://pingdom.com). Point their http check to the page which runs your service code. Have the page return results which then can be used to trigger Pingdom to send alert messages when something isn't right.
[ 0.4767829179763794, -0.33802270889282227, 0.5607789754867554, 0.24493367969989777, 0.08469761908054352, -0.6007009148597717, 0.37480759620666504, 0.033564019948244095, -0.08699265867471695, -0.41496846079826355, 0.12485577911138535, 0.41679686307907104, -0.19667083024978638, -0.31996244192...
I'm using the ruby [daemon](http://raa.ruby-lang.org/project/daemons/) gem. Wondering how I can add some extra steps to the stop action? Was hoping I could detect stop was called, and add some extra code to it. Anyone know how I can accomplish this? Looking at the daemon gem code, it doesn't look like it has an obvious...
[ 0.517020046710968, -0.10399115830659866, 0.18047074973583221, -0.029653673991560936, -0.2338656187057495, 0.04304978996515274, 0.49035918712615967, -0.3989388644695282, -0.47643667459487915, -0.40393462777137756, -0.19701337814331055, 0.5990927815437317, -0.38944947719573975, -0.0027156444...
code here end ```
[ 0.34607213735580444, 0.5649939775466919, 0.09416759014129639, 0.13460521399974823, 0.31700241565704346, -0.3427768349647522, 0.4960741698741913, 0.11449822038412094, 0.1171095222234726, -0.6079988479614258, -0.48097464442253113, 0.30257362127304077, -0.30179116129875183, 0.1974436640739441...
Is it possible to change the styling of iPhone native buttons? For example, I'd like to use a smaller font size for part of the button text, and larger for another - something like ``` <small>pick a</small><big>color</big> ``` I'd also like to use buttons that form a right-arrow shape instead of being rectangular. S...
[ -0.14189237356185913, 0.06578588485717773, 0.41668662428855896, -0.2173374593257904, 0.4010109007358551, 0.557380735874176, -0.08373810350894928, -0.030528157949447632, -0.33220410346984863, -0.6763436794281006, 0.2732126712799072, 0.8220977783203125, -0.25810301303863525, -0.4743592441082...
don't think you can do it easily. You'll probably have to subclass [`UISegmentedControl`](https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UISegmentedControl_Class/Reference/UISegmentedControl.html) and override a bunch of methods. To get differently sized fonts on the button text, you'll have t...
[ 0.20556198060512543, -0.18441711366176605, 0.4626615047454834, 0.21376489102840424, -0.028636343777179718, 0.06293528527021408, 0.17821680009365082, -0.256613165140152, -0.13528519868850708, -0.5851146578788757, -0.015366802923381329, 0.3864726126194, -0.1357082575559616, -0.08601567149162...
I'm having trouble applying a patch to my source tree, and it's not the usual `-p` stripping problem. `patch` is able to find the file to patch. Specifically, my question is how to read / interpret the `.rej` files `patch` creates when it fails on a few hunks. Most discussions of `patch`/`diff` I have seen don't inclu...
[ 0.164668008685112, 0.49669504165649414, 0.2163970172405243, -0.5074445605278015, 0.15328216552734375, 0.14574040472507477, 0.5853796005249023, -0.2649535834789276, -0.11130091547966003, -0.872911274433136, -0.20898659527301788, 0.6286633014678955, -0.2934749126434326, -0.20993852615356445,...
file contains line 2 and the new file *should* contain line b. However, it actually contains line c (that's not visible in the reject file). In fact, the easiest way to resolve such problems is to take the diff fragment from the .diff/.patch file, insert it at the appropriate place in the file to be patched and then c...
[ 0.136583149433136, -0.11689028143882751, 0.20897972583770752, -0.015823690220713615, 0.08101005852222443, 0.15750782191753387, 0.38672560453414917, -0.4866497814655304, 0.28059887886047363, -0.6375223994255066, -0.335710734128952, 0.22886139154434204, -0.44466835260391235, 0.14784906804561...
I have a problem writing a SQL statement for both Oracle and MS SQL server. I'd like to write the SQL so that it works in both. I don't want to have to mess around with setting a database type variable and switching I have a column of course names that have values like this: > 9RA923.2008W > > > 1223.200710 > > >...
[ -0.0590025931596756, 0.41615787148475647, 0.21781650185585022, -0.12958331406116486, -0.20308683812618256, -0.05322990193963051, -0.040586765855550766, -0.0744096115231514, 0.02318599820137024, -0.3400559723377228, 0.03710281476378441, 0.5847118496894836, -0.23964639008045197, 0.0227178763...
the last characters after the dot, using the same SQL statement in either Oracle or MS SQL. Unfortunately, I won't know how many characters there will be before or after the "." It's not completely numeric either, I can't count on only numbers. I really wish there was an SQL standard. Looking at [this link](http://sq...
[ -0.0710206851363182, -0.027981994673609734, 0.46787169575691223, -0.12037235498428345, -0.1851571500301361, 0.37835070490837097, -0.0626940056681633, 0.12072371691465378, 0.009442659094929695, -0.8826881647109985, -0.2449609935283661, 0.2541080713272095, -0.24693898856639862, -0.2285853475...
it *within the client application* itself.
[ -0.045589249581098557, 0.3000275790691376, 0.2294532209634781, -0.0019376855343580246, -0.12917576730251312, 0.13939861953258514, 0.30421000719070435, 0.21514363586902618, -0.01961454749107361, -0.45007747411727905, -0.3065648078918457, 0.19605708122253418, 0.04838716983795166, 0.308451563...
I've been contemplating programming language designs, and from the definition of [Declarative Programming on Wikipedia](http://en.wikipedia.org/wiki/Declarative_programming#Definition): > This is in contrast from imperative programming, which requires a detailed description of the algorithm to be run. and further dow...
[ 0.10683460533618927, 0.30985602736473083, -0.3402540683746338, -0.07946716248989105, -0.3426492512226105, 0.20648466050624847, 0.5674540400505066, 0.09575726091861725, -0.059546977281570435, -0.40802428126335144, -0.23537512123584747, 0.7358905673027039, -0.3533411920070648, -0.24498446285...
although if specific examples can illustrate the point, I certainly welcome them. According to the [Church-Turing Thesis](http://en.wikipedia.org/wiki/Church-Turing_thesis) , > the three computational processes (recursion, λ-calculus, and Turing machine) were shown to be equivalent" where Turing machine can be read ...
[ -0.10722541809082031, 0.08373747020959854, -0.2123493254184723, 0.13537439703941345, -0.18194471299648285, 0.34634947776794434, 0.00025015376741066575, -0.13860873878002167, -0.17820779979228973, -0.680881679058075, -0.0626886785030365, 0.7626857757568359, -0.28538137674331665, -0.11290834...
For example, given two dates in input boxes: ``` <input id="first" value="1/1/2000"/> <input id="second" value="1/1/2001"/> <script> alert(datediff("day", first, second)); // what goes here? </script> ``` How do I get the number of days between two dates in JavaScript? Here is a **quick and dirty** implementation...
[ 0.25470876693725586, 0.04833493009209633, 0.6238466501235962, -0.20597264170646667, -0.1298418939113617, 0.02840573899447918, 0.19124171137809753, -0.03158111497759819, -0.40031278133392334, -0.2429119348526001, -0.10497692972421646, 0.051897354423999786, -0.13399361073970795, 0.3147256076...
Round to nearest whole number to deal with DST. */ function datediff(first, second) { return Math.round((second - first) / (1000 * 60 * 60 * 24)); } /** * new Date("dateString") is browser-dependent and discouraged, so we'll write * a simple parse function for U.S. date format (which does no error check...
[ 0.18559874594211578, -0.07866931706666946, 0.7210572957992554, -0.2038220316171646, -0.11465365439653397, -0.1347225457429886, 0.06807407736778259, -0.2420509308576584, -0.3417509198188782, -0.19838294386863708, -0.17798519134521484, 0.462198406457901, -0.17242087423801422, 0.3151457607746...
the local timezone of the user's browser, so in general you could run into issues if your user is in a timezone that you don't expect, and your code will have to deal with Daylight Saving Time transitions. You should carefully read the documentation for the Date object and its methods, and for anything more complicated...
[ 0.19603489339351654, -0.01607753522694111, 0.40769830346107483, 0.10765921324491501, 0.22339172661304474, -0.17218266427516937, -0.025984320789575577, 0.12053298205137253, -0.31979575753211975, -0.8626686334609985, -0.46571123600006104, 0.2083490490913391, -0.22317440807819366, 0.146802216...
you should use standardized APIs like [getElementById](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById), or more likely, some UI framework.
[ 0.6004927158355713, -0.25936782360076904, 0.30413657426834106, 0.3184770941734314, 0.09136392176151276, -0.47085562348365784, -0.02861877903342247, 0.013563564047217369, -0.2092149704694748, -0.865189254283905, -0.6438281536102295, 0.3371310234069824, -0.10354767739772797, -0.1567335128784...
We develop a web app that manages files and resources for different users to download throughout the day on a web server with very limited upstream bandwidth. Is there any way to monitor in real time how much upstream bandwidth is being taken up by individual connections to IIS (7.0)? Ideally we'd like way to see a...
[ 0.4610724449157715, -0.02376117929816246, 0.22262433171272278, 0.4305611550807953, 0.2082091122865677, -0.14302347600460052, 0.10006134957075119, 0.025926945731043816, -0.26013410091400146, -0.7571600079536438, -0.08369112014770508, 0.5891656875610352, -0.15221752226352692, 0.1683863252401...
let you do this. If you configure IIS so that each worker process is easily distinguishable from the others, you can accomplish what you want using software like [Net Limiter](http://www.netlimiter.com/).
[ 0.5482603311538696, -0.33051735162734985, -0.07178237289190292, 0.14405152201652527, -0.023026160895824432, -0.40370455384254456, 0.019932821393013, -0.21031461656093597, -0.20554636418819427, -1.0148800611495972, -0.03615637123584747, 0.42144879698753357, -0.1371154934167862, 0.0707894787...
Is it possible to set up a mysql trigger that fires back the id number of that record when ever there is an insert into the database AND how do i capture that using php? Unless I don't fully understand your question, you don't need a trigger for this - just use the "last inserted ID" functionality of your database driv...
[ 0.0777706652879715, 0.030154531821608543, 0.3649595379829407, -0.025932293385267258, 0.020279984921216965, -0.1975291520357132, 0.2515490651130676, -0.19971145689487457, -0.17016951739788055, -0.5703141093254089, -0.015583643689751625, 0.6487506031990051, -0.2948475480079651, 0.09458509832...
I have been using gridview since a long time. I have a "cant live with you and cant live without you" relationship with it. The idea of Edits, inserts and deletes from within the grid is great but having to do something like ``` var sometext = ((TextBox)editRow.FindControl("tbSomeText")).Text; ``` just seems very u...
[ 0.7717456221580505, 0.16007573902606964, 0.2869430482387543, -0.09283564239740372, -0.03998221829533577, -0.1282496452331543, 0.4804459810256958, 0.2947486937046051, 0.11496143788099289, -1.0047467947006226, 0.12495364248752594, 0.2806701064109802, -0.03420990705490112, 0.4797467887401581,...
happy if someone can tell me how to live without GridView in asp.net. I understand there are AJAX implementations but I am looking for something completely serverside. If you are trying to make a basic CRUD website, have a look at [ASP.NET 3.5 Dynamic Data](http://www.asp.net/learn/3.5-SP1/) which is a great website t...
[ 0.5358049273490906, -0.17264287173748016, 0.6286947727203369, 0.21172375977039337, -0.023631393909454346, -0.15512090921401978, -0.11465499550104141, 0.1542857587337494, -0.26892802119255066, -0.8572844862937927, 0.27909961342811584, 0.7045802474021912, -0.17030516266822815, -0.19265991449...
customize content. I'd also have a look at many third party grid tools from (Telerik, Infragistics, ComponentArt, ComponentOne, DevExpress) that have a lot more capability than the inbuilt gridview control.
[ 0.6384850144386292, -0.4900742769241333, 0.49927762150764465, 0.482941210269928, -0.2572455406188965, -0.3606675863265991, -0.2359015941619873, 0.05260217562317848, -0.18495650589466095, -0.7120717167854309, -0.04170902445912361, 0.6961184740066528, -0.027240706607699394, 0.073417574167251...
How do I read and write a file using a file format which is readable by a database server, in vb2008? I have very little experience working with databases, and I can't seem to find any tutorials which don't involve some type of server as a middle-man. It's really going to depend on which type of database files you are...
[ 0.1755935400724411, 0.17110562324523926, 0.6491040587425232, 0.02494710683822632, 0.06103441119194031, -0.38260966539382935, 0.1607479453086853, -0.05860152468085289, -0.17954255640506744, -0.5528793334960938, 0.003713296027854085, 0.6052780747413635, -0.4065414369106293, 0.388386517763137...
I have a custom class file in C# that I inherited and partially extended. I am trying to *re factor* it now as I have just enough knowhow to know that with something like *generics*(I think) I could greatly condense this class. As an inexperienced solo dev I would greatly appreciate any direction or constructive crit...
[ 0.38545936346054077, -0.2467205673456192, 0.28163430094718933, 0.047718606889247894, -0.2370440512895584, -0.2455020248889923, 0.5679079294204712, -0.09945083409547806, -0.07139161974191666, -0.6417145133018494, -0.15334773063659668, 0.6253931522369385, -0.09904856234788895, 0.001676656072...
public static void ShowXFormInControl(Form frm, ref XtraTabPage ctl, FormBorderStyle style) { frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = 0;
[ 0.21910157799720764, -0.21463747322559357, 0.6384280323982239, -0.14264780282974243, -0.10933060199022293, -0.21626624464988708, 0.38127264380455017, -0.10954751819372177, 0.24936121702194214, -0.12170897424221039, -0.5157374143600464, 0.5751256942749023, -0.4468991458415985, 0.35747051239...
frm.Top = 0; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show() fires a form load event frm.BringToFront(); }
[ -0.15226320922374725, -0.2437470555305481, 0.8441457748413086, -0.57439786195755, 0.08574842661619186, 0.10612837225198746, 0.07840654999017715, -0.5119579434394836, -0.5643758773803711, -0.14675593376159668, -0.38302871584892273, 0.6969971656799316, -0.15248508751392365, -0.17274743318557...
public static void ShowXFormInControl(Form frm, ref XtraPanel ctl, FormBorderStyle style) { frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left =
[ 0.25951969623565674, -0.22417403757572174, 0.5954573750495911, -0.16845928132534027, -0.07317320257425308, -0.1540001779794693, 0.2946866452693939, -0.09615379571914673, 0.17911647260189056, -0.13701243698596954, -0.445916086435318, 0.6318775415420532, -0.3691684603691101, 0.29334408044815...
0; frm.Top = 0; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show() fires a form load event frm.BringToFront(); }
[ -0.12411526590585709, -0.234789177775383, 0.8694656491279602, -0.5772300958633423, 0.1500326246023178, 0.12297043204307556, 0.1045350432395935, -0.5078420042991638, -0.5082626342773438, -0.15195335447788239, -0.39767953753471375, 0.6295283436775208, -0.1724117398262024, -0.1796293407678604...
public static void ShowXFormInControl(XtraForm Xfrm, ref XtraTabPage ctl, FormBorderStyle style) { Xfrm.TopLevel = false; Xfrm.ControlBox = false; Xfrm.Parent = ctl; Xfrm.FormBorderStyle = style; Xfrm.Left
[ 0.3268117606639862, -0.268245667219162, 0.662674605846405, -0.1969033181667328, -0.22063951194286346, -0.20966306328773499, 0.3911360502243042, -0.04638593643903732, 0.2104879766702652, -0.26800093054771423, -0.3999267816543579, 0.5656985640525818, -0.4304831624031067, 0.39725494384765625,...
= 0; Xfrm.Top = 0; Xfrm.Width = ctl.Width + 4; Xfrm.Dock = DockStyle.Fill; Xfrm.Show(); //IMPORTANT: .Show() fires a form load event Xfrm.BringToFront(); }
[ -0.024266317486763, -0.15257267653942108, 0.8839669823646545, -0.6308571100234985, 0.024997543543577194, 0.08766601979732513, 0.2587099075317383, -0.4815080463886261, -0.40928134322166443, -0.17115020751953125, -0.41909611225128174, 0.5757045745849609, -0.2893247902393341, -0.1276255100965...
public static void ShowXFormInControl(XtraForm Xfrm, ref XtraPanel ctl, FormBorderStyle style) { Xfrm.TopLevel = false; Xfrm.ControlBox = false; Xfrm.Parent = ctl; Xfrm.FormBorderStyle = style;
[ 0.3791087865829468, -0.23734472692012787, 0.6265180706977844, -0.20769837498664856, -0.1738826036453247, -0.19260211288928986, 0.3727441132068634, -0.1045689731836319, 0.2636531889438629, -0.1831108182668686, -0.4202207624912262, 0.6211025714874268, -0.3956713080406189, 0.37395668029785156...
Xfrm.Left = 0; Xfrm.Top = 0; Xfrm.Width = ctl.Width + 4; Xfrm.Dock = DockStyle.Fill; Xfrm.Show(); //IMPORTANT: .Show() fires a form load event Xfrm.BringToFront(); }
[ -0.059358250349760056, -0.20751899480819702, 0.904818058013916, -0.5690133571624756, -0.032078228890895844, 0.021445536985993385, 0.2995460629463196, -0.45956555008888245, -0.38012605905532837, -0.2032996118068695, -0.43548691272735596, 0.569723904132843, -0.40087994933128357, -0.104483924...
public static void ShowFormInControl(Form frm, ref Panel ctl, FormBorderStyle style) { { frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl;
[ 0.22452764213085175, -0.22007019817829132, 0.6163713335990906, -0.13280721008777618, -0.019643954932689667, -0.09253089874982834, 0.16623327136039734, -0.28201839327812195, 0.1277802288532257, -0.16628368198871613, -0.4271973669528961, 0.6283835172653198, -0.4126494228839874, 0.32455724477...
frm.FormBorderStyle = style; frm.Left = 0; frm.Top = 0; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill;
[ -0.04914224520325661, -0.19473671913146973, 1.102615237236023, -0.25102677941322327, 0.19088716804981232, 0.16341429948806763, 0.07369448244571686, -0.2791214883327484, -0.4919236898422241, -0.19009259343147278, -0.3600930869579315, 0.5887667536735535, 0.16885176301002502, 0.20802231132984...
frm.Show(); //IMPORTANT: .Show() fires a form load event frm.BringToFront(); } //.SetBounds(ctl.Left, ctl.Top, ctl.Width, ctl.Height) } public static void ShowFormInControl(Form frm,
[ -0.009776540100574493, -0.18746304512023926, 0.5782007575035095, -0.41425278782844543, -0.26772990822792053, -0.11113586276769638, 0.13330772519111633, -0.46399274468421936, -0.12202028185129166, -0.22874760627746582, -0.3964366018772125, 0.6178756952285767, -0.39735838770866394, -0.009424...
ref TabPage ctl, FormBorderStyle style) { { frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle
[ -0.16808544099330902, -0.28949180245399475, 0.7955253720283508, -0.09110544621944427, -0.1334858387708664, -0.1960769146680832, 0.5950366854667664, -0.28562256693840027, 0.06571652740240097, -0.18973015248775482, -0.5398135781288147, 0.7533045411109924, -0.29128924012184143, 0.091107495129...
= style; frm.Left = 0; frm.Top = 0; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill; frm.Show();
[ 0.07381080836057663, -0.09030439704656601, 0.9477944374084473, -0.409756064414978, 0.17596200108528137, 0.22129443287849426, 0.021327221766114235, -0.09315817058086395, -0.4643448293209076, -0.1455688178539276, -0.3025597929954529, 0.594318151473999, 0.08081118762493134, 0.1375208795070648...
//IMPORTANT: .Show() fires a form load event frm.BringToFront(); } } public static void ShowFormInControl(Form frm, Panel ctl, FormBorderStyle style, FormWindowState state) { {
[ 0.12238053977489471, -0.16782797873020172, 0.5305818915367126, -0.40887314081192017, -0.1547616571187973, -0.11515326797962189, 0.2186461240053177, -0.46797990798950195, -0.01699856109917164, -0.2801092565059662, -0.3544219136238098, 0.7526528239250183, -0.37306851148605347, 0.075128071010...
frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = 0;
[ -0.25959423184394836, -0.14783717691898346, 0.5891091227531433, -0.05403725057840347, 0.010871205478906631, -0.295286625623703, 0.4621472954750061, -0.26430389285087585, 0.04793631657958031, 0.034539610147476196, -0.7077202200889587, 0.3656410574913025, -0.15886983275413513, 0.392261177301...
frm.Top = 0; frm.Width = ctl.Width + 4; frm.WindowState = state; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show() fires a form
[ 0.10222574323415756, 0.10922079533338547, 0.9053400158882141, -0.5006049275398254, 0.10318875312805176, 0.02269524522125721, 0.19741977751255035, -0.5651922225952148, -0.305377334356308, -0.288950651884079, -0.37234148383140564, 0.47909262776374817, -0.11957069486379623, -0.058537922799587...
load event frm.BringToFront(); } //.SetBounds(ctl.Left, ctl.Top, ctl.Width, ctl.Height) } public static void ShowFormInControl(Form frm, TabPage ctl, FormBorderStyle style, FormWindowState state) {
[ 0.04329187795519829, -0.31210142374038696, 0.47588595747947693, -0.28964921832084656, -0.19750331342220306, -0.14596885442733765, 0.24112732708454132, -0.2921963632106781, 0.004411009140312672, -0.18922072649002075, -0.3623429536819458, 0.6083067059516907, -0.4034960865974426, 0.0492259711...
{ frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = 0;
[ -0.2387687861919403, -0.10693806409835815, 0.5169509649276733, -0.0968155637383461, 0.29681870341300964, -0.19437062740325928, 0.5762869715690613, -0.23220613598823547, 0.12496578693389893, 0.0508149228990078, -0.6806313395500183, 0.4740840494632721, -0.13574084639549255, 0.459308177232742...
frm.Top = 0; frm.Width = ctl.Width + 4; frm.WindowState = state; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show()
[ -0.07477575540542603, -0.03163262456655502, 0.8564983606338501, -0.45812350511550903, 0.21487195789813995, 0.26904571056365967, 0.12751850485801697, -0.2052597552537918, -0.5316944122314453, -0.32282954454421997, -0.3063918948173523, 0.6460831165313721, -0.04823441803455353, 0.100148782134...
fires a form load event frm.BringToFront(); } } public static void ShowFormInControl(Form frm, ref Panel ctl, FormBorderStyle style, int left, int top) { {
[ 0.213283970952034, -0.07706920057535172, 0.5053402185440063, -0.4028765559196472, -0.19281557202339172, -0.28008854389190674, 0.3521438241004944, -0.480314701795578, 0.022573580965399742, -0.157406747341156, -0.4456454813480377, 0.8420782089233398, -0.4651208519935608, -0.04509788751602173...
frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = left; frm.Top
[ -0.45326513051986694, -0.057592377066612244, 0.6293523907661438, 0.06481477618217468, -0.0019623746629804373, -0.34952419996261597, 0.40253663063049316, -0.25336405634880066, -0.20314602553844452, 0.09545960277318954, -0.7769992351531982, 0.23312969505786896, -0.07936720550060272, 0.308864...
= top; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show() fires a form load event //.Activate()
[ 0.07600610703229904, -0.09172379970550537, 0.7502471804618835, -0.5906511545181274, 0.16985423862934113, -0.044360287487506866, 0.14608468115329742, -0.5358279943466187, -0.5284188985824585, -0.1414835900068283, -0.35827359557151794, 0.4634276330471039, -0.2660066783428192, -0.197805091738...
frm.BringToFront(); } //.SetBounds(ctl.Left, ctl.Top, ctl.Width, ctl.Height) } public static void ShowFormInControl(Form frm, ref TabPage ctl, FormBorderStyle style, int left, int top) { {
[ 0.020883355289697647, -0.20970267057418823, 0.8927618265151978, -0.3673252761363983, -0.2527937591075897, -0.10467870533466339, 0.13300733268260956, -0.3677041828632355, 0.013175992295145988, -0.35880982875823975, -0.4205060303211212, 0.5921755433082581, -0.2867881953716278, 0.097859978675...
frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = left;
[ -0.2948569655418396, -0.11048714071512222, 0.57286536693573, -0.02692004293203354, -0.05618282034993172, -0.32955479621887207, 0.39678069949150085, -0.26514241099357605, -0.017835723236203194, -0.028116028755903244, -0.7854083180427551, 0.3073801100254059, -0.1642800271511078, 0.4343474209...
frm.Top = top; frm.Width = ctl.Width + 4; frm.Dock = DockStyle.Fill; frm.Show(); //IMPORTANT: .Show() fires a form load event //.Activate()
[ 0.05791017413139343, -0.08329367637634277, 0.7934925556182861, -0.5884856581687927, 0.17563433945178986, -0.07703433185815811, 0.04142581671476364, -0.5042930841445923, -0.6304597854614258, -0.1452452689409256, -0.362667441368103, 0.5278527140617371, -0.21946214139461517, -0.22304573655128...
frm.BringToFront(); } } public static void ShowFormInControl(Form frm, Panel ctl, FormBorderStyle style, int left, int top, string title) { {
[ 0.007041234523057938, -0.21363669633865356, 0.8250940442085266, -0.35098594427108765, -0.10077285766601562, -0.07890061289072037, 0.03655995428562164, -0.25158563256263733, 0.06415974348783493, -0.3844330906867981, -0.5395393967628479, 0.7960975170135498, -0.26232782006263733, 0.1262762844...
frm.TopLevel = false; frm.ControlBox = false; frm.Parent = ctl; frm.FormBorderStyle = style; frm.Left = left; frm.Top = top;
[ -0.45039111375808716, -0.062392354011535645, 0.6655957102775574, 0.056252121925354004, -0.08665464073419571, -0.3998607397079468, 0.383696973323822, -0.19906970858573914, -0.09031650424003601, 0.03993309661746025, -0.8018848896026611, 0.25813916325569153, -0.08548006415367126, 0.3615567088...