text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
totalEventsWidthPercentInOneColumn: 95, timeslotsPerHour: 4, scrollToHourMillis: 0, height: function($calendar) { return $(window).height() - $('h1').outerHeight(true); }, eventRender: function(calEvent, $event) { if (calEvent.end.getTime() < new Date().g...
[ 0.1245684027671814, -0.4751594364643097, 0.9395754337310791, -0.1827893704175949, 0.29934120178222656, 0.3198905289173126, 0.04990607127547264, -0.02409631572663784, -0.32916533946990967, -0.3356899321079254, -0.04016559571027756, 0.5853931903839111, 0.16742399334907532, 0.3370554149150848...
$event.css('backgroundColor', '#aaa'); $event.find('.wc-time').css({ backgroundColor: '#999', border: '1px solid #888' }); } },
[ -0.19689728319644928, -0.35293063521385193, 0.3146115839481354, -0.03152507171034813, 0.38435468077659607, -0.03489726781845093, 0.17518256604671478, 0.04456706345081329, -0.301628440618515, -0.5521012544631958, -0.16188324987888336, 0.32596200704574585, -0.413004606962204, 0.1814122945070...
eventNew: function(calEvent, $event, FreeBusyManager, calendar) { calEvent.id = calEvent.userId + '_' + calEvent.start.getTime(); }, data: function(start, end, callback) { callback(eventData2); }, displayFreeBusys: true,
[ -0.1974603533744812, -0.384358286857605, 0.37271395325660706, -0.12632042169570923, 0.31824588775634766, 0.27722588181495667, 0.07695155590772629, -0.005560897756367922, -0.12541675567626953, -0.4942726194858551, -0.32459449768066406, 0.8711259365081787, -0.21975187957286835, -0.1409866362...
daysToShow: 7, switchDisplay: { '1 day': 1, '3 next days': 3, 'work week': 5, 'full week': 7 }, headerSeparator: ' ', useShortDayNames: true }); }); })(jQuery); ``` which gives me following result: ![calendar](https://i.stack.imgur.com/kRSiC.png) I bet this can be improved; I thi...
[ 0.24209830164909363, -0.3344469368457794, 0.7706205248832703, -0.10930490493774414, 0.3242006301879883, -0.0405878946185112, 0.3137672245502472, 0.1660270392894745, -0.5248908996582031, -0.5977478623390198, -0.14797921478748322, 0.5375634431838989, -0.11761092394590378, 0.19683539867401123...
I have a Node project that is using Bundler and Guard to handle my pre-compilations steps. This means that I have a Gemfile in the root of my project along with the package.json file. My problem is that Heroku believes that my project is a Ruby app, just because the Gemfile exists. And complains that I have not commit...
[ 0.4388045072555542, -0.15314912796020508, 0.05568217113614082, 0.04787079244852066, -0.17137233912944794, -0.3267129063606262, 0.683465301990509, -0.40410134196281433, -0.08286681026220322, -0.6625182628631592, -0.2986213266849518, 0.6832852959632874, -0.3022650182247162, 0.080069646239280...
Heroku push rejected, failed to compile Ruby app ``` Is there a way to tell Heroku that the app is a Node app and not a Ruby app? It seems there's a new way to do this as `BUILDPACK_URL` is now deprecated, explained [here](https://devcenter.heroku.com/articles/buildpacks#setting-a-buildpack-on-an-application), but es...
[ 0.22190162539482117, -0.026443054899573326, 0.2798120677471161, -0.04862110689282417, -0.29306769371032715, -0.0622020959854126, 0.4859946072101593, -0.4103831946849823, -0.19015046954154968, -0.44257768988609314, -0.38148465752601624, 0.37319692969322205, -0.5310564637184143, -0.117536999...
While it does not make much sense in the general case as it should be done via superclasses, I want to allow "nil" for a particular parameter and avoid having to define a separate method. I'm trying to do something like that (pseudo-code) ``` (defmethod my-method ((obj1 my-class1) (obj2 (or my-class2 null))) metho...
[ 0.021080760285258293, 0.11238469928503036, 0.025340907275676727, -0.13075090944766998, 0.025766970589756966, -0.18496672809123993, 0.44050872325897217, 0.1111086755990982, -0.08287415653467178, -0.4547010660171509, 0.024145785719156265, 0.5201427936553955, -0.3357268273830414, 0.2392135113...
Being an amateur in Access and VBA, I've hit a wall with the following... In MS Access 2007, I have the following query: ``` SELECT .... WHERE format(NZ(l_f_date),'yyyy-mm-dd')<=**'2012-04-03'**); ``` I have shortened it a bit of course. The database has approx 20 queries that need to be run on a daily basis. I ha...
[ -0.03082520142197609, 0.5361523032188416, 0.44570958614349365, -0.27922263741493225, 0.021929658949375153, 0.30756130814552307, 0.003276847768574953, 0.10039409250020981, -0.6642438173294067, -0.4443141222000122, 0.4395858645439148, 0.6049091219902039, 0.07882470637559891, 0.36106178164482...
have an idea to create a Form, place a button for every macro on it and 2 textbox-es to enter the 2 dates I need. Now, I need those dates to appear in the bolded part. As I think about it, I have 2 options: * Create a temporary table in the database to store those two dates and pull those 2 fields in my queries. * Ins...
[ 0.286725252866745, 0.16102200746536255, 0.37801116704940796, -0.06008441746234894, 0.2677552402019501, -0.01653761975467205, 0.12033021450042725, 0.12170567363500595, -0.13204649090766907, -0.8541913032531738, 0.1113339439034462, 0.27125775814056396, -0.2685090899467468, 0.1297134160995483...
proc_desc,count(s) as broj into upit3 from ( select distinct a.case_id as s, a.org_case_id,a.act_date as day,d.prod_id,d.prod_desc, c.fname,c.dpd,c.due_amount,proc_id,proc_desc from actions_b as a, cases_old_b as c,processes_b as p, product_dict_b as d where a.org_case_...
[ -0.13345640897750854, 0.012323815375566483, 0.7139562964439392, -0.12697239220142365, 0.19742058217525482, 0.5899152755737305, -0.09484872221946716, -0.688406765460968, -0.44268664717674255, -0.46782296895980835, -0.425864577293396, 0.45633944869041443, -0.017848748713731766, 0.23809327185...
order by proc_desc; ``` OK, sample data.... In x.dates, value is exactly like this: **03.04.2012** In a.act\_date value is like this: **01.07.2011 13:53:56** so if its not possible with this values as they are, is it possible to use a LIKE statement in the query? Pseudo: `WHERE a.act_date LIKE x.date%` If its...
[ 0.11048949509859085, -0.10977602005004883, 0.41298916935920715, 0.11573673784732819, -0.053472843021154404, 0.26748549938201904, 0.27239561080932617, 0.004228228237479925, -0.3241376578807831, -0.5603424310684204, 0.002102243946865201, 0.053491219878196716, -0.22084271907806396, 0.37269061...
added 2 text-boxes to a form, 1 button and added the next procedure to the button: ``` Private Sub Command25_Click() CurrentDb.Execute "DELETE * FROM Datumi" Dim tbl As Recordset Set tbl = CurrentDb.OpenRecordset("Datumi") tbl.AddNew tbl!brojka = "1" tbl!datum = Text8.Value tbl.Update tbl.AddNew tbl!brojka = "2" tbl!d...
[ -0.10064804553985596, -0.03676612675189972, 0.6384576559066772, -0.1670495569705963, 0.0763140469789505, 0.1319594383239746, 0.3204076588153839, -0.46157029271125793, -0.32744958996772766, -0.7842329144477844, -0.22680027782917023, 0.45652464032173157, -0.47414812445640564, 0.2363108545541...
Is it possible to set constraints for VARCHAR columns in MySQL? I would like to not permit more than one row of a specific value. ``` ______________ | MyTable | -------------- | pk id INT | | name VARCHAR | ``` If I now inserted two rows with the same name, "peter", I would like to throw an err...
[ -0.36143776774406433, 0.23272322118282318, 0.3462158441543579, -0.1255669742822647, 0.14063027501106262, 0.3799060881137848, 0.12316545844078064, -0.06610165536403656, -0.1986578404903412, -0.48473474383354187, -0.02022445760667324, 0.2173110693693161, -0.5106201171875, -0.0125649031251668...
VALUES (2, "peter"); // This should fail INSERT INTO MyTable VALUES (3, "steven"); INSERT INTO MyTable VALUES (4, "steven"); // Shall succeed ``` Is it possible in some way in MySQL to check for specified values? no, thats not possible using constraints. you could add an [unique constraint](http://dev.mysql.com/doc/...
[ -0.13500188291072845, 0.32737621665000916, 0.5813360810279846, 0.13228048384189606, 0.39105653762817383, 0.18142357468605042, 0.43015989661216736, -0.3784891664981842, -0.37416672706604004, -0.30883076786994934, -0.0889875739812851, 0.45666244626045227, -0.15029031038284302, 0.258726626634...
I am trying to send mail via SMTP in Perl. I have written a script for this. ``` #!perl use warnings; use strict; use Net::SMTP; my $smtpserver = 'server'; my $smtpport = 25; my $smtpuser = 'username'; my $smtppassword = 'password'; my $smtp = Net::SMTP->new($smtpserver, Port=>$smtpport, Timeout => 10, Debug =>...
[ -0.01631174236536026, 0.23106563091278076, 0.5567229390144348, -0.4766748249530792, -0.04772785305976868, 0.4420202672481537, 0.7516999840736389, -0.15426671504974365, 0.0037357653491199017, -0.8459532856941223, -0.32119685411453247, 0.2437429130077362, -0.6297332644462585, 0.1274949312210...
250-AUTH=LOGIN PLAIN Net::SMTP=GLOB(0x273faf0)<<< 250-AUTH LOGIN PLAIN Net::SMTP=GLOB(0x273faf0)<<< 250 STARTTLS Net::SMTP=GLOB(0x273faf0)>>> RCPT TO:<mymail@gmail.com> Net::SMTP=GLOB(0x273faf0)<<< 503 5.5.1 MAIL first {mp-eu001} Net::SMTP=GLOB(0x273faf0)>>> DATA Net::SMTP=GLOB(0x273faf0)<<< 503 5.5.1 MAIL first {mp-eu...
[ -0.05573183670639992, 0.2204052358865738, 0.668865442276001, -0.13714641332626343, -0.1567932367324829, 0.17790944874286652, 0.47545045614242554, -0.3493422567844391, -0.21778786182403564, -0.47459617257118225, -0.11959950625896454, 0.41579657793045044, -0.5198071002960205, -0.013020095415...
low-level [Net::SMTP](http://search.cpan.org/perldoc?Net::SMTP)? ``` use strict; use warnings; use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP (); use Email::Simple (); use Email::Simple::Creator (); my $smtpserver = 'server'; my $smtpport = 25; my $smtpuser = 'username'; my $smtppasswor...
[ -0.3131641447544098, 0.004984286613762379, 0.7603330016136169, -0.3215363621711731, 0.10084546357393265, -0.010157978162169456, 0.37540656328201294, -0.07099051028490067, -0.2981589734554291, -0.6947528719902039, -0.36985158920288086, 0.3255280554294586, -0.4228174686431885, 0.253102928400...
So, basically I have an `NSArray`. I want to get an array with the contents of the initial array after having filtered those e.g. NOT beginning by a given prefix. It think using `filteredArrayUsingPredicate:` is the best way; but I'm not sure on how I could do it... This is my code so far (in a `NSArray` category ac...
[ -0.1258886158466339, -0.39877432584762573, 0.20917829871177673, -0.1351461410522461, -0.14130337536334991, -0.13570952415466309, 0.27381277084350586, -0.27056628465652466, -0.19163189828395844, -0.6498653292655945, 0.01454937644302845, 0.2293267548084259, -0.30407965183258057, 0.1221043840...
return newArray; } ``` Is it the most Cocoa-friendly approach? What I want is something as fast as possible... Here's a much simpler way using `filteredArrayUsingPredicate:`: ``` NSArray *filteredArray = [anArray filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF like %@", [pref stringByAppendingSt...
[ 0.03644324094057083, -0.23634952306747437, 0.3733157515525818, -0.01119027379900217, -0.116765595972538, -0.15849031507968903, 0.14004413783550262, -0.12437629699707031, -0.16193169355392456, -0.5880024433135986, 0.08987807482481003, 0.5466681122779846, -0.3226041793823242, -0.064017184078...
I am using Windows 2003 to write some PHP code. I use XAMPP Portable (copy to D:). The problem: ``` $path = 'D:\ebooks'; $all_file = scandir($path); foreach ($all_file as $file) { if (is_dir("$path/$file") && $file != '.' && $file != '..') { echo $file . "<br />\n"; } } ``` When I call the script (with brows...
[ -0.1612846404314041, 0.4369420111179352, 0.5477531552314758, -0.07179725170135498, -0.02139449492096901, -0.18092159926891327, 0.43072810769081116, -0.08903315663337708, 0.09668958932161331, -0.734754741191864, -0.030448656529188156, 0.7615019083023071, -0.38015857338905334, 0.161509633064...
to PHP access to a windows filesystem. While Windows does store the filenames as UTF-16, PHP's internals use the much older ANSI api's. So it's best to only do stuff with filenames that are in the ascii range, or switch to a different operating system.
[ 0.034796956926584244, 0.2493383139371872, 0.5177362561225891, 0.060119420289993286, -0.09538491070270538, -0.2068915218114853, 0.14086084067821503, 0.008785784244537354, -0.13821253180503845, -0.258385568857193, 0.14241038262844086, 0.12008949369192123, -0.05807844549417496, 0.180847227573...
I have a tiled background graphic with a header and footer part. Something like this: ![enter image description here](https://i.stack.imgur.com/7Bdai.png) How can I use this as background for a android view? The middle part should repeat to fill the screen height (it should NOT stretch like in a 9-patch). If I unders...
[ 0.1647939234972, -0.09413930028676987, 0.8103691339492798, -0.32327571511268616, -0.273881733417511, 0.4542641043663025, 0.3980642557144165, -0.5797194838523865, -0.13166457414627075, -0.640009880065918, 0.07047089189291, 0.5685977935791016, -0.1346939206123352, -0.14355717599391937, 0.3...
The code is pretty simple: ``` <table id="tabel_user" style="width: 100%; border: 0; background-color: white;" cellpadding="0" cellspacing="0"> <tr> <td style="border: 0; padding: 0; padding-left: 5px;"> <label for="abcd"><input class="check_useri" id="abcd" name="abcd" type="checkbox" /> abcd </label> ...
[ 0.04056171700358391, -0.009481985121965408, 0.4120127260684967, -0.17314720153808594, 0.10579508543014526, 0.005293748807162046, 0.19645550847053528, -0.4312044382095337, -0.18713288009166718, -0.7388157248497009, -0.06215597316622734, 0.2353234589099884, -0.404020220041275, -0.05432040244...
property [`white-space`](http://www.w3.org/TR/CSS2/text.html#white-space-prop): ``` <td style="white-space:nowrap;"> this content will not be wrapped </td> ```
[ 0.3582882285118103, -0.08154408633708954, 0.358430951833725, -0.09840517491102219, 0.23748569190502167, -0.3708800971508026, 0.020404726266860962, -0.3511693477630615, -0.21262620389461517, -0.4731627106666565, -0.5760695934295654, 0.07254187017679214, -0.1652655303478241, 0.27945849299430...
I have a register model thats tighly bound to a register view. The register model has a selectlistitem poperty. Im having trouble populating a dropdownbox with the select list items. ``` var users = Roles.GetAllRoles(); model.UserRoles = users.Select(m => new SelectListItem() {Value = m.ToString(),Text = m.ToString()...
[ -0.06606529653072357, -0.16019169986248016, 0.6790400743484497, -0.27143383026123047, 0.07273352891206741, 0.11791172623634338, 0.17458833754062653, -0.5079993009567261, -0.0962352603673935, -0.7508617639541626, -0.07289387285709381, 0.3219671845436096, -0.2932431995868683, 0.1864326894283...
The error I get: ``` ERROR 42821: Columns of type 'BOOLEAN' cannot hold values of type 'INTEGER'. ``` For the JPQL query: ``` SELECT b.id FROM Bar b WHERE b.latest = true ``` Apparently because Hibernate maps a Boolean field (ie "latest) to an integer column for JavaDB/Derby. But this only happens when the column...
[ -0.037189751863479614, -0.07899697870016098, 0.698253870010376, -0.17845569550991058, -0.2401885986328125, 0.030524250119924545, 0.241143599152565, -0.3128797113895416, 0.2785872519016266, -0.628346860408783, 0.1735491156578064, 0.6582295894622803, -0.34724104404449463, -0.0209935065358877...
problem too ? Pass true as query parameter ``` SELECT b.id FROM Bar b WHERE b.latest = :latest ``` will work for sure.
[ -0.09912868589162827, 0.20020969212055206, 0.5922210812568665, 0.2074178010225296, 0.07338888943195343, -0.01167867612093687, 0.1706286370754242, -0.23748557269573212, 0.027385683730244637, -0.5230506062507629, 0.10195416212081909, 0.6724637746810913, -0.19867469370365143, 0.10193353891372...
I am trying to display a table containing data from my db in a php page. No problems at all. When I try to use css to make the table better looking the browser gives me simply a blank page. Here's my code... If I delete the id=csstest part after opening the table tag everything works, as soon as I add id=csstest I ge...
[ 0.08897189050912857, 0.2990618944168091, 0.331419974565506, -0.21153271198272705, -0.32639506459236145, 0.059809647500514984, 0.5399174690246582, -0.278248131275177, -0.08065422624349594, -0.7281089425086975, -0.015284862369298935, 0.4245607554912567, -0.6190187335014343, 0.326457738876342...
die("Check your SQL query"); } $fields_num = mysql_num_fields($result); echo "<h1>Tabella: {$table}</h1>"; echo "<table id="csstest"><tr>"; // printing table headers for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo "<td>{$field->name}</td>"; } echo "</tr>\n"; // printing table rows ...
[ 0.3962095379829407, 0.14676174521446228, 0.31090810894966125, -0.39855387806892395, 0.12792089581489563, 0.27894842624664307, 0.05124291405081749, -1.04192316532135, -0.08570455759763718, -0.19011422991752625, -0.23936493694782257, 0.39170461893081665, -0.4343676269054413, 0.30062678456306...
It might be me, but when I calculate minimum app widget sizes according to the formula given on the android page I don't get the right widget widths; The formula is as [follows](http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy_determining_size): > width(n) = (70 x n) - 30 When I ...
[ 0.1492929458618164, -0.034814249724149704, 0.8635578751564026, -0.24591223895549774, -0.33498987555503845, 0.24671800434589386, 0.08269621431827545, -0.09838994592428207, -0.3556857109069824, -0.6729338765144348, 0.017796147614717484, 0.4154898524284363, -0.0901421532034874, 0.000771413033...
Tab with Gingerbread and then it resolves to a 6x1 (like one would expect). So two questions here; * What difference between Gingerbread and Honeycomb am I overlooking? * Since I know ICS widget size no longer has padding between widgets, is there some rule of thumb here as well? Not too many devices fully follow Go...
[ 0.011817829683423042, 0.05392574146389961, 0.5307068228721619, -0.006392387673258781, -0.28999564051628113, 0.26051273941993713, -0.056809961795806885, 0.06652423739433289, -0.3462980389595032, -0.7402417063713074, 0.19364266097545624, 0.49736741185188293, -0.15391328930854797, 0.564784049...
// ICS's new extra padding xml-sw552dp-v14 // ICS tablet padding ``` But as I fine tune, I may have to add a few new folders for particular dpis or screens. Quick update: Only some devices use automatic padding. Samsung & HTC have custom UIs that use full-width widgets, so they override the OS padding on their lau...
[ -0.009027678519487381, 0.01348872296512127, 0.6264054179191589, 0.2929367125034332, -0.03883283585309982, -0.10317183285951614, 0.04140413925051689, 0.06033686175942421, -0.29986369609832764, -0.6610172986984253, -0.33178988099098206, 0.3636648952960968, 0.003952053841203451, -0.2961791753...
<http://jsfiddle.net/UhNHW/> I'm trying to get a color block to slide in behind existing content inside a small block. It's glitchy and I need to get it to work for multiple instances on the same page. Any help is appreciated. use mouse leave like this ``` $('.container') .mouseover(function (){ ...
[ -0.016010966151952744, -0.18273571133613586, 0.4812057912349701, -0.2902684807777405, 0.21927514672279358, 0.15516415238380432, 0.3007432520389557, -0.15968169271945953, 0.15090468525886536, -0.7375534176826477, -0.23895412683486938, 0.4506622850894928, -0.41215988993644714, 0.102744437754...
}) ; ``` for more instances try this ``` $('.container').each(function() { var c = $(this); var box = c.find('.box2'); c. mouseover(function (){ box.stop(true, true).animate({top:0}, 150); }) .mouseleave(function (){
[ 0.04818841069936752, -0.3188144564628601, 0.4617146849632263, -0.3674534559249878, 0.5562443137168884, 0.21529868245124817, 0.25714465975761414, -0.23338563740253448, 0.03198666498064995, -0.39716342091560364, -0.21519935131072998, 0.67332923412323, -0.41934648156166077, 0.2066380530595779...
box.stop(true, true).animate({top:40}, 150); }); }); ```
[ -0.007338527124375105, -0.28615230321884155, 0.33611753582954407, -0.20214776694774628, 0.361745685338974, 0.3474867641925812, 0.31106072664260864, -0.003714150283485651, -0.007923467084765434, -0.5921633839607239, -0.5106383562088013, 0.5412469506263733, -0.5160829424858093, 0.25062644481...
I am writing a web-spider program with C. Now I am given a url's list, and first I need to get the server IP address using function: `getaddrinfo`, and then ridiculous thing happended: In the url's list there are about 4,000,000 url's, the first about 6,000 url's are processed very well, and then suddenly all of the u...
[ 0.06673483550548553, 0.2301151305437088, 0.5195527672767639, -0.052522212266922, -0.20032711327075958, -0.010652272962033749, 0.6140195727348328, 0.12129136919975281, -0.18741966784000397, -0.5243117809295654, 0.009255888871848583, 0.29757997393608093, -0.0598711222410202, 0.52879440784454...
some limited resources have been used up, can any one give me some suggestions? Are you calling `[freeaddrinfo()](http://linux.die.net/man/3/getaddrinfo)` on the returned address information? Very basic, but since you're not showing your code it's the first theory that comes to mind.
[ 0.4711619019508362, 0.09429065883159637, -0.008862806484103203, 0.16919466853141785, -0.08052749931812286, -0.39614740014076233, 0.051915645599365234, 0.1580558717250824, -0.1052018329501152, -0.4624583423137665, -0.10765352845191956, 0.4183644652366638, -0.18980565667152405, -0.0141609497...
I'm trying to build a tag system with 'negative border radius' (I lack a better description). I use `:after` and `:before` to create some faux border the 'bends outside'. It worked well, but there is some strange behaviour in MSIE. Normally I have `top:5px` on the `:after` and `:before`, but in IE I have to add an ext...
[ 0.43230363726615906, 0.030464617535471916, 0.6591494679450989, -0.015669923275709152, -0.2960461974143982, 0.1698228418827057, 0.6469367742538452, -0.2022157609462738, -0.0247455146163702, -0.7929061055183411, 0.19691818952560425, -0.020994877442717552, -0.24480180442333221, 0.130334496498...
height: 30px; overflow: hidden; } .test > div { background: white; border-top-left-radius: 5px; border-top-right-radius : 5px; height: 20px; padding: 5px; display: inline-block; } .test:before { content: ''; width: 5px; height: 20px; position: relative; top: 5px; marg...
[ -0.2564152777194977, -0.010091192089021206, 0.6086404919624329, 0.3352622985839844, 0.10763989388942719, 0.2501945495605469, 0.4802173376083374, -0.42768576741218567, 0.07502028346061707, -0.6691079139709473, -0.5803371071815491, 0.3697255253791809, 0.12464331090450287, -0.0480549484491348...
border-right-width:5px; border-bottom-right-radius: 10px; display: inline-block; vertical-align: middle; z-index: -1; } .test:after { content: ''; width: 5px; height: 20px; position: relative; top: 5px; margin-left: -5px; background: none; border-color: white; border...
[ -0.3622998893260956, 0.10540574043989182, 0.8915370106697083, 0.38452911376953125, 0.05775533616542816, 0.274349570274353, 0.2325746864080429, -0.30846214294433594, -0.09050524979829788, -0.493008017539978, -0.6436125636100769, 0.5120688676834106, 0.07422973960638046, -0.009347453713417053...
managed to get the error by myself. It was the vertical-align:middle with the :after and :before which caused the 1px offset
[ -0.06101043522357941, 0.24454310536384583, 0.4016853868961334, 0.07903970777988434, 0.12002145498991013, 0.04863171651959419, 0.023510387167334557, 0.039893824607133865, 0.12838557362556458, -0.28875815868377686, 0.15759076178073883, 0.3851877450942993, -0.2025066614151001, -0.036892756819...
I need to pass a list of strings as parameter to a console application (developed with C#). The console application is started with System.Diagnostics.Process.Start like: ``` string fname = "testDoc"; List<string> myList; //initialized elsewhere Process console = Process.Start("Client.exe", "-filename:"+fname+ " -l...
[ 0.19629216194152832, 0.1086108461022377, 0.7244088649749756, -0.000634051626548171, 0.0802406296133995, -0.14887598156929016, 0.3267647325992584, -0.4324572682380676, 0.24959567189216614, -0.6478387713432312, -0.1733858287334442, 0.49758055806159973, -0.07756014913320541, 0.227190539240837...
Common ways include: * database * file system (files) * WCF **UPDATE** Given the context supplied in the comment, I'd opt for a completely separate windows service running on the server (non-stop, not invoked) with database used for synchronization: * database with table `Tasks` with columns `input data`, `output d...
[ 0.21878458559513092, -0.06307393312454224, 0.31660446524620056, 0.09240593016147614, 0.0033940572757273912, 0.09986021369695663, 0.20777609944343567, -0.022945133969187737, -0.45482736825942993, -0.7339856028556824, -0.23658521473407745, 0.4902175962924957, -0.20607368648052216, 0.08592715...
task and displays it's status, showing the output data if it's there This is much more robust and scales much better with growing user traffic. The service itself would ideally spawn worker threads for separate tasks to take advantage of multiple cores. With such architecture in place, there's lots of ways to optimize...
[ 0.15124306082725525, -0.2446533590555191, 0.397537499666214, 0.24365244805812836, -0.04485996067523956, 0.057934317737817764, 0.0026108217425644398, -0.014085535891354084, -0.5445204973220825, -0.8939365148544312, -0.08558382093906403, 0.25962090492248535, -0.03285228833556175, 0.172174528...
Help me please with ray picking ``` float aspect = fabsf(self.view.bounds.size.width / self.view.bounds.size.height); GLKMatrix4 projectionMatrix = GLKMatrix4MakePerspective(GLKMathDegreesToRadians(35.0f), aspect, 0.1f, 1000.0f); GLKMatrix4 modelViewMatrix = _mainmodelViewMatrix; // some transformations _mainmo...
[ -0.18018056452274323, -0.15953026711940765, 0.7721717953681946, -0.002063761232420802, -0.274493932723999, 0.4098411202430725, 0.16555257141590118, -0.35548147559165955, -0.21275441348552704, -0.8821090459823608, -0.029561957344412804, 0.7542521953582764, 0.0207182876765728, 0.062789969146...
(2 * (self.view.bounds.size.height-position.y) / self.view.bounds.size.height - 1) , //1 - 2 * position.y / self.view.bounds.size.height, -1,
[ -0.0635790154337883, 0.16939690709114075, 0.5630760192871094, -0.22087770700454712, -0.013949348591268063, 0.456349641084671, 0.09084789454936981, -0.31182152032852173, -0.034993790090084076, -0.3016623258590698, -0.2636842727661133, 0.28688323497772217, 0.13990312814712524, 0.143695741891...
1); GLKMatrix4 inversedMatrix = GLKMatrix4Invert(_modelViewProjectionMatrix, nil); GLKVector4 near_point = GLKMatrix4MultiplyVector4(inversedMatrix, normalisedVector); ``` How I can get far point? And my near\_point is correct or not? Thanks! We can draw line from **near\_point** to **far\_point**. ``` GLKVector...
[ -0.5606640577316284, -0.39945799112319946, 0.9470284581184387, -0.24684639275074005, -0.09532368928194046, 0.16728772222995758, 0.06233010068535805, -0.2621864974498749, 0.10695846378803253, -0.410370409488678, -0.0790272131562233, 0.451309472322464, 0.0787593424320221, 0.13885347545146942...
* (self.view.bounds.size.height-position.y) / self.view.bounds.size.height - 1), -1,
[ 0.112822525203228, 0.10687946528196335, 0.587272584438324, -0.16300946474075317, 0.034230705350637436, 0.5305346846580505, 0.18213428556919098, -0.1813281774520874, 0.028452811762690544, -0.3760933578014374, -0.02839306741952896, 0.23073242604732513, 0.21387234330177307, 0.3521648049354553...
1); GLKMatrix4 inversedMatrix = GLKMatrix4Invert(_modelViewProjectionMatrix, nil); GLKVector4 near_point = GLKMatrix4MultiplyVector4(inversedMatrix, normalisedVector); near_point.v[3] = 1.0/near_point.v[3]; near_point = GLKVector4Make(near_point.v[0]*near_point.v[3], near_point.v[1]*near_point.v[3], ...
[ -0.6539816856384277, -0.26628491282463074, 0.9544103741645813, -0.381560355424881, -0.18297581374645233, 0.17502431571483612, 0.0017364617669954896, -0.25542956590652466, -0.015342599712312222, -0.3780818581581116, -0.13239650428295135, 0.45994502305984497, 0.04651422053575516, 0.333743900...
I feel silly asking this question... Sometimes I have a domain that I want to know the IP of. For example `google.com` -> `173.194.41.135`. What I usually do for this is use `tracert`, which besides doing a traceroute, shows the IP. But this is silly because turning domains to IPs is what DNS is all about. Isn't ther...
[ 0.5141248106956482, 0.17783422768115997, 0.0337417833507061, 0.30606162548065186, -0.14594748616218567, -0.6423695683479309, 0.11753054708242416, 0.3790799677371979, -0.3939865529537201, -0.6064738035202026, 0.23110447824001312, 0.17524859309196472, -0.27115318179130554, 0.6422891020774841...
DNS information for a host name. With that said, `nslookup` typically works well for the simple cases.
[ -0.12278544902801514, -0.2397228181362152, -0.024161456152796745, 0.32480698823928833, -0.16153301298618317, -0.514802098274231, -0.214111790060997, 0.5969502925872803, -0.3694325387477875, -0.7893933653831482, -0.36121663451194763, 0.29790905117988586, -0.11525126546621323, 0.365108430385...
I have a linq to sql query that produces duplicates. i can seem to figure out how to eliminate these duplicate records. Maybe someone on here can help. The idea is to retrieve the sum of the "total" from table2 that occurs for dates in table 1 that are greater than dates of table2 and also have dates in table2 that are...
[ 0.2608558237552643, 0.23050682246685028, 0.2899065613746643, 0.43653741478919983, 0.1664869636297226, 0.06979950517416, -0.16524122655391693, 0.06621725857257843, -0.8307026028633118, -0.37335923314094543, 0.5070620775222778, 0.29348325729370117, 0.10456466674804688, 0.4462909996509552, ...
join t2 in table2 on t1.id equals t2.id into x from y in x where t1.id == "123" && t1.date > y.date && y.date > DateTime.Parse("2011-01-01")
[ 0.09447331726551056, -0.2472887635231018, 0.22982701659202576, -0.12292375415563583, 0.027979686856269836, -0.06567023694515228, 0.2055305540561676, -0.3421756327152252, -0.08613094687461853, -0.44108372926712036, -0.2813255488872528, 0.19560840725898743, -0.04711933061480522, -0.052076090...
group t1 by new { y.total} into g select g.Sum(t1 => t1.total); ``` You should split the query in multiple steps: Select the data you want: ``` var data = from t1 in table1 join t2 in table2 on t1.Id equals t2.Id where t1.Id == "123" && t1.Date > t2.Date && t2.Date > DateTime.Parse("2011-01-01"...
[ -0.37949731945991516, -0.15498578548431396, 0.33075475692749023, -0.025879958644509315, -0.20080231130123138, 0.3516269028186798, 0.028233787044882774, -0.7328092455863953, -0.18635962903499603, -0.31787216663360596, -0.3464730381965637, 0.2333180457353592, -0.1796858161687851, 0.297628670...
g.Sum(item => item.Total)); ```
[ -0.25790151953697205, -0.017923330888152122, 0.189372256398201, -0.20261012017726898, -0.2839152216911316, -0.015472215600311756, 0.11405061930418015, -0.4082963168621063, -0.25819042325019836, -0.4204083979129791, -0.5698751211166382, 0.5072454214096069, -0.657512366771698, 0.322231054306...
I've been searching for questions about finding contents in a page, and alot of answers recommend using `DOM` when parsing webpages instead of `REGEX`. Why is it so? Does it improve the processing time or something. A DOM parser is actually parsing the page. A regular expression is searching for text, not understandin...
[ -0.0006886490155011415, 0.1564706265926361, 0.3858928084373474, 0.2451692372560501, -0.18739959597587585, -0.21565674245357513, 0.49780386686325073, -0.13273878395557404, -0.32699742913246155, -0.5409626960754395, -0.27673256397247314, 0.7194212079048157, -0.2183150053024292, -0.0400010384...
be able to design a regular expression which works for your particular use case, but foreseeing exactly the HTML with which you'll be provided (and, consequently, how it will break your limited-use-case regex) is extremely difficult. Additionally, a regex is harder to adapt to changes in a page's contents than an XPat...
[ 0.10508692264556885, -0.08708743751049042, 0.5235567688941956, 0.2849501967430115, -0.009079243056476116, 0.017208166420459747, 0.34966257214546204, -0.0677628442645073, 0.04351244866847992, -0.8779863119125366, -0.3009072244167328, 0.684123158454895, -0.20393642783164978, -0.4930798113346...
the job (an HTML parser for parsing HTML).
[ -0.19911368191242218, 0.030438557267189026, 0.1031629666686058, -0.010471247136592865, -0.22572477161884308, 0.08042201399803162, 0.21029339730739594, 0.111394964158535, -0.2728131115436554, -0.43442416191101074, -0.4111614525318146, 0.4540526270866394, -0.17881269752979279, -0.36383453011...
When I run the following script, a .bak backup file is left in the filesystem. How do I close() the files(s) properly so the backups are deleted? ``` #!C:\Python27\python.exe import os myRelease = os.environ.get("BUILD_STRING") myVersion = os.environ.get("VERSION_STRING") import fileinput import re files = ["C:\Projec...
[ 0.14514866471290588, 0.2038903683423996, 0.7464313507080078, -0.29214924573898315, 0.179315447807312, 0.15672586858272552, 0.5677176117897034, -0.2807205617427826, -0.317513108253479, -0.669477641582489, -0.45962271094322205, 0.5507036447525024, -0.3272251486778259, -0.10103047639131546, ...
you can see, that the files are automagically removed: ``` unlink("FileToSub2.sbs.bak") = -1 ENOENT (No such file or directory) rename("FileToSub2.sbs", "FileToSub2.sbs.bak") = 0 open("FileToSub2.sbs.bak", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=30, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644,...
[ -0.5659326314926147, -0.09855106472969055, 0.6759542226791382, -0.11450714617967606, 0.27296221256256104, 0.1810135394334793, 0.4390409290790558, -0.2531941831111908, -0.4299147427082062, -0.7649552822113037, -0.6685110330581665, 0.4915735125541687, -0.29132595658302307, 0.1258199512958526...
= 0 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 chmod("FileToSub2.sbs", 0100644) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=30, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdf3a987000 read(3, "whatever\nfile\nthing\nline\nwhas\n", 8192) = 30 read(3, "", 4096)...
[ -0.3611617088317871, -0.21327677369117737, 0.7711021304130554, -0.20991630852222443, 0.14729608595371246, 0.2850356101989746, 0.2677103579044342, -0.3420581817626953, -0.4284122586250305, -0.7274009585380554, -0.4222297668457031, 0.6648661494255066, -0.3118821084499359, -0.1803720742464065...
= 0 munmap(0x7fdf3a988000, 4096) = 0 close(3) = 0 munmap(0x7fdf3a987000, 4096) = 0 unlink("FileToSub2.sbs.bak")
[ -0.26384133100509644, -0.12540335953235626, 0.5186908841133118, -0.3066403567790985, 0.06403777748346329, 0.20941638946533203, 0.3233751654624939, -0.35492345690727234, -0.27853554487228394, -0.5550099015235901, -0.4552221894264221, 0.5448271632194519, -0.409508615732193, 0.458490014076232...
= 0 ```
[ 0.09684448689222336, 0.40116310119628906, 0.3596087098121643, -0.3162985146045685, 0.021924147382378578, -0.3135278522968292, 0.4091590940952301, -0.2205379605293274, 0.25745487213134766, 0.18113349378108978, -0.326353520154953, 0.5193879008293152, -0.4464593529701233, 0.2600865066051483, ...
``` public class Test { boolean[][] expectedResults = new boolean[8][2]; expectedResults[0] = new boolean[] {false, false}; //00B } ``` Gives me the following Compile Time error: test.java:3: ']' expected expectedResults[0] = new boolean[] {false, false}; //00B ^ test.java:3: ';' expected ...
[ -0.037621159106492996, -0.04903845861554146, 0.09244874119758606, -0.35900992155075073, 0.07177437841892242, 0.11041241139173508, 0.670028030872345, -0.4337620735168457, 0.21555134654045105, -0.4607110619544983, -0.0649055615067482, 0.7479676008224487, -0.3976709246635437, -0.1777599304914...
//00B ^ test.java:3: illegal start of type expectedResults[0] = new boolean[] {false, false}; //00B ^ test.java:3: expected expectedResults[0] = new boolean[] {false, false}; //00B ^ test.java:3: ';' expected expectedResults[0] = new boolean[] {false, false}; //00B ^ test.java:3: illegal start of typ...
[ -0.22663448750972748, -0.2824069857597351, 0.14483875036239624, -0.290651798248291, 0.15178652107715607, 0.12828870117664337, 0.57105952501297, -0.3408883213996887, 0.12482795864343643, -0.3704814910888672, -0.16859130561351776, 0.7167853116989136, -0.36243936419487, -0.5928958058357239, ...
assignment inside a method or static initialization block.
[ -0.25380396842956543, -0.38223597407341003, -0.28865140676498413, 0.21473288536071777, -0.23482578992843628, -0.05540170893073082, -0.030577801167964935, -0.19662141799926758, -0.032232627272605896, -0.48160508275032043, -0.4545457363128662, 0.017251359298825264, -0.22485361993312836, -0.1...
Hi recently I conducted a test on two different ubuntu servers. ``` Here are the results: innodb_flush_trx_commit = 1 Staging Server: 10,000 Inserts ----> 81 seconds innodb_flush_trx_commit = 2 Staging Server: 10,000 Inserts ----> 61 seconds Dev Server: innodb_flush_trx_commit = ...
[ -0.40089845657348633, -0.2849785089492798, 0.6650032997131348, -0.013335615396499634, -0.08904894441366196, 0.2988532483577728, 0.0015094999689608812, -0.5158085227012634, -0.23175372183322906, -0.48415058851242065, 0.0016505017410963774, 0.5109876394271851, 0.051455941051244736, -0.154440...
10,000 Inserts ----> 2 seconds I am clear that performance vary with innodb_flush setting. But why there is a huge diff in performance from the server to server ? ``` What are the things to consider here...? Here are the some of the details considered but no significant thing to suspect: ``` staging s...
[ 0.08413426578044891, 0.27639463543891907, 0.5245375037193298, 0.1573915332555771, 0.13003984093666077, 0.21316923201084137, -0.2085353285074234, 0.006493253633379936, -0.2982756793498993, -0.7750054001808167, 0.07965216785669327, 0.6336720585823059, -0.035958606749773026, -0.04825139790773...
mysql 5.1.61 innodb_buffer_pool : 8MB RAM: 4GB dev server: AMD Opteron(tm) Processor 4130 @2.60ghZ
[ -0.3851165771484375, -0.08704731613397598, 0.6451908349990845, -0.024934493005275726, -0.09973915666341782, 0.42400607466697693, 0.16271771490573883, -0.017723768949508667, -0.3218190670013428, -0.7137499451637268, -0.2726081907749176, 0.46439480781555176, -0.1272989958524704, -0.109929285...
processor 0, 1 mysql 5.0.67 innodb_buffer_pool : 8MB RAM: 4GB ``` Please help in understanding what is the exact thing that has lead to this huge difference in perfromance on different servers...? ```
[ -0.15318016707897186, 0.40325093269348145, 0.47531837224960327, -0.17058520019054413, -0.06170964613556862, 0.5094022154808044, -0.023703014478087425, -0.06768164783716202, -0.38301941752433777, -0.5923004150390625, -0.0004120543599128723, 0.5196669697761536, -0.026560688391327858, 0.06041...
NOTE: same script used in the same way on noth the servers and not from remote sesrvers. ``` Thanks in advance. Regards, UDAY Some questions I'd go through... Is binary logging turned on with one instance and not the other? Is the staging server using a networked drive to access the mysql data? Is the fi...
[ 0.2467924952507019, 0.12467443943023682, -0.0023268400691449642, 0.09317103773355484, 0.1631024330854416, -0.16176088154315948, 0.08371711522340775, 0.38107019662857056, -0.3295484185218811, -0.5832685828208923, -0.0009459892753511667, 0.6363356709480286, -0.24934612214565277, 0.1925164610...
Is there any way to completely process a form using only javascript & html ? I need to process a form for a school project but using only JS & HTML with no use of cgi scripts, php,… I don’t want anyone to actually make my homework for me, just a pointer in the right direction :) edit: With processing the form i mean ...
[ 0.5813683867454529, 0.054324183613061905, 0.4438250958919525, 0.14738120138645172, -0.05280011519789696, -0.28431251645088196, 0.11635579913854599, -0.20444528758525848, -0.11653490364551544, -0.6120685935020447, 0.04122651740908623, 0.35160622000694275, -0.015528133139014244, -0.121296048...
adding the form data to database and validate ofcourse. You can validate using jQuery[a js Library] [Validate](http://docs.jquery.com/Plugins/Validation) Also you can post form data using [jQuery Ajax](http://api.jquery.com/jQuery.post/)
[ 0.6395485401153564, -0.07308439165353775, 0.5641461610794067, 0.34302499890327454, -0.22092801332473755, -0.3827170133590698, -0.12059357017278671, -0.27307575941085815, -0.14430662989616394, -0.6241970062255859, -0.1651431769132614, 0.35063600540161133, 0.18016451597213745, -0.09138666093...
I have a C struct with about 17 members `struct settings currentProfile` and would like to initialise it all members to zero. (I have tried this both with the uber-correct struct syntax and with typedef syntax) To set all members to zero I use `currentProfile = {0}` at this line the compiler gives the erro `Expected ...
[ -0.20302845537662506, 0.06428024917840958, 0.6357528567314148, -0.259136438369751, 0.0482112281024456, 0.11397293955087662, 0.22347770631313324, -0.34153351187705994, -0.05790972337126732, -0.22491872310638428, 0.011262957006692886, 0.6572563648223877, -0.31093108654022217, 0.0814427658915...
I am new to MVC, repository concept and dependency injection. My repository and DAL looks like ``` public interface IRepository<TEntity> where TEntity : class { List<TEntity> FetchAll(); IQueryable<TEntity> Query { get; } void Add(TEntity entity); void Delete(TEntity entity); void Save(); } publi...
[ 0.25767982006073, -0.16946004331111908, 0.6079025268554688, -0.046463388949632645, -0.33916735649108887, 0.06425238400697708, 0.2780613303184509, -0.481548011302948, -0.09239384531974792, -0.9099573493003845, -0.1714242398738861, 0.08841006457805634, -0.20086470246315002, 0.585380315780639...
IQueryable<T> Query { get { return _db.GetTable<T>(); } } public List<T> FetchAll() { return Query.ToList(); } public void Add(T entity) { _db.GetTable<T>().InsertOnSubmit(entity); } public void Delete(T entity) { _db.GetTable<T>().DeleteOnSubmi...
[ -0.2926366329193115, -0.3794635832309723, 0.3643292188644409, 0.025047380477190018, -0.1314322054386139, 0.3298758864402771, 0.03860551118850708, -0.21212181448936462, 0.07107564061880112, -0.3270502984523773, -0.27512359619140625, 0.6013282537460327, -0.5395408868789673, 0.162979975342750...
{ _db.SubmitChanges(); } #endregion } ``` In Global.asax file I have ``` private void RegisterDependencyResolver() { var kernel = new StandardKernel(); kernel. Bind(typeof(IRepository<>)). To(typeof(Repository<>)) .WithConstructorArgument("...
[ -0.33441653847694397, -0.3003237247467041, 0.4649299085140228, -0.11537958681583405, 0.04061676561832428, -0.0173866655677557, 0.47408583760261536, -0.33002224564552307, -0.10252749919891357, -0.971664547920227, -0.40554338693618774, 0.565092146396637, -0.4455491602420807, 0.54845756292343...
} ``` but when I am trying to access repository I get "`Object reference not set to an instance of an object`". Do I understand correctly how Repository and Injection should work? ``` public class AdminController : Controller { private readonly IRepository<User> _userRepository; public ActionR...
[ -0.24779708683490753, -0.1519143432378769, 0.2913295030593872, 0.012246285565197468, 0.01670367829501629, 0.1425636261701584, 0.1687689572572708, -0.32298657298088074, -0.2760794758796692, -0.4957534074783325, -0.23077818751335144, 0.6652857661247253, -0.4526175260543823, 0.258050203323364...
View(); } } ``` You get nullref because you don't set `_userRepository`. Set it in the `AdminController`s constructor and Niject will inject it happily: ``` public class AdminController : Controller { private readonly IRepository<User> _userRepository; public AdminController(IRepository<User> userRepo...
[ -0.08540654182434082, -0.0719040259718895, 0.5259615182876587, 0.020328229293227196, -0.17936183512210846, 0.0005056095542386174, 0.04026680812239647, -0.2086680680513382, -0.08617889881134033, -0.8972154855728149, -0.2675453722476959, 0.7703301906585693, -0.42927098274230957, 0.2398395985...
``` buildIMG = (src, resize) -> html = '<div class="left"><div class="foods_image">' html += '<a onclick="popitup("http://somewhere.com/test" href="javascript:void(0)">' html += ' <img src="'+src+'" '+resize+' />' html += '</a>' html += '</div></div>' html popitup = (url) -> newwindow=window.open(ur...
[ 0.3885979652404785, 0.5461466312408447, 0.760608434677124, -0.3317013680934906, 0.13037574291229248, 0.0959077775478363, 0.04968860745429993, -0.21061168611049652, 0.06268734484910965, -0.7816472053527832, -0.27751681208610535, 0.23345544934272766, -0.13587090373039246, 0.15955807268619537...
html += '<a onclick="popitup(\'http://somewhere.com/test\');" href="javascript:void(0)">'; html += ' <img src="' + src + '" ' + resize + ' />'; html += '</a>'; html += '</div></div>'; return html; }; popitup = function(url) { var newwindow; newwindow = window.open(url, 'name', 'height=640,...
[ 0.11692428588867188, -0.04092509299516678, 1.185919165611267, -0.2717166543006897, 0.009819043800234795, 0.16697682440280914, 0.13268853724002838, -0.19094599783420563, -0.31767991185188293, -0.8444235920906067, -0.6266016364097595, 0.35623642802238464, -0.4561144709587097, 0.2966443300247...
called for each image to create the html. The problem is that the `onclick="popitup("http://somewhere.com/test"` portion doesn't work. It is undefined. A solution I did was to remove this which was generated by CoffeeScript: ``` (function() { }).call(this); ``` It was fixed as soon as I removed that. How do I not...
[ 0.45766910910606384, 0.2868233919143677, 0.2808517515659332, -0.10396718233823776, -0.025759393349289894, -0.11618150025606155, 0.14644962549209595, -0.17835329473018646, -0.04045093432068825, -0.4652913212776184, 0.11377978324890137, 0.2195892632007599, -0.8596348762512207, 0.026007710024...
I am stuck in a condition that I can't keep the sub layout faded after using the fade animation ``` FrameLayout mapLayout = (FrameLayout)findViewById(R.id.mapLayout); Animation fadeAnim = AnimationUtils.loadAnimation(this, android.R.anim.fade_out); mapLayout.startAnimation(fadeAnim); ``` Please guide how can I achi...
[ 0.06336085498332977, -0.21525107324123383, 0.7113175988197327, -0.08957040309906006, -0.049398187547922134, 0.11460298299789429, 0.548979640007019, -0.3109265863895416, -0.1299675703048706, -0.5109355449676514, -0.16706015169620514, 0.6338234543800354, 0.13008961081504822, -0.0343659706413...
of samples for each class. Doesn't need to be exact, but I'd say not more than 10% disparity. Otherwise the boundaries will be very fuzzy. * Size of your whole training set: you need to have sufficiently enough examples in your training set so your model can generalize to unknown samples. * Noise: KNN is very sensitive...
[ 0.3350377380847931, -0.18520118296146393, -0.10878428816795349, 0.26968055963516235, -0.2960010766983032, 0.22949635982513428, 0.2710108458995819, -0.3295510709285736, -0.2526997923851013, -0.7286049127578735, 0.01615285314619541, 0.12695187330245972, 0.08850959688425064, 0.165015652775764...
more training samples inside of the donut than outside), your decision boundary will be biased like below: ![donut-bad](https://i.stack.imgur.com/9Zx5n.png) On the other hand, if your classes are relatively balanced, you'll get a much finer decision boundary that will be close to the actual shape of the donut: ![ent...
[ 0.21852760016918182, -0.3519487679004669, -0.10657114535570145, 0.2511652112007141, -0.30844205617904663, 0.08096542954444885, 0.041107140481472015, -0.24215473234653473, -0.1775020807981491, -0.6570749878883362, 0.10178019106388092, 0.5070803761482239, 0.03382246196269989, -0.192819982767...
assign stronger weights to your class that has less elements.
[ 0.32375630736351013, -0.15847386419773102, -0.5054704546928406, 0.33412081003189087, -0.5607793927192688, 0.019726986065506935, 0.18728528916835785, -0.3707316815853119, -0.19108836352825165, -0.5545939803123474, -0.21001869440078735, 0.23498614132404327, -0.09842420369386673, -0.651342809...
I'm searching for a library (Apache / BSD / EPL licensed) to convert native text to ASCII using \u for characters not available in ASCII (basically what java.util.Properties does). I had a look and there don't seem to be any readily available libraries. I found: * JDK, tools.jar, [native2ascii](http://docs.oracle.com...
[ 0.22862106561660767, 0.3961510956287384, -0.007042517885565758, -0.0038202654104679823, 0.12002173811197281, 0.11329442262649536, 0.2678362727165222, -0.15963734686374664, -0.17315714061260223, -0.8544512391090393, -0.37215423583984375, 0.4771835505962372, -0.19547176361083984, 0.252615422...
org.junit.Test; public class EncodeToEscapes { @Test public void testEncoding() { final String src = "Hallo äöü"; // this has to be read with the right encoding final CharsetEncoder asciiEncoder = Charset.forName("US-ASCII").newEncoder(); final StringBuilder result = new StringBuilder(); for (final Ch...
[ 0.16612009704113007, -0.06288012862205505, 0.5048902630805969, -0.17468619346618652, 0.16453659534454346, 0.5134631991386414, 0.4671854078769684, -0.3950098156929016, 0.06992176920175552, -0.6283519864082336, -0.3113188147544861, 0.28360089659690857, -0.3082089424133301, 0.0912664756178855...
result.append(Integer.toHexString(0x10000 | character).substring(1).toUpperCase()); } } System.out.println(result); } } ``` Additionally org.apache.commons:commons-lang contains StringEscapeUtils.escapeJava() which can escape and unescape native strings.
[ -0.4424075484275818, -0.07335172593593597, 0.3365170657634735, -0.07240712642669678, 0.2953297793865204, -0.000023973108909558505, 0.6589589715003967, -0.42576998472213745, -0.21788610517978668, -0.4318886995315552, -0.4324049651622772, 0.30446043610572815, -0.38947948813438416, 0.25890088...
I have read up on it a bit and I understand that in java you can't change the original value of given parameters and expect those to persist after the method is over. But I'd really like to know a good way to do this. Could someone give me some pointers on what I could do to make this method work? Thanks. ``` /** * Th...
[ 0.47031375765800476, -0.04264989495277405, 0.6777307391166687, -0.11476685851812363, -0.038254592567682266, -0.0725376233458519, 0.3094090223312378, -0.5496740937232971, -0.3007602095603943, -0.34384775161743164, -0.0759088397026062, 0.5664660930633545, -0.46326157450675964, 0.046586863696...
String check = checkNull[i]; if (check == null) { check = ""; } } } ``` **EDIT** So I have to set it to the array as several people mentioned, and it works great if I construct the array in the first place, but if I don't then it doesn't work. Here's the fixed method: ``` /** * This will set valu...
[ 0.2619227468967438, -0.12605156004428864, 0.5722151398658752, -0.30240607261657715, -0.08042467385530472, -0.029755692929029465, 0.24536164104938507, -0.470451295375824, -0.23805539309978485, -0.3854571282863617, -0.10905691236257553, 0.6311419010162354, -0.5295860767364502, 0.015070459805...
(int i = 0; i < checkNull.length; i++) { if (checkNull[i] == null) { checkNull[i] = ""; } } } ``` Here's a call where it works: ``` String s = null; String a = null; String[] arry = new String[]{s, a}; for (int i = 0; i < arry.length; i++) { System.out.println(i + ": " + arry[i]); } setNullValuesBl...
[ -0.2050245702266693, -0.043060071766376495, 0.7703109979629517, -0.560602068901062, 0.14571411907672882, 0.16371342539787292, 0.614216685295105, -0.685656726360321, -0.19292698800563812, -0.35676899552345276, -0.5713439583778381, 0.758878767490387, -0.5329734086990356, 0.07571305334568024,...
+ x); setNullValuesBlank(q, x); System.out.println("q: " + q); System.out.println("x: " + x); ``` Output of that: ``` q: null x: null q: null x: null ``` You need to assign to the array: ``` if (checkNull[i] == null) { checkNull[i] = ""; } ``` Assigning to the check will not change the array.
[ -0.24879825115203857, -0.2144271731376648, 0.6058594584465027, -0.5587153434753418, 0.06802373379468918, 0.00792557094246149, 0.24768565595149994, -0.42835941910743713, -0.06121434271335602, -0.4631638824939728, -0.49370908737182617, 0.594364583492279, -0.44800040125846863, 0.0702335983514...
I have created a MySQL table and would like to save the contents of the table in an XML file for use by other applications. I can access the data fine and echo the data on a broswer window, but on saving using the DomDocument::save('thexmlfile.xml'), I cannot see any new files created in the directory location of the r...
[ 0.25419339537620544, 0.28576210141181946, 0.4822629690170288, -0.1865644007921219, -0.06856928765773773, -0.02549324370920658, 0.22242645919322968, -0.22133640944957733, -0.06477572023868561, -0.6220937371253967, 0.03720177337527275, 0.4752284586429596, -0.2568460702896118, 0.2092972248792...
I seem to be having a problem with the jQuery Mobile spinner. It seems to work OK when I'm using my desktop browser, chrome but doesn't work on my mobile browser on Android ICS Code I'm using below ``` $(document).live('pageinit', (function() { $(document).ajaxStart($.mobile.showPageLoadingMsg()); $(document)...
[ 0.07153944671154022, -0.046174224466085434, 0.7175585031509399, -0.12577970325946808, -0.30163806676864624, 0.04197399690747261, 0.2998243570327759, -0.2113780826330185, -0.1554373949766159, -1.0290181636810303, 0.15248744189739227, 0.6648464202880859, -0.4117142856121063, -0.1316455602645...
another event with Preview prefix. It fixed my problem.
[ -0.009923369623720646, -0.32311996817588806, 0.10249149799346924, 0.28009033203125, -0.6219910979270935, -0.06254027783870697, 0.005108352284878492, 0.4758974015712738, -0.31383538246154785, -0.2993565499782562, 0.41319161653518677, 0.22438323497772217, -0.170037180185318, 0.12146992981433...
This is the `JS` to detect the screen resolution on my page naming `index.html` and sending it to php, so that the values can be retrived using `$_GET`:- ``` <script type="text/javascript"> width = screen.availwidth; height = screen.availheight; if (width > 0 && height >0) { window.location.href = "http://localh...
[ 0.01472141221165657, 0.0659240335226059, 0.9655696749687195, -0.3947523236274719, -0.11655635386705399, -0.23282355070114136, 0.17153815925121307, -0.28307512402534485, -0.16751964390277863, -0.8591938018798828, -0.04491714388132095, 0.426822692155838, 0.08961746096611023, -0.0136910732835...
Javascript detected available screen width. 3. It passes it to php file and the PHP variable got the screen available screen width. 4. Then page get displayed using that php variable (Means the page width is being set using that php variable) In the whole process the `index.php` should not be reloaded. **So, How it ca...
[ 0.28507179021835327, 0.056813620030879974, 0.5273091793060303, -0.21226152777671814, -0.31963014602661133, -0.31059911847114563, 0.35146602988243103, -0.3250703811645508, -0.18383105099201202, -0.9611977934837341, -0.006901041138917208, 0.4922228753566742, -0.2854340970516205, -0.144583150...
ajax, it may can happen that my website get fully loaded and the style would not be implemented because it has already been loaded all the stuffs before the ajax work. Is there any method which is efficient enough or we can do this one in a way that it become efficient. **This is my EDIT:2** To be more clear i'll ac...
[ 0.3006468713283539, 0.11013263463973999, 0.3910881578922272, 0.011905264109373093, -0.37223315238952637, -0.5597087740898132, 0.18333113193511963, 0.17021718621253967, -0.36144450306892395, -0.80876225233078, 0.27045708894729614, 0.7975406646728516, -0.17964336276054382, -0.347296684980392...
will become `600px` and as my `divs` are `250px` i'll be able to add only two. Therefore, to avoid showing that `100px` in right i'll adjust my website page width to `700px`. Things i can do in php, but how to get all things get done at same time on same page? **The whole area you can call as** `#Wrapper` **Right One...
[ 0.33180829882621765, -0.16725842654705048, 0.8255994915962219, 0.15632404386997223, -0.10580810159444809, 0.0010537734488025308, 0.0059475377202034, 0.0523054264485836, -0.1265319138765335, -0.8060155510902405, 0.0905560776591301, 0.49588051438331604, 0.11041542887687683, -0.33956283330917...