Posts

Showing posts from June, 2012

Windows Phone 8 expandable list view -

I need to implement expandable list view on windows phone 8. My goal is to bind values ​​from the JSON output The format of the parent child I receive. Am I assuming that you want something similar to Android if If so, take a look at Windows Phone Toolkit

loops - bash ssh script not outputting results to file -

Using a simple script in the work and I can not understand why the results will not be in any other file. / tmp / system stores the node list #! / Bin / bash $ result = restest.txt in $ i (cat / tmp) / system); Ping-C1 $ i [$ i = 0]; Then SSH $ i ps -ef | Grape Ops | Echo & gt; For the results, The echo is not printed with stdin, but its arguments Line if there is no logic). Therefore, echo file.txt prints 'file.txt' only, not the content of the file. So your code just writes a new line in the file. You can use stdin to stdout at stdout, but here it is useless, because you can pipe directly into the grep output file: ssh $ i ps -ef | Grep Ops & gt; $ Result

How to create a new key in Ansible using the ec2_key module? -

How do I use the ec2_key module in Ansible? Can someone give me an example of creating a new keypair? Example of work: - Name: an EC2 key Create ec2_key: Name: "mykey" field: "eu-west-1" Register: ec2_key - Name: Save the private key copy: Content: "{{ec2_key Key.private_key}}" dest: "./aws-private Pem "mode: 0600 when: ec2_key.changed

visual studio 2010 - How to Insert a Table as a Word Header using vb.net -

I'm trying to insert a table at the top of the word, but instead of placing it in the table, be made in the table. The body of the page is I have tried to do it, > objapp Application obogDoc as Word.Document objApp = New Word.Application () objDoc = objApp. Documents.Open (TextBox1.Text) objDoc.Sections (1) .PageSetup.DifferentFirstPageHeaderFooter = true objDoc.Sections (1) .Headers (Word.WdHeaderFooterIndex.wdHeaderFooterFirstPage) .Range.Tables.Add (range: = objApp.Selection.Range , numrows: = 3, NumColumns: = 1) objDoc.Save () objDoc.Close () objApp.Quit () as dim oWord = new Microsoft.Office.Interop.Word.Application dim again string = System.Environment.GetFolderPath in (Environment.SpecialFolder.MyDocuments) oWord.Documents.Open (TextBox1.Text) Word.Table = oDoc.Tables retarded oDoc = oWord.ActiveDocument oWord.Visible = true dim tbl (1) tbl.Cell (1, 1) .Range not Ext = "content" tbl.Cell (2, 1) .Range.Text = "content" tbl.Cell (3, 1) .Range.Text...

Get Near by places data with longitude lattitude using google map api 3 without loading the map -

I want to use Google Map API and want to get around location statistics by specifying latitude latitude. My question is that ... Is Google Map possible for places near data? I have checked "Auto-complete predictions from the full service", but its return is not latitude-latitude related information. You can create a map div and hide that div in your application. In the background, you can call Google Maps and get close to places and do whatever you want. & lt; Div class = "row" id = "map-canvas" width = "100%" height = "400" style = "display: none;" & gt; & Lt; / Div & gt; Var map = new google.maps.Map (document.getElementById ('map-canvas'), map options); Map.places.search (Search, Work (Results, Status) {If (Status == google.maps.places.PlacesServiceStatus.OK) {for (var i = 0; i & lt; results.length; i ++) {Console logs (Results [i]);}} and {Alerts ('Unable to get data from G...

android - Adding more than 200 markers on google map without loading map -

I want to add more than 200 markers on the map received from the API call and on the map movement I get another marker . I am able to add markers but my map runs slowly, can any one help me improve the map? Thanks in advance

scala - Scalatra response HMAC calulation -

I am developing a web service using Skallet and I want to use HMAC for bidirectional authentication. So far, I have implemented client authentication to the customer: Customer (an Android app) uses these criteria to calculate one HMAC / SHA 512 for each request: a shared secret, HTTP The method, URL, some headers (timestamp, client id etc) and request body (if it is a post or a string), this HMAC is then added to a specific title and the request is sent to the server (which is sent to HMAC Confirms with Acmsi in Nurod header that performs the same calculation to the client). Now, I want to do the opposite thing: The server is certified to the client using shared secret, request HTTP method, URL and response body . By now, I found that I can override renderResponse (ActionResult: any) that , renderResponseBody (ActionResult: any) or even That seems to be the easiest to handle as renderPipeline and override renderpipline as I decided to go along with. Renderpipline ...

javascript - Select/Deselect multiple check boxes using Jquery in loop(Rails) -

Image
I am working on ROR, I have two edges inside which I am displaying the record with the check box. & lt;% = form_tag some_path,: method = & gt; 'Post' Do% & gt; For loop & lt;% = check_box_tag 'id []', value is% & gt; Name for loop & lt;% = check_box_tag 'ids_of_second_loop []', value% & gt; Name End End & lt;% = submit_tag "Next"%> & Lt;% end% & gt; Now I wanted to implement a jquery where I can select / unselect the checkboxes. If I am not directly in the loop, then I can, I refer to the link given below for the implementation, Loop Output ... it How to get ... I will do something like Lt;% = form_tag some_path ,: method = & gt; 'Post' Do% & gt; Loop & lt;% = check_box_tag 'Ids []', for the value, category: 'parent'% & gt; Name & lt; Div class = 'children' & gt; For the loop & Lt;% end% & gt; Note that after the c...

ruby - unexpected keyword_end with every loop -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मुझे एक अप्रत्याशित keyword_end त्रुटि और मैं क्यों नहीं जानता: def जोड़ (मीटिंग) यदि संघर्ष? (मीटिंग) "एक और बैठक के साथ संघर्ष है" डालता है! और अगर @ बैठकों। @ बैठकों.पशु (मीटिंग) और मैं = 0 @ मीटिंग्स.ईच करो | एम | अगर एम & gt; मीटिंग्स @ मीटिंग्स (मी, मीटिंग) को समाप्त करें अंत i ++ एंड एंड एंड एंड अगर मैं प्रत्येक loop को हटा देता हूं तो कोई समस्या नहीं है I मैंने जबकि लूप और जब तक लूप के साथ कोशिश की है और मुझे उन सभी में एक ही त्रुटि मिलती है। क्या कोई मुझे बता सकता है कि मैं क्या क्या गलत कर रहा है? रूबी में कोई भी ऑपरेटर नहीं है ++ आपके पास होना चाहिए: i + = 1

php - Extending & overriding ZfcUser behaviour -

I am using ZfcUser with ht-user-registration and scn-social-auth and there are 2 small improvements I have got to increase my implementation, but I have not had much success yet: ht-user-registration After registering new users get an email And until they've activated their account, it's working fine. What I want to do to increase it, it redirects the user after registration so that they are sent to a page, which is sent to check their e-mails instead of the long page, which is ZfcUser's The default behavior is. I have tried to add the Event Listener to the module bootstrap, which looks like this: $ response = $ e- & gt; GetResponse (); // It indicates that we want to redirect after the registration process / // home page $ redirection location to $ response-> GetHeaders () - & gt; Set adhidelineline ('location', 'home'); $ Response & gt; SetStatusCode (302); $ Response & gt; SendHeaders (); $ Em = \ Zend \ EventManager \ Static...

objective c - EXC_BAD_ACCESS with NSStreamEventHasBytesAvailable -

This is a very deceptive error, because even if I send and receive the same data then Sometimes it happens, sometimes it does not happen. I am getting a stream through NSInputStream and I use standard code to read bytes received in that stream and pass them to another method like: - (zero) stream: (NSStream *) aStream handleEvent: (NSStreamEvent) eventCode {switch (eventCode) {case NSStreamEventHasBytes available: {NSMutableData * data = [[NSMutableData alloc] init]; Uint8_t buf [1024]; NSInteger length = 0; Length = [(NSInputStream *) read aStream: Buff Maxelbag: 1024]; If (length> gt; 0) {[data edaybets: length of the bff: length]; [Self. Delegate doSomethingWithTheData: data]; } And {nslog (@ "no buffer!"); } break; } ... Occasionally when the stream is starting to me, a EXC_BAD_ACCESS (code = 1, address = 0x8) error for line Length = [(NSInputStream *) aStream Reading: Buff MaxLabel: 1024]; I can not see what is the reason for this prob...

POST CURL to JSON using PHP (use Cookie.txt) -

I want to post some curls in a REST API with the use of an PHP forwarding. A brief overview of my project ... User (We call him Anton) Log on to the classic logon form on the Starsite after which the user should be logged in until he wants to logout (but here's the problem) The user's main Work is to fill the form with project name and description. After submitting, the data is transferred to the JSON object which creates a project in the software. When I run the curl command manually through the terminal, everything works fine but my PHP script is unfortunately not so. log works fine in terminal curl -v \ -c cookie.txt \ -X Post \ F j_username = Anton \ F j_password = pw \ http : //test.com/login.json log in PHP works fine in lt ;? Php // log in error_reporting (E_ALL | E_STRICT); Ini_set ('display_errors', '1'); $ Ch = curl_init (); Curl_setopt ($ c, CURLOPT_URL, "http://test.com/login.json"); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER,...

android - Is there a way get the progress of the queued downloads in Picasso? -

I am developing an app that should be able to pre-download all the images used from within the dataset So the app function is completely offline It should download about 600 images of every 500KB (~ 300 MB total). For this, I want to loop through all the URLs and execute Picasso Fetch () method, it will bring all the images, which is great. The only thing that I am missing is a way to see what is the progress of all image downloads, whether Picasso's download queue Is there any way to see progress? What have I found so far: In this way I inform the user that when downloaded, and what is the current situation. I can use a target to load in the image only it will also interpret a bitmap, which is not necessary yet and takes a lot of resources. I can read the cache folder to check progress. But I think this is not a clear way ... First of all, You should not preload all the images if you use Picasso or Universal Image Loader, then you are caching both ...

c# - Connection string int asp error -

मुझे लाइन 20 में त्रुटि है यहां त्रुटि रेखा है: int temp = कन्वर्ट .oInt32 (com.ExecuteScalar ()। ToString ()); मेरे कोड के लिए पृष्ठ: पेज त्रुटि जो दिखती है: त्रुटि कहती है: वर्ण स्ट्रिंग के बाद खुला उद्धरण चिह्न। " आपका एसक्यूएल कमांड है: स्ट्रिंग चेकयूसर = "सिस्टममेम्बर इनफॉइस से गिन (*) का चयन करें जहां यूजर नेम =" + टेक्स्टबॉक्स यूजरनाम। टेक्स्ट + "''; यदि आप अपनी स्ट्रिंग देखते हैं, तो आप देखेंगे कि आपके पास अपने WHERE खंड के अंत में एक उद्धरण चिह्न है, लेकिन शुरुआत में नहीं। आपका जहां क्लॉज को और अधिक दिखना चाहिए: जहां उपयोगकर्ता नाम = '' + टेक्स्टबॉक्स उपयोगकर्ता नाम। पाठ + "'"; कृपया ऐसा प्रश्न भी नहीं करते यह, वे करने के लिए अतिसंवेदनशील होते हैं।

ssrs 2008 - Getting Overall row total in column total -

I have a matrix and I have to get the total line so that I can do one percent. This is a thick matrix layout [MyDataSet] [MyParentGroupRow] [ColumnA] [ColumnB] ​​[ColumnC ] [Column Total X] / [Total Rows Total] Total [column total] [column total c] - [total rows total] I am unable to get [overall the total line value]. If I use a root dataset then it will be wrong because Tablix has been filtered. That's why I need to get total rows for [MyParentGroupRow]. Notes I can not change the dataset, everything is counting rows, so I can not use things like yoga.

c++ - box2d: b2_dynamicBody not moving with b2_kinematicBody platform -

Image
I have a platform (box) that is of type b2_kinematicBody and growing with a linear variation I have a The ball that is B2_Dendive body. When the ball is ground on the plate, it stays in the same position and does not move forward with the platform. I saw this short video that shows the problem - - - >>> Friction has already increased on both objects but there is no result. I can currently think of only one solution which is to make a joint between these two ovaries, who have contact. Is this the right solution? Thx Kris in advance PS: Testing in C ++ with the latest version of box2d If you are talking about why it always runs on the platform, it can be because it does not have any rolling friction (not being confused with surface friction) Rolling friction is why a tire that is very hard to pump longer than rolling tires Sing that little bit flat - rubber turns around because it is used for energy in the rocker box fixtures are absolutely rigid in 2D, which...

date - Access VBA Get Quarter From Month Number -

I am stuck trying to find the number of months to the fourth year, that is, I have number two of the month, Which should be the quarter number 1, how can I do this in Access VBA or an Access query? thank you in advanced. You can use this function: public function Then make an error call (the number of months in the form of late VL month number) (month number, or lieutenant; 1) or (month number> gt; 12). Rice (6) 'value out of bounds' end if let's do the quarter = (month number -1) \ 3 + 1 termination function

C++ use enumerated and , Change the value of the variable -

I have a question in "Use C ++" in my home: Questions : Complete the following program as required in the comments, and then show the output. #include & lt; Iostream & gt; Using std :: cout; Using std :: cin; Using the Std :: endl; // Define an enumerated datatip language // Its legal value is German, English, Spanish, and Turkish int main () {/ * Define a varaible lang of type * / / * Set the varaible lang with the value * / / * Write a statement to print the value of the violet lang * / / * Change the value of varible lang to Turkey / return 0; } // and main I had written the code like this. #include & lt; Iostream & gt; Using std :: cout; # Include & lt; Iostream & gt; Using std :: cout; Using std :: cin; Using the Std :: endl; // Define an enumerated dataTip language. Its legal value is German, English, Spanish, and Turkish language enum language {German, English, Spanish, Turkish}; Int main () {enum language {German, English, Span...

rest - relations and etag -

कहो मेरे पास दो रूट संसाधन हैं: / संगठन / व्यक्ति ए GET एक प्राप्त करें कॉल / व्यक्ति / आईडी पर एक निश्चित व्यक्ति के बारे में सभी जानकारी देता है। / कोड> कॉल पर / व्यक्तियों / आईडी / संगठनों सभी संगठनों की एक सरणी देता है जो एक व्यक्ति का है। एक प्राप्त कॉल / व्यक्ति / आईडी / संगठन / आईडी उस विशिष्ट संगठन की सभी जानकारियां देता है जो उस व्यक्ति से है यह / संगठन / आईडी के रूप में एक ही सामग्री देता है। व्यक्ति की जानकारी को अपनी संगठन की जानकारी के साथ विस्तारित करने की संभावना है, दो GET एक एकल में प्राप्त करें : / person / id /? विस्तार = संगठन मेरा प्रश्न ईटोग्स में है उत्तरार्द्ध अनुरोध। जब / व्यक्ति / आईडी को एक्सेस करते हैं, तो ईटीएजी को जवाब हेडर में जोड़ा जाता है। इसी तरह, जब / व्यक्ति / आईडी / संगठन / आईडी तक पहुंचते हैं, तो ईटीएजी को प्रतिक्रिया शीर्षकों में जोड़ा जाता है। अब प्रश्न: जो कि ईटगेट को मुझे जवाब हेडर में जोड़ना चाहिए / व्यक्तियों / आईडी / विस्तार = संगठनों ? तक पहुंचने के लिए, जब भी कोई संबंधित संगठन नवीनीकृत ...

java - Run JUnit test only on Linux -

इस सवाल का पहले से ही एक उत्तर है: 18 उत्तर मेरे पास एक बुनियादी JUnit परीक्षा है जो मैं केवल लिनक्स पर चलाना चाहता हूँ अगर मैं विंडोज पर कोड का निर्माण करता हूं तो मैं कैसे परीक्षण छोड़ सकता हूं? उदाहरण के लिए मैं जावा से ओएस प्लेटफॉर्म प्राप्त कर सकता हूं? System.getProperty (" os.name ") आपको ओएस का नाम देगा। यदि आप ओएस विंडोज हैं, तो आप एक परीक्षा को छोड़ने के लिए कक्षा का उपयोग कर सकते हैं: @Test सार्वजनिक शून्य परीक्षण कुछ () {Assume.assumeFalse (System.getProperty ("os.name")। ToLowerCase () .startsWith ( "जीत")); // परीक्षण तर्क}

javascript - validation on textbox depending on selectbox selected value change event in jquery -

jquery में selectbox चयनित मान परिवर्तन की घटना के आधार पर पाठ बॉक्स पर सत्यापन। लेकिन अगर मैं 'एनआईडी' का चयन करता हूं तो पहले 'पीएसटी' की लम्बाई में बदल जाता हूं, जब मैं 'पीएसटी' का चयन करता हूं और फिर 'एनआईडी' लम्बाई के भाग में काम करता हूं। / P> $ (document) .ready (function () {$ ('# seIdproof')। परिवर्तन (फ़ंक्शन () {var PFID = $ ('# seIdproof')। Val (); $ ('#seCustomerId')। वाल (''); अगर (पीएफआईडी == 'पीएसटी') {$ ('# seCustomerId') कुंजीप (फ़ंक्शन (ई) {var len3 = $ (this) .val () लंबाई; यदि (len3 & gt; 6) {चेतावनी ("यह आईडी प्रमाण संख्या मान्य नहीं है, कृपया मान्य संख्या दर्ज करें"); $ (यह) .val ('');}})}} अगर (पीएफआईडी == 'एनआईडी') {$ ('# seCustomerId') कुंजीप (कार्य (ई) { Var len1 = $ (this) .val ()। लंबाई; यदि (len1 & gt; 11) {चेतावनी ("यह आईडी प्रमाण संख्या मान्य नहीं है, कृपया मान्य संख्या दर्ज करें।"); $ (This) .val ( '');...

Startup Script on Windows GCE - Where is it logged? -

I am thinking that startup script logging occurs (if it happens automatically) GSE Document is very clear about logging in to Linux images, but it does not indicate anything for Windows. Thanks in advance! -ben Not to mention a specific location or file for these logs Because there is not one, Windows handles differently than all Linux and as such, the /var/log/startupscript.log is not equal to the file. Your best bet will be to go through the System Viewer and Event Log in Event Viewer. How It Just Works Windows

java - Can't access packages in my project -

We (my project groups and me) try to use different packages within our working directory. As you can see that we are actually playing with those bad robots ...;) Our main category is Robotwars.java. Example code from this class: import baker. Robot. *; Import javax.swing *; Import java.awt. *; Import WarRobots *; Import listeners *; In each of our packages we have written package and package name in SetSpeedListener.java for example: package listeners; But we strive to get some annoying errors like us trying to compile: RobotWars.java10: Error: Package WarRobots does not exist Import WarRobots *; ^ Robotwars.Java11: Error: Package listeners import listeners are not present. *; ^ But we wrote package items at the beginning of each class ... So what are we doing wrong? . ├── Listeners │ ├── PauseResumeListener.java │ └── SetSpeedListener.java ├── RobotWars.java ├── WarRobots ├── RandomRobot.java └── WarRobot.java Our folder structure is one above. Thx // J...

phantomjs - Cannot find module 'casper' with 1.1 beta -

यह कमांड काम कर रहा था: /usr/local/Cellar/casperjs/1.0। 2 / libexec / bin / casperjs myfile.coffee अब मैं इस तरह 1.1 का उपयोग करना चाहता हूं: /usr/local/Cellar/casperjs/1.1 लेकिन अब मुझे यह त्रुटि मिलती है: त्रुटि: मॉड्यूल 'कैसपर' फाटकम्ज नहीं पा सकते हैं: / / /bootstrap.js:289 phantomjs: //bootstrap.js: 254 में आवश्यकता होती है लोग इस त्रुटि की रिपोर्ट कर रहे हैं कि वे फुटमोज चलाने से कैसपर को खोलने का प्रयास कर रहे हैं, लेकिन जैसा कि आप देखते हैं कि मैं सीधे कैसपरज चला रहा हूं । क्या UPDATE अगर यह एक सुराग प्रदान करता है, जब मैं की आवश्यकता होती है = patch आवश्यक (आवश्यक) मेरी स्क्रिप्ट की पहली पंक्ति, मुझे यह त्रुटि मिलती है: प्रकार एरर: 'अपरिभाषित' एक ऑब्जेक्ट नहीं है (मूल्यांकन की आवश्यकता है 'पीटेड') /usr/local/Cellar/casperjs/1.1-beta3 /libexec/bin/bootstrap.js197 patchRequire में

javascript - Use https connection for Facebook Canvas App -

I'm actually developing a Facebook Canvas version of an app using PubNub, my problem is that Facebook is all non -https, even send / receive PubNub message requests. Is there any way to use the PbnOb SDK to use https version of PNUUUR routes? I do not really need the security of an https connection for my PubNub messages. Note: I am using the AngularJS SDK. Edit: My application is using https connection, only pubnub keeps using simple http request. When you develop in a Facebook canvas, iframe is full of https, and by security All communications in one https page should be more than all the outgoing connections secure channels (another SSL connection ...). Create a Pablabe Comune in an SSL channel, try it:

.net - Where can I get information on the ! operator used by VB.Net in Linq to DataSet? -

Uses one! Operator to refer to an area in Dotter. Options strict closed import system. Data import system Dynamic table ("number") as the new table in the form of a new table of integer = {5, 4, 1, 3, 9, 8, 6, 7, 2,} as the public sub-main () slow number () Table Columns Add ("Number", GetType (integer) numbers for each N in the table. Rao.Jodha (new object () {n}) lower bottom number = from row Table. Row _ where line! Number & lt; 5 Select the row for each x in the minimum number console. Rightline (X! Number) Next End Sub End Module What is! Called operator? Where are the rules? This is (in this context): "Only one Use as a dictionary access operator on a class or interface. The class or interface should have a default property that accepts a string argument. The logic value is given to the identifier immediately after the operator line line ("number") is equal to This operator is a legacy layer from VB6 and it is cal...

regex - Is there a regular expression technique that will match a zip code with one pair of digits transposed? -

Preferably using the Oracle syntax, I need to match the US zip code (5 digit numeric), where a pairing number has been infected. Can it be done with a regular expression? If so, what will happen that what regex looks like? Edit: Two consecutive digits transfer; 12345 = 12345 or 12354 or 12435 or 13245 or 21345 About Oracle But you can add a known string like your string w / a 12345 match and you can use this method: \ b (\ \) (\ \) (\ \) (\ D) (\ d) (\ d) (\ d)) \ b (? =. *? Match: (?: \ 2 \ 3 \ 4 \ 6 \ 5 | \ 2 \ 3 \ 5 \ 4 \ 6 | 2 \ 4 \ 3 \ 5 \ 6 | 3 \ 2 \ 4 \ 5 \ 6))

jquery - show tab with external link with onclick in bootstrap 3 -

I want to link to a Bootstrap 3.2.0 tab with a link like this: & lt; A href = "# tab_i_want_to_link" onclick = "something ()" & gt; Tab name & lt; / A & gt; Thanks! Here is a comment thread: and none of the solutions works like this well . Source: Demo: This solution is outside of link tabs, inside, and wherever you are a regular Want with url $ (window). Load tab ('click', 'a', function (e) {var = $ (This); // Prevent default behavior e.preventDefault (); // hash address bar window.location.hash = $ this.attr ('href'); // Clicked Tab $ this.tab Activate ('show');}); // tab will show hash based on hash function Refresh () {navbox.find ('a [href =' '+ window.location.hash +' "] ') The tab ('show');} // show tab, if the hash changes $ (window) in the address bar .bind ('hash change', refreshhash); // redd is from the address bar and show it HA is that i...

using a css class inside PHP -

I have to set this function, which exits a custom field in a WordPress article editor. It works and displays the editor I am inserting (like 20,00) but I can not use it CSS & lt; Div class = "value" & gt; & Lt; P & gt; & Lt ;? Php Echo '& lt; Div class = "price" & gt; Get_post_meta (get_the_ID (), 'value', true). '& Lt; / Div & gt; '; ? & Gt; € & lt; / P & gt; & Lt; / Div & gt; This is my CSS file: .price {font-size: 50px; Color: # 8e8e8e; } Why does not the CSS code apply? CSS is not different than any other CSS implemented with PHP. This is not a problem. This is probably the case of some other CSS which is overriding your definition for more specific selector .price . Also, make sure the path to your CSS file is correct and the code is loading. To diagnose it, load the script into your browser and use the code inspector to see the div with the .price class. T...

ember.js - How to handle time based relationships in ember data? -

Assuming I have two models users and posts are one Users can have multiple posts and each corresponds to post a user . On special pages, I would like to display posted on a date, usually only today's post. How do I design relationships? I can create a method in the controllers such as App.ProfileController = Ember.ObjectController.extend getPostsForToday: (- & gt; @ store.all ( 'Post'). Filter property ('date', '2014-10-17') But I think I should put this argument in the model App.User = DS.Model.extend todayPosts: (-> DS.hasMany ("Post"). Filter Receipt ('Date', '2014-10-17') // Something like this In this way, I can not dynamically change the date, can I do it? What is the best strategy to handle? I think one to do this ArrayController , it has to be sorted in it, and filtering results is on your way. ArrayController: App TodaysPostsController = Ember.ArrayController.extend ({sortB...

ng grid - Angularjs trying to watch a property of an object in an array -

$ scope.testObj = [{'नाम': 'जोन'}, {'name': 'bob '}]; इस मामले में मैं $ scope.watch (testObj.name, examplefunction, true) .... यह काम नहीं करता है लेकिन यह $ scope.watch (testObj [0] .name ...) पूर्व बंद हो जाता है पूरी तरह से लोड होने से पृष्ठ, क्या मैं यह गलत कर रहा हूं? मैंने स्टैकवरफ्लो उदाहरणों का एक गुच्छा पढ़ा है जो उसी वाक्यविन्यास का इस्तेमाल करते थे। असल में मैं जो पूरा करने की कोशिश कर रहा हूं, उसे ऑब्जेक्ट को किसी अन्य मॉड्यूल पर भेजने से पहले इसे सहेजना है, जब एक उपयोगकर्ता एनजी-ग्रिड में एक निश्चित सेल (इस उदाहरण में नाम) को संपादित करता है। यह यहां हल किया गया था। देखें कि यह आपके लिए क्या काम करता है। उदाहरण के साथ ये JSFiddle है var app = angular.module ('app', [] ); फ़ंक्शन ctrl ($ scope) {$ scope.count = 0; $ Scope.people = [{आईडी: 1, नाम: "बिल"}, {आईडी: 2, नाम: "जिम"}, {आईडी: 3, नाम: "रयान"}] $ दायरा। $ Watch (फ़ंक्शन ( $ गुंजाइश) {return $ scope.people.map (functi...

objective c - Xcode 6 Autolayout Subview Constraints -

Image
यहाँ मेरी स्टोरीबोर्ड है तो आप देख सकते हैं कि मैंने डिबगिंग उद्देश्यों के लिए अपना मुख्य दृश्य पृष्ठभूमि भूरा बनाया है। अंदर है कि मेरे पास एक दृश्य है, मैं 'ग्राफ़ व्यू' को कॉल करता हूं जो वर्तमान में चार्ट के लिए एक लेआउट मार्गदर्शिका / कंटेनर की तरह अभिनय करता है (यूवीआईव्यू subclasses)। मैंने ग्राफ़ व्यू पर बाधाएं पूरी कर ली हैं, इसलिए यह (अधिक या कम) केन्द्रित है और इस पर निर्भर करता है कि उपकरण पर निर्भर करता है चौड़ाई / ऊँचाई, सहायक संपादक में देखा गया है: मैं ग्राफ़ दृश्य के bounds.height और bounds.width हालांकि यह इंटरफ़ेस बिल्डर में आकार होने वाला है, जो 568x500 है। ग्राफ़ व्यू "चार्ट" के रूप में मेरे चार्ट को एक ही लेआउट / विज़ुअल प्रॉपर्टी को प्रस्तुत करने के प्रयास में मेरे पास निम्न कोड है, तो चार्ट में मैं इनट और कॉन्फ़िगर करने के बाद: लाइनचर्ट। बैकग्राउंड रंग = [UIColor clearColor]; लाइनचर्ट.ट्रांस्लेट्सअटोरिसाइजिंगमस्क इनटूंसस्ट्रेनट्स = नो; [Self.graphView addSubview: लाइनचार्ट]; NSLayoutConstraint * चौड़ाई = [NSLayoutConstraint...

Using a txt to store all strings used in my JSP -

I am starting a JSP and I have seen it in another system: my_file Txt: person.new = Create a new person. Remove = Remove a person in the file of JSP: $ {peson.new} Will show: Create a new person How do I do this?

Using MAMP with NGINX -

Image
I think the latest version of the MMP includes NGINX 1.6. Whether NGINX can be used instead of Apache, or it is being used for server-cached content. If possibel I instead use NGINX instructions instead of .htaccess It seems that you can use NGINX as Web-server instead of Apache.

c# - Web API won't return JSON using stored procedure -

Text after "div class =" itemprop = "text"> I have a stored procedure to give results in new APIs and I for web APIs (using VS 2013) Have tried to get JSON I have found examples of using HTML to display, but I can not send it to JSON I am working with that example and I see that the name "view" is not present in the error "in the current context". Although I usually work very well using work boards (and I think I'm close), but I can not get it to succeed. The data is from sproc, but I do not know how to return it. This is my first post so please forgive me if the answer is clear. using the system; Using System.Collections.Generic; Using System.Linq; Using System.Net; Using System.Net.Http; Using System.Web.Http; Using TRYiT.Models; Namespace TRYiT.Controllers {public class TRYiTController: ApiController {TRYiTEntities _db = new TRYiTEntities (); Public IEnumerable & lt; InfoModel & gt; Get () {var studentercord = _db.Student_...

java - Using while loops to validate input -

I want to enter the user "y" "y" "n" or "n" As a result the code asks the user to enter Y or N when they enter the correct input, which I was expecting! Input.equalscaseignore (Input) in front of import java.util.Scanner; Class inputwid {public static zero main (string [] args) {string input; Scanner Keyboard = New Scanner (System.in); System.out.println ("Please enter Wi or N"); Input = keyboard.nextLine (); While (! Input.equalsIgnoreCase ("Y") ||! Input.equalsIgnoreCase ("N")} {System.out.println ("Please enter Y or N"); Input = keyboard.nextLine (); } Keyboard.close (); }} This is your or status, you must Change it to and (While! Input.exile ignoror season ("Y") & amp;! Input.Ageles Ignore Seas ("N")) Whenever the input is not equal (ignore the case) "Y" and Input does not equal (ignore case) "n"

Retrieving XML into Oracle table -

itemprop = "text"> I work on a project where I have to write a stored procedure which retrieve data from an HTTP, XML service I am doing. The data should be returned in a table or cursor so that the client can read it. I have done some work which is already retrieving data from the service using ULL_HTPP. I do not know how to do that to convert that data into columns and rows from XML. I am searching the internet and looking for an example of an Oracle data table and returning to XML using XMLElement; But thanks in the other way! There are several ways to do this In a way a parser (probably Pearl Or Java in a differnt language) which is converted into XML in the insert statement in PL / SQL it can see like this: your_xml: = XMLType ('& lt; Employment ID = "1" & gt; & lt; First & gt; Peter & lt; / Prev & gt; & lt; Previous & gt; Fox & lt; / previous & gt; & lt; ; / Employment & gt; '); EXPRACT...

javascript/youtube api check state for playback restrictions -

Javascript / YouTube API check status for playback restrictions The problem is that I embed from gdata / youtube-api and sometimes it does not allow playback video restrictions or embeds, so I was checking a state or something to handle it. I & amp; Tried to add format = 5 & Amp; -1 Trying an event with any luck, any idea will be highly appreciated. Function on PlayerState Change (Event) {if (event.data == -1) {// Rest of code}} Thanks in advance. Edit3 / Solution to this problem: As you have on-set that function for the function on Capture Event and on-screen error, this problem was resolved. PlayerError (event) {if (event.data === 150} event.data === 101} {// left here}} Edit: Add more Edit code 2: Error code matching is the only answer to the problem that I do not know how to capture the error code to any idea? } Loading the json data about you Videos before embedding and checking restrictions: var xmlhttp = new XMLHttpRequest (); Var url = 'h...

javascript - ScrollTo() function is not working properly with sections -

I have a series of sections on such an app, which I have just finished developing. I'm using the scrollTo plugin for jQuery It always works well for me in the past. What is considered to apply is low: All section loads and first section spreads immediately, everything else Click on the other section, and the section that is currently open will fall, and the one you click on will expand (this works) After the expansion is completed, The window will scroll to the top of the expanded section (this does not work) There are three steps Switch to the need to help my code below I have discovered various disciplines on the use of the scrollTo () plugin and ScrollTop is I've tried both, but nothing has changed. I am thinking that when the toggle function is called, there is something to do with it, but I am not sure. I'm really hoping to find an answer. You need more clarification or code, please tell me! // module expansion and contraction $ ('.module-t...

javascript - Catching data in controller -

I have a question about javascript and cakepap, send me data through post and on the other side (controller) and I already have a normal procedure. But I do not know how I can handle the data I am working with Ajax function editFun (clicked_id) {var id = clicked_id; $ ("#type") below () .; $ ('# Content'). Html ("& lt; b & gt; Loading Feedback ... & lt; / b & gt;"); $ Ajax ({type: 'post', url: '/ post / edit', data: (id)}). (Function) {console.log (data); $ ('# content') .html (data);}). File (function (data) {$ ('# content') .html (data);} ); } Edit the public function ($ id = null) {if (! $ Id) {New NotFoundException} -> Request-> (array ('post', 'put'))) {$ this-> Post- & gt; Id = $ id; If ($ -> this-> Post-> Save ($ - this-> request-> Data)) {$ this- & gt; Session-> Set Flash (__ ('your post has been updated.')); $$ -> (- 'Action...

Scala: Difference between file.class and file$.class from scalac -

When I use sclech to compile file.scala, then I get 2 outputs, file.class and file $ . What is the difference between these files and which is the right thing to do? I get different error messages between executing "scala file" vs "scala file $". for classes ending in Scala object s in "$" Is compiled because you have the permission of the "normal" class with the same name but the methods of the object are also highlighted in the form of static methods of the "normal" class, so that they can be called under the names that you would expect. This slaya is a distortion of trying to present semantics in such a way that it helps to understand Java / JVM, and I encourage it to consider it as a description of an implementation instead of something important. (@MATPUTNAM) The answer is that anonymous classes, including closures, are compiled for class files with $ es on their name, but in this particular instance your file is $$ clas...

jsp - how can java return false when comparing 2 numbers which has exactly the same type and value? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब & lt; br & gt; ; & Lt;% यदि (ओवरलिमिट! = नल) {% & gt; & lt;% = ओवरलिमिट इटैम्नो.गेटक्लास ()। बराबर (शॉपिंगवि.गेटइटीम_नो ()। GetClass ())% & gt; & lt;%}% & gt; & Lt; br & gt; & lt;% अगर (ओवरलिमिट! = नल) {%> & lt;% = overLimitItemNO.getClass ()% & gt; बनाम & lt;% = shoppingVO.getItem_no ()। GetClass ()% & gt; & lt;%}% & gt; & Lt; br & gt; & lt;% अगर (ओवरलिमिट! = नल) {% & gt; & lt;% = ओवरलिमिटइटमो% & gt; बनाम & lt;% = shoppingVO.getItem_no ()% & gt; & lt;%}% & gt; & Lt; br & gt; & lt;% यदि (ओवरलिमिट! = नल) {% & gt; & lt;% = ओवरलिमिट इटैम्नो == खरीदारी VO.getItem_no ()% & gt; & lt;%}% & gt; और यह ब्राउज़र पर निम्न दिखाता है true class java.lang.Integer vs वर्ग java.lang.Integer 300008 बनाम 300008 झूठा आपको obj1.equals (obj2) का उपयोग करने की आवश्यकता है। == ऑब्जेक्ट्स पर केवल यह तय...

How to randomly select within a column category in MySQL -

How do you select a fixed number of column cost per line? For example, I have a MySQL database of forums, for example, I have a MySQL database of a forum, where the column has the thread ID, Answer ID (the answer to the post that started the thread ) And poster IDs I randomly want to start 4 threads from each poster. You might have the name of the table "threads", maybe something like this should be done SELECT * RAND by thread order (LIMIT 4; I do not know how efficient it is, but possibly not recommended with a bigger table. Perhaps generating random numbers in PHP or other languages ​​is a better option.

sql server - Controlling file extension when inserting data into SQL Filestream column? -

I have a SQL Server Express database with a 10gig limit, so I save the location by transferring a large text column I'm trying out a filestream type I created a new database, set the filestream column along with filestreaming and it was set as a full text index. Then I tried to put data in my new database (insert column in column) into new database, which resulted in filestream files being created with a file extension (which I think is expected) is. I looks this is causing my full text lookup (i.e., 'search term')) to fail what filestream Can I specify a default file extension when inserting data into a column? Or do I need to create a program to create temporary text files and insert in that way (I really do not expect !!). Thank you!

r - Can I save the old value of a reactive object when it changes? -

note:. come up with the answer after I question, Sometimes a Glossy app I was chosen by the user to a widget value , As well as the previous value selected for the same widget, it may apply to the reactive values ​​derived from the user input, where I want the old and new values. The problem is that if I try to save the value of a widget, then that variable will not be responsive to the value or updated each time the widget changes but, if I assume In a reactive context, it will always give me the current value, not the last time. How can I save the last value of a widget, but still have it updated while changing the user widget? Is there a way for which no action button is needed to be used, every time the user changes? Adding a actionButton can be desirable with an otherwise unnecessary and creates extra clicks for the user. The aim is to break the session flush event method, it seems that a Inspection event is an alternative way to build and use a responsi...

node.js - bcrypt make: execvp: g++ : not a directory -

I'm trying to use bript using npm on redHat, I'm working on it on my Windows dev environment But when I try to do this Unix test for port I am running NPM install bcrypt and received the following output: $ ../../nodejs/bin/npm Installed Bcrypt npm WARN package.json party@0.0.0 There is no repository field. NPM Warne Package. John's Party @ 0.0.0 Not Redmeat Data - & gt; Bcrypt@0.8.0 install / app / party / site / node_modules / bcrypt & gt; By reconfiguring the node defrauding: enter the directory `/ apps / party / site / node_modules / bcrypt / build 'CXX (target) release / obj.target / bcrypt_lib / src / blowfish.o makeup: execvp: G ++: not a Directory Make: *** [Release / obj.target / bcrypt_lib / src / blowfish.o] Error 127 Mac: Excluding directory `/ apps / party / site / node_modules / bcrypt / build 'deface ERR! Create error gipple ERR! Stack error: `Devo` in exit code failed: 2GIP ERR! ChildProcess.onExit (/app/nodejs/lib/node_modules/npm/n...

python - Django complains that django.contrib.gis.measure.Distance is not a valid model -

पर्यावरण विवरण: उबुन्तु GNOME 14.04 पायथन 2.7 Django 1.7 (वर्चुअलएनिव के अंदर) ग्रहण केप्लर SR2 (बिल्ड आईडी 20140224-0627) PyDev 3.8.0.201409251235 मेरे पास एक मॉडल में निम्न है: से django.db आयात मॉडल से django.contrib.gis.measure आयात दूरी ... कक्षा MyModel (मॉडल मॉडेल): ... दूरी = मॉडल। विदेशी (दूरी) ... यह मॉडल / home / user / workspace / DjangoProject / MyApp / models / mymodel.py । मॉडल फ़ोल्डर में, मेरे पास एक __ init __.py जो आयात MyModel : से MyApp.models MyModel आयात करें जब मैं सर्वर ( python manage.py runerver ) को चलाने की कोशिश करता हूं या मॉडल को डेटाबेस में सिंक करता हूँ ( python प्रबंधन। Py syncdb ), मुझे निम्न त्रुटि मिलती है: असरमेंट त्रुटि: विदेशी की (& lt; class 'django.contrib.gis.measure.Distance' & gt;) अमान्य है। विदेशी कुमार के लिए पहला पैरामीटर या तो मॉडल होना चाहिए, मॉडल का नाम होना चाहिए या स्ट्रिंग यू'एसएफ़ ' मैंने चेक किया है django / contrib / gis / measure.py और अंदर दूरी मॉडल एक मा...

Web application Javascript to process the stream of information from iOS device camera (NOT an APP!) -

I'm looking to scan barcodes from iOS devices (most likely using Safari / HTML) I know Was it possible that it is possible to recognize the script barcode as long as possible to stream content from the camera. I know that there are scripts (I have seen JSFDD) which helps capture and upload pictures but I do not want to upload images. What I want to do, is to use the camera in my webpage to scan the bar code. I I want to know that this is also possible? (I searched and did not find a website that does this, so doubt). It seems that I had clarified my question and was not expecting that she is not a duplicate (I also tried to find out this question :(] If you do not want to upload images, you need a scan logic in JavaScript. Try and see that it works:

javascript - Can't leverage working jsfiddle to work -

I am new to jsfiddle I am trying to take advantage of functionality from jsfiddle: The piece is as follows: $ ('# myTab a'). Click (function (e) {If ($ (this) .Parent ('li'). Haclus ('active')) {$ ($ (this) .attr ('href')) .hide ();} Else {e.preventDefault (); $ (this). Tab ('show');}}); However, when I try to use it in the normal HTML folder, only my HTML content works if someone changes external resources, javascript between right tags, and onload The event that is being called at the right place in JSFDial, it can really be useful !! Thank you! In addition to the adjustments given by user3558931 and as you mentioned in your comment that you want to know How to include external resources - To include JS- and CSS-files, add the following to your HTML: & lt; Script src = "// ajax.googleapis.com/ajax/ libs / jQuery / 1.8.3 / jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text...

programming languages - Differentiate between atom and list in SML -

I'm new to SML programming and I have a problem creating a function to delete an Atom A in the list. . This list can be nested at any level, it means that we can make lists like [1,2,3] and we have a list such as [[1,2], [2,3]] and Also [[[1] list, 2], [1,2]], [[2,3], [2,3]]. So my problem is how can I check that the given item is a list or an atom as I have no such function in SMLNJ till date? I have created a function that checks whether the list is empty or not, and then it calls for auxiliary assistant to check whether the main list is a list or an atom or not. If it is an atom then replace it with another atom and continue with the rest of the tail. If I see that the tail of the tail list is empty inside the assistant check, then it gives an error as the tail function can only be a list. I want to do it like tl ([hd (a)) , and if I do this, it will always be empty. If I apply it to the first list, I get the head as 1 and wrap it in [] [1], so its tail will be []. In...

javascript - stop() function stops other controling parameters -

I have a complex imagemap with many mapped areas on the I mouseover or click I can add these imagemaps to other images I want to overlay, with the same size and they will be in the same position. So far, so good. By doing this, I have a .fadeIn () and . FadeOut () added on my mouseover or click. General Problem - Weight of the Online Solution Faden () Flickr / Blinks I have found this solution here because I have added the .stop () (I have animate ( ) Solution, or better, how it has not been implemented, does not understand it). But now, I can not control the time of my .fadeIn () and .fadeOut () Also, only .mouseenter () works, but .click () no. Apart from this, everything works fine image overlay, fade in images are in the right place ... it's just fade that does not work. Below a quote of my code. & lt; Top & gt; & Lt; Script & gt; // Upload images verde = new image (698, 360) verde.src = "imagenes_png / verde_mouse.png"; A...

c - Address Of (&) To Get Value From Symbol Table -

Text after "itemprop =" text "> I have a question about how the symbols are placed in the symbol table and then how you reference those symbols from within C is. So suppose I have a startup assembly file where some of the main things are done before main calling (). One of the exchanges is a pair of symbols that define the heap. St_Length EQU 0x00000400 area stack, NOINIT, READWRITE, align = 3 Export St_Length Export ra_Stack ra_Stack Space St_Length Then in a source.c file in which I I want to refer to those symbols to me: extern uint32_t St_Length; Exported from / * asm.s * / void func (zero) {uint32_t i; (I = 0; I & lt; (uint32_t) (& amp; St_Length); ++ i) Do something for \\} To work correctly, That is, it seems that the display will loop 0x400 times my question is the reason why I use Ampersand to think I like it, not value symbol, not Let's know the symbol should get to do? Note: This is an ARM Cortex-M3 thank you for helping t...

css - iOS webview apps doesn't seem to respect orientation:landscape media queries -

Creating original CSS / html / js webapp and packaging it in Android / iOS webapp. During development it has worked flawlessly on my Android and shrinks under the crazy size of Chrome in the mobile emulator, which you can imagine, so I thought that my media queries were just fine. I do not have access to the iOS device to test with, but I thought the Chrome emulator would be at least adequate to write CSS. Only now I am able to test it on the real iPhone and iPad and it is not exactly looking right. It appears that this is completely ignoring my media queries which use orientation: landscape and Google is not helping a lot in finding answers. Is this scenario a way to use questions, or do I have to get more specific ways to target each device with my questions? The media I'm using here is pixel values, not according to the device size, but according to the app, the app starts to look weird. Small phone * / @ Media (Orientation: Portrait) and (max-width: 319px) {} / * Old ...

parse.com - parse background job each() does not go through all records? -

I wrote that a cloud job to include a user's first name and lowercase version of the last name in the user object When I did this work on Dev Pars App which was like 40 users, then she did a great job. When I ran this app on my production though it did not update all of my records, I have a few thousand users at the moment and I am hoping to take care of this cloud job for all of them. Here's the explanation: "Parse.Query objects allow you to do this on every new method, even if you have in the archive Thousands of objects or more, then they are I will give everyone an opportunity to modify them to fit them. " Then my question is, why would this work leave more than half of my database gives? It only works on a bunch of users, maybe a few hundred How can I affect my entire data in the User table in this function? Parse.Cloud job ("migration 1", function (request, status) {// set to modify user data Parse.Cloud.useMasterKey (); // All use...

oracle - SQL IN Clause 1000 item limit -

Is it possible to put more than 1000 items in this section of SQL? We are having problems with our Oracle database which can not handle it. If yes, how do we enter more than 1000 items in this section of SQL? If not, what can I do? You should change these segments to the Inner Join Clauses. You can change this one kind of query SELECT foo bar from WHERE bar.stuff IN (from asdf to SELECT stuff) Similar to each other in the form of this query SELECT b.foo (choose accessories separately from ADF) A JOIN bar B on B.STF = ASTOFF You will benefit a lot of the display

python - heroku - get app IP to whitelist queries -

I pushed my first app into Heroko and everything looks good except for a problem w / MySQL. I am pushing / removing a remote server that asks me to whitelist specific IP addresses. Any ideas on the best way to get it? Thank you The only way I received the IP Try: Try: Excluding the app: Except the exception, e: print e and then myoku log - Check the server log using -tel . It shows that the IP I was using was DB

ruby on rails - Paginate link with hash parameter with kaminari -

I am using the Camiri to endorse the results in my view. Url / tracks and I use this code to score on this page: & lt;% = paginate @ tracks% & gt; The problem is that the paged content is within the bootstrap tab, when the user accesses the link with the hash parameter, the wizard is activated: What is the paging link in the form of something like this: / tracks> page = X # items / P> So what tab is automatically enabled when the user clicks on the page link? You can add anchor to the paging link like this: & Lt;% = Paginate @ track, Parameters => {: Anchor = & gt; 'Items'}%>

javascript - How to disable future month and year in monthpicker -

I am using the month picker, I want to prevent users from choosing future months and years. How can I achieve that ? I tried $ ("# month"). Monthpicker ({dateFormat: 'M-yy', autoSize: true, changeYear: true, changeMonth: true, showButtonPanel: true, maxDate: new date (.) GetMonth ()}); But with this I can only restrict the future year, I can still choose the future month. Any help would be appreciated. By default, the year limit starts 10 years ago and ends in 10 years }; $ ('#custom_widget') monthpicker (option). You can try this it is working for me. $ ('# my_widget'). Monthpicker ('disable', [1, 2, 11, 12]); $ ('# My_widget') Month picture ('disabled demand', []); // re-enables all months from context:

While uploading image using php function move_uploaded_file() its working locally bt have error "open_basedir restriction in effect." -

I have written this php code to upload the server to upload an image from any remote computer if ((($ $ _FILES ["file"] ["type"] == "picture / gif") ($ _FILES ["file"] ["type"] == " Image / JPEG ") ($ _FILES [" file "] [" type "] ==" image / jpg ") ($ _FILES [" file "] [" type "] ==" picture / pjepag " )) & Amp; amp; $ _FILES ["file"] ["size"] Can you try changing your upload folder to: move_uploaded_file ($ _ files ['file'] ['tmp_name'], ".//".$ file name upload);

html - Add margin to inline-block element independently -

I want to apply a number of space before an element in an unordered list. Here is the URL:. I try to centralize the picture of the dog with the logo in the middle of the other list elements. But there is uneven space among elements "Recent works" and "About us". My markup is: & lt; Div id = "navbar" class = "navbar navbar-inverse navbar-fixed-top" & gt; & Lt; Div class = "navbar-inner" & gt; & Lt; Div class = "container" & gt; & Lt; A class = "btn btn-nebahar" data-toggle = "collapse" data-target = ". -Nav-collapse" & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; H1 & gt; & Lt; A class = "brand" id = "cf...

ruby on rails - Carrierwave not saving the file on disk -

Everyone please help me with carrier service and train 4. Model: class media items & lt; ActiveRecord :: Base mount_uploader: media_item, MediaItemUploader end schema: create_table "media_items", force: true do | T | T.string "file" t.text "description", default: "", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: wrong end Uploader: Class Media ItemMaplayer & lt; Career carrier :: Uploader :: Base Def store_dir "public /" and Controller: Class MediaTime Controller & lt; ApplicationController def can be created @ mediaItem = MediaItem.net (media_item_params) response_to do format | If @media_item. Save format.html {redirect_to @media_item, notice: 'Media item was created successfully.' } And format.html {render: new} end and end form: = form_for, for media_item: html = & gt; {: Multipurpose = & gt; True} what? F | .field = f....