text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
be a way to do something like ``` session_write_open(); //do stuff session_write_close(); ``` But the session\_write\_open() doesn't exist! Thanks *Before* you make some change to the session, call `session_start` again. Make the changes, and if you still do not want to exit call `session_write_close` once more. Yo...
[ 0.2944658100605011, -0.040492139756679535, 0.3758986294269562, -0.15290048718452454, 0.27054455876350403, -0.42258837819099426, 0.42334651947021484, 0.24012257158756256, -0.3198576867580414, -0.7135927677154541, -0.28695908188819885, 0.9421234130859375, -0.2252013385295868, 0.0253247693181...
I need change attribute's parameter during runtime. I simplified my problem to simple example. **Attribute class:** ``` [AttributeUsage(AttributeTargets.Property)] public class MyAttribute : Attribute { public string Name { get; set; } } ``` **Simple entity which has decorated properties wit...
[ -0.3601723313331604, 0.13020700216293335, 0.6379604339599609, -0.05572693794965744, 0.17981572449207306, 0.2375936508178711, 0.5084431171417236, -0.28553974628448486, -0.0821622684597969, -0.7695869207382202, -0.29328280687332153, 0.7109161019325256, -0.06885094195604324, 0.255010694265365...
public string Data2 { get; set; } } ``` I created instance of class MyEntity. I can change value of object's properties, but I can't change value of attribute’s property Name on object entity. Is it possible? Value of property on object entity I can change with this part of code: ``` entityProp....
[ -0.13433507084846497, -0.014712450094521046, 0.13008756935596466, 0.3021816909313202, 0.10648062825202942, -0.18892619013786316, 0.28281036019325256, -0.14280562102794647, -0.08578997105360031, -0.4344034790992737, -0.15772411227226257, 0.49223756790161133, -0.3491390645503998, 0.320100247...
[TestMethod] public void Test() { var entity = new MyEntity { Data1 = "OldData",
[ 0.4228583872318268, -0.244560107588768, -0.08648093044757843, 0.1051136776804924, 0.2674364149570465, 0.0066077024675905704, 0.38108572363853455, -0.2819861173629761, 0.1973792016506195, -0.525481641292572, -0.04448247700929642, 0.51935213804245, -0.21593017876148224, 0.2721284329891205, ...
Data2 = "OldData" }; PropertyInfo[] entityProps = entity.GetType().GetProperties(); foreach (var entityProp in entityProps) { var attribute = Attribute.GetCustomAttribute(entityProp, typeof (MyAttribute)) as MyAttribute;
[ -0.24177533388137817, -0.18362654745578766, 0.5611698031425476, -0.12261828780174255, 0.3547061085700989, 0.0018199371406808496, 0.28404903411865234, -0.3597601652145386, 0.07017836719751358, -0.3668476343154907, -0.45065364241600037, 0.507633626461029, -0.19568876922130585, 0.302066266536...
if (attribute != null) { //get attribute's property NAME PropertyInfo attProp= attribute.GetType().GetProperty("Name"); //get entity property value var propertyValue = entityProp.GetValue(entity, null);
[ -0.19744795560836792, -0.22144407033920288, 0.30922210216522217, -0.10249275714159012, 0.08610954880714417, -0.10630427300930023, 0.24353118240833282, -0.4420330822467804, -0.04649284482002258, -0.2508365511894226, -0.4681306779384613, 0.8103216290473938, -0.25606557726860046, 0.1983008980...
//get attribute’s property NAME value var atributeNameValue = attProp.GetValue(entity, null); TestContext.WriteLine(string.Format("property name:{0} property value: {1} : atribute name value: {2}\n", entityProp.Name, propertyValue, atributeNameValue)); ...
[ -0.1120176911354065, -0.22834204137325287, 0.2812330722808838, -0.06179217994213104, 0.021565677598118782, 0.09134525805711746, 0.5342479348182678, -0.4240265488624573, 0.12104898691177368, -0.3309483230113983, -0.2486831545829773, 0.7195838093757629, -0.24532675743103027, 0.04651820659637...
entityProp.SetValue(entity,"NewData",null); //how can I change value of property Name on object entity ? attProp.SetValue(attribute,"NewData",null); } } TestContext.WriteLine(string.Format("After change\n")); foreach (var entityProp in entityProps...
[ -0.0919494479894638, -0.09678836166858673, 0.39313021302223206, -0.12128859758377075, 0.36899057030677795, -0.10011078417301178, 0.4000079929828644, -0.38490286469459534, 0.038716163486242294, -0.5223793983459473, -0.3044804632663727, 0.47062885761260986, -0.27211830019950867, 0.2289756238...
{ var attribute = Attribute.GetCustomAttribute(entityProp, typeof(MyAttribute)) as MyAttribute; if (attribute != null) { PropertyInfo attProp = attribute.GetType().GetProperty("Name"); var propertyValue = entityProp.GetValue(entity, null);
[ -0.1056307777762413, -0.16147592663764954, 0.47281530499458313, -0.12458352744579315, 0.228672593832016, -0.08993186056613922, 0.46884283423423767, -0.4741242229938507, -0.01454656757414341, -0.27861830592155457, -0.594788670539856, 0.9546976089477539, -0.17366187274456024, 0.2976979315280...
var atributeNameValue = attProp.GetValue(entity, null); TestContext.WriteLine(string.Format("property name:{0} property value: {1} : atribute name value: {2}\n", entityProp.Name, propertyValue, atributeNameValue)); } } } ``` **EDITED: I delete original post...
[ -0.138899564743042, 0.07601272314786911, 0.23924441635608673, -0.04328005015850067, -0.03566528111696243, 0.1924709677696228, 0.7764607667922974, -0.2965087890625, 0.15199404954910278, -0.45074662566185, -0.1087448000907898, 0.7917490601539612, -0.24269302189350128, 0.031633444130420685, ...
into the metadata of the assembly. Your method is changing the internal state of a particular instance; but when you load the attribute again, you are getting a different instance.
[ 0.2515462040901184, -0.0869080126285553, -0.02405102364718914, 0.241873100399971, 0.19034934043884277, -0.013128313235938549, 0.18395261466503143, -0.2023029625415802, -0.11257816851139069, -0.5772721171379089, 0.04638395085930824, 0.4076372981071472, -0.32076454162597656, 0.34604990482330...
In Ruby, **everything is an object**. I interpreted it as everything is inherited from the `BasicObject` and has ancestors. But I found dollar variable (`$!`, `$1`) doesn't have ancestors. They don't response to the `ancestor` method which is defined on `BasicObject`. There is no `ancestor` method in Ruby's core, I'...
[ -0.15712329745292664, 0.06531978398561478, -0.04569218307733536, 0.0022286749444901943, -0.1929057389497757, -0.16914589703083038, 0.3868164122104645, -0.12427249550819397, -0.1025780588388443, -0.36430031061172485, -0.03942547366023064, 0.24936571717262268, -0.3877362906932831, 0.36696353...
applies to all objects and variable types. It's important to note that `Object.methods` is not the same as `Object.new.methods`: ``` Object.methods.include? :ancestors #=> true Object.new.methods.include? :ancestors #=> false ``` This is because an object's *class* has ancestors, not the object itself (unle...
[ 0.22580844163894653, 0.06662217527627945, -0.16257460415363312, -0.10828421264886856, 0.13928425312042236, -0.3117302656173706, 0.3046676218509674, -0.24239365756511688, -0.17772851884365082, -0.4600532352924347, -0.2521783411502838, 0.2816195785999298, -0.1478624939918518, 0.3209199607372...
``` $(document).ready(function () { $(".tab_content").hide(); //Hide all content $(".tab_content:first").show(); //Show first tab content $(".next").click(function() { $(".tab_content").hide(); //Hide all tab content $('#tab_change').html('<div class="back"></div>'); $("#tab2").show(); retur...
[ -0.20934566855430603, -0.03856966271996498, 0.7540543675422668, -0.2993634045124054, 0.23006729781627655, -0.009946298785507679, 0.22277888655662537, -0.3287776708602905, -0.20179115235805511, -0.5786659121513367, -0.6995404958724976, 0.6443136930465698, -0.5296413898468018, 0.200867071747...
`$(".back").click(function() {` doesnt work. HTML is posted for reference. ``` <div class="dialog_content" style="width:780px"> <div id="tab_change" class="left border_right"> <div class="next"></div> </div> <div id="tab1" class="tab_content"> </div> <div id="tab2" class...
[ 0.10957139730453491, 0.14721940457820892, 0.925228476524353, -0.29537588357925415, -0.18092522025108337, -0.0805872231721878, 0.2019118070602417, -0.42163482308387756, -0.12444113940000534, -0.6195548176765442, -0.2655744254589081, 0.38267040252685547, -0.3478844463825226, 0.15821139514446...
when the DOM is loaded, you need to bind the click event to it. Change: ``` $(".back").click(function() { $(".tab_content").hide(); //Hide all tab content $('#tab_change').html('<div class="next"></div>'); $("#tab1").show(); return false; }); ``` to: ``` $('body').on('click','.back', function() ...
[ 0.0433671660721302, -0.19337531924247742, 0.8766377568244934, -0.25157129764556885, 0.009713595733046532, -0.24417613446712494, 0.24312397837638855, -0.5838304162025452, -0.19601039588451385, -0.333564817905426, -0.5530874729156494, 0.9233354330062866, -0.41516876220703125, 0.1808167248964...
to it. By using, .on(), jQuery watches the DOM to see if that element gets created and when it does, attaches the click event to it.
[ -0.010065728798508644, -0.313888281583786, 0.596548855304718, -0.046090416610240936, 0.4452298581600189, -0.12814109027385712, 0.14244195818901062, -0.07547131925821304, 0.07481960952281952, -0.3608234226703644, -0.2816660404205322, 0.6167634725570679, 0.018383560702204704, 0.1742384284734...
In the process of converting a page from normal postbacks to AJAX-calls (using JavaScript to load/control the UI entirely and use ASP.Net strictly as a backend), I found myself wanting to replace a GridView with a AJAX-sourced dataset. I currently use [DataTables](http://datatables.net/) to prettify the GridView, and ...
[ 0.06748182326555252, -0.09031392633914948, 0.5068073868751526, -0.08962216228246689, -0.33003565669059753, -0.015014903619885445, -0.07726714760065079, 0.1106308251619339, -0.09745737165212631, -0.6818409562110901, -0.07026825845241547, 0.6198011636734009, -0.10073953121900558, -0.01601636...
"I might as well slap together a `<WebMethod()>` to return the datasource..." and while I've written several `<WebMethod()>` functions in the past, I've always added a new ASMX file (with a custom class to drive it) or extended an existing one where it made sense to do so. With this specific page, there is no need to m...
[ 0.3154730796813965, 0.04421096295118332, 0.10433300584554672, 0.12729300558567047, -0.04981984943151474, -0.28615856170654297, 0.06768278777599335, 0.05967235565185547, -0.36659666895866394, -0.3763245642185211, 0.003936744295060635, 0.6823568344116211, -0.07994815707206726, -0.17540402710...
I have been pulling my hair out over. I have followed every example that I can find and none are working for me. I have put together an extremely simple example in the hopes that someone can either point out where I'm going wrong or confirm that ASP.Net 2.0 simply won't work in this manner. **ASP Markup:** ``` <%@ P...
[ 0.6294557452201843, -0.09002628177404404, 0.5768159627914429, -0.3272121250629425, -0.10697732120752335, -0.028866451233625412, 0.4050450921058655, -0.43761640787124634, -0.4129132032394409, -0.20479442179203033, 0.001952829770743847, 0.30894720554351807, -0.049745824187994, 0.286871522665...
%>'></script> <script type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", url: window.location.href + "/Hello", data: {
[ -0.06528348475694656, -0.022122610360383987, 0.5648660063743591, -0.156396746635437, 0.23780637979507446, -0.007320836652070284, 0.21690315008163452, -0.09435618668794632, 0.14905330538749695, -0.7430270314216614, -0.44387638568878174, 0.38346660137176514, -0.31800246238708496, -0.00982971...
"What": "World" }, contentType: "application/json; charset=utf-8", dataType: "json", success: function (data, textStatus, jqXHR) { $('div').text(textStatus);
[ -0.07784610241651535, 0.017673971131443977, 0.44220811128616333, -0.21485479176044464, 0.14777611196041107, 0.1675783395767212, 0.5645084381103516, -0.0545499324798584, -0.018223797902464867, -0.3801566958427429, -0.8665582537651062, 0.6796286106109619, -0.3458430767059326, 0.1359979957342...
}, complete: function (jqXHR, textStatus) { $('div').text(textStatus); }, error: function (jqXHR, textStatus, errorThrown) {
[ -0.2183098942041397, 0.2819097340106964, 0.062896229326725, -0.21027995645999908, 0.04367123916745186, 0.32042938470840454, 0.8250589966773987, -0.042556922882795334, 0.24339604377746582, -0.28386595845222473, -0.5428219437599182, 0.744098424911499, -0.44707706570625305, -0.022763928398489...
$('div').text(textStatus); } }); }); </script> </body> </html> ``` **Code-Behind:** ``` Imports System.Web.Services Partial Class _AJAXText Inherits System.Web.UI.Page <WebMethod()> _ Public Shared Function Hello(ByVal What As String) As String Dim msg As...
[ -0.06658505648374557, -0.2763771414756775, 0.37928277254104614, -0.1643153876066208, -0.19019293785095215, -0.07806829363107681, 0.32862430810928345, -0.008424920961260796, -0.1533270925283432, -0.7943889498710632, -0.297317236661911, 0.5079564452171326, -0.5424581170082092, 0.338601201772...
End Function End Class ``` I have tried several little changes to the above, and in every case the AJAX call returns the following: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...
[ -0.20121842622756958, 0.04397156089544296, 0.4668416678905487, -0.26145288348197937, -0.20349599421024323, -0.25406306982040405, -0.12457715719938278, -0.23282000422477722, 0.2129652053117752, -0.47573381662368774, -0.3989364802837372, 0.2630929946899414, -0.18891529738903046, 0.1359812021...
name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTU4MjMyMzI1ZGQT/2jrJ+cI2ERazl2Hw7l7TI5XiA==" /> </div> <div></div> </form> <script type="text/javascript" src='http://localhost:3719/Maggie/_cs/js/jquery-1.6.4.min.js'></script> <script type="text/javascript"> $(...
[ -0.1062203049659729, -0.183004230260849, 0.6169997453689575, -0.23455145955085754, -0.12233025580644608, 0.2081252783536911, 0.1473594456911087, -0.0811372846364975, -0.21490830183029175, -0.6878901720046997, -0.27320587635040283, 0.3514291048049927, -0.0651441141963005, 0.2308161705732345...
url: window.location.href + "/Hello", data: { "What": "World" }, contentType: "application/json; charset=utf-8",
[ -0.2090437114238739, 0.051627472043037415, 0.6775387525558472, -0.03790128231048584, 0.02767244353890419, 0.13866063952445984, 0.0869332104921341, 0.3295857310295105, -0.0006424217135645449, -0.46397051215171814, -0.7230031490325928, 0.21930579841136932, -0.2327703982591629, 0.642383873462...
dataType: "json", success: function (data, textStatus, jqXHR) { $('div').text(textStatus); }, complete: function (jqXHR, textStatus) { $('div').text(textStatus);
[ -0.1974998265504837, 0.0214008167386055, 0.34098193049430847, -0.23439747095108032, -0.06996839493513107, 0.22275911271572113, 0.5211209058761597, -0.3265230655670166, 0.0995672419667244, -0.5234918594360352, -0.8536563515663147, 0.6651766300201416, -0.20545808970928192, -0.132071971893310...
}, error: function (jqXHR, textStatus, errorThrown) { $('div').text(textStatus); } }); }); </script>
[ -0.153772234916687, 0.09597446024417877, 0.18523700535297394, -0.39067208766937256, 0.2631060481071472, 0.336384654045105, 0.6648133397102356, 0.019842641428112984, 0.2501399517059326, -0.5062549114227295, -0.48189061880111694, 0.7131745219230652, -0.2571590542793274, 0.017082322388887405,...
</body> </html> ``` What I expect to be returned is: ``` <?xml version="1.0" encoding="utf-8"?> <string>Hello, World!</string> ``` Does anyone have any ideas: 1. What I am doing incorrectly? 2. Or is ASP.Net 2.0 is incapable of using a `<WebMethod()>` in an ASPX page? Okay, I finally found the complete answer (an...
[ 0.5128965377807617, 0.021154336631298065, 0.4099145829677582, 0.2019001543521881, -0.16983601450920105, -0.05200698971748352, 0.48379385471343994, -0.339754194021225, -0.08557841181755066, -0.6533731818199158, -0.004743096884340048, 0.5588346719741821, -0.0741078183054924, -0.2393147647380...
`<system.web>` section in my `web.config`. `<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>` 3. `stringify` the JavaScript object being passed to the `WebMethod()` (and ergo, props to @TheGeekYouNeed). jQue...
[ 0.040066007524728775, -0.05531216040253639, 0.5944969654083252, -0.14788228273391724, -0.11509513854980469, -0.20267505943775177, 0.1499655842781067, -0.2658461034297943, -0.07806002348661423, -0.7429617047309875, -0.4660109579563141, 0.3975723385810852, -0.33038419485092163, 0.01790884695...
with impunity to the AJAX Extensions. There's a lot of information about the stringification being necessary on the web, just search for [Invalid JSON primitive](https://www.google.com/search?q=Invalid+JSON+primitive). Personally, I thought the best explanation came from [Dave Ward over at encosia.com](http://encosia.c...
[ 0.14697395265102386, 0.19996805489063263, -0.280195415019989, -0.027349106967449188, -0.12208568304777145, 0.019212225452065468, 0.3775159418582916, -0.20636461675167084, -0.431670218706131, -0.6568595767021179, 0.008957257494330406, 0.4771071672439575, -0.41985753178596497, -0.09524899721...
<remove name="WebServiceHandlerFactory-Integrated"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptH...
[ -0.2680366337299347, 0.19197408854961395, 0.4183679521083832, -0.09576867520809174, -0.17840120196342468, 0.29080697894096375, 0.380357950925827, -0.5770708322525024, -0.39655837416648865, -0.46606284379959106, -0.26791301369667053, 0.4056486487388611, -0.35932403802871704, 0.1467836052179...
I have a need to identify comments in different kinds of source files in a given directory. ( For example java,XML, JavaScript, bash). I have decided to do this using Python (as an attempt to learn Python). The questions I have are 1) What should I know about python to get this done? ( I have an idea that Regular Expr...
[ 0.2453940212726593, 0.0684254914522171, -0.14731745421886444, 0.17550534009933472, -0.3259681165218353, 0.0870705395936966, 0.22675934433937073, -0.025183621793985367, -0.300649493932724, -0.6635422110557556, 0.19385579228401184, 0.680568516254425, -0.367435097694397, -0.22350618243217468,...
seems to be more related to programming language parsing. I believe with regular expressions you will be able to find comments in most of the languages. The good thing is that you have regular expressions almost everywhere: Perl, Python, Ruby, AWK, Sed, etc. But, as the other answer said, you'd better use some parsing...
[ 0.11328866332769394, -0.05164773389697075, 0.1808992624282837, 0.30936282873153687, -0.30277150869369507, 0.21922288835048676, -0.022104579955339432, 0.4513002634048462, -0.41094863414764404, -0.5589461922645569, -0.1892053335905075, 0.8458195924758911, -0.3987313210964203, -0.488730788230...
My query is not giving proper results when I try to select user records that don't have email: ``` select * from users where email='' ``` And: ``` select * from users where email=NULL ``` Both give different results but neither give correct results. How can I get correct results? It's IS NULL or IS NOT NULL. ```...
[ 0.15692001581192017, 0.18484990298748016, 0.03876684606075287, 0.17262649536132812, -0.1567329317331314, 0.027155756950378418, 0.3578003942966461, -0.15250229835510254, -0.07549140602350235, -0.5556228756904602, 0.02445187419652939, 0.2757972180843353, -0.2544715702533722, 0.38118287920951...
if you're already stuck with a mismatched table, try something like: ``` select * from users where LENGTH(COALESCE(email,'')) = 0 ``` That'll give you all records with an 'empty' value for `email`, treating NULL as empty.
[ 0.14575830101966858, 0.13871917128562927, -0.14691296219825745, 0.08752581477165222, 0.13259285688400269, -0.16997076570987701, 0.09859099984169006, 0.04586474597454071, -0.38519486784935, -0.7076056003570557, -0.04583254083991051, 0.22112226486206055, -0.2979578673839569, 0.18850657343864...
I have 5 image buttons that I fit together in a main screen and everything looks great. But I try to add the images with other language so I create a folder named "drawable-pt" and put the images in Portuguese inside this folder ( with the same name in the images ). But when I load the application in a Portuguese phone...
[ 0.49881789088249207, 0.024089999496936798, 0.5903199911117554, -0.026551678776741028, 0.12925709784030914, 0.201686829328537, 0.05967511981725693, 0.1928238421678543, -0.18811878561973572, -0.7267647981643677, 0.21514636278152466, 0.6601559519767761, -0.22773082554340363, 0.065595708787441...
at [Mondrian](http://www.moosetechnology.org/tools/mondrian), which the paper cites was what was used to generate those diagrams? More generally, have you looked at [Moose](http://www.moosetechnology.org/), of which Mondrian is but a part? I'm not sure I've seen one that produces diagrams exactly like those above, bu...
[ 0.48617273569107056, 0.04562365263700485, -0.13851019740104675, 0.2654258608818054, -0.39465537667274475, 0.02266405150294304, -0.010441925376653671, -0.2204216867685318, -0.5628962516784668, -0.2874145805835724, -0.03283201903104782, 0.48072549700737, 0.02160491608083248, -0.0876863971352...
I am facing this problem upon pushing my app to Heroku: * 500 internal server error * ActionView::Template::Error...application.css isn't precompiled (see attached Heroku logs) * Also, ActionController::RoutingError (No route matches [GET] "/assets/rails.png" I am using Twitter Bootstrap 2.0.1 and Rails 3.1.1 (see Ge...
[ -0.2812478542327881, 0.015120417810976505, 0.7149407863616943, -0.1119561642408371, -0.23680540919303894, 0.5336489677429199, 0.8262115716934204, -0.8099644780158997, -0.6199764013290405, -0.5629827976226807, -0.08766717463731766, 0.7767207622528076, -0.07653401046991348, -0.39446455240249...
<title>Weddoo!</title> 2012-04-06T16:49:38+00:00 app[web.1]: 7: <%= csrf_meta_tags %> 2012-04-06T16:49:38+00:00 app[web.1]: 8: 2012-04-06T16:49:38+00:00 app[web.1]: 9: <%= stylesheet_link_tag "application", :media => "all" %> 2012-04-06T16:49:38+00:00 app[web.1]: 10: 2012-04-06T16:49:38+00:00 ...
[ -0.33585965633392334, 0.1514170914888382, 0.9700506925582886, 0.17389877140522003, -0.1557917445898056, 0.3898716866970062, 0.628534734249115, -0.9544779062271118, -0.36483120918273926, -0.4300561249256134, -0.5079084634780884, 0.3312770128250122, -0.10942553728818893, 0.055177249014377594...
bytes=728 2012-04-06T16:49:38+00:00 heroku[nginx]: 115.186.162.46 - - [06/Apr/2012:16:49:38 +0000] "GET / HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com 2012-04-06T16:49:39+00:00 app[web.1]: 2012-04-06T16:4...
[ -0.3748885989189148, 0.2013407200574875, 0.8856886029243469, -0.07565295696258545, -0.0032947962172329426, 0.5469525456428528, 0.8162281513214111, -0.8900126814842224, -0.6402146220207214, -0.32600343227386475, -0.5310774445533752, 0.5864848494529724, -0.0927630364894867, -0.10962276160717...
"all" %> 2012-04-06T16:49:39+00:00 app[web.1]: 10: 2012-04-06T16:49:39+00:00 app[web.1]: 11: <link href="images/favicon.ico" rel="shortcut icon"> 2012-04-06T16:49:39+00:00 app[web.1]: 7: <%= csrf_meta_tags %> 2012-04-06T16:49:39+00:00 app[web.1]: 8: 2012-04-06T16:49:39+00:00 app[web.1]: 12...
[ -0.4094500243663788, 0.08811197429895401, 0.7954223155975342, 0.27532535791397095, -0.053173307329416275, 0.4552173614501953, 0.6427401304244995, -0.8663411736488342, -0.4316713809967041, -0.5694932341575623, -0.40620118379592896, 0.468159556388855, -0.21392816305160522, 0.0028564794920384...
OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com 2012-04-06T16:51:32+00:00 heroku[slugc]: Slug compilation started 2012-04-06T16:51:46+00:00 heroku[api]: Release v8 created by postkhalid@yahoo.com 2012-04-06T16:51:46+00:00 heroku[api]: Deploy db6820d by postkhalid@y...
[ -0.11699002236127853, 0.21527913212776184, 0.5479661822319031, -0.12951086461544037, -0.3116826117038727, 0.39662548899650574, 0.4585401117801666, -0.7356213331222534, -0.4020719528198242, -0.24649639427661896, -0.4679267108440399, 0.4966622591018677, -0.2624112069606781, 0.129578471183776...
to stop 2012-04-06T16:51:56+00:00 heroku[web.1]: State changed from starting to up 2012-04-06T16:51:56+00:00 heroku[rake.1]: State changed from created to starting 2012-04-06T16:52:02+00:00 app[rake.1]: Awaiting client 2012-04-06T16:52:02+00:00 heroku[rake.1]: State changed from starting to up 2012-04-06T16:52:02+00:00...
[ -0.17377515137195587, -0.11811188608407974, 0.5096496939659119, 0.047087255865335464, -0.1275225281715393, 0.49843984842300415, 0.666711688041687, -0.54899662733078, -0.5352125763893127, -0.16585630178451538, -0.5230880975723267, 0.39408233761787415, -0.1605534851551056, 0.3252725005149841...
/assets/rails.png HTTP/1.1" 404 728 "http://weddoo.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7" weddoo.heroku.com 2012-04-06T16:52:23+00:00 app[web.1]: 2012-04-06T16:52:23+00:00 app[web.1]: 2012-04-06T16:52:23+00:00 app[web.1]: St...
[ -0.3400042653083801, 0.11989884823560715, 0.5746391415596008, -0.12182144820690155, -0.02497062087059021, 0.496797651052475, 0.8480778336524963, -0.9253818392753601, -0.4455392062664032, -0.3622097969055176, -0.2603332996368408, 0.6001517176628113, -0.025395050644874573, -0.147226959466934...
10: 2012-04-06T16:52:23+00:00 app[web.1]: 9: <%= stylesheet_link_tag "application", :media => "all" %> 2012-04-06T16:52:23+00:00 app[web.1]: 11: <link href="images/favicon.ico" rel="shortcut icon"> 2012-04-06T16:52:23+00:00 heroku[router]: GET weddoo.heroku.com/ dyno=web.1 queue=0 wait=0ms service=206m...
[ -0.45875224471092224, -0.021735647693276405, 0.8719093799591064, 0.2769968509674072, 0.00008672302647028118, 0.5133665800094604, 0.5748392939567566, -0.7697592973709106, -0.5616240501403809, -0.5239314436912537, -0.3725903332233429, 0.3269270360469818, -0.3071623146533966, -0.0625861883163...
Safari/534.52.7" weddoo.heroku.com ``` --- **GEMFILE** ``` source 'http://rubygems.org' gem 'rails', '3.1.1' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' gem 'pg' gem 'json' gem "twitter-bootstrap-rails", "~> 2.0.1.0" # Gems used only for assets and no...
[ 0.03400163725018501, -0.003090827725827694, 0.3748069703578949, 0.2756670117378235, -0.0821123868227005, 0.12784305214881897, 0.3845919668674469, -0.6336908340454102, -0.22526662051677704, -0.5024645328521729, -0.3199435770511627, 0.6829147934913635, -0.022341134026646614, -0.1411809176206...
Rake. require File.expand_path('../config/application', __FILE__) Mysalary::Application.load_tasks ``` **HEROKU INFO** ``` === weddoo Addons: Shared Database 5MB Database Size: 64k Dynos: 1 Git URL: git@heroku.com:weddoo.git Owner: postkhalid@yahoo.com Repo Size: 11M Slug Size: ...
[ 0.22709542512893677, -0.039903149008750916, 0.055322203785181046, 0.41525667905807495, -0.3201771676540375, 0.4032747745513916, 0.18154636025428772, -0.6269829869270325, -0.00917524378746748, -0.41485396027565, 0.28152546286582947, 0.30316150188446045, 0.3395192325115204, 0.333848804235458...
not support Rails 3.1+. Only the cedar stack supports Rails 3.1+. You'll need to use the following command to create a new app on the cedar stack: ``` heroku create --stack cedar ```
[ 0.1948009878396988, 0.12190672010183334, 0.1817438304424286, 0.13906395435333252, 0.03985816240310669, -0.04789188876748085, 0.6168644428253174, -0.025822490453720093, -0.238859161734581, -0.33441251516342163, -0.45492279529571533, 0.44213154911994934, -0.4758814871311188, 0.03634553402662...
Im writing an application which the main view controller is a `UIViewController`. It has some icons in a grid and I want to dismiss (sliding down) this grid when one of the icons is clicked. This I've done already. The problem is: when the grid is dismisseed I want another View to come from the top of the screen. This ...
[ 0.0492887943983078, 0.1771494299173355, 0.5877701640129089, 0.014153597876429558, -0.31256431341171265, -0.21753528714179993, 0.06236348673701286, -0.020392298698425293, -0.03656969964504242, -0.7874936461448669, 0.017932360991835594, 0.526618242263794, -0.3204165995121002, 0.3742582201957...
can navigate through TableViews. I'm doing this: ``` HorariosViewController *horarios = [[HorariosViewController alloc] init]; [vuashView addSubview:horarios.view]; ``` `HorariosViewController` is a `UINavigationViewController`. It shows me only a blue NavigationBar and changes like `self.navigationItem.title = @"T...
[ -0.04710543155670166, 0.28582102060317993, 0.5812161564826965, 0.24705301225185394, -0.052883367985486984, 0.10634530335664749, 0.718531608581543, 0.11184768378734589, -0.10446958243846893, -1.047028660774231, 0.11515555530786514, 0.5186309218406677, -0.152205690741539, 0.110524483025074, ...
I'm kind of confused about reserved words in Ruby. "The Ruby Programming Language", co-authored by Matz, says that `begin` and `end` are reserved words of the language. They're certainly used syntactically to mark out blocks. However, range objects in the language have methods named `begin` and `end`, as in ``` (1.....
[ 0.2134847640991211, 0.4902629256248474, 0.0746077448129654, -0.2777579426765442, -0.37297937273979187, -0.0779348760843277, 0.35008105635643005, -0.44848763942718506, 0.09980662912130356, -0.24946001172065735, -0.3195975422859192, 0.1430692821741104, -0.3048368990421295, 0.0144903194159269...
end end Foo.new.begin ``` So, I suppose I'm asking, what actually is the status of reserved words like this? I would have imagined that they couldn't be used for method names (and yet it seems to work) or that at the very least it would be terrible style (but it is actually used in the core language for the Range cl...
[ 0.44300925731658936, 0.3732796013355255, 0.29189109802246094, -0.2354217916727066, -0.1875355988740921, -0.4641932249069214, 0.3991713523864746, 0.13911068439483643, -0.03487318381667137, -0.2652971148490906, -0.07264472544193268, 0.3803577423095703, -0.1787339150905609, 0.3302097022533417...
a good idea anyway. ``` class Foo def if(foo) puts foo end end Foo.new.if("foo") # outputs foo, returns nil ``` **Update:** Here's a quote from "The Ruby Programming Language", by Matz (the creator of Ruby) himself: > In most languages, these words would be called “reserved words” and > they would be neve...
[ 0.2527502775192261, 0.37752020359039307, 0.12464424222707748, -0.18591263890266418, -0.24728059768676758, -0.1527656465768814, 0.43484199047088623, -0.11624940484762192, -0.03153308480978012, -0.31982430815696716, -0.15806902945041656, 0.40215569734573364, -0.44656944274902344, 0.104764379...
that the method must always be explicitly invoked through an > object.
[ 0.016735371202230453, -0.0277232825756073, -0.10763692855834961, 0.032456524670124054, -0.06012354791164398, -0.31840285658836365, 0.19887757301330566, 0.08835279196500778, 0.11828768998384476, -0.2693842351436615, -0.4655191898345947, 0.4775630235671997, -0.3423624634742737, 0.02401063218...
For some reason my galleryScroll() function only runs once, even though the function calls itself using setTimeout(). I'm thinking the issue may be related to scope, but I'm not sure: <http://jsfiddle.net/CYEBC/2/> ``` $(document).ready(function() { var x = $('#box').offset().left; var y = $('#box').offset()....
[ 0.6664986610412598, -0.10267425328493118, 0.7506914734840393, -0.3134157955646515, 0.024004735052585602, -0.09704099595546722, -0.04447831213474274, -0.3900100588798523, -0.2998017966747284, -0.44101473689079285, -0.09578390419483185, 0.7529079914093018, -0.5146368145942688, -0.08722775429...
top: y }); setTimeout('galleryScroll()', 100); } });​ ``` The HTML: ``` <html> <head> </head> <body> <div id="box"> </div> </body> </html>​ ``` Your problem is how you're calling the galleryScroll() function in your setTimeout. Change that line to this: ``` setTimeout(galleryScroll, ...
[ 0.1696857362985611, 0.08482261747121811, 0.7547682523727417, -0.3191777467727661, -0.12891735136508942, -0.2348412424325943, 0.21542397141456604, -0.40745294094085693, -0.18632113933563232, -0.6329908967018127, -0.414789080619812, 0.8457068204879761, -0.584934651851654, -0.3108533024787903...
I have a specific information in a table I am looking for, this query will show it: ``` SELECT StringValue FROM ClientSettings WHERE Setting like 'CompanyDomain' OR Setting like 'CompanyActivityEmail' OR Setting like 'CompanySupportPhone' OR Setting like 'CompanyName' ``` It returns the following date: ``` StringVa...
[ 0.014756414107978344, 0.24088360369205475, 0.7829177379608154, -0.27625221014022827, 0.31739741563796997, -0.024247752502560616, -0.04030899703502655, 0.08767051994800568, -0.07999314367771149, -0.5496140718460083, 0.16539821028709412, 0.4448900520801544, -0.10478023439645767, 0.2616948187...
is that you should only assign one value for each row, but not overwrite the other variables at the same time. A `CASE` statement should let you do this: ``` DECLARE @CompanyName VARCHAR(100) DECLARE @CompanyDomain VARCHAR(100) SELECT @CompanyName = CASE WHEN Setting = 'CompanyName' THEN StringValue ELS...
[ 0.09878645837306976, 0.39194443821907043, 0.6479288339614868, -0.4858620762825012, 0.44816815853118896, 0.0547175370156765, -0.10651717334985733, -0.2514744699001312, -0.06589517742395401, -0.31566503643989563, -0.003777451580390334, 0.7260910272598267, -0.15128540992736816, 0.148846924304...
I'm wondering how to set the max possible time limit for a php page, ``` set_time_limit(number); ``` I looked of on the long polling that Facebook use it's **40** seconds why this number and not more ? Is it a best practice because then the browser will cancel the request or something? There is no such thing as a "...
[ 0.044794149696826935, 0.02785208262503147, 0.42512476444244385, -0.1949678212404251, -0.1908770352602005, -0.05484642833471298, 0.35813817381858826, -0.03188031539320946, -0.21721158921718597, -0.556230366230011, 0.16101236641407013, 0.4696022868156433, -0.08092059195041656, -0.17176797986...
`2^32-2`, and so is representable by an `unsigned int` (if such a thing existed in Java). Such a thing doesn't exist in Java, so we've now overflowed. However, the logical shift operator `>>>` treats its operand as if it were unsigned, so this gives the expected result.
[ -0.4599006474018097, -0.12100717425346375, 0.0831621065735817, -0.3612181842327118, 0.04952215030789375, -0.0116092748939991, 0.02529679238796234, -0.25451233983039856, 0.08260849863290787, -0.3291325569152832, -0.2424025982618332, 0.44453442096710205, -0.4104743003845215, -0.0379983782768...
So I decided to have a stab at making a text highlighting system. At the moment, I'm just using `str_replace` to replace a word (e.g. `$rstr = str_replace("Console", "<c>Console</c>", $str` where `$str` is the input string. Something that stumped me was how to replace content inside of speech marks (") and quotes (...
[ 0.060280535370111465, 0.31693318486213684, 0.4897349774837494, -0.10573163628578186, -0.030036259442567825, 0.05411737039685249, 0.17410333454608917, -0.09775251150131226, 0.07667025923728943, -0.7030160427093506, -0.08694011718034744, 0.5309412479400635, -0.11691533774137497, 0.1638574749...
how to use regex with `str_replace`. --- My workaround solution: ``` function hlStr($original) { $rstr = explode('"', $original); return $rstr[0].'<sr>"'.$rstr[1].'"</sr>'.$rstr[2]; } ``` In light of comments below, I think this will be a better resource for you: <http://www.regular-expressions.info/> In o...
[ -0.00018132900004275143, -0.02559569478034973, 0.5233462452888489, 0.12458992004394531, -0.11483878642320633, -0.3978591561317444, 0.32284462451934814, -0.23185451328754425, -0.08595450222492218, -0.27514752745628357, -0.1620343029499054, 0.8594619035720825, -0.4820288121700287, -0.1675714...
backslash: ``` $rstr = str_replace("Console", "Console.WriteLine(\"$variable\");", $str) ``` this is mostly useful if you are using variables inside your strings. If it is just a straight text replacement, use single quotes: ``` $rstr = str_replace("Console", 'Console.WriteLine("Words");', $str) ``` the single qu...
[ 0.024690300226211548, 0.3270408809185028, 0.6130012273788452, -0.18934370577335358, -0.31146079301834106, 0.12920047342777252, 0.3621494174003601, -0.15222762525081635, -0.3100694417953491, -0.09908465296030045, -0.4449310004711151, 0.5840811729431152, -0.42186108231544495, -0.138414472341...
How to use slim templates with backbone? I use in my ruby-on-rails application backbone-on-rails gem that uses eco templates. But in my project I user slim templates engine and of course I want to use just one template type. But how I can switch to slim in backbone? Gem backbone-rails from codebrew offers erb and ham...
[ 0.6922885775566101, 0.1628514975309372, -0.19118015468120575, 0.0496167428791523, -0.2789904475212097, -0.04219323396682739, 0.32817983627319336, -0.27566125988960266, -0.20578151941299438, -0.7891907095909119, 0.16796916723251343, 0.7201483845710754, -0.21403057873249054, -0.2690995931625...
I want to replace every "../" and "script/uploaded" in my string variable to "" ! I have one function like this : ``` public function mypregReplace($v) { return preg_replace( array("%script/uploaded%" , ""), array( "[\.\./]" , ""), $v); } ``` but it showa m...
[ 0.0027180961333215237, 0.053156785666942596, 0.45119017362594604, -0.2543758451938629, 0.20836947858333588, 0.09150712192058563, 0.28265446424484253, 0.0669407770037651, -0.006837471853941679, -0.6721237301826477, 0.11589530110359192, 0.8030669689178467, -0.3391868472099304, 0.285116463899...
alphanumeric or backslash in what`s wrong on my pattern?! You have your array wrong. The first array should consist only of patterns, and the second should be the replacement values. You want: ``` public function mypregReplace($v) { return preg_replace( array("%script/uploaded%"...
[ 0.4780243933200836, 0.20944251120090485, 0.3358880579471588, -0.33929774165153503, 0.17681792378425598, 0.04303750768303871, 0.39220261573791504, -0.20079748332500458, 0.000444682635134086, -0.5984728932380676, 0.021868513897061348, 0.6422919034957886, -0.7877380847930908, 0.16276529431343...
{ return preg_replace( array('%script/uploaded%', '%\.\./%'), '', $v); } ``` You should be using [str\_replace](http://php.net/manual/en/function.str-replace.php) for this, however. You don't need regular expressions to match exact strings: ``` public function m...
[ 0.1842457801103592, 0.041290950030088425, 0.6907023191452026, -0.2595248520374298, 0.17997045814990997, 0.009259861893951893, 0.3360482454299927, 0.00868960004299879, -0.010983659885823727, -0.6308736801147461, -0.3111272156238556, 0.7217881083488464, -0.3851040303707123, -0.09226709604263...
return str_replace(array('script/uploaded', '../'), '', $v); } ```
[ 0.025087034329771996, 0.10946615785360336, 0.4212348163127899, -0.382673442363739, 0.2200099676847458, 0.07902802526950836, 0.24663303792476654, -0.09894423186779022, 0.04725838452577591, -0.4238986372947693, -0.3729811906814575, 0.866178035736084, -0.4170660376548767, 0.1564202904701233, ...
**Screenshot mockup:** <http://tinypic.com/r/y2qex/5> **Problem:** I have a table that has 53 columns; one for each week of the year, plus one with the user name. It will have anywhere between 10 and 80 rows, depending on the number of users for each area. The users need to be set a “flag” for each week, such as Annu...
[ 0.2546696066856384, 0.20115655660629272, 0.6666691303253174, -0.061444174498319626, -0.09582185745239258, 0.5863151550292969, 0.4141733646392822, 0.24490386247634888, -0.6351966857910156, -0.6271703839302063, 0.050083696842193604, -0.13839411735534668, 0.07868092507123947, 0.01044292468577...
selections are picked must be able to be queried, so I can save them in my DB. What I’m after are some generic ideas (i.e. not specific code) on how I can better solve this problem. Once I get a good idea, I’ll go off an work out the exact coding. My ideas so far: - Make all cells text only, with the current selectio...
[ 0.18585771322250366, -0.13813011348247528, 0.15702582895755768, 0.06259062886238098, 0.02774449810385704, 0.30280935764312744, 0.11047790199518204, -0.27418768405914307, -0.23326565325260162, -0.7362160086631775, 0.0015425811288878322, 0.2127886861562729, -0.3367394804954529, 0.04455633461...
click But I’d be keen to hear how other people might approach/solve this problem? Looks like your friArray is empty.
[ 0.21751631796360016, 0.18134728074073792, 0.3340345621109009, 0.18805824220180511, 0.1431296169757843, -0.03726023808121681, 0.4023958146572113, 0.6536779403686523, -0.6016383767127991, -0.09394379705190659, 0.25478309392929077, 0.3377476930618286, -0.05959253013134003, 0.23280271887779236...
I have a complicated problem, and I need help. I have a base case, ``` class ParamBase { string paramValue; //... } ``` and a bunch of class templates with different template parameters. ``` template <typename T> class Param : public ParamBase { T value; //... } ``` Now, each instance of Param has...
[ -0.17749297618865967, 0.14799053966999054, 0.058757051825523376, 0.23447410762310028, -0.31495606899261475, 0.6517540216445923, 0.18911895155906677, -0.6263183355331421, -0.4406996965408325, -0.6298006176948547, -0.06145782023668289, 0.14329786598682404, -0.5567452311515808, 0.001061515533...
different instances' strings paramValue with different templates arguments and save the conversion result to the appropriate type in Param::value. This has to be run over all objects that are saved in the vector allParamsObjects. So if the template argument of the first Param is double, paramValue has to be converted ...
[ 0.05838927626609802, -0.013040048070251942, 0.09355245530605316, 0.016940394416451454, -0.26709964871406555, 0.22264854609966278, 0.5373786687850952, -0.3461315333843231, -0.317767471075058, -0.5625151991844177, -0.10786446183919907, 0.3481086492538452, -0.7417476773262024, 0.0292107667773...
convert() = 0; }; template <typename T> class Param : public ParamBase { T value; public: virtual void convert() { std::stringstream ss(paramValue); ss >> value; } }; ```
[ 0.08046197146177292, -0.23218686878681183, 0.3542545735836029, -0.10181913524866104, -0.23551923036575317, 0.5477209687232971, 0.44869479537010193, -0.7188687324523926, -0.1336885243654251, -0.4354510009288788, -0.4326035976409912, 0.26202091574668884, -0.4163128733634949, 0.08265444636344...
``` public Bitmap rotateImage() { try { curImgHndl.CurrentRotationHandler.Flip(RotateFlipType.Rotate90FlipNone); } catch (Exception ex) { } return objCurrImageHandler.CurrentBitmap; } ``` When an image is rotated several times (5 o...
[ 0.06520742177963257, -0.25188156962394714, 0.6202843189239502, -0.13508155941963196, 0.10918071866035461, 0.02478376403450966, -0.1065240353345871, -0.12787285447120667, -0.3636758327484131, -0.3047332465648651, -0.11475791037082672, 0.5412285923957825, -0.42781051993370056, 0.304751306772...
function then it shows the error message “Out Of Memory” . To ratate an image in c#.net 4 I used ImageFunctions.dll. Decompiling the dll I have got the followings. only a portion of the whole code is given that is used for rotation ``` public class RotationHandler { private ImageHandler imageHandler; public v...
[ 0.22387075424194336, -0.06106257811188698, 0.5951101779937744, -0.15210504829883575, 0.17201167345046997, 0.09855373203754425, 0.09579290449619293, -0.35039475560188293, -0.2884453237056732, -0.5392320156097412, -0.017231687903404236, 0.76740562915802, -0.47079524397850037, 0.1806503981351...
as lazyberezovsky suggested. ``` public void Flip(RotateFlipType rotateFlipType) { this.imageHandler.RestorePrevious(); this.imageHandler.CurrentBitmap.RotateFlip(rotateFlipType); } ``` But another problem in brightness method. ``` public void SetBrightness(int brightness) { Bitmap temp ...
[ 0.6555086970329285, -0.10507066547870636, 0.8380844593048096, -0.1652403324842453, 0.19116345047950745, -0.021985867992043495, 0.23679125308990479, -0.4848618805408478, -0.42570921778678894, -0.5966649651527405, -0.4029032289981842, 0.9328190088272095, -0.47370824217796326, 0.1609686762094...
Color c; for (int i = 0; i < bmap.Width; i++) { for (int j = 0; j < bmap.Height; j++) {
[ 0.35711669921875, -0.2678750455379486, 0.11384979635477066, -0.319366991519928, 0.3489018678665161, 0.4427174925804138, 0.3205021023750305, -0.13054616749286652, -0.1444421261548996, -0.48523223400115967, -0.3491956889629364, 0.5702959895133972, -0.29758143424987793, 0.08262494951486588, ...
c = bmap.GetPixel(i, j); int cR = c.R + brightness; int cG = c.G + brightness; int cB = c.B + brightness; if (cR
[ 0.20335203409194946, 0.11865053325891495, 0.23041518032550812, -0.13249178230762482, 0.05820303037762642, 0.18603511154651642, 0.29021501541137695, -0.21554920077323914, -0.2545475363731384, -0.39178237318992615, -0.6961694359779358, 0.6032862663269043, -0.29914894700050354, 0.106569066643...
< 0) cR = 1; if (cR > 255) cR = 255; if (cG < 0) cG = 1; if (cG > 255) cG = 255;
[ -0.21607705950737, 0.13014395534992218, 0.45372891426086426, -0.3213953375816345, -0.03371646627783775, 0.02126428298652172, 0.18260176479816437, -0.03440817818045616, -0.14638738334178925, 0.01626143977046013, -0.8380821347236633, 0.33477291464805603, -0.5497043132781982, 0.10845808684825...
if (cB < 0) cB = 1; if (cB > 255) cB = 255; bmap.SetPixel(i, j, Color.FromArgb((byte)cR, (byte)cG, (byte)cB)); } } _currentBitmap =
[ 0.1177239790558815, 0.09199412912130356, 0.3871997594833374, -0.2739259898662567, 0.582836389541626, -0.011487400159239769, 0.04448700696229935, -0.2685236930847168, -0.3119857609272003, -0.13826163113117218, -0.14748361706733704, 0.33694103360176086, -0.44037380814552307, 0.36413103342056...
(Bitmap)bmap.Clone(); } ``` This method works for some images and doesn't work for other images and shows the following error "SetPixel is not supported for images with indexed pixel formats." It would be very much helpful if you could provide efficient and workable methods for rotation, crop and brightness. p...
[ 0.23189504444599152, -0.20542696118354797, 0.4523167312145233, 0.02467299997806549, -0.07479263097047806, -0.2561591565608978, 0.5468972325325012, -0.39412596821784973, -0.33273938298225403, -0.6094043254852295, -0.3053327202796936, 0.5890717506408691, -0.6285303831100464, -0.1662921905517...
the man page](http://pubs.opengroup.org/onlinepubs/007908799/xsh/sigprocmask.html)
[ -0.42812380194664, 0.4368251860141754, 0.29378658533096313, -0.1547681838274002, -0.053604234009981155, 0.17534156143665314, 0.546050488948822, -0.1501416563987732, -0.6406497955322266, -0.2222607433795929, -0.3667876720428467, 0.07107654958963394, -0.2085055559873581, 0.21335206925868988,...
Here is some javascript that I wrote that attempts to change the theme of the header of my jQuery Mobile application. It is in the head element of my web page after jQuery mobile javascript and CSS has loaded. ``` $(function() { $("[data-role='header']").attr('data-theme', 'b'); }); ``` Why is it having no effe...
[ 0.13433164358139038, -0.22093641757965088, 0.6907979249954224, -0.05201364681124687, -0.12839116156101227, 0.08780378103256226, -0.07296194136142731, -0.18860015273094177, -0.3897513747215271, -0.5690463185310364, -0.05262445658445358, 0.43671122193336487, -0.47688400745391846, 0.239227131...
ui-bar-c ui-bar-d ui-bar-e ui-btn-up-a ui-btn-up-b ui-btn-up-c ui-btn-up-d ui-btn-up-e'; //when a specific page initializes, find links in the body and add an event //handler to the click event for them to update the header's theme $(document).delegate('#my-page', 'pageinit', function () { $(this).find('a').bind('...
[ 0.03336023539304733, 0.07732436060905457, 0.9948925375938416, 0.02827177383005619, -0.216435506939888, 0.17446446418762207, 0.14487133920192719, -0.5031529664993286, -0.18782523274421692, -0.7319784164428711, -0.5512255430221558, 0.34047532081604004, -0.3914201557636261, 0.3621977269649505...
+ newTheme).children('h1').text('My Header (' + newTheme + ')'); //change the header button's classes/attr to reflect the new theme letter $.mobile.activePage.children('.ui-header').children('a').removeClass(removeClasses).addClass('ui-btn-up-' + newTheme); return false; }); });​ ``` Here...
[ 0.006928148213773966, -0.3143620193004608, 0.6208312511444092, 0.2104647308588028, -0.3305792212486267, 0.011764432303607464, 0.22065897285938263, -0.4744795560836792, -0.3089258074760437, -0.9263696074485779, -0.49782148003578186, 0.4095926582813263, -0.19774681329727173, 0.27464547753334...
data-role="content" data-theme="d"> ... </div> </div> ```
[ -0.13582417368888855, -0.0008355331956408918, 0.35456568002700806, 0.26743072271347046, 0.00222410773858428, -0.2028397172689438, -0.12885843217372894, -0.17557205259799957, 0.01499749906361103, -0.5507678985595703, -0.5967137217521667, 0.25591427087783813, -0.05751175433397293, 0.25640755...
In an IPython notebook, when you look at some docs with `?` or `help()`, a split frame is opened at the bottom of the screen where the documentation shows up. While I find this useful as a guide for continuing to play with some Python code, I would like to close this spit frame when I'm done reading the docs, so to get...
[ 0.31782400608062744, 0.133547842502594, 0.07569930702447891, 0.10828039795160294, 0.27240484952926636, -0.18100067973136902, 0.06572947651147842, 0.30369579792022705, -0.21266742050647736, -0.8657337427139282, -0.03427296131849289, 0.42761561274528503, -0.05907329171895981, 0.2155443876981...
I am new to VC++. I need to save data into an excel file. Please give me some direction. I have no clue where to start. Please help Thanks The only time when this kind of construct might be justified is if there is only ever one message exchanged and, even then, there may be some problems. If messages are to be excha...
[ 0.5274706482887268, 0.155239537358284, 0.49791598320007324, 0.09714702516794205, 0.06550370156764984, 0.03492121025919914, 0.5749269723892212, 0.06029194965958595, -0.3098503053188324, -0.6956660151481628, 0.0948706567287445, 0.4560326933860779, -0.31460651755332947, 0.16690091788768768, ...
to get involved with signals, queues and the like for inter-thread comms, but this is going to happen anyway if you write many multithreaded apps. Either way, it's usual to start the rx thread first. If you start the tx thread first, there is a possibility that rx data will be retuned and discarded before the rx threa...
[ 0.3996869623661041, 0.10271308571100235, 0.41903719305992126, 0.05239894241094589, -0.005785963498055935, -0.16207586228847504, 0.15854132175445557, 0.00026082349359057844, -0.28747066855430603, -0.6700371503829956, -0.18861854076385498, 0.6139284372329712, -0.44297969341278076, 0.01409202...
What I'm trying to do is add a `[+]` or `[-]` sign to an expandable heading so that once the user clicks on the heading, its content part will be shown and its sign part will change from `+` to `-` and vice versa. Since there are multiple headings, I used jQuery's `next()`. So far the `.content` toggling works well, bu...
[ 0.05071321129798889, -0.1290559023618698, 1.007523536682129, 0.0011858767829835415, -0.0862518697977066, -0.17339329421520233, 0.08895634859800339, -0.19878904521465302, -0.21617916226387024, -0.7350193858146667, -0.49681925773620605, 0.5450934767723083, -0.3213484287261963, 0.043742809444...
(int i = 0; i < nodes.getLength(); i++) { Element element = (Element) nodes.item(i); NodeList title = element.getElementsByTagName("Title"); Element ttl = (Element) title.item(0); String linkTitle = getCharacterDataFromElement(ttl); htmlReturn += "<a href='#' class='heading'><h4>" + linkTitle + " <span ...
[ -0.012925323098897934, -0.22418944537639618, 1.0495768785476685, -0.075806625187397, -0.19110549986362457, -0.08997613936662674, 0.2050463706254959, -0.5155192017555237, -0.2623414397239685, -0.5080230236053467, -0.4890090525150299, 0.26022547483444214, -0.2445773035287857, 0.1814508736133...
hyphen (-) is typically narrower. ```
[ -0.08153952658176422, 0.2843720018863678, 0.18556532263755798, -0.26082319021224976, -0.57264643907547, 0.348444402217865, 0.22576838731765747, 0.4279917776584625, -0.2507151663303375, -0.7087404131889343, -0.5352293848991394, 0.16527384519577026, 0.03826816380023956, 0.04986241087317467, ...
On the OnPreRender of my custom server control, I am registering an alert to popup everytime the page is loaded after a partial postback (add\_pageLoaded(function() { alert('Hi')})). I only want this to be called once, but its gets called as many times as there has been partial postbacks. For example, in the code below...
[ 0.18063801527023315, 0.05403212457895279, 0.7730787992477417, -0.473421186208725, -0.15870322287082672, -0.2633597254753113, 0.4085639715194702, 0.036655936390161514, -0.216420516371727, -0.8407991528511047, -0.14128591120243073, 0.5449283123016357, -0.33849215507507324, 0.0704055353999137...
been registered, and if so, dont register it again. I cannot register this script on !IsPostBack because my custom control will be inserted during Postbacks into pages, so using !IsPostBack will not include my script. Here is a simple example of this problem: ASPX: ``` <%@ Page Language="C#" AutoEventWireup="true" ...
[ 0.2794143855571747, 0.2085757702589035, 0.5810193419456482, -0.15061698853969574, 0.10094615817070007, -0.21144360303878784, 0.6724240183830261, -0.26111847162246704, -0.17039619386196136, -0.75639408826828, 0.07304707914590836, 0.3148902356624603, -0.17635710537433624, 0.23384197056293488...
TagPrefix="cc" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager...
[ -0.057419098913669586, -0.3043469190597534, 0.5176117420196533, 0.043081559240818024, -0.33896422386169434, -0.1761844903230667, -0.3804234564304352, -0.5871737003326416, -0.27764394879341125, -0.537909984588623, -0.41463854908943176, 0.38123995065689087, -0.31135284900665283, -0.328841686...
</ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> ``` Code behind: ``` using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text; namespace RegisterClientScriptExperimentatio...
[ -0.1306881457567215, -0.16754721105098724, 0.4288908541202545, -0.007178544066846371, 0.31159213185310364, 0.12091148644685745, 0.18448176980018616, -0.4147295355796814, -0.05485051870346069, -0.798362135887146, -0.7042745351791382, 0.6480708718299866, -0.24489857256412506, 0.1574359685182...
panel.Controls.Add(new CustomControl()); } } public class CustomControl : CompositeControl { private Button button; public CustomControl() { button = new Button(); button.Text = "Click me"; }
[ -0.06275850534439087, -0.3110197186470032, 0.47566312551498413, -0.16654494404792786, 0.35742390155792236, 0.6949544548988342, 0.08880162984132767, -0.161237895488739, -0.642956554889679, -0.6536357998847961, -0.13841672241687775, 0.8372498750686646, -0.330960214138031, -0.1287577450275421...