Posts

Showing posts from February, 2014

Get data from Webpage that looks like Javascript into Java? -

I am trying to scrape this data and time for each match on that page, home team and away I am trying to get the team. / P> I tried to use jSoup - but now know that JavaScript is being loaded after loading the page ... is there any way, can I still get this data? Cheers Rob You can not do with JS You can try Selenium and / or: PhantomJS: / and with Pjscrape: With Phantomjs you can scribble with it for example: var page = ('webpage') is required. Create (); Var fs = require ('fs'); // file system module var args = system.args; Var output = './temp_htmls/test1.html'; // path to save the local file page Open ('http://www.futbol24.com/Live/?__igp=1&LiveDate=20141104;rpp=50;po=0;dct=PS;D=OSHA- 2013-0020', function () {/ / Open the file fs.write (output, page content, 'w'); // page using the content file, write the page- phantom.exit (); // exit phantom js}); Here we have opened the page using the pavement and then s...

html - Responsive thumbnail grid resize on width -

It should be easy to create a sensitive thumbnail grid, when the width changes automatically when the image is resized automatically But I've seen in several ways how thumbnail grids are using some of the order list structure used: If others just use a div and img structure, what's the best way to create a thumbnail grid? In my example, I have a focused content in the browser, a maximum width of 750px and I want to put 5 square thumbnails that fill 100% of the location and when the width changes, To adjust. Apart from this, I want to play with space in those places which removes all the places or afterwards, but the content holds 100% width of the area and the content adds top and bottom position between the text. It does not matter whether you use a DIV or an anonymous or even order list. I like to choose an anodized list for such a case because it seems meaningful to me but layout magic is in your stylesheet. One reason that I use lists is that it often come...

subset - How to replace values in a STFDF spacetime object in R -

I am going to fill an STFDF object from the spacetime package on a timely basis, and I'm having trouble changing the values Is the object. Here's an example of what I would like to do: Transfer local data for the first time with Library (Spacetime) data # 100th Grameen [1] & lt; Error occurred in the last line: Type 's4' is not subnetable Pre> How should I reduce STFDF? Alternatively, should I substitute all the changes in the matrix then the matrix should be converted to STFDF? Thank you! Subscribing works, but this is subset - you are trying to do that, ST * The easiest way to apply for the object is to work with low-level structures ( data.frame or matrix ), and when it is complete, STFDF Build, either using the constructor function, STFDF () or stConstruct . You can replace the full column, as the rural $ PM10 = 10 * rural $ PM10 but you It should be known that with whom you change it (which is not particularly difficult for...

php - __construct function not working -

Public function __construct is not working Please help me. Thank you php class vp_session {public function __construct () {if (session_id () == '' || session_status () = = PHP_SESSION_NONE ||! Continue ($ _ session)) {session_start (); }} Public Stable Working Set Session ($ key, $ value) {$ _SESSION [$ key] = $ value; } Public stable work getSession ($ key) {return $ _SESSION [$ key]; } Delete public stable work session ($ name) {without set ($ _ session [$ name]); } Public static function session Destroy () {session_destroy (); }} Calling vp_session :: setSession ("user_id", "$ this-> user_id"); Error undefined variable: _SESSION The method (s) are using. If you make a call: vp_session :: removalSession (); Your constructor will not be automatically asked. You should either: Do not use static methods: a new vp_session () object, or should: Istanciate

ios - Get screen width and height only in portrait -

How to get the width and height of the screen in the landscape orientation, I have two iPad 4 tablets and on one of them Landscape Width & amp; Height, and on the other it takes me a picture even though this orientation is on lanscape I am using this at the moment, but it is not working well CGFloat Width = self.view.bounds.size.width; CGFloat height = self.view.bounds.size.height; Use [UIScreen main screen] .bounds You talk This rectangle is specified in the current coordinate area, which takes into account any interface rotation for the device. Therefore, the value of this property can change when the device rotates between the portrait and landscape orientation. Use the [UIScreen main screen]. Nativebounds IOS8 only to get image-lock limitations. Discussion This rectangle is based on a picture-up orientation on the device. This value does not change in the form of a device rotate.

Yii 2.0 migration ReflectionException message 'Class yii\gii\Module does not exist' from git project -

I'm trying to execute a migration script, though I'm getting this exception: ' Exception' ReflectionException 'with the message' class yii \ gii \ Module does not exist ' .php: 408 For example ./Yii Migrate / Test I have the latest version of Yii. I've been here for some time, but not me Know how to move from here I have cloned this project with GIT .. Is loaded through GIT. Some of the vendor files have been ignored by GIT (.gitignore). I have run the follwing command: Composer install it solved the whole problem.

UITableView Seems to reloadData automatically (tabbar controller) iOS8? -

