Posts

Showing posts from January, 2015

javascript - Rebuild element in jQuery vs. mass showing/hiding -

I have a paged table of data that I want to cache client side and I am trying to explain How to switch pages efficiently. Would it be better to do this: A DOM var page Lang = 50 to reconstruct and replace the table through an amendment; Var cache; // array of some objects from the Database Object Changes page (index) {var $ table = $ (" table & gt;); $ .each (cache, function (i, line) {var $ tr = $ ("& lt; tr>"); if (i> l $ .hide (); $ $ Tr.append ($ ("& lt; td & gt;", {text: row.Name})); $ table attached ($ tr);}); $ ("# TargetDiv") HTML ($ table). } or b. DOM The function is showing and hiding rows after inserting the change page (index) {var $ table = $ ("# targetDiv table"); . Hide $ Table.find ("tr: visible"); $ Table.find ("tr"). Each (function (i, line) {if (i> index & amp; amp; i & lt; index + page length) $ tr.show ();}); } I wrote something on the first lin...

php - How to use WP-reCAPTCHA on a form -

I have a WordPress 3.5.1 powered website on which the plug-in is wp-reCAPTCHA installed. This plugin places a recaptcha field at the bottom of the comment form of my website. For my life, I can not understand how on this template page I can use this template page on the comment form. If I download the stand-alone Reepakta code, and try to use it, then it throws serious errors because the same library has already been loaded, through the WP plugin. I hope someone can help me! Thanks, Ken You can bet if a reCAPTCHA class is already created something like if (Class_exists ('reCAPTACK')) {require_once ('recaptchalib.php' ); }

jquery - Start mobile webapp in fullscreen mode -

मेरे पास निम्न समस्या है: मैंने jQuery मोबाइल 1.2 का उपयोग कर एक वेबएफ़ बनाया है। अब मैं इस ऐप को एड्रेसबार, टूलबार आदि के बिना पूर्णस्क्रीन मोड में शुरू करना चाहता हूं। मैंने पहले ही वेब की खोज की है और यह पता लगाया है कि इस मोड को सक्षम करने के लिए कुछ मेटा टैग हैं: & lt; meta name = "व्यूपोर्ट" सामग्री = "चौड़ाई = डिवाइस-चौड़ाई, प्रारंभिक-पैमाने = 1" / & gt; & Lt; मेटा नाम = "सेब-मोबाइल-वेब-ऐप-सक्षम" सामग्री = "हां" / & gt; & Lt; meta name = "apple-mobile-web-app-status-bar-style" content = "black" / & gt; यह अभी तक सही काम करता है। लेकिन मैंने यह भी पढ़ा है कि ये टैग आईओएस विशिष्ट हैं और एंड्रॉइड के तहत नजरअंदाज करेंगे। मैंने सोचा था कि ढांचे को स्वचालित रूप से मोड पर स्विच करना चाहिए लेकिन यह काम नहीं करता है। क्या कोई विशेष वैश्विक वैरिएबल है जिसे मुझे हेरफेर करना है या कॉल करने के लिए फ़्रेमवर्क या स्क्रिप्ट स्निपेट शामिल करना है? धन्यवाद अग्रिम में! आप एंड्रॉइड में एड्रेसबार क...

internet explorer - Is IE9 compatibility mode a valid way to test IE7-8? -

Working on a site that requires IE8 support I'm testing the site located in VMWare Fusion on IE 8 - while My colleagues are basically testing on compatibility mode in windows IE 9. We are looking at very different versions of the site, with the closest of my VMWare IE8 client is looking at its IE8. Is IE9 a valid test for IE8 in compatibility mode? If not, then what is the purpose of this? Compatibility view is designed to imitate the rendering engine used by IE7, compared to IE8 True to all versions of the feature, including 8, 9 and 10. This is why your colleagues are seeing different results from you and your clients. The correct way to test for IE8 compatibility on IE9 is to use the F12 Developer Tool, which allows you to either IE5.5 (quirks), IE7 (compatibility), IE8, and later Allows to choose a rendering mode from any major versions that are in use. The purpose of the Compatibility View is to provide compatibility with old sites which depend on inheritance co...

Rails Form Label -

The label I'm trying to generate a label in my rail should look like this: & lt; Label = "member_ids_index> P> Where the index is the current recurrence of my loop below , And associate.name is a string, for some reason, I can not get my FLEL statement to generate it properly. Can someone help me? Below is the & lt;% if !@current_user.all_collaborators.nil?% & gt; current user @user.locolator.us_in_in_inxing | affiliate, index |%> gt; check_box_tag "Proj Ect_ids [# {index}} ", partner.id%> gt; & lt;% = f.label: member_ids_, '& lt; Span & gt; & Lt; / Span & gt; Partner.name%> & gt; & Lt; Br / & gt; & Lt;% end% & gt; & Lt;% end% & gt; Use label_tag : & lt;% if !@current_user.all_collaborators.nil? & Gt%; & Lt;% @ current_user.all_collaborators.each_with_index | Associate, index | & Gt%; & Lt;% = check_box_tag "project_ids [# {index}]", part...

TFS MSBuild Copy Files from Network Location Into Build Directory -

We are using TFS to make our solutions. We have some help files that we do not include in our projects because we do not want to allow our document writer to access the source. These files are placed in a folder on our network. When the build kicks, we want to get the files from the network location to the process and place it in a help folder which is part of the source. I have found an activity in xaml for the creation process named copydirectory. I think it can work, but I'm not sure which values ​​will be used in the destination and the source properties. After making each success, the build is copied to the network location. We want to copy the file from one network location to the new build directory. I can reach it wrongly, but any help would be greatly appreciated. Thank you. First of all, you may want to consider placing your documentation in TFS for your documented authors. You can access a separate folder or project without access to your source code. The adv...

javascript - AngularJS: Update template binding via directive -

