Posts

Showing posts from September, 2010

Android KitKat MediaScannerConnection not finding images saved to private app folder -

The I have created an app which contains processed chosen went image by the user from the gallery, to process the modified image The new kitkat permissions limitations on the specific devices (mainly Samsung) are seriously restricting with a modified file name in the folder of the original image after which a non-system app, eg. Return to external SD card or typical gallery locations. Documentation obtained through private package specific folder getExternalFilesDir (zero) to recommend to write This is fine and image correctly but then the saved MediaScannerConnection.scanFile Even a reboot , as correctly to the central media database updates The revised image does not appear in the gallery after the call fails to scan the full scan of all media devices To Radrshit image should not be triggered. Does not the following code in other words: file Apeediaiar = Mataktivtikis .getExternalFilesDir (empty); File file = new file (app, "new_image.jpeg"); // process ...

jquery changing multiple elements on click -

Scratched my head over it for a while. Actually I have an external diva container and when the click is removed on that division, then I am trying to change it below: div class = "selected" (which works) ul And I'm trying to slide the toggle and the icon I is trying to switch to this class. ToggleClass UL and is not sure icons are not firing that I'm doing wrong here and oddly when I switch the icon from Divi am, then I actually icon and hidden UL But I can toggle the square But for some reason when I move both of my trigger divider forward, it fails. Jeffield: Code below: CSS: ul.more {display: none; } HTML: & lt; Div class = "wtf" & gt; & Lt; Div & gt; & Lt; I class = "icon-right-chevron-right" & gt; & Lt; Span class = "docu-title"> gt; & Gt; Advertisement & nbsp; & Nbsp; & Nbsp; & Gt; & Lt; / I & gt; & Lt; Ul class = "more actu-landing-list" ...

java - TreeMap high-low key Integer sort -

मानचित्र & lt; पूर्णांक, स्ट्रिंग & gt; नक्शा = नया ट्रीमार्क & lt; पूर्णांक, स्ट्रिंग & gt; (); // TreeMap map.put (नई पूर्णांक (8), "आठ") में आइटम जोड़ें; Map.put (नई पूर्णांक (9), "नौ"); Map.put (नई पूर्णांक (1), "वन"); Map.put (नई पूर्णांक (4), "चार"); Map.put (नया पूर्णांक (10), "दस"); Map.put (नई पूर्णांक (5), "पांच"); Map.put (नई पूर्णांक (6), "छह"); Map.put (नई पूर्णांक (2), "दो"); Map.put (नई पूर्णांक (3), "तीन"); Map.put (नई पूर्णांक (7), "सात"); चाबियाँ = map.keySet (); के लिए (Iterator i = keys.iterator (); i.hasNext ();) {पूर्णांक कुंजी = (पूर्णांक) i.next (); स्ट्रिंग मान = (स्ट्रिंग) map.get (कुंजी); System.out.println (कुंजी + "=" + मान); } आउटपुट: 1 = एक 2 = दो 3 = तीन 8 = आठ 9 = नौ 10 = दस मैं ट्री-मैप के इस पूर्णांक प्रकार उल्टा करने के लिए चाहते हैं, तो उच्चतम पूर्णांक मोर्चे पर सबसे कम है और अंत हो सकता है और होगा, मै...

handlebars.js - Simple way to escape curly braces? -