When I switch the controller with the tabbar controller I do not prevent my table from reloading my data from the video can. My cells are too heavy to load and no new data has been downloaded so that there is no need to reload the table view in addition to freeing the UI for less than half the seconds ... Did you have iOS 8 (IOS7 is checked on and I thank you for your help. Try to overlap the viewWill more Do not Call Super

java - calculating the gcd and lcm of 5 numbers -

How can I calculate the 5 numbers GCD and LCM which I should use a loop that I should make? ? This is what I had started to do but I think that I can start from the beginning in the wrong way can help anyone public static zero main (string [] Args) {// TODO auto generated method stub scanner input = new scanner (System.in); Int nbr1 = input.nextInt (); Int nbr2 = input.nextInt (); Int nbr3 = input.nextInt (); Int nbr4 = input.nextInt (); Int nbr5 = input.nextInt (); For (int i = nbr1; (i% nbr2 == 0 || i% nbr3 == 0 || I% nbr3 || i% nbr4 == 0 || i% nbr5 == 0; i ++) { }}} In order to calculate GCD for you, arrayOfInts and LCM of many numbers and possibly it can guide you better.

i have made a call button in android it shows fatal exception main error can any one explain this or give me another code? -

** This is the code that I use to develop my program and this fatal exception shows the main error Import android.app.activity; Import android.content.Intent; Import android.net.Uri; Importroid.os.Bundle; Import android.view.View; Import android.view.View.OnClickListener; Import android.widget.ImageButton ;; Public classroom enhances main activity activity {@ Override Protected Zero (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_main); ImageButton call = (ImageButton) findViewById (R.id.call); Call.setOnClickListener (New OnClickListener) {@Override Click Public Zero (see V) {intent call = new intent (Intent.ACTION_DIAL, Uri.parse ("Tell: 0774459581")); Primacy (call);}}); ....... .... .... intent to call = new intent (int. Action_dial, uri.from (" tell: 0774459581 ")); You've mistakenly written , tell: . Remember to add Tele: Use of Android-permission: name = "android.permission.CA...

ios - Local notification sound not working -

I'm trying to create an alarm app, but when I try to create a local notification, I do not sound Could play I found this error: [user information = (zero)} with the sound but the user has not received permission to play sound] Here's the code: @Iboutlet var Set Alarm: UIDPP! @IBAction func setAlarmButton (From: AnyObject) {var dateformater = NSDateFormatter () dateformater.timeZone = NSTimeZone .defaultTimeZone () dateformater.timeStyle = NSDateFormatterStyle.ShortStyle dateformater.dateStyle = NSDateFormatterStyle.ShortStyle var Datamatistry = NSString () datetimestring = dateformater.stringFromDate (SetAlaram.date) println (datetimestring) [self .localnotification (setAlaram.date)]} function localnotification (firedate: NSDate) {var localNotification: UILocalNotification = UILocalNotification () localNotification.fireDate = firedate localNotification.alertBody = "Wake up time For "localNotification.soundName =" alarm.wav "UIApplication.sharedA...

c++ - How can I create a shared_ptr to a std::vector? -

I need to create shared_ptr on a std :: vector, what is the correct syntax? std :: vector & lt; Uint8_t & gt; MVector; Shared_ptr & lt; Std :: vector & lt; Uint8_t & gt; & Gt; MSharedPtr = & amp; MVector; The above code does not compile. Thank you. Let's make a smart pointer manage the stack object that you are trying to do. This does not work, because the stack object is going to kill itself, when it comes out of the scope. Smart Pointer can not stop it from doing this. std :: shared_ptr & lt; Std :: vector & lt; Uint8_t & gt; & Gt; SP; {Std :: vector & lt; Uint8_t & gt; MVector; SP = std :: shared_ptr & lt; Std :: vector & lt; Uint8_t & gt; & Gt; (& Amp; mVector); } Sp-> Empty (); // anchor reference, as the mVector has already been destroyed three options: (1) Start vector and do this shared_ptr : automatically mSharedPtr = std :: make_shared & lt; Std :: vector &...

google app engine - I have trouble with update python webpage (invalid password) -

I do not update my web page for several days I can not migrate to python27 etc. I can not make $. / Appcfg.py update [my web page] I get an invalid password when I log in. I can login to the web engine at appspot.com invalid Username or password: 2014-11-04 13: 05: 54,237 error appcfg.pyallery417 The file '' had an error in processing: HTTP Error 401: Unauthorized cancellation. Error 401: --- Server start output --- First must be authenticated. --- The end server output --- Where can I send my problem, how will this password not change the webpage's app password? Try it with the - oauth2 parameter, i.e epicgap --Aouth Update 2 / Path / From / Your / App This will prompt for your credentials in the browser instead and remember them next time in cookies so that you have to do it again . This will work until you enter the credentials for which you have entered the credentials in an attempt to reach the ADP-ID.

ios - Prefixing the files to avoid symbol conflicts between external frameworks -

I'm using the two external structure in my IOS code. While both the Framework internally PLCrashReoprter using the framework, which is why I'm getting duplicate symbol errors. Now a framework, i.e. the prefix of the file in the crash reporter framework, has the name / symbols attached. Code written to add the prefix names are given below: #define PLCRASHREPORTER_PREFIX AcmeCo #ifdef PLCRASHREPORTER_PREFIX // We need two additional layers to make CPP option / / PLCRASHREPORTER_PREFIX Let's define. PLNS_impl2 (prefix, symbol) prefix ## signal # define PLNS_impl (prefix, symbol) PLNS_impl2 (prefix, symbol) #defined PLNS (symbol) PLNS_impl (PLCRASHREPORTER_PREFIX, symbol) #define PLCrashMachExceptionServer PLNS (PLCrashMachExceptionServer) #define PLCrashReport PLNS PLCrashReportApplicationInfo PLCrashReportBinaryImageInfo PLNS (PLCrashReportBinaryImageInfo) #define PLCrashReportExceptionInfo PLNS (PLCrashReportExceptionInfo) now the error " comes Apple Ma...

Creating a comma seperated csv file in ruby -

I have such an array reference a1 = [["http: // ww When I write it in CSV file it is written as ["http: />> IAM). / O.amazon.com "] [" unsuccessful "] but I want to write http: / /ww.amazon.com failed Firstly you will see the array a1 b1 = a1.flatten # => ["http: //wwamazon.com", "unsuccessful"] Then you need the following csv variable: each line (array) 'csv' csv_string = CSV.generate ({: col_sep = & gt; \ T "}) do | csv | CSV & lt; : col_sep = & gt;" \ t " one per line Inserting tab separator Change the value of : col_sep = & gt; Finally you have the correct form of csv in csv_string Is

MySQL: Trigger in wrong schema -

सीमांकक // पर्यटक ट्रिगर से पहले 'श्रेणी' बनाएँ। ; 5 एसईईईटीई। स्टार = 5; ELSEIF NEW.star & lt; 1 फिर सेट NEW.star = 1; अगर अंत; END; // सीमांकक; आपको एक ही स्कीमा / डेटाबेस के भीतर ट्रिगर बनाने की आवश्यकता है जहां डालने का ऑपरेशन हो रहा है। अपनी ट्रिगर परिभाषा से यह स्पष्ट है कि ट्रिगर ऑपरेशन पर्यटक कम्पनी डेटाबेस के अंतर्गत होगा सुनिश्चित करें कि आप एक ही डेटाबेस के तहत ट्रिगर बना रहे हैं। अपनी ट्रिगर परिभाषा को नीचे की तरह संशोधित करें सीमांकक // बनाएं ट्रिगर `पर्यटककंपनी`। 'क्रांति' पर्यटककंपनी`। 'होटल' हर पंक्ति के लिए शुरू करें यदि नया। स्टार & gt; 5 फिर SET NEW.star = 5; ELSEIF NEW.star & lt; 1 फिर सेट NEW.star = 1; अगर अंत; END; // सीमांकक; (या) ट्रिगर करने से पहले डेटाबेस का चयन करें USE `touristCompany`; सीमांकक // ट्रिगर `श्रेणी` बनाएं ... & lt; शेष कोड यहां & gt;

c# - Socket Error The requested address is not valid in its context -

का उपयोग कर सॉकेट विकल्प सेट करने की कोशिश करते समय: listener.SetSocketOption (SocketOptionLevel.IP, सॉकेटऑप्शननाम.एडएममरशिप, नए मल्टीकास्ट ऑप्शन (आईपीएड्रेस)); मुझे निम्नलिखित अपवाद मिल रहा है; अनुरोधित पता इसके संदर्भ में मान्य नहीं है मेरे सूचीकर्ता है: सॉकेट श्रोता = नया सॉकेट (पता Family.InterNetwork, SocketType.Dgram, ProtocolType.Udp); और आईपी 3.212.xx है क्या यह आईपी की समस्या है? समस्या इस कथन में है: listener.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.AddMembership, नया मल्टीकास्ट ऑप्शन (ipAddress)); इस निर्माता को रूप में रूपरेखा: सार्वजनिक मल्टीकास्ट ऑप्शन (आईपीएड्रेस समूह) तो एक मल्टीकास्ट ऑप्शन समूह के लिए दिखता है प्रसारण करने के लिए, लेकिन मैं स्थानीयआईपी पार कर चुका हूं और यह समस्या थी। इसके बजाय मैंने अपना कोड अपडेट किया: IPAddress ip = IPAddress.Parse ("224.5.6.7") ; सॉकेट _ सॉकेट सर्वेयर = नया सॉकेट (पताफ़ैमिली.इंटरनेटवर्क, सॉकेटटाइप। डीग्राम, प्रोटोकॉल टाइप। यूपीएस); _socketServer.SetSocketOption ...

c++ - Adding N elements from user to an vector endline -

I have trouble using a vector for adding elements at the end of the line. My Stretch: Structure Process_s {int type_id; Int line_id; Int product_id; }; Then I change it using a vector: std :: vector & lt; Process_s> Process_v; My next step is populating two rows: process_v.at (1) .type_id = 1; Process_v.at (1) .line_id = 1; Process_v.at (1) .product_id = 2; and process_v.at (2) .type_id = 1; Process_v.at (2) .line_id = 2; Process_v.at (2) .product_id = 2; From now on, my goal gets all the user input and connects to the last (1) or second line (2) in the end, all data is available on time, I get it with ODD and EVEN , Or in other words, I will copy the line one (1) to the three (3) line and copy line two (2) line (4), the number the first problem The attempt to add more data than user input from first or second row to end Is trying to use this: process .at (1) = 1 or process (1) .push_back = 1 From this point I need to store user input ...

Push notification for new gmail -

I used oauth2 to log in to gmail account and successfully received inbox mail. But my mail client can not send information (on iOS) information when someone sends me an email Can anyone tell me some Google API or how to do this? Unfortunately, there is no mechanism to automatically get updates when a new mail arrives, thanks, I would recommend entering an escalation request for push notifications support in the Gmail API. Instead, you can reduce the resource usage once you have full sync, and then keep an eye on the history ID and can only partially sync from that point.

html - PHP Regex to match everything between <body style=...> and </body> tag -

I have found a curl function that catches everything on a specific page, but I only have to I want the elements only. Send me the & lt; Body & gt; and & lt; / Body & gt; To match everything, this nifty rezox got what worked, but then I realized that the pages in which I need to use curls actually have a body tag with style information inside them. , So that I really want to match & lt; Body style = ... & gt; and & lt; / Body & gt; Does anyone know the regex expression for that match? Here are all my code here ... & lt ;? Php error_reporting (E_ALL); Ini_set ("display_errors", "1"); $ PageToLoad = $ _POST ['Load']; Function get_data ($ url) {$ ch = curl_init (); $ Timeout = 5; Curl_setopt ($ CH, CURLOPT_HEADER, 0); Curl_setopt ($ ch, CURLOPT_URL, $ url); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_CONNECTTIMEOUT, $ timeout); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYPEER, incorrect)...

ios - How to implement a protocol which has same name as another class -

In Objective-C, @interface and @protocol may have the same names. How can I create a class in Swift to adopt the protocol only? @interface NICellObject: NSObject & lt; NICellObject & gt; // Named Starters - (ID) initWithCellClass: (class) cell class userInfo: (id) userInfo; - (id) initWithCellClass: (class) cell class; + (ID) ObjectWidell class:: (class) cellclass user information: (id) userInfo; + (Id) ObjectWithLeace: (class) cell class; @property (nonatomic, strong) id userInfo; @end How to adopt Protocol NICellObject without subclass class NICellObject When you import Objective-class faster, the "protocol" will automatically be attached to the name of the protocol. So you just have to adopt xxxxx protocol I just tried your local project in your case NICellObjectProtocol The old answer before editing You take it wrong, they are two different things with the same name. There is a protocol called NICellObject, and also a class NICellObject nam...

php - RSS feed working fine in localhost but does not work on the server -

I am working on a website that extends news feeds from my blog to website, it works fine in my localhost , But when the content is online, the same code does not work. Here is my code and here is the link to the website ... Channel-> Image-> url." "/ & Gt; '$ Rss- & gt; Channel & gt; Title.' IMG ($ rss-> channel- & gt; items as $ item) with { pubDate; $ MyLink [$ i] = $ item, & gt; link; $ Mytitle [$ i] = $ item, & gt; title; $ Dater [$ i ] = $ Item, & gt; pubDate;} $ I ++;} print '& lt; a href =' '$ item- & gt; Link [0]. '' Target = "_ blank" & gt; '$ Item- & gt; Heading 1].' & Lt; / A & gt; & Lt; Br / & gt; '; // print $ dater [1]; ? & Gt; Here's the code where I want to print the date

