text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
which. ``` <?xml version="1.0" encoding="utf-8"?> <!--W3C Schema generated by QTAssistant/W3C Schema Refactoring Module (http://www.paschidev.com)--> <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="players"> <xsd:compl...
[ -0.024816321209073067, -0.11845531314611435, 0.5191430449485779, 0.04216238483786583, -0.06500818580389023, -0.39685535430908203, -0.13138426840305328, -0.7852335572242737, -0.2915521562099457, -0.576221764087677, -0.1768568456172943, 0.5599919557571411, -0.2949664294719696, 0.138258755207...
</xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="number" type="Int1to4" use="required" /> </xsd:complexType> </xsd:element> <xsd:simpleType name="Int1to4"> <xsd:restriction base="xsd:int"> <xsd:minInc...
[ -0.21168813109397888, -0.42739972472190857, 0.3179079294204712, 0.15153302252292633, 0.07730331271886826, 0.2395668476819992, -0.20164062082767487, -0.36996757984161377, -0.35411977767944336, -0.7718628644943237, -0.21887636184692383, 0.6793147325515747, -0.2775801420211792, 0.229492798447...
hi i am creating custom address book in this i want to get only this users who have email address all things work perfectly but when i try to show image in tableview it gives me `EXCBAD Error`. i have code like this ``` ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef people = ABAddressBook...
[ -0.023401867598295212, -0.03373626247048378, 0.6532336473464966, -0.3799057900905609, -0.15223348140716553, 0.28747817873954773, 0.5632582902908325, -0.614240825176239, 0.12923648953437805, -0.683013379573822, -0.043798577040433884, 0.6481004357337952, -0.5026016235351562, 0.17790834605693...
for (CFIndex j=0; j < ABMultiValueGetCount(emails); j++) { UIImage *img; if(ABPersonHasImageData(person)) { // img = [UIImage imageWithData:(NSData *)ABPersonCopyImageDataWithFormat(person,kABPersonImageFormatThumbnail)]; img = [UIImage imageWithData:(N...
[ -0.292850136756897, -0.22806313633918762, 0.600796639919281, -0.25750312209129333, -0.23259657621383667, 0.25447237491607666, 0.6802735328674316, -0.2329784333705902, -0.10094235837459564, -0.5219089388847351, -0.34724900126457214, 0.4946998953819275, -0.20970416069030762, -0.0203775633126...
if(img != nil) // { // [arrImage addObject:img]; // } // else // {
[ -0.14914587140083313, -0.08599063754081726, 0.053399182856082916, -0.47191157937049866, -0.09749139100313187, -0.10390331596136093, 0.21547123789787292, -0.4237630367279053, 0.15608260035514832, -0.17349298298358917, -0.15379230678081512, 0.5868607759475708, -0.5265169739723206, -0.0484480...
img = [UIImage imageNamed:@"icon-9.png"]; [arrImage addObject:img]; // } }else { img = [UIImage imageNamed:@"icon-9.png"];
[ -0.5067712068557739, -0.24068979918956757, 0.48864471912384033, -0.4883403182029724, -0.29291969537734985, 0.30918052792549133, 0.20299121737480164, -0.08496497571468353, -0.04022807255387306, -0.447466105222702, -0.5804370641708374, 0.752461314201355, -0.7824755907058716, -0.1354676485061...
[arrImage addObject:img]; } NSString* email = (NSString*)ABMultiValueCopyValueAtIndex(emails, j); // [arrImage addObject:img]; [arrEmail addObject:email]; [img release]; [email release]; }
[ -0.37125876545906067, 0.07743322104215622, 0.41439110040664673, -0.5440695881843567, -0.13603951036930084, 0.31574878096580505, 0.3740566074848175, -0.3131003975868225, -0.19725964963436127, -0.1623285412788391, -0.19784493744373322, 0.5920910835266113, -0.7023249268531799, 0.0136414207518...
CFRelease(emails); } CFRelease(addressBook); CFRelease(people); ``` here in above code i am fetching image and store image in NSMutableArray it is going to be stored perfectly. but when i am going to show image in the below code ``` -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndex...
[ 0.04636606201529503, -0.09120837599039078, 1.0464444160461426, -0.1352294683456421, 0.04684242233633995, 0.04886623099446297, 0.5768855214118958, -0.4594975709915161, -0.13375842571258545, -0.751767635345459, -0.19143609702587128, 0.6532220244407654, -0.37929514050483704, -0.26980155706405...
!= 0) { imagePhoto.image = [arrImage objectAtIndex:indexPath.row]; [cell.contentView addSubview:imagePhoto]; cell.detailTextLabel.text = [NSString stringWithFormat:@"%@",[arrEmail objectAtIndex:indexPath.row]]; cell.detailTextLabel.textColor = [UIColor whiteColor]; } retur...
[ -0.11341334134340286, -0.11868884414434433, 0.7733418345451355, -0.07369454950094223, 0.08222219347953796, 0.14455273747444153, 0.4694072902202606, -0.5398830771446228, -0.029985910281538963, -0.6848297119140625, -0.21698389947414398, 0.5930182337760925, -0.2959371507167816, 0.143257156014...
and show the image? hey help me any body can help me or suggest me to implement like [Google Latitude](http://itunes.apple.com/in/app/google-latitude/id306586497?mt=8) in this you can see in add friends from iPhone address book i want to just implement some what like this application functionality my all code is worki...
[ 0.6133690476417542, 0.004552598111331463, 0.7131734490394592, 0.1150345504283905, -0.3582942485809326, -0.016037799417972565, 0.38076716661453247, -0.14325864613056183, -0.01402816642075777, -0.8318078517913818, 0.2556780278682709, 0.4357199966907501, -0.048883575946092606, -0.042465537786...
if (imgData) { UIImage *personImage = [UIImage imageWithData:imgData]; imgData = nil; [dict setValue:personImage forKey:@"UserImage"]; } else
[ -0.6167441606521606, -0.442172646522522, 0.22665110230445862, -0.14534254372119904, -0.10492128133773804, 0.3906506299972534, 0.42184513807296753, -0.14757040143013, 0.12059813737869263, -0.7968249320983887, -0.2832562327384949, 0.5956200361251831, -0.18586961925029755, 0.07070956379175186...
{ UIImage *personImage = [UIImage imageNamed:@"defalt_contact_img.png"]; [dict setValue:personImage forKey:@"UserImage"]; } ``` You may manipulate the code to suit your requirement, i am using dictionary and you are using arrays so you may use the addObject method of the ar...
[ -0.23478743433952332, 0.0611676387488842, 0.494333416223526, -0.09864731878042221, -0.11519036442041397, 0.2670612931251526, 0.2506372928619385, -0.15402257442474365, 0.15529774129390717, -0.8449628353118896, -0.14700651168823242, 0.7114086151123047, -0.14200183749198914, -0.07176257669925...
book in an mutable array with multiple dictionaries in this way the manipulation of records becomes easy.
[ -0.05501075088977814, 0.2186625897884369, 0.22198191285133362, 0.4043814241886139, -0.07146196067333221, -0.17879347503185272, -0.06209637224674225, -0.3006620705127716, -0.38703209161758423, -0.603938102722168, -0.4407639503479004, 0.2546765208244324, -0.13494573533535004, 0.2140208631753...
I have a problem about the split method. I’d like to write the program that I invoke split method with `("a?b?gf#sad", "#?")`, it will return `[a,?,b,?,gf,#,sad]`. Could somebody tell how can I solve this question? Thank you very much. Use StringTokenizer: ``` String s = "a?b?gf#sad"; final StringToken...
[ 0.005702635273337364, -0.06731355935335159, 0.3104150891304016, -0.23787115514278412, -0.06428968906402588, 0.311401903629303, 0.44144031405448914, -0.4179818034172058, -0.27653568983078003, -0.2808549404144287, -0.1495739370584488, 0.46928662061691284, -0.533859372138977, 0.26808458566665...
What would be the best (read: cleanest) way to tell Python to import all modules from some folder? I want to allow people to put their "mods" (modules) in a folder in my app which my code should check on each startup and import any module put there. I also don't want an extra scope added to the imported stuff (not "m...
[ 0.741197943687439, -0.059551090002059937, 0.30035400390625, -0.3068464696407318, 0.01070436742156744, -0.10487151145935059, 0.194893941283226, -0.15835072100162506, -0.48820844292640686, -0.6643606424331665, -0.24530848860740662, 0.601557195186615, -0.37325096130371094, -0.1601304560899734...
".py" with the `__import__` built-in function: ``` import os for name in os.listdir("plugins"): if name.endswith(".py"): #strip the extension module = name[:-3] # set the module name in the current global name space: globals()[module] = __import__(os.path.join("plugins", name) ...
[ -0.34531471133232117, -0.25089919567108154, 0.7056678533554077, -0.26595407724380493, 0.2784140408039093, -0.09212011098861694, -0.22086864709854126, 0.017658155411481857, -0.6727527976036072, -0.5490526556968689, -0.5364557504653931, 0.7661905288696289, -0.4459249973297119, 0.020206300541...
you to check other things about the files - maybe size, or if they import certain required modules, before importing them.
[ 0.5764392614364624, -0.030086446553468704, 0.08520253002643585, 0.3809570372104645, 0.37894344329833984, -0.41002240777015686, -0.10380611568689346, -0.07437805831432343, -0.39132288098335266, -0.5950129628181458, -0.426400363445282, 0.5036064386367798, 0.1773086041212082, -0.0842939391732...
My `test/`'s project is full of [mocha](http://visionmedia.github.com/mocha/) tests: ``` test/ ├── a.coffee └── b.coffee ``` Say, `a.coffee` is ``` console.log 'Executing A test!' global.foo = 'FOO' ``` and `b.coffee` is ``` console.log 'Executing B test!' console.log 'Expecting foo not defined:', assert.equal(f...
[ 0.33384811878204346, 0.5924443006515503, -0.1028142124414444, 0.04262068495154381, -0.2892525792121887, 0.044105999171733856, 0.33176863193511963, -0.18815675377845764, -0.07026669383049011, -0.647953450679779, 0.08462174981832504, 0.41359516978263855, -0.4129446744918823, 0.02238507941365...
I have a static table created in Interface Builder with 6 sections all with different amounts of rows. I now want to add a 7th section with a varying number of rows. First off, as soon as I uncomment the standard table delegate methods that are inserted by Xcode, I get a crash at self.tableView.tableHeaderView = conta...
[ 0.1547766476869583, 0.006806886289268732, 0.5414961576461792, -0.10019239038228989, -0.16042174398899078, -0.015103066340088844, 0.6044387221336365, -0.27454978227615356, -0.32000628113746643, -0.8230284452438354, 0.031290486454963684, 0.4602770507335663, -0.30814042687416077, 0.4380633831...
} else { return [super tableView:tableView numberOfRowsInSection:section]; } } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {/* if (indexPath.section == 6) { static NSString *CellIdentifier = @"cellWireless"; UITableViewCell *cel...
[ -0.11103909462690353, -0.09811073541641235, 0.8420737981796265, -0.21820910274982452, 0.2654913365840912, -0.05372284725308418, 0.3385104537010193, -0.3795608878135681, -0.20306181907653809, -0.7149772047996521, -0.2677384912967682, 0.399546355009079, -0.23430365324020386, 0.10245151817798...
an extra one with a few cells? To add dynamic cells to a static cells table you have to override every UITableView delegate method that has an indexPath. ``` -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section -(UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPa...
[ 0.044586122035980225, -0.1326242983341217, 0.7706553936004639, 0.05533295497298241, -0.216582253575325, 0.20586305856704712, 0.21042875945568085, -0.5615818500518799, -0.2246650904417038, -0.6668222546577454, -0.17089860141277313, 0.5037214756011963, -0.3410055935382843, 0.0162375029176473...
= indexPath.section; // if dynamic section make all rows the same height as row 0 if (section == self.dynamicSection) { return [super tableView:tableView heightForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:section]]; } else { return [super tableView:tableView heightForRo...
[ -0.25026220083236694, -0.23602737486362457, 0.8103780150413513, -0.19031131267547607, -0.13926711678504944, 0.3412708342075348, 0.3445693850517273, -0.3968704342842102, -0.4284021854400635, -0.6943319439888, -0.13077282905578613, 0.3833548128604889, -0.41905900835990906, 0.2211738526821136...
if (section == self.dynamicSection) { return [super tableView:tableView indentationLevelForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:section]]; } else { return [super tableView:tableView indentationLevelForRowAtIndexPath:indexPath]; } } - (NSInteger)tableView:(UITableView *)t...
[ -0.045593954622745514, -0.25013068318367004, 0.6883406043052673, -0.061172403395175934, -0.1285606026649475, 0.23856094479560852, 0.3181765079498291, -0.5633319616317749, -0.346131294965744, -0.5139865875244141, -0.16126427054405212, 0.30245494842529297, -0.3220309019088745, 0.244716957211...
int section = indexPath.section; int row = indexPath.row; if (section == self.dynamicSection) { // make dynamic row's cell static NSString *CellIdentifier = @"Dynamic Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (!cel...
[ -0.634032130241394, -0.361297607421875, 0.8318907022476196, -0.2783622741699219, 0.11495058983564377, 0.1789345145225525, 0.27978646755218506, -0.43556758761405945, -0.26219508051872253, -0.3823026418685913, -0.16142065823078156, 0.34646162390708923, -0.3665429651737213, 0.2473326921463012...
} cell.textLabel.text = [self.dataListArray objectAtIndex:row]; return cell; } else { return [super tableView:tableView cellForRowAtIndexPath:indexPath]; } } ``` Only once you have every method overridden will your table start to work. For any referencing the static section, jus...
[ -0.1386609971523285, -0.028757693246006966, 0.7250075340270996, -0.2783789336681366, 0.14481577277183533, -0.30067986249923706, 0.4521277844905853, -0.40381741523742676, -0.31223902106285095, -0.571620523929596, -0.10500824451446533, 0.5224097371101379, -0.44397419691085815, 0.170774325728...
I noticed in the code base I have to read that sometimes property definition includes an empty (). What's the meaning of that? And it has nothing to do with arrays. For example : ``` Public Property TotalPages() As Integer ``` I know it seems strange (well to us C#'ers) but properties can have parameters in VB.NET....
[ 0.16228538751602173, 0.05673273280262947, 0.147373229265213, 0.4836835563182831, -0.05358000099658966, -0.1657491773366928, -0.055702093988657, -0.19785870611667633, -0.454210489988327, -0.34103474020957947, -0.1263878494501114, 0.4600276052951813, 0.23238462209701538, 0.5063982605934143, ...
Get Return _scores(index) End Get Set(ByVal value As Integer) _scores(index) = value End Set End Property Private _score As Integer ' A straightforward property Public Property Score() As _ Integer
[ -0.049700189381837845, 0.04805846884846687, 0.5501114130020142, 0.12292880564928055, 0.007677161134779453, -0.1826464980840683, 0.017724450677633286, -0.478324830532074, -0.10997481644153595, -0.08121725171804428, -0.38663941621780396, 0.5041922330856323, -0.24455907940864563, 0.2828965187...
Get Return _score End Get Set(ByVal value As Integer) _score = value End Set End Property End Class Public Class Test Public Sub Test() Dim s As New Student ' use an indexed property
[ 0.10402505099773407, -0.2642284333705902, 0.546160101890564, 0.2846679091453552, 0.03215772286057472, -0.26251158118247986, 0.3719787001609802, -0.21623407304286957, 0.07878120243549347, -0.3528001606464386, -0.5939663648605347, 0.3280423879623413, -0.05419057607650757, 0.20368903875350952...
s.Score(1) = 1 ' using a standard property ' these two lines are equivalent s.Score() = 1 s.Score = 1 End Sub End Class ``` So your declaration of ``` Public Property TotalPages() As Integer ``` Is a straightforward non-indexed property, e.g. with no parameters.
[ 0.08803099393844604, -0.20976050198078156, 0.3334609568119049, 0.15202538669109344, -0.06644987314939499, -0.1906091868877411, 0.018642444163560867, -0.3152145743370056, -0.23512186110019684, -0.17086505889892578, -0.23400449752807617, 0.22206813097000122, -0.10210434347391129, 0.260803461...
I am trying to build a web application which can do this: 1. Through the web application User selects some files present on his machine's filesystem. 2. Web application then extracts metadata of selected files like filename, size, filetype and stores it in a database at server. So I need two things - 1. web app should...
[ 0.5274620056152344, 0.17637236416339874, 0.1608845293521881, 0.3197488784790039, 0.015455064363777637, -0.11160849034786224, -0.0403507724404335, -0.29632094502449036, -0.14514248073101044, -0.6595248579978943, 0.17362365126609802, 0.5036977529525757, -0.1837131679058075, 0.466637611389160...
Student Private ReadOnly _scores(9) As Integer ' An indexed Score property Public Property Score(ByVal index As Integer) As _ Integer Get Return _scores(index) End Get Set(ByVal value As Integer) _scores(index) = value End Set
[ 0.0654526799917221, 0.13133323192596436, 0.33785659074783325, 0.3877689242362976, 0.17203989624977112, 0.11083770543336868, 0.0884351059794426, 0.19575832784175873, -0.17132970690727234, -0.19617131352424622, -0.4948612153530121, 0.16930025815963745, -0.07554814964532852, 0.430042177438735...
End Property Private _score As Integer ' A straightforward property Public Property Score() As _ Integer Get Return _score End Get Set(ByVal value As Integer) _score = value End Set
[ -0.1347585916519165, 0.09462369978427887, 0.3294493556022644, 0.0941624790430069, -0.08359019458293915, -0.29353389143943787, -0.004417145624756813, -0.47548559308052063, -0.02985907904803753, -0.12197167426347733, -0.3333960175514221, 0.4583609700202942, -0.26110151410102844, 0.2741655111...
End Property End Class Public Class Test Public Sub Test() Dim s As New Student ' use an indexed property s.Score(1) = 1 ' using a standard property ' these two lines are equivalent s.Score() = 1 s.Score = 1 End Sub End
[ 0.08159729838371277, -0.2862086594104767, 0.4424475133419037, 0.2788057327270508, -0.032423362135887146, -0.08899536728858948, 0.34886953234672546, -0.29810404777526855, 0.28103986382484436, -0.3782555162906647, -0.6014600396156311, -0.0736302062869072, 0.13669006526470184, 0.4619032442569...
Class ``` So your declaration of ``` Public Property TotalPages() As Integer ``` Is a straightforward non-indexed property, e.g. with no parameters.
[ -0.19501307606697083, -0.09020540118217468, -0.02571425400674343, 0.2833331525325775, -0.1459248811006546, -0.14225919544696808, -0.030406838282942772, 0.16996125876903534, -0.322671115398407, -0.20643192529678345, -0.17714248597621918, 0.43661341071128845, -0.3071620464324951, 0.284499973...
I'm looking for a data structure (array-like) that allows fast (faster than O(N)) arbitrary insertion of values into the structure. The data structure must be able to print out its elements **in the way they were inserted**. This is similar to something like List.Insert() (which is too slow as it has to shift every ele...
[ -0.08504239469766617, 0.060497939586639404, 0.1750887781381607, -0.18016470968723297, 0.05178724229335785, 0.1457306295633316, -0.10605388134717941, -0.3688451945781708, -0.013670498505234718, -0.6289395689964294, 0.03166430443525314, 0.17244894802570343, -0.2879579961299896, 0.27724638581...
1) gives {1,3} * Insert(2, 1) gives {1,2,3} * Insert(5, 0) gives {5,1,2,3} And it'll need to be able to print out {5,1,2,3} at the end. I am using C++. Use [skip list](http://en.wikipedia.org/wiki/Skip_list). Another option should be [tiered vector](http://www.cs.brown.edu/cgc/jdsl/papers/tiered-vector.pdf). The skip...
[ -0.07654048502445221, -0.2018323689699173, 0.28849467635154724, 0.12929460406303406, -0.0548778660595417, 0.06308098137378693, -0.15824119746685028, -0.5792333483695984, -0.6429553627967834, -0.37556591629981995, -0.025204313918948174, 0.11086311936378479, -0.45997554063796997, -0.24870479...
many elements does it jump over. So looking for the k-th element you start with the head of the list and go down the tower until you find a link that jumps over no more then k elements. You go to the node pointed to by this node and decrease k with the number of elements you have jumped over. Continue doing that until ...
[ -0.1134917140007019, -0.4653441607952118, 0.5529708862304688, 0.22499346733093262, -0.09779010713100433, -0.19743475317955017, 0.2061595469713211, -0.38458606600761414, -0.4185834527015686, -0.511728048324585, 0.07772789895534515, -0.026383161544799805, -0.5016717314720154, 0.3511151671409...
I am going nuts here. I have tried countless permutations/variations of "save as active document file format PDF" but none seem to work. I get AppleScript errors with all of them. So can anyone tell me: What is the exact syntax to save the active document as a PDF file in AppleScript, using Word? It seems that ther...
[ -0.06835594773292542, 0.10132622718811035, 0.485040545463562, 0.04933863505721092, 0.0619584396481514, -0.11091987788677216, 0.15849098563194275, 0.28432419896125793, -0.22853580117225647, -0.8525955080986023, -0.3714340031147003, 0.9307136535644531, -0.36335381865501404, -0.11294666677713...
correct syntax for Word? Thanks! It seems I found it after all: ``` set myDoc to "/Users/X/Desktop/test.docx" set pdfSavePath to "Users:X:Desktop:test.pdf" tell application "Microsoft Word" activate open myDoc set theActiveDoc to the active document save as theActiveDoc file format fo...
[ -0.16582174599170685, -0.12833675742149353, 1.043387532234192, -0.14962613582611084, -0.08903315663337708, 0.02774515002965927, 0.39737293124198914, 0.07949905097484589, 0.07252072542905807, -0.8027210831642151, -0.43031713366508484, 0.7045761346817017, -0.1637338250875473, -0.364293664693...
Everything is in the title :) Is there any templates in ObjC ? I need equivalent of c# : ``` public class MyClass<T> : Message ``` in ObjC . Any helps will be strongly thanks :( There is no such ObjC feature. While ObjC++ does exist, I strongly discourage its broad use. It has many problems from poor tool and deb...
[ 0.10754194110631943, -0.04631449282169342, 0.1287735253572464, 0.2938095033168793, -0.052943237125873566, -0.4856092929840088, 0.20999787747859955, 0.3077380061149597, -0.30268895626068115, -0.5821517109870911, -0.27329903841018677, 0.5308697819709778, -0.47364285588264465, 0.0284539349377...
problem you're trying to solve? There is likely a better ObjC solution.
[ 0.1807016283273697, 0.24910476803779602, 0.25601935386657715, 0.29750993847846985, 0.3085346817970276, 0.05776412785053253, 0.15857894718647003, 0.014085069298744202, -0.7216854095458984, -0.3948432207107544, -0.00919217150658369, 0.51954585313797, -0.3084888756275177, 0.06006448715925217,...
I am wondering **how can you paginate the results obtained from an entity association mapping in Doctrine 2?** For example ``` class Customer { /** * @OneToMany(targetEntity="Order") */ private $orders; } ``` can be used as such: ``` $customer->getOrders(); ``` which will return a collection of `Order` ...
[ 0.3390076160430908, 0.20299363136291504, 0.10228466242551804, 0.13308513164520264, -0.13938049972057343, 0.057629894465208054, 0.14141741394996643, -0.5017400979995728, -0.22710701823234558, -0.419293612241745, 0.03260894492268562, 0.7236288785934448, -0.061771586537361145, 0.1975125670433...
*/ function __construct( //.... ``` If you use the EXTRA\_LAZY fetch mode, Doctrine will not retrieve all objects when hydrating the collection. It will only retrieve the subset needed when you use the slice() method on the collection. ``` class Customer { /** * @OneToMany(targetEntity="Order", fetch="...
[ 0.23563909530639648, -0.10824763774871826, 0.291099488735199, -0.10971008986234665, 0.04696957767009735, 0.28104278445243835, 0.2790828347206116, -0.2946299910545349, -0.2106359899044037, -0.5592461824417114, -0.4625396132469177, 0.9207485318183899, -0.1272381693124771, -0.0181741919368505...
I know how to set the default homepage for Google Chrome and Internet Explorer, but i searched Google and Stackoverflow for possible answers on how to achieve this with Mozilla Firefox but with no chances. I'm wondering if there is a possible way to programmatically set a default Start page for Mozilla Firefox browse...
[ 0.37353989481925964, 0.22522743046283722, 0.5401994585990906, 0.021608596667647362, 0.03623879328370094, -0.19628845155239105, 0.1679498553276062, 0.068578340113163, -0.042580313980579376, -0.9377363920211792, -0.04970962926745415, 0.7671717405319214, -0.21354004740715027, 0.01432162057608...
be found in the directory C:\Users\ [USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\ [Some Subfolder] You will need to add or edit the line that looks like: user\_pref("browser.startup.homepage", "www.google.com");
[ 0.3671506941318512, 0.17919188737869263, 0.5964844822883606, -0.20553268492221832, 0.4396444857120514, -0.12382187694311142, 0.13632434606552124, 0.34347933530807495, -0.03006078489124775, -0.7859378457069397, -0.4910670816898346, 0.4792572557926178, -0.7305881381034851, -0.112586237490177...
I keep getting this error here: ``` SEVERE: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at java.lang.Integer.parseInt(Integer.java:527) at com.myapp.cmt.web.ContentController.s...
[ -0.18960514664649963, 0.11635924130678177, 0.48574063181877136, -0.2626101076602936, -0.12559276819229126, -0.10371851921081543, 0.3738877475261688, -0.2906542122364044, -0.5361750721931458, -0.5114534497261047, -0.29470980167388916, 0.47405049204826355, -0.3938417136669159, 0.124164015054...
name="categories"> <option></option> <c:forEach items="${categories}" var="category"> <option value="${category.id}" <c:if test="${content.hasCategory(category)}"> CHECKED</c:if>>${category.name}</option> </c:forEach> </select> ``` What you will need to do is programmatically edit the prefs...
[ 0.14404359459877014, -0.06315716356039047, 0.6428560018539429, -0.2528662383556366, 0.0011925362050533295, -0.10270699113607407, 0.005832137074321508, -0.3935852348804474, -0.2180486023426056, -0.6498750448226929, -0.44431668519973755, 0.3489624857902527, -0.5504843592643738, -0.0331992395...
A common antipattern in Python is to concatenate a sequence of strings using `+` in a loop. This is bad because the Python interpreter has to create a new string object for each iteration, and it ends up taking quadratic time. (Recent versions of CPython can apparently optimize this in some cases, but other implementat...
[ 0.2718515992164612, -0.01316499151289463, 0.02657066471874714, -0.2152940332889557, -0.30893054604530334, -0.2924908697605133, 0.45516830682754517, 0.03057335503399372, -0.17239472270011902, -0.06176368147134781, -0.03440581634640694, 0.08052461594343185, -0.6483105421066284, 0.22632099688...
I don't understand why this is the case if you're only concatenating two strings. If my understanding is correct, it shouldn't take quadratic time, and I think `a + b` is cleaner and more readable than either `''.join((a, b))` or `'%s%s' % (a, b)`. Is it good practice to use `+` to concatenate two strings? Or is there...
[ 0.1160663440823555, 0.047060661017894745, -0.07778073847293854, -0.34895649552345276, -0.35931918025016785, 0.06511061638593674, 0.27660462260246277, -0.051538433879613876, -0.15185119211673737, -0.616254985332489, -0.05896339565515518, 0.18981130421161652, -0.33507129549980164, -0.0384019...
and thus becomes inefficient. However this has not to do with using a loop. Even `a + b + c + ...` is O(n^2), the reason being that each concatenation produces a new string. CPython2.4 and above try to mitigate that, but it's still advisable to use `join` when concatenating more than 2 strings.
[ -0.10850939154624939, 0.0780692845582962, 0.16665825247764587, -0.2764514982700348, 0.024913545697927475, -0.21754851937294006, 0.2784697711467743, -0.3557335138320923, -0.1921393871307373, -0.26304754614830017, -0.3095741271972656, -0.09516830742359161, -0.5209495425224304, 0.147459015250...
In `XML` struct i have: ``` <font fontsize="10" fontcolor="#000000" fontface="file.ttf"/> ``` How do i get fontsize, color and face using `NSXMLParser`? Of course i have the standard implementation ``` -(id)init { self = [super init]; parser = [[NSXMLParser alloc] initWithContentsOfURL:[NSURL fileURLWithPa...
[ -0.18149200081825256, 0.31034520268440247, 0.653712272644043, -0.2152210921049118, -0.18710443377494812, -0.029724590480327606, 0.24259956181049347, -0.6394073963165283, -0.005397612228989601, -0.6063491106033325, -0.3372926712036133, 0.4459371864795685, -0.1447436809539795, -0.15050165355...
value of: %@", elementName, element); } - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { if (element == nil) element = [[NSMutableString alloc] init]; [element appendString:string]; } ``` And it works beautifly for a `<mytag>something</mytag>`. How to get tag attributes? Your...
[ 0.047822512686252594, -0.10057727992534637, 0.6515365839004517, -0.014928669668734074, 0.06535898894071579, -0.13113217055797577, 0.34167295694351196, -0.5779119729995728, 0.05495414510369301, -0.6404964327812195, -0.1453520804643631, 0.7437926530838013, -0.2927853763103485, -0.20350863039...
I need your help to understand how I can send information from a form to a javascript function. I've created a basic function here : <http://jsfiddle.net/nZhR8/5/> The purpose of this function is to hide/display a div. In fact, I'll have a table with a few contacts (between 0 and 20). There will be a selectlist per ...
[ 0.4402623474597931, -0.021126387640833855, 0.6747592091560364, -0.0016282114665955305, -0.1227385401725769, -0.02594347484409809, 0.0880616158246994, -0.21553967893123627, -0.022326398640871048, -0.7714033722877502, 0.15549995005130768, 0.2516805827617645, -0.24069219827651978, -0.03972882...
It will be a kind of advancement. If I'm doing it wrong, please tell me why. I found this note in the standard (17.4.6.9): > [ *Note*: If a program casts an lvalue to an xvalue while passing that lvalue to a library function (e.g. by calling the function with the argument `move(x)`), the program is effectively asking...
[ 0.24956203997135162, 0.00853047613054514, 0.5558040142059326, -0.13914918899536133, 0.12711402773857117, -0.29910412430763245, -0.07102123647928238, -0.03725927323102951, -0.14980468153953552, -0.6071330308914185, -0.09333767741918564, 0.45557841658592224, -0.10389557480812073, 0.212648138...
the argument to the library function as a temporary so I wouldn't rely on its value once you've called `insert`. As far as I can tell, a library implementation would be entitled to move from the parameter even if it subsequently determines that it isn't going to keep the value in the container.
[ -0.22642597556114197, 0.21801136434078217, 0.28124457597732544, -0.060834866017103195, -0.019264524802565575, 0.11085071414709091, -0.24938808381557465, 0.0573604479432106, 0.05277720093727112, -0.4224092364311218, -0.14572344720363617, 0.6409834027290344, 0.04766365513205528, 0.3608445227...
I have a PIC32 embedded microcontroller running the C32 compiler. I'm sending a UDP packet containing a 64-bit double value to a Java program. In my test, I'm trying to send the decimal value 40.5 to Java. I would expect to receive: 0x4044400000000000 since System.out.println(Double.longBitsToDouble(0x404440000000000...
[ 0.1863785982131958, 0.13984359800815582, 0.21721409261226654, -0.31149202585220337, -0.12793946266174316, 0.13671739399433136, 0.09107111394405365, -0.28206104040145874, -0.20361432433128357, -0.4340236783027649, 0.1080886647105217, 0.29131874442100525, -0.4833047389984131, 0.1646217554807...
`long`, as noted above. You are truncating it with the cast, and after endianness conversion, you are getting the shown results. I found this in a [pastebin](http://pastebin.com/g1FFFFpU); it's macro that should work for converting your 64 bit `long long`: ``` #define htonll(x) \ ((((x) & 0xff00000000000000LL) >> 56)...
[ -0.18465274572372437, -0.04341154918074608, 0.7611432671546936, -0.3474017381668091, 0.13998153805732727, 0.09900012612342834, -0.10278867930173874, -0.46151450276374817, -0.0657355934381485, -0.2640334665775299, -0.1817418783903122, 0.5680260062217712, -0.1872059553861618, 0.2535075247287...
Not confident about whether this will be downvoted or closed... I need expert opinion on this. The context is in our application, we have written code like : ``` //countryId is an integer, searchCity() expects two String parameters loadCity(countryName , countryId + ""); ``` Will it make any difference if I change ...
[ -0.012566475197672844, -0.07651820778846741, 0.6380583643913269, -0.12854988873004913, 0.26904502511024475, 0.0742013156414032, 0.08646512031555176, -0.14103759825229645, -0.2797735929489136, -0.42436251044273376, -0.0020566703751683235, 0.5033571124076843, -0.3006595969200134, -0.07562797...
""); ``` Whereas for an `int` primitive, this code is equivelent to : ``` loadCity(countryName, String.valueOf(countryId) + ""); ``` In either case, as ArjunShankar pointed out there is a good chance that the compiler has optimised your code anyway. So if your question is 'do I go back and refactor all my code?', ...
[ 0.3931897282600403, -0.008503706194460392, 0.06756456941366196, -0.01720762625336647, 0.04818455129861832, 0.011319717392325401, 0.0867876410484314, -0.3723691701889038, -0.3093963861465454, -0.15137706696987152, -0.23564763367176056, 0.42374271154403687, -0.3054768741130829, 0.00660114595...
I would like to know how to script a little image rotator with fade animation, I have some divs and I add two buttons next and prev : ``` <div id="target" class="cible" style="height: 240px;"> <div id="211" class="block" style="display: block;"> </div> <div id="491" class="block" style="display: none;"> <...
[ 0.25677689909935, -0.23313094675540924, 0.654321551322937, -0.016820896416902542, -0.15004673600196838, 0.3067229688167572, 0.08648813515901566, -0.36135345697402954, 0.23411093652248383, -1.006001591682434, 0.12161741405725479, 0.38795244693756104, -0.14522138237953186, -0.061764352023601...
can explain it Thanks I try this, it works but not really. ``` $(".next, .prev").click(function() { var next_visible = $(this).hasClass(".prev") ? $(".block:visible").prev(".block") : $(".block:visible").next(".block"); $(".block").hide(); next_visible.show(); }); ``` After writing many the c...
[ 0.0705062672495842, -0.16218101978302002, 0.27422410249710083, 0.252905935049057, 0.07754383236169815, -0.20950168371200562, 0.2800004184246063, 0.07485232502222061, -0.0843551978468895, -0.7027324438095093, -0.06011557579040527, 0.4515697658061981, -0.4633967876434326, 0.10630745440721512...
detect the state of your application unless you really really have to. ``` //create a universal block jQuery object, and give it an index property (current) var blocks = $('div.blocks'); blocks.current = 0; var next = $('.next'), prev = $('.prev'); //make a universal slide handler function blockControl(i...
[ 0.2111632078886032, -0.2577258050441742, 0.6419683694839478, -0.2019163966178894, 0.32160162925720215, -0.2622567415237427, 0.3615055978298187, -0.16328078508377075, 0.06080049276351929, -0.660400390625, -0.1784757375717163, 0.34097081422805786, -0.5096315741539001, 0.11110953241586685, ...
function(){ //move current up one blocks.current ++; //test if its the last block if( blocks.current >= blocks.length ){ //prevent over reach blocks.current = blocks.length; //handle how the last slide will work, you could loop back the beginning or //whatever. H...
[ 0.017841072753071785, -0.5015765428543091, 0.7464162111282349, -0.14612428843975067, 0.20444470643997192, 0.1323343962430954, 0.2361830323934555, -0.3262762725353241, -0.1591271311044693, -0.4355441927909851, 0.02118736132979393, 0.4373936057090759, -0.21833372116088867, 0.1783659160137176...
next.fadeOut(); prev.fadeIn(); }else{ //insure prev button is visalbe prev.fadeIn(); //do slider blockControl(blocks.current); }
[ -0.27525004744529724, -0.5119914412498474, 0.5754030346870422, -0.21365869045257568, 0.2668190598487854, 0.11046813428401947, 0.17236994206905365, -0.1286643147468567, -0.11640165746212006, -0.5552037954330444, -0.425534725189209, 0.07730643451213837, -0.2761469781398773, 0.238909661769866...
}); prev.on('click', function(){ //move current down one blocks.current --; //test if its the first block if( blocks.current <= 0 ){ //prevent negative numbers blocks.current = 0; //Here we are just going to hide the prev button. But we also could put in control ...
[ 0.16947363317012787, -0.4840174913406372, 0.6353217959403992, -0.14265847206115723, 0.2889689803123474, 0.18718263506889343, 0.3885120451450348, -0.3863929808139801, -0.3075844347476959, -0.26123154163360596, 0.06439139693975449, 0.2448660284280777, -0.3000149428844452, 0.3509560823440552,...
or whatever prev.fadeOut(); next.fadeIn(); }else{ //insure next button is visalbe next.fadeIn(); //do slider blockControl(blocks.current); }
[ -0.19532008469104767, -0.5060063004493713, 0.6584779024124146, -0.25861310958862305, 0.2982819080352783, 0.13212156295776367, -0.02794986590743065, 0.010573192499577999, -0.2507469654083252, -0.5134792923927307, -0.3398975729942322, 0.19357529282569885, -0.32504239678382874, 0.203147798776...
}); ``` The separation of logic here is important. Having a single handler for controlling the visuality of blocks, means it can be triggered by things other than the arrows. Also arrow logic and controller logic can change independent of each other. Also you can always access which element is currently on display fr...
[ 0.33959686756134033, -0.1575241982936859, 0.25644299387931824, 0.2349027544260025, -0.10935480147600174, -0.23890545964241028, -0.011264917440712452, -0.09983929246664047, -0.31052953004837036, -0.48529744148254395, -0.1298951655626297, 0.29862815141677856, -0.4321475923061371, 0.166735842...
rotator. For example, if you want little clickable bullet indicators its easy to hook in: ``` var bullets = $('a.bullet'); bullets.on('click',function(){ var index = $(this).index(); bullets.removeClass('active').eq(index).addClass('active'); blockControl(index); }); ``` ect. This can get even cooler...
[ 0.20131933689117432, -0.08755671977996826, 0.391288161277771, -0.1349274218082428, -0.11376916617155075, 0.1169530600309372, 0.06745386123657227, -0.48779112100601196, -0.2654514014720917, -0.7117811441421509, 0.06791387498378754, 0.5994349718093872, -0.4838888645172119, 0.202307790517807,...
I am creating a service where users submit data that is stored in a MySQL database or text file and emailed to a specific address at a certain time each week. I understand that this is not what PHP is for and I've read of something called Cron that does the job, but I was wondering if there are any other options? Is t...
[ 0.49018800258636475, 0.24111628532409668, 0.4590628147125244, 0.11470852792263031, -0.06355772167444229, -0.1286788135766983, 0.06361516565084457, 0.2634657621383667, -0.2893274426460266, -0.6248248219490051, 0.3355650305747986, 0.49422743916511536, -0.09892071783542633, 0.2747322022914886...
FROM `mail_queue` WHERE `time` < " . time()); while($object = $res->fetch_object()){ mail($object->to, $object->subject, $object->message, "FROM: xpto@domain.com"); } ``` (If you're using a webhosting account you can simply create it on the control panel) ``` * * * * * /bin/php complete_path_to_your_php_script.p...
[ 0.2305167019367218, -0.20087243616580963, 0.27461129426956177, -0.0028283519204705954, 0.018869077786803246, -0.1073545515537262, 0.6625847816467285, -0.15634910762310028, -0.2814805507659912, -0.5092238783836365, -0.11461420357227325, 0.25364187359809875, -0.3909541368484497, 0.1886501014...
I am able to retrieve the pictures from my phone and store them in an array. After that I am displaying them on the screen. But they are all in diffrent shapes and sizes. I want to display them all in the same size and shape. Any idea? ``` photoPaths = new ArrayList<String>(); getAllPhotos(Environment.getExter...
[ 0.4742644727230072, 0.014753459952771664, 0.7120174169540405, -0.17256543040275574, -0.05141951143741608, 0.44592905044555664, 0.1888883113861084, -0.49453112483024597, -0.3306565284729004, -0.8281553387641907, -0.15775525569915771, 0.5497891902923584, -0.43468475341796875, 0.0089417975395...
File imgFile = new File(photoPaths.get(0)); if(imgFile.exists()) { images[0] = decodeFile(imgFile);} ``` ``` Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),R.drawable.tedd); int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); ...
[ 0.25508472323417664, -0.40394988656044006, 1.0111925601959229, -0.2764856815338135, -0.08444572240114212, 0.22222615778446198, 0.256278395652771, -0.759255588054657, -0.41196244955062866, -0.7536433935165405, -0.2164755016565323, 0.7117045521736145, -0.3548228144645691, 0.00597732374444603...
this case = 0.4f float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth, scaleHeight); matrix.postRotate(x); // this will create image with new size Bitmap resizedBitmap = Bitmap.cr...
[ -0.007708261720836163, -0.2796546220779419, 1.021013855934143, -0.04207055643200874, -0.07169134169816971, 0.3765404224395752, -0.07722299546003342, -0.6143019199371338, -0.2235412299633026, -0.8515700697898865, -0.15874682366847992, 0.383895605802536, -0.07148578763008118, 0.2168224304914...
I am creating a wix installer. In some of the wxs file i have defined some properties and i am also creating some session properties inside C# custom action. Now my requirement is to list out all session properties. So for this i have queried **Property table** and got all properties that where defined in .wxs file. ...
[ 0.6393072009086609, 0.024706006050109863, 0.37690362334251404, -0.2963958978652954, -0.07172855734825134, -0.35925766825675964, 0.5325616002082825, -0.4461280405521393, -0.125765860080719, -0.8433696627616882, -0.19785183668136597, 0.7971251606941223, -0.2414211481809616, 0.146726876497268...
{ using (Record r = listBoxView.Fetch()) { if (r == null) {
[ 0.15124866366386414, -0.36482781171798706, 0.2315322458744049, -0.17781177163124084, 0.15425553917884827, 0.021192846819758415, 0.3908242881298065, -0.42864882946014404, -0.2541378438472748, -0.15698012709617615, -0.17389963567256927, 0.6938029527664185, -0.3569941818714142, 0.311386615037...
break; } else { Console.WriteLine(r[1].ToString(), r[2].ToString());
[ -0.36563366651535034, -0.13841158151626587, 0.20160861313343048, -0.4106997549533844, 0.6143918037414551, -0.14345906674861908, 0.5830988883972168, -0.40957316756248474, -0.025305991992354393, -0.18785271048545837, -0.6639517545700073, 0.5656973719596863, -0.25834277272224426, 0.0056660431...
} } } } } ``` But it does not list out any session property that i have created using c# custom action. Can someone help me how to list out properties
[ 0.05852045863866806, 0.22188033163547516, 0.05123184248805046, 0.04462328925728798, 0.00655276607722044, -0.3807768225669861, 0.2347135990858078, -0.13648243248462677, -0.16594038903713226, -0.6505455374717712, 0.07426851242780685, 0.687129020690918, -0.0731210932135582, 0.1349264830350875...
that i created using c# custom action or where these properties get stored? Thanks much When you query the property table the way you do in your sample, you get only those properties defined statically in your WiX authoring, and this is expected. At install-time there's a concept called in-memory property collection -...
[ 0.6931336522102356, 0.20293328166007996, 0.00893418025225401, 0.07019822299480438, 0.16004233062267303, -0.12124210596084595, -0.02330932207405567, -0.0358511321246624, -0.39305785298347473, -0.5418440699577332, 0.015923714265227318, 0.6813800930976868, 0.07456468790769577, 0.5104343295097...
I doubt there's an enumerator defined for properties, but in real life you rarely need to iterate the properties - you rather try to get a certain one.
[ 0.5190837979316711, 0.34252095222473145, -0.23271960020065308, 0.208656445145607, -0.03188713639974594, 0.010856402106583118, 0.13096779584884644, -0.22103694081306458, -0.13966980576515198, -0.2570548355579376, -0.1264132559299469, 0.44788262248039246, 0.1998104751110077, 0.07924641668796...
I have a collection Notebook which has embedded array document called Notes. The sample document looks like as shown below. ``` { "_id" : ObjectId("4f7ee46e08403d063ab0b4f9"), "name" : "MongoDB", "notes" : [ { "title" : "Hello MongoDB", "content" : "Hello MongoDB" ...
[ 0.11231042444705963, 0.33418208360671997, 0.2835727334022522, 0.2263304591178894, -0.01233662385493517, -0.030648622661828995, -0.09026876091957092, -0.19484378397464752, -0.13570791482925415, -0.5611556768417358, 0.12147072702646255, 0.22729124128818512, 0.1252220720052719, 0.268857270479...
"title" : "ReplicaSet MongoDB", "content" : "ReplicaSet MongoDB" } ] } ``` I want to find out only note which has title "Hello MongoDB". I am not getting what should be the query. Can anyone help me. **Outdated answer: See the other answers.** --- I don't believe what you are as...
[ 0.08098491281270981, 0.1372331976890564, 0.18839550018310547, 0.21329770982265472, 0.0024534910917282104, -0.4775328040122986, 0.18921218812465668, 0.1905589997768402, -0.34283214807510376, -0.684091329574585, -0.23575985431671143, 0.6302781105041504, -0.1528467983007431, 0.287682205438613...
answer suggests you change your schema, to better suit how you'd like to work with the data. You can use a either "dot notation" or $elemMatch to get back the correct, document that has the matching "note title" ... ``` > db.collection.find({ "notes.title" : "Hello MongoDB"}, { "notes.title" : 1"}); ``` or ... ```...
[ -0.0472005158662796, 0.0007346634520217776, 0.5056361556053162, 0.09418661147356033, 0.08684094250202179, -0.12810704112052917, 0.1872810423374176, -0.43088626861572266, 0.0030458003748208284, -0.8022854328155518, -0.23682160675525665, 0.48442360758781433, -0.26457199454307556, 0.158674195...
you don't change your schema (as the answer linked to suggests) ... I would consider adding "ids" to each element in the array so you can do things like delete it easily if needed.
[ 0.4593789279460907, -0.20770226418972015, -0.12617146968841553, 0.17763851583003998, 0.20233231782913208, -0.3537677228450775, 0.11500714719295502, 0.018408948555588722, -0.23151832818984985, -0.5529616475105286, -0.14387504756450653, 0.4995054602622986, -0.21149447560310364, -0.1238546445...
I want to use Open Search Server <http://www.open-search-server.com/> for creating a web search engine at production level. Is there any other Good free software for creating a search engine? I want to crawl millions of websites. *(Disclosure: The author of this post is affiliated with the website/product mentioned her...
[ 0.740080714225769, 0.300071120262146, 0.2951365113258362, 0.08069270104169846, -0.2941768169403076, -0.34187939763069153, 0.037349238991737366, 0.7001929879188538, -0.2000088393688202, -0.7386177778244019, 0.09168187528848648, 0.26676300168037415, 0.13376212120056152, 0.42490553855895996, ...
several servers to build a distributed index. Then you use another pool of servers to handle the search request from your users. It is possible to use several instance of OpenSearchServer to do that. Whatever the software you choose, you must carefully choose you hardware, especially the storage part. On large index,...
[ 0.04028669372200966, -0.06430194526910782, 0.4623245298862457, 0.5128539204597473, 0.16516059637069702, -0.4052034616470337, -0.26199451088905334, -0.15048867464065552, -0.5346981883049011, -0.9682270288467407, -0.175887331366539, 0.546889066696167, -0.23469707369804382, 0.2470537573099136...
After closing a database connection in java, can I reopen it? Or do I need to do `DriverManager.getConnection()` again? I'm not 100% sure that you *need* to call `DriverManager.getConnection()` but what's the harm? You already closed the connection, just grab a new one when you need it. The garbage collector worries ab...
[ 0.05000089108943939, 0.28722310066223145, 0.1988828331232071, 0.07374151051044464, -0.11277328431606293, -0.45181629061698914, 0.40691062808036804, 0.16509005427360535, -0.23068444430828094, -0.6943672895431519, -0.04604014754295349, 0.6366209387779236, -0.1813068389892578, 0.2554385960102...
I would like to manage multiple sites running as part of a single wordpress network, but I don't want to personally host each of the individual sites. I don't mind if my database holds all the tables for each site, but I don't want to be the sole host for all the files, etc for each site. Is there any way to do this? y...
[ 0.6118981242179871, 0.09057602286338806, 0.19457034766674042, -0.12628290057182312, -0.24443882703781128, 0.041022248566150665, -0.13774694502353668, -0.12733003497123718, -0.3175647556781769, -0.8341415524482727, -0.11452201753854752, 0.4421651363372803, -0.1732519567012787, -0.2887781560...
sikuli-api by image processing its not a perfect way to do this but you can use it if you want urgent solution. <https://code.google.com/p/sikuli-api/>
[ 0.47886842489242554, -0.2596797049045563, 0.19534800946712494, 0.21381527185440063, -0.30299800634384155, 0.2532205581665039, -0.018201807513833046, -0.17712785303592682, -0.26048773527145386, -0.5694318413734436, -0.07916148751974106, 0.15938633680343628, -0.5192155838012695, -0.018720343...
``` val implies = fn x y = case x of false andalso case y of false => true | fn x y = case x of false andalso case y of true => true | fn x y = case x of true andalso case y of false => false | fn x y = case x of true andalso case y of true => true; ``` I can't get this to compile. I'm relatively...
[ 0.07116067409515381, 0.08933426439762115, 0.6648464202880859, 0.02381342276930809, 0.0844975933432579, -0.1919349730014801, 0.575970470905304, -0.2589475214481354, 0.21501436829566956, -0.40542101860046387, -0.34971028566360474, 0.8222318291664124, 0.10105931013822556, -0.0193169042468071,...
and syntax. What have I done wrong? There are various things wrong: * There is no arguments in `implies` to do pattern matching directly. * `case x of` is for pattern matching with specific values, not like `if/else` expression which accepts boolean expressions. * The syntax for lambda should start with `fn x => ...`....
[ 0.11064573377370834, 0.12029043585062027, 0.28120559453964233, 0.08401469141244888, -0.15575796365737915, 0.025761716067790985, 0.2565768361091614, -0.25723814964294434, -0.17916610836982727, -0.09530354291200638, -0.0478966049849987, 0.8702376484870911, -0.2566364109516144, -0.26226910948...
for readability as: ``` fun implies false false = true | implies false true = true | implies true false = false | implies true true = true ``` or more concise by using propositional logic rule: ``` fun implies x y = (not x) orelse y ```
[ -0.18869847059249878, 0.3584436774253845, 0.10446801781654358, 0.2871522009372711, -0.32466229796409607, -0.005683874245733023, 0.28818583488464355, -0.08050180971622467, -0.060868240892887115, 0.01173190027475357, -0.4350201487541199, 0.8369637727737427, 0.007069945801049471, -0.153978049...
I have been doing Google search for the past two days and couldn't find what I want. I have SMSmobile tool being developed in PHP which allow client to send Bulk SMS, when the my clients press `Send` button the browser will keep loading until the SMS been sent to all of his contacts (it might be 100000 contacts or mor...
[ 0.28313496708869934, 0.16794486343860626, 0.4433459937572479, -0.1226091980934143, -0.23265202343463898, -0.021779794245958328, 0.6684394478797913, 0.08326592296361923, -0.26588699221611023, -0.6547451615333557, 0.20597772300243378, 0.4593764841556549, -0.030263850465416908, -0.10995223373...
the user from doing any action until the `Sending` process is over. Any suggestions please? Try this: ``` function checkRefresh() { if( document.refreshForm.visited.value == "" ) { document.refreshForm.visited.value = "1"; } else { document.write (' $(function2() { // a workaround for a flaw in the demo sys...
[ 0.21285125613212585, -0.24444697797298431, 0.6532542109489441, -0.0741700753569603, 0.2791495621204376, -0.1447407603263855, 0.6202976703643799, -0.4002634882926941, -0.10959978401660919, -0.7228754162788391, -0.424652099609375, 0.88569176197052, -0.257846862077713, 0.07161116600036621, ...
sure you have jQuery! MarkUp: ``` <div class="demo"> <div id="dialog-modal" title="Basic modal dialog"> <div id="progressbar"></div> </div> </div> ``` Then replace your body tag with this: ``` <body onLoad="JavaScript:checkRefresh();"> ``` And add this to your HTML: ``` <form name="refreshForm"> <input type="hi...
[ 0.5573709607124329, -0.12378039956092834, 0.6827046871185303, 0.04733341559767723, 0.20017878711223602, -0.3065734803676605, 0.32632437348365784, -0.31479477882385254, -0.09127639979124069, -0.7088075876235962, -0.13955433666706085, 0.6873658299446106, 0.0768323764204979, -0.56704246997833...
After clicking on input field the datepicker does not popup. ``` $(document).ready(function() { var sds = document.getElementsByClassName("f_sd"); for(var i = 0; i < sds.length; i ++){ sds[i].id = i+":sd"; var id = "#"+i+":sd"; $(id).datepicker();
[ 0.08439130336046219, -0.3170429468154907, 0.7288358807563782, -0.33327049016952515, 0.36740103363990784, 0.033144500106573105, 0.12426851689815521, -0.18843236565589905, -0.05599203705787659, -0.731295645236969, -0.5728790760040283, 0.37009334564208984, -0.09579238295555115, 0.329654335975...
} }); ``` Problem is here ``` sds[i].id = i+":sd"; ``` control id should not contain `:` JSFiddle without `:` in control id <http://jsfiddle.net/QsgNF/1/> JSFiddle with `:` in control id <http://jsfiddle.net/QsgNF/2/> You can see that the first fiddle without `:` is giving desired output where as the second fid...
[ -0.35790759325027466, 0.13098126649856567, 0.40960103273391724, -0.3973918557167053, -0.18447884917259216, -0.10967357456684113, 0.40613386034965515, -0.4532191753387451, -0.2570713460445404, -0.5916697978973389, -0.12356056272983551, 0.4577147364616394, -0.24802671372890472, 0.25062027573...
I start a few parallel tasks, like this: ``` var tasks = Enumerable.Range(1, 500) .Select(i => Task.Factory.StartNew<int>(ProduceSomeMagicIntValue)) .ToArray(); ``` and then join them with ``` Task.WaitAll(tasks); ``` On this last line I get a blue squiggly marker under `tasks`, with a warning message...
[ 0.039429862052202225, -0.19507980346679688, 0.29204005002975464, -0.16515694558620453, 0.06027671694755554, 0.19119448959827423, 0.42407676577568054, 0.10864722728729248, -0.4368963837623596, -0.7117226123809814, -0.008885432966053486, 0.19537018239498138, -0.4272073805332184, 0.1447335630...
than creating your own implementation would be just to convert your `tasks` parameter into the type it wants: ``` Task.WaitAll(tasks.Cast<Task>().ToArray()) ``` That kills the blue squiggles for me, lets me keep my `tasks` variable generic and doesn't force me to create a whole lot of new scary code that's ultimatel...
[ 0.17007394134998322, -0.0612100251019001, -0.03929292783141136, 0.12953008711338043, -0.01569567807018757, -0.2753917872905731, 0.4821928143501282, -0.033998630940914154, -0.3280663788318634, -0.6312557458877563, 0.06883787363767624, 0.52413010597229, -0.4102807343006134, 0.176347136497497...
My coworker is attempting to install STS, groovy/grails onto his PC. He has imported a TFS project which grabbed the source fine. However he is getting lots of build errors that appear to be the result of the Grails Dependencies library being empty. He cleared .ivy2 cache and restarted STS which repopulated the .ivy2 c...
[ 0.3428632915019989, 0.0008411802700720727, 0.29113906621932983, 0.23379001021385193, 0.22809134423732758, 0.019369302317500114, 0.4270431101322174, 0.1561213880777359, -0.009374693036079407, -0.6045525670051575, 0.01618373952805996, 0.6515197157859802, -0.30118322372436523, 0.0773605108261...
"Grails Tools -> Refresh dependencies" from the context menu of your project. Then the dependencies are added.
[ -0.0545375719666481, -0.009652450680732727, 0.4658850133419037, 0.08385949581861496, -0.011060472577810287, 0.009709330275654793, 0.5371142625808716, 0.15081994235515594, 0.018251094967126846, -0.7708437442779541, -0.3456389904022217, 0.82085120677948, 0.018187547102570534, -0.061643775552...