Programmazione

Domande e risposte per programmatori professionisti ed entusiasti


4
Akka Kill vs Stop vs Poison Pill?
Domanda per principianti di Akka - Sto leggendo Akka Essentials, qualcuno potrebbe spiegare la differenza tra Akka Stop / Poison Pill vs Kill? Il libro offre solo una piccola spiegazione "Kill is synchronous vs. Poison pill is asynchronous". Ma in che modo? Il thread dell'attore chiamante si blocca durante questo …
213 scala  akka 


22
Perché le espressioni regolari sono così controverse? [chiuso]
Chiuso . Questa domanda è basata sull'opinione . Al momento non accetta risposte. Vuoi migliorare questa domanda? Aggiorna la domanda in modo che possa essere risolta con fatti e citazioni modificando questo post . Chiuso 6 anni fa . Migliora questa domanda Quando si esplorano le espressioni regolari (altrimenti note …
212 regex 

10
const statica vs #define
È meglio usare static constVars rispetto al #definepreprocessore? O forse dipende dal contesto? Quali sono i vantaggi / gli svantaggi per ciascun metodo?
212 c++  c  const 


9
Errore di restituzione POST HTTP: 417 "Aspettativa fallita."
Quando provo a POST su un URL, si verifica la seguente eccezione: Il server remoto ha restituito un errore: (417) Aspettativa non riuscita. Ecco un codice di esempio: var client = new WebClient(); var postData = new NameValueCollection(); postData.Add("postParamName", "postParamValue"); byte[] responseBytes = client.UploadValues("http://...", postData); string response = Encoding.UTF8.GetString(responseBytes); // …
212 c#  .net  http  http-post  webclient 


26
Rilevare quale UIButton è stato premuto in un UITableView
Ho un UITableViewcon 5 UITableViewCells. Ogni cella contiene un UIButtonche è impostato come segue: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *identifier = @"identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableView alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; [cell autorelelase]; UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(10, 5, …


7
Glyphicons più grandi
Come faccio a creare Glyphicons più grandi in Twitter Bootstrap 3.0 (non 2.3.x). Questo codice renderà grandi i miei glifi: <button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-th-list"> </span> </button> Come posso ottenere questa dimensione senza usare la classe btn-lg usando solo un intervallo? Questo dà un piccolo glifo: <span …

22
Std :: vector è molto più lento degli array semplici?
Ho sempre pensato che fosse la saggezza generale che std::vectorè "implementata come una matrice", bla bla bla. Oggi sono andato giù e l'ho provato, e sembra non essere così: Ecco alcuni risultati del test: UseArray completed in 2.619 seconds UseVector completed in 9.284 seconds UseVectorPushBack completed in 14.669 seconds The …
212 c++  arrays  performance  stl  vector 

16
Come modellare dt e dd in modo che siano sulla stessa linea?
Utilizzando i CSS, come posso modellare quanto segue: <dl> <dt>Mercury</dt> <dd>Mercury (0.4 AU from the Sun) is the closest planet to the Sun and the smallest planet.</dd> <dt>Venus</dt> <dd>Venus (0.7 AU) is close in size to Earth, (0.815 Earth masses) and like Earth, has a thick silicate mantle around an …
212 html  css 



Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.