smtp - Sending email fails when two factor authentication is on for Gmail -

I am using my Gmail account and smtp.gmail.com from my web application Send and email to test inside. When two factor authentication is turned on for my Gmail account, it fails to send email, however, when I close two-factor authentication for my Gmail account, the web application successfully sends an email to appreciate any kind of advice Create a custom app in Gmail security settings. 1. Log in to Gmail with your account 2. Visit https://security.google.com/settings/security/apppasswords 3. Select 'Custom' in 'Select App', give it an arbitrary name and press Generate 4 . This will give you 16 characters token Use the token with your full Gmail account as a passover and two factor authentication will not be required.

ios - sectioned table view returning blank table -

I found examples of code to create table view with alphabet sections and I tried to optimize for my tableview. Have done However, now the simulator is returning blank table. I have made a mistake, anybody is pointing to the mistake? I do not help in every change. Thanks #import "RCViewController.h" @interface RCViewController () @end @implementationRCViewController @ synthesis content = _content; @Synthesis sectionData; @section name synthesize; - (NSArray *) Material {NSArray * Term = [NSArray arrayWithObjects: @ "T", @ "Club", @ "Green", @ "Put", Zero]; NSArray * Sorted word = [word sorted by user: @sillector (case insensitive comparison);); NSString * currentLetter = @ ""; For (nssstring * string in the sorted word) {if (string.length & gt; 0) {NSString * letter = [string substringToIndex: 1]; If (! [Extra characters extractor: current letter]] [[section name namebiejet: letter]; CurrentLetter = letter; NSMut...