Is there an easy way to create string "{value}" with handler? Perhaps something similar: handbars.com ("\ {{{{{{{{{}}}}" ({var: "value"}) Handlear white code should support the following with the ~ character

angularjs - Why does only the first option appear in select when using ng-options? -

If I have a population with ng-repeat selection and I make two choices below the selection, only the first Appears. Why is it like this? Example: & lt; Select ID = "Select dropdown", ng-model = "selected dash.", Ng-option = "Dashboard ._id as a formal plate for dashboard in the dashboard" & gt; & Lt; Option value = "" & gt; This will be shown & lt; / Option & gt; & Lt; Option value = "" & gt; This & lt; / Option & gt; & Lt; / Select & gt; Any help is appreciated angular only Null supports a blank (only) option. See Rows 229-235 here:: "code" option for "var" (var i = 0, children = element.children () , Ii = children.length; i & lt; ii; i ++) {if (children [i] .value === '') {empty option = zero option = kids.ac (i); break; }} As soon as a basic element is found with an empty value attribute, it sets the set as an empty option and stop...

flash - ROCK-PAPER-SCISSORS ActionScript 3.0 -

I am making a rock paper scissor game. This is what I have so far. I am having problems with the function. Make sure disable I'm trying to get results to return the result of the computer to rock, paper or scissors I random number (), 1, 2 or 3 not. I really appreciate your help. This is my code: btnPlay.addEventListener (MouseEvent.CLICK, playGame); BtnNewGame.addEventListener (MouseEvent.CLICK, newGame); Var Relationship: int = 0; Var wins: int = 0; Var loss: int = 0; Function Play Game (E: Mouse Event): Zero {var userThrow: int; Var ComputerTro: Int. Var Results: string; UserThrow = int (radRock.group.selectedData); ComputerThrow = Random Number (3,1); Result = Determine Disabled (Userre, ComputerTro); LblOutcome.text = Results; LblScore.text = "wins:" + live .stustring () + "loss:" + loss .string (+) "relationship:" + relationship String (); } Function newGame (e: MouseEvent): Zero {//} Function Random WholeNumber (highNumber: int, lowNumber...

matlab - Subscripted assignment dimensions mismatch error 4 -

I want to add to full size specific blocks (sub image) (or some other function 'fun') I have been using my own myblockproc function (code below). Here I used a small matrix of dim 5,5,4 for the purpose of testing, in fact I have four big sizes The function on the images (not extra) is to be, in my dimensions of my real image Yes, N is 4. I get this error: Subtitle assignment dimension mismatch Myblockproc error (line 30) blk (: ,, ,, k) = tmp (tc: tc + A-1, tr: tr + b-1); Error in Testimo Block (line 19) CR = myblockproc (I, 3,3); Here my code is on the dim test matrix of 5,54. I block size is 2x2 (I :: 4); End function [J] = myblockproc (I, R, C) [M, N, P] = Size (I); Ro = plastering (m / r); CL = Plastering (N / C); Rr = Modern (M, r); Rc = Modern (n, c); Blk = zero (r, c, p); For I = 1: ro a = r; If I == ro A = RR; End tc = ((i-1) * r) +1; For J = 1: CL B = C; If Jammu == CL B = RC; End tr = ((j-1) * c) +1; K = 1: p tmp = I (:,,, k) blk (:,:, k) = tmp (tc: tc ...

python - How to keep new line character \n in list element? -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं वर्तमान में परियोजना ऑलर हल कर रहा हूँ 59. मैं एएससीसीई अनुक्रम दिया और 3 अक्षर परिवर्तित एएससीआईआई कुंजी के साथ इसे एक्सरे ले लिया। जब मैं इसे लिखता हूँ और मौके के द्वारा पंक्ति में 2 तत्व और n तब मेरा परिणाम ऐसा हो जाता है: \\ n \ n के बजाय जहां तक ​​मुझे लगता है कि यह नई लाइन को अनदेखा करने के लिए अतिरिक्त बैकस्लैश डालता है, लेकिन मुझे मेरी सूची की बिल्कुल वही आवश्यकता है क्योंकि यह स्पष्ट कारण है। मैं अपनी सूची में \ n कैसे प्राप्त कर सकता हूं नई लाइन बनने के बिना? संपादित करें: अब मैंने दो बार जांच की, हर बार एक्सरे परिणाम \ हो जाता है, यह \\ में स्वतः परिवर्तन। '\\ n ' आप देख रहे हैं वास्तव में एक ' \ n ' है। '\\' स्ट्रिंग्स में एक बैकस्लैश बच निकलने का तरीका है, और जोरान बताते हैं, एक एकल वर्ण है। अजगर स्ट्रिंग में एस्केप अनुक्रमों के बारे में अधिक जानकारी के लिए, देखें & gt; & gt; & gt; S = '\\ n' & gt; & gt; & gt; प्रिंट एस \ n ...

return false/web development javascript/jquery -

इस सवाल का पहले से ही एक उत्तर है: 13 उत्तर 11 उत्तर मेरे पास इस तरह के कुछ कोड उदाहरण हैं --------------- ------- पहले उदाहरण ----------------- var सही कार्य = समारोह () {if (options.currentPage & lt; Options.numberOfPages) {options.currentPage + = 1; ajaxConnection (); } विवरण झूठा है; }; $ ('# न्यूज़ कॉन्टैनेयर # राइटस्लिडर')। क्लिक करें (दाएं फंक्शन); । $ ( '# RightSliderHigh') पर क्लिक करें (rightFunction); ---------------------- दूसरा उदाहरण --------------- ---- $ ( '# rightSliderPagination') पर क्लिक करें (function () {अगर (parseInt (_pagina_last_link.html ()) & gt;। = options.numberOfPages) {return false;} _first_page_num = parseInt (_pagina_first_link.html ()); paginationGenerator (_first_page_num + options.centerNumber - 1); $ ( '# स्लाइडर-भीतरी') स्लाइडर ( "विकल्प", "मूल्य", _first_page_num + options.centerNumber - 1)। ; विवरण झूठा है; }); ------------------------ तीसरे उदाहरण -------...

.net - Creating a thread using an Anonymous method - how to solve issue with Closure? -

Suppose you have the following: as integer for i = 0 From 10th to 10th in the form of a new thread (sub () (all () console as the integer = 0 to 10 dim t. ("hello:" & amp; amp;; & amp; amp;; & amp; Sub) T. Start (Next) I know that this is a closing problem, but what is the correct way to write an anonymous method for this matter ... I call it 1 for "1" I want to print all the numbers 10 and 1 to 10. For "J" You just need to get a local copy of i And j inside > loop: as integer = 0 to 10 for integer as j = 0 to 10 Dim iCopy = I dim slowed as jCopy = Jammu Tim New Thread (sub () (console). ("Hello:" and Icopy and JCP) end sub) T. Next >> Next you will find a new iCopy and jCopy variable on each invoice of the loop. This advice only deals with the following results from the warning you receive from your original code: Warning BC42324: Using the recurrence variable in lambda expression can be an...

Fiddler is not showing HTTPS traffic -

I have enabled "decrypt HTTPS traffic" and "ignore server certificate errors" in Fideller but showed traffic to a website Is not going. The error is that Fildler is returning: [Fideller] 'Connection to' ... 'failed. Failed to communicate HTTPS connection with System.Security.SecurityException server.fiddler.network.https & gt; HTTPS handshake ... unsuccessful System.IO.IOException Transport Stream received an unexpected EOF or 0 byte. I remember that I can ignore this error in Fiddler script, but I really do not remember. Do anyone know what's going on? Thank you! =) What is the URL of the site? It is perhaps either of these two issues: or to configure federal to configure SSL only when talking to the host in the old solution question in question The latest approach is to use Fiddler4 with either the latest .NET4.5.2 framework, or if you are using Fiddler 2.5.1, then refer to the "SNi Hack" section in your OnT...

ios - Defining a Macro for a property that works with different objects? -

Is it possible to define the macro for the property setting like background collector for multiple objects? For example: #define RedColor [UIColor redColor] #define BackgroundColor (color) [[Self class] setBackgroundColor: Color (color)] Because I can use it in such cases: [myLabel BackgroundColor (RedColor)]; [MyButton BackgroundColor (RedColor)]; Although you do not recommend doing this, the following code works for me Is: #define BackgroundColor (color, some_view) [some_view setback color: color]

javascript - AJAX History Trouble -

तो मेरे पास यह गतिशील रूप से PHP जनरेटेड कोड है: & lt; script & gt; Parent.document.title = 'सदस्य | UrbanRanks '; ("# Cwrocket_button") पर क्लिक करें (फ़ंक्शन () {$ ("# मॉड्यूल")। लोड करें ("module.php? मॉड्यूल = प्रोफाइल और amp; user_url = cwrocket"); window.history.pushState (रिक्त, शून्य, /cwrocket.html '); parent.document.title =' Cwrocket | UrbanRanks '; $ (' html, body ')। चेतन ({scrollTop: 0},' धीमी '); वापस लौटा;}); & Lt; / स्क्रिप्ट & gt; & Lt; a id = "cwrocket_button" href = "cwrocket.html" & gt; सीडॉकॉक & lt; / a & gt; सभी एजेक्स / jQuery फ़ंक्शंस अपेक्षित, शीर्षक और यूआरएल के रूप में काम करते हैं, जब लिंक पर क्लिक करते हुए और एसईओ प्रयोजनों के लिए शामिल किए गए href की अनदेखी करते हुए बदल दिया जाता है। समस्या यह है , जब मैं वापस हिट या अग्रेषित करता हूं तो केवल पता बार पर यूआरएल बदलता है, लेकिन मॉड्यूल डिवेल में अजाक्स सामग्री नहीं। मुझे यह देख...

css - jquery animation bottom right to left top -

I am trying to create a responsive webpage, where you click on a circle in the middle of the screen, then div On the left side of the webpage from the circle, what you need is a negative light ... I searched online for some time, but I did not get any response, though I think this is a common problem ... Although this code does not work, it is almost It should do: $ ( ". Corner"). Click (function () {$ (this) .mate ({width: '-400px', height: '-400px'}, 1000);}); I'm not sure exactly what's working with your solution But I have come up with a bit of an option $ ("corner"). Click (function () ($ (this). Css ({status: 'relative'}); $ (this). Value ({right: '400px', bottom: '400px', width: '400px', height : '400px'}, 1000);}); Also I'm using a square div instead of a circle and I have given it a margin to leave it to move upward, but I hope That you will get this idea. L...

c# - Empty space appears at the top of ListView when removing Groups -

Image
My music player uses ListView in description mode to show tracks, and list albums with group list With track. I have created an event that removes all the albums in an album, when the album's list view group is middle-click, when the track is deleted, the ListView is not scrolled properly. If ListView is scrolled, the album will be deleted, but between the header and the first group, large non-clickable spaces appear at the top of the ListView. The first image, 3 albums in the ListView (scrolled) The second image, the last album removed, everything is fine! OK , Then scroll down at the time of removing a group of inventory items The third image, 3 albums in the list W. (scroll down) Fourth image, last album deleted, spaces appeared on top, and last track If ListView is not visible at all! not me It seems to have something to do with my code, but there is a bug in the ListView? Did anyone see the same behavior? Is there any way to stop it from happe...

html - Background image jumps when address bar hides iOS/Android/Mobile Chrome -

I am currently developing a responsive site using Twitter Bootstrap. The site has a full screen background image in mobile / tablet / desktop. These images spin across and fade, using two divs. This is perfect, except for an issue. Using iOS Safari, Android Browser or Chrome on Android jumps slightly in the background, when a user scrolls down the page and gives reasons to hide the address bar. The site is here: Go here to scroll mobile device down and down and you should see image resizing / location. I am using the background for DV, as follows: # bg1 {background-color: # 3d3d3f; Background repeat: do not repeat; Background attachment: fixed; Background-condition: center center; -WebKit-Background-Size: Cover; -MOZ-BACKGROUND-SHAPE: COVER; -o-background-shape: cover; Background size: cover; Status: fixed; Width: 100%; Height: 100%; Left: 0px; Top: 0px; Z-index: -1; display none; } All suggestions are welcome - for some time it is doing my head! This issue is ca...

Debugging a merge sort implementation in c -

I'm debugging a single implementation of merge sort for some reason, r (merge In) is the value of nan . However, n2 (defined as (int - (r - q) ) is well defined. Why is r == Nain #include & lt; Stdio.h & gt; # Include & lt; Limits.h & gt; # Include & lt; Math.h> Zero merge (int * a, float p, float q, float r) {float n = r - p + 1; / * Number of elements in array A * / int n1 = (int) (q - p + 1); Int N2 = (int) (r - Q); Printf ("n2 =% d \ n", n2); Int i, j; Float; Int * L, * R; For (i = 1; i & lt; = n1; i ++) {l [i] = a (for [(int (p + i - 1)];} (j = 1; j and lt ; N2; J ++) {R [j] = a [(int + q)]} l [n 1 + 1] = INT_MAX; [n2 + 1] = INT_MAX; I = 1; J = 1; Printf ("p =% f \ n", p); Printf ("r =% f \ n", r); for (k = p; k int * l, * r; (I = 1; i & lt; = n1; i ++) {l [i] = a ([(int) (p + i - 1)];} L and R are used unused Similar to the array : int x, c, for array; ... (c = 0; c & lt; n; c ...

Some shortcuts don't work on emacs beginning with C-c -

In Haskell mode, the shortcut ccc = = is defined. Trying this shortcut, I realized that emacs do not recognize the shortcut cc c - = . In fact, when I try the shortcut on emacs, writing buffer cc = is not defined, though I pressed cc = = my There is a problem similar to some other symbols. ' Or '§' but the shortcut like cc cl or cccc work. I try to remove my .emacs , but I have the same trouble. There is only one problem like my friend We are both ArchLinux (64 bit) and we use emacs in the console keyboard is an instability. The problem comes from emacs? Arch Linux? Your terminal can not send Emacs C - = so that you ' Use the key sequence To run GUI Emacs Use mx name-of-command rt (whatever command You are not able to use the key sequence). Use ch m to see all b > current binding, to learn What are the names of those commands? Create new custom keybinding for the commands given in the question (i.e. bi...

xml - How to add Blogger tags inside meta tags in HTML -

Well, I have a Blogger Template tag which is called & lt; Data: post.title / & gt; which posts directly to the server via post and I want to include it as a meta description for which I tried to do something like this But it fails due to XML and XHTML platforms. I thought about using PHP for that but the platform (Blogger blogspot) does not support PHP and clearly the use of the script is not big, no ideas crawlers will not crawl them. Now I need a solution to dynamically add to the template using the data tag and it should also be crawlable. Note: Adding a meta tag manually to each post is not large, but will not be noticeable how long it will be within the HTML template, besides it is not productive for 1000 positions, Apart from everything there is a data tag and all the way I get involved inside the meta tag. Many thanks in advance Try & lt; Meta name = 'description' content = 'data: post.title' / & gt;

apache - How do I allow php files to be loaded with different extension? -

मेरे पास कुछ PHP फ़ाइलें हैं जैसे index.php , contact.php , आदि। मैं एक्सटेंशन .blah के साथ फाइलों को नाम देना चाहता हूं (यानी, index.blah , contact.blah , आदि।) क्या कोई ऐसी चीज़ है जिसे मैं ठीक से लोड करने के लिए .htaccess में जोड़ सकता हूं? अपने httpd.conf को देखने के लिए देखें कि यह कैसे किया जाता है .php फ़ाइलें, और बस .blah के लिए एक ही चीज़ करें, या में आंतरिक रीडायरेक्ट में .blah में समाप्त होने वाले यूआरएल बदलने के लिए उपयोग करें > .php एक .htaccess फ़ाइल के माध्यम से किसी भी तरह, अपाचे के दस्तावेज़ीकरण में सभी विवरण हो सकते हैं।

Chrome Web Components: Polymer needed? -

I think chrome is complete in terms of the requirement of web components. Does that mean that polymers are no longer strictly necessary? To be clear, platform.js layer (polyphil) basically removes support browsers Available, but polymers.js (the layer of sugar on top of web components) and elements will not be. Schwanging Polymer is of the opinion that how web component ++ technology is used together, and elements are generally useful / reusable components. This post describes the piece of polymers: Today, it is not strictly true that you can use the polymer without platform. JS Polyfil We are now working on making this possible that a browser native Web component support is supported. We are not yet, for example you need to include platform.js in Chrome 36.

javascript - Why is the split method still returning a string -

I understand that the javascript's partition () method should take a string and pass it on to a parameter based on the parameters In the method should be divided into the array. I have run the following in the console: var sen = 'I like javascript'; Sen.split (''); Console.log (typeof (sen)); Then split ('') should split the string based on white space and return an array with 3 strings. Although the console gives the typeface as "string" compared to the "object" Does anyone know why? Because split sen is not changed sen Return value of 'split' (''); There will be an array. Try: var sen = 'I like javascript'; Var arr = sen.split (''); Console.log (typeof (arrivals));

c# - .NET Conditionally use a .NET library if installed -

My question is quite simple: I want to add a new section to my project which is a SMO .NET Library (SQL Server Management Object) Will use. I believe that these are set up only if the SQL Management Studio is installed on the computer. Is the code to write for execution only for me if libraries were installed on a computer that runs my program? This means that if it is not installed, they can use all other features of the program. Simply wrap the entry function call which is an attempt-cache block for FileNotFoundException They use those assemblies. When you run the code, it will try to load the DLL, and if it is not there, it will throw a FileNotFound, which you can hold and deactivate the UI.

php - Cookie Not Available Sitewide -

After I have two problems with the settings and retrieve the cookie. The cookie is loaded but can not be called until the page is refreshed. This means that cookie appears in the developer tool but when trying to use its value on the page it appears to be used on the page after refreshing the value. The cookie is not available in the entire domain and subdirectory. For example, if the user enters, then the cookie is destroyed on the go Here is my code:. $ ad_source = $ _GET ['source']; $ Date_of_expiry = time () + (86400 * 7); Setcookie ('ad_source', $ ad_source, $ date_of_expiry, '/'); If ($ _COOKIE ['ad_source'] == 'adwords_campaign_01') {Echo '... do something'; } Otherwise ($ _COOKIE ['ad_source'] == 'adwords_campaign_02') {Echo '... do something else'; } I am trying to show different information on the entire site by determining which AdWords campaign the user clicked on. I prefer to instal...

MySQL - Transform simple table -

Image
It sounds easy, but I think there may be several steps to get this. Is there any easy way to do this? You are looking for aggregation tasks, in particular, group_concat () . The key is that you want to do two aggregations: select subgroup combo, number as number (*), sum (expense) as the total amount, amount in the form of total transaction (Transaction) as customer (group of subgroups) subgroupcombo, amount as expense (expenditure), amount (transactions) by customer as input i group) group group by subgroupcombo ;

maven - @ResolutionScope example -

I'm trying to use @ResolutionScope maven annotation (documented). Unfortunately I can not understand how to put it on top of my class. @Mojo (name = "json-schema-generator-main") @ResolutionScope ???? Public class JsonSchema generator expanded AbstractMojo What do I need to do ???? Area? I suggest you find out how to use a resolution scope: @mozo (name = " ", that requires dependency solution = solution dialog. & Lt; scope & gt; ;), Instead of your own comment

Facebook notification as link to website content -

I am creating a job listing website. Currently, while registering members, they asked to like our app in Facebook. I want to offer a new job on my website and inform my registered user in Facebook through the information. This information should be a link to the job offer on my website. Is this possible? If so, what resources should I learn? Thank you. From Docs (): Currently, only Facebook You can use the app app notifications on com. Meaning, app notifications are not available (or should not be used) on external websites. That being said, the notice goes to the canvas and you can add a relative path to the href parameter. Just do not know it: Creating canvas app is not allowed for redirecting to external websites If you develop your app as a canvas app, then there should be no problem.

OAuth 2.0 Scope for Google Apps users' names with google-api-nodejs-client -

I use Google's 'google-api-nodejs-client' package () to manage OAuth 2.0 authentication I am trying to / P> I have modified the entire profile object in example in console.log in example / oauth2.js . How can I use the "name given" and "family name" to remove users correctly if they are authenticating using a Google Apps account? Using the following scope: Regions: ['https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/ Plus .profile.emails.read '] Once the authentication occurs, the following response gives: {type:' plus # person ', etag : '' Long '', '123456', displayName: '', name: {familyName: '', GivenName: ''}, image: {url: 'https://lh3.googleusercontent.com/ etc etc', Default is: wrong}, isPlusUser: wrong, language: 'en_GB', circledByCount: 0, verified: wrong, domain: 'example.example'} I have the API A...

css - Proper HTML link formatting - can two inline block spans be inside of one anchor tag? -

इस सवाल का पहले से ही एक उत्तर है: 13 उत्तर मैं एक वेबसाइट बना रहा हूँ जो कि पृष्ठभूमि-छवि: (इतनी मूल रूप से एक तस्वीर) के साथ स्पेन्स का उपयोग करता है, जिसमें उस अवधि के साथ नेस्टेड किया गया है जो तस्वीर पर पाठ प्रदर्शित करेगा। टेक्स्ट और पिक्चर स्पेन्स दोनों हैं लिंक जो एक ही स्थान पर जाएंगे मैं चाहता हूं कि मेरे उपयोगकर्ता पृष्ठ से दूर नेविगेट करने के लिए पाठ या तस्वीर पर कहीं भी क्लिक कर सकें। दो टैग का उपयोग करने के बजाय जो कोड की एक ही पंक्ति में एक ही चीज़ से लिंक होगा I देखा कि मैं एक ही टैग के अंदर दो चित्र, पाठ और पाठ दोनों रख सकता हूं और क्रोम इसे अनुमति देता है .. लेकिन मुझे नहीं पता कि अन्य ब्राउज़रों में इस तरह की चीज़ों का समर्थन कैसे होता है। मैं क्या कर रहा हूं इसका एक उदाहरण: & lt; a href = "https://theartofmikeyjoyce.com/" & gt; & Lt; span class = "सेल E4" & gt; & Lt; span class = "text" & gt; मिइके & lt; br / & gt; & Lt; p & gt; CLUB II में & lt; / p & gt; डिजिटल क...

javascript - Calling a function by name that is not part of the global scope -

मान लें कि मेरे पास ऐसा कुछ है: var MyApp = MyApp || {}; MyApp.feature = (फ़ंक्शन ($) {var somelocalVariable, अन्य init = function () {}, somePrivateFunction = function () {var functionName = 'otherFunction'; // मैं नाम से अन्य फ़ंक्शन कैसे कॉल कर सकता हूँ (ऊपर चर का उपयोग करके)} , अन्य फंक्शन = फ़ंक्शन () {}; वापसी {init: init}}) (jQuery); इस उदाहरण में अगर मैं खिड़की [अन्य फ़ंक्शन] करता हूँ कुछ भी नहीं होगा क्योंकि यह वैश्विक फ़ंक्शन नहीं है। मैं इसे अधिक निजी क्षेत्र के एक भाग के रूप में कैसे निष्पादित कर सकता हूं? "विंडो" को "यह" के साथ बदलें " यह [functionName] ();

c# - Check if TextBlock has Multiple Lines -

I have a TextBlock , which I want to be as big as possible without several lines. I need to see if it flows on the next line so that I can reduce the size of the text. I can not set the maximum line for 1, because after this it will cut my text, how can I see that many rows are being used in my TextBlock ? In a way I was thinking, but could not understand, something like this is: if (TextBlock.Text.Width> TextBlock.Width) or If (TextBlock.Height> TextBlock but this does not seem like what I have seen. I agree with a little comment, but if you want to do this, you will see a view box You can use controls and insert the text block inside it.

sql - MySQL SUM does not work with GROUP BY -

Image
मेरे पास ये टेबल हैं जब मैं इस क्वेरी को निष्पादित करता हूं SELECT products.name, versions.version, purchases उत्पादों, संस्करणों, खरीदार से WHERE products.id = संस्करण। उत्पादक आईडी और उत्पादों। आईडी = 1 ग्रुप द्वारा उत्पादों। नाम, संस्करण। वर्जन; 'पू्र्चज़ डेट`, एसएम (खरीद। लाइसेंस नंबर नहीं) मुझे यह परिणाम मिलता है: जब टेबल की कुल संख्या में लाइसेंस की संख्या होती है, तो मुझे 54 की बजाय केवल 20 (उत्पाद आईडी = 1, वह पंक्तियां 8, 10, 11) की उम्मीद होती है। आपका जहां खंड में खरीद का उल्लेख नहीं है, इसलिए यह प्रत्येक पंक्ति के लिए सभी खरीद के लिए जमा करता है आप आधुनिक जॉइन ... चालू सिंटैक्स का उपयोग करने में शामिल होने से बेहतर होगा। चूंकि आपने टेबिल की परिभाषा नहीं दी है इसलिए निर्दिष्ट करना कठिन है कि आपको क्या करना चाहिए। आपको सिंटैक्स दिखाने के लिए निम्न अनुमान है। यह निश्चित रूप से काम नहीं करेगा; आपको अपनी स्थिति के लिए इसे ज़रूरी चाहिए। चुनें प्र.नाम, v.version, pu.purchase date`, SUM (पु.उ. लाइसेंस का नंबर) पीआर.आईडी = वी। '...

vaadin7 - How to get clicked component of Layout in Vaadin? -

I have one and I was clicked by the user which image component that has 5 or components I I would like to know ? Here is my code myVerticalLayout.addLayoutClickListener (new Leautkliklist () {public void in Leautklik (Last Leautklikivent event) {System.out.println (event.getSource (). GetClass (). GetSimpleName ());}}); But I always Instead of clicking on the user rather than the image component only vertical layout received. I do not know how to do this? Can anyone tell me some tips? Thank you. Now get me an answer. I event.getClickedComponent () uses to get it, but if the user had clicked on the Layout spaces, this method tap will return.

arraylist - Java: this keyword preceded by class name -

मुझे ArrayList.java में jdk 8 से एक स्निपेट मिला है: @SuppressWarnings (" अनियंत्रित ") सार्वजनिक ई अगले () {checkForComodification (); Int i = कर्सर; यदि (i & gt; = आकार) नए नोएसचएलेमेंट अपवाद () फेंकें; वस्तु [] तत्व Data = ArrayList.this.elementData; अगर (i & gt; = elementData.length) नए समवर्तीकरण को सुधारने की अभिव्यक्ति (); कर्सर = i + 1; वापसी (ई) तत्व डेटा [अंतिम रीसेट = i]; लाइन: वस्तु [] elementData = ArrayList.this.elementData; मुझे अजीब लग रहा है। मुझे लगता है कि ArrayList.This के बराबर है यह यहां। क्या मैं सही हू? यदि कोई अंतर है, तो ArrayList.This पर यह ? एक इनर क्लास का एक बाहरी वर्ग का संदर्भ है। बाहरी कक्षा इस का उपयोग करने के लिए आप इससे पहले बाहरी कक्षा की कक्षा डालते हैं। नोट: इस मामले में यह एक इटरेटर है और इसे ' टी में elementData नामक फ़ील्ड है

why get string from redis, will miss blank space -

For example: I get string from command, is an empty space \ x00 127.0.0.1 : 6379 & gt; Get "87102213_87102208" "173275,3915125,10, \ x00" But in the code in the print log, the empty space is erased. do you know? log_error ("answer- gt; str:% s, answer-> len:% d", reply-> gt; str, reply-> len); Answer-> Str: 173275,3915125,10, answer-> lane: 9 / well- X00 is not empty space, it is a null character, which also has string terminator character in C. Most c APIs will use the string as a parameter, but it will be considered that the string closes at the first \ x00 character. Probably this log-in function is included. However, the Redis Binary is safe, and all the characters are meaningful including placid four. When this value has been inserted, perhaps the size was wrong, so the string was also stored in the form of a null end.

python - Asking User For Datetime Before Plotting Selected Points -

I am using Python 2.7.3, how can I tell the user to login with "date time" Can i Before the time when the criteria selected on the graph are framed, "From time to time" when user dated: 21/7/2014 0:00 to date time: 22/7/2014 23:57 Datetime import datetime import matplotlib.pyplot plt import matplotlib.dates as mdates x = [] y = [] t = [] fig = plt.figure () rect = fig.patch rect.set_facecolor ('# 31312e' ) ReadFile = open ('data.txt', 'r') sepFile = readFile .read (). Split ('\ n') readfile.close () idx, for plotpair enumerate (sepFile): If the 'Peer' in the plot: leave #. Or if IDX & gt; 1: T: # To release the first row candy = plotPair.split (',') TIME_STRING = candy [0] time_string1 = datetime.strptime (TIME_STRING, '% M% d /% M /% Y% H') . Attached (time_string1) y.append (boat (candy [1]) AX1 = fig.add_subplot (1, 1, 1, axisbg = 'white') ax1.xaxis.set_major_formatter (mdates.DateFormatte...

java - Uninitialized variable that has been initialized -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब क्या किसी को पता होगा कि मैं क्यों हूँ मेरी विधि सार्वजनिक स्थिर ट्री नोड randomBST (ट्रीएनोड [] नोड एआरआर) {ट्रीएनोड रूट = नोड एआरआर [0]; ट्री नोड पेड़; के लिए (int i = 1; i & lt; nodeArr.length; i ++) {पेड़ = बिल्डबीएसटी (रूट, नोडएआरआर [i]); } वापसी का पेड़; } मेरी बिल्डबीएसटी पद्धति एक ट्रीएनोड ऑब्जेक्ट देता है। मैं इस कोड को tree = null निर्दिष्ट करके ठीक कर सकता हूं। मुझे यह कैसे करना है, लेकिन अगर मैं एक int को प्रारंभ करना चाहता हूं तो मुझे नहीं करना है? क्या ऐसा इसलिए है क्योंकि int एक ज्ञात मात्रा की स्मृति आवंटित करने में सक्षम है, जहां पेड़ ऑब्जेक्ट अज्ञात है स्मृति आवंटित राशि? संकलक के लिए कोई गारंटी नहीं है कि लूप कभी भी दर्ज किया गया है। इस प्रकार वेरिएबल को आरम्भ नहीं किया जा सकता है।

spring - How to handle jpa entity -

would like to reclaim I have a table client and the results I used to like this public Claintprent getClient (Long customer ID, Long parent id) {string select client CP query string = "CP where cp.cid.id =: clientId" and cp.pid.id =: parentId "; query = entityManagerUtil.getQuery (queryString); Query.setParameter ( "clientId", clientId); Query.setParameter ( "parentId", parentId); return (Claintprenent) query .getSingleResult (); It DAO method. In fact the client is the controller class to receive the first control and then DAO class tells people that the client table is empty so return (ClientParent) query.getSingleResult (in this case); will throw me the error. I can press and hold it to go with the service class with the controller class Try the catch block. But I want to know that I have any exceptions With I can do. I mean that I have changed the query or what should I return so that I can never throw exceptions, even if the tabl...

Configure ffmpeg/ffserver in openshift -

I have been successful in streamlining video on setup ffserver and laptop. How can I do this using the opening? / P> I wanted to open ffserver and ffmpeg and install it in stream video. Google does not find anything useful in some links. Since you can install an RPM inside your gear, you will need to compile everything from the source . It seems that a solution was presented in this thread:

mysql - Displaying result of same column but having different values in php -

I have the following php code that queries the database of my database according to the place. The table structure is as follows: s / n | List number | No Property. Location ===== +======================================= 1 | 125 A | 5245 | London 2 | 1254b. 7545 | London 3 | 128a. 5645 | New York 4 | 254b. 1545 | Tokyo 5 | 6545 | 1456 | Tokyo and code: $ location = $ _ POST ['loc']; Foreign currency ($ location $ chk1) {echo " "; $ Sql ​​= "SELECT * from desktop where place = '$ chk1';"; $ Result = mysql_query ($ SQL); If ($ result == zero) {echo '& lt; Script & gt; Warning ("No entry for the place". $ Chk1. 'Anditem' .desktopreturned "); ; Continue;; $ Row = mysql_fetch_array ($ result); if ($ line = = Null) {echo '& lt; script & gt; warning ("no entry for the place. $ Chk1." And the item'. Desktop returned '); ;; Continue; } Mysql_data_seek ($ result, 0);? & Gt; &...

android - Best way to manage bitmap storage in a long listview having big images? -

I have large lines (~ 300) in a row list (~ 720 * 300) in each row. Now if I scroll to the end of the list view, then my hash (which stores bitmap) contains 300 images. For how long I get memory exception, what is the best way to solve this problem? Thank you for helping. Any code would be great! You probably need a library like Picasso helps you download photos, resize them, and cache them if needed. This listview also handles specific problems, such as freeing memory to ensure smooth scrolling.

postgresql - SELECT multiple rows and columns into a record variable -

In a plpgsql function, how can multiple rows and columns be selected in a record variable? For example, I would like many examples in a record variable of a column ( yearinteger and value ) ( SELECT yearvalues ​​ ). * Edit - The following code is just part of a long function; I need the variable yearly to include several rows and columns from a table, from which I made Can be forwarded to function Fn_function () Returns TABLE () AS $ $ DECLARE year c.year% TYPE; Value c.value% TYPE; Year records; Selection in C for years, c.value to loop end loop; - Creating additional variables from Variable Variables of the year; $$ LANGUAGE plpgsql; P> You can use a temporary table: You may also use subqueries ) Local area of ​​a single question can be substituted with. A "single query" can contain many commands (in the data-modified CTE) it will be most efficient: or with the cursor to the cursor Combine (consider the example under FNC - Function )...

PHP Curl (no redirection) - Form Submitting - Can not indentify the request and return two variables back -

I'm trying for a few days, but what I really need is, I can read so many posts on the internet I used to do many experiments but still can not get my result. What do I need: I have server1 and server I need to fill server 1 form from server 2 and submit it to the user without redirecting to server 1 , And after submitting the form I need PHP to be executed from server 1 and sending the form as a result will be sent back to server2. Perhaps more clear with the code below: By the way, the form is in ajax. Server 2: $ url_base = 'the_path_of_the_ url_of_the_form_frontend_file_server_1.php'; $ Url_param = 'name =' $ _USER ['name'] '& Amp; Email = '$ _USER [' email ']' & amp; Phone = '$ _USER [' phone ']' & Amp; Country = '$ _USER [' country ']. '& Amp; Password = '$ _USER [' password ']' & Amp; Verify_code = '' - '' & Amp; Group = ...

c# - Async Method does not return control back to caller -

The main method is completely executed before the control UploadToServer . Should I remove Task.Run () to UploadToServer or explicitly WaitAll ? Public class uploader {Async public work & lt; Int & gt; Upload (int i) {int incremented = 0; Var t = UploadToServer (i); If (T! = Null) {incremented = await t; } Returns increased; } Async Private Tasks & lt; Int & gt; UploadsToSource (intI) {incremented = 0; Wait for the job. (() = & Gt; {//Console.ReadLine (); // actual upload operation extended = i + 1;}); Returns increased; }} Class program {static zero main (string [] args) {uploader appell = new uploader (); Var res = upl.upload (10). result; }} When you wait on Async methods, the control caller is provided back. What you are experiencing is the appropriate async behavior. If you do not want to use the return method when executing the operation, then execute synchronously if you are trying to do I / O is bound to function (like somebody U...

groovy - How to add data to the properties created locally under test case in Soapui Pro? -

Image
I have a TestCase under TestSuite phase project will see, inside I test case Properties Test step and Groove script test steps Properties step, I assets and as default values ​​like Pro_Response Nothing This As such, I used the following Groove script to assign a string value to the property, and then it shows the string in the log. string testString = "TestString" testRunner.testCase.setPropertyValue ( "Pro_Response", testString) def getLocalPropValue = testRunner.testCase.getPropertyValue ( "Pro_Response") log.info (getLocalPropValue) Q: Why not update the string value of the property steps I added under the test case is the same property name (ie Pro_Response ) Is used to specify in the script? Please see the screenshot for your reference: Th anks, Karunagara Pandi a" Attribute "is included in the test step / strong>, but updating your script to update an asset in your script test case . testRunne...

Hibernate query grouping by column -

I am developing an API REST using jerseys and hibernation. My database has this table: CODDOMINIO | Cadigo | Description (CODDOMINIO, CODIGO) is the overall PK. I want to return a Jason with this structure: [[CODDOMINIO: "1, CODIGOS: [[CODIGO:" 12 ", DESCRIPCION:" Example "CODIGOIO:" 2 ", Codigos: [[CODIGO:" 14 ", Description:" Example "}, {CODIGO:" 15 ", {CODIGO:" 13 "}, {CODIGO:" 13 ", Description:" Example "} DESCRIPCION: "Example"}]},] And so on ... is there any way to do it automatically by hibernate annotation? First of all, you have a hushmap, or any type of map Java archive that mapped the keys and values ​​of that archive (m Documentation on the shopping archive) - I think the best option store map & lt; EntityPK, someValue & gt; will map the map composite PK Second, if you want separate output for that archive (like the output you provided) you...

xml - Mule ESB JPA Hibernate java.lang.ClassNotFoundException -

मुझे एक समस्या है .. यह: & lt; jpa: query statement = " कुत्ते के कुत्ते से जहां dog.name = 'Cuzo' "config-ref =" Java_Persistence_API "डॉक्टर: नाम =" जावा अखंडता एपीआई "/ & gt; WORK! यह: & lt; jpa: find entityClass = "domain.og" id-ref = "# [पेलोड:] "कॉन्फिग-रेफरी =" जावावापरिसेंस_एपीआई "डॉक: नाम =" जावा ऐरिसेंस एपीआई "/ & gt; अपवाद स्टैक है: 1. domain.Dog (java.lang.ClassNotFoundException) क्यों? packagesToScan सही ढंग से सेट है & lt; वसंत: बीन वर्ग = "org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id = "entityManagerFactory" & gt; & Lt; वसंत: गुण नाम = "jpaVendorAdapter" ref = "hibernatevendor" / & gt; & Lt; वसंत: गुण नाम = "jpaPropertyMap" ref = "jpaPropertyMap" / & gt; & Lt; वसंत: गुण नाम = "डेटा स्रोत" संदर्भ = "डेटा स्रोत" / & gt; ...

caching - MyBatis-Spring multi-datasource configuration cache issues -

mybatis-3.1.0, स्प्रिंग-3.1.1.RELEASE और mybatis-spring-1.1.0 का उपयोग करते हुए, हम हैं बहु-डेटा स्रोत कॉन्फ़िगरेशन में कुछ गंदे कैश समस्याओं का सामना करना पड़ता है। सुरक्षा कारणों से, हमारे पास एक ही डाटाबेस और स्कीमा की ओर इशारा करते हुए अलग-अलग डेटा स्रोत हैं, प्रत्येक कूटलेखन का उपयोग कर प्रत्येक डेटा स्रोत लक्ष्य डीबी प्रयोक्ता का चयन करने के लिए केवल चयनित अनुमतियों का उपयोग करना है, दूसरे उपयोगकर्ता डाइल / अपडेट / डिलीट करने के लिए अनुमतियों को हटाने / डीएमएल ऑपरेशन करने आदि के साथ। ऐसा करने के लिए, हमने तीन अलग-अलग कॉन्फ़िगर किए हैं SqlSessionFactoryBeans, प्रत्येक डेटा स्रोत के लिए एक। और समस्या यहां आती है: जब "डीएमएल" सत्र का उपयोग करते हुए एक सम्मिलित संचालन किया जाता है, तो "चयन" सत्रों का स्थानीय कैश फ्लश नहीं होता है। इसलिए, उदाहरण के लिए, हमें उपयोगकर्ता सूची में नए बनाए गए उपयोगकर्ता नहीं दिखाई देते हैं। तो मेरा सवाल है: क्या एक ही समय में सभी तीन डेटा स्रोतों से जुड़े एक एकल एसक्यूएलएसिशनफिचरबीन को कॉन्फ़िगर करने का हमारे पास कोई तरीका है...

mysql - Get rows which do have references to list of values and at the same time don't have any references to list of other values -

I'm sure that was asked before but I did not know how to find it I have Table Table 1: | RefId_1 | RefId_2 | --------------------- | 1 | 133 | | 3 | 12 | | 4 | 144 | | 4 | 22 | | 3 | 123 | I need to get a list of RefId_1 , which is in the context of the list of RefId_2 , but any other list No reference RefId_2 of For example, I need a list of RefId_1 , which is the list of RefId_2 ( 133, 22, 44) but this should not be a reference to the list of RefId_1 RIFID_2 (12, 144, 111). Result only (1) Because (4) References to taboo 144 Thank you in advance Renamed : ( Uensteaded ) Select DISTINCT REF_ID1 from Table 1 to WHERE REF_ID2 IN (133, 22, 44) and not REF_ID1 (Table 1 from selection REF_ID1 where REF_ID2 IN (12, 144, 111))

java - Sort API methods in Swagger-UI -

I can not find a working example, how can I find the following: I want my API Methods of Sorting in Swag-UI (GET-POST-PUT-DELETE) or / and alphabetically. So far, all the methods are displayed in a random order, not even in the order of my source code. I use jack-rs + jersey 1. Sorting by the @OpoOptions feature is not an option for me, because there are so many ways and the API is still spreading, so I'll need it if all is new, then update all . Any hint? Update for Swagger UI 2.1.0 +: Sorter The parameter is divided into two parameters, as stated in: apisSorter Apply a type in the API / tag list 'Alpha' (sorted by name) or a function can be done (see array.prototype sort.) To know how the sort function works). The default is the order given by the server unchanged. Operations Server Apply one type to the operations list of each API. It can be 'alpha' (depending on the path of alphanumeric form), 'method' (sorted by the HTTP met...

Connect two SQL-tables and order the result by a group -

मेरे पास दो टेबल हैं: फ़ील्ड आईडी के साथ मुख्य-तालिका (तालिका 1) नाम फ़ील्ड आईडी, id_main, समूह, विवरण 1, विवरण 2, ... के साथ विवरण-तालिका (तालिका 2) ... कहने के लिए, विस्तार में तालिका में एकाधिक प्रविष्टियां हो सकती हैं (उसी आईडी_मेन के साथ), जो मुख्य तालिका के एक एकल अनन्य प्रविष्टि के अंतर्गत आता है। इसलिए मैं मुख्य तालिका के प्रत्येक प्रविष्टि के लिए एक परिणाम के रूप में प्राप्त करने का प्रयास करता हूं, समूह तालिका द्वारा समूहीकृत किए गए विवरण तालिका के प्रत्येक प्रविष्टि (जो उस आईडी से संबंधित है)। मैंने इसे करने की कोशिश की SELECT t1.id के रूप में id1, t1.name नाम के रूप में, t2.id_main आईडी2 के रूप में, t2.group समूह के रूप में, t2.detail1 तालिका 1 t1 बाएं जुड़ें table2 t2 ON t1.id = t2 पर Id_main आपको ग्रुप BY की आवश्यकता नहीं है: SELECT t1.id, t1.name, t2.group, t2.detail1 से तालिका 1 t1 लेफ्ट जॉइन टेबल 2 टी 2 ऑन टी 1.आईड = टी 2.आईडी_आमेन ऑर्डर करके टी 2 ग्रुप ध्यान रखें कि आपके एसक्यूएल इंजन के परिणामफल में आपको उन सभी पंक्तियों में group क्ष...

c# - How to add image in DatagridView Column Header? -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मेरे पास डेटाग्रिड दृश्य है I मैं। डेटा पृष्ठ में डेटाग्रिड दृश्य स्तंभ बना रहा हूँ। मैं एक डाटाग्रिव्यूव्यू कॉलम हैडर में छवि जोड़ना चाहता हूं। डेटाग्रिड विवेकेलस्टाइल कॉलमहैडरसैटिल = नया डेटाग्रिड दृश्यकेलस्टाइल (); ColumnHeaderStyle.BackColor = Color.Beige; ColumnHeaderStyle.Font = नया फ़ॉन्ट ("बुकमेन पुरानी शैली", 8, फ़ॉन्ट शैली.बोल्ड); डेटाग्रिड दृश्य 1। कॉलम हेडर्सडिफ़ॉल्ट सीलेस्टाइल = स्तंभहैडरसैले; datagridview1.AutoResizeColumns (DataGridViewAutoSizeColumnsMode.AllCells); डेटाग्रिडदृश्य 1। कॉलमकाउंट = 2; डेटाग्रिड दृश्य 1। कॉलम [0] .HeaderText = "Details"; डेटाग्रिड दृश्य 1। कॉलम [1] .HeaderText = "राशि"; मैं दूसरी कॉलम में छवि जोड़ना चाहता हूं। इसका अर्थ है "राशि (छवि)" आप यह कैसे कर सकते हैं? आपको एक संसाधन फ़ाइल में छवियों को संग्रहीत करना , तो आप इसे से खींच सकते हैं। अधिक विवरण के लिए नीचे दिए गए लिंक को देखें: आशा है कि यह मदद करता है ।

Passing Messages with PID to Erlang from Python using ErlPort -

I want to pass a message from Dragon to {From (PID}, atom} Format, because my Erring program needs to know which message to send a message. Erlang Message Loop: message_loop ([first | remaining]) - {from, ready} -> by% {self (), {reading, before}}, dragon: cast (from, {reading, first}), message_lop (left); {done} & Gt; Python: Cast (from, {reading, first}), message_loop (left); {to, _} -> io: form ("Invalid message received from"); _ - & gt; io: format ("random message") end. How do I pass a message like this using the ARORTPART Can I use any other technique that can be used to communicate selectively after the spelling of many of them? As you can see in the document, there is no alternative to doing it automatically. Can you do represent the string with er PID Lang: pid_to_list / 1 , or the dragon. And you can use the erlang: list_to_pid / 1 when you get it from the dragon. It should work quite well.

algorithm - How to be sure that a target goal in a match 3 game level will not be impossible? -

This is not clearly a coding problem, but is logical one. I'm starting to learn how to make a match-3 game. But a question arises in my mind. When I set goals to complete the level, how will I know that the goal is achievable? At a level where I have 5 red, 12 blue, 9 green items mixed together, how can I decide how many steps to achieve this goal is required. I mean it should be challenging, but should not be impossible. Since the objects are randomly generated, it is void that enough gem in the game will not be impossible. > There are some logical explanations for this, or I just have to test and see how many moves are there to achieve the goal. Is there an algorithm that generates the gem according to the target set, or are they arising in random ways? To be even more clear about my question, I am going to take an example of King.com. Number of targets in level 9 are 26,26,14,5, respectively. And the maximum number is 22. Now this goal can be achievable and ...

c - How to avoid a memory leak by using pthread_cancel? -

I have a program that should start a thread. To avoid getting out of the software, the thread runs in an endless loop and I am in the thread. This thread never returns the value. So now I have the problem that after detecting the pthread_cancel Valgrind memory leak detection. How can I avoid this kind of memory leak? Valgrind production: == 5673 == 1 by 136 blocks by 1 block possibly 8 == 5673 record of 4 necklaces Are lost in == 0x4026A68: calloc (vg_replace_malloc.c: 566) == 5673 by 0x40111FB ==: _dl_allocate_tls (DL- tls.c: 300) == 5673 == 0x404E5A0 by: pthread_create @@GLIBC_2.1 ( Allocatestack.c: 0x804C44E by 580) == 5673 ==: beginning (mythread.c: 25) == 5673 by 0x804D128 ==: main (main.c: 10) code : int main () {hint (SIGINT, cleanup); Signs (SIGQUIT, cleanliness); Indication (SIGSEGV, cleaning); Start(); Return 0; } Int start () {pthread_create (& thread_id [0], faucet, and threadhandler, faucet); Pthread_join (thread_id [0], zero); Return fault; } Cleanlines...

jquery - Unable to remove the class for the previous selected Item in Menu Bar -

When an item is selected under the menu bar, I am adding a class that activates the item. It's working fine for the first time. If we select a different element under the menu, how to remove the class first for the selected item? This is my JSFilled I tried to solve it $ (document)) .on (" Click "," # swiper-wrapper li ", function () {var previousselected = ''; if (Previously selected! = '') {$ ('#selected'). RemoveClass (active);} var Selectedleemnt = $ (This) .text (); $ (this) .addClass ("active"); previously selected) = selectedleemnt;}); But I have not been able to remove the class for people with the prey. Can someone help me? What is #prevoiusselected? I've updated your: $ (document) .on ("click", "# swiper-wrapper li", function () {$ (". Active"). RemoveClass ("active"); $ (this) .addClass ("active");});

How get I the Android Core Checkbox Image files -

Image
I want to use the standard checkbox of Android, but I want to change the border color a little bit. Is there any alternative to getting the original dashable as a .png file? I would like to receive all of these pictures: Thanks & amp; Greetings, Malte Go to your \ Android \ platform \ Android-11 \ data \ res \ drawable-mdpi \ btn_check_off_selected.png You can get all images which are used by the Android system. This is

c# - Do I need to wrap Trace.TraceError inside a try/catch? -

I am using system.Diagnostics.Trace # TraceError / inside an attempt to trace errors. Looking at the implementation of TraceError, it seems that the errors of the audience are not really caught, it means that I should write the code written below to avoid the logging errors to promote the caller: hold (exception e) {try {trace.TraceError (e); } Hold {// nothing}} is not documented to throw exceptions Therefore, there is no need to hold However, if it has been documented to throw exception, you should never do exception and do not do anything. Increase the exception, only then you have a chance to know what is wrong. View

jquery datatables - Return String instead of DateTime if LINQ Query NULL -

I am using JQuery Datatables with my MVC 5 application. I am implementing sorting on any of my datalet within my MVC controller. One of the columns displays the date to the user, and I want them to be able to sort this column, which works fine. // To sort different types of columns get the index of CollumnInndex = Convert ToInt32 (Request ["iSortCol_0"]); Function & lt; Survey_stats, datetime & gt; OrderingFunctionDate; Ordering FunctionDet = (C => c.InitiatedDate == Zero? Default (DateTime): c.InitiatedDate.Value); The problem is, at the moment, if c.InitiatedDate is zero, then I will change the default date back to 01/01/000 1, otherwise I return the actual date recorded in the database. I do not like that I'm returning to the user 01/01/0001 , this is not great utility and can confuse them The problem is that I > ordering functionDATE = (C = & Gt; c.InitiatedDate == zero? Default (datetime): c.InitiatedDate.Value); With ...

javascript - Check whether checkbox is checked or not in page load itself by jquery -

I have the .NET MVC 3 page under the checkbox and the Span tag, @Html ("id", "CBAcDeStats7"}, {"class", "onchange"}}). (Checkbox) & lt; Span id = "spBlueCheckbox" style = "display: none; color: blue;" & Gt; Some messages & lt; / Span & gt; Jquery: jQuery (function ($) {$ ('# cbCheckedStatus7'). ('Change', function () {$ ( '#spBlueCheckbox') Slide Toggle (this.checked);}); If the checkbox is checked, then I have to show a span tag or hide it. The tag is hidden. I have written jquery to do the above scenario, but it is working only when I manually click with the mouse.What do I want, when I Navigate to this page from the page, the checkbox is checked by the default based DB flag, but the span tag is not shown. Call below the jquery on page load: ($ '(': 'check)): $ (document) .ready (function () {// preliminary Check and show / hide if ($ ('$ cbChe...

javascript - html entities not displaying when passed by jQueryUI -

यह मेरा HTML कोड है & lt; input id = "email" name = " ईमेल "प्रकार =" लेख "स्वत: पूर्णांक =" बंद "/> & Lt; span id = "emailInfo" & gt; & lt; / span & gt; इस jQuery स्क्रिप्ट जो इनपुट को मान्य करती है और स्पैन टैग के भीतर एक संदेश प्रिंट करती है emailInfo.text ("यह ईमेल पहले से पंजीकृत है!"); यह काम करता है लेकिन जब मैं एक HTML इकाई को मुद्रित करने का प्रयास करता हूं, तो उसे मान्यता नहीं दी जाएगी। emailInfo.text ("& amp; # x2713 ; "); & amp; # x2713; = ✓ हालांकि, अगर मैं मैन्युअल रूप से इसे HTML पृष्ठ में कहीं भी टाइप किया है, तो इसे पहचाना जाएगा। यह क्यों हो रहा है? आपको jQuery से स्विच करना होगा text () विधि स्ट्रिंग को HTML के रूप में पार्स नहीं करता है, लेकिन उसे टेक्स्ट के रूप में सम्मिलित करता है, इसलिए संस्थाएं परिवर्तित नहीं की जाएंगी। emailInfo.html ("& amp; ; # x2713; ");

html - How to make 5 column row in zurb 5 foundation -

I row is to keep 5 columns and only 1 column screen for small devices For example & lt; Div class = "row" & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 2]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 3]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 4]...