text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
something other than C, then A, then a digit, or It ends with something other than C, then A, or It equals A followed by a digit, or It equals A or a digit, or It is empty. So: ``` rlike '[^A0-9]$|[^A][0-9]$|[^C]A[0-9]$|[^C]A$|^A[0-9]$|^[A0-9]$|^$' ``` Untested, un-"optimized", probably at least one error somew...
[ -0.10438727587461472, 0.07171003520488739, 0.43607500195503235, -0.10854718089103699, -0.0007426747470162809, -0.09919654577970505, 0.2376875877380371, -0.12481041997671127, -0.07236804813146591, -0.27224603295326233, -0.3396802246570587, 0.5448719263076782, -0.3376765251159668, 0.11613883...
I have been up and down this site and found a lot of info on the Screen class and how to count the number of monitors and such but how do I determine which montitor a form is currently in? A simpler method than using the bounds is to use the Screen.FromControl() method. This is the same functionality that Windows uses....
[ 0.5922426581382751, -0.011828618124127388, 0.695367157459259, 0.12169761955738068, -0.12468965351581573, -0.45514947175979614, 0.08888614177703857, -0.04106949269771576, -0.07438221573829651, -0.9318324327468872, 0.010693266987800598, 0.7983875870704651, -0.361416220664978, 0.1938200443983...
I am inside the IDE and I can run all the unit tests in a file but is there any way to run all test in a project or solution at once? Right click on the project or solution in the VS solution-explorer and choose 'Run Unit Tests' Or go to the Resharper menu, choose Unit-Testing and choose one of the options from there.
[ 0.8612765669822693, -0.18815778195858002, 0.06786759197711945, 0.3521820604801178, -0.13156817853450775, -0.05084068700671196, 0.35789504647254944, -0.21742913126945496, 0.27309876680374146, -0.8298642635345459, 0.17487265169620514, 0.6491314172744751, 0.2281818836927414, 0.257164686918258...
I'm working on a legacy application that has a C++ extended stored procedure. This xsproc uses ODBC to connect to the database, which means it requires a DSN to be configured. I'm updating the installer (created using Visual Studio 2008 setup project), and want to have a custom action that can create the ODBC DSN entr...
[ 0.40203386545181274, 0.33356428146362305, 0.12893442809581757, 0.11968114972114563, 0.15239351987838745, -0.16189385950565338, 0.17248082160949707, -0.14918118715286255, -0.29003340005874634, -0.5525847673416138, 0.02829848602414131, 0.531581699848175, -0.30764445662498474, 0.2610809206962...
ODBC DSN entries ///</summary> public static class ODBCManager { private const string ODBC_INI_REG_PATH = "SOFTWARE\\ODBC\\ODBC.INI\\"; private const string ODBCINST_INI_REG_PATH = "SOFTWARE\\ODBC\\ODBCINST.INI\\"; /// <summary> /// Creates a new DSN entry with the specified values. If the DSN exists, ...
[ -0.34401190280914307, 0.1886860579252243, 0.6494507193565369, 0.009137779474258423, -0.15319591760635376, 0.35972797870635986, -0.07318723946809769, -0.5998362898826599, -0.3476302921772003, -0.5180104374885559, -0.3320341408252716, -0.04479639604687691, -0.4816012382507324, 0.221794009208...
/// <param name="driverName">Name of the driver to use</param> /// <param name="trustedConnection">True to use NT authentication, false to require applications to supply username/password in the connection string</param> /// <param name="database">Name of the datbase to connect to</param> public static void...
[ 0.050612784922122955, -0.1615791916847229, 0.36248108744621277, -0.013037987053394318, -0.26175999641418457, 0.3881120979785919, 0.45748764276504517, -0.7064288258552551, -0.0816192626953125, -0.5462131500244141, -0.16630038619041443, 0.4278654158115387, -0.35557591915130615, 0.28730657696...
(driverKey == null) throw new Exception(string.Format("ODBC Registry key for driver '{0}' does not exist", driverName)); string driverPath = driverKey.GetValue("Driver").ToString(); // Add value to odbc data sources var datasourcesKey = Registry.LocalMachine.CreateSubKey(ODBC_INI_REG_PATH + "OD...
[ -0.3095099925994873, -0.16358672082424164, 0.4012793004512787, -0.0594300851225853, -0.09847333282232285, 0.23380053043365479, 0.3479200303554535, -0.22597239911556244, -0.23870286345481873, -0.6538786888122559, -0.15066711604595184, 0.6408872604370117, -0.4953416585922241, 0.3910501897335...
name and add values var dsnKey = Registry.LocalMachine.CreateSubKey(ODBC_INI_REG_PATH + dsnName); if (dsnKey == null) throw new Exception("ODBC Registry key for DSN was not created"); dsnKey.SetValue("Database", database); dsnKey.SetValue("Description", description); dsnKey.SetVa...
[ -0.13666589558124542, -0.28584668040275574, 0.5981299877166748, 0.08990082889795303, 0.04014799743890762, 0.011637748219072819, 0.49720948934555054, -0.26340243220329285, -0.1989344209432602, -0.844433605670929, -0.481210321187973, 0.4326298236846924, -0.44203945994377136, 0.64138382673263...
trustedConnection ? "Yes" : "No"); } /// <summary> /// Removes a DSN entry /// </summary> /// <param name="dsnName">Name of the DSN to remove.</param> public static void RemoveDSN(string dsnName) { // Remove DSN key Registry.LocalMachine.DeleteSubKeyTree(ODBC_INI_REG_PATH + ...
[ -0.22457827627658844, -0.27788466215133667, 0.5956022143363953, 0.12421233206987381, 0.13174650073051453, -0.29392489790916443, 0.6887748837471008, -0.6298604607582092, 0.09053748100996017, -0.44554534554481506, -0.3005508482456207, 0.5427783131599426, -0.6464371085166931, 0.49675306677818...
Registry.LocalMachine.CreateSubKey(ODBC_INI_REG_PATH + "ODBC Data Sources"); if (datasourcesKey == null) throw new Exception("ODBC Registry key for datasources does not exist"); datasourcesKey.DeleteValue(dsnName); } ///<summary> /// Checks the registry to see if a DSN exists with the speci...
[ -0.22857138514518738, -0.3466649651527405, 0.3450554311275482, -0.046653345227241516, -0.12641990184783936, 0.23933781683444977, 0.4621927738189697, -0.3027149438858032, -0.35499486327171326, -0.7464389801025391, -0.27529963850975037, 0.35826897621154785, -0.523768424987793, 0.683942496776...
if (driversKey == null) throw new Exception("ODBC Registry key for drivers does not exist"); return driversKey.GetValue(dsnName) != null; } ///<summary> /// Returns an array of driver names installed on the system ///</summary> ///<returns></returns> public static string[] GetInstalled...
[ -0.189425989985466, -0.22581422328948975, 0.5158913731575012, -0.024400154128670692, -0.018221385776996613, 0.14306116104125977, 0.22099266946315765, -0.19987843930721283, -0.16010405123233795, -0.5265786051750183, -0.41112014651298523, 0.8078475594520569, -0.38636496663093567, 0.456203162...
key for drivers does not exist"); var driverNames = driversKey.GetValueNames(); var ret = new List<string>(); foreach (var driverName in driverNames) { if (driverName != "(Default)") { ret.Add(driverName);
[ -0.23539181053638458, -0.18993015587329865, 0.5931670665740967, -0.47593361139297485, 0.059487514197826385, 0.38568711280822754, 0.4553990662097931, -0.3697982430458069, 0.06010688841342926, -0.4326775074005127, -0.5062388181686401, 1.0583728551864624, -0.22817984223365784, 0.3688275516033...
} } return ret.ToArray(); } } ```
[ -0.28391554951667786, -0.09455908834934235, 0.18604537844657898, -0.5541205406188965, 0.3360848128795624, -0.11712997406721115, 0.31654810905456543, -0.06825262308120728, 0.038444388657808304, -0.4361042082309723, -0.3747844994068146, 1.0770862102508545, -0.3555607497692108, 0.241518929600...
I am using slideDown animation to show some divs in a newly added table row: ``` $("div", newRow).slideDown(10000, UpdateHours(response.d.Hours)); ``` however the UpdateHours() function is called long before the divs are finished animating. This is causing me a problem because the Updated Hours then get covered by t...
[ 0.08494172990322113, -0.08344614505767822, 0.7780718803405762, -0.2880617082118988, -0.030588721856474876, 0.16549129784107208, 0.10591160506010056, -0.0607559010386467, -0.15708710253238678, -0.6981255412101746, -0.21008796989917755, 0.7477642893791199, -0.3687691390514374, 0.215680584311...
a demo for calling slideDown this way on the jQuery site. <http://docs.jquery.com/Effects/slideDown>
[ 0.31716039776802063, -0.3608736991882324, 0.1932859867811203, -0.11137345433235168, -0.08874823153018951, -0.24822744727134705, 0.018989089876413345, 0.00833370815962553, -0.3472663164138794, -0.25797975063323975, -0.030080707743763924, 0.4806422293186188, -0.05984378233551979, -0.06118595...
This one is for a coworker: > We are having a problem with one of our wireframe sets (a Visio file). Basically, the file continues to increase in size and is currently at 43 MB (yes, forty three!), when the average of our other sets are at about 5-10 MB each. When I saved a copy to my desktop and deleted all of the pa...
[ 0.07658138871192932, 0.11805198341608047, 0.41524991393089294, 0.21579483151435852, 0.09873182326555252, 0.08431340008974075, 0.2739506661891937, -0.18988528847694397, -0.5167500376701355, -0.7162785530090332, 0.1845598816871643, 0.5135312676429749, -0.22769960761070251, 0.1408092081546783...
and it basically decided to delete all of her updates > 3. we are very afraid that the file will become corrupt to the point where we will need to recreate it from scratch (a very costly possibility). Any ideas? They found the answer... > It happens that Visio was converting one our icons to a larger file, and every ...
[ 0.21253721415996552, -0.12398628145456314, 0.6169015169143677, 0.23449355363845825, -0.08826778829097748, 0.02615530788898468, 0.389821320772171, 0.014161376282572746, -0.3633688986301422, -0.5035429000854492, 0.18976151943206787, 0.24945077300071716, -0.07314798980951309, 0.30442628264427...
only 4 MB!
[ -0.019897814840078354, 0.3522467613220215, 0.2150830626487732, 0.09155913442373276, -0.2700445353984833, 0.05764820799231529, 0.5423101782798767, -0.07351691275835037, -0.18440237641334534, -0.15722563862800598, -0.23316551744937897, 0.25138574838638306, -0.2552916407585144, -0.05090991035...
I've seen some variable declare in VB.net in several way like: ``` print("dim _Foo as string"); ``` and print("dim m\_Foo as string"); and print("dim foo as string"); I will like to know what's the standard for VB.net coding. It all depends on the scope. In the case of: ``` Private Dim m_Foo As String ``` Tha...
[ 0.7210243344306946, 0.10488834232091904, 0.10826278477907181, -0.24469342827796936, -0.07887054979801178, -0.2791532278060913, -0.012019856832921505, -0.07811329513788223, -0.25180792808532715, -0.10614777356386185, -0.23830817639827728, 0.6954947710037231, -0.5014445185661316, 0.268216013...
examples helps in determining scope when scanning code. Putting it all together, here's a sample class showing a well-known naming convention (but not the only one): ``` Public Class Bar Private m_firstName As String Public Sub New(ByVal firstName As String) m_firstName = firstName End Sub Pu...
[ 0.21524854004383087, -0.11395157128572464, 0.5680176019668579, -0.4178943336009979, 0.1656862199306488, 0.014540142379701138, -0.0318712554872036, -0.23464272916316986, -0.10730572789907455, -0.5312670469284058, -0.39609605073928833, 0.332146018743515, -0.3013674020767212, 0.33322170376777...
End Function End Class ```
[ -0.4336516559123993, 0.25283005833625793, 0.267882376909256, -0.12676003575325012, -0.09147666394710541, -0.42358890175819397, 0.13601206243038177, 0.43470966815948486, 0.3590310513973236, -0.2243436872959137, -0.40485480427742004, 0.37814271450042725, -0.2809854745864868, 0.43309688568115...
If there will be a small number of files it should be easy with a recursive function to pass through all the files and add the size but what if there are lots of files, and by lots i really mean lots of files. You mean something like this? ``` import os for path, dirs, files in os.walk( root ): for f in files: ...
[ 0.06708391010761261, -0.06126486137509346, 0.36206597089767456, 0.20542515814304352, 0.18285273015499115, 0.09640367329120636, 0.10201326012611389, -0.011047059670090675, -0.517677366733551, -0.986346423625946, -0.2067100703716278, 0.6376031041145325, -0.4999043941497803, -0.19778908789157...
I have a table with 7M records I want to trim down to 10k for dev. I tried a delete, but the whole world was nearly overpowered by the transaction log size, so I truncated the table. Now I wish to insert 10k records from the original table, into my dev table, but it has a identity column, and many, many other columns,...
[ -0.06641343235969543, 0.1182573139667511, 0.6119650602340698, -0.05019945278763771, 0.03947551175951958, 0.12013460695743561, 0.3084832727909088, -0.2680724561214447, -0.3446796238422394, -0.7687854170799255, 0.12736904621124268, 0.2943541705608368, -0.26156511902809143, 0.2406070381402969...
of the source to the view. Now everything fails because nothing sees the view, although I copied and pasted the view name from my create view statement, which fails a second time because, lo, the view actually does exist. Does SSIS define which DB objects are used when a package is created, which would exclude the ne...
[ 0.3786761462688446, 0.20005711913108826, 0.19382089376449585, -0.00557682104408741, 0.22903549671173096, -0.017370149493217468, 0.3945857882499695, -0.20555971562862396, -0.03415195271372795, -0.5638952255249023, -0.09478786587715149, 0.8244821429252625, -0.4219660758972168, 0.278406053781...
execute something like this: SET IDENTITY\_INSERT db.schema.dev\_table ON INSERT INTO dev\_table SELECT TOP (10000) \* FROM prod\_table
[ 0.20534086227416992, -0.08343903720378876, -0.06479188054800034, 0.026971550658345222, 0.2254369705915451, -0.1506039947271347, 0.18116924166679382, -0.43906912207603455, 0.34644556045532227, -0.6300657391548157, -0.0758080780506134, 0.4706825911998749, -0.38618004322052, -0.11321026086807...
Someone just sent me a decompile of a program into C. It was a very good decompile, producing nice, mostly readabe C code (if you overlook the fact that none of the variables or functions had a human-readable name) that mostly looked like it would actually compile. There was one big problem, though. I happen to know t...
[ 0.37667298316955566, 0.23194560408592224, -0.2557341456413269, 0.45523765683174133, -0.01585645042359829, 0.03361089900135994, -0.03246823325753212, 0.44950681924819946, -0.21773432195186615, -0.32544147968292236, 0.08818250149488449, 0.3768964409828186, -0.19013534486293793, 0.05506839975...
Delphi? The best decompiling tool I've seen for Delphi is DeDe. It can do a lot of things, but it doesn't even try to produce Object Pascal code as its output, and it hasn't been updated since Delphi 6. Is there anything better out there? I don't think there are any machine code decompilers that produce Pascal code. M...
[ 0.023141518235206604, -0.02433602884411812, 0.05731937289237976, 0.07905081659555435, -0.252038836479187, -0.17537063360214233, 0.09978637099266052, -0.14377546310424805, -0.1486366242170334, -0.5739504098892212, 0.0659724622964859, 0.6547870635986328, -0.4077441990375519, -0.2469173520803...
Delphi (there are many source code converters out there).
[ -0.05686408653855324, -0.010997671633958817, 0.1120869517326355, -0.1491696536540985, 0.0016360643785446882, -0.11268457770347595, -0.06045768782496452, 0.050603631883859634, -0.26677045226097107, -0.3889431953430176, -0.3407736122608185, 0.41439107060432434, -0.0702020525932312, -0.052677...
A longwinded question - please bear with me! I want to programatically create an XML document with namespaces and schemas. Something like ``` <myroot xmlns="http://www.someurl.com/ns/myroot" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.someurl.com/ns/myroot http:...
[ 0.059007856994867325, 0.1991327852010727, 0.5312844514846802, -0.14468950033187866, -0.20718233287334442, 0.04468051716685295, -0.14887306094169617, -0.16485454142093658, -0.3240302801132202, -0.11529704928398132, -0.0138764139264822, 0.1543383151292801, -0.07473889738321304, 0.16773948073...
xnsp + "myroot", new XElement(xnsp + "sometag", "somecontent") ); return xe; } ``` which gives me the namespace correctly, thus: ``` <myroot xmlns="http://www.someurl.com/ns/myroot"> <sometag>somecontent</sometag> </myroot> ``` My question: how can I add the schema xmlns:xsi and xsi:s...
[ 0.022855522111058235, 0.035881157964468, 0.5912680625915527, -0.26038825511932373, -0.12683968245983124, -0.11222105473279953, -0.059802163392305374, -0.0820554867386818, -0.03568309545516968, -0.5417169332504272, -0.09138592332601547, 0.34837257862091064, -0.3329232335090637, 0.0724575445...
is an array) to be converted into a scalar (which is the number of elements in `@_`). See answers to my previous question asking "[Why are Perl Function Prototypes Bad](https://stackoverflow.com/questions/297034/why-are-perl-function-prototypes-bad)"? FWIW, you can keep the prototypes in place if you change `bar` thu...
[ 0.15232719480991364, 0.1379322111606598, 0.26841992139816284, -0.350543349981308, -0.007418287917971611, 0.3872518241405487, 0.2552798092365265, -0.28982895612716675, -0.3245602250099182, -0.21316175162792206, -0.07527682930231094, 0.23191826045513153, -0.436895489692688, 0.240801215171813...
I essentially want to spider my local site and create a list of all the titles and URLs as in: ``` http://localhost/mySite/Default.aspx My Home Page http://localhost/mySite/Preferences.aspx My Preferences http://localhost/mySite/Messages.aspx Messages ``` I'm running Windows. I'm open to anything that wor...
[ 0.4116765856742859, 0.3075210452079773, 0.2887689173221588, -0.14832575619220734, -0.023979952558875084, -0.2785334289073944, 0.571596086025238, 0.07610950618982315, -0.2677367329597473, -0.6226433515548706, -0.05643436312675476, 0.3583930730819702, -0.14148694276809692, 0.263327956199646,...
-en $file '\t' cat $file | tr '\n' ' ' | sed -i 's/.*<title>\([^<]*\)<\/title>.*/\1/' done ``` Explanation: this finds every .aspx file under the root directory $WWWROOT, replaces all newlines with spaces so that there are no newlines between the `<title>` and `</title>`, and then grabs out the text between those t...
[ 0.14034098386764526, -0.16660253703594208, 0.8591827750205994, 0.1064097136259079, 0.2552300691604614, -0.19533225893974304, 0.20176531374454498, -0.3104836046695709, -0.10075849294662476, -0.7067437767982483, -0.3800252676010132, 0.025557775050401688, -0.2672744393348694, 0.12984362244606...
I just tried (for the first time, I might add) a > port upgrade installed in Macports, and I'm afraid I might come to regret it: A lot of errors -- specially regarding X11 and Python. Here's a typical error message regarding python: > ---> Activating python24 2.4.5\_4+darwin\_9 > Error: Activating python24 2.4.5\...
[ 0.14103716611862183, 0.35583367943763733, 0.32357481122016907, -0.15469875931739807, -0.02026236616075039, -0.33941709995269775, 1.020980954170227, 0.14287389814853668, -0.17198272049427032, -0.6364588141441345, -0.20950613915920258, 0.9711071848869324, -0.3441363275051117, -0.026320371776...
(usually because I goofed it up), I delete the /opt folder and reinstall. I'm just lazy, i guess. From what it looks like though, you are trying to reinstall a new port over an old/existing folder. Have you tried [Porticus](http://porticus.alittledrop.com/)? It will do a good job of telling you which ports are install...
[ 0.35738611221313477, -0.19833044707775116, 0.3253125250339508, -0.15286526083946228, 0.2058762013912201, 0.046674229204654694, 0.39787134528160095, 0.656622588634491, -0.35175448656082153, -0.673454225063324, -0.02939881570637226, 0.6672883033752441, -0.4784454107284546, 0.0898078083992004...
Reading about the [G.729 codec](http://en.wikipedia.org/wiki/G.729), I found this interesting tidbit about "[Comfort Noise](http://en.wikipedia.org/wiki/Comfort_noise)": > A comfort noise generator (CNG) is > also set up because in a communication > channel, if transmission is stopped, > and the link goes quiet bec...
[ -0.05058976635336876, 0.0815068930387497, 0.06673833727836609, 0.08854380249977112, -0.30589568614959717, -0.12640142440795898, 0.008753619156777859, -0.13874512910842896, -0.09095869958400726, -0.42857834696769714, -0.03622280806303024, 0.6238561272621155, -0.3645712435245514, 0.268040716...
software, for instance. Earlier today I also learned about [Saccadic Suppression](http://scienceweek.com/2004/sc040709-4.htm): > Humans avoid retinal blurring during eye > movement by > temporarily attenuating the data > flowing from the retina into the > brain. An amusing way to demonstrate > this phenomenon is...
[ 0.4069535732269287, -0.031557731330394745, 0.23909929394721985, 0.22013871371746063, -0.010896741412580013, -0.07844346016645432, 0.49441325664520264, -0.04158128425478935, -0.3545053005218506, -0.5615094304084778, -0.10920117795467377, 1.0966731309890747, -0.025817954912781715, 0.07134117...
has application in video game and other visual and graphics development. There are many books on user interface design, but I have yet to see a single reference which enumerates *most* of the human design factors we *should* understand when designing software. I expect a lot of software engineers learn this by the sea...
[ 0.3366839289665222, 0.30775976181030273, -0.009463801980018616, 0.47673994302749634, -0.1307528167963028, 0.12923771142959595, -0.15906429290771484, 0.03685276582837105, -0.3265484869480133, -0.3744366466999054, -0.10954827815294266, 0.48913535475730896, -0.09334937483072281, -0.1295219659...
**Without getting a BS/BA in a dozen different professions, where would I look for this sort of information?** * **Am I doomed to stumbling across it in daily internet surfing** (which many companies/managers frown on)**?** * **What other human factors impact programming** (please link a reference, resource, or at leas...
[ 0.7340990304946899, 0.5000195503234863, 0.15780821442604065, 0.0792783722281456, 0.06641621142625809, -0.17924828827381134, 0.26907724142074585, 0.2757589519023895, -0.1233828142285347, -0.6296609044075012, -0.06428726017475128, 0.551823079586029, 0.2136620432138443, -0.0001580472890054807...
an HMI/UI Style Guide that spells out the basic precepts developers should be using their interface designs for the specific goals of their software. In many cases, it's as important to be consistent as it is to be correct, so having a single guide for a big product, or suite of products gets really important. It also ...
[ 0.7231194972991943, 0.24190355837345123, 0.5381815433502197, 0.36369630694389343, -0.020234564319252968, -0.347814679145813, -0.04138367623090744, -0.306606650352478, 0.010180024430155754, -0.707769513130188, -0.3053889572620392, 0.6230641007423401, 0.03896046429872513, -0.327547162771225,...
a reference point of all the things to consider when making a design. I'm not sure you will ever find a single guide for *all* aspects of user interface design that is a one size fits all source. Different types of technology require different techniques - for example the two design ideas above are useful for two very...
[ 0.47734612226486206, 0.2365025132894516, 0.28233009576797485, 0.35348185896873474, -0.12272676825523376, -0.0646323412656784, -0.08003544807434082, -0.09658509492874146, -0.12046364694833755, -0.8836416006088257, 0.14425085484981537, 0.529961884021759, -0.05763097479939461, 0.2895264029502...
that violate older early web UI design practices. General principles that I find useful for my work in the web app world: * Always consider what the user is trying to do as the first priority * Consider other systems the user is already familiar with and copy them when possible\* * Focus attention on the most import...
[ 0.42105889320373535, 0.05549240484833717, 0.057502176612615585, 0.20872768759727478, 0.0686553567647934, 0.024409374222159386, 0.18033038079738617, 0.059965744614601135, -0.2559397220611572, -1.0003440380096436, -0.2518378794193268, 0.46573251485824585, -0.24584920704364777, -0.43292674422...
Then design with the key aspects of the user in mind. * Consider the user's environment - hardware, network, physical surroundings * Make the user do as little activity as possible to accomplish their goals - ie, mouse clicks, key strokes, voice commands Sadly, mileage may vary - I have always worked in the world of a...
[ 0.788110077381134, 0.32021135091781616, -0.0800696611404419, 0.278179407119751, 0.2550004720687866, 0.11091455072164536, 0.32067400217056274, -0.045856356620788574, 0.16002556681632996, -0.9714313745498657, 0.155725359916687, 0.6943857669830322, 0.023665010929107666, -0.13630463182926178, ...
- are a whole different ball game. In those cases, you may not be trying to make everything *easy* - but you are trying to add challenge in a way that is enjoyable. \*(Edit - Added) - when possible *and* when it makes sense. Don't be afraid to reinvent the wheel when you have a better idea so long as you have a good c...
[ 0.3619702458381653, -0.11344593018293381, 0.12225379049777985, 0.501899003982544, -0.28382188081741333, -0.11409038305282593, -0.06975171715021133, 0.045757927000522614, -0.5098013877868652, -0.6089958548545837, 0.09750019758939743, 0.7203788161277771, -0.018642643466591835, -0.01722315326...
I'm developing a game coded in Flash AS3 and need to read/write info to an SQL server. Currently, for testing purposes, I use [ASQL](http://asql.mooska.pl/) which is very simple and robust, but it needs a direct connection from the client machine to the SQL server (port 3306 open and allowing wildcard username to conne...
[ 0.1446414440870285, -0.02010456472635269, 0.17507138848304749, 0.06317455321550369, -0.1597709208726883, -0.29014456272125244, 0.344073086977005, -0.14126846194267273, -0.15421146154403687, -0.6126797795295715, -0.10080143064260483, 0.3202849328517914, -0.16471734642982483, -0.015424750745...
POST req to a PHP page which connects to the MySQL server 2. Use [amfphp](http://www.amfphp.org/), but the AMF protocol is still sniff-able 3. Keep current method and force users to have outgoing port 3306 open, which may confuse costumers. Help/tips/discussion would be highly appreciated. Depending on the number of c...
[ 0.3617994785308838, -0.19539114832878113, 0.5567166805267334, 0.14996099472045898, -0.22181621193885803, -0.17077812552452087, 0.5417379140853882, -0.48951277136802673, -0.22499726712703705, -0.4285702705383301, -0.22279293835163116, 0.4857863783836365, -0.44064846634864807, 0.120939724147...
you cannot prevent people from faking results. The client is never to be trusted and no securing of the line (https or any other encryption of the communication) will help that -- that will only keep other people from eavesdropping. If you are trying to secure the posting of high scores or game state - to my knowledge...
[ 0.32916393876075745, -0.08279618620872498, 0.15831074118614197, 0.4979560077190399, 0.31161513924598694, -0.4592619240283966, 0.4536413252353668, 0.15982095897197723, -0.06629571318626404, -0.21042992174625397, 0.0488918237388134, 0.4546956419944763, -0.4244115650653839, 0.1064997538924217...
I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it. Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it, so that it will be found when compiling? Are there special director...
[ 0.3383864462375641, 0.12204132229089737, -0.049304019659757614, -0.030115436762571335, 0.03225848078727722, -0.17955903708934784, -0.049951404333114624, -0.14313046634197235, -0.27350834012031555, -0.7798253893852234, -0.3132680654525757, 0.44670212268829346, -0.13087709248065948, -0.23071...
→ *Projects and Solutions* → *VC++ Directories*. * In new versions of Visual Studio (2015+) the above option is deprecated and a list of default include directories is available at *Project Properties* → *Configuration* → *VC++ Directories* In your case, add the directory that the header is to the project properties (...
[ 0.13987356424331665, -0.04249793291091919, 0.23154780268669128, -0.020252326503396034, -0.00924407783895731, 0.0010577122448012233, 0.02684978023171425, -0.1362752914428711, -0.3093578815460205, -0.7493757605552673, -0.7625787854194641, 0.4564642608165741, -0.29909273982048035, -0.16784660...
I'm getting a syntax error (undefined line 1 test.js) in Firefox 3 when I run this code. The alert works properly (it displays 'work') but I have no idea why I am receiving the syntax error. jQuery code: ``` $.getJSON("json/test.js", function(data) { alert(data[0].test); }); ``` test.js: ``` [{"test": "work"}]...
[ 0.2665841281414032, 0.19282664358615875, 0.4143374562263489, -0.28571170568466187, -0.041283320635557175, -0.323592871427536, 0.7157752513885498, -0.19178041815757751, -0.1345965415239334, -0.636124312877655, -0.08346299827098846, 0.6602010726928711, -0.5757879614830017, -0.317793369293212...
xhr.overrideMimeType("text/plain"); } }); ``` Now the explanation: In firefox 3 (and I asume only firefox THREE) every file that has the mime-type of "text/xml" is parsed and syntax-checked. If you start your JSON with an "[" it will raise an Syntax Error, if it starts with "{" it's an "Malformed Error" (my trans...
[ 0.12012232840061188, 0.6140905022621155, 0.386239230632782, -0.2450074404478073, -0.03721734881401062, -0.3708837330341339, 0.4400146007537842, -0.23006220161914825, 0.1083390861749649, -0.5676524043083191, -0.37471723556518555, 0.7031292915344238, -0.6300831437110901, -0.20442651212215424...
you from an error-message **Edit:** In jquery 1.5.1 or higher, you can use the mimeType option to achieve the same effect. To set it as a default for all requests, use ``` $.ajaxSetup({ mimeType: "text/plain" }); ``` You can also use it with $.ajax directly, i.e., your calls translates to ``` $.ajax({ url: "js...
[ 0.22712723910808563, -0.16556668281555176, 0.2108639031648636, -0.038809292018413544, -0.041971754282712936, -0.13718129694461823, 0.4269964396953583, 0.18706440925598145, -0.01700906828045845, -0.818088173866272, -0.3479771018028259, 0.8154364228248596, -0.28189700841903687, -0.2852969169...
The HTTP/1.1 specification ([RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)) defines a number of status codes that can be returned by HTTP server to signal certain conditions. Some of those codes can be utilized by web applications (and frameworks). Which of those codes are the most useful in practice...
[ 0.3087809085845947, -0.155851811170578, 0.4052269756793976, 0.09785144031047821, 0.13697795569896698, -0.04273385927081108, 0.43990465998649597, -0.21344208717346191, -0.024457788094878197, -0.6522188186645508, -0.4939877688884735, 0.2891994118690491, -0.14665524661540985, -0.0868444964289...
find with a quick `grep 'Status:'` anyway): * **200** Successfully retrieved a resource without affecting it * **201** Sent whenever a form submission puts something significant into the database (forum post, user account, etc.), creating a new resource * **204** Sent with empty body, for example after a DELETE * **30...
[ 0.076511912047863, -0.27047985792160034, 0.3951805830001831, 0.2942720651626587, -0.022749362513422966, -0.10719176381826401, 0.2377433180809021, 0.04318263381719589, -0.07672689110040665, -0.7388620376586914, -0.004892856813967228, 0.43215110898017883, -0.17531602084636688, -0.08712282776...
and inconsistent behaviour here... * **400** Used for bad form submissions that fail some validation check. * **403** Used whenever someone is somewhere they shouldn't be (though I try to avoid that by not displaying links to stuff the users shouldn't access). * **404** Apart from the normal webserver ones I use these ...
[ 0.32030433416366577, 0.02175692468881607, 0.297203004360199, 0.17768463492393494, -0.20866084098815918, -0.28889352083206177, 0.549304723739624, 0.2642154097557068, -0.4345360994338989, -0.42203399538993835, -0.28519588708877563, 0.17960762977600098, -0.1859498769044876, 0.0280855279415845...
option is to give up, to make sure something meaningful is sent to the browser. I realise I could get away with simply letting the server send "200" for everything, but they save a lot of pain when users are seeing (or causing) errors and not telling you about them. I've already got functions to display access-denied ...
[ 0.4558631479740143, 0.10092496126890182, 0.17403395473957062, 0.06087946891784668, -0.12351512163877487, 0.20642760396003723, 0.32297471165657043, 0.25553029775619507, 0.03258615359663963, -0.3998892307281494, 0.09196262061595917, 0.38656365871429443, -0.05924326926469803, -0.1379983276128...
I have a form that has a public property ``` public bool cancelSearch = false; ``` I also have a class which is sitting in my bll (business logic layer), in this class I have a method, and in this method I have a loop. I would like to know how can I get the method to recognise the form (this custom class and form1 a...
[ 0.18069761991500854, 0.12280216068029404, 0.28246936202049255, -0.04179183393716812, -0.1682027131319046, -0.3166729211807251, 0.3752753734588623, -0.32678067684173584, -0.03638704866170883, -0.4218055307865143, 0.03013419173657894, 0.5726243853569031, -0.4173640310764313, 0.14788308739662...
the business logic that needs to know the information pass a reference of the form to the method. Something like. ``` public class MyBLClass { public void DoSomething(Form1 theForm) { //You can use theForm.cancelSearch to get the value } } ``` then when calling it from a Form1 instance ``` MyBl...
[ 0.3335546553134918, -0.08963552862405777, 0.5047838687896729, -0.055701322853565216, 0.045897215604782104, -0.2692681849002838, 0.09896305203437805, -0.40618422627449036, 0.07223151624202728, -0.6256252527236938, -0.013725056312978268, 0.7813891172409058, -0.35178205370903015, 0.1147515624...
I'm making a simple remove link with an onClick event that brings up a confirm dialog. I want to confirm that the user wants to delete an entry. However, it seems that when Cancel is clicked in the dialog, the default action (i.e. the href link) is still taking place, so the entry still gets deleted. Not sure what I'm ...
[ 0.213844895362854, 0.2528539001941681, 0.551642656326294, 0.10578268766403198, 0.12302857637405396, -0.25877779722213745, 0.3360671103000641, 0.10994081199169159, -0.07400912791490555, -0.2405327707529068, -0.13379298150539398, 0.4271124005317688, -0.4773319363594055, 0.32351619005203247, ...
bring up a dialog, but was still going to the link on Cancel. ``` <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <script type="text/javascript"> function delete() { ...
[ -0.17776955664157867, 0.15212604403495789, 0.647766649723053, -0.1135135218501091, -0.01452317088842392, 0.0555197075009346, 0.07337184250354767, -0.44931042194366455, -0.18765991926193237, -0.6468858122825623, -0.11577395349740982, 0.6634653210639954, -0.1936662197113037, -0.0571169368922...
a typo in your code (the tag **a** is closed too early). You can either use: ``` <a href="whatever" onclick="return confirm('are you sure?')"><img ...></a> ``` note the **return (confirm)**: the value returned by scripts in intrinsic evens decides whether the default browser action is run or not; in case you need to...
[ 0.1672070473432541, -0.043921541422605515, 0.4966508448123932, 0.12147555500268936, 0.2810628116130829, -0.312093049287796, 0.1534285992383957, -0.26761072874069214, -0.34606486558914185, -0.42013654112815857, -0.3745790719985962, 0.6705633401870728, -0.2091081291437149, -0.235639467835426...
the details of the event, stop the propagation and much more; see [DOM Events](http://en.wikipedia.org/wiki/DOM_Events).
[ 0.07350493222475052, -0.32745105028152466, 0.18895623087882996, -0.20304231345653534, -0.045720674097537994, -0.618174135684967, 0.6730129718780518, 0.24834053218364716, -0.4941273331642151, 0.06490133702754974, -0.584834635257721, 0.6470277905464172, -0.21090750396251678, 0.20399156212806...
I have an SQL Server 2005 server, and I'd like to run a .Net CLR stored procedure on it. However, I'd like to use .NET Framework 3.5. If I try this right now, I get this error: ``` Error: Assembly 'system.core, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089.' was not found in the SQL catalog. ``` ...
[ -0.030830586329102516, 0.4711875021457672, 0.17193695902824402, -0.22255147993564606, -0.020516999065876007, -0.1914052516222, 0.567767858505249, 0.07798166573047638, -0.12581291794776917, -0.4136223793029785, 0.14658863842487335, 0.5915091037750244, -0.36191707849502563, 0.198040425777435...
If system.core can't be found, do you have the framework 3.5 installed on the database server?
[ 0.4256666600704193, -0.14804482460021973, -0.0027863404247909784, 0.32817694544792175, 0.2547672688961029, -0.4234715402126312, 0.21763134002685547, 0.06367917358875275, -0.036862198263406754, -0.5950726270675659, 0.023138893768191338, 0.4649224281311035, -0.32377105951309204, 0.0835908129...
I have two characters displayed in a game I am writing, the player and the enemy. defined as such: ``` public void player(Graphics g) { g.drawImage(plimg, x, y, this); } public void enemy(Graphics g) { g.drawImage(enemy, 200, 200, this); } ``` Then called with: ``` player(g); enemy(g); ``` I am able to m...
[ -0.2209092080593109, -0.08287111669778824, 0.4247500002384186, -0.22550469636917114, -0.282490074634552, 0.5248904228210449, -0.216975137591362, 0.14118458330631256, -0.19271127879619598, -0.9295805096626282, -0.01736895926296711, 0.49843889474868774, -0.07957325130701065, -0.0896952226758...
your problem is that you are not using good OO design for your player and enemies. Create two classes: ``` public class Player { int X; int Y; int Width; int Height; // Getters and Setters } public class Enemy { int X; int Y; int Width; int Height; // Getters and Setters } `...
[ -0.37679290771484375, 0.002459149807691574, 0.0013876394368708134, -0.049039099365472794, 0.11487660557031631, 0.20594154298305511, 0.1598985344171524, -0.18805688619613647, -0.14555029571056366, -0.6663026809692383, -0.22523801028728485, 0.6046910285949707, -0.2701718211174011, 0.15377081...
Rectangle r = new Rectangle(e.X,e.Y,e.Width,e.Height); Rectangle p = new Rectangle(player.X,player.Y,player.Width,player.Height); // Assuming there is an intersect method, otherwise just handcompare the values if (r.Intersects(p)) { // A Collision! // we know which enemy (e), so we can ca...
[ -0.09688598662614822, -0.17182312905788422, 0.8020567893981934, 0.025827866047620773, 0.04957295209169388, 0.1049363985657692, 0.11956463754177094, -0.3322403132915497, -0.5253050923347473, -0.9404819011688232, -0.06574647128582001, 0.48834994435310364, -0.22113975882530212, 0.268119901418...
I have been developing a compact framework app on an emulator, and some of the forms use DateTimePickers. These work fine in the emulator, but when running on the hardware they cause the form to close when a date is selected. No exception is thrown...the form just closes unexpectedly. Has anyone experienced this or kno...
[ 0.1824733316898346, 0.03139388933777809, 0.765341579914093, -0.20276598632335663, 0.17439280450344086, -0.22898197174072266, 0.4657666087150574, 0.21657826006412506, 0.0045295520685613155, -0.42362332344055176, -0.19430196285247803, 0.44246944785118103, -0.1645592302083969, 0.1298443228006...
scroll through values. This provides the same functionality without the bug, but doesn't have the visual appeal that the popup calendar does. If anyone has any other ideas for me to try let me know, otherwise this is the working solution.
[ 0.5101593732833862, -0.08425893634557724, 0.3797461986541748, 0.3681008219718933, -0.09453973174095154, -0.20730921626091003, 0.3532443046569824, 0.3810926377773285, -0.21663810312747955, -0.7718938589096069, 0.2837572395801544, 0.5834458470344543, -0.10517947375774384, 0.02261949516832828...
I have a class that after it does some stuff, sends a JMS message. I'd like to unit test the "stuff", but not necessarily the sending of the message. When I run my test, the "stuff" green bars, but then fails when sending the message (it should, the app server is not running). What is the best way to do this, is it to...
[ 0.34125879406929016, 0.0027285756077617407, 0.022676020860671997, -0.06589416414499283, -0.2130500227212906, 0.14901436865329742, 0.4663161039352417, -0.026290416717529297, -0.31269294023513794, -0.377832293510437, 0.05191752314567566, 0.28301048278808594, -0.03550398722290993, -0.03638638...
you have this: ``` public class SomeClass { public void doit() { //do some stuff sendMessage( /*some parameters*/); } public void sendMessage( /*some parameters*/ ) { //jms stuff } } ``` Then I would write a test that obscures the sendMessage behavior. For example: ``` @Tes...
[ 0.5822057723999023, -0.22753256559371948, 0.24191245436668396, -0.10757496953010559, 0.3827553987503052, -0.40344133973121643, 0.47947773337364197, -0.30645403265953064, -0.08018273115158081, -0.5403966307640076, 0.1321737915277481, 0.45378825068473816, -0.24708542227745056, 0.063207201659...
public void sendMessage( /*some parameters*/ ) { /*do nothing*/ } } thing.doit(); assertThat( "Good stuff happened", x, is( y ) ); } ``` If the amount of code that is stubbed out or obscured is substantial, I would not use an *anonymous* inner class but just a "normal" inner class.
[ 0.36229896545410156, -0.06029307469725609, 0.09801102429628372, -0.29836058616638184, 0.14835098385810852, -0.5172821879386902, 0.7071800231933594, 0.0011881963582709432, 0.021272435784339905, -0.41257885098457336, -0.132658913731575, 0.5250667333602905, -0.2722119987010956, 0.163860648870...
How to enforce that developers writing XAML in Visual Studio should follow certain standards and validations need to be run and if invalid compile time errors are thrown. For example, making sure that all the databinding expressions (some are real long) are written correctly as per 'a custom validation' I would like i...
[ 0.2593137323856354, 0.11589076370000839, 0.31265902519226074, 0.03758006915450096, -0.0903133675456047, -0.3199198544025421, 0.3437883257865906, -0.28887590765953064, -0.16859844326972961, -0.5434851050376892, -0.1472049355506897, 0.6621806025505066, -0.324045330286026, -0.2867949604988098...
either. The best way to do this today is to author a build task. I think you can hook it into the MarkupCompilePass1DependsOn target and it will be invoked automatically when the user saves or changes a XAML file. You still have to scan the file redundantly from us, but you don’t have to wait for an actual build to mak...
[ 0.739547848701477, 0.20132766664028168, 0.05698037147521973, 0.05413306877017021, -0.013221226632595062, -0.18708643317222595, 0.3192259967327118, -0.11614245921373367, -0.2287236750125885, -0.8011147975921631, 0.24514810740947723, 0.6232444047927856, -0.2415260523557663, -0.24680274724960...
For example, how can I run me.test below? ``` myvar = 'test' me.myvar ``` ASP looks for the method "myvar" and doesn't find it. In PHP I could simply say $me->$myvar but ASP's syntax doesn't distinguish between variables and methods. Suggestions? Closely related to this, is there a method\_exists function in ASP Cl...
[ 0.46132898330688477, 0.2170189917087555, 0.29314833879470825, 0.10507820546627045, -0.3619258403778076, -0.012379663065075874, 0.4239118695259094, -0.4222891926765442, 0.04804576560854912, -0.5140292644500732, 0.1015629693865776, 0.4004530608654022, -0.11546138674020767, 0.0721218213438987...
delimited section of the string is the name of a method. If you have suggestions for a better setup, I'm all ears! You can achieve this in VBScript by using the `GetRef` function:- ``` Function Test(val) Test = val & " has been tested" End Function Dim myvar : myvar = "Test" Dim x : Set x = GetRef(myvar) Response....
[ 0.38137075304985046, -0.04859643802046776, 0.6994524002075195, -0.03130049630999565, -0.23238614201545715, -0.06511235237121582, 0.4777030348777771, -0.674705982208252, 0.06556320190429688, -0.2911922037601471, -0.3726541996002197, 0.6820436716079712, -0.06576795130968094, -0.0055046840570...
<= CInt(params(0)) End Function Function alphanumeric(val) Dim rgx : Set rgx = New RegExp rgx.Pattern = "^[A-Za-z0-9]+$" alphanumeric = rgx.Test(val) End Function Function validate(val, criterion) Dim arrCriterion : arrCriterion = Split(criterion, "|") Dim criteria validate = True For E...
[ 0.14920535683631897, -0.21755197644233704, 0.8756641149520874, -0.046770527958869934, -0.301470547914505, 0.26377207040786743, 0.10587818175554276, -1.0232144594192505, -0.08305341005325317, -0.13488881289958954, -0.30188360810279846, 0.5369896292686462, -0.29236626625061035, 0.27866581082...
Else Dim paramList paramList = Split(Mid(criteria, paramListPos + 1, Len(criteria) - paramListPos - 1), ",") criteria = Left(criteria, paramListPos - 1) validate = GetRef(criteria)(val, paramList) End If If Not validate Then Exit For
[ -0.26003047823905945, -0.4482675790786743, 0.9140489101409912, 0.06636719405651093, 0.0895090252161026, -0.011744465678930283, 0.2755858898162842, -0.5164819955825806, -0.15818624198436737, -0.33346864581108093, -0.47643759846687317, 0.32872530817985535, -0.14998352527618408, 0.16160160303...
Next End Function ``` Having provided this I have to say though that if you are familiar with PHP then JScript would be a better choice on the server. In Javascript you can call a method like this:- ``` function test(val) { return val + " has been tested"; ) var myvar = "test" Response.Write(this[myvar]("Thing")) ...
[ 0.08793408423662186, -0.0707131028175354, 0.3375996947288513, -0.17355309426784515, -0.14396987855434418, -0.31211918592453003, 0.2904759645462036, -0.4789220094680786, 0.160893052816391, -0.5819458365440369, -0.05109509080648422, 0.6106263399124146, -0.015569393523037434, 0.00645236019045...
Finding a good way to do this has stumped me for a while now: assume I have a selection box with a set of points in it. By dragging the corners you can scale the (distance between) points in the box. Now for an axis aligned box this is easy. Take a corner as an anchor point (subtract this corner from each point, scale ...
[ 0.08910603821277618, -0.24497976899147034, 0.3605336546897888, -0.0029628730844706297, -0.06821013242006302, 0.13347208499908447, -0.17831705510616302, -0.35079193115234375, -0.3365327715873718, -0.5176230072975159, 0.13450418412685394, 0.3647570312023163, -0.2178470641374588, 0.2792684733...
and y axis. How do you scale the points inside this box when you drag its corners? You pick one corner of the rectangle as the origin. The two edges connected to it will be the basis (`u` and `v`, which should be perpendicular to each other). You would need to normalize them first. Subtract the origin from the coordin...
[ 0.1716463565826416, -0.30029699206352234, 0.5413973927497864, 0.16032718122005463, -0.1805606633424759, 0.2991265058517456, -0.24892377853393555, -0.30621829628944397, -0.031780775636434555, -0.6977278590202332, 0.22852477431297302, 0.2815542221069336, -0.28196752071380615, 0.5694894790649...
the the (now scaled) components with their respective vector, and add them together. For example: ``` Points: p1 = (3,5) and p2 = (6,4) Selection corners: (0,2),(8,0),(9,4),(1,6) selected origin = (8,0) u = ((0,2)-(8,0))/|(0,2)-(8,0)| = <-0.970, 0.242> v = <-0.242, -0.970> ``` (`v` is `u`, but with flipped coordi...
[ -0.5479124188423157, -0.27185294032096863, 0.6374430656433105, 0.11147148162126541, -0.1426447182893753, 0.8796653151512146, -0.20343001186847687, -0.5455663800239563, -0.15086334943771362, -0.7025346159934998, -0.0863928347826004, 0.23174653947353363, -0.05241497978568077, 0.3292191326618...
<5.941, 4.265> Same for p2: <7.412, 3.647> ``` As you maybe can see, they have moved towards the line `(8,0)`-`(9,4)`, since we scaled by 0.5, with `(0,8)` as the origin. **Edit:** This turned out to be a little harder to explain than I anticipated. In python code, it could look something like this: ``` def scale...
[ -0.1443406343460083, -0.37844118475914, 0.6183585524559021, -0.16178682446479797, -0.282682329416275, 0.40060386061668396, -0.014273947104811668, -0.2573465406894684, -0.5982971787452698, -0.6967531442642212, 0.013308275490999222, 0.099068284034729, 0.03341424837708473, 0.4061066210269928,...
# subtract origin x, y = x - origin[0], y - origin[1] # calculate dot product pu = x * u[0] + y * u[1] pv = x * v[0] + y * v[1] # scale pu = pu * scale # transform back to
[ 0.010314126498997211, -0.7954341769218445, 0.535241425037384, -0.3600751757621765, -0.43160271644592285, 0.6509767770767212, -0.02543461136519909, -0.3475450873374939, -0.01289698202162981, -0.680042028427124, -0.012227700091898441, 0.31882771849632263, 0.10779727250337601, 0.1029052883386...
normal space x = pu * u[0] + pv * v[0] + origin[0] y = pu * u[1] + pv * v[1] + origin[1] ret.append((x,y)) return ret >>> scale([(3,5),(6,4)],(8,0),(-8,2),0.5) [(5.9411764705882355, 4.2647058823529411), (7.4117647058823533, 3.6470588235294117)] ```
[ -0.276745080947876, -0.2853710651397705, 0.6460471749305725, -0.08414231985807419, -0.08409334719181061, 0.49837446212768555, 0.0001631643681321293, -0.08828417956829071, -0.030238227918744087, -0.6207115650177002, -0.4060230553150177, 0.4150811433792114, -0.1726873219013214, 0.18900549411...
We've got a PHP web service which we need to send a file from a .NET 3.5 web app. The PHP team has stated that we need to provide the file in the form of a SOAP attachment, but we can't find a way from which we can do that in .NET. All reference examples that we've been able to come across refer to using the DIME, bu...
[ 0.4609036445617676, 0.1980019062757492, 0.373987078666687, 0.02395329251885414, -0.32485559582710266, -0.2496839016675949, -0.13711239397525787, 0.049908898770809174, -0.13707475364208221, -0.863975465297699, 0.22565174102783203, 0.008614100515842438, -0.2782939076423645, 0.111751183867454...
the transfer of binary and other encapsulated data over SOAP." This is totally unrelated to SOAP with Attachments or XOP/MOTM, which supercedes it: > Microsoft now describes it as "superseded by the SOAP Message Transmission Optimization > Mechanism (MTOM) [specification](http://msdn.microsoft.com/en-us/library/ms9...
[ 0.28595200181007385, -0.003434959566220641, 0.44642913341522217, -0.18339651823043823, -0.11288753896951675, -0.4140230119228363, 0.3228870928287506, -0.25598204135894775, -0.19664283096790314, -0.6265705227851868, 0.08983061462640762, 0.25202658772468567, -0.46211954951286316, 0.362944453...
at [this](http://www.codeproject.com/KB/XML/MTOMWebServices.aspx)
[ 0.21227018535137177, 0.12887297570705414, -0.09661193192005157, 0.23677395284175873, 0.267251193523407, -0.12862737476825714, 0.1703001856803894, 0.1112719401717186, -0.7325936555862427, -0.2652255892753601, -0.497784286737442, 0.11547653377056122, -0.17735278606414795, 0.25250688195228577...
The typical ConfigParser generated file looks like: ``` [Section] bar=foo [Section 2] bar2= baz ``` Now, is there a way to index lists like, for instance: ``` [Section 3] barList={ item1, item2 } ``` Related question: [Python’s ConfigParser unique keys per section](https://stackoverflow.com/questions/2877...
[ -0.0680239349603653, 0.0765727236866951, 0.3974018096923828, -0.0655096024274826, -0.14172454178333282, -0.32072019577026367, 0.18771059811115265, -0.3049284815788269, -0.45894694328308105, -0.23228318989276886, -0.28171637654304504, 0.4263755977153778, -0.5458255410194397, -0.220650970935...
Example: ``` $ svn copy foo.txt bar.txt A bar.txt ``` * When would you use this technique, and why? * Will this command (taken from svn's "red book") creates a copy of `<foo.txt>` while preserving the history of it to be shared with `<bar.txt>`? * If I'm changing `<bar.txt>`, what will happen to `<foo.txt>`? ...
[ 0.39080777764320374, -0.16014675796031952, 0.25316160917282104, -0.09838808327913284, 0.21082159876823425, -0.32898640632629395, 0.046109914779663086, -0.06142972782254219, -0.4909873902797699, -0.5631752014160156, -0.05028250068426132, 0.5810167789459229, -0.4408833086490631, 0.3911804258...
a file and than start changing that new file. all in the same branch? I understand that it is also used for tagging but what is interesting me is what to expect when performing `<svn copy>` on the file level. Aside from branching/tagging, you can also use it when you split a file in two. In this case both new files ...
[ 0.7356221675872803, -0.40499788522720337, 0.11875415593385696, 0.16786080598831177, -0.0023518241941928864, -0.6329331398010254, -0.048690732568502426, 0.07934621721506119, -0.5126510858535767, -0.4954182803630829, -0.081837497651577, 0.4997345209121704, -0.21629785001277924, 0.26944008469...
you add `-C` to commands).
[ 0.12313134223222733, 0.11696909368038177, 0.10908491164445877, 0.030137235298752785, 0.17341086268424988, -0.25585275888442993, 0.24520014226436615, -0.11251538246870041, -0.09839000552892685, -0.14550626277923584, -0.741615891456604, 0.6508581042289734, -0.1728084236383438, -0.10122989118...
I had some site templates designed for me recently. I got the final HTML code, which validates, but the structure of the document is laid out using DL-DD pairs: ``` <dl> <dd class="some-class"> Some text. </dd> </dl> ``` I'm not especially familiar with those tags as I've never used them much, but they don't...
[ 0.5640203952789307, 0.2011973261833191, 0.32919377088546753, 0.22286255657672882, -0.2371528297662735, -0.19104228913784027, 0.19631916284561157, -0.22417409718036652, -0.11647811532020569, -0.8357214331626892, -0.10463228076696396, 0.275566041469574, -0.29435157775878906, 0.23304635286331...
they're overriding the padding/margins on them, then your guess is as good as mine.
[ 0.4949835538864136, 0.4422062039375305, 0.1331460177898407, 0.20982792973518372, 0.16959895193576813, 0.07582441717386246, -0.1684306114912033, 0.09923738986253738, -0.23072709143161774, -0.5437760949134827, 0.38672763109207153, 0.4513169527053833, 0.403213769197464, -0.10213769972324371, ...
In visual studio 2008, when I drag a database table into my dbml screen, any tables that end with the letter s automatcially get the s removed from the dbml object. Is there any way to disable this? Also, the collection of rows also gets an s appended to the collection property name. Is there a way to change that as w...
[ -0.177133709192276, -0.14195065200328827, 0.3354804515838623, 0.09457121044397354, -0.4953814744949341, -0.025823134928941727, 0.19538022577762604, -0.28372490406036377, -0.372433066368103, -0.6015058159828186, 0.0840253010392189, 0.614305853843689, -0.5621447563171387, 0.04195917770266533...
your project and it should address the naming
[ 0.6179507374763489, 0.13815368711948395, -0.2416592836380005, 0.09140126407146454, -0.2339542657136917, -0.03882769122719765, -0.4245225191116333, 0.05963362753391266, -0.035674504935741425, -0.5041338205337524, -0.047232016921043396, 0.2433810979127884, 0.19764463603496552, 0.333280295133...
I'd appreciate some feedback on a particular approach I'm thinking of using. The scenario is below. I have an object (lets call it MObject) that has a number of properties, say, x and y coordinates, height and width. The properties are named according to the KVC guidelines (MObject.x; MObject.height, etc). My next tas...
[ 0.10650164633989334, 0.11852490156888962, 0.47224053740501404, 0.09116761386394501, -0.34219926595687866, 0.12637387216091156, 0.18533813953399658, -0.24096721410751343, 0.05598999932408333, -0.7392526268959045, 0.12375350296497345, 0.6083993315696716, 0.008402355015277863, 0.1274020820856...
whole whack of code: ``` for (xmlProperty in xmlElement) { [MObject setValue:xmlProperty.value forKey:xmlProperty.name]. } ``` One way of approaching this would be to make use of case-insensitive keys. Where would I start with that? Are there any other, better solutions? Suggestions very much appreciated. Don't...
[ 0.10314064472913742, 0.06265920400619507, -0.04031650722026825, 0.057948026806116104, -0.09366930276155472, -0.2574008107185364, 0.43921181559562683, -0.3518667221069336, -0.019746070727705956, -0.32625558972358704, -0.13593697547912598, 0.7141062617301941, -0.32819509506225586, 0.14941932...
*)keyForName:(NSString *)name { // _nameToKeyCache is an NSMutableDictionary that caches the key // generated for a given name so it's only generated once per name NSString *key = [_nameToKeyCache objectForKey:name]; if (key == nil) { // ...generate key... [_nameToKeyCache setObject:key ...
[ -0.24878612160682678, 0.05192728713154793, 0.2801811993122101, 0.031186578795313835, 0.16221722960472107, 0.06018522009253502, 0.21561630070209503, -0.3211541771888733, 0.10562817752361298, -0.08951526135206223, -0.1473141759634018, 0.18510526418685913, -0.07270137220621109, 0.493793576955...
} } ```
[ 0.17493881285190582, 0.41805654764175415, 0.05209751054644585, -0.04864929988980293, 0.437467485666275, -0.15825650095939636, 0.13202530145645142, 0.5446501970291138, 0.35430577397346497, -0.4846813380718231, -0.2295716553926468, 0.546978771686554, -0.3188462555408478, 0.2798506021499634, ...