Posts

html - What's a better way to have two short divisions of text, one on the left and one on the right? -

Image
In my website, headings often require some explanation text (for example a date) for their description. Current solution is & lt; Div & gt; Correct & lt; H1 & gt; or & lt; H2 & gt; , so that the header still clears the floating device right. This is the only CSS that I have churned yet: h1, h2, h3, h4, h5, h6 {display: block; Width: Auto; } .right {float: right; } and with HTML: & lt; Div class = "right" & gt; On the right & lt; / Div & gt; & Lt; H2 & gt; Talk to the left & lt; / H2 & gt; Whether a header and and gt; Is there a way to format on the right, for which they will not need to be written backwards? And preferably dependent on the right-aligned diwi, or dependent there around an additional element, or wrapped in earlier or later, these two? It seems really strange that only simple implementation is so far behind. The comments of your two additional elements are being wrappe...

c# - modify object on a form other than the one where was created -

I have an object that I make in Form 1 and then I place that object on Form 2. Is this a good way to modify the properties of 1 object frequency (pois_por_punto)? So far I have done this: in Form 1: public list & lt; POI & gt; Pois_por_punto; Pois_por_punto = New list & lt; POI & gt; (); then: private zeros btn_editar_pois_Click (object sender, EventArgs e) {form formular = new form 2 (this, pois_por_punto); formulario.ShowDialog (); } In Form 2: Public Partial Category Form 2: Form {Private List & lt; POI & gt; _pois; Public Editar_POIs (Form 1 formation, list & lt; POI & gt; pois) {_pois = pois; } Then I change the _pois property in my code and then I do this: formprincipal.pois_por_punto = _pois; } My Poi class is such a public square POI {public decimal POI_x {get; Set; } Public decimal POI_y {get; Set; } Public decimal POI_z {get; Set; Answer: In some circumstances, there are such patterns that you can use in th...

java - How to use Semaphores for Signaling? -

Now I check semaphores I went to the following link about this topic: The author of this link has written about using SACFASS for signaling. To show how he works, he wrote a custom semaphore. Custom semaphore code: public class semaphore {private boolean sign = false; Public synchronized zero () {this.signal = true; This.notify (); } Public synchronized zero releases () throws interrupted exceptions {while (! This.signal) wait (); This. Signal = false; }} How it's used in code: public class sendingThread {Semaphore Semifier = null; Public transmittance (semaphore semaphore) {this.semaphore = semaphore; } Run public null () {while (true) {// something to do, then it signals semaphore.take (); }}} Public Class Receiving Thread {Semaphore Semifar = Faucet; Public recepted (semaphore semaphore) {this.semaphore = semaphore; } Public run zero () {while (true) {this.semaphore.release (); // Get the signal, then do something ...}}} main: semaphore semaphore = new s...

ios - Xcode 5 Architecture i386 multiple duplicate symbols -

After text "itemprop =" text "> By copying the path I specified in the source folder for architecture i386 specified in the error xcode in the xcode. There were many such files which apparently were conflicting, even when I removed one, and ran the program, it will change what I do? Apart from this, I cleaned it and stopped everything and restarted my computer. Thanks o files are your source code, which is where the conflicts really are only compiled versions from lie . What many things do you have, whose names are the same, and the linker is pushing it to take an error message, you might name the name that is conflicting (not the file, symbol), this extra padded The symbols can be, but you should identify the name or name of a method you use. Search for that in Xcode, and see where you're defining it more than once. There may be only one definition in a symbol, so if you are using it in many cases, then you need to solve it.

amazon web services - AWS-PHP-SDK / SNS direct addressing returns error -

Hi, I'm using the Larval 4 setup to use the ADS SNS to send push messages to my iOS device, the published command is My device Works well with AWS console from Then I tried with PHP: $ sns = AWS :: get ('sns'); $ Sns- & gt; Publish (array ('message' = & gt; 'Hello from PHP', 'TargetArn' => "arn: aws: sns: us-west-2: 360542326270: End point / APNS_SANDBOX / testtest / 20a75cd1-Da25 -3331-8126-4db497cbdd5e ")); I'm getting ghazle \ service \ exception \ validation exception validation errors: [topic arn] is a required string: the subject on which you publish But docs specifically say that I can either send ARN to a topic or publish directly to a single device using the address Can i It seems that the AWS PPD SDK forces me to use theme ARRAN. What am I doing? I removed clear gazal line from the composer. So the update ran, it was removed 3.6 mileage and installed 3.9. It was then removed from ADS-PHP...

Go: deep copy slices -

I would like to read a piece of strings that represent hexadecimal numbers, and by them the byte slice ( [] string - & Gt; [] [] Byte ). This is my code so far: Funk (self * algo_t) decode_arge (args [] string) ([] [] byte, error) {var data [] [] for byte : = UIT 32 (0); I & lt; Self.num_args; I ++ {data = create ([] [] byte, manually. NUm_argue) TMP, gal .: = hex. Decodestring (args [i]) fmt.printf ("i =% d \ ttmp =% x \ n", i, tmp) data [i] = create ([] byte, lane (tmp)) copy (data) ], TMP) If mistake! = Zero {FMT. FITTF (Oststir, "Error decoding hex string% s:% (" line 69 \ tdata [0] =% x \ tdata [1] =% x \ tdata [2] \ n ", args [i], err.Error Return data, zero} p> This code is calling and passing args = [] string {"010203", "040506", "070809"} gives the following output: I = 0 tmp = 010203 i = 1 tmp = 040506 i = 3 tmp = 07080 9 line 69 data [0] = data [1] = data [2] = 070809 possible : Returns the ...

ios - Correct adding and UIViewController to another -

आज रात एक का सामना करना पड़ा: - (शून्य) लोड दृश्य {वीसी * वीसी = [[वीसी आलोक] इनिटविथ स्टाइल: यूआईटीबलव्यूस्टाइल समूह []; [आत्म जोड़ें चाइल्डव्यूकंट्रोलर: वीसी]; [Vc removeFromParentViewController]; [स्व सेटव्यू: vc.view]; } और एक बम मिला: अनचाहे अपवाद 'UIViewControllerHierarchyInconsistency', कारण: 'एक दृश्य केवल एक में सबसे अधिक एक दृश्य नियंत्रक के साथ संबद्ध किया जा सकता है पहर! प्रश्न: हम वर्तमान में vc और इसकी मौजूदा कार्यक्षमता को वर्तमान ViewController बिना AddSubView जोड़ सकते हैं? मौजूदा दृश्य के एक सबव्यू के रूप में अपनी तालिका दृश्य नियंत्रक का दृश्य जोड़ें आपको removeFromParentViewController पर vc कॉल नहीं करनी चाहिए क्योंकि इससे पहले लाइन को अनिवार्य रूप से नकारना होगा माता-पिता से मेल करने के लिए फ्रेम सेट करना भी एक अच्छा विचार है। - (शून्य) लोड दृश्य {[सुपर लोडव्यू]; // यह एक बुनियादी दृश्य बना देगा VC * vc = [[वीसी आलोक] initWithStyle: UITableViewStyleGrouped]; [आत्म जोड़ें चाइल्डव्यूकंट्रोलर: वीसी]; Vc.view.frame = self.v...