Posts

Showing posts from September, 2013

Starting with OPEN-MPI in Java (Installation + Examples) -

Can you give some links to start setting up the Open-MPI, which allows to write Java code (I.e. C and C ++ code instead of C). I was searching on the internet, but I did not succeed in finding a point to start. This is where I started: You can download one of the snapshots After, unpack it and read README.JAVA.txt . Here are two Java examples ( Hello.java and ring.java ). You should be well on your way.

Android CalendarView date text appearance font size -

Apparently many people have encountered this problem and do not know the correct solution. But the size of the text of the dates is very small. No solution was found. Again, no solution was found. & lt; Style name = "widget.calangeview custom" parent = "Android: theme" & gt; & Lt; Item name = "android: weekDayTextAppearance" & gt; @Android: Style / Text Appointment Medium This is from my styles.xml file. I do change also appears to be something that I have (in addition to the parent theme) nothing changes nothing in the layout. I am using Jelly Bean, but targeting any other API does not get any solution. I left completely style calendar.setDateTextAppearance method is to try to use that I needed to find a different API still did not work I Has anyone tried everything, has anyone got a way to fix this issue? If I can avoid having to use different fully to display a calendar would I want to do so, but if not, please let me k...

java - Alternative styling for get and set methods -

We are all familiar with Java's "Getter and Setter" method, this is a great way to create data encapsulation; It is to ensure that any private sector outside the class code can only be accessed through these special methods. These methods may include checks, overheads, synchronization, etc. public class person () {the name of the private string; Private Ent Birth Year; // traditional gestetter / setter syntax public string getName () {return name; } Public int getBirthYear () {return birth year; } Public Zero Setname (string name) {this.name = name; } Public Zero Set Birth Time (Birthday Age) {this.birthYear = Birth year; } // Proposed overloading gator / setter syntax public string name () {return name; } Public birth year (year); Year back; } Public Zero Name (string name) {this.name = name; } Public zero birth year (int birth year) {this.birthYear = birth year; }} My question is, is there anything wrong with using the overloading method above the "propos...

Magento: getSingleton('customer/session') doesn't return information when called via SOAP -

I am currently trying to capture customer data after capturing an object and capturing checkout_submit_all_after event with the observer I am If I order through Frontend, Dana :: MilenicTalton ('Customer / Session') and Dana :: Millennintlton ('checkout / session') ran Inside the supervisor gives me a wealth of information, although when I make an order through SOAP, these methods do not return anything. I also have the mage :: helper ('customer') - & Gt; Tried to getCustomer () , but he did not return anything Is there any other way that I can get the data of the last submitted order? Especially I need a customer from a session and the last order ID ala Dana :: Milenchington ('checkout / session') - & gt; GetLastRealOrderId () . Look at this nonsense: quote-> customer_mail field is basically populated with email, then SOAP After setting the address with the 'ShoppingCart Customer Records' method, _prepareGuestQuote ...

uinavigationbar - How do I fix the gap between my view and my navigation bar when the call status bar is active? -

Image
I am using ECSlidingViewController for navigation but I do not believe this is the cause of my problem below of my problem An example is I tried to use viewDidLayoutSubviews to fix it and I changed the settings for navigation. In my opinion, with the proper obstacles, I thought that the automatic layout would handle something like this. Does anyone have any suggestions? to viewDidLoad , add: [Self. Navigationbar set navigation navigation bar: yes animated: no]; [Self. Navigation controller set navigation beside: no animated: no];

iPhone Go Button does not hide keyboard for JQuery Mobile 1.4.3 Remote Autocomplete -

I am using code from JQuery Mobile 1.4.3 Remote Autocompocket and go to hide it as a keyboard Would do it for 1.3.2, it does not hide the keyboard for 1.4.3, but does for 1.3.2 Here is the link from 1.4.3 Here is the link to 1.3.2

javascript - How to run ajax script if the page is refreshed -