ios - Passing closure to be called later -

I am trying to create an array of custom action objects, each of which is a closure that can be called later is. What am I doing wrong here? How can i stop {Println ("1 blue"}} action 2 = verb (title: "2", image: "yellow"); actionone = action (title: "1", image: "blue" ") {Println (" 2 yellow ")} Actions: Array & lt; Action & gt; = [Actionwalker, Action] // How to run off a action? ActionOne.closure () // COLLECTION ERROR: Invalid use of '()' to call the value of 'non-function type' (?)? ' ----- Class action {var title: string? Var Image: String? Var closed: ()? Init (title: string, image: string, closing: () -> ()) {self.title = title self.image = image self.closure = close ()}} class action {title: string giving two pictures: close the string: () -> () Title: String, Image: String, Closing: () - & gt; ()) {Self.title = title self.image = image self.closure = close}} le...

firefox - Imacros (javascript) Enter key not working -

I have created a javascript for this website (imacro). The script should search for the name. When the script gives input to a name, then the key or place must be pressed to show results manually. There is no search button here is a part of my code. macroarth + = "url goto = http: //www.okcupid.com/home" + "\ n"; MacroStart + = "Tag POS = 1 Type = ATTR = TXT: Search & Lt; SP & gt; A & lt; SP & gt; User" + "\ n"; Macro ++ "Door SECO = 2" + "\ n"; MacroStart + = "Tag POS = 1 Type = Input: Text ATTR = Type: Text & amp; amp; amp;; Category: Inauguration & Placeholder: & lt; SP & gt; A & lt; SP & Gt; User & lt; SP & gt; User & lt; SP & gt; Username & lt; SP & gt; or & lt; SP & gt; Interest CONTENT = "+ n +" \ n "; Macro ++ "Door SECO = 2" + "\ n"; Macro ++ "ds cmd = click x = 28 9 y = 72 content = {enter}...

Hyperlink in MS Access report -

Image
I have created an MS Access 2013 database to track all the communications about a trading website. And columns have ads with column IDs (numbers) and links (hyperlinks), and columns with ads have a link to the advertisement, in which there is an advertisement ID link in the link field for advertising on the website. The link column is easy to include in the report, but to save space, I would like to change the ID field to hyperlink as the displayed text and the link column contents as the target. How would I go about that? I have already played a bit of role with the properties of the ID column and "Hyperlink" is correct and "Hyperlink target" with "SELECT" # & amp; Link & amp; # 1 ads. URL '', but it was not working. It may require a WHERE clause, but how do I reference the value of the ID field of the record in question? For example, I created a table called [LinkTest] with the column ID - AutoName, Primary key SiteName - ...

python - Printing the line in a text file that contains a string -

I am trying to get a line of text file that has a fixed string and printing the third number or string Is the line. The text file looks like this: 1997 180 60 Bob 1997 145 59 Dan If input text contains bob So my code should print to 60 . Even how far away I have: calWeight = [line in open ('user_details.txt') for row if string in name] stringCalWyight = Str (calWeight) Print (StringCalVight) How can I fix this? If you want a list of all the points where the bob is in line, then the understanding of the list Use: with open ('user_details.txt') as F: nums = [line.split () [2] in the line f in the "Bob" line ] You want to break even before you check whether you want to avoid the case. The name line is the substrings of a string, for example bob in bobbing -> true: nums = [line.split () [2] line In f "Bob" line.split ()] I I think that a more useful structure would be a dict. There are all the third numbers i...

xml - How to create a CSV download in Php -

I need people with some help, I am pulling data from the CRM using APIs and I am going through the medium of each variable I am looping from The answers given below are completely okay when it is isolated inside Wordpress. For ($ x = 0; $ x & lt; = $ total_leads; $ x ++) {$ first_name = $ xml- & gt; Users & gt; User [$ x] - & gt; Firstname; $ Last_name = $ xml- & gt; User- & gt; User [$ x] - & gt; Lastname; $ Company_name = $ xml- & gt; User- & gt; User [$ x] - & gt; company; } The data that I have to do is to add that data to someone. Push into a Csv file and download it. I have tried various examples here and I have no luck. It seems that the data should be stored in an array. Any suggestions? Update: 'header (' content-type: text / plain '); Header ('content-dispute: attachment; file name = sample ccv'); ($ X = 0; $ x & lt; = $ total_leads; $ x ++) {$ first_name = $ xml- & gt; User- & gt; User [...

Returning meteor collection in helper function -

निम्नलिखित उल्का कोड में: Template.postsList.helpers ({posts: function () {लौटें] पोस्ट.फंड ();}}); क्या हम पदों को वापस नहीं लौटा सकते हैं? खोजें () सीधे? पोस्ट: पोस्ट.फिंड () पेपे-एलजी ने जो बताया है उसके आधार पर मैं पूरी तरह से अपना जवाब बदल रहा हूं। निर्माण प्रक्रिया केवल आपके टेम्पलेट में html को ध्यान में रखती है, इसलिए सहायक कोई भी हिस्सा नहीं खेलते हैं। वास्तव में, जो आपके ऊपर है वह पूरी तरह से कानूनी है, और प्रतिक्रिया के साथ पूरी तरह से काम करेगा, बशर्ते आपने टेम्पलेट सहायक से पहले डाक संग्रह घोषित किया है - अर्थात संग्रह को गहरा निर्देशिका में घोषित किया जाना चाहिए सहायक फ़ंक्शन के मुकाबले या lib फ़ोल्डर में, के अनुसार।