I have modified AngularUI-Bootstrap direvtive for tooltips to help display error messages, here it is I've done so far: But I have a problem with dynamic messages. The first time you mousewish the first input field, the message is in the wrong place, that's because the model has not been updated correctly yet. Of course, the tooltip is in the right place after the second mouseover. But if the message fails again to display the changes. I am using $ parse to update the template: $ parse ('Tt_content'). Assign (scope, getErrorMessage (ctrl. $ Error) || attrs.tooltip); It seems that all the listeners have not updated again and the correct updates of messages / models are set to "$ ttHeight" and "ttWidth" are still set to "old" values ​​only $ Works with inspection, which is explained by the third example. I am stuck and I do not know what I did wrong? : The problem is that when you modify your model with $, you should manu...

java - Proxy Authentication Failed error -

I'm trying to bypass an FTP site firewall using it.sauronsoftware through proxy . Ftp4j.FTPClient I know my username / password is correct because I can connect using FileZilla. I tried to use Authenticator , but it has no use code: import java.net certifier; Import it. Cyron Software Footpie 4 J. FTPTP client; Import it. Cyron Software Footpie 4 J. Connectors FTPPCACAnctor; ... FTPClient Client = New FTPClient (); FTPProxyConnector Connector = New FTPProxyConnector (string "proxyhost", int proxyport); Client.setConnector (connector); AuthenticatorksetDefault (new certifier () {@ Override public Paswardathikeshn Praptpaswardatifikeshn ()) New Paswardathikeshn ( "Proksiugr", "Prokseepas" .to Crare ());}}) System.setProperty ( "ftp.proxyHost", "Proksihost") ; System.setProperty ("ftp.proxyPort", "ProxyPort"); System.setProperty ("ftp.proxyUser", "ProxyUser"); System.setProperty ("...

ruby on rails - Update if exists, else do nothing? -

I am trying to update a value of the model if only the model is present. If it does not happen, then I do nothing, the search returns only to renewal or question / answer, but I do not want to make it. I know that I can do it with a simple one: found = model.find_b_id (id) if the end of the updated content is found However, I think it is a way of doing this without specifying any temporary local values ​​in a call or if you have to. How do I write a rail, which will update the record of no noise errors, is not it present? The latest Rail 3.x You can use the method find_by_id or where Try back zero If the exception is not present, then there is no silent record. If the record is present, then it will be updated. found = model.fund_b_id () .try (: update_attributes, {key: value})

java - Counting loop executions -

I think how often a loop is executed, it is not certain how I would have to go about doing this. I am using Dr. Java, thanks in advance for your help! Before the loop, define a count variable: Int count = 0; Enlarge that step anywhere in the loop: count ++;

plsql - Oracle PL/SQL Trigger to only run if changes made to data after 9-5 hours -

I have created a basic audit table so that if there is any change in the 'Employee' table, Do, delete, time, user and what is the action stored in an 'audit employee' table. I just thought that it was possible to trigger the trigger only if the fire happened thanks thanks Thanks You can not control whether the time of day Will trigger the trigger on or not? However, you can add logic to the trigger so that you enter data in the history table only for a few hours. If employee = history (IN_char (sysdate, 'hh24'))> = 17 or to_number (to_char (sysdate, 'hh24')) and lt 7) something like .. if end;

c# - WCF Service- Does not implement interface member -

I am following a guide on how to add authorization to the WCF service now My problem is when I can make the service and remove it from the Dwarver (method), I get an error which says: 'test. Hello-service 'Interface does not test member' test. IHLL service Dockwork () This is obviously because I removed it, but is it needed? In the guide it is basically said that it is to remove the Duplar () method, so I am roasting the person who has written that he has missed something. When I make it service then it adds the HelloService and IHelloService files to the project. Need to add changes to iHelloService? Here is the code in HelloService.svc.cs using the system; Using System.Collections.Generic; Using System.Linq; Use the system. time. Timeliness; Using System.ServiceModel; Using System.Text; Using System.Web; Using System.ServiceModel.Activation; Namespace MLA_Test_Service {// Note: To change the class name "HelloService" in the code, svc and config ...

html - How to divide jquery tab to 4 equal divs? -

I am using the jquery tab, and one of my tabs has 4 Google charts (each contained by a div) . I want to be located on each of the 1/4 of the tab area (north, south, east and west of Scren). Right now my HTML is: & lt; Div id = "chartsTab" & gt; & Lt ;! - Div which will catch the Volume column chart - & gt; & Lt; Div id = "chart_div_volume" style = "width: 400; height: 300" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "chart_div_midp" style = "width: 400; height: 300" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "chart_div_spread" style = "width: 400; height: 300" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "chart_div_volatility" style = "width: 400; height: 300" & gt; & Lt; / Div & gt; & Lt; / D...

php - mcrypt not decrypting to same length -

I am trying to mcrypt some data using a class (methods below) such that you If you copy the data using the pack, you can use the unpack to retrieve the data. $ packed = $ server- & gt; Cash-> Pack ("pack", array (123,123,123), "password"); If (! $ Packed) {resonance "data could not be encrypted \ n"; } $ Server- & gt; Cash-> Unpack ("packed", "password"); When I pack it, do i var_dump on json_encode () data and get it: string (13) "[123,123,123]" When I open it, then I enter var_dump on mcrypt_decode () string I get it, and get it: string (32) "[123,123,123]" Why length is different? When I do the mcrypt_decode () string on json_decode () , I get back to null , and this is the reason I trim data I work, so it works, but I should not trim it. Here are the ways: & lt ;? Put Php public function ($ key, $ value, $ life = 0) {$ this-> Cache [$ of] = $ value; $ Life...

c# - SmtpClient hangs with no exception thrown if wrong port was specified -

Image
मैं मेजबान "smtp.gmail.com" के साथ पोर्ट 465 का उपयोग करते हुए अपने asp.Net C # आवेदन में ईमेल भेजने का प्रयास कर रहा था लेकिन पूरे आवेदन लटका हुआ है (लोड हो रहा है)। जब यह डीबगिंग है तो उसे SmtpClient.Send (msg) में फंस गया है। निर्दिष्ट किए गए क्रेडेंशियल के बावजूद, यह पकड़ने के लिए कोई भी अपवाद नहीं या किसी भी टाइमआउट त्रुटियों को नहीं फेंकता है। मुझे पन्ने पर पहुंच हासिल करने के लिए पेज को बंद या रीफ्रेश करना होगा। अगर मैं पोर्ट 587 को बदल देता हूं तो हर चीज ठीक काम करती है और SmtpClient.Send प्रतिक्रिया देता है और ईमेल भेजता है या एक उचित अपवाद देता है क्रेडेंशियल के आधार पर ऑपरेशन टाइमआउट या ईमेल भेजने में विफलता। मैंने प्रदर्शन के लिए नीचे कोड को सरल बनाया है: var smtp = new smtpClient {host = "smtp.gmail.com ", पोर्ट = 465, EnableSsl = true, टाइमआउट = 200, // या कोई भी मान यह समस्या को हल नहीं करता है DeliveryMethod = SmtpDeliveryMethod.Network, UseDefaultCredentials = false, क्रेडेंशियल्स = नया नेटवर्क क्रेडेंशियल (" name@gmail.com ",...

mysql - PHP echo a variable showing blank screen -

तो मेरे पास निम्न PHP कोड है & lt;? Php error_reporting (E_ALL & amp; ~ E_NOTICE); Ini_set ('display_errors', TRUE); Ini_set ('display_startup_errors', सही); $ Poscote = $ _POST ['पोस्टकोड']; mysql_real_escape_string ($ poscote); //! पृष्ठ पर सीधी पहुंच के लिए चेक अगर (खाली ($ _ POST)) {हेडर ('स्थान: index.php? Nothingentered'); मरने (); } Require_once ('../ कनेक्शन / प्रॉपइटिटी.एफ़पी'); Mysql_select_db ($ database_Takeaway, $ टेकऑवे); $ Query_PC = "SELECT * FROM Postcodes WHERE pc = '$ postcode'"; $ PC = mysql_query ($ query_PC, $ अधिग्रहण) या मर (mysql_error ()); $ Row_PC = mysql_fetch_assoc ($ PC); अगर (mysql_errno ()! = 0) {// mysql त्रुटि // ध्यान दें: इस तरह से संदेश उपयोगकर्ता को प्रकट नहीं होना चाहिए, लॉग इन में केवल "गूंज" गूंज में संग्रहीत होना चाहिए। Htmlspecialchars (mysql_error ()); मरने (); } Else {गूंज $ row_PC ['oc']; }? & Gt; यह निम्न कोड के साथ एक फॉर्म की प्रक्रिया है ...

AngularJs - Filtering out duplicates in select control -

Image
I have a selected list of Excel types, each one has a property with a front axle or a type of rear axle, Can not filter double words of 'front' and 'rear'. Update: HTML: & lt; Ng-model = "type axleType type type" ng-options = "unique type for type" & gt; Controller: $ scope.axleTypes = API.GetAxleTypes (); "Full-floating banjo housing", "", "type": "front", "id": 1}, {"$ id": "I id, telescopic type shock absorbers": "", "description" Type ":" rear "," id ": 2}, {" $ id ":" 3 "," description ":" something else "," type ":" rear "," id ": 2}, {" $ Id ":" 4 "," description ":" I beam, binocular type shock absorber "," type ":" front "," id ": 4}]; // This works $ scope.un...

rounding - In Ruby how do you round down a number to 2 significant digits -

For example, If I have 24 9 8 9 54, I would return 24 million Need, is it possible? Here's a greasy algorithm: n = 24987654 n / (10 ** (n.to_s.size - 2)) * (10 ** (n.to_s.size - 2) => 24000000

javascript - Automatically populate() on Mongoose document fetch -

Is it possible to automatically run populated () for sub-documents referenced for a particular model? I have a city model which refers to the area and country documents, which are brought to a city / city when I would like to automatically populate. Well, for this there are no Docs in the Mongoose website; What I do, is something like this: schema.statics.createQuery = function (populat) {var query = this.find (); Populates.forEach (function (p) {query.populate (p);}); Return query; }; Of course, this method has verification and some other stuff, but essentially what do I do with my model. In your case, you can work hard to populate in such a method, if you need them strictly in each similar call.

java - Generic Lower bounded Method -

Assume that I have the following classes animals , fish And catfish . Catfish extended fish and fish extension animals . MyPets is a general category called , in which there is a type parameter (normal) called T , and with paragraphs Will be done. Objects. My question is, how do I create a lower bound method in D which is the catfish class. . TL; DR: Type parameters can have several bounds, such as a class box {...}. But there can be no lower bound in a type parameter, that is, a composition such as the class box {...} is not allowed. why not? The answer is: It is useless because it does not buy you anything, it is allowed.

java - Spring MVC mapping doesn't work after resources mapping implemented -

In my reference file, I want to add a line to be able to access the static content. Everything is fine until I add it, but after adding it, I can not access some controller pages and I get this warning: Warning: org.springframework.web.servlet. PageNotFound - No mapping found HTTP request with URI [/ fit /] DispatcherServlet with name 'mvc-dispatcher' . The reference file should be & lt; Mvc: resource mapping = "/ resource / **" location = "/ resource /" /> /> Before adding, it looks like: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Beans xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: reference = "http: // www. Springframework.org/schema/context "xmlns: security =" http://www.springframework.org/schema/security "xmlns: mvc =" http://www.springframework.org/schema/mvc "xsi:...

osx mountain lion - Running Python Script with Launchd: imports not found -

I try to set a script to run a python program at regular intervals using laund Python program fails because it can not import my-- I know this because I have caught errors in the log file. To solve this problem, I made ~ \ .macosx \ environment.plist , and duplicated my PYTHONPATH , logged out and logged in again. It seems to be inadequate to solve the problem, and I'm trying something else. I am running OSX, 10.8.3 Related threads: (Not applicable - my script indicates right python example) Update: It seems that I can run the following command: Launchat Satellite PythonPath $ Pethon Path and the script will be executed successfully. So, to modify my question: Where is it stored? I examined ~ \ .launchd.conf and \ etc.launchd.conf , and did not exist. It's possible that when I reboot this setting is dumped. Where can I change this information so that laund gets it? Use the environment key key in the job definition To create a specific...

python - Error when using a string as a parameter -

मेरे पास फ्लोट्स [234, 533, 734, 964, 623, 744, 244, 353, 264] । फिर, मैं इसे "(234, 533, 734), (9 64, 623, 744), (244, 353, 264) जैसे एक स्ट्रिंग में प्रारूपित करता हूं" । यह फ़ंक्शन का एक प्रारूप उदाहरण है जिसे मैं इसे पास कर रहा हूं: cmds.curve (p = [(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)]) यहां मैंने जो प्रयोग किया वह एक त्रुटि लौटा था: cmds.curve (p = [पीएसटीआर]) यहां त्रुटि है: रेखा 142: ध्वज 'पी' के लिए अमान्य तर्क अपेक्षित (दूरी, दूरी, दूरी), [str, str] # एक इसे आज़माएं और देखें कि यह आपके लिए क्या काम करता है मुझे लगता है कि आप अनावश्यक रूप से एक स्ट्रिंग में कनवर्ट कर रहे हैं। floats = [234, 533, 734, 964, 623, 744, 244, 353, 264] समूह = [टपल (फ़्लोट्स) [I: i + 3]) में श्रेणी के लिए (0, लेन (फ़्लोट्स), 3] cmds.curve (p = groups)

How to cherry pick 2 out of 5 commits of a pull request on GitHub? -

I'm new to GitHub. Someone submitted a bridge request with 5 commits; 3 of them have a slight bug, though , So have to wait. How can I choose between 2 of them for my project? The ideal solution is to leave a comment The second solution, from the page " To apply for the PR "(Request Bridges) to re-submit your bridge request with only 2 commands, you must send the Contributor to" Merge locally on your local clone, In a dedicated branch. You can choose the right cherry as you like, and bring them back to your repos, but make sure that leave a comment in the discussion section of the bridge request You only took 2 out of 5 commitments, Contributor should reubish his work at the top of his newly updated master (which is now 2 Comits included), and the last (and hopefully fixed) 3 commitments Re-submission of the bridge request. This is similar to the first option, except that you do not have to wait for the fix: you can test and push locally, wha...

access the user's setting for tv provider in Google TV? -

Is there a way to access a TV provider that is specified during the user's setup of Google TV? For example, setup for my zipcode includes TV providers such as Comcast, Dish, Direk TV etc. My app duplicates this setup widget because it should also know the user's TV provider. Instead, I want to ask Google TV system about that user's settings. content: //com.google.android.tv.provider/devices Changed the URI to the provider in the latest update on content: //com.google.tv.mediadevicesapp. MediaDevicesProvider / devices DEVICE_ID = "device_id"; // like Atsc01 LINEUP_ID = "lineup_id"; // TMS like: OTA94043 DEFAULT = "is_default"; // 0 or 1 - Also changed from "default" I am responding here because I mentioned this in the release note in the previous year. This is a rare use case since the experiment, there is no guarantee that we will support it for a long time.

linux - leave instruction returns a seg fault -

I have a regular caller who regularly calls, where the value in the ebp register is expected I change it several times in routine. So, I can not: mov ebp, esp at the top of the code. I tried to save the esp address to another and before that leave instructions this address was placed in ebp but now I There is also a sectional mistake How can this be decided? The code is too big (to post here, but I can post if needed), but this idea is something like this: ; Several arguments are passed in Stack Foo: X-ray ebayx, ebx mnx xx, ASP loop 0: all adx, 1gje and; Etc. MOV EX, [ESP + EBX] MOE EBP, EX Call RTINET etc.; ..; ... mov ebp, edx call printx add ebx, 4 jmp loop 0 end: mov ebp, ecx leave ret I hope this code is enough for you to consider this .. Also like an explanation. what leave is: MOV esp, ebp pop ebp If you want to use it and want to work it out, you can EBP Move EBP, ECX Lodge Press at the end of your function. Of course, if you do this, ...

python - error when using pygame.image.load() -

When I try to load an image in another folder ... pygame. Error: Sprites / testtile.png can not be opened I can properly load .png files if they are in the same directory, but once they are in another folder, then this error Meets. P> I know that Python can also be used in other folders, because I can not find any error in importing API files. When I try pygame.image.get_extended it gives 0 but loading.PNG files do not give me any trouble from the same directory, so I do not think this is the reason. I am running Pychem on the way, and I feel like always, with this IDE, I do not even think that it is a pajama issue. There is no clue at this point. folder structure: script / graphics driver.py sprites / testtile.png driver, access to testile.png file Trying The directory with the graphics driver is the sprites directory. Py? You can run some problems with PyGame Image Loader. It looks for files in the same directory, such as PyGame was initialized. Point it...

javascript - Programmatically triggering a long tap on a link in a UIWebView -

Is there a way to trigger a long tap on a link within a UIWebView program, Which do the relevant menu action sheets appear? I know that it is possible to get a link from its ID and click on [webView stringByEvaluatingJavaScriptFromString: @ "document.getElementById ('linkId') by using the program. > Can a function change I click to turn the long tap on instead of a regular left click? Any solution that references The menu presents, not only with Javascript, will work for me, as long as the presented menu is actually There is only one that is presented long after the tap. You just have a UIActionSheet can present the program and it can look like a long press like this: UIFSAT AC = [[UiXShethe Elok] Init with Title: @ "Link Action" Rep: Automatically CancelTutton: @ "Cancel" Destructive Button: Any other Button Title: @ "Safari Open Link ", @" Copy Link ", Zero]; Do not forget to apply the representative...

Can explain this block Code to me PHP XML DOMDocument Syntax -

I am currently learning different ways using XML document tags, using the php DOMDocument object, I Understand foreach to loop through the tag, but $ element-> Items (0) - & gt; Child nodes-> Items (0) - & gt; Node Vela is not quite clear Is anyone can tell me in detail? Thank you. & lt ;? Php $ xmlDoc = new DOMDocument (); $ XmlDoc- & gt; Load ('StudentData.xml'); $ StudentRoot = $ xmlDoc- & gt; GetElementsByTagName ('student'); ($ I = $; $ i & lt; ($ studentRoot- & gt; Length); $ i ++) {$ firstNameTags = $ studentRoot- & gt; Items ($ i) - & gt; GetElementsByTagName ('first name'); Echo $ First Name Tag- & gt; Items (0) - & gt; Child nodes-> Items (0) - & gt; Node vale '& Lt; Br / & gt; '; } / * So simple and clear to understand! * / Foreach ($ student $$ root as node) {/ * each & lt; Students & gt; Tag it as a separate node, move it into the child's node, and for ea...

css - backstretch image overlapping navigation -

How do I get a navigation to come back to the backstretged image? As soon as it loads, it appears on the navigation, which becomes very clickable / overlooked at that point. "post-text" itemprop = "text"> You need to move the image behind the rest of the page content. #backstretch {z-index: -1; } should move in your CSS.

jQuery selector syntax for value of innerText -

I am trying to add a click event to a tab that is generated by the telephonic ASP.NET widget. I picked up a bunch of HTML generated in a static page for the purposes of the experiment: gt; & lt; / HEAD & gt; & lt; body & gt; & lt; ul & gt; ; & Lt; li class = "rtsli"> gt; & lt; span class = "rtsOut"> Preferences & lt; / Li & gt; & lt; li class = "rtsli"> gt; & lt; span class = "rtsOut"> & lt; / li & gt; & lt; / ul & gt; & lt; / l & gt; & lt; / ul & gt; Lt; / body & gt; & lt; / html> Debugging shows that foo is expected as two items, however, I choose syntax to select another one Could not understand where the value of internal text is "more". The question is how did I show innerText == 'more' expression in a text or directly in the selector string? Try: Warning : strong> However this wi...

c++ - when to call _findclose? -

Note: Since the problem has been solved, I have added comments to my original posts. According to "", it has been said: * You end up using _findfirst or _findnext function (or any form) after you call _findclose should do. This frees up resources used by these functions in your application. * - Note: This is unclear, but what Microsoft is trying to say: Some users need to find the first file (they do not need to call _findnext ), Then call _findclose; Some users are called _findnext (they are already called _findfirst), after finishing using them, call _findclose. In fact, _FindNext can be called multiple times, while _FindCalues ​​is responsible for only one handle, which is made by _findfirst. and the following is a piece of code that is widely used for the list of files in the directory. - Comment: That's right. For example, if the directory contains 2 files and 1 directory then: . .. ddd file1.txt file2.txt _findfirst is called once. The handle ...

ajax - Joining concurrent/identical HTTP GET requests? -

Do the browsers get similar HTTP GET requests at once? At least, for static or cache-capable content? That is, if something happens: | AJAX / HTTP-GET (resourceX) | [Download Start] ------------------------------------------- & gt ; [Full download] | | AJAX / HTTP-GET (resourceX) | [Start Download] ---------> Etc. ... ... + ------------------------------------------ ------- ----------------- & gt; Time The browser will know "Hey, you are already trying to download resource resources! Do not try to download it twice, it will not do anything!"? ** Update: Now, I can try to download a large file by going to some site (like "Bigfile"), and click on the link twice; This (duplicate) will download both BigFile and BigFile (1). Valid, this is an error in the part of the user, but still ... For cache-capable resources (for example, downloading some javascript file), it seems that the browser is duplicating these Can not understand .. The brows...

sql - Stored Procedure algorithm taking 9 hours- better way of doing this? -

I need to create a SQL stored procedure that is basically an existing table (approximately 150,000 lines) Updates with The table which will end this stored procedure is basically a list of people, their names, addresses, etc. Now the algorithm for the person's ID is as follows: - First take the first 4 letters of the first person - take the first 2 characters of the persons with the last name - at the end with a count number 0 Do the rest pad with, unless the area is 8 characters. For example, John Smith's name would be 'JOHNSM00' if 2 were John Smith, the next person will be identified as JOHNSM01 For example, if the person's name was FI LYNN, then the ID will be FILY0000. I've got the following stored procedure written by me, but it takes about 9 hours to run! Is there a better way of doing what I am missing? Optional process [dbo]. [LM_SP_UPDATE_PERSON_CODES] DECLARE @NAMEKEY NVARCHAR (10) DECLARE @NEWNAMEKEY NVARCHAR (10) DECLARE @LENGTH INT D...

ios - Replace text in UITextView run slowly -

I have a UITextView and I change a word like the code at the end of UITextView.text: - (void) Replace TexttechWitWord: (NSString *) word {NSString * currentTextViewText = self.textView.text; CurrentTextViewText = [currentTextViewText stringByReplacingCharactersInRange: NSMakeRange ([self.textView.text length] - [word length], [word length]) withString: word; Self.textView.text = currentTextViewText; } Replacement work is fine, but it runs very slowly and very slowly when the textView now lengthens Is there any better way? I try the replacement range: with text for a week but still stuck. Not to know how to use it to replace it in your case. Please guide! Thanks in advance! This is an important job. As you are using an irreversible string and you are creating a very long string and before Assigned to NSString created from. NSString will be used instead of NSMutableString . - (UITableViewCell *) TableView: (UITableView *) Table View CellForOutPath: (NSIndex...

excel - How to extract Hours from the date time format 12/10/2012 12:18:58 PM? -

How can I take time out by date time format 12/10/2012 12:18:58 PM ? I got this hour (format (D1, "mm / day / yy hh: mm: shhhh 24")) , but not = TEXT (D1, "hh") and format as time

javascript - preventing copy paste using jquery -

Need to stop copy paste in text box using jquery How to implement it? & lt; Table & gt; & Lt; TR & gt; & Lt; H: Input-label value = "genuine" & gt; & Lt; / H: InputLabel & gt; & Lt; TD & gt; & Lt; H: InputTest ID = "Genuine" style class = "Input-Tech" value = "# Bean Caesar" & gt; & Lt; / H: InputText & gt; & Lt; TD & gt; & Lt; / TR & gt; & Lt; Table & gt; Go to: $ (document) ) .ready (function () {$ ('# real'). Tie ("cut copy paste", function (e) {e.preventDefault ();})}}); Note: Opera does not support cut, copy and paste events before version 12.10 .

How to restrict the WebView inside in android program -

I restrict webView limited inside some pixels I want to do that which is declared at the time of initialization webView insert = find VVBIID (RID layout); Webview web = new webview (this); Web.setBackgroundColor (Color.GRAY); Int lHeight = 200; Int lWidth = 200; (Include (view group)) .addView (Web, ElwoodD, L HEIGHT); Web.loadUrl ("http://www.google.com"); Edited: Full screen is taken by that WebView , it is not inside 200px * 200px . Edit: & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http: //schemas.android.com/tools" Android: layout_width = "wrap_content" Android: layout_height = Android: paddingBottom = "@ Dimen / activity_vertical_margin" Android: paddingLeft = "@ Dimen / activity_horizontal_margin" Android: paddingRight = "@ Dimen / activity_horizontal_margin" Android: paddingTop = "@ Dimen / activity_vertical_margin" t...

node.js - npm install not working -

I have just started learning node.js and I have installed npm.js with npm module manager. I've created a package.json file and trying to execute the npm install command from the root directory, instead of creating the npm_modules folder, it throws an error like this: C: \ Users \ Username \ desktop \ Nodetest & gt; NPM Install NPM Warne Package. Jason Backbone - Library @ 0.0.1.1 No README.md file was found! Npm http GET https://registry.npmjs.org/mongoose npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/path NPM HTHP https: // Registry Gone .npmjs.org / path npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/mongoose go to npm http https://registry.npmjs.org/express npm Http Https://registry.npmjs.org/path Get NPM HTTP https://registry.npmjs.org/mongoose NPM ERR! Error: Connect ETIMEDOUT NPM ERR! On wrong appointment (net.js: 863: 11) NPM ERR! On object. Connect later [incomplete] (NET JS: 854: ...

bash - How would I send the output of ls to a for loop that assigns arguments to a case statement? -

छद्म कोड होगा $ (ls -d * /) में OUTPUT के लिए मामले $ आउटपुट में 1) $ आउटपुट ;; Esac किया *) echo -e "ओह !!! कृपया कोई मान्य संख्या चुनें"; निश्चित नहीं है कि यह संभव है या यदि यह समझ में आता है? सबसे पहले, ls को पार्स नहीं करें। बस ग्लोब का प्रयोग करें: में OUTPUT के लिए * / दूसरा, चुनें पर बाश दस्तावेज़ीकरण।

xslt - How to apply different page width for different pages in xsl? This is for generating PDF -

I would like to create a PDF using XML and XSL. On PDF I need different width for different pages. How can I get this? Thanks and Regards Krishnan a full xsl -fo sample: & lt; Fo: root xmlns: fo = "http://www.w3.org/1999/XSL/Format" & gt; & Lt; To: Layout-Guru-Set & gt; & Lt; Fo: Simple Page-Master Page-Height = "10cm" Page-width = "5cm" Master-Name = "Format 1" & gt; & Lt; Fo: area-body / & gt; & Lt; For /: Simple-Page Master & gt; & Lt; Fo: simple page-master page-height = "5cm" page-width = "10cm" master-name = "format 2" & gt; & Lt; To: Area body / & gt; & Lt; For /: Simple-Page Master & gt; & Lt; For /: Layout-Guru-Set & gt; & Lt; Fo: Page-Sequence Master-Reference = "Format 1" & gt; & Lt; Fo: flow flow -name = "xls-field-body" & gt; & Lt; Fo: block & gt; Test format 1 & lt; / F...

Python string interning -

While there is no real use in the behavior of this question, I'm curious how the Python string interns. I have noticed the following. & gt; & Gt; "String" is "string" & gt; & Gt; This is true It was just like I expected. You can also do this. & gt; & Gt; "String" + "G" is "string" & gt; & Gt; S1 = "strin" & gt; & Gt; S2 = "string" & gt; & Gt; S1 + "g" is s2 & gt; & Gt; Incorrect Python does not have an evaluation of s1 + "g" , it is realized that it is like s1 and it is the same Point to the address? In fact, what is happening in that last section from which it is incorrect Implementation is specific, but your interpreter is probably stabilizing the compilation time, but not the result of run-time expressions. I use CPython 2.7.3 of the following. In the second example, the expression "strin"...

javascript - webrtc - voice does not work -

I want to use webRTC to show videos from my camera and want to hear sound from my microphone but voice does not work Does you have any idea why my code does not work properly? JS if (navigator.getUserMedia) {navigator.getUserMedia ({video: true, audio: true}, onsput, on error); } Else {console.log ('Tooza Prejalagarka Nai Obliggege WebRTC - GuestUsermedia'); } Success on the ceremony {stream} {var video = document.getElementById ('webcam'), VideoSRC; // audiocontax, // mediastream source; If (window.webkitURL) {videoSource = window.webkitURL.createObjectURL (stream); } And {videoSource = stream; } Video.autoplay = true; Video src = videoSource; Var in audiocontext = 'audioconnect' window? New audiotent (): (('WebKitAudioContact' window)? New WebKitAudioContact (): Null); If (audiocontext) {var mediaStreamSource = AudioContext.createMediaStreamSource (stream); MediaStreamSource.connect (audioContext.destination); } Else {// ...}} before Chr...

Dynamic Google Maps Location for PHP and MySQL Driven -

I have a database based site where it gets the address and the address is shown on Google Maps. Here is the string in which Google Maps is embedded. I do not have the latitude of the letters, but I have the address and the area. Locations are not visible. & lt ;? Php $ add = $ row_rsDoc ['address']; $ Address = str_replace ("", "+", $ add); $ Gtown = str_replace ("", "+", $ row_rsDoc ['city']); $ Gprov = str_replace ("", "+", $ row_rsDoc ['province']); $ Googlestr = $ address ',' '+' $ ​​gtown ',' '+' $ ​​gprov ...... Echo $ googlestr; ? & Gt; & Lt; Th width = "446" square = "entry" scope = "col" & gt; & Lt; Iframe width = "441" height = "243" frameborder = "0" "No" marginheight scrolling = = "0" marginwidth = "0" src = "https://maps.google.co.za/maps?...

Android - XML layout vs programmatic -

I am trying to use a custom class with a relative layout that spreads the view, and some buttons (Forgive me to post a link instead of an image, apparently I'm not enough yet) Currently this DP Is hard with heights (see XML below), and there are two problems with it: This is acceptable only on my Nexus 7 screen, And no other device The 'Draw method' on two custom methods still provides the height and width canvas which corresponds to the solution of the device if If I try to set Layout_Height, then try to pick up each custom full screen, which looks like a bullet point 2, but clearly I do not want to. What I want to achieve is a relative layout with two custom ideas, which is shown in the picture, but in the dimensions of the screen that came on the screen, it will be enhanced and custom view Canvas really knows how big this is on the screen. How do i do this Edit: This is because "Programming vs." is that I think it will not be bad to overrid...

internationalization - Cakephp delete translation for specific language -

I have tried to make some translation behavior on a model. But how do I delete a specific translation? My example is a class in which its name should be translated, which should be translated. Let me have a translation in English and Spanish How can I delete the Spanish translation? Offcouse I can create my own SQL query but there is a way to do this in the cakepp. there is no cake function to do this However, receiving This is quite easy for Delete all translations for a given location Any destructive action to remove all translations for a given locale - by doing anything First DB backup can first fix a mistake or remove something unexpected): Delete from i18n WHERE locale = 'AS Minister '; Of course, the locale depends on your specific application - you can check your configuration, or just ask DB: SELECT DISTINCT (Locale) FROM i18n; Delete all translations for a given locale and model Just add a model status: Delete from i18n WHERE Locale...

java - re-rendered attribute in JSF -

मेरे पास नीचे जैसा एक फ़ॉर्म है: & lt; h: form id = "x "प्रीपेडआईडी =" गलत "& gt; & Lt; h: डेटाटैबल आईडी = "वी" मान = "# {userBean.cdManagerCollection}" var = "सीडी" सीमा = "1" & gt; & Lt; f: पहलू नाम = "हेडर" & gt; टेस्ट टेबल & lt; / f: पहलू & gt; & LT; ज: स्तंभ & gt; & Lt; f: पहलू नाम = "हेडर" & gt; & Lt; h: आउटपुट टेक्स्ट वैल्यू = "नाम" / & gt; & Lt; / च: पहलू & gt; & Lt; h: इनपुट टेक्स्ट id = "शीर्षक" मान = "# {cd.title}" / & gt; & Lt; / h: स्तंभ & gt; & Lt; / h: datatable & gt; & Lt; इनपुट प्रकार = "छिपी" id = 'btnName' name = "btnName" मान = "लागू करें" / & gt; & Lt; a4j: commandButton id = "btn" value = "SUBMIT" क्रिया = "# {userBean.processCD}" रीरेंडर = "x" / & gt; & Lt; / h: प्र...

javascript - How grunt watch files in sub folders? -

Files in my code folders and in this way, you never know how many sub folders in it: js / sub 1 / ajs js / sub2 / bjs js / sub3 / sub 31 / cjs js / sub4 / all 41 / sub 411 / djs grunt.initConfig ({clock: {src: {files: [js / * .js'], tasks: [ ]}}}); 'js / *. Using Js' can not see the change in all my Javascript files. So how to write the correct file path expression? For each copy, the directory path and some file types in its subdirectory, you would like to: Files: ['js / ** / *. Js']

api - How can i import and read bookmarks of MS word in to Java -

This is a very difficult question and I searched for it and I did not find a good answer! I want to read the MS Word (key) bookmarks and want to set up the word in the Word with the Java program language! How can I do this? Apache did not work with POI! :( Thank you OK I have got the solution, and the program is written. But this is just for the new MS Word (.docx) I wrote a method for my old version (.doc) but it was not working properly. For the old version we have to send Org.apache.poi.hwpf but for the new version org.apache.poi.xwpf ! And MS Word or MS Office To setup, we should use the Jacob Project . Ask me again

JAVA - Figuring out the difference -

I have the problem below, although I am unable to pass it all the tests, regardless of what approach I take. Does anyone tell me where I am wrong? Math to Problems Be sure to use the BAS () and IF statements, using a loop / function / etc. //////////////////////////// Problem statement //////// /////////////////////// Three entries, ABC, are given if one or one of the b is "closed" // // (maximum of 1 Different from), while the other is "distant", which is // // different than that of 2 / or more. Note: Math.abs (num) // // evaluates the full value of a number. // // 1, 2, 10 - & gt; True // // 1, 2, 3 - & gt; False // // 4, 1, 3 - & gt; truth // /////////////////////////////////////////////// //////////////////////////// My Account: if ((Math.abs (ab) & lt; = 1 || Math.abs (A + B) & lt; = 1) & amp; (Math.abs (ac) & gt; = 2 | Math.abs (a + c)> = 2)) {if (Math.abs (ac)> = 2 || Math.abs (a + c)> 2 =) Println ("true...

vba - Query by Form: How to incorporate date ranges taken from a form -

The following code does not seem to work (added in the criterion of query in MS Access) when I only with DTDAT I try the condition, it works fine, but when I apply the second condition, its work never gets done. = [Form]! [DtDateFrom] and & lt; = Two dates of the code below have been compared [forms]! [DRDM AGRAR]! [DTDTO] 'Check that Dates are valid if Maye DTDATO & lt; = METDETFrom 'then ask the user to change the dates, then pop up the message as they are not valid messageboxes ("Sorry,' Date 'can not be before' Date '& amp; vbCrLf & amp; Choose a different date range ") Other 'Something else is End if Your code does not work and because of - - It means to test two conditions for truth, Typically example a = 5 if someone has a & lt; 10 and one & gt; 4 Do something In order for both of these conditions to work, this should be true

android - Standard image gallery app -

I am trying to write simple applications where I can swipe between photos (such as the standard gallery on each device App). The standard shows an impressive performance - it only displays the next photo at the next 15MB memory time, it seems that it keeps the next and previous images in memory, so they do not delay due to loading from SD-card it happens. I suppose that if the app keeps such size items in at least 3 bitmap memory, then it will take more than 15 MB. So how does it work? Do not use bitmap or what? Thank you. Remember that the bitmap on the screen is not the size of your original file. Take a 720p screen for example, a 4096 * 3072 photo will be decoded and will be resized for the size of the screen. Even the APP may also be using ARGB8888 format to display a bitmap memory size of 1280 * 720 * 4 = 3686400 bytes, which is about 3.5 m. And if we use the RGB 565 format, the size will be half-truncated. What's more, the whole picture is not 'full s...

mysql - Employee details not displaying properly -

हाय यह डेटाबेस संरचना है। कर्मचारी (कर्मचारी-नाम, सड़क, शहर ) काम करता है (कर्मचारी-नाम, कंपनी-नाम, वेतन) कंपनी (कंपनी-नाम, शहर) का प्रबंधन (कर्मचारी-नाम, प्रबंधक-नाम) मुझे निम्नलिखित विवरण प्राप्त करने की आवश्यकता है मेरे ट्रेनर के अनुसार यह गलत है, क्या कोई भी मुझे बता सकता है कि निम्नलिखित प्रश्नों में क्या गड़बड़ है? प्रथम बैंक निगम के लिए काम करने वाले सभी कर्मचारियों के नाम, सड़क के पते, और निवास के शहरों को खोजें और इससे अधिक कमाएं $ 10,000। ई-कर्मचारी-नाम का चयन करें, कर्मचारी से ई-कैटी और ईनियर जॉब में ई। कर्मचारी-नाम = w.employee-name और w.company-name = â पर काम करता है? ??? सबसे पहले बैंक निगम ???? ग्रुप द्वारा ई। कर्मचारी-नाम HAVING w.salary & gt; 10000 उन सभी कर्मचारियों को डेटाबेस में खोजें जो उसी शहर में रहते हैं, जिनके लिए वे काम करते हैं। का चयन करें e.employee-name कर्मचारी से ई इननर में शामिल हों e.employee-name = w.emploee-name पर काम करता है INNER JOIN कंपनी c पर w.company-name = c.company-name GROUP BY e.employee-name HAVING e.city = c.ci...

mysql - Separating comma broken words in PHP and selecting extra information -

I am trying to look into it for a while, but no answer can be found which coding is correct Basically I have a 'mysql' table that is a 'connection' related to a user. These connections are different with a comma: connection1, connection2, connection3, connection4, etc. What do I need to do to isolate each one in an array like this? : $ connection1 $ connection2 $ connection3 $ connection4 Then for each of these I need to select the sorting information from a different table, For example: (selection number, user name from user where username = (all connections above)) It is simple to use the explosion function of php. $ text = "connection1, connection2, connection3, connection4"; $ Res = Explosion (",", $ text); Forex currency ($ res = $ i = & gt; $ id) {ebb $ res [$ i]; }

Reading a wordpad file with 3 columns in Java -

I want to read a text file that contains a space separated value. Values ​​are integers, how can I read it? I want to read each line and after going to the next. The content is in the form of an example: "12/11/2012" "00.00.01" 0,100 "12/11/2012 "" 00.00.05 "0,140 " 12/11/2012 "" 00.00.0 9 "0,240 " 12/11/2012 "" 00.00.13 "0,247 The first column is the date, the second is second and the third is liters. How can I do this a Java program? I think of using the scanner class I created this program: import java.io.file; Import java.io.phileNotFoundException; Import java.util.Scanner; Public class scanner example {public static zero main (string algos []) throws FileNotFoundException {text of the file = new file ("C: \ Users \ Desktop \ test \ test.txt"); Scanner scanner = new scanner (text); Int Lincoln = 1; While (scnr.hasNextLine ()) {string line = scnr.nextLine (); System.out.p...

Reading a string in C until an integer is encountered (in file) -

How long can I read a string in C, unless I get an integer? For example: 1000 ball pen 12 15 24 I need to separate the "ball pen" from the integer. How is this done? By the way I would have to do this to get the full line To use it, manually parse it by doing something: Read the initial integer. It can be done easily. . Read the letters, when they are not points (using). Unless you have all the numbers, then strtoul in a loop.

asp.net mvc - how to bind column value from database to html dropdownlist in mvc4 using ado.net -

I want to bind the database value of the database to dropdown using the stored procedure in mvc4, how do I handle it I do not know. Plz me My model code is such that public class dropdown {string conn = System.Configuration.ConfigurationManager.ConnectionStrings ["cnstr"]. ConnectionString; [Required (error message = "domain name is required"]] [display (name = "domain name")] Public string domain name {get; Set; } Public IEnumerable & lt; Dropdown & gt; Obj {get; Set; } Public listing & lt; Dropdown & gt; Loaddown (dropdown model) {list & lt; Dropdown & gt; Obj = new list & lt; Dropdown & gt; (); (Using SqlConnection con = New SqlConnection (conn)) {try {con.Open ()} SqlCommand cmd = New SqlCommand ("SelectDomainName", con); Cmd.CommandType = CommandType.StoredProcedure; SqlDataAdapter da = New SqlDataAdapter (cmd); Dataset ds = new dataset (); Da.Fill (DS); For (int i = 0; i & lt; = ds.Tables [0] .Ro...

c++ - GetCurrentHwProfile was not declared in this scope using MinGW's g++ compiler -

I am trying to get the hardware GUID, and I found this function posted on the web. #define _WIN32_WINNT 0x0400 #include & lt; Windows.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Tchar.h & gt; Int main () {HW_PROFILE_INFO hwProfileInfo; If (GetCurrentHwProfile (& amp; hwProfileInfo)! = NULL) {printf ("Hardware GUID:% s \ n", hwProfileInfo.szHwProfileGuid); Printf ("Hardware Profile:% s \ n", hwProfileInfo.szHwProfileName); } And {return 0; } By (); } The problem is, whenever I try to compile it, I get "error: 'GetCurrentHwProfile' was not declared in this area". Maybe I'm using MinziW's G ++, maybe this is the problem? Good catch! (If you can call it) The problem is that GetCurrentHwProfile will usually be a small cut, if you want to convert it to GetCurrentHwProfileW while compiling with Unicode support. Otherwise, it turns into GetCurrentHwProfileA. Solution? Just add one at the end ...