I want to execute an Ajax script when the page refreshes. My problem is that this 'work' - AJAX script is not running. script: $ (window) .bind ("load", function () {var data = {}; Data.emailCodeResult = $ ('# emailCodeResult' Val (); $ .ajax ({type: "POST", url: "Oppa / view / viewOther.php", data: data, cache: incorrect, datatype: "JSON", success: work (results) { $ ("# Prof_talent"). Val (result.oth_hobbies); $ ("# prof_recognition"). Val (result.oth_recognition); $ ("# prof_organization") Val $ ("# Prof_workExperience"). $ (" $ ("# Prof_workExperience"). $ ("# Prof_training Programs"). Val (result.oth_training programs); $ ("Show-page [data-page = profile_other_info]"). Trigger ("click")}}} ; Return return;}); From your comment, it seems that $ ('# emailCodeResult') . Val () is still empty when your AJAX call fire is...

vba - VB Script FileSystemObject methods throwing 424 error -

I have been searching the internet for the last few hours, because it always throws a 424 object essential error excel. Someone can explain why this is, and is the best way to fix it? sub import XML () '' Import XML macro '' keyboard shortcut: set the Ctrl + K Dimume as integer FSO = CreateObject ("Scripting.FileSystem Object") ShowSubFolders FSO Show folder method sub subscript folders (folder) folder ("C: \ Users \ xxx \ desktop \ yyyyy \") End sub For each subfolder in the .FolderSupfler subfolderSubstuffs subfolders next closing sub F Get Ilen Method sub getFiles (folder) for each file in the folder. The files 'ActiveSheet.Cells (1, 1) .Value = FSO.GetFileName (file)' throws here the next End Sub ActiveSheet.Cells (1, 1) .Value = FSO.GetFileName (file) object GetFileName (pathspec) but if you are passing object ActiveSheet.Cells (1, 1). Value = FSO.GetFileName (file.name) or more direct ActiveSheet....

python - Error with scrapy item object -

I'm having trouble with scrapbook items object The current problem is that when I scrap some fields, I Let me save them like this: items ['tag'] = response Xpath ("// div [contains (@class, 'video-info-line show')]" "// [[(Half, '/ video / search search']] / text () () () () () () () () () There are more than one tag that scraps from each and the items are saved in ['tag'] I then on my SQL server Tags are uploaded and to get a mySQL syntax error. The problem is very obvious because it is trying to include something like this: 'tag1', youtag2, ittag 3, u I have tried because I have tried it ("", "") "" but it is not working. You need to set the output processor for that specific field:

Differences in Type inference for closures and functions in rust -

Not for any function in the rig, while it is possible to estimate the type of logic and return type for the closing expression? Functions are global - their type of signature should be clear in this way. The clogs inside the function are local - they can be guessed (of course, if you are accumulating the closures in a strat, then its type is clear in the definition of the type of strat Need to be specified in the form.)

jquery - Addition and Removal of Unique Rows within a Bootstrap Popover -

I am between creating bootstrap and jQuery quite a micro popover I am adding between the popover and adding rows within I'm using jQuery. The problem I am encountering is that it involves the organization of functionality with the click event that I have linked to some linked text. If I have hidden or have to promote a new line, then a specific pseudo-line Need to be able to reveal if the specified row above is shown. I have tried two variations of getting it to work with close result. The hidden row has been successfully hidden, but if it is shown, then no other clone ever clones: $ (document) .on ("Click", ".additional", function (if ($ ('hidden'). Parent () .wrap ()) {$ ('hidden'). Parent () Parents () show ();} and {$ ('. Row: ECA (3)'). Clone (true) .InternetAfter ('. Row: last');}}); Allows to add other non-unique rows and hide unique rows; However, when a unique hidden row is shown, a non-unique clone of the cl...

php - Is there a way to append a CSS file with additional styles when needed? -

I work on the site that pulls into many CSS files, some of them are language-specific overrides for international users (We change some styles, so the long string of translated text can not break the layout) So we have something like French CSS, Spanish quas etc. When a user clicks on our language switcher, the page tag reloads with a particular class on the page tag. This way the page raises other styles. One of our goals in the near future is that only serve our international users, a language-specific file is suitable for them. Well, despite all the styles they are not necessary. At the same time, one of the managers wants to integrate our style into a file so that http requests can be reduced. How can we have a CSS file without overwriting our language for each user? Is there a way to add styles to a main CSS file when necessary? We use Compass SASS; Is there a way to compile different versions of our main file, which includes a Spanish style, contains French styles, etc.? Id...

Finance Times Series - SQL Server - Extract Ordered Data from multiple columns when some columns are NULL -

"TblPrices" नामक एक एमएस SQL ​​सर्वर तालिका में निम्नलिखित वित्तीय व्यापार और उद्धरण डेटा की कल्पना करें। SeqNo टिकर TradeType JulianTime मूल्य BidPrice AskPrice 1 CLK4 उद्धरण 735706.11 शून्य 103 शून्य 2 CLK4 उद्धरण 735706.59 शून्य शून्य 105 3 CLK4 व्यापार 735706.59 103 शून्य शून्य शून्य में स्थान बचाने के लिए प्रयोग किया जाता है तालिका। जब निकालने मूल्य 'व्यापार' के 'TradeType' डेटा, मैं भी हाल ही में 'BidPrice' और 'AskPrice' जो JulianTime के आधार पर रिक्त नहीं है। यानी निकालना चाहते हैं। SeqNo ऊपर 3 के लिए उत्पादन किया जा सकता है: JulianTime TradeType मूल्य BidPrice AskPrice 735706.59 व्यापार 103 103 105 ध्यान दें: SeqNo कदम आकार 1 की एक पहचान है। JulianTime MATLAB द्वारा आइडेंटेड डेटटाइम के लिए एक संख्यात्मक मान है। मैं यह कैसे कर सकता हूं? का चयन करें टिकर, मिन (मामला है जब TradeType = 'व्यापार' और कीमत तो JulianTime अंत IS NOT NULL), मिन (मूल्य), मिन (BidPrice), मैक्स (AskPrice) tblPrices ग्रुप द्वारा टिकर...

Why does the GMail API strip the doctype and comments from outgoing messages? -

Gmail seems to exclude doctype and HTML comments from outgoing messages. Repro "Try it!" Sign in with OAuth Enter "userId" for: me "raw" Enter the result of the following node script: generMessage.js Var email = "From: 'me' \ r \ n" + "to : Bradvogel@outlook.com \ r \ n "+" Topic: Test DockType \ r \ n "+" Content-Type: Text / html; Charset = UTF-8 \ r \ n "+" \ r \ n "+ + "& lt ;; doctype html & gt;" + "& Lt; html & gt; & lt; body & gt; test & lt ;! - [if! Mso] & gt; hidden from Outlook !! - & Lt;! [Endif] -> gt; & lt; / body & gt; & lt; / html & gt; "; Var base64 = new buffer (email) .string ('base64'); Var websafeBase64 = base64.replace (/ \ // g, '_'). Replace (/ \ + / g, '-'); Console.log (websafeBase64); actual When I see the raw message source of the email you received...

html - bootstrap panel margin not 0 when it should be -

Image
I have a simple bootstrap panel I I'm set on margin 0, but it seems that it is not 0 . See attached. The margin says "-", which means I believe 0. But when highlighted, I see a big block of orange. Is it telling me that the margin spreads to the right side of the screen? I want to put another panel in right-side-side, and keep it under this panel. There is nothing wrong it is a block element If you want something next to the div Display: Inline-Block; or float code> left or right (eg, float: left; ). Choose whatever meets your needs.

Php search mysql database -

Sorry if I'm already asking answered questions, but I was not able to find my specific set-up. I have a php file called functions.php, where I store all my tasks and A small example would be as follows: function getUsers () {global $ mysqli, $ db_table_prefix; $ Stmt = $ mysqli- & gt; Prepare ("SELECT id, user_name, db_users"); $ Stmt- & gt; Executed (); $ Stmt- & gt; Bind_salt ($ id, $ user); While ($ stmt-> fetch ()) {$ row [] = array ('id' => gt; $ id, 'user_name' = & gt; $ user); } $ Stmt- & gt; Close (); Return ($ line); } I want to create a search function with which I can search with option value, such as: id , user_name . By function. Php I'm already setting up a connection to mysql database, how can I find a database with a search from my '% searchrequest%' ? Php? Or do you suggest another solution? Just pass these search values ​​in your current function if nothing is given, then all th...

ruby - Rails-Thin server stopped on Production(live) mode.Website down -

I have placed my rubber production on the rail project. I was running thin on the production mode. Now suddenly the thin server seems to stop and try to start the following error: - /home/webuser/.rvm/gems/ruby -1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/daemonizing.rb:158:in 'Delete': Read-Only File System - / tmp / pids / thin.3000.pid /home/webuser/.rvm/gems/ruby-global-family-index.html from Errno :: EROFS), / home / webuser / 158: / home / webuser / /gems/thin-1.6.2/lib/thin/daemonizing.rb:175:IN/home/webuser/.rvm/gems/ruby in 'remove_pid_file' from .rvm / gems / ruby-1.9.3-p545 @ woa In 'remove_stale_pid_file' from -1.9.3-p545@woa/gems/thin-1.6 2 / lib / thin / daemonizing.rb: 43: From /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/controllers in `Demois' /controller.rb:62:IN/home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/run `Start 'Ner.rb: 199 : Run `run_common 'from /home/webuser/.rvm/gems/ruby-...

c# - Adding additional vertical velocity in projectile motion Unity3D -

Image
I have mine and my enemy to throw at some height above the ground (which is moving from right to left and shooting Is the point on the horizontal axis) on the ground. The projectile speed is that I shoot straight at the angle facing the enemy, but I want the projectile to go upwards and then shoot the enemy. I have the snapshot attached below: Here is my code: using UnityGen; Using System.Collections; Public class bullet: Monobehavier {public conversion goal; Private mytransform conversion; Public Game Object bulletproofab; Public game object enemy motions; Private gamingem e; Public float firing angle = 20; Public float gravity = 9.8 f; Zero awake () {mytransform = transform; } // Use it for initial zero start () {mytransform.LookAt (target); Start korenine (project ()); //Follow(); } IEnumerator project () returns yields new WaitForSeconds (0.25f); Float target_Distance = Vector3.Distance (mytransform.position * target_Distance, target.position); // Calculate the velocity ...

windows - Trying to save an altkey to a CMD or BAT file -

I am trying to delete a folder with a name created with an Alt key 0160. That's for automation purposes for my CMD and I can not save it. It works like im looking for an 'A' with apostrophe How can I save the CMD file properly? You can include your values ​​directly in the batch script, in the same command line Type, some set as "var = alt + 0160 " if your editor or your environment (Pagercode, charset) interfere, you can use a short autogenerated script to get the problematic character @echo off setlocal enableextensions disabledelayedexpansion call: getChar 16 0% myVar encode [% myVar%] exit / b: getChar asciiCode for returnVar %% ("% temp% \ n ~% n%.% Random% .tmp") (& gt; "%% ~ fa" Set to write WScript.StdOut CH (% ~ 1 ^) / f delims ^ = ^ eol ^ = %% b in ('cscript // nologo // e: vbscript "%% ~ fa"') "% ~ 2 = %% b "del / q" %% ~ fa "& gt; null 2 ​​& gt; and 1) & amp; C...

how i can import the websocket library to eclipse(android) -

I work with Eclipse and I want to use the websocket in my project and I get this project on the internet : But the project is for Android studios and I do not know how I can import the dependencies and other files in the right place. Please tell me how can I use the website? I do not want to use socket instead of websocket because my friends write all things in PHP and we do not want to use JS If you read blog posts and follow the example, you will see that it uses the Java-Websocket library. Here's a jar release: A good way to add external jars to your Android project or any other Java project is: Make a folder named libs in the root of your project Copy your JR files to the Libs folder Now right-click on the jar file and then select the build path> add to the build path , which will be rendered in your project ' By doing this, you will not lose your library , which is being referred to whenever you want your project to be on another comp...

ios - make UIlabel present '...' -

Image
इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मुझे UIlabel चाहिए पाठ को छानना और अंत में ... क्या ऐसा करने का एक स्वतन्त्र तरीका है? (मुझे लगता है कि यह स्वतः ही UIButton में होता है लेकिन ऐसा नहीं होता है) यह स्वचालित रूप से होता है यदि lineBreakMode ठीक से सेट कर दिया जाता है और लेबल के फ्रेम में फिट होने के लिए आपके लेबल के द्वारा लिखे जाने वाला टेक्स्ट बहुत लंबा है। / P> label.adjustsFontSizeToFitWidth = NO; Label.lineBreakMode = UILineBreakModeTailTruncation; यदि आप इंटरफ़ेस बिल्डर का उपयोग कर रहे हैं, तो आपको इंस्पेक्टर फलक में अपना लेबल सेटअप करना होगा:

angularjs - Angular UI datepicker not updating -

I have tried to expand the UI datepicker with the previous and next day. As you can see from Plunker I can change the model using either datepicker or previous / next button but when the model turns with the previous / next button, the datepicker is not updated . & lt; Div class = "form-group" & gt; & Lt; Div class = "input-group" & gt; & Lt; Input type = "text" class = "form-control" datepicker-popup = "{{ctrl.format}}" ng-model = "ctrl.dt" is-open = "ctrl.opened" datepicker-options = "Ctrl .dateOptions "ng-required =" true "close-text =" close "/> & Lt; Span class = "input-group-btn" & gt; & Lt; Button type = "button" class = "btn btn-default" ng-click = "ctrl.open ($ event)" & gt; & Lt; I class = "glyphin glyphoen-calender" & gt; & Lt; / I & gt; & Lt; / Button & ...

debugging - DEbug x64 application using IDA PRO 6.1 -

Image
I have IDA Pro 6.1 - (I'm unable to install the latest version) I try Installed Bochs-2.4.6 Both x86 and x64 were installed The version of Windows debugger. Make sure that ida.cfg is pouting the default path of the debugger for Windows: DBGTOOLS = "C: \ \ Program Files (x86) \\ Windows Kit \\ 8.1 \\ Debugger \\ x86 \\ "; I Can not ebug the x64 with the debugger and I appreciate some guidance in order to properly configure debuggers. I am unable to debug any x64 application. When I set the debugger on bochs , it starts running and then with errors like this: When I try to use windgb it reports Is that: could not be started with the WinDgb engine ... error: The specified process was not found. (000007F) ... When I click OK, I get: "The file will not be loaded by the debugger plugin Please confirm that the parameters are valid. " What are the correct parameters? Is there a connection string when I'm debuggin...

ios - Facebook best auth flow with Accounts.framework -

I have read a lot of information about ACAccounts.framework and successfully in my application Have integrated. Honestly all tutorials do not have good error flows and what to do next. My following Athens works fine: ACAccountStore * AccountStore = [[ACAquintStore Alok] Init]; AC Account Type * Account Type = [AccountStore Account Type with Identity Identifier: ACaccountTitIf IdentifiersBack]; NSDictionary * Options = @ {ACFacebookAppIdKey: kPSFacebookKey, ACFacebookPermissionsKey: @ [@ "Email"], ACFacebookAudienceKey: ACFacebookAudienceEveryone}; [AccountStore requestAccessToAccountsWithType: ACCOUNTTYPE Option: Option Completed: ^ (BOOL given, NSError * error) {if (given) {NSArray * accounts = [_currentUser.accountStore accountsWithAccountType: ACCOUNTTYPE]; _currentUser.facebook = [first object of the accounts]; Dispatch_assink (transmissions_fill_man_close ()), ^ {authSuccess ();}); } Else {dispatch_async (dispatch_get_main_queue (), ^ {authFailure (error); /...

algorithm - Apply master theorem on T(n) = T(n/2) + n -

I was just trying my hand at the master theorem and when I try to evaluate t (n) = t Using (N / 2) + An Master Theorem, the answer is O (N) evaluating. But just go through the code given below: Fun (n) {if (n == 1) Return; For (int i = 1; i & lt; = n; i ++) {printf ("*"); } Fun (N / 2); } The recurring equation for the above code is T (n) = t (n / 2) + n, so the complexity of time for the above program should be o (n). But if you think that logically, the number of times the program is running: n + n / 2 + n / 4 + n / 8 + ...... = nlogn Therefore, logical As per the above program, the complexity of time should be O (NLONP). I am very confused now. Can someone help me, where is this happening to me? No, evaluates section 2n n + n / 2 + n / 4 + n / 8 + ...... = 2n But if you have T (n) = 2 t (n / 2) + n, then It will be O (n log n)

java - Wildfly 8.1.0 Final and Netbeans 8.0: WildFly Application Server Start Failed. HTTP Connector port 8080 is already in use -

U has updated from Wildfire 8.0.0 to last 8.1.0. When I'm trying to run the app in Netbeans 8.0, it fails to initiate and the following message is shown: WildFly application server fails to start the HTTP connector port 8080 already Is in use. When I'm trying to manage the server from the Netbeans menu, the stop is disabled and I can kill the server from the system to kill hangs, but nothing changes. However, I can not deploy / run applications from the environment in any way. It seems that Netbeen starts the server twice. OK, I just got the problem The previous problem occurred when I started " Update Existing 8.0.0.Final Install "is used. When I was installing a fresh 8.1.0 installation, everything seems to work. So the problem is probably in the update package.

php - Image auto resize if image size is too large after upload -

I searched around the Internet, and working on the following code: this permission At this time, for users to upload an image, there are some restrictions in it, such that the file size is too large, it will not be uploaded. I want to remove it and instead scale it down to proportionally (to maintain quality), unless it is less than 80000KB, if image is uploaded then it is too big or almost 350 width x 125 height My second problem is that when the file is uploaded, it indicates where it is stored, for example, "upload / picture.jpg" I like it, instead the full url Provided Was, so that when someone clicks on it, then take it directly to the image file page. Even now I have the page where the user uploads the image & Lt; Input type = "submit" name = "submit" value = "submit" & gt; & Lt; / Form & gt; The upload function is found on a different page itself & lt ;? Php if ($ _FILES ["file"] ["error...

python - Re-arrangement within a numpy array -

मेरे पास एक संकीर्ण सरणी है जो निम्नानुसार दिखता है: [1. 1। 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 3. 3. 3. 3. 3. 3. 3. 3. 3। 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6 6. 6. 6. 6. 6. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1। 1. 1. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 3. 3। 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 4. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 6. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2. 2...

No trailing slash in sitemap links after using docpad generate --env static -

I am using docpad-plugin-sitemap@2.0.0 and docpad-plugin-cleanurls@2.6.2. After generating the dockpad - no trailing slash was found in the links given in ANV static, Sitemap.xml: For 301 due to http://www.example.org/contact/ Redirects whether it is a configuration issue or does Dockpad-plugin-sitemap require a "static" block? Wrong documentation on the Docpad-plugin-sitemap seen is correct for this.

c# - Specified key was too long; max key length is 767 bytes Mysql error in Entity Framework 6 -

I started working on the Asp.net MVC-5 application using Visual Studio 2012. So I downloaded the ATI Framework-6 and MySQL 6.8.3.0 from Newslett when I tried to create a database using the DB reference command dbContext.Database.CreateIfNotExists (); This exception was thrown. The specified key was too long; The maximum key length is 767 bytes I searched on this, but no solution can be found. Whatever I have found during my search, this can be a Unicode character problem. I do not know the way to deal with this problem. Renew I am using the following configuration & lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; Section Name = "Antenna Framework" type = "System.Data.in.te.INNAL.confifffile.EntitieFileWriter Description, Entity Framework, Version = 6.0.0.0, Culture = Neutral, Public Key Token = B77A5C 561934A090" Requirements = "False" /> & Lt; / ConfigSections & gt; & Lt; EntityFramework...

java - How can I associate fields with a constructor if it is not a parameter? -

मेरे पास वर्तमान में एक कन्स्ट्रक्टर है: निजी इंट नंबर; निजी स्ट्रिंग चलो; निजी सेट & lt; पूर्णांक & gt; सेट; सार्वजनिक निर्माता (पूर्णांक संख्या, स्ट्रिंग चलो, सेट & lt; पूर्णांक & gt; सेट) {this.number = num; This.letter = पत्र; This.setint = सेट; } क्या पैरामीटर की संख्या को संशोधित किए बिना कन्स्ट्रक्टर के अंदर अतिरिक्त फ़ील्ड जोड़ने का कोई तरीका है? यह वही है जो मैं करना चाहता हूं: निजी इंट नंबर; निजी स्ट्रिंग चलो; निजी सेट & lt; पूर्णांक & gt; सेट; निजी सूची & lt; स्ट्रिंग & gt; लॉस; सार्वजनिक निर्माता (पूर्णांक संख्या, स्ट्रिंग चलो, सेट & lt; पूर्णांक & gt; सेट) {this.number = num; This.letter = पत्र; This.setint = सेट; This.los = लॉस; } लेकिन ग्रहण यह पसंद नहीं करता, कह रही है कि मेरा बयान कुछ भी नहीं करता है जब तक कि मैं लोगो को निर्माता में पैरामीटर के रूप में नहीं जोड़ता। क्या ऐसा करने के लिए मेरे पास कोई रास्ता है? एक विशेषता के मान को प्रारंभ करने के लिए निर्माता, आप कन्स्ट्रक्टर में मान को चाहिए पास करें आपके ...

can I override module search path in python -

To understand the Python module search path, I was trying to create a module that is already available in the standard library. . I have created a file 'math.py' in my current folder and its function definition is 'factorial' which takes an argument. Now I want that when I import the math module and use the 'functional' function, my function is implemented and the standard library is not the same. All documents say that the search path in 'sys.path' defines the order of search and gives the current directory the highest priority. But when I run my code, I think my math module is not loading and my factual work is not called. Where am I wrong Here the file is mymain.py Print "is going .......... ..... & gt; & gt; "Import Mathematics Print Mathematics (5) This file is math.py (in directory similar to mymain.py) Print "Mathematical Load" Def Factorial (I): I + 10 Come back and now I 'python mymain.py' ...

mysql - Can't get `post_id` from table `postmeta` in wordpress -

I can not find a list of post_id from the table postmeta . This is my code. function getPostID () {global $ wpdb; $ ListID = $ wpdb- & gt; Get_results ("Choose` qan_postmeta` from `post_ id` where 'meta_value` =' news'"); } My query is working with mysql, I make changes to 'get_var', 'get_row', but it is not working. Try it out: $ query = $ wpdb-> ; Get_results ("SELECT * FROM` wp_postmeta 'ou meta_value = 0 and meta_key REGEXP' ^ [a-zA-Z]. * $ 'ORDER BY' wp_postmeta '.`meta_value` ASC"); Print_r ($ query); All posts in the wp_postmeta table are Metas. We need to select the field starting from the characters. (No "_"); So I use REGEXP in the SQL statement. Happy coding

How to access user directory in lazarus? -

After I am trying to open file changelog.txt and it does not matter if I open it Need to have the user open it though it is always located in the ~ / directory. Enter the file here. Here is my code: Process TForm1.FormCreate (From: TObject); Var myFile: textfile; Line: String; Start AssignFile (myFile, '~ / changelog.txt'); Reset (myFile); While EOF (MyFile) does not readLn (myFile, Line); Label3.Caption: = (Label3.Capttion + Line + # 13 # 10); End; CloseFile (myFile); End; This does not work, however, if I replace ~ with the actual user name, then it works, however, I use the username of each user Can not know which will run my program. Any idea how can I get the username that started the program? ! Thanks Edit1: I have tried this, but this also includes a new line: RunCommand ('/ bin / bash', ['- - C ',' Whoami '], users); This is normal. The concept of "~" is an shell level and thus requires a separate shell elev...

sql - Firebird howto count all record in table and sort max to min -

मेरा डीबी संरचना Table_1 ग्राहक | परिणाम प्राप्त करने के लिए और इसे इसे फायरबर्ड में सॉर्ट कैसे करें। टेबल 1 ग्राहक | आवृत्ति cust_c 4 cust_a 3 cust_e 3 cust_d 2 cust_b 1 नोट .. अब मैं इस आदेश का उपयोग यह बहुत धीमी है। और वास्तविक डेटा 9800 रिकॉर्ड है पहले 10 को छोड़कर 0 अलग ग्राहक चुनें, (table_1 pdr से select count (*), जहां pdr.customer = prd.customer) table_1 prd

java - Change activity label (Action bar title) from another activity? -

I was wondering if there is a way to change an activity label from any other activity? You are only able to reach an activity frequency at a time (a visible) so that you are directly invisable Can not call setTitle calls on activity Solution You need Global variable to store activity title (can use static variables or application fields) when click the button - you update the Global variable when the activity restarts , You set the title in the global variable in the activity by calling setTitle.

r - How to calculate model residuals from MCMCregress -

I'm doing classwork using Bayesian estimation. For this, I am using the MCMCregress function, MCMCpack . The problem occurs when I want to get residual, because the function does not provide them, They have to be calculated in "by hand" (R). My model is: Model & lt; - MCMCregress (Y ~ X1 + X2 + X3 + X4 + X5, Data = Data) Where X1 and X5 are continuous , Whereas the X2 , X3 and X4 are duplicate Model Output provides me estimates for each variable: (intercept) = 1.90, x1 = -0.02, x2 = -0.05, x3 = 0.32, x4 = 0.61, x5 = -0.003, I think I have to do something like this: 1.90 - 0.02 * X1 - 0.05 * X2 + 0.32 * X3 ... But I know that I am missing something important in the R code, so M I want to know is not that balance what is right R code to get close. Here is a copy presenter example (though it does not conform to the original data): w How do I get residual? I found that MCMC Chen is somewhat horrible at the end of the run - c...

c# - Windows Phone 8.1 image scaling -

How can I show an image, how can I do that in the user gallery? I mean scaling with two fingers and etc. User cant resize simple & lt; Image> Object. & lt; Grid & gt; & Lt; ScrollViewer zoommode = "enabled" & gt; & Lt; Image source = "myimage.jpg" /> & Lt; / ScrollViewer & gt; & Lt; / Grid & gt; You can add ScrollViewer's minzoom factor and MaxZoomFactor (default value 0,1 and 2)

javascript - Chained html number selects -

Due to being very new to JavaScript, I have two HTML numbers in which I select from years and I want to make the second selection with the first one in a way when I select one year in the first selection (while the second is not the first option), the second selection should be included from the selected year to the current year. My sample HTML code: & lt; Select ID = "Select 1" onchange = "gener_selectNumbers ()" & gt; & Lt; Option value = "select" selected & gt; Select one year & lt; / Option & gt; & Lt; Option value = "2000" & gt; 2000 & lt; / Options & gt; & Lt; Option value = "2001" & gt; 2001 & lt; / Options & gt; & Lt; Option value = "2002" & gt; 2002 & lt; / Options & gt; & Lt; / Select & lt; Select ID = "Select 2" & gt; & Lt; / Select & gt; My JavaScript code: & lt; Script & gt; Function gener_s...

ruby on rails - Mongoid Query sum of buffer_time an integer field + Time.now which is greater than scheduled_at field -

I have a model model with buffer_time (integer) and scheduled_at (datetime) fields. I want a customized query to get (time now + buffer_time.mineets) & gt; Scheduled_at The Model Administration is here {: _id = & gt; BSON :: Object ID ('53D50 9 1870637330e84e0000 ') ,: buffer_time = & gt; 60,: resident_name = & gt; "Jpg" ,: Scheduled_at => 2014-08-26 14:00:00 UTC ,: Status = & gt; "Open",: updated_at = & gt; 2014-07-27 14:13:44 UTC} I can write it with the map but it takes a lot of time. CRUD operations support only simple comparison and operation. If you need to calculate, the aggregation structure is recommended. You should still consider simplifying your schema, such as the Shepherd_time field by including its value in the value of the scheduled one. The following is an answer to what you want, how to use the aggregation framework to do this. Hope you like it and helps you understand how the aggregation fr...

bullet - How to deactivate translation on collision? -

What do I do I want my player / character to have a rigid body Keep moving along. When my character hits with another RB, Other RB will move forward - but not my character. What do I need to know Is it possible to disable the translation of a specific rigid body on collision? if so, how? Kinetic does not run with rigid body conflicts in the state. Still they still collide and move on to the confrontation for other objects. You can set the Kinetic State in this way: body.setCollisionFlags (body.getCollisionFlags () | CollisionFlags .CF_KINEMATIC_OBJECT); But keep in mind that your body will not be taken from any physical science to your world and you have to manually set it through MotionState. (Or if you want to move the player by adding the player, you can use the player to set a very high mass and use the movement to reduce the effect on your player I can try to work towards it. I do not know of any clean solutions for this.)

Angularjs - watch all directive scope attributes? -

I have a "bar chart" instruction in angular, which I want to change many scope properties of one time I am wondering what is the case with regard to the scope of my choice ... As the render method is the only independent, the attribute has been changed, I ideally Want to see the scope for change - is this possible? I see either looking at a collection of options or a scope of all the properties. Looking at the object and looking at that object. angular.module ('chartPackage'). Directive ('Barchart', '[Function () {return {restrict:' E ', scope: {width:' = ', height:' = ', fontSize:' = ', Data:' = ', colorMap:' = ', OnClick:' = ', transit:' = ',}, link: function (scope, element, etter) {// How to view all attributes? Field. $ Watch (' ?????? ', Function (A, B) {Recker ();} You provided the watch expression scope. $ Watch (function (newview, oldview) {console.log (newV...

php - Why do two seemingly identical variables produce two different results? -

I am trying to write some code to add cricket overs. Number 1 in the numbers is 0.1, 0.2, 0.3, 0.4, 0.5, 1.0, 1.1 etc. and therefore does not work by adding decimal in a standard way. I have followed the advice given about this thread - to make a real conversion, and when I put a random number in the equation, it gives it expected though, Using a number from the database, it does not return the same thing. I have tried to create some example code and output to describe the problem. In this example, the variable is equal to $ xb 1.2, as you will see in the output. Code: "Var type -" echo gettype ($ xb) 'value =' $ Xb '& lt; Br / & gt; '; "Type Type -" echo gettype (1.2) 'value = 1.2 & lt; Br / & gt; '; $ Over = floor ((1.2 * 10) / 6); $ Ball = (1.2 * 10) - ($ over * 6); $ X_overs = Floor (($ xb * 10) / 6); $ X_ball = ($ xb * 10) - ($ x_overs * 6); Echo "Total Over =" $ Over ". . $ Balls "& l...

c# - Pull on insert the auto increment id -

I am using a SQL Server ( .mdf ) database with C # and I want to enter automatic increment ID At this time I have a table with 3 cells: id || Int StartDate || Date Time Gamemode || At the code level, I am not including the ID cell, the installation of the database takes care of it: db.TblGames .inetombed (new TblGame {StartDate = DateTime.Now, GameMode = gm. ToString ()}); Db.SubmitChanges (); Any ideas? I take it that you are using LINQ to SQL auto-generated ID After TblGame must be in the instance. Submit () Return the TblGame example to obtain it, such as: var game = new TblGame {StartDate = DateTime.Now, GameMode = gm.ToString () }; Db.TblGames.InsertOnSubmit (game); Db.SubmitChanges (); Var id = game.Id;

Compress video in android using mp4parser -

I was reading about the MP3 Parser Library on the Internet and was unable to find the tutorial through which I > This can help you! Try to use the FFMpeg Library which is the Best Library for Video Compression !!!

apache - .htaccess rules to put a site offline while users are using it -

I'm writing .htaccess, to be able to update my website slowly, Preventing and redirecting users are gradually redirected, Some images in the account are in the process of rollover, CSS styles and asynp php and js calls, which are a new page from web page Need to load Without a display page can be said . Just redirect anything for an update. Php pages will create some unwanted effects on some such pages. So I'm fighting for days to find the right set of rules. To get the following goal put in my .htaccess. Can you give me a hand? If the special page Special page_write to PHP (also with parameter) PDP is redirected to If special page is called 2.php (especially with parameters) then special page 2_gnirect Php if any other php file ( Parameter), redirect redirected.php if specialscript.js is called redirect to specialscript_redirected.js if redirected to any other .js Js are called redirects and all other files have access to CSS, images, ... ... or if you h...

linux - webogic application class loading -

I had a class struggle while deploying my EAR at weblog 10.3.6, whose web logic in the incoming jar So I use the weblogic-application.xml and lt; Wls: prefer-application-packages & gt; Updated to update. & Lt; WLS: Package-name & gt; Org.XXX * & lt; / WLS:. Package-name & gt; & Lt; WLS: Package-name & gt; Org.apache.commons * & lt; / WLS:. Package-name & gt; & Lt; / WLS: Like-application-packages & gt; But failed to pull the class out of the new jar I added in APP-INF / BBP ... Can anybody suggest, why would not it work? Thanks!

jquery - Laravel: rendering partial views with AJAX requests -

I am trying to create a single page CRUD application and I am using AJAX with jQuery. In this case, I submit the form and store a new country asynchronously in my database and then present a partial view with new data. This is my script and method that gets the database from the database and returns a partial view. $ ('# create-country-form'). Submit (function (event) {$ .post ('/ country / store', $ ('# create (country / all), function (data) {$ (' # -table-table ') empty (); $ ('#' Countries 'append' (data ['html']);});}); event.preventDefault ();}); Classroom Controller Expands Base Controller {Public Function All () {$ countries = Country: : All (); $ Html = visible :: create ('countries.list', compact ('country')) -> render (); return response :: jesone (['html' = & gt; $ html ]);} // ...} However, I actually consider the use of jQuery in the page view I do not like it, it seems to be La...

python - How to select tags by attribute value with beautiful soup -

मेरे पास निम्न HTML टुकड़ा है: & gt; & gt; & gt; एक & lt; div class = "headercolumn" & gt; & LT; h2 & gt; & Lt; एक वर्ग = "परिणाम" डेटा-नाम = "परिणाम-नाम" href = "/ xxy & gt; मेरे पाठ & lt; / a & gt; & lt; / h2 & gt; मैं चुनने की कोशिश कर रहा हूं हेडर कॉलम केवल अगर गुण डेटा-नाम = "परिणाम-नाम" मैंने कोशिश की है: & gt; & gt; & gt; a.select ('a [" डेटा-नाम = "परिणाम-नाम" "] ') यह देता है: मान त्रुटि: असमर्थित या अमान्य सीएसएस चयनकर्ता: मैं यह कैसे काम कर सकता हूं? html = "" " & Lt; div class = "headercolumn" & gt; & LT; h2 & gt; & Lt; d के लिए एक वर्ग = "परिणाम" डेटा-नाम = "परिणाम-नाम" href = "/ xxy & gt; मेरे पाठ & lt; / a & gt; & lt; / h2 & gt; बीएस 4 आयात से सुंदर सूप सूप = खूबसूरत सूप (html) सूप.फिंडएल ("डिव", {"वर्ग...

java - Axis Error unable to engage module addressing -

I am using axis2 on Apache Tomcat I am writing consumer side to consumer SOAP WS. I had configured Eclipse to use Tomcat as a server and stub._getServiceClient () while executing that line. EngageModule ("addressing"); I was getting the error "unable to attach module addressing" to fix that problem I add the following line to the VM arguments in the run configuration -Daxis2.repo = "E: \ axis2 \ repository" Now I am exporting my project as a war file and installing it on the real server . But now I am getting the same error (I have checked the log file) I do not know how to decide, everyone can help me Thanks

arrays - Best way to make conjunctions and disjunctions over a collection in java -

What is the most effective way of creating a and and or On two array list? // is not coded in JavaHashet & lt; String & gt; First = {"hello", "to", "you"} hashset & lt; String & gt; Second = {"hello", "to", "me"} hashset & lt; String & gt; And = and (first, second) = {"hello", "to"} hashaseet & lt; String & gt; Or I need to apply those two methods (very easy), but I (i.e., second) = {"hello", "to", "you", "me"} It will need to be done efficiently, because I will do and and or on the archive with hundreds of strings. Any tips? To avoid confusion I call methods and And Union as the meaning of and OR is a bit unclear. There is a method at set it will work in the intersection archive is a method that will employ the union. Here's an example: Public static zero major (string [] args throws except...

interpreter - Compiler for Dog programming language -

मैं हाल ही में एक नई प्रोग्रामिंग भाषा में आया - " द कुप प्रोग्रामिंग भाषा " I इस भाषा के लिए एक कंपाइलर के लिए खोज रहा था। मैंने पाया। मुझे मिला लेकिन मुझे नहीं पता कि इसका उपयोग कैसे करना है। अग्रिम धन्यवाद! पर्ल आईओजी कंपाइलर का उपयोग कैसे करें Windows सबसे पहले, स्थापित करें और सुनिश्चित करें कि यह आपके पथ में है: इसे यहां डाउनलोड करें: आप स्ट्रॉबेरी का उपयोग कर सकते हैं पर्ल (संभवत: दूसरे वाला भी)। उसके बाद, इसे से कंपाइलर डाउनलोड करें और इसे dog.txt के रूप में सहेजें- (आप वास्तव में इसे नाम कर सकते हैं जो आप चाहते हैं लेकिन ये निर्देश मानते हैं कि आप इसे कुत्ते नाम देते हैं Txt)। एक DOG स्रोत कोड फ़ाइल बनाएं मान लीजिए कि उसे helloworld.dog कहा जाता है। यहाँ कुछ कोड है जो आप helloworld.dog में डाल सकते हैं: छाल "हैलो वर्ल्ड! \ N" इसे टर्मिनल में चलाएं (कमांड प्रॉम्प्ट): perl dog.txt helloworld.dog लिनक्स / मैक / यूनिक्स संकलक को डाउनलोड करें: wget http://viewsourcecode.org/code/perl/dog.txt इसे निष्पादन योग्य बना...

Extract value from an array in php -

In my code, $ returns an array of data that is trying to remove the [2] value in that array I am For some reason it gives the entire array instead of just the value that I am trying to remove. I think it's really simple and I'm just looking at something. Here's my code: $ url = 'https://sandbox.familysearch.org/ forum / tree / person / KWWM-5R1 / Portrait? Access_token = '$ _SESSION [' FS-session ']; $ Return = print_a (get_headers ($ url)); $ Return return [2]; and there is a harvesting from the array printed here: array ([0] => HTTP / 1.1 307 temporary redirection [1] = & Gt; Server: Apache-Coyote / 1.1 [2] = & gt; Location: https://integration.familysearch.org/sandbox/v2/TH-501-48051-27-34/thumb200.jpg?ctx= ArtCtxPublic) How can I get the [2] value? Try to get rid of print_r $ return = get_headers ($ url); $ Return return [2]; print_r is a function used to print information from a variable (your array, in terms o...

jquery - Dropping 'draggable' elements into a 'sortable' list causes problems -

I am trying to move the elements from one list to another by drag-n-drop. The source list is 'dragable', the target list is 'sorted' within each draggable element for each & lt; Input & gt; A jquery error occurs in the console TypeError: $ (...), since a 'spinner' happens to move an element from one list to another. Data (...) is undefined As you can see in jsFiddle, after moving the element to another list, the spinner is not working. Javascript code: $ ('spinner') Spinner (); $ ('# TaskFound & gt; Li') Dragable ({connectToSortable: '#UserTasksOfDay'}); . $ ('# UserTasksOfDay') sortable (); P>

Excel UserForm Add Item to Listbox and Mark As Selected -

When you open the listbox, how do you mark selected items? for CTR = UBound to MyArray (MyArray) if LB1 = MyArray (CTR) then UserForm1.ListBox1.AddItem MyArray (CTR) 'selected item as user 1' Add symbols and symbols. LISTBox1.AddItem MyArray (CTR) 'Just add item end next Code> ListBox without specifying the optional varIndex parameter in AddItem , then it is added at the end of the list. The index for that item is list1 - ( list box item index is 0-based). Therefore, to select it after adding it, you have to: UserForm1.ListBox1.Selected (UserForm1.ListBox1.ListCount - 1) = True

python - PyErr_SetString's string argument: is it borrowed? -

How does PyErr_SetString handle passage in C-string? Like it is safe to do: {int age = 12; Std :: stringstream ostr; Ostr & lt; & Lt; "I am" & lt; & Lt; Age & lt; & Lt; "Year is old and what is this?"; PyErr_SetString (PyExc_RuntimeError, ostr.str (..c_str ()); } Obviously this is 'converted to a string object', but is it necessary that the content will be copied? It is safe to do so, copying the contents of the wire before returning the Python. It applies only to other Python string operations. In general, only reference to python objects (poobect *) can be borrowed or stolen, and unless interpreted otherwise, the interpreter copies the arguments.

ruby on rails 4 - Nested form (strong parameters) inserting without values (besides id and timestamps) -

I am creating a restalt API in Rail 4, and a difficult time to send nested form properties for rail There is one association through the database. I believe my model should be established because they are: class users & lt; ActiveRecord :: Base is_on: address, dependent: delete accepts_nested_attributes_for: address and class address & lt; ActiveRecord :: Base is_to: user end and in my controller, I have: class API :: V1 :: UsersController & lt; API :: V1 :: API Controller Rap _parameters format: [: Jason], includes: [: email, address:] create df @user = user.credit (user_update) @ user.bld_resress @user user render: JSN = & Gt; @ Waiter Other Render: Jason = & gt; {: Errors = & gt; @ User.errors.full_messages} ,: Status = & gt; At the end of 422, private def user_param parameters.require (user:. (Email: address_attributes = & gt; [: id, line1, line2,: city, state, zip]] and end When I post the following JSON object ... {"email...

php - How to access values of multiple parameters passed to Laravel controller -

I am trying to figure out how to access two (or more) parameters passed to Laravel controller Know how to create a route, and the URL is created correctly, but then I can only use the parameters passed earlier in my controller. Route: Route: Receive ('manager / {id} / {parameter2}', array ('as' = & gt;' dosomething ',' Uses '= & Gt; manager controller @ dosoming')); Where the first parameter is clearly $ ID for managers, and the second criterion is processed by the controller. See: & lt; A href = "{URL: route ('do something', array ($ manager-> id, 'parameter2')}}" class = "style class" & gt; do something & lt; / a & gt; ; Generates the URL: http: // domain / managers / 1/2 where Using the "id = $ id and parameter2 = $ parameter2" statement, I get an "unknown", which, using $ 2 manager "$ 2" to easily use, 2 parameters " 2 ...

java - Eclipse error: cannot be resolved to a type -

With the help of a friend, I have created a simple app for the school, which is the iframe In. After this, I need to learn how to add a share button so that users can tell their friends about their app. I have received this code and tried to get it in my files, but it gives me some errors I have searched a lot for the solution and I think there are many possibilities to solve it, such as the project Refreshing, though I am very new, I just worry that I will mess up my project in some way, so I think it's best to ask first :) :) P> This is the code I added: @ Override public boolean on crat option menu (menu menu) {getMenuInflater (). Floor (R. menu. Action_bar_share_menu, menu); Menu item = menu.finditum (rd menu_item_share); ShareActionProvider myShareActionProvider = (ShareActionProvider) item.getActionProvider (); MyIntent = new intent (); MyIntent.setAction (Intent.ACTION_SEND); MyIntent.putExtra (Intent.EXTRA_TEXT, "Whatever message you want to share"); ...

javascript - Set custom paths to files in Browserify -

I'm taking a crack on changing my current RequireJS workflow into a browser + to see one, only my frontend Javascript (my backend is Ruby) The only issue I am running is that I do not have a convenient place to confirm that I have named "named path". Suppose that my frontend is structured like this: app / Model / examplemodel.js view / exampleviews JS Main JS Usage / Backbone-All Js vendor / jquery-2.1.0.js spine-1.1.2.js backbone-mariannet-2.0.1.js underscore-1.6.0.js In the above example, two things Keep in mind: All my generated files are correct in their filename Backbone-all Note in js file in util folder With RequirejS, I can do something like the following: required.config ({path: { "Jquery": "vendor / jquery-2.1 .0", "backbone": "vendor / backbone -1.1.2", "underscore": "vendor / underscore-1.6.0", "backbone-all": "usage / Backbone-all "}}); And instead of full...

java - Reading data from HDFS - my program can't find the path -

I am trying to read the contents of the file from HDFS. My code is below - Package General; Import java.io.buffferedReader; Import java.io.IOException; Import java.io.InputStreamReader; Import org.apache.hadoop.conf.configuration; Import org.apache.hadoop.fs.FileSystem; Import org.apache.hadoop.fs.Path; Public Class ReadFromHDFS {Public Static Zero Main (string [] args throws exceptions {if (args.length & lt; 1) {System.out.println ("Usage: ReadFromHDFS & lt; hdfs-file-path-to- Read-from & gt; "); System.out.println ("Example: ReadFromHDFS 'hdfs: / localhost: 9000 / myFirstSelfWriteFile'"); System.exit (-1); } {Try Path Path = New Path (Argos [0]); FileSystem fileSystem = FileSystem.get (new configuration ()); Buffer Reader buffedreader = new buffed reader (new inputstreamreader (file system.open (path)); string line = buffedreader .readline (); while (line! = Null) {System.out.println (line); line = buffer.readline ();}} Grip (IOException...