c# - How to get all populated ranges in Excel? -

Image
I am trying to find all populated ranges in an Excel sheet. For example, for the sheet in the picture I have to get two categories: category 1: = b2: c4 category2: = E4: f6 Is there a "intelligent" way to do this?

python - AttributeError: 'module' object has no attribute 'ToManyFields' -

मैंने एक BaseResource बनाया है वर्ग BaseResource (ModelResource): def wrap_view (self , दृश्य): @csrf_exempt डीईएफ़ आवरण (अनुरोध, * args, ** kwargs): प्रयास करें: कॉलबैक = getattr (स्वयं, देखें) वापसी कॉलबैक (अनुरोध, * args, ** kwargs) IntegrityError, ई को छोड़कर: वापसी HttpResponse (ङ , स्थिति = 300, कारण = 'आंतरिक सर्वर त्रुटि') आवरण कक्षा को लौटाता है मेटा: अनुमति_मूलियाँ = ['जाओ', 'पोस्ट', 'डाल]] सूची_पूर्णता_मक्तियाँ = [' जाओ ',' पोस्ट ',' डाल]] detail_allowed_methods = [ 'पोस्ट' 'के लिए', 'डाल'] include_resource_uri = झूठी default_format = 'आवेदन / json' always_return_data = सच थ्रोटल = BaseThrottle (throttle_at = 3, समय सीमा = 10, समाप्ति = 1) प्रमाणीकरण = MultiAuthentication (SessionAuthentic व्यावहारिक (), ApiKeyAuthentication ()) प्राधिकरण = प्राधिकरण () serializer = urlencodeSerializer () मेरी संसाधन है: वर्ग UserResource (BaseResource): समूह = क्षेत्रों। ToManyFields ('GroupReso...

visual studio 2013 - VBOLEDB data connection not recognizing all the .DBF files -

I am using Visual Studio 2013 and I am trying to import some database files into the dataset. I am using the OLE DB FoxPro data source provider and it works, it will not load all the DBF files using the data connection, so that I can choose which to add to the table in my dataset Files are as it seems like they can not even see them. I can not use the ODBC connection because it crashes Visual Studio every single time for any reason However, when I add it as an ODBC connection, it recognizes all the files as it is supposed to be. I can not use them or it will be an accident I am working on it for days, so please help! It will not allow me to add these files using Microsoft Jet 4.0 I Your connection string Without looking, I can only suggest posting it. However, I also guess that your connection string is pointing to a specific DBF file that connects to a table. Your connection should point to loggid drive / path and not explicitly file a .dbf name. The second possibility is...

python - nose2 coverage plugin timing -

I am running a nose 2 test with the coverage plugin. I noticed that decorative, class announcements and work definitions are not being marked as covered, even if I found "real code" below them, which suggests to start coverage "first." How do I do this through nose 2? I tried exporting NOSE_WITH_COVERAGE = true , but there was nothing like it Additional References: Finally we are hoping to plug these tests into Jenkins , If this is the case. ETA: did not work on [coverage] code> always-on = true my nose2.cfg . To run a stupid-proof way coverage to start coverage, use the nose instead of the nose For example, instead of: $ nas 2 blah blah blah you can use it: $ coverage run - M nose 2 blah blah and then only blah blah blah .

c# - DataTables multisort columns .net mvc hint -

I am using the Datatables Jquery extension and I've done multicol sorting to read those posts: My question is, those two methods depend on the model that I am using in my controller, in this situation If I need to use the same code in other controllers, then I can repeat it and change the model field and the other And requires, for example. It does not seem very dry to me. How to proceed? Is the controller a good condition for those two methods? Private IOrderedQueryable & lt; Users & gt; CreateSortedQuery (DataTableParameterModel parameterModel, IQueryable & lt; User & gt; Basic) {var of ordered = (IOrderedQueryable & lt; user & gt;) Basic; (Int i = 0; i & lt; parameter model. ISortingCols; ++ i) {var ascending = string.Equals ("asc", parameterModel.SoSortDir [i], string compiler, ORDINAL IGNOR SEAS); Int sortCol = parameterModel. ISortCol [i]; Expression & lt; Funk & lt; User, string & gt; & Gt; Order = Ex...

extjs - How to override plugins? -

Actually, I want to override the 'Ext.ux.TabCloseMenu' plugin. I am planning to add more localization to this component, because it has not been done by default, I try to override it like this: Ext.define ( 'CustomTabCloseMenu', {extension: 'Ext.ux.TabCloseMenu', nickname: 'plugin.customtabclosemenu', ...}); And in this way I add this plugin to a tablet: ... plugins: [Ext.create ('CustomTabCloseMenu', {} )] ... but it is not working. have you tried plugins: 'customtabclosemenu' or plugins: {xclass: 'CustomTabCloseMenu'} ?

java - How to marshall a set with jaxb? -

मेरे पास निम्न कोड है: @XmlRootElement (name = "foo") @ XmlAccessorType (XmlAccessType.FIELD) सार्वजनिक वर्ग फ़ू {@XmlElement निजी स्ट्रिंग आईडी; ...} मुझे एक सेट & lt; Foo & gt; मार्शल करने में सक्षम होना चाहते हैं। Foos में: & lt; foos & gt; & LT; foo & gt; & LT; आईडी & gt; bar1 & lt; / आईडी & gt; & Lt; / foo & gt; & LT; foo & gt; & LT; आईडी & gt; bar2 & lt; / आईडी & gt; & Lt; / foo & gt; & Lt; / कम महत्वपूर्ण चीज़ें & gt; क्या मुझे आवरण वर्ग की आवश्यकता है? यदि हां, तो इसे कैसे देखना चाहिए? क्या मेरी टिप्पणियां सही हैं? कैसे marhalling कोड की तरह दिखना चाहिए (यदि आप यह सब समझा सकता है, तो बहुत सराहना की जाएगी)? "post-text" itemprop = "text"> यदि आप किसी भी संग्रह उपयोग को समापित करना चाहते हैं @XmlElementWrapper (name = "foos") @XmlElement (name = "foo") निजी सेट & lt; Foo & gt; कम महत्वपूर्ण चीज़ें; जिस तरह स...

ios - Qt Creator, C++, Xcode -

I am a C ++ developer and I would like to develop applications for OSX and IOS with my Mac. I want to use Xcode to achieve these goals but apparently the best solution (which includes C ++) is Qt Creator (tell me what I'm wrong) What I can use the free version of QT Creator (community - no license fee) for code in C ++ for iOS / OSX and publish my app on Apple Store or do I want to sell Indi Mobile License is required? What can be integrated into Xcode? Thanks If you are only developing for iOS and OS X - Use original equipment, i E. Xcode. The Qt Library and QT Creator IDE are used for cross-platform development, but not for the original OS X development.

Why won't Facebook sharer.php provide a selection of images when multiple og:images have been scraped? -

Image
तो यहां है: & lt; meta name = "post-image" property = "और: छवि" सामग्री = "http://www.destinationtips.com/wp-content/uploads/2014/06/tiger-woods-elin-nordegren-1200x800.jpg" & gt; & Lt; मेटा नाम = "पोस्ट-छवि" प्रॉपर्टी = "ओग: छवि" सामग्री = "http://www.destinationtips.com/wp-content/uploads/2014/06/Sandy_Lane-1200x797.jpg" & gt; हालांकि, जब मैं। मैं इस धारणा के तहत था कि यह 2 छवि विकल्प प्रस्तुत करना चाहिए। मैंने कई बार यूआरएल को फिर से स्क्रैप कर दिया है: क्या आप स्पष्ट कर सकते हैं कि शेयरर UI में एकाधिक छवियां कैसे प्राप्त करें? अभी भी अनिश्चित क्यों कई छवियों के लिए शेयरर UI समाप्त हो गया है, लेकिन फेसबुक ने डिबगर को अपडेट किया है, जो अब, भले ही एक से अधिक छवि मेटा स्क्रैप हो, एफबी केवल 1 ("शामिल और अनुमानित गुणों के आधार पर") उठाएगा:

java - Expected BEGIN_ARRAY but was STRING -

I am trying to parse JSON Array using this code. Public square key {static class item} {@ sriajatnam ("id") public string id; @ SerializedName ("name") The name of the public string; @ SerializedName ("Time-timestart") public string timingTit; @ SerializedName ("timeline") public string timeliness; @ Serialized Names ("Estime") Public String Estimate; @ SerializedName ("location") public string location; @ SerializedName ("description") public string description; } Private static string reader throws exception (string url string) {BufferedReader reader = null; {URL url = Try new URL (urlString); Reader = new buffed reader (new input screen reader (url.openstream ())); String buffer buffer = new stringbuffer (); Read int; Four [] characters = new colors [1024]; While ((read = reader.read (chars))! = -1) Buffer.Append (character, 0, reading); Return buffer. To string (); } Finally {if (reader! = Null) reader.Col...

r - Need support with formatting x-axis group labels to not overlap -

Image
I created an open box plot of some data in R using the ggplot2 package. I have a problem that the X-axis element text labels the overlap of my groups, which I do not want. I do not want to rotate the label, preferably, I would like to write each label horizontally, but continued on the 'separate' row. So that (eg) two words of label Carboniferous Lst The second word appears with two words 'limestone', which is written horizontally below the carboniferous. I can not reduce the font size, because it will be very difficult to read. Does anyone know that there is a command in RGG Plot which takes care of it? Many thanks DMIANO PS: My current code is: box & lt; - ggplot (aquipops, aes (geology, logron)) box + geom_boxplot (footnote = tru) + labs (x = "", y = "mean log transceiversiveness (m2 / d)") + theme (axital = element_text = "Bold", size = "12", color = "black"), axis.txt = element_text (size = 10, ...

sql - CTE with update -

This is a simple query to use with CTE, but the way I want it is not doing. Consider those record wit precio_90 = to filter the tap and then update the field with the value from precio_90 mytable2 where codigo = codeos on a specific date currently receives all the record updates without the actual filters Are there. DECLARE @ mytable1 table (codigo VARCHAR (10) no, precio_90 NUMERIC (10, 4)); DECLARE @ mytable2 table (codigo varchar (10) no, zero date not zero, precio NUMERIC (10, 4) no) tap; INSERT @ mytable1 (codigo, precio_90) value ('stock 1', 51), ('stock 1', 3), ('stock 1', 5), ('stock 1', 6) , 2) ('stock 1', '20140710', 26), ('stock 2', '20140711', 66) ('stock 1', 7), ('stock 1', empty) mytable2 (codeō, fade , Priyoo) INSERT values, ('stock 1', '20140712', 23), ('stock 2', '20140710', 35); ; As in CTE_1 (SELECT codigo, precio_90 FROM @ mytable1 where precio_90...

ios - implement Facebook messenger style pan to full screen view similar effect -

Image
I implemented the UIPageviewContoller to support several viewcontoller approaches in the lower half of my screen. Now my question is that on my subview of this page on the pageview controller, the Facebook style panning effect is supported. I want to achieve the Facebook message style effect, in which they have applied in the camera with the finger pan, we can make the scene as full screen and when we pan down the same scene Then it will be adjusted within the original from the view. To understand better some screens are attached Ihave and it should support a coordinated pop gesture. I could do the same effect Enabled, but for this I've added a view to the main window so that you can pan across the screen, but from this point of view I'm not able to get the Interactive Pop IOS default gesture and this approach with my current page description controller implementation not good. And if the button is pressed in the window in the window in the window, then if ...

jquery - Add Time To Javascript Game Timer If Condition Met -

edit: I thought I would try and clarify some I will add Actually what I want is similar to the pole situation: cross the finish line and earn more time. Except this case, you match two numbers. I want to improve on javascript and jquery, so I thought there would be a great way to go about creating games. The essence of the game is that you have been given a number and the goal is to match that number. I have all the work, which also includes when the goal is met, this score Now, whatever you want, it is to add 30 seconds to the time when the goal is matched. I got it to add 30 seconds to internal HTML but there is no countdown. If you were 15 years old then 45 would have been reduced and 14 would go back. I got the answer and I thought I could change if (sec == 0) {IsRunning = true; Second + = 2; turns into my position and seconds = 30 =; Although nothing happens. This is my code. I am also open for Jquery solution if you prefer to share this var is wait = f...

java - Why a different key can also decrypt JCE encryptions -

I am confused by JCE, I used some examples and example code to encrypt some text using JCE encryption decryption The technique has tried to decrypt but can either reach a misleading conclusion or remember the whole concept. Indeed, all that I wanted was, by using many well-known algorithms with a human-readable alphanumeric key, Text to encrypt and then he needed to decrypt back with the same key. Here I have given the first example string text = "Hello world"; String key = "bar 12345kjkj5454hggx1234"; // Create the main key and cipher key ASe = new securcutis (key.getBytes (), "DESede"); Cipher cipher = cipher Get Instances ("DESEDE"); // Cipher.init (cipher NCRVPTMDE, ACK); Byte [] Encrypted = Cipher .Donfonal (text.getbites)); System.err.println ("Use the Triple DES algorithm and convert to & lt;" + key + "& gt;, & lt;" + text + "& gt; with the key & lt;" + New string Encrypted) + "...

regex - Getting python regexp for data -

I have tried to find Python Regular Expressions to match the following lines, and to remove the part of each line My interest "|" Between "and". " (Upx predecessor) was my attempt: pattern = compile.re (again "^ \ S + \ | (\ S +). Upx. +") but it did not work My data: UMM_189 | XXYT9888_UMX_5711769.upx_OWED_786_bopsio_34527_sen_72.345615 AMW_126 | 7010.upx_XAWA01266525261 QEA_234 | Serami_bolismun_milte_1_UMM1.upx_YU_168145 MMP_377 | 723C_UMM_5711781.upx_UXA_2_serax_78120_ser_23.26255277 My expected output: XXYT 9 888_UMX_5711769 7010 Serami_bolismun_milte_1_UMM1 723C_UMM_5711781 No better idea please? I do not think Regex is required here because your data is pretty ordered and will be enough : & gt; & Gt; & Gt; Data = '' '\ ... UMM_189 | XXYT9888_UMX_5711769.upx_OWED_786_bopsio_34527_sen_72.345615 ... AMW_126 | 7010.upx_XAWA01266525261 ... QEA_234 | Serami_bolismun_milte_1_UMM1.upx_YU_168145 .....

reactjs - Is there any way of using JSX in a native CommonJS environment? -

I am launching a new project in an environment that includes native CommonJS support Module is required - This is an atom-shell project, there is no possibility of using pre-compiling steps in such browser-style or webpage AFAIK I have enabled Because of my app.jsx declaration on my index.html to use JSX on the entry point file JSXTransformer was previously declared: & lt; Script src = "script / vendor / JSXTransformer.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / jsx" src = "script / app.jsx" & gt; & Lt; / Script & gt; I want to use JSX syntax for my module which are imported as a common JS module inside my app.jsx module: // This raises an error, tags like XML are not supported var grid = required ('./scripts / grid.jsx') ; As far as I understand, I will be forced to leave the JSX syntax and vanilla syntax for any modules loaded through the requirement Will have to go w...

jquery - Javascript not loading in website -

I have a button in my website that clicks on popping up on the menu and I have correctly inserted the JS file It does not seem to work, but it does not seem to work. There is an error with the JS file or HTML files are as follows mainfile.js var $ blob = $ ('& lt; blob / & gt;'); Var $ blob2 = $ ('& lt; blob class = "blob2" / & gt;'); $ ('# Sidebar toggle') ('Click', function) ($ {this} .closest ('Menu'). ToggleClass ('Open'); $ ('. Page') Toggleclass ('open');}); $ ('.link'). ('Mouseleave touch', function (e) {//e.preventDefault (); $ blob.css ({top: e.offsetY + 'px', left: e.offsetx + 'px'}); $ blob RemoveClass ('scale');}); $ ('.link'). ('Mousemov Touchmov', function (e) {eprovint default (); $ (this) .fund ('bob'). Css ({top: e. Offset y + 'px', on the left side: e.offsetx + 'Px'})}}); $ ('. Sidebar...

predicate - With Dapper Extensions, how do I sort by random? -

itemprop = "text"> This duplicate extension can be obtained with a predicate sorting: .Sort & LT; Person & gt; (P = & gt; p.LastName) My question is, how do I apply random sorting (i.e. RAND) in SQL for predicates After the Thus Predicates.Sort actually produces an ISort compatible interface that is defined: public interface ISort {string property name {get; Set; } Moving the Bowl {Get; Set; }} It seems that we have a chance to set the property name for "RAND ()" or some things, right? ... but unfortunately, this interface is used in this way: if (sort = null & amp;! & Sort.Any ()) {sql.Append ("By order") .Append (sort = Selection = GetColumnName (classMap, S.PropertyName, False) + (S. Esconding? "ASC": "DESC")) .andendings ()); } Therefore Dapper Extensions actually check that the name of the passphrase is a column name. And GetColumnName is defined as: public virtual str...

javascript - Detecting if a child component has a specific mixin/method in React.js -

In the render method of my component, I have to filter in the search for props.children variable components That is a specific method or property, but I am unable to expose any of the methods or qualities of children. I want to get the inherited method from a mixin. Example: Bar BarMaxin = {isBar: function () {true; }}; Var Foo = React.createClass ({rendere: function () {var filteredChildren = this.props.children.filter (function) {return child.isBar ();}); Return ( Filtered children} );}}); Unfortunately, this example does not work because child.isBar is undefined even when the child gets a mix of components. Barmixine . Do I have some misunderstanding? I have also tried to declare my mixing methods such as stabilization: {bar} bar = {static: {isBar: function () {return true; }}}; Any help would be greatly appreciated. Edit: I have found a work solution: var barMixin = {getDefaultProps: function ( ) {Return {isBar: function () {true}; }}; }}; Check...

android - Why can't NPM read my dependencies? -

I am trying to start a new eonic project. I found this very far and I am very proud of that. Although I'm stopping at the eonic setup sass I was able to 'eonike platform android' I think the problem is in the open 'C: \ user \ ALIR \ package.Jonson' It should look like: 'C: \ user \ aliar \ document \ ionic \ tutorial \ test \' In addition to this line is related: '' C: \ program files \ nodejs \\ node.exe "" C: \ Program Files \ node EJS \ node_modules \ npm \ bin \ npm-cli.js "'All these slash SIs L is inopropyate c: \ user \ aliar \ document \ ionic \ tutorial \ test & gt; eonic setup sass npm ERR! Installation npm ERR! Package.json ENOENT, 'C: \ users \ ALIR \ package.json 'Open NPM ERR! Package.json This is not the most problem with NMP. NPM ERR! Package.json npm package in your existing directory. Jason file can not be found. NPM ERR! System Windows_NT 6.1.7601 NMP ERR! Command "C: \\ Program Fil...

java - Check if eclipse editor document was changed by another editor -

I have created a custom eclipse editor (ebribrated text editor) and I need to know that when an editor opens some files in the editor, it modifies and saves it. For example, I have a document opened in a custom eclipse editor and I keep this document modified and saved in another editor, I need to perform some tasks when it happens is. I like trying to use listener IDocumentListener: last IEditorInput input = editor.getEditorInput (); IDocumentProvider Document Provider = Editor .getDocumentProvider (); ID document document = document provider .getDocument (input); Document.addDocumentListener (New IDocumentListener) {@Override Public void documentAboutToBeChanged (DocumentEvent arg0) {// blank} @ Override Public Null Document Changed (DocumentEvent arg0) Do something here (DoTask);}}; But the method document is executed 2 times: 1) When the editor edit external eclipse and save the file. (I need it) 2) When I edit the document with my custom editor save without saving. (...

css3 - Issue on Fitting Highcharts.js in Bootstrap 3 Panels -

I'm having problems on fitting Highchurch in the Bootstrap 3 panel located in the tab pan. Can you please see it and tell me what I am writing here? & lt ;! - Navigation tab - & gt; & Lt; Ul class = "nav nav-tabs" role = "tablist" & gt; & Lt; Li role = "presentation" category = "active" & gt; & Lt; A href = "# home" role = "tab" data-toggle = "tab" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li role = "presentation" & gt; & Lt; A href = "# profile" role = "tab" data-toggle = "tab" & gt; Profile & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt ;! - Tab Pains - & gt; & Lt; Div class = "tab-content" & gt; & Lt; Div role = "tabpanel" class = "tab-panel active" id = "home" style = "padding: 20px;" & G...

java - Simple Vertex Shader for color based on model space vertex Z coord -

I have a simple function map_color which calculates the color of the lessons for a tragic simulator in my university Shader. It seems quite simple for my first shader, but I do not know where to start from. I have seen some code samples that seem promising but are too complex and hard for me. Let me tell you that I am using Java / Jog but I can see the details of loading Shader and it will change on itself. Most are looking for help with actual shader codes. Private zeros map_color (float height, float color []) {float T = (height - COLOR_MIN_HEIGHT) / (COLOR_MAX_HEIGHT - COLOR_MIN_HEIGHT); // clamping for the class, just if (T & LT; 0.0) T = 0.0F; If (t> 1.0) t = 1.0F; // brown yellow map if (t & lt; 0.5) {color [0] = 0.488 f + t * 0.836 f; Color [1] = 0.164 f + t * 0.953 f; Color [2] = 0.094 f + t * 0.172 f; } And {color [0] = 0.90 f + (t - 0.5 f) * 0.180 f; Color [1] = 0.640 f + (t - 0.5 f) * 0.680 f; Color [2] = 0.180 f + (t - 0.5 f) * 0.773 f; }} Private void d...

ios - Implementing TableView Navigation xcode 6 -

Hello, I'm trying to follow the tutorial from this website: a tableview Navigation to apply, but in the last step I get an error from my xcode. I am going to post the code where I have an error code because I'm a bit disappointed about that error. I hope you can help me CarDetailViewController.m -. TableViewStory #import "CarTableViewController.h" #import "CarTableViewCell.h" #import "CarDetailViewController.h" @ implementation CarDetailViewController @ Sintaseshes Mekailebl = _makeLabel; @ Synthesis modelLabel = _modelLabel; @Sensory Image View = _imageView; @ Synthesize carDetailModel = _carDetailModel; - (zero) viewDidoadload [[Super Viewedload]; Self.makeLabel.text = [self.carDetailModelObsuitIntex: 0]; Self.modelLabel.text = [self.carDetailModelObsuitIntex: 1]; Self.imageView.image = [UIImage imageNamed: [self.carDetailModelObjectOntIndex: 2]]; } - (void) prepareForSegue: (UIStoryboardSegue *) segue this: (id) This {if ([[segue ...