Posts

Showing posts from March, 2010

jquery - Flexslider Syncing thumbnails/sliding thumbnails broken -

Alignment of thumbnails in FlexSlider version 2.0 is broken. Each thumbnail slide is closed from one - Highlighted pager image is one in comparison to the slide displayed in the main slider. Off-by-One does not exist in 2.2.0. But in 2.2.0 the sliding pager has broken down on looping. If the last slide is clicked next, then the pager loop does not return 0, but the main slider shows 0. Clicking next show 1, but still does not loop pager. When 1 is clicked to go to 2, then the sliding pager loops back in the end. Anyone knows this issue .... I tried to do many things in jquery.flexslider.js but did not succeed

javascript - Not this selector on next element in jQuery chain -

मेरे पास ul को एक li और इसे की ऊंचाई को चेतन करें। $ ('। पतन-ट्रिगर')। क्लिक करें (फ़ंक्शन () (यदि ($ (this) .next ('। Collapse-ul ') .हाइट () == 0) {$ (यह)। सीएसएस (' पृष्ठभूमि ',' # 000000 '); var ऊंचाई = $ (यह) .next ('। Collapse-ul ')। बच्चों () ($ ऊंचाई: 42}, 500); // मेन्यूपॉइंट की संख्या के साथ ऊंचाई बढ़ाएं; और {$ (यह)। सीएसएस ('पृष्ठभूमि ',' # 414141 '); $ (यह) .next ('। Collapse-ul ')। चेतन ({height: 0}, 500);}}); इसके साथ मैं प्रत्येक ul को मिटा सकता हूं और फिर एक क्लिक पर इसे 0 पर वापस एनिमेट किया गया है। मेरा क्या इरादा है, जब ul में से एक बाहर एनिमेट कर रहा है, दूसरों को वापस शून्य में चेतन किया जाता है। मुझे लगता है मुझे जैसा कुछ चाहिए। नहीं (यह ) लेकिन इसके साथ संघर्ष। मेरा प्रयास: $ ('this')। Next ()। नहीं ('। Collapse-ul', यह)। मान ({height: 0}, 500); // & lt; - विधि के अंदर नहीं मुझे नहीं पता कि यह कैसे लिखना धन्यवाद इसे आज़माएं: आप पहले संरूपित उल ढू...

java - Bean injection in groovy class -

Currently I'm rewriting the Java project by Jerovi, then I came into this problem Java: Public abstract class AbstractJavaClass {Personal ConfigClass configClass; Public Zero (); G / Seter} Public class Java class expands the Java Java class {@Override Public Zero () (Something;}} ConfigClass member was injected with xml methods Groovy: Class Groevias expands the Java Java application {@Override Public Zero () (Some How do I apply property referees in the groovy class? Finally I used this method. Groovy: Class Groove class expanded the Java Java class {public grovolvicus () {configClass = new ConfigClass (); configClass.setSomeAttributes ();} @ Override Public Wide Go () Do something);}}

c# - Change datatemplate of contentcontrol on change of datacontext property -

मेरे पास एक contentcontrol है जो ऑब्जेक्ट ( डेटा उदाहरण में डेटाकॉन्टेक्स्ट की संपत्ति) जब भी डेटा परिवर्तनों से संदर्भित ऑब्जेक्ट, मैं datatemplate का पुनः चयन करना चाहता हूं मैं यह कैसे कर सकता हूं? & amp; lt; सामग्री कंट्रोल का नाम = "रूटडेटा" सामग्री = "{बाध्यकारी डेटा}" सामग्रीटैंपलेट चयनकर्ता = "{StaticResource myTemplateSelector}" / & gt; यदि आप संपूर्ण डेटा प्रकार को बदल रहे हैं तो आपका दृश्य नीचे दिया जाना चाहिए, केवल अंतर कुंजी को निकाल रहा है और डेटाटाइप के लिए डेटाटाइप का उपयोग कर रहा है, इसे अंतर्निहित डाटा टेम्प्लेट कहा जाता है & lt; विंडो x: कक्षा = "टेक्स्टबॉइडफ़ॉर्मेटिंग। मैनविंडो" xmlns = "http://schemas.microsoft.com / Winfx / 2006 / xaml / प्रस्तुति "xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "xmlns: स्थानीय =" clr-namespace: टेक्स्टबैंगफ़ॉर्मेटिंग "xmlns: viewModels =" clr-namespace: टेक्स्टबैंडिंगफ़ॉर्मेटिंग। व्यू मॉडेल "शीर्षक =" ...

opencart2.x - Open Cart 2 Coupon Multiple -

I am trying to find a way to do the following: Example, / Strong> You order the same 5 chickens in £ 20 and you apply 5 pounds to the coupon for the product. Instead of £ 95.00, the price should be £ 75. Is it possible, I am digging through cart.php for hours, for which I do not find any way.

objective c - UIView, UITableView frame misalignment iOS 8 -

Image
मैं अपने कोड में UITableViewController , UICollectionViewController का उपयोग कर रहा हूं ViewDidLoad पर दृश्य निम्न की तरह बहुत अच्छा दिखता है। लेकिन इसके बाद अगर मैं इसके संबंधित विस्तार से गुज़रता हूं और UITableView या UICollectionView पर वापस जाता है तो यह निम्न की तरह संरेखित करें मैंने भी self.tableView.frame = CGRectMake (0,0, चौड़ाई, ऊंचाई) सेट करने का प्रयास किया; पर दृश्यएंडएपीपर पर कोई भाग्य नहीं है यहां मेरी तालिका दृश्य गुण हैं: (मैं भी इन गुणों को चेक / अनचेक करने की कोशिश की है)। ध्यान दें: स्टोरीबोर्ड के लिए आटोलेयआउट नहीं उपयोग में है Https://i.stack.imgur.com/hZQCj.png "alt =" यहां छवि विवरण दर्ज करें "> इस कोड को अपने UITableViewController ViewDidLoad में रखें self.navigationController.navigationBar.translucent = NO;

javascript - How to round off number at decimal places -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब 44571.123 * 75.46 = 3363336.94158, लेकिन मैं मान चाहता हूँ 3363336.942 तो क्या मैं जावा स्क्रिप्ट में कोड लिखू आप इस तरह से समारोह का उपयोग कर सकते हैं: var sum = (44571.123 * 75.46); Var दशमलव = sum.toFixed (3); 3 के साथ दशमलव स्थानों की संख्या जिसे आप चाहते हैं।

PHP Array breaking -

This works on my test environment, but there is a later version of PHP on my live server which is throwing an error And break my program is the code $ oldFile = fopen ("D: / ftpfolderreport / report /". $ Last_file, "r"); While (! FIF ($ old file)) {$ buffer = fgets ($ old file); $ Buffaloire = explosion (",", $ buffler); $ = $ Buffer ray [0]; $ Old filing array [$ K] = $ Buffer comes [1]; } Fclose ($ old file); This row: $ old filing array [$ key] = $ Buffer array [1]; is throwing this error Notice: Undefined offset: 1 in D: \ apps \ wamp \ www \ compliance 2 \ CompareFTPRPPPPP line 57 I think that this is to do so that I am adding the $ key converter inside the argument. I have tried to do it as ["$ key"] and ['$'], but do not like it I have tried to define the key variable in the program first but then I do not even like it. I am searching online but can not get anything for help, anybody have any ideas? Thank ...

symfony - assetic and url rewriting -

Hello I have to put on the website created with symfony2. I use IIS (Microsoft server), I am having trouble loading partial files because IIS requires a rewrite rule in this URL: & lt; Ifmodule mod_rewrite.c & gt; RewriteEngine On RewriteCond% {REQUEST_FILENAME}! -f RivetAril. ^ (. *) $ App.php [QSA, L] & lt; / IfModule & gt; Otherwise, instead of getting the routes, this is visible in folders. But now property is also searching for routes !! When I open a CSS file: Get the route css .. ..not found. The standard error was not found; Writing the URL is also working on my property files ... Actually I need to create a rule that ignores CSS / path, so I put the rule "Text"> I had to add 3 conditions {PATH_INFO}, type "model does not fit" with CSS, JS, and the picture as a model.

Freemarker string escaping doesn't work with default operator -

We use Freemarker 2.3.20 and come in a strange behavior when using the default operator to escape this way With string: $ {picture. Author [0]! ""? Js_string} In this case, quotes are not saved in the value of the authors! " "is present. We need to check the first value and the default session can not be used: & lt; #if pic. Author @ [0]? ? & Gt; {. Picture @ author [0] js_string?} $ & Lt; / # If & gt; It is quite ugly and has blown the code. Is this a bug or a feature? This operator is due to priority $ {picture. Author [0]! ""? Js_string} means $ {picture}. Author [0]! (""? Jsistring)} What do you want $ {(author. @ Author [0]! "")? Js_string} .

c++ - Specializing a template method of a non-template class - works in MSVC, compilation error in GCC -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मेरे पास कुछ कोड है जो फोड़े इसे करने के लिए नीचे: #include & lt; type_traits & gt; Struct CByteArray {}; संरचना CIODevice {टेम्पलेट & lt; typename T & gt; CIODevice & amp; ऑपरेटर के लिए & lt; & lt; (टी मान) {static_assert (std :: is_pod & lt; T & gt; :: मूल्य, "यह विधि केवल पीओडी प्रकारों के लिए है"); वापसी * ​​यह; } टेम्पलेट & lt; & gt; CIODevice & amp; ऑपरेटर के लिए & lt; & lt; (सीबीयएरारे डेटा) {वापसी * ​​यह; } टेम्पलेट & lt; typename T & gt; CIODevice & amp; ऑपरेटर & gt; & gt; (टी एंड amp; मान) {static_assert (std :: is_pod & lt; T & gt; :: मूल्य, "यह विधि केवल पीओडी प्रकारों के लिए है"); वापसी * ​​यह; }}; Int main () {CIODevice डिवाइस; Int i = 0; डिवाइस & lt; & lt; मैं; डिवाइस & gt; & gt; मैं; वापसी 0; } यह एमएसवीसी में संकलित है, लेकिन जीसीसी में मुझे यह मिलता है: prog.cpp: 13: 12: त्रुटि: गैर-नेम...

vba - Create Outlook appointment to specific Calendar from Excel Spreadsheet -

I am trying to create a macro which creates three outlook appointments for a specific (shared) calendar. Incidentally, always full- Event events will occur at the end, in the end, I want to be able to associate the macro with a button so that when the button is pressed, the dates for the current row will be added to the calendar. All three dates will be in the same line on the spreadsheet. Even so far away from me (I know that this is not too much) Please tell me what I want to add. I am still new away to VBA code below successfully creates appointment but for some reason the loop is not working. The only event that has been created is the last date. Set myOutlook = CreateObject ("Outlook.Application") set myApt = myOutlook.createitem (1) I for dim integer as I = 3 to 5 myApt.Subject = Room (ActiveCell.Row, 1). Value myApt.Start = Cells (ActiveCell.Row, i). Value myApt.Save Next I End Sub No problem, I resolved this problem Appt still goes to the default calendar, but it...

Access the whole video memory -

I am looking for a way to read the entire video memory that a video card output to a display. It also includes hardware accelerated output, video playback and output in fullscreen mode (I think somehow I might be different from windowed mode). In summary: Whatever is going to happen is displayed on any display. I think if is possible that it will be OS-dependent. Do you have any signs? For windows I think that you can take camstudio, you can strip it down and You can use the record for the screen, whatever you want with the output, you can also see forensic kernel drivers to access the RAM. It's no longer simple, pointing to video memory is not as simple as the pointer.

symfony - (Doctrine2-Symfony2) Return foreign keys with findAll() -

मैं एक ऑब्जेक्ट को निम्नलिखित कोड से लौटा रहा हूँ: $ myVariable = $ this- & gt; getDoctrine () - & gt; getRepository ( 'MainBundle: TheEntity') - & gt; findAll (); मेरा प्रश्न होगा: क्या इसी तरह के फ़ंक्शन के साथ विदेशी कुंजी भी वापस करने का कोई तरीका है? धन्यवाद। डिफ़ॉल्ट रूप से जब आप इसे कॉल करते हैं तो सिद्धांत एक संबद्ध इकाई को लाएगा ताकि आप कुछ जैसे $ myAssociatedEntity = $ myEntities- & gt; getMyAssociatedEntity () । इसे आलसी लोड हो रहा है कहा जाता है और कई छोटे अनुरोधों की ओर ले जाता है, इसलिए यह आम तौर पर जल्दी प्रोटोटाइप के लिए उपयुक्त है। बेहतर अभ्यास एक स्वयं के भंडार विधि को एक संयुक्त खंड के साथ लिखने के लिए होगा ताकि आपको एक बड़ा अनुरोध में सब कुछ मिल जाए।

ruby on rails - How do I get the country_select gem and simple_form to work from scratch? -

I just want a simple country dropdown, which has been given priority for my purposes (i.e. the states located in the country do). In fact, I only want 1 or 2 countries. I am using Simple_Form and their documents say that to get access to: / Code> I need to include it in my jammfile: gem 'country_select' but I'm confused I do not have to run a migration to store the country selection on my selection. Post model - the model for my _form.html.erb Research When I simply do: ;% = f.input: country, like: country, collection: ["Australia", "Brazil "," New Zealand "]%> I did not find any country method on the post error me this my post.rb : To add to attr_accessor: country , if my memory works correctly to me, due to the powerful parameter, now I should not do in Rail 4, okay? This works, but now archive: prompts The sh does not work. I still see a long list of countries. Keep in mind that I post your . ...

java - To_char in hibernate join -

Is there any way to get the following snippet in Hibernate 3.3? @ManyToOne @ JoinColumnsOrFormulas ({@JoinColumnOrFormula (formula = JoinFormula (value = "to_char (id)", referenced columnname = "product_idnf")}} @tech (FetchMode.JOIN) private Product Productivity; It has been implemented in Hibernate 3.5+, but I want to do the same in 3.3.

c - Gtk+ icon missing when running in MS Windows -

Image
I have a C / GTK + application developed on Ubuntu, and I want to compile it so that it runs on MS Windows . I followed the set up to compiler, and the program was compiled successfully, and it runs on MS Windows. However, the mark was missing on a search entry. This is when I am on Ubuntu: I run programs in MS Windows (or Wine), then I get: Additionally, the terminal shows the following: (main.exe: 8 ): GTK-Alert **: Icon 'Edit-Find-Symbolic' Could Not Get 'Hichcore' Theme Was Not Found, Maybe You He has to be installed. You can get a copy from here: http://icon-theme.freedesktop.org/releases Question: Is it necessary to install a mouse that appears in the windows box on the Windows box anything? My application is the goal of being able to run with a USB flash drive without installing anything. I used the relevant part of the glade file to make the application, if it is useful: & lt; Object Class = "GtkSearchEntry" id = ...

Finding out the version of git on remote server -

I'm looking git commands on your local machine that went to learn the version running on the remote Jiaiti Can i Server? If this is also possible. Modern Jiaiti server (start) their version information capabilities protocol talks although it is accurate that nobody git commands that you can run locally, you can query the git server for informational purposes only and will provide the latest version number. You can use the web client to request: & lt; Store URL & gt; / Info / refs service = upload pack from git and check for first line for agent = report. For example, against the CodePlex: % curl https://git01.codeplex.com/gittf/info/refs??service= more packed Git 000000bd43569b9f6f29136b6544809eacd2417a308f9341 HEAD \ 0multi_ack thin pack side band side band -64 k ofs- Delta shallow progress tag multi_ack_detailed not agents = Git / 1.8.4.msysgit.0 Which indicates that CodePlex Windows 1.8.4 ( Git / 1.8.4.msysgit.0 ) is Git use against or GitH...

c# - How to store a recursive model with entity framework 5.0 -

I'm new to the organization and am trying to store the following models in a database. I have seen the tutorial I want to store the code using the following model code first, but I could not archive this recursive structure. It only stores the initial root node. My model looks like this: Public intangible class node: INode {public int nodeId {get; Set; } Public node () {nodes = new list & lt; INode & gt; (); } Public Inode ParentNode {get; Set; } Public listing & lt; INode & gt; Nodes {receive; Private set; } Public string name {get; Set; }} and the derived sub type: public class module: node, emode {} public square location: node, redemption {} Interfaces are: Public Interface INode {INode ParentNode {get; Set; } List & lt; INode & gt; Nodes {receive; } String name {get; Set; }} Public Interface Impulse: Inode {} Public Interface Illocation: Inode {} This is my DbCTintact: Public class SqlEntityContext: DbContext {public DbSet ...

javascript - How to tell whether running in a browser or in NodeJS? -

इस सवाल का पहले से ही एक उत्तर है: 17 उत्तरों सबसे अच्छा तरीका क्या है यह एक ब्राउज़र या नोडजेएस में चल रहा है या नहीं यह जानने के लिए जावास्क्रिप्ट कोड है? मैं ऐसी कोई चीज़ ढूंढ रहा हूं जिसे बूलियन के लिए मूल्यांकन किया जाएगा। विंडो और अपवाद को पकड़ने के बजाय clinky लगता है क्या कोई बेहतर तरीका है? आप निम्न के एक कट-डाउन संस्करण का उपयोग कर सकते हैं: var isNode = (प्रकार का निर्यात === 'ऑब्जेक्ट')? सही गलत;

TWILIO cannot send sms from C# console app -

I'm having trouble using TWILIO to send SMS from the C # console app. I initially got an error The problem was "in which the method was not found: 'zero RestSharp.RestClient.set_BaseUrl (System.String)'. After applying the solution given in any other post, the application now runs. However it does not send any SMS After seeing the response in the post, I used to use the RestException property Tried and exception message as found in the following message "Permission to send SMS" has not been enabled for the area indicated by the number: + 880161xxxxxxx. So what does this mean that Twilio based application is Bangladesh (+8080 countries) Code)? Do you have any plans to update it? However, I would like to mention from the website of Miguel that I can send verification SMS from the website. Tax Number (+ 880161xxxxxxx) can manage to validate myself. By I tried using the following code Twilio ; Namespace SMSTestApp1 {Class Program {Static Zero Main (String...

drupal - Show node/add/* form in modal -

I tried to do lightbox2 and it was not working as desired, modal_forms node / add / * form does not show the custom code which I could not work as desired, any experience or suggestions? Whatever I want is just a node / add / code> form, which I am trying to create, in a model. I think it might be what you're after. This node uses ctools modal to display the form.

Using Javascript to change CSS for URL -

I have a URL in my html as I have seen the URL I have disabled below & lt; One style = "pointer-phenomena: none; color: RGB (44, 89, 159);" Href = "https://www.google.com/" id = "successes" & gt; Link & lt; / A & gt; I am trying to reactivate the link via javascript. I tried the code below, but when I did not load the page properly, no one knows what I'm doing, what I do wrong or better to deactivate / activate the link Am I document.getElementById ('successfactors'). Style.pointer-events = 'auto'; Use: document.getElementById ( 'Stylefinders'). Style.pointerEvents = 'auto'; Styles use camel case, because identifiers can not have hyphens.

AngularJS. Best practice structuring blog posts in JSON -

Now I have 2 JSON files that are responsible for the content of the article. The articles are used to keep "short authors": "abbreviated name", "stenographer": "short name is here," "maybe a little bit longer", "images": ["img / article-img 1.jpg" ], "Features_State": True, "FECHS_IMG": ["IMG / Featured-IMG-1. JPG"]}] Then I Based on this, I use the following construction to get article details for the particular article: app.controller ('ArticleCtrl', ['$ scope', '$ path perm' '$ Http', function ($ radius, $ path page, $ http) {$ http.get ('page / article /' + $ routeParams.articleId + '.json') .vivet (data) {$ Scope .article = data;});}]); 1.json article file looks like this {"id": "1", "category": "books and magazines", " Title ":" Heading Here "," html_desc...

jquery - access specific data from fetched json file -

Hello I'm new to further development, I have brought Jason data and added it as html in the list & lt; Li & gt; item but my problem is that when I click on Jason on the list format, I need special information about that particular link which I clicked to log in to the console window. var data 1 = {" user ": [" deditum ":" 21:30 "," arrival ":" 23:30 "," duration ":" 1H 45m "," "Price": "2,400", "planeName": "auditor", "stop": "non-stop", "image": "indigo"}, {"depthtime": "21:30", "arrival "": "23:30", "Period": "1h 45m", "Price": "2,400", "Aviation": "Auditor", "Stop": "Non Stop", "Image": "Indiago "}]}; Var output = "& lt; ul & gt;"; (Data1.users in...

python - How to unlisten the socket without having root privilege? -

मुझे त्रुटि मिली है: socket.error: [एर्रो 98] पता पहले से ही उपयोग में फिर मैं उस पोर्ट पर जाने के लिए उसमें कुछ खोजता हूं: netstat -ant | Grep: 5000 # परिणाम टीसीपी है 0 0 127.0.0.1 .000 0.0.0.0:* LISTEN सुन लिया जा रहा है, मुझे नहीं पता कि यह प्रक्रिया क्या है। क्या इस सॉकेट को साफ करने का कोई तरीका है?

Java nio: How to read characters from memory mapped file with correct charset -

For a new project, I must read the letters of a file (with configurable encoding) to handle the input Since some of these files may be too large (> 100MB), I want to check for the fast access to Java map of the map of the map. However, I could not understand how I used to do Madbethbuffer Right to create "Reader" with correct charset decoding I'm in Mapbitbare, I currently use: RandomAccessFile raFile = New RandomAccessFile ("myFile.bla", "r"); File channel channel = raFile.getChannel (); Maped buffer mapped batbuffer = channel.map (mappedod. Rad_only, 0, channel. Size ()); I know, I can use getChar () to get a character from the Mapbitbuffer, but how is it possible to specify the encoding? It is said in Javadok, that two bytes are always read and add one to four, but what happens with ASCII encoded files? I got the channel too. Nerdar (...) methods, though handle only the channel, not the memory map file. Is anything similar to Mapb...

I'm trying to find the sum of all primes below 2 million in python -

ls = [] कुल = 0 i श्रेणी में (0,2000000): ls.append (i) के लिए श्रेणी में (2,2000000): श्रेणी में एक्स (2, इंट (फ्लोट (2000000 / i) +0.5): एलएस [इंट (फ्लोट (आई * x))] = 0 एलएस [1] = 0 जम्मू के लिए रेंज (0,2000000): कुल + = ls [j] प्रिंट कुल यह कोड मुझे गलत जवाब दे रहा है। इसमें बड़ी संख्याएं शामिल हैं जो मुख्य नहीं हैं इसमें प्रधान संख्याओं की तुलना में 25 अधिक संख्याएं शामिल हैं। आपका एल्गोरिदम गलत परिणाम दे रहा है, couldn ' आप समझते हैं कि आप किस दृष्टिकोण का इस्तेमाल करते हैं, अगर आप अधिक जानकारी दे सकते हैं तो बेहतर होगा। प्रमुख संख्या को प्रभावी ढंग से उत्पन्न करने के लिए एरेथोथिनेस एल्गोरिदम के सिवे नामक एक एल्गोरिथ्म है एल्गोरिथ्म को एल्गोरिथ्म लिखने के विवरण के साथ समझाया गया है। आयात करें गणित def प्रधानांक (एन): ए = श्रेणी (2, एन + 1) बी, सी = [], कुछ समय सी [0] को & lt; Math.sqrt (n): प्रथम एलेमेंट = सी [0] बी + = [प्रथम एलेमेंट] सी = [x के लिए एक्स में x यदि पहले% एलेमेंट! = 0] रिटर्न बी + सी टी = sum (प्राइमनल बेंज (2000000)) # यू गव प्रधान संख्या...

How to avoid optimized for iphone 6 high resolution ios app start in ipad native mode? -

I have an app that added UILaunchStoryboardName to launch in iPhone 6 high resolution mode has gone . However, when I install the app on the iPad (the app is set to work only on the iPhone, only UIDeviceFamily will have the value "1" / Strong>) is with iOS 8, it starts in basic mode instead of 1x, 2x compatible mode. I tested on the iPad with iOS 5.1, 6.x and 7.x, before all iOS versions, respect the Info.plist and launch the iPhone app in compatible mode. However, the iPad with iOS 8 seems that UILaunchStoryboardName will launch the app in indiscriminate and original mode. If I remove the UILaunchStoryboardName key from Info.plist, this is the dilemma, this app will not launch in high resolution mode of iPhone 6 and 6+. But if I add it, the app will not only work on iPhone 6 with high resolution mode, but will also launch in original mode with iTad in iOS 8.0, because I do not want to do just for iPad since another version I am Can anyone find a way t...

google play - How do I receive an email whenever someone leaves a review for my Android app? -

Whenever someone leaves a review for my Android app, I would like to receive an email so that when I need to Can answer I do not see a setting for it in Google Play settings ... is this possible? I know that I can make something, but I do not want to re-invent the wheel, and it seems that there is a setting for somewhere, or it will happen automatically. Unfortunately there is no official API - but you can keep a watch - with whatever you can do with it P>

iphone - ios touchesBegan not called on arm64 devices -

I have a custom UIView based on this tutorial: On Arm 64 Devices (iPhone 5s, 6 , 6 Plus, iPad Air): Uiviv's touching method is never called. It works as expected on previous versions (iPhone 5, 4S, ...) - the touching person is called on simulators (iOS 7.1, 8.1) and iPad Air (iOS 8.1). It is strange that the sample project is working from the tutorial ... Tutorial for the 10th time? My view is accepting touches on older devices ... even though I have a trick with it Resolved I should work on a custom button given in Grid 9x9 so I used UITapGestureRecognizer on the background of my button and in touch callback, I have checked from which button I am currently on.

COUNT with IF Statement in MS-ACCESS and GROUPING -

I am a newbie and people are looking forward to help you in this problem. I am building a presence database. I have three tables, attendees, students and grades but I need attendance tables only to calculate the attendance. I want to write a question which gives me the names of students in different scholarship tables and The number of students absence should be returned. I could not understand if I was stuck with the I statement with IF. I hope you guys can help My Table Attendance: ID, Student, Attendance [Current / Absent], At_Date, Remarks Student: Stud_ID, Studio_Nemy, Class Grade: Stud_ID, Grade I absence of students stud 1 10 5 stud 296

php - Error displaying Records in my table: It shows one record less -

I'm displaying records in the table from my database. But if I have 6 records, my .php file shows me 5 ... this shows me a record: I'm looking like pages, but I still have an error ... Any thoughts? This is my code: & lt ;? Php included 'conexion.php'; $ Contabla = Conexion (); $ Sqltabla = "Select from Sequisition P *, Products Pro where p.idproducto = pro.id"; $ Resutadotabla = mysql_query ($ sqltabla, $ contabla); $ Dato = mysql_fetch_array ($ resutadotabla); $ Contador = 0; While ($ dato = mysql_fetch_array ($ resutadotabla)) {$ contador ++; Echo "& lt; td & gt;" $ Contador "& Lt; / td>"; Echo "& lt; td & gt;" $ Dato ['id'] "& Lt; / td>"; Echo "& lt; td & gt;" $ Dato ['parte']. "& Lt; / td>"; Echo "& lt; td & gt;" $ Dato ['descripcion']. "& Lt; / td>"; Encoding "& lt; t...

Best way to save two depending Strings in Java and compare if new strings already exist -

I need to save two base strings (action and parameters) in a file or a hashtable / map or array speed and The best solution for memory is My application repeats through a large amount of form on the website and if I already check the combination of (string action, string parameter) Was done and therefore want to stop being saved. After all, if I have more than thousands of different action and parameter TUPS, then an array will be very slow. I do not have enough experience to choose the right method for this. I tried a hashtable but it does not work: hashtable & lt; String, string & gt; Ht = new hashtable & lt; String, string & gt; (); If (ht.containsKey (action) & amp; amp; HT.at (action) is included (parameter) {System.out.println ("Tupel already exists"); to continue; } Other ht.put (verb, parameter); If any action and parameter is always 1-to-1 mapping (one action only one Parameter), then your basic base should be fine (though I recom...

java - Is it safe to use 'FILE_LOCK=NO' in H2? -

If I use "FILE_LOCK = NO" in my H2 database, then what are the threats? The H2 web site says that I will need to preserve the database within the application. How do I do that? And what is the risk of deactivating file lock? Is there any other way that I can allow multiple users to access the database at the same time? Thanks in advance for any helpful reactions. No, it is not protected FILE_LOCK = NO Use In the future version of H2, most likely it will no longer be supported. The danger is that at the same time, two applications open the same database file to write, in this case the database will be most likely corrupted.

c# - How do I get request parameters in ASP.NET MVC -

How can I create an object object in ASP and get and receive post parameters in .NET MVC. I can not define them in the verb constructor, I want to draw information directly from the request. You can do this: string strparam = HttpContext.Current .equest ["someParameter"];

apache - FTP client connection to HTTP server -

I implemented the APH Meena server to connect to my local FTP client i.e. Command Prompt, which is working fine. Now I want to send this FTP request to an HTTP proxy server (Apache HTTP Server) as an HTTP request, which will connect to an FTP server further. I have used the Apache general net FTPHTTP client class but I do not know how to apply the whole logic Any links or examples will be helpful. My code is as follows: s FTPClient ftpclient = new FTPHTTPClient ("HTTPProxy", int port); // Connecting to Apache HTTP Server Boolean Status = ftpclient.isConnected // This is returning me the wrong ftpclient.connect ("FTPserver", int port); // Connecting to FTP server ftpclient.login ("userId", "userPassword"); // Login to FTP server status = ftpclient.isConnected // This is returning me true Is this connection a HTTP connection? HTTP tunnel through HTTP connectivity? My exact requirement is: - FTP client & lt; ---> FTP Local Serve...

testing - How to run python scripts as test suites (running a set of tests together) using nose tests? -

I have almost 50 automated scripts in Python and I want to separate them as test suits - in almost every sense 5 suites. How can I get it? How to use: & gt; Nosetests script1.py script2.py script3.py script4.py script5.py & gt; Nosetests script3.py script4.py script 5.py script 6.py script 7 .py & gt; ... If you organize your suite folders you can run all the tests in a folder in the same run. Alternatively, you can use the plugin and mark individual tests as a member of a particular lists with @attr (suit = 'suit1') Can run: & gt; Nosetests - One Suit = 'Suit 1'

java - How do I find all numbers between 2 integers that are divisble by a third integer? -

I need to take three integers from the user, and the number between the two (startInt and endInt) which are divisible third From integer (modulus), then print all the aliquot numbers in jTextField. I'm sure there is a simple solution that I'm missing, but I can not understand what I'm doing for my life. Here is my code: Private zero goButtonActionPerformed (java.awt.event.ActionEvent evt) {int startInt, endInt, modulus; StartInt = integer Parasource (startTextField.getText ()); EndInt = integer PRIIENT (EndtextField.Gettext ()); Modulus = integer Parasont (modulusTextField.getText ()); Int intDistance = endInt - startInt; (Int loop quarter, louf quarters & lt; = intDistance; loop quarters ++) {}} All matches for this i will meet strictly between startInt and endInt, which are divisible by the modulus.

java - CDI deployment failure:WELD-001408 when using CDI beans (Glassfish 4.1) -

Whenever I use cdI managed beans in my enterprise application project, I get a cDi deployment failure: WELD-001408 Exception This is what I get: The name of the injection method should start with the "set" mark: javax.preistence.PersistenceUnit Location: public javax.preistence.EntityManager de.syngenio.backend .beans.Resources (Javax.preistence.EntityManagerFactory) and exception: Exception during lifecycle processing org.glassfish.deployment.com.DeploymentException: CDI Deployment failure: Weld -1011408: Unset dissatisfaction with typing Entity manager financier with qualifier @ default injection point [BackdotatedParameter] parameter 1 [BackendNotated Mode] @ Products @ ConShipSpad @ Precision Unit Public DSNJenio Backend .bin.rishn S.Cent (Entity Managerfactor) D. Syngenio.backend.beans.Resources.create (resources.javaxx) This class is: public class resources {@Produces @ConversationScoped @ Precision Unit (Unit name = "mongodb-p") becomes pub...

c# - Remove part of String inside List<string> -

I have list ; String & gt; in which it will have an item like 2014 -11-03 23:58 58: 37.6750486_0003 and I was wondering how it could touch the following items from the list: 2014 -11-03 and .6750486_0003 , except for 23:58:37 . Use the following to add the item to the list: calltimelist.add (msg). .timestamp () as_creator_time (header.tz_offset ()) ToString ()). Use this console WrightLine (entry time. Shuttle (11, 8)); works fine because it will always start at 11 @ and only 8 characters You can do something like var newList = callTimeList.Select (c => c.Substring (11,8)). ToList (); But I think your call timeline must be stored as a list of dates to make better calls, and then it has to be wired as necessary. My initial though was to convert the string to a date and then it had to be formatted var newList = callTimeList.Select (c =>; string.format ("{0: HH: mm : Ss} ", c) ToList () .; But I'm not familiar with the _00...

BigQuery query failed with error: "Unexpected. Please try again." -

निम्न त्रुटि त्रुटि संदेश से विफल हो रही है: "अप्रत्याशित, कृपया पुन: प्रयास करें।" SAP_ID, ACCESSION_ID, DIAGNOSTIC_SET_ID रूप diagnosticSetId रूप accessionId के रूप में मज़ेदार का चयन करें, अगर (pimsSoftwareCode, अशक्त अगर ((फीचर = 'MOBILE_JOB' और कार्रवाई = 'VIEW_JOB' और REGEXP_MATCH (xUserAgent, 'Android')) या (सुविधा = 'है MOBILE_JOB 'और कार्रवाई =' VIEW_JOB 'और REGEXP_MATCH (xUserAgent,' आईओएस ')),' मोबाइल ',' ऑनलाइन '),' पी आई एम एस ') मोड के रूप में, अगर (फीचर =' MOBILE_JOB 'और कार्रवाई =' VIEW_JOB 'और REGEXP_MATCH (xUserAgent, 'आईओएस'), 'आईओएस', अगर (फीचर = 'MOBILE_JOB' और कार्रवाई = 'VIEW_JOB' और REGEXP_MATCH (xUserAgent, 'एंड्रॉयड'), 'Android', नल)) MOBILE_OS के रूप में, तारीख (usec_to_timestamp (createAuditDate )) तिथि, समय के रूप में (usec_to_timestamp (createAuditDate)) [20141104Android_backup.EventLog] से समय के रूप में ...

sql - Select and join error must appear in the GROUP BY clause or be used in an aggregate function -

मैं यह करने की कोशिश कर रहा हूं: SELECT *, case जब SUM (fld_allocated_time) ) / 24 & lt; Fld_allocated_days के बाद 'ओके' और 'नॉक' अंतराल के रूप में एलोकेटेड से (SELECT tbl_project.fld_id, tbl_project.fld_allocated_days, tbl_project_timesheet.fld_allocated_time से "SD_PRJ"। Tbl_project इनर जॉइन करें "SD_PRJ" .tbl_project_timesheet पर tbl_project.fld_id = tbl_project_timesheet.fld_id) एएलआईएस के रूप में और मुझे यह त्रुटि मिलती है: त्रुटि: कॉलम "total.fld_id" ग्रुप BY खंड में प्रकट होना चाहिए या किसी कुल कार्य एसक्यूएल राज्य: 42803 कैरेक्टर: 8 टीबीएल = तालिका fld = column = SD_PRJ = स्कीमा नाम यदि आप अपनी क्वेरी की सभी पंक्तियों के लिए एक एकल योग की गणना करना चाहते हैं और प्रत्येक पंक्ति में fld_allocated_days के साथ इसकी तुलना करना चाहते हैं तो आप यह कोशिश कर सकते हैं: उपनाम के साथ (SELECT * से (SELECT tbl_project.fld_id, tbl_project.fld_allocated_days, tbl_project_timesheet.fld_allocated_time से "SD_PRJ...

ASP.Net MVC: How do I Reuse Views and Partials With Different Models? -

I need to show different form fields based on the type of user I'm saving. I have some user types and some user types have the same data, so you can imagine the following: TypeA: name, password, When I create a new user I can be in the context of any of these systems, but I Sector know that I am connected to how the system (a specific controller Siarudi each user), but I want to share ideas (if possible). So I have found: TypeAUserController, TypeBUserController, TypeCUserController, create, retrieve, update, and delete / remove / post actions of each one yourself. So the basic question is "How can I reuse the view to display for each user?" Edit: And For clarification, there is shared information for each user, this is the view that I want to share. The ideas that I had taken up to date, believe that the difference between the model will be partially explained and each potential model has its own view. That's why we are seeing a page-level mod...

c# - Is there a way to inline external functions into an EF Linq query? -

After let's say I have a function like this: on filterValue = GetCurrentFilter ( state) ; And then an EF query: var result = context. AntitySet.Where (x => x.column & gt; filterValue); This works, but as soon as I try to inline it: var result = context. Antisetset Where (x = & gt; x.column & gt; GetCurrentFilter (state)); It is not because EF link tried to parse GetCurrentFilter in the expression tree and it is unable to do it all this can be quite understood is. My question is, there EF Linq knows that in order to go for execution of GetCurrentFilter in a way when it creates trees and use its results In the tree like the result on = context.EntitySet.Where (x => x.column & gt; EfUtil.ResultOf (GetCurrentFilter (state)) ); Since GetCurrentFilter does not have parameters that are a part of the query, it is technically possible that if EF Linux can support it. I suspect that I am losing the right syntax for this. Make Ge...

swift - Adding UITableView to ViewController - Scrolling horizontaly -

I'm new to Im faster (and xcode), but I was thinking that I can see the UITableView I can add an existing ViewController (using the storyboard) divided into two: UIView1: 100% w, 50% h UIView2: 100% w, 50 I can scroll it horizontally by changing the UIView2 to UITableView so that my cells 100 % W , 50% h (related to MasterView ) How should I do this? I saw one, but it is not really straight forward and it is not using fast. any advice? If you are looking for a collection view not for a table view, a UICollectionView tile on an area Spreads and if there is a horizontal space in the area, then it will place all the cells in front of each other like a horizontal table view.

java - Insert to jTable date from MySQL -

Hello I'm jTable and I need to date jTable for this SQL query. But I can not include the jTable date from the rank, the second date is correct, but jTable 6 columns are empty. try {class.forName ("com.mysql.jdbc.Driver"); Connection thief = (connection) DriverManager.getConnection ("JDBC: mysql: // local host: 3306 / db_mafia useUnicode = true & characterEncoding = UTF8", "root", "qwerty"); Statement ST2 = con.createStatement (); ResultSet result2 = st2.executeQuery (select ". T *, @rank: = @Rank + as the post \ 1 n" + "(select id_user, (Select from users the nickname where id_user = id ), (Where name selects id_user = id), (select the nickname from users where id_user = id), by SUM (digit) as the number \ n by the number "n" + by the ASC by the id_user command group ) T "); While (result2.next ()) {(DefaultTableModel) jTable1.getModel ()). AddRow (new object [] {result2.getString (1), result2.getStrin...

javascript - How to conditionally pipe output in node.js? -

I want my stream to be piped in the second stream only if my first stream meets some conditions Requires es = ('Event-stream'); Var checkBuffer = function () {return es.map (function (file, cb) {if (! File.isBuffer ()) {cb ();} else {cb (null, file);}}); }; Module.exports = function () {checkBuffer.pipe (mysteryFoo ()); Return check buffer; }; I just want to pip in mysteryFoo if everything is near checkbacker then the file is buffer, and I do not want it to be a pipe. The function that pipe its output into this module gulp.src ('/ some-dest / **') . Thanks Take a look, which uses behind the scenes, To see if a vinyl file corresponds to a condition. Example usage is drawn from GullPoint: var gulpmatch = is required ('gulp-match'); Var map = requirement ('map-stream'); Var position = true; // TODO: Add business logic here vinylfs.src ('path / to / file.js') .pipe (map (function (file, cb) {var match = gulpmatch (file, posit...

java - Error setting expression X with value [Ljava.lang.String;@......] -

I sometimes get a weird error sometimes: Error setting Expression X with [Ljava.lang.String; @ ......] This is sometimes and sometimes not. This annoying cool error sometimes happens with this class: package com.coreRestaurant.menuItem; Import com.google.gson.Gson; Import com.opensymphony.xwork2.ActionSupport; Import com.opensymphony.xwork2.ModelDriven; PublicSquare MenuItemAction ActionSupport Imposes ModelDriven & lt; MenuItem & gt; {Private menu item menuItem = new MenuItem (); Private Final String DATABASE_PROBLEMS = "Error Code: Database Issues"; Private string Jason; Execute Public String () {MenuItemService itemService = new MenuItemService (); If (itemService.testDatabaseConnectionU ()) {setJson (New GSN). ToJson (itemService.getMenuItemsByMenuId (menuItem.getMenuId ()))); } Other {setErrorToBeSentBackToClientSide (DATABASE_PROBLEMS); } Return Success; } @ Override public MenuItem getModel () {return menuItem; } Public string getJson () {return js...

python - web scraping of web that blocks access for scripts -

is a website that I used to use a Pyro script (urllib). It seems that the website is now blocking my requests and whenever I request a web page using a script I get a html with some JS but without the normal data. Accessing the website from your browser works well. I tried to change the 'user-agent' to fit one who used my browser but it was not used. I saw that a strange behavior is that after accessing a page from my browser, I can access it from the script too. So my questions are: How can the server detect it is not a browser (can I change user-agent)? What kind of access can be the reason for the strange behavior of a web page after the web page has loaded? Is it caching? If yes, where is caching? Any idea how to move forward? (I do not have a very elegant solution to open every page before loading my browser, but it takes a lot of time) Thanks! To go without too many details, it seems like the site to include JavaScript loaders Has been updated to url...

python - pip repository APIs -

I am currently migrating a group of internal Python code to use setuptools, and accordingly I have an internal Need to install stores Need to host my new packages I have got many options (MyParP, PPSverver) but there are actually no documents executing APIs. Is there really any useful reference anywhere, Engineers have already found it? > By clicking the PyPI Developer Info link on the left sidebar, the documents can be viewed. Currently, this link takes you to the wiki. As mentioned, it has been a while ago. But perhaps this will probably not be updated, because "From 2013-11-11, PEPI is starting to write completely from scratch." Finally, the updated information should be available at the time, which should always be the latest documentation for anything related to packaging (currently, in some cases, "latest" means "so far Not written "...), as well as connected to PEPI. You can get the wiki page at any rate, and you will also get a link, w...

laravel - Subview cannot be found -

I am using Laravel 4.2 and I have a problem involving sub-ideas. I have 'header' in my thoughts and header.php in that folder looks like this: /app/views/header/header.php I have already dumped - projected the project directory. In my opinion (index.php), I have @ ('header.header') What am I missing? You need the blade extension on your index.php file Index .blade.php

Comparing string with an input string :: python -

I am trying to compare an input string, but whenever I enter Bark as input, the compiler goes directly to the second condition. If ignoring the condition and giving me the output "incorrect answer" def Main (): First_name = raw_input ("Enter the first name of President Obama:") #Input if firstname == ['B', 'A', 'R', 'A', 'C', 'K'] : Print "right answer" second: print "wrong answer" exit_key = input ('press any key to end') Is there any reason you are doing this? Try: if first_name == "barac":

ios - NSObject +(BOOL)isSubclassOfClass: method returning wrong result -

I have three categories:. ClassA, ClassB and ClassC ClassC ClassB inherited from Classa. XCTAssertTrue ([ClassC isSubclassOfClass: [ClassB class] ]); This gives wrong. XCTAssertTrue ([Classy Hashbys of Class: [Classes Class]]); Returns are correct. [class class class] superclus] return classab. Also note that when I give this truth in the test [ClassC isSubclassOfClass: [ClassB class]] console, even when I test this unit immediately in my unit test The code returns false to test already! Can anyone explain how this can happen? I tried to suggest Brian with comments. I get logging in with my unit test: 0x102a8c4e0 0x110d21820 Logging in to the console: 0x102a8c4e0 0x102a8c4e0 It is possible that both of your application targets and your unit are added Some of the class has been the test goal. Your class should only be added to the app target. From your editing, it seems that this is the classbie which is on the error - but it is w...

php - Regex running all matches together instead of returning separate -

I am working on a php script for a custom CMS that will replace a custom tag with information from the database . will be a tag like I have to remove the ID, suffix, and prefix specifications. In the code below, there is only one example on this tag, but if I have more than one, or if "->" is somewhere else on the page, then it is not working properly. It matches everything between the first " and the last " - & gt; " Instead of returning each match separately. Here is my current code if it is working properly, then this whole tag will have the value of" id " Finally, this will be data from database. gt; & lt; br & gt; Here & More Content & lt;! - NAV id =" 125 "suffix =" & lt; Br / & gt; "prefix =" & amp; Bull, "-> gt; & gt; & lt; / html & gt; '$ $ RegexNavPattern =' & lt ;! - nav. *? (?: (?: \ S + (id) = "([^"] +) "...

c# - Can I select a div by value in HtmlAgilityPack? -

मेरे पास div बिना आईडी या वर्ग मुझे चुनने की आवश्यकता है मैं मान से ऐसा करना चाहूंगा (चूंकि मैं इसे प्राप्त करने का एकमात्र तरीका सोच सकता हूं): & lt; div style = "" & gt; Foo: baa & lt; / div & gt; मैं यह कैसे कर सकता हूं? XPath क्वेरी की कल्पना करें: // div [(innerText, 'foo:')] आप इसके लिए देख रहे हैं: // div [contains (।, 'Foo:')]

How to compute derivative in Maxima -

In Maxima, want to calculate the seventh outline of tan (x) at x = pi / 4: F (x): = diff (tan (x), x, 7); F (% PI / 4); Still I can not get the results. I am a new user of Maxima and I can not find any related topics on the line. Please help me, thank you! I will do this, at (diff (tan X), x, 7), [x =% pi / 4]); The function diff gives a function as its result You can evaluate this function by using the on function. The second way to do this is like this, f: diff (tan (x), x, 7); On (f, [x =% pi / 4]); Now there is only one variable that produces diff and then used on Evaluate it at one point. I hope it will be helpful.

winforms - Knowing when a browser control receives a prompt for information c# -

I have a webbrover element in windows projects waiting for the document. However, the first page has been marked as "Load", there is an indication that asks for information. How can I program against this scenario; This is the site so that you can indicate that you are indicating: Just to be clear, I am looking for an incident that should be done when this popup box comes under my browser control Will go This looks like a standard authentication challenge by the site. Whenever you make a web it will probably fail with 401 because you have not supplied any credentials. When you navigate, you can do this (replace username and password strings with correct credentials) string HDR = "authorization: basic" + convert .ToBase64String (Encoding. ASCIIGetBytes ("Username" + ":" + "Password")) + System. environment. new line; WebBrowser1.Navigate ("www.url.com", blank, null, HDR);

java - How to get components from an AnchorPane in JavaFX -

My problem is I need to validate my form, and I did CSS styles and whatever I needed is. But I'm surprised that I have a way to get the components of my form through anchorpernay Is any way I get an element of an encrypted Fx: id? ? FxML Controller Member Reference Access Perhaps the best solution for you is that you are using FXL, using the context of that node The controller in the injection is When you have a fx: id element, you will have a related member in your FXML with a @FXML annotation. You can use the set mechanism to obtain the reference of your controller. Administrators can directly display the node directly through the recipient or (usually better), some properties represent the position of the node (such as the text of the label) and if you need to listen to those qualities and then Can manipulate Use of children on the pane You can call to get children of the panel, as well as if you need children from the Each child can get back together. A ...

javascript - Ugly render on clouds -

Image
I am trying to implement the code, but in a much higher ratio (radius = 100000 units) I do not know what the shape is, but rendering clouds on my land is a strange render. As a tutorial, I am using two areas and three textures (Earth map, collision map, cloud). Here the result (worse if the cloud is close): More clouds are close to the surface of the planet, and this mess is visible. If the cloud is sufficiently far (but it is not realistic) then the problem completely disappears. What can I do? Use logarithmic depth buffer instead of linear one This is a very easy change, when you have your Three. If you create Webgil renderer then enable logarithmic pathbuffer : var renderer = new three WebGL renderer ({Antialus: true, logarithmic dipth buffer: true} ); Here is an example you can see: The use of polygon offset as suggested by LJ_1102 is a possibility, but it should not be necessary.

java - JSP Expression Language get parameter -

I'm trying to get the string parameter "username" I have done some research with Expression Language , but there was no way to do this, let me get to $ {pageContext.request.parameter.username} Need something like that. How to obtain a specific request parameter using only the expression language? If you receive a feature from 'session', try it $ {username}. If you get a parameter from 'request', then try $$ {param.username}.

PHP MySQL Query Count the row in WHILE Looping -

MySQL क्वेरी का उदाहरण है: $ q = mysqli_query (" SELECT * से tb_post WHERE पोस्ट_id = '$ post_id' "); जबकि ($ d = mysqli_fetch_array ($ q)) {$ post_id = $ d ['पोस्ट']; $ Uid = $ d ['uid']; अगर ($ uid! = $ सत्र) {? & Gt; & Lt; div & gt; & Lt;? Php echo $ post_id; ? & Gt; & lt; / div & gt; & Lt;? Php echo $ uid;? & Gt; & lt; / div & gt; & Lt; br & gt; कुल प्राप्त करें पंक्ति:? & Lt; / div & gt; & Lt;? Php} अन्य {& lt; div & gt; & Lt;? Php echo $ post_id; ? & Gt; & lt; / div & gt; & Lt;? Php echo $ uid;? & Gt; & lt; / div & gt; & Lt; br & gt; कुल प्राप्त करें पंक्ति:? & Lt; / div & gt; }} अब जब मैं चाहता हूं कि डेटा प्रदर्शित होगा, यह यूआईडी सत्र के आधार पर पंक्ति पोस्ट की गणना करेगा और यूआईडी सत्र नहीं होगा। कोई उपाय? कृपया मदद करें। धन्यवाद

javascript - Trouble capturing data attribute -

I have a bulleted list and each list item has a data attribute for the country. I get the data attribute of active list item And I want to do stuff with it. For now, I'm just trying to alert it back in a message. However, I get the warning message [object object] Here is the HTML list: This is Javascript so far: $ (document) .ready (function ($) {$ ("li.country_name") (" Active "); $ (this) .addClass (" active "); var cc = $ (". Active "). Data (" country "); Var country message = $ (" your country is "+ cc +"! "); Alert (Country Message);});}); I am very new to javascript and jquery and it is trying to solve most days, but nothing is working. Can anyone help me point in the right direction? I have modified my code now. Please also check the comment: D $ (function () {// This function will be executed when the document first. Var $ li = $ ("li.country_name"). Function () {$ Li....

ios - Swift segmentation fault 11 due to variable scope -

The following code causes IDE to fail Xcode, and swiftc throws partition split (11): func testDeviceWillNotify () {Hope expected = (Details will be "ready.") Category FooMock: Foo {func accessoryDidConnect () {expectation.fulfill ()}} // ...} If I expectation.fulfill () does everything right then comment. I hope Have tried to expect and ? But any reference to expected is due to Xcode crashing. Using Xcode 6.1 (6A 1052D) And its extremely disappointing Do anyone know a way around this bug? Even writing a test will have another way. I do not know how it believes your code to work because the internal area is in the law area Automatically capture the variable in This is an optional solution class FooMock: Foo {var accessoryDidConnectFunc: (zero -> zero)? Func accessoryDidConnect () {accessoryDidConnectFunc? ()}} Func testDeviceWillNotify () {Hope expected = ("will be ready.") Foo = FooMock () foo.accessoryDidConnectFunc = {expectation.fu...

java - Convert String to Double? -

This is a two part code with a tester class. For some reason I can not understand how this string variable is correctly included in the equation granulation = grade - .3 and the granadum = grade + 0.3. any idea? / ** This is my class grade * / public class grade {private string grade; Private double grade no; // Constructor public grade (string shograte) {grade = showGrade; Gradence = 0; } // Getumrikik Grade method of grade number public double Milegetrigure (to) (if (GradekequalsIgnoreCase ( "A") || Gred.aksalagyatkas ( "A +")) {Grednm = 4.0;} else if (GradekequalsIgnoreCase ( "A-")) {gradeNum = 3.7;} if (grade.equalsIgnoreCase ( "B")) {gradeNum = 3.0;} else if (Gred.amenls ignore case ( "B +")) {Grednum = 3.3; } else if (grade.equalsIgnoreCase ( "B-")) {gradeNum = 2.7;} if (Gred.amenls ignore case ( "C")) {gradeNum = 2.0;} if (grade.equalsIgnoreCase ( "C +" )) {GradeNum = 2.3;} and if (Grade.Emang...