Posts

Showing posts from March, 2013

file - Phonegap 3.4 - getFile fails -

To upgrade, read my app now to a text file (db.txt) in the phonegap 3.4 and root of the www folder it happens. The following snippet used for work: window.requestFileSystem (LocalFileSystem.PERSISTENT, 0, this.gotFS, this.fail); This.gotFS = function (file system) {console.log (fileSystem.name); FileSystem.root.getFile ("../ MyappName.app/www/db.txt", {creates: false, exclusive: true}, file_reader.gotFileEntry, file_reader.fail); }; I've read some changes in the file API, but even if I fileSystem.root.getFile ("db.txt", {make: false) , Exclusive: true}, file_reader.gotFileEntry, file_reader.fail); }; or fileSystem.root.getFile (fileSystem.root.toURL) + "db.txt", {create: wrong, exclusive: true} , File_reader.gotFileEntry, file_reader.fail); }; file_reader.fail is always called with the error code of 5, which is the encoding_ERR. So basically how do you read a file in the root of the www folder? New File API?

html5 - Detect browser support for image type in canvas.toDataURL -

मैं canvas.toDataURL का उपयोग करके & lt; कैनवास & gt; तत्व से डेटायूआरएल प्राप्त करने की कोशिश कर रहा / रही हूं; () डिफ़ॉल्ट रूप से यह छवि / पीएनजी प्रकार देता है लेकिन कुछ ब्राउज़र image / jpeg को भी समर्थन करते हैं। कृपया मुझे सुझाव दें कि कैसे image / jpeg या नहीं के लिए एक ब्राउज़र समर्थन अगर मैं पता लगा सकता हूँ। - धन्यवाद आप केवल यह निर्दिष्ट करते हैं कि आप इस तरह JPEG चाहते हैं: var गुणवत्ता = 0.8; Var dataUri = canvas.toDataURL ('छवि / जेपीईजी', गुणवत्ता); // गुणवत्ता वैकल्पिक है यदि आपके डेटायूआरआई में अब समान स्ट्रिंग JPEG समर्थित है। अन्यथा स्ट्रिंग छवि / png होगी। अगर (dataUri.match ('image / jpeg')) {// support jpeg} उस कहा जा रहा है, मुझे नहीं लगता कि कोई भी ब्राउज़र है जो नहीं जेपीजी प्रारूप का समर्थन करता है। फ़ंक्शन हैसपोर्ट (माइम), जैसे कि एक वेबपैंट, बिटमैप आदि जैसे विभिन्न डिवाइसेज में और अधिक असामान्य प्रारूपों के लिए इस तरह की एक परीक्षा बेहतर अनुकूल है। ) {Var कैनवास = दस्तावेज़.create एलेमेंट ('

sharepoint - How can I retrieve a uploaded file's direct URL? -

Hellu Everything is in the header, the user of my program can upload files to the SharePoint server, How can I provide a link to open this file? Meaning, how can I get the URL to put in the link? Thanks in advance. EDIT: Just to clarify, after uploading the file, I only have one server relativeUURL which will not work for subsites. Try: Diagnostics. Process. Start ("Your SharePoint site is here" + "/" + "ServerRelativeUrl");

ios - UITableView not loading cell data when scrolling -

Image
There is a UITableView setup on my view controller using my prototype cell when it loads the view controller when it loads my database (The code removed for security reasons), uses CustomisationObject to create a new object and then stores it in an orange. When I run the application 4 loaded cells, right values ​​stored in local arrays. When I left the remaining two cells Scroll down to see if they are not loaded, then the values ​​are empty. Custom cell class CustomizationCell.h #in Import & lt; UIKit / UIKit.h & gt; @Intefus Customization Cell: UITTEWewsell Property (Vulnerable, Notatomic) IBotllet UILBL * Title Oatlet; @property (weak, non-monomitive) ibotlet uislider * slider oleate; @end CustomizationCell.m #import "CustomizationCell.h" @implementation CustomizationCell @synthesize titleOutlet, sliderOutlet; - (id) initWithStyle: (UITableViewCellStyle) style reuseIdentifier: (NSString *) reuseIdentifier {self = [super initWithStyle:

javascript - viewbox with pixel value to make d3 chart resposive is not working properly -

I am trying to make D3 charts more sensitive. So I have used the viewbox with pixel values ​​but check that this is not working. If I'm shown below width and height to 100% , then this is a responsive investigation var Svg ("width", '100%') .attr ("height", '100%') .attr ('view box', '0' + math min (width, height) + '' math. Mean (width, height)) This non-responsive JSField AdEd ("SVG") .attr ("width", 200) .attr ("height") ("width ", 200) .attr ('View Box', '0' '+ Math. (Width, Height) + + + Math. (Width, Height)) I want height and width Optimize the code from div to <3> width and height in d3> and any jquery Do not want to use functions. If you are getting rid of height and width esters, then it becomes responsive <(" STV ") .attr ('View Box', '0' + Math. Minute (width, height) / p>

html - why do the commented code also work? -

While testing my site, I found something interesting on Chrome browser: & Lt; Jdoc: included type = "head" /> which gives the result of joomla links and meta etc: & lt; Base href = "" /> & Lt; Meta / & gt; ...... But after commenting code like this: & gt; --- & gt; Result while observing: & Lt; Meta / & gt; ...... --- & gt; This is just & lt ;! --- & lt; Jdoc: included type = "head" /> --- & gt; & lt; Jdoc: contains type = "head" /> Joomla framework feature ... & lt; Jdoc ... /> is processed on Server Side (on Joomla's Server) . This means that it will ignore the comments mark and everything that makes sense makes everything happen because HTML comment marks are processed on the customer side, not the server side . After processing on the server, it sends the processed information along with a comment mark in favor of the customer a

javascript - How To Make Element Static With Dynamic Page Content -

I have the div element that I to the right But update no its status when the content dynamically expanses the width of the page. I did some research, but it was unsuccessful. I know that it can be done using JQuery, but I do not know how. any idea? Thank you You can use a fixed position on your div: < / P> div {status: fixed; Left: Some; Top: Some; } This will "glue" your screen to the screen in the specified position without any JavaScript. And if you scroll through the page, the div is in one place.

Why does Ruby function not break on 'true' in nested loop? -

There is a fragment of Ruby Code which checks that a given email address is part of the 'Receiver' array towards me The email class's property code should be returned back when email_address is found in the list and is not incorrect. def is_to_receiver? (Email_address) if @ raw_email.to! = Nil @raw_email To.each do | To_field | | I always thought that the true function in line 5 will be broken immediately and the function with the value will be broken. Will return true However, the result of the matching email address was continued from false line 11. To make me do this work, changing line 5 was truth . I migrated the code from 1.8.7 to Ruby 1.9.3. And it was worked fine before making sure I'm curious if I have made a mistake or since Ruby 1.9.3 has changed this behavior? Any answer is welcome! In the absence of the return statement in a ruby, Ruby is executed last The value of the statement will come back. Otherwise, just a lexical statement on

.net - Executing Oracle Procedure with out parameters -

"itemprop =" text "> I need help calling an stored procedure in an Oracle DB that is 2 out of standards. I have not used the parameters before and I am not too much with Oracle. When I call a query from a .net webpage, I am getting the following error: "ORA-00,900: Invalid SQL statement" I was given the current Instructions about how to update some fields using the procedures: In the P_API_BO_Vehicle package: Change process Last Mileage (PavilionID T_FM_VEHICLE.F_VEH_ID% type, pMileage T_FM_VEHICLE.F_VEH_LAST_MILE% type , PDate T_FM_VEHICLE.F_VEH_LAST_DATE% type, peercoded out binary_tiger, peerlaw Ntr TErrorInfo out); So I have tried the following query string: VAr pErrorCode binary_integer VAR pErrorInfo TErrorInfo EXEC P_API_BO_Vehicle.ChangeLastMileage (18,391, 20,000, '2014-04 - 28 ', PERRcode, PERRINOFO); But it gives the error above. Am I wrong about passing in some "out" parameters? may start PL / SQL. . E

php - Latest Version of MAMP errors on Mcrypt extension with Laravel update -

I am having a general problem with the composer update in Laravel. I am using the latest MMP install and it seems that this is using mmp php. However, the 'php' returns php: / applications / mamp / bin / php / php5.5.10 / bin / php , mamp php The information shows that mcrypt is running, but when I update a composer, then it fails on 'composer update' MacPass PHP extension is required to create automatic files The script php artisan is clear-compiled in the post-update-CMD event with an error , so any autoload files generated Being o. how to fix? You can correct this problem by doing the following: Open and run a terminal: Alias ​​Php = '/ applications / MAMP / bin / php / php5.4.19 / bin / php' ** Re-activate php -i | Grep mcrypt and mcrypt support => enabled Composer should now work < / Div>

mediawiki - Is there a way to notify me whenever someone edited a page I made? -

I am new to mediawiki and I want to know if there is any way to inform me when somebody Edits I made The watchlist is fine but I need a more user-friendly approach. Echo (Notification extension for MediaWiki) does not support this type of feature. As stated, the MediaWiki core method is that the default settings should be sufficient in the recent MediaWiki release: To keep a special graphical alert especially to visit you, in fact, but not yet present.

unix - Converting non-redundant data to redundant data in files with different names -

I have two set files .TTT and .MMM and there are many versions of this file name and their content as follows: - filenameXYZ_v1.0.txt apple filename XYZ_v2.0.txt apple filename XYZ_v3.0.txt orange filename XYZ_v4.0.txt orange .. ............................... filenameXYZ_v1 .0.xml "Data v1. 0 and v2.0 "filenameXYZ_v2.0.xml" junk "filenameXYZ_v3.0.xml" data v3.0 and v4.0 "filenameXYZ_v4.0.xml" junk " XML files Data is non-redundant, i.e. if its related If the .txt files have the same content then the real "data" will only be filled in another .xml file, the other version will be filled with "junk." I want to make the XML file unnecessary: ​​- filenameXYZ_v1 Data of ".0.xml" v1.0 and v2.0 "filenameXYZ_v2.0.xml" v1.0 and v2 Data .0 "filenameXYZ_v3.0.xml" v3.0 and v4.0 data "filenameXYZ_v4.0 .xml "Data of v3.0 and v4.0" filenameXYZ_v For file in? Do the .0.txt

javascript - Making a vertical UL slider -

I would like to create a vertical menu that has a certain height, when you press the arrow, slide up and down. How will I know my head how to work with offset to jump Now I take relative offsets from the next item and jump over it. But it does not do that which is supposed to be done. Even more, this is not right. I think I want to know that the bottom of UL has been displayed in the div. If so, there is no need to move the down arrow anymore. But how can I know? // The next element is var offsetNextLi = jQuery ($ nextElement). Event (); $ LiScrolledto = $ next element; JQuery ("ul #inline_navigation"). Chetan ({scrollTop: offsetNextLi.top}, 500); This is my answer: < P> Offset is relative, but your example has a steady li height, so you can use a continuous step. Or calculate the next invisible external li element To do this, I spew a small JSFDL. (function ($) {$ (document) .ready (function () {// slide on jQuery ("# ​​arrowup"). ("

python - How to close Boto S3 connection? -

I am using Boto to join Amazon S3 in my Python program. I am able to open a connection and upload files to a bucket. I thought I should close the connection to release resources and, more importantly, to avoid hanging an open connection to avoid any security risks. I think I should call the method () near. But I tested this as follows: 1. Open Connection 2. Close the connection 3. Upload the file to the bucket. I thought phase 3 would fail, but the upload worked! So what does the closure () do? If it does not really close the connection, then what should I use in place of closing ()? Or is it unnecessary to close this connection? I have not seen any luck, and, but yet, luck in reply. Thank you for your help. Your Step 3 works because there is a beta code that will close the closed connection automatically and retry the requests on errors. It is very rare to achieve manually by closing the BOA connection because they are just HTTP connections and will be automatically closed a

javascript - Set Composite Component attribute with a js function -

I have a composite component, which has an attribute that gives the width of the component again, the width of the screen size So I have a JS function that calculates the appropriate value to set that attribute. The problem is that I do not know how to set the JS function in the attribute of the composite component; Here's my code ... & lt; H: form id = "form slider" style = "width: 100%" & gt; & Lt; Comp: sliderComponent images = "# {sliderShowBean.sliderList}" slide speed = "2000" width = "# {getContWidth}" /> & Lt; / H: form & gt; Js function function getContWidth () {var width = $ ("# content_container_wide") With CSS ("width") return width; }; Check if you are talking about JSF ... < / P>

javascript - AngularJS: automatically chaining $resource actions -

I have an AngularJS processing implementation, which (in principle) works fine. Now the special circumstances are: The resource's field (the attribute) is "The last time is the timestamp" If it comes to the server to update it, Updating methods on the server are implemented in every way, that the response is empty (instead of keeping the modified unit) In situations, after the update operation from the server, "last timestone To get "Mapping", I have to get it immediately after the update immediately. myEntity $ update (function () {myEntity. Get $);}); The question now is: AngularJS automatically provides a way of chain actions: Defining MyEntity Definition For that, he always needs to get $ after the $ update. And then, call in the application code myEntitty. $ Update (); Thanks for @Mark to push me right direction. The solution is basically var MyEntity = $ resource (..., {get: {...}, update: {...}}); // params h

Rally: Check if Iteration falls in a Release -

I have to check whether any releases occur under a given repetition. For example: Changes 5.2 release comes under PSI 5. The only way to do this is to check that: IterationStartDate & gt; = ReleaseStartDate & amp; Amp; IterationEndDate & lt; = ReleaseDate (I'm using the Rally Java Toolkit) My question is: How to convert returning Jason element (change or date of release) to date format Which can be used to compare dates? (Is this a normal definition class?) I have an iteration and release class, which I am using to include values. Later in the code, I want to do something like this: if (iteration. Startdate & gt; = release. Start & amp; iteration. EndDate & lt; = release.endDate) {System.out.println ("The Eatersion" + name comes under "Name." + "Release."); } I tried it myself and saw it but no relevant answer could be found. Thank you. Edit: Is this the right way to compare? date format ITRARTatadet = n

Ruby/Rack/Sinatra encoding of a MessagePack POST -

I'm trying to create an API with Sinatra and MessagePack, but I'm ready to shoot myself: ) So I'm using curl to post: curl -x post-h "content-type: application / x-messagepack" - Data-Binary '\ x82 \ xA4uuid \ xBD8asd76a -a8s7a6d87-asd76as8d76 \ xABcampaign_id \ xA12' http: // localhost: 9393 / Now I do just in Sinatra: MessagePack.unpack requests body.read and this is free The error goes to error: MessagePack :: malformedFormatError exception: follow the additional bytes after a deserialized object because request.body.read Coming back: "I \\\\\\\ xxxx \ xA4uuid \\ xBD8asd76a-a8s7a6d87-asd76as8d76 \\ xABcampaign_id \" xA12 "instead of" I " :: Binari) and tried to think about other stupid things. And I'm not sure who's causing Ruby, Rack or Papara problem? What is the problem with the command line for curl - data-binaries It does not process it in a byte value by using syntax like Ruby; it

Randomly add ID to a element with jQuery -

As you can read by title, I just want to add a random id (# one or # two or # three Or #four) .cloud element to reload the page. HTML & lt; Div class = "cloud" & gt; & Lt; / Div & gt; CSS .cloud {/ main style for each cloud} / # Additional style of #one ########################################################################################## # # # # # # # # # # # # # # # # # # # # # # # # # # # # When trying to copy and paste code from some pages on the web Any help? & lt; Script & gt; $ (Document) .ready (function () {var id = ['one', 'two', 'three', 'four']; $ ('. Cloud') each (function (i) {$ (this) .attr (styleIIS [Math.floor (Math.Rendum (* * styleIds.length)]);});}); & Lt; / Script & gt; Edit: Thanks to everyone! I just want to expect more useful answers like yours and less negative votes for your stupid or unclear questions: P is not so good with code I am the reason that I say your h

c# - How to locate services base on id (service locator pattern)? -

I have different services that each have different types, for example there are three different types of UpdateService ( Hyffrek, medium frack, minfake). I have made a deeper example for my services and my type of example: public enum UpdateServiceType: byte {UpdateService = 1, SpecialService = 2, byte {Minnetupdate Fraction = 1, Medium Upgrade Frack = 2, High UpgradeFake = 3} and Public Anonymous MyServices:} < P> Then saved on the service and on the terms of the database related to: serviceId = 1 service type = 2 Now I want to make every service But I do not know that Which method is to use: factory pattern, service locator, or even I do not know whether I have done the right thing to use ANM? What should I use instead of enum? How do I make proper service? What are the best practices? How can I use the IOC like unity in this situation? Update: After reading the great post by Mark Simon, I look for my problem right because it clearly describes the

Scraping a website with content added via javascript with Selenium in Python -

I am trying to scrape data from a website using selenium and phatomaj in Python. However, this website is adding the data I am interested in via javascript. Is there a way to wait for data before withdrawing selenium? So far, we have tried: importExport import webdriver as selenium.webdriver UI as phonomicon.webdriver.support.ui phantomjs = '/ usr / local / bin / Phantomjs' url = '[Redacted]' with contextlib.closing (webdriver.PhantomJS (phantomjs)) as driver: driver.get (url) wait = ui.WebDriverWait (driver, 10) wait.until (lambda driver : Driver.execute_script ("return document" ("[Redacted] ')) driver.execute_script (" return document.getElementById (\ "myID \") .intermentById (\ "myID \") .interTextById (\ "myID \") .interText ") Unfortunately, this code raises selenium.common.exceptions.TimeoutException: message: none why We are unable to change the contents of the id . We are using PhantmJs

PowerShell DSC - how to pass configuration parameters to ScriptResources? -

I have a lot of trouble getting PowerShell's desired State Configuration script to work in order to configure in-house applications The root of the problem is that I can not pass my configuration data in a ScriptResource (at least in the way I'm trying to do this). My script is about to create a config folder for our in-house application, and then write some settings in a file: Configuration MyApp {param ([string []] $ ComputerName = $ env: ComputerName) node $ ComputerName {file configuration folder {type = "directory" destination path = $ node. Confirm Folder = "Current"} Script Configuration File {SetScript = {Write-Verbose "Configuration File Setting Scripts On"); Write-verbose "folder = $ ($ node .config folder)"; Write-verbose "file name = $ ($ node .configfile)"; [System.IO.File] :: WriteAllText ($ node .confiff file, "enabled =" + $ node. Enabled); } TestScript = {write-verbose "Running Configurat

php - Send an email after register -

इस सवाल का पहले से ही एक उत्तर है: < / P> 3 जवाब मेरे पास एक सदस्य प्रणाली है और आपने अपने खाते को ईमेल द्वारा सक्रिय करने के लिए एक फ़ंक्शन बनाया है। यह सफलतापूर्वक ईमेल भेजता है, लेकिन समस्या आपको अपने इनबॉक्स में 'से' ईमेल देखती है। I no -reply@mysite.com से: SITE NAME विषय: SUBJECT द्वारा ईमेल भेजना चाहते हैं I दोनों नहीं कर सकता भेजा गया और से मुझे यह अब मिला है: सार्वजनिक फ़ंक्शन sendActivation ($ $, $ subject, $ body) { मेल ($ से $ $ विषय, $ बॉडी, 'से: साइट नाम', 'प्रेषक: EMAIL@site.com'); } सफलता के साथ किसी खाते के पंजीकरण के बाद एक ईमेल भेजा जाता है: उपयोगकर्ता :: भेजेंएक्टिवेशन (इनपुट :: प्राप्त करें ('ईमेल'), ' ईमेल सत्यापन ',' ओकेओक '); यदि आप दोनों प्रेषक और प्रेषक का नाम निर्दिष्ट करना चाहते हैं, तो इस के साथ हेडर बदलें: 'से: साइट का नाम & lt; no-reply@mysite.com>'

sql - Can a nested Group By be done in a single Select? -

Using T-SQL (we are in 2008, but if it can be done in 2012 using some new functions / extensions, then It is completely out of curiosity ... I just ended up going through a group with a group going through. But I'm curious to see if there is a way to do this in the Single query, maybe there are some fancy fakirs or extensions I have not yet learned .... This is a challenge from Before that it has already done it, work needs to be done. I tried to create an example table here, but it is too big to make, so this is the concept. The table has three columns, UserID, Usergroup and minutes. In an hour's increment, we log in to how much time a user spends within an app. For example, for example, spend 15 minutes during the hours of UserID 1 04/28/2014 10:00:00 for 10 minutes and then 04/28/2014 11:00:00 ... and the same Kind. (For this example, please ignore the constraints of any time every day or per month etc.) I want to see people using Number of users per For at least

java - Time of connection to DB using JDBC -

When I check the time run like this, my machine time is 735 < / P> public class testdcp {static {try {class.forName ("com.mysql.jdbc.Driver"); } Catch (Clasnostfundai Express E) {// To-O Auto-Generated Catch Block e.printStackTrace (); }} Public static zero main (string [] args) {long l = System.currentTimeMillis (); Connection Conn = Null; {For (ii = 0; i & lt; 100; i ++) {conn = DriverManager.getConnection ("jdbc: mysql: // localhost: 3306 / jdbcdemo", "root", "sph815 @ cs") try; Conn.close (); }} Catch (eclipse e) {// Tudo auto-generated cal block e.printstaxtress (); } System.out.println (System.currentTimeMillis () - l); }} But when I test it using my run time, then I do not understand why more time in the job? public class testDBCP {static {try {class.forName ("com.mysql.jdbc.Driver"); } Catch (Clasnostfundai Express E) {// To-O Auto-Generated Catch Block e.printStackTrace (); }} Public static zero main (st

encryption - Casio fx-83GB PLUS, how to perform x mod y? -

how can i x mod y (e.g. 89 ^ 3 mod 3127) On this calculator I got the cryptography exam yesterday and I do not know how I have to work on the calc .. This is the encryption of RSA algorithms. . Any thoughts? I suspect that your calculator is a modulus function, it's a decent algorithm that works: / P> Compute 89 ^ 3 = 704 969. Write it down or keep the result somewhere. Now to reduce the modulo n To do this, calculate the result / ignore the modulus and the decimal, e.g. 704 9 69/3127 and about; 225 Multiply that number by modulus and subtract it from the original result, e.g. 7049 969 - 225 * 3127 = 1394. If the original derivation is so large that it exceeds your calculator, then you can calculate a small exponent and do the above reduction modules n many times. For example, if you are asking to calculate 89 ^ 10, then you can calculate 89 ^ 5 instead, reduce that module N, the result of the square is 89 ^ 10, and square value Reduce modulo n An import

ios - Backup and Restore sqlite db during new version release -

I am working on an iPad application. When a new version is released, I add the version number on the server number db and call it through the web service and check with the build version of the app. If there is a change in this version, then I am calling the URL to install the new version of the app. What would be the possible solution to lose your data from the iPad app, and when the new app is installed, I will use the same Sclit DB. FYI ... I am not using any MDM, and I am installing the app through URL. Let me know that I need to explain more in detail. In the past, app version updates are usually reset to the bundle in the form of a pack User data is lost in data (IPA) database (note: it can be changed in iOS 7 due to incremental update options announced, but I have never tested it). My method around this is to provide a backup restore feature that creates a flist in the / documents folder. This allows the user to remove his data through iTunes file sharing, if he wants

iOS: different debug and release constants, objective-c -

इस सवाल का पहले से ही एक उत्तर है: < / P> 2 जवाब मैं उद्देश्य के लिए नया हूँ -सी और आईओएस के विकास और सर्वोत्तम अभ्यास की तलाश में। मुझे अलग-अलग स्थिरांक BASE_URL करना है जो DEBUG और उत्पादन पर्यावरण पर निर्भर है .. मैं इसे दिखना चाहता हूं, उदा। constants.m : #import "constants.h" स्थिर NSString * BASE_URL = @ "http: // localhost: 3000"; NSString * const API_URL = [BASE_URL stringByAppendingString: @ "/ api"]; और । Pch फ़ाइल: #ifdef __OBJC__ #import & lt; UIKit / UIKit.h & gt; #import & lt; फाउंडेशन / फाउंडेशन। एच & gt; #import "constants.h" #endif लेकिन कंपाइलर कह रहा है कि मैं यहाँ गलत हूँ - NSString * const API_URL = [BASE_URL stringByAppendingString: @ "/ api"]; < / कोड> प्रारंभकर्ता तत्व एक संकलन-समय स्थिर नहीं है आप जो त्रुटि संदेश प्राप्त कर रहे हैं वह स्वयं व्याख्यात्मक है: आपको एक संकलन समय स्थिर का उपयोग करने की आवश्यकता होती है। अलग डीबग और रिलीज स्थिरांक

javascript - Why must a ScriptProcessorNode be connected to a destination? -

निम्न कोड पर विचार करें: ScriptProcessorNode EventHandler प्रक्रिया नहीं कहा जाता है प्रोसेसर.कनेक्ट (ऑडियोडस्टिनेशन) को जोड़ने पर विचार करें; अंत में, जैसा कि निम्न कोड में दिखाया गया है: EventHandler प्रक्रिया < / कोड> को अब अपेक्षित कहा जाता है। वेब ऑडियो एपीआई विनिर्देश ऑडिओप्रोसेसर इवेंट केवल तभी भेजे जाते हैं यदि स्क्रिप्टप्रसंसेसर नोड में कम से कम एक इनपुट या एक आउटपुट कनेक्ट होता है। /P> क्यों ScriptProcessorNode को अपने EventHandler के लिए ऑडियो गंतव्य से जोड़ा जाना चाहिए? यह ब्लिंक (क्रोम) में ज्ञात बग है यदि आप "वेबकिट" उपसर्ग को निकालते हैं (और आपको करना चाहिए!), यह कोड फ़ायरफ़ॉक्स में काम करता है।

how to unmask the text in Ms Word? -

I do not want a light brown background for my text. I tried copying the text from the internet and tried to paste it into MS. The same background still exists. So please help me Instead of hitting CTRL-V, paste it in plain text as you create HTML style Keeping the way you are doing this. That is, right click, and choose the icon for "plain text" just paste this plain text and will maintain your current style.

ios - Load file string names into an array from Documents Directory -

I want to add a list of files in the Documents folder in an array of strings. It is not certain how to do this, this is what I have done so far. I only want to load the files, in which the file contains the word 'bottom' in the array. How do I do this exactly? NSArray * Path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Yes); NSString * Document Directory = [Path ObjectExtends: 0]; NSFileManager * fileMan = [[NSFileManager alloc] init]; NSArray * files = [fileman contentoff directoryAct Path: document directory error: zero]; For (Int i = 0; i & lt; files.count; i ++) {} NSString * path = [Documents directory Stringbaping path Kmpenent: [NSString rangeOfString: @ "down"]]; // This is the orientation of the file STRING names NSArray * bottomArray = [NSArray arrayWithOrbjects: @ "below 6D08B918-326D-41E1-8A47-B92F80EF07E5-1240-000005EB14009605.png", @ "bottom837C95CF-85B2-456D-8197-326 A 637F3A5B-6021-0000340042C3

sql - FATAL: no pg_hba.conf entry for host "fe80::1%lo0" -

Can someone help me when I'm trying to connect to the database or / Code>? I have this in the pg_hba.conf file: # Type database user address method # "Local" is the only UNIX domain socket connection for all trusts # IPv4 Local Connection: All 127.0.0.1/32 Trust # IPv6 Hosts Local Connections: Host Host: 1/128 Trust # Allow Replication Connection from Local Replication; # Replication by User With Privilege #local Replica Andrew Trust # Host Replica Andrew 127.0.0.1/32 Faith #host Replica Andrew :: 1/128 Local All MD5 Belief Maybe I'm doing this wrong? Thanks I had the same problem anyway, this line was my / Etc / hosts was added to the file: fe80 :: 1% lo0 localhost that line / etc / host should fix it < / P> sudo vi / etc / host # fe80 :: 1% low localhost

Eclipse does not display /target/classes folder in "project explorer view" -

Image
Looks like in project-> property-> java build path-> source tab. I do not know what I'm missing but the / target / classes folder is not visible in the "Project Explorer" view. Can anyone help? < Div class = "post-text" itemproc = "text"> Project Explorer view default to not displaying output folders. To change this, click the small down arrow at the top right of the view and select Custom View option. Uncheck the 'Java Output Folders' option in the filter list.

In HP-ALM, how do I find all open defects of "project=conversion"? -

I have to find all open (i.e., not (off, fixed, pending test migration)) Project defect = conversion any suggestions? I realize that HP ALM is very "niche" if you want to use it HP ALM GUI If you want to use it in the HP ALM OTA API: Set Bugfactory = tdConnection.BugFactory = Bugfilter = Bugfactor.filter bugfilter.filter ("BG_STATUS"). = "Open" bugfilter.filters ("BG_PROJECT") = "conversion" set bug = bugfilterNew list HP ALM OTA API Reference (BugFactory Objects) And TDFilter) view. (BG_STATUS and BG_PROJECT) also refer to the AP ALM database reference to get the correct value for filtering.

java - How to change wrapper name in jackson -

अभी json को इस तरह से क्रमबद्ध किया गया है: {MyClassList: [{{ ..}, {...},}] वर्ग: सार्वजनिक MyClass {properties here ...} जावा ऑब्जेक्ट को सीरियल किया गया है: नया अर्रेलिस्ट & lt; MyClass & gt; सूची = नया अर्रेलिस्ट & lt; MyClass & gt; (); List.add (नया MyClass ()); मैं एक कस्टम नाम के लिए "MyClassList" को कैसे बदलूं? उदाहरण के लिए, मैं इसे "MyClassAbc" में कैसे बदलूं? मुझे लगता है कि आप चाहते हैं आप @ जेसनप्रॉपर्टी ("माइकलैस एबीसी") का उपयोग कर सकते हैं तो आप "रुटनाम" का नाम बदल सकते हैं class MyInterfaceList {@JsonProperty ("MyClassAbc") निजी सूची के & lt; MyClass & gt; सूची; सार्वजनिक सूची & lt; MyClass & gt; GetList () {वापसी सूची; } सार्वजनिक शून्य सेट सूची (सूची & lt; MyClass & gt; सूची) {this.list = list; }}

Specify Activity to launch in Android menu xml -

It would be great if I can specify which activity menu to launch in the xml file, Instead of overriding, OnOptionsItemSelected uses this method for each method. It seems that there may be something that can be done to implement it in a more beautiful way. Is there a solution that can get it? I believe what you want You will specify an ActionProvider and the provider will implement any activity such as starting an action / intent

html - jQuery: Using the right selector and method to change some text? -

I want to change the text where it stands "2 days ago" using jQuery. html: & lt; Div id = "post_id_136_row" class = "post_row row" & gt; & Lt; Div id = "post_id_136" class = "post_column col-xs-12 col-sm-offset-2 col-sm-8 colmd-offset-3 col-md-6 col-lg-offset-4 col- LG-4" & Gt; & Lt; Div class = "inner_post_row line" & gt; & Lt; Div id = "thumbnail_column" class = "col-xs-4 col-sm-4 col-md-4 col-lg-3" & gt; & Lt; / Div & gt; & Lt; Div class = "title col-xs-8 col-sm-8 col-md-8 col-lg-9" & gt; & Lt; Span id = "post_title" & gt; & Lt; / Span & gt; & Lt; Br> & Lt; / Br & gt; & Lt; Span id = "time_added" & gt; 2 days ago & lt; An id = "edit_post_136" class = "edit_post" href = "#" & gt; & Lt; / A & gt; & Lt; / Span & gt; & Lt; /

Java using Eclipse ADT -

I'm using Eclipse ADT to learn. I used ADT for an introduction to the Android course on Mooc Koresra platform. By going through that course, I know that learning Java is important. I am working through a java book: Mike MacGrath will go through easy steps This is teaching a lesson: The code which I have written in a debating passing ADT It is entered: package com.javatutorial.hello; Public class options {public static zero main (string [] args) {if (args [0] .equals ("-en") {System.out.println ("English option"); } Else if (args [0] .equals ("-es") {System.out.println ("Spanish option"); } Else System.out.println ("unrecognized option"); }} I get an exception error when I run the program: Exceptions to the thread "main" java .lang .ArrayIndexOutOfBoundsException: 0 at com.javatutorial.hello.Option.Main (option.java)) So far I have detected the solutions I have run into problems, but its Need help f

python - Nesting Case Statements in postgresql -

I have this python function which I am trying to convert to SQL in PostGrSCL 9.2. Def calc_open_order (xOrder): temp_row = xOrder.so_reportL [0] open_closed_status = 'OPEN' order_status = temp_row [3] If order_status == 'FAILED': open_closed_status = 'off' Elif Order_status == deleted '': open_closed_status = 'off' Elif order_status == 'NO_PENDING_ACTION': open_closed_status = 'off' Elif Order_status == 'PENDING_REMOVED': Open_closed_status = 'off' and # shipping group status any_open_sg = xOrder.so_reportL wrong sd_row: If sd_row [45] == 'PENDING_SHIPMENT': any_open_sg = true elif sd_row [45] == 'processing': any_open_sg = true elif sd_row [45] == 'early': any_open_sg = true Elif Sd_row [ 45] == 'PENDING_MERCHANT_ Action': any_open_sg = true if any_open_sg == incorrect: open_closed_status = 'off' # if open_closed_status == 'shutdown': ord_ Open_ind = 'fals

php - Using database data in my javascript function -

I am working on a project where I want to create a visual chart with some data stored in my data database. / P> Below you can see your phpcode to fetch data from the database. I $ query = "Select 'to' TBDDI '"; $ Result = mysql_query ($ query) or die ("SQL Error 1:". Mysql_error ()); ($ Line = mysql_fetch_array ($ result, MYSQL_ASSOC)) {$ command [] = array ('data' = & gt; $ row ['di_datum'], 'geowel' => $ line ['devival'] ); } Echo json_encode ($ command); ? & Gt; Now my javascript code for creating this chart is $ (function () {var bar_data = {data: [["January", 10 ], "[" "May", 17], ["June", 9]], color: "# 3c8dbc"}, ["February", 8], ["March", 4], ["April", 13] ; $ .plot ("# bar-chart", [bar_data], {grid: {borderWidth: 1, borderColor: "# f3f3f3", ticker: "# f3f3f3"}, series: {bars: {sho

jquery - Can't figure out how to access object elements using $.each -

I hope the following will alert 'game1' and then 'game2' but it will not alter anything "Pages": "game1", "leftButtonText": "back", "leftButtonHREF": "#mainPage", "rightButtonText": "close" , "Right button": "right" button: "close", "right button hirf": "# man page"}, "sub-menu": {"page 2", "game2", "left button text" : "Back", "left button": "# man page", "home page"}} $ .each (page, function (id, page) {warning (page title);}); Edit: updated to clear questions You can repeat 'again on the pages which is an array, try: Warning (p. Menu.Main.pageTitle);

php - is there a way to know if the link to a file is force downloaded? -

The title completely explains my question: Do I have a link to the PDF file, can I know that this force The download link is using php, c ++, linux wget command etc. (anything I can use on the server) (no Java) HTTP , it is impossible to fully understand whether using the method to download the file Interpretation is unless the requester not voluntarily recognize a user-agent string or manually through a few things. If you use the web-server language, then you can protect the file behind an authentication mechanism.

php - Silverstripe extend DataObject via subclass -

How can I raise / optimize a function in a database with sub-closing questions? I have created a custom class: class CustomEditableFormField Expand EditableFormField {public function getFieldConfiguration () {// custom stuff}} I added again: Injector: editable form field: category: custom editform field In my config.yml but subclass is still being ignored . Do I need to include all the functions of an interface such as editingableformfield, or am I missing something? You need to make sure that the field is created with a new look and forming (). e.g. Also, make sure you flush or YAML changes will not take effect. Edit

android - Lost variable value inside ASyncTask -

I am trying to retrieve the GCM registration ID. For this, I am using ASCNETK, however, the variable is getting the registration ID (I'm logging it, and I can see it on the logcote), but when I have to put this variable in another function, then This is showing an empty value. Here is the code: Private Zero Registrar (REGId) {regId = GCMRegistrar.getRegistrationId (getApplicationContext ()); New AsyncTask & lt; Zero, zero, zero> () {@Override Secure Voice Downline Background (Zero ... Parameter) {if (regId.equals ("")) {GoogleCloudMessaging GCM = GoogleCloudMessaging. GetInstance (getApplicationContext ()); Try RegId = gcm.register (SENDER_ID); Log D. ("RGID", regId); } Grip (IOException E) {// TODO Auto-Generated Catch Block e.printStackTrace (); }} Return tap; }}. Execute (tap, tap, null); } It seems that your registrar calls the REGId () function to regId Assigning a value for (which I think is global) and then the function is trying to u

Changing color and shape of point in time series plot depending on value of different variable in r -

Image
I have time series in which there are possibilities for simplicity, imagine each point that on an approximate day this rain in New York Will or not? When I plot a series of times, I would like the symbol pch = 1 and col = "green" if I was right and if I was wrong, then I would like to use pch = 4 and col = "red" I am I have tried and failed in some ways. Mainly I am using chart. The Time Series Function in PerformanceAnalytics is open to ideas I have tried to plot a series in which there is a right and wrong representation of vectors' peaches and cholera. I have tried to plot just the right points and have used the points to add wrong actions. Thanks I will try to guess what I am asking you to do. First, create a set of predictions each day for a few months and decide that your prediction was correct: df < - data.frame (days = 1:31, p_rain = runif (31), true = sample (C, TRUE, FALSE, 31, T)) No, they make their symbols and colors based on

css - Background Image not loading on heroku open -

When my app is ready on Heroko, my background image is not showing .. < P> Show my logo image though My background is mentioned in my own property / stylesheet / application.css.scss file: < P> body {margin: 0 px; Background: url ('city-lights1.jpg'); } and my logo has been referenced in my thoughts / layout / page / home file: & lt; Div class = 'log-image' & gt; & Lt;% = image_tag ("logo.png", alt: "image", category: 'IMG-responsive logo')% & gt; & Lt; / Div & gt; Why is not my background image loaded, but why does my logo image? I am using Twitter Bootstrap You are not using rail assistants in your application.scss as you did in your home page, so the background image URL is not referring to the expected image. You should use Rail 4 Assistant in your application.scss file: Background image: property-url ("city- Lights1.jpg "); / * Or * / background-image: im

Bloom Filters - Implementing Hash Functions -

Simple questions here. Okay, so I understand the basics of using a Bloom filter, and this is to check that no member not is part of the set, the way the bit array of work, the way # To use the hash function and etc., calculation is done, but whatever I am not able to implement is that how do you keep mapping characters in bytes. For example, say I have input 1 and output is 8 and then I set bit 8 to 1, to indicate that the member is a part of the set. Do not have to do with the function like Fanvi or Jenkins, or actually any hash function that letter with integer if it is a stupid question, so feel free to tell me, I'm not the implementation of some of these . Stringes are an array of letters (character datatype) and are either dependent on 16 bit or 8 bit basis. If the language is using utf or ascii then psuedo code will look something like this: // ord () means that you can use serial or typedcasting. Var str: string; B: byte; Str = "zoom" b = (byte) str [4]; //

mysql - How to output a backslash from UTF-8 database using PHP? -

मैंने सफलतापूर्वक एक UTF-8 < / Strong> एन्कोडेड तालिका mysql_real_escape_string () का उपयोग कर रहा है। जब मैं phpMyAdmin के साथ डेटाबेस का उपयोग करता हूं तो यह क्षेत्र की सामग्री के रूप में एक बैकस्लैश दिखाता है। लेकिन जब मैं डेटाबेस को अपने कोड के भीतर पढ़ता हूं मुझे कुछ नहीं मिलता! यह एक खाली स्ट्रिंग है: (strlen ($ myBackslash) == 0) // सच डेटाबेस UTF-8 में है और कनेक्शन है यूटीएफ -8 पर भी सेट इसके अलावा एचटीटीपी और एचटीएमएल हेडर तदनुसार निर्धारित किए गए हैं: // कनेक्शन का चरित्र सेट (PHP में) mysql_set_charset ('utf8', $ conn); // HTTP हैडर सामग्री-प्रकार के पाठ / html; charset = utf-8 / / एचटीएमएल हेडर; lt; meta http-equiv = "content-type" content = "text / html; charset = utf-8" / & gt; मैं क्या कर रहा हूं? / * Db_connection.php केवल डाटाबेस कनेक्शन * / $ कनेक्शन = mysql_connect ("स्थानीयहोस्ट", "उपयोगकर्ता", "") या मरना ("error.php" शामिल है); / * Mysql कनेक्शन या शो बनाने

c# - How to write to a dynamical number of Textboxes? -

I have a form with a dynamically-generated text box (Windows Forms): < Code> textbox [] TbxCantServ = new text box [1]; Int i; (I = 0; i & lt; tbxCantServ.Length; i ++) for {tbxCantServ [i] = new text box (); } Forchha (Texbox TBXactive Kant in TBX Kantserve) {TBXactive Kant. Location = new point (Ihorizontal, ivertical); TbxActualCant.Name = "tbx" + Counter ++; TbxActualCant.Visible = True; TBXVivial Kent With = 44; TBXActualCent.maxelanel = 4; This.Controls.Add (tbxActualCant); } Now I want to fill them with data, how can I do this? If I have made some text boxes dynamic with names: "TBX Activated Acer. Name =" TXT + "Counter;" How can I write them? For example, if I made TBX1, TBX2 and TBX3, then I would have "for" which fills TBX1. Text with "1", TBX2 With text "2", and tbx3.Text "3" Like something like like this: / P> this.Controls.OfType & lt; TextBox & gt; (). Where

node.js - Node JS: socket.io with multiple childs -

I am developing a server with a node JS, where I make more than one child with chrome Open an html <("Chromium-Browser", ['RasmidiaVoicesOvim's']); Child.on ('exit', pre & gt; function () {res.writeHead (200, "0K", {'content-type': 'text / plain'}); res.end ();}); }); This HTML has a socket.io communication with the server: io.on ("connection", function (socket) {app.post ('/ Play video', function (rik, ridge) {socket.emit ("playvideo"); res.writeHead (200, "0K", {'content-type': 'text / plain'}); res. End ("content type ':' text / text '),' apopost '(' / pause video ', function (rick, ridge)) {socket.emit (" pausevideo "); res.writeHead (200," 0k "side '}); res.end ();}); My problem is here if I create 2 childs_process with the code shown above I'm both chrome windows They are executed well but

Python, printing a specific amount of characters in a string at a time -

इस सवाल का पहले से ही एक उत्तर है: < / P> 2 जवाब मैं प्रिंट करने का प्रयास कर रहा हूं एक समय में एक स्ट्रिंग के तीन अक्षर। मुझे & gt; & gt; & gt; S = 1234> & gt; & gt; S [0: 3] 123 मुझे मुद्रित करने के लिए पूरी स्ट्रिंग की आवश्यकता है, लेकिन एक समय में केवल तीन वर्ण प्रदर्शित होने चाहिए I यह वही है जिसे मुझसे पूछा जा रहा है एक प्रिंट टाइप करें जो कि एक स्ट्रिंग, एक बार में तीन अक्षर प्रिंट करता है। याद रखें कि लेन (स्ट्रिंग) एक स्ट्रिंग की लंबाई देता है। मुझे बस कैसे करना है पर निर्देशित होने की जरूरत है, अगर आप बस एक कोड पोस्ट करते हैं, तो कृपया एक संक्षिप्त विवरण दें, धन्यवाद! अपने उद्देश्य को पूरा करने के लिए बहुत सारे तरीके हैं मैं सबसे प्रत्यक्ष def प्रिंटथीस (माइस्स्ट्रिंग): s = '' # के साथ जाने जा रहा हूं, हम एक खाली स्ट्रिंग गणना प्रारंभ करने जा रहे हैं = 0 # माइस्स्ट्रिंग में आइटम के लिए एक काउंटर को इनिशियलाइज़ करना: # स्ट्रिंग में प्रत्येक वस्तु के लिए # आइटम को हमारे खाली स्ट्रिंग गिनती में जोड़ दें + = 1 #

ruby - Chrome asks to "Select a Certificate" for SSL on my Rails app using thin -

I have a rail app that is configured to use SSL only. I have a free SSL certificate from StartSLL Are there. I use thin as my web server with this command: thin start-p 80 & amp; Thin Start-P443 - SSS - SSL-key-file ./.ssl/sslkey.key --ssl-cert-file ./.ssl/sslcert.cert & amp; It works technically - visits the HTTP version of my site to redirect to the https version. However, both Chrome and Safari give me a signal when I go to the site to "select a certificate" from the bunch of your local key with the site. This behavior is not desirable, how can I install thin in such a way that this dialog does not appear? As joelmaranho points out, , this is a thin . At the time of your writing, the solution was not available in - ssl-disable-verify , now in Thin , but it is. Solution: Start slim with - ssl-disable-verify .

c# - Page-based action for back button -

My question is how to define your action for a given page, ie, first click on the button Close Popup and Page Navigate from the other? Since the WP8.1 navigation helper is quite useful, it only gives a general action to click on the back key (exit page). I can not overwrite the NavigationHeller because it does not give any setters for it. The command and handler for private button handles are private, so I can not unpin it on the page, change the navigation Helper Looks ugly because I W8.1 & amp; I am developing the universal app for WP8.1 and I have many pages that require a custom handler for the back button. - Edit - Orders are allowed to overwrite, however, I will use the original command on every page. Solve a new order on every page? I think you can be a member of Windows Phone. UI.Input.Hardware Buttons Press before the navigationHelper (as I loaded it in the page. Loaded Event) In fact for this purpose (as you will add event handlers later), you will nee

javascript - npm to install third party conversion tool -

I am trying to set up a tool that gives my "feature service" a geotiger (some hosted) Will change in I node JS installed and the node works fine, but it seems that there is a missing file to install Manager's service which I want to use. Error I given below since attempted to follow the installation instructions. It seems that there is a missing javascript file. Do I need to add it? And where do I download or insert this file in NPM? I am new to node and I have looked at other websites but I feel that no one is seen in the same error document. Niko: ~ nroldos $ npm install -g featureservice2trigger module.js: throwing 340; ^ ERROR: Not on module './polyfills.js' function. On module._ solutionFilename (module.js: 338: 15) function. Module ._load (module .js: 280: 25) on the module. JS: 364: 17) is required (module. JS: 380: 17) on the object. & Lt; Anonymous & gt; (/Users/nroldos/.nvm/v0.10.26/lib/node_modules/npm/node_modules/graceful-fs/grac

How to Get a particular String From A File in c++? -

I have a file with data in a fixed layout. Each row has an IP address that I have to remove it and do something else in C ++. A row looks like this: T. 0.00057 / nodelist / 0 / DeviceList / 0 / $ NS3 :: WifiNetDevice / PHY / State / Tx NS3 :: WifiMacHeader (Statistics TODS = 0, FromDS = 0, Try again = 0, MoreData = 0 term / id = 0usDA = FF: FF: FF: FF: FF: FF, SA = 00: 00: 00: 00: 00: 01: BssID = 00: 00: 00: 00: 00: 01, Fragmentar = 0, Sequenumber = 0) NS3 :: LLC snap header (type 0x800) NS3 :: Ipv4Header (TOS 0x0 DSCP default ECN -ECT TTL 64 ID 0 protocol 17 offset (byte) 0 flags [no] length: 228 10.1.1.1 10.1.1.255) Ns3 :: UdpHeader (Length: 208 49153> 80) Payload (size = 200) NS3 :: WiFi Mactereler () The IP address to be removed is 10.1.1.1 . There are 10,000 such lines in the file. T. 0.00057 / nodelist / 0 / devicelist / 0 / $ NS3 :: WiFiNet device / fi / state / tx ns3 :: wifi mac header (data tds = 0, cds = 0 , More frg = 0, retry = 0, more data = 0 Dura

caching - cache reads and writes -

I'm reading about cache writing policies, and I just want to know if I understand it correctly I am When the results read in a cache memory, it will remember that block and put it in the cache. Miss a cache, it would mean that the space in the memory that wants to write in the program is not within the cache, right? Therefore, I am reading the details of Write-Back , which is according to Wikipedia: Initially, writing is done only for cash. Writing to the backing store is postponed until the data is included in the cash blocks, being modified / replaced by new material. Only memory of one cache block can be substituted, while reading, is correct? And by writing one, the data will need to be converted to memory in a particular location (and it will be within a cash block if it is a hit), but will it leave the actual storage locations within the block as equal, right? This is my understanding and I want to make sure that it is correct. Edit: Wait, I think it will als

Android: How to execute function after every 10 minutes? -

/ ** * भेजें बटन क्लिक ईवेंट ** / send.setOnClickListener (नया देखें। OnClickListener () {@Override सार्वजनिक शून्य पर क्लिक करें (दृश्य देखें) {नेटएसिंक (देखें);}}); } क्लिक करें इवेंट पर "नेटएसिंक (दृश्य)" निष्पादित और जीपीएस को सर्वर पर निर्देशांक भेजता है, लेकिन मुझे क्या चाहिए यह है कि बटन का उपयोग करने के बजाय ईवेंट पर क्लिक करने पर उपयोगकर्ता ने ऐप "नेटएसिंक (देखें) "प्रत्येक 10 मिनट के बाद स्वचालित रूप से निष्पादित करें कृपया मुझे बताएं कि यह कैसे करें जैसा मैं एंड्रॉइड प्रोग्रामिंग के लिए नया हूँ। आप इसे टाइमरटैस्क का उपयोग कर सकते हैं और टाइमर वर्ग की तरह अंतिम हैंडलर हैंडलर = नया हैंडलर (); टाइमर टाइमर = नया टाइमर (); टाइमरटास्क doAsynchronousTask = नया टाइमर टास्क () {@ ओवरराइड पब्लिक वायड रन () {हेन्डलर पोस्ट (नया रननाबल) (सार्वजनिक शून्य रन) {try {// आपका तरीका यहां} पकड़ (अपवाद ई) {}}}); }}; Timer.schedule (doAsynchronousTask, 0, 600000); // हर 10 मिनट में निष्पादित

Defining TraceSource logging configuration for C# libraries -

I am working on shipping some libraries and I used TraceSource's to apply some diagnostic tracing I'm planning to use I also want to allow users to add / configure their own listeners, switches, filters etc. Since the libraries did not ship with config files, is there an existing pattern that meets it neatly? I am thinking of the following: a logging. A config file that shows from the library and shows that no audience is used in the sources used in my library. After this, in my library, I read both the user's logging.config and app.config Can I override logging.config with an audience defined in app.config file Is this sound like a fine pattern? App Config (or the system's web diagnostic section) .config) is allowed to point to external files, such as As far as I know, just one system. System Diagnostics is set to allow for the Diagnostics section, and not two that are merged. It may be possible with the ad hoc logging system (I think this is about

sql server - sql clustering - one db versus multipl dbs -

We are setting up a SQL cluster for our app. Our current setup is based on a very large number of small databases. We are looking to establish a cluster, but we want to convert all our personal database (about 5000) into a large personal database, or keeping our current setup. Some people say that it will be easy to manage a large database and will ensure high availability, while some say that managing large numbers of small databases will not be a problem. Any ideas on this? We also want to make sure that we should move on a large scale, and we will get 50000 databases, clustering and so on. Still the cause of the issues will never be. If you are having such a large number of databases, then I tell you that the design is again Should see .. and see what the database should understand. Or you should rationalize the institutions differently, there are always many DBS admin overheads. Apart from this, if you fall into 1 dB, you can make it bigger for backup / recovery e

c++ - Adaptive Bilateral Filter to preserve edges -

Image
I need to be able to find the edge of a card, currently it works when the background is non-disruptive And the best it is the opposite but still works very well on the non-reverse background. The problem occurs when the card is on the disruptive background, the bilateral filter gives too much noise and causes the wrong edge to be detected. Here is the code I am using: Bi-filter (imgGray, detectedADez, 0, 175, 3, 0); Seni (Detected Ages, Detected Ages, 20, 65, 3); Spread (detected aged, detected, matte :: cheese (3,3, CV_8UC1)); The gridlash version of the original image will be imgGray . Here are some tests on disruptive backgrounds and results (contact information), perverted in all images): Color card: Results: And here's a white card: Results: Does anyone Uje I can tell how the edges of the card I can protect any no matter the background color while removing the noise? Search for edges using canny , which you are already doing Find th

html - margin-left style not working on second <td> element -

Image
दो कोशिकाओं के साथ एक मेज के साथ: & lt; table & gt; & Lt; td अक्षम & gt; कुछ यहाँ & lt; / td & gt; & Lt; td शैली = "मार्जिन-बायां: 100px;" अक्षम & gt; दूसरा सेल & lt; / td & gt; & Lt; / तालिका & gt; मार्जिन-बायें: 100 पीएक्स पहले सेल से दूसरे सेल को अलग करने के लिए कुछ भी नहीं करता है। मैं दूसरे सेल के बाईं ओर स्थान कैसे बना सकता हूं? पैडिंग वाम पैडिंग-बाएं: 100px इस परिणाम का उत्पादन: दूसरे सेल के सामग्री अब बाईं ओर 100px का स्थान जोड़ा गया है। सेल की स्थिति पृष्ठभूमि हालांकि अपरिवर्तित रहता है। बॉर्डर-स्पेसिंग & lt; तालिका शैली = "सीमा-अंतर: 100px 0; मार्जिन: 0 -100 पीएक्स "& gt; इस परिणाम का उत्पादन करता है: अगर मैं एक तीसरी तालिका सेल जोड़ता हूं, तो मुझे यह परिणाम मिलता है: मुझे हर कक्ष के बीच अंतर नहीं करना चाहिए, बस दूसरा। सेलस्पेशिंग कोलेस्टेसिंग तालिका तत्व में प्रत्येक सेल के बीच रिक्ति बनाता है। मुझे नहीं चाहिए कि या तो, और एक स्रोत बताता है कि

Ruby Equivalent of the GD Library usage in PHP -

I want to write an app that overlays images and copies to the top of the second image. I know that in PHP you can use the GD library, but do anyone have a specific gem for Ruby to help with it? I have already seen 2 jewels, but are not sure who are the most people use. A bit as a library for GD image interference / processing dated as. The gems listed by you are old, really old and probably will have problems with new versions of Ruby. Based on my experience, I look at a gem such that the image provides a nice interface to the magic, for those tasks there is a more general library, which you are trying to do.

MySQL Event Scheduler syntax for insert and delete -

I was wondering if you can tell me what's wrong with FF SQL statement: translate from transponder_logs to * Choose * where trans_log_id & lt; 150000; Remove from transponder_logs where trans_log_id & lt; 150000 This statement was okay in SQL but when I used it on the Event Scheduler , it gives me a syntax error. The error message was: "You have an error in your SQL syntax, the manual that is close to compatible for your MySQL server version for correct syntax Use the check 'remove from transponder_logs where trans_log_id & lt; 150000 line3 " required a custom DELIMITER whenever you define a code that has many executable statements; Not. And your code will be sent to the server with delimiter instruction. And before it gets the newly defined custom delimiter, compiles the server as the block code what the document reads: < Blockquote> If you use the mysql client program to define a stored program, a problem occurs. By