Posts

Showing posts from May, 2013

ember.js - Filtering RecordArray in a child route to return a RecordArray? -

A model is trying to change my thoughts while changing the property. Im not sure if I'm on the right track or not , But goes here. I have a basic resource named Lunch, which looks like this: Model: Params {return.store.filter ('lunch', params, This.funcAll); } And I have a child service 'service' whose path looks like this: Model: functions (return) {return.modelFor (' Lunch'). FilterProperty ('isServed', is true); As opposed to // as.store.filter ('noon'), when I use filters in child channels, I am able to do this ((Lunch), this.funcFilter ()}} I think because one filter gives a recordArrrr), but it does not work for me for another reason, can anyone be anyway, that I can return my child's track record record Which is a subset of the original model? Works on the Filters collection. App.ColorsRoute = Ember.Route.extend ({Model: function () {this.store.find ('color'); this return.store.filter ('color...

android - One line toasting error in java Incompatible types -

When I want to toast a line in Java, I get this error message: JavaTester.java:34: Incompatible types were found: Zero Required: android.widget.Toast Toast newToast = toast.makeText (this is "It's a liner", Toast. LNNHT_LOG). Show (); 1 error Has anybody found out what can I do to fix this error? You do not have to declare the toast object toast. Maketext (this is, "This is a liner", Toast. LNNGH_LOG). Show (); You have toast shown or if you need to customize your toast, call the 'show' Â ' Toast newstost = Toast. Make text (this is, "it's a liner", toast.lnnhH_LOG); // Content here newToast.show ();

Delete Specific rows in Excel -

I want to check all the rows in a sheet for the loop which I have and this code should be enabled If they contain a specific content in certain columns (i.e. if the "June" line in column Kashmir is removed for removal), is there any way to code this? * Edit Find the code to work in a column's criteria, but now let me know It is necessary to search and delete rows based on data in two columns, that is, if the data in the column matches the AJ1 (already exists) and the data in column J is equal to A1, then these rows . The code I got is: Delete sub () sheet ("sheet 1"). (": Kashmir K ") set rFind range dim strSearch string as slow iLookAt (" AJ1 ") as long as dim bMatchCase boolean strSearch = range iLookAt = xlWho Le bMatchCase = false set = rDelete = nothing with Application.ScreenUpdating Sheet1.Columns = as false = Find (strings search, Lookin: = XLVivalues, Look at: = ArchuAtt, ArchDirection: = xlPrevious, MatchCase: = bMatchC...

ios - No known class method for selector 'generatorWithWorld:' -

I am trying to create a platform game on exode and this is my first project and I have come to this error and It says, "There is no known class method generator for the selector Worldworld:" "And I'm getting the error" Visible @ Interferfer Selector for 'HSWorld Generator' declares 'populate' " This code is MyScene.h: // // Colin the Adventure of Sloth // // Copyright (c) 2014 Snrskorp All rights reserved. // ** # import & lt; SpriteKit / SpriteKit.h> #import "HSWorldGenerator.h" ** @Missen @ Interfaces: SKen @ and MySenseM.M: // // MyScene.m / // The Adventure of Colin The Sloth // // Created on 24/07/2014 // Copyright (C) 2014 SunnersCorp All Rights Reserved by Harpreet Sannar. // #import "MyScene.h" #import "HSSloth.h" @ MySen () @ Property BOOL has been started; @ Property is playing on BOOL; @end @ Implementation MySensen {HSLoth * Dull; Escond * World; HSWorld Generator * Generator; }...

Android Screen On And Off Make Which Method is called -

Which is called method when the Android screen is closed and at . When the Android screen closes at paus and etc. and when the Android phone calls on to resume and etc. then I want to know Piece in activity or in particular for the screen and there is no special method for the closed purpose. onpause by onStop , which is invisible on onResume on / P> The best way to find out the screen is the event "android.intent.action.ACTION_SCREEN_ON" and "Android.intent.action ACTION_SCREEN_OFF " The code must be registered for a broadcast receiver.

sql server 2005 - Horizontal Count SQL -

I'm sorry if this is a duplicate question, but I could not find my answer. I am trying to get a calculation of how to take horizontal figures, and how often a specific number appears. Example table + ------- + ------- + ------- + ------- + | Empid | KPI_A | KPIB | KPIAC | + ------- + ------- + ------- + ------- + | 232 | 1 | 3 | 3 | | 112 | 2 | 3 | 2 | | 143 | 3 | 1 | 1 | + ------- + ------- + ------- + ------- + I need to see the following : + ------- + -------------- + -------------- + -------------- + | EmpID | (Score of 1). (Score of 2). (Score of 3). + ------- + -------------- + -------------- + ----------- --- + | 232 | 1 | 0 | 2 | | 112 | 0 | 2 | 1 | | 143 | 2 | 0 | 1 | + ------- + -------------- + -------------- + ----------- --- + I hope that makes sense. Any help would be appreciated. Since you are counting the data in multiple columns, it can be easy to be impossible before Calculate your KPI column, then the score You can apply the UNPIVOT f...

ember.js - Ember-Data: Adding Server Queries to AJAX Requests -

I am having problems in a specific case using amber-data. Usually follow Amber a model class, route, ajax request, and return JSON, a similar pattern. The RESTAdapter tries to automatically create a URL to send to the server, which is fine for some situations, but I need full control over some of my request URLs, especially when adding additional parameters Or an API comes to match a path that has a completely different URL structure. Sadly, Amber, there is no guide for it, I got to know something about I know what happens under the hood, but I have some To correct the use cases, do not want to break amber data. API / Rest Models and resources that I want to populate are View-debtors access to specific services For debtor / list I get page numbering = 10 & amp; Page_number = 1 must pass an additional parameter, for example. I am completely lost how to do it. I can not change the API structure ... there are many services based on them. Some small prog...

java - Removing Duplicates Inside Insertion Sort -

Image
मैं मूल रूप से निम्न समस्या से निपट रहा हूँ जहां मैं सम्मिलित सॉर्ट बदलने की कोशिश कर रहा हूं ताकि यह काउंटरों को डुप्लिकेट भी हटा सके। निम्नलिखित प्रविष्टि प्रकार है। सार्वजनिक शून्य सम्मिलित करेंटार्ट () {for (int i = 1; i & lt; nElems; i ++) {int temp = a [i]; Int j = i; जबकि (j & gt; 0 & amp; amp; amp; और amp; temp & lt; = a [j - 1]) {a [j] = एक [j - 1]; j--; } एक [जे] = अस्थायी; }} मुझे यकीन है कि अगर मैं दृष्टिकोण को सही ढंग से समझा, यदि मैं इसे सही ढंग से समझता हूं (कृपया मुझे बताएं कि क्या मैं ग़लत हूं या नहीं) दृष्टिकोण से पता चलता है कि मुझे अंदरूनी लूप शुरू होने से पहले पूरी सरणी के माध्यम से दोहराया जाना चाहिए और कोई भी मनमाना संख्या जैसे -1 और फिर जब अंदरूनी लूप शुरू होता है तो यह सरणी को सुलझाएगा और सभी डुप्लिकेट को एक साथ शुरुआत में खड़ी कर दिया जाएगा। यदि यह मामला है तो मैं हर तत्व को सरणी में तुलना कर सकता हूँ सम्मिलन प्रकार शुरू होने से पहले एक दूसरे का अधिकार शुरू होता है और किसी भी डुप्लिकेट को लेबल करता है - 1 और उसके बाद सम्मिलन प्रक...

python - pyparsing: when ignoring comments, parseAll=True does not throw a ParseException -

मैंने पाइपेर्सिंग में एक अजीब साइड इफेक्ट देखा: जब एक सुपरसेट पर। एक पार्सर का, parseString (..., parseAll = True) टिप्पणी चिन्ह पर पूरे स्ट्रिंग की जांच करना बंद हो जाता है। नीचे दिए गए कोड द्वारा बेहतर समझाया गया। मैं स्ट्रिंगएंड का उपयोग किए बिना कैसे ठीक कर सकता हूं? उदाहरण: डीईफ़ टेस्ट (): आयात के रूप में पीपर्सिंग unquoted_exclude = "\\\" "+" ': / | & lt; & gt;; # " Unquoted_chars = '' .जोइंड (सेट (पी .प्रिन्टबल्स) - सेट (अनक्ॉटेड_एक्सअलिएइ)) अनक्ॉटेडकी = पी। वर्ड (अनक्ॉटेड_चर्स) अधिक = पी। ओनऑरोर (अन्वोटेडकी) अधिक.इग्नेर ("#" + पी .स्टोफ़लाइन) # ^ ^ "अधिक" टिप्पणियों की अनदेखी करनी चाहिए, लेकिन "अनक्ॉटेडकी" !! डीईएफ़ पार्स (पार्सर, इनपुट_, पार्स = सभी = ट्रू): कोशिश करें: प्रिंट इनपुट_ प्रिंट पार्सर.पर्सेस्ट्रेस (इनपुट_, पार्स एल) .एसएलआईएस () अपवाद को छोड़कर त्रुटि के रूप में: पार्स (अनक्ॉटिडकी, "एबीसी # डी") पार्स (अनक्ॉटिडकी, "एबीसी | डी") withstringend = unquotedkey + ...

asp.net mvc - How to set Cache-Control header for external js -

PageSpeed ​​has suggested that I add cache-control headers to some external JS (from AdSense). How can I do this for an ASP.NET website? I did it by adding web.config to the JS folder for local resources. The only way a local copy of the script will be near you will be some programs (perhaps global. Asax 's BeginRequest method) that will refresh a local copy in a while.

javascript - what does new Function()() mean? -

I saw this code while working on a project and I'm not sure what it actually does. Someone reads me please thanks. var f = new function ('return' + conditions) ($ element); Return F ($ element); New function () () I look like an instant-incompatible function expression, and if this happens then it would be correct with the 'return' terms' expression? Then why is the function called F in the return statement? Updates: There is an array in words in which there is only one element 'required', $ element is a jQuery object of an HTML element Never execute code New message with past message () is not defined Uncaught ReferenceError: Required is not defined therefore new function () () () Function requirement () is implemented. I've never seen new function () () syntax If it is an IEEE then it should not be written as (new function () {}) () ? Yes, you are right that this is an unblocked function - you can do it yourself Can ...

javascript - Canvas Working Fine In All Browsers Except Chrome -

I get a hvs js script which takes an image and pulls it into the canvas code works perfectly in all the browsers except chrome I have included the relevant this.tile = document.createElement ('canvas'); Var ctx = this.tile.getContext ("2D"); This.tile.width = ((size.cm_size) * (((this.image.width) / this.app.dpi.active) * 2.54)). Tofix (2); This.tile.height = ((size.cm_size) * (((this.image.height) / this.app.dpi.active) * 2.54)). Tofix (2); If this (this.scale> gt; 0) {// breaks it into 2 lines chrome, this.tile.width = this.tile.width * this.scale; This.tile.height = this.tile.height * this.scale; } Ctx.drawImage (this.image, 0, 0, this.image.width, this.image.height, 0, 0, this.image.width, this.image.height); I have commented on those 2 lines that break things in chrome, by removing these lines things work out. With these lines in place, as long as I do not increase the 'this.app.dpi.active' variable to 350 (it starts at 150). As soon as thi...

Aviary integration with Android Studio: Could not find com.aviary.android.feather.sdk:aviary-sdk:3.4.3.350 -

I'm trying to add aviary through Maven via Android Studio but I get this error: Error: There was a problem configuring the project: all dependencies for the 'myproj' configuration could not be resolved: 'myproj: _devDebugCompile' Com.aviary.android.feather.sdk: Aviary-sdk: 3.4.3.350 could not be found. Required by: myproj: myproj: unspecified & gt; Myproj.libraries: mylib: unspecified A group of conflicting libraries was something out My configuration looked like this: compile ('com.aviary.android.feather.sdk: aviary-sdk: 3.4.3.350') {Exclude module: Exclude the 'hlistview' module: Exclude the 'Support-4W' module: 'Commons-IO'} You can enter ./ gradlew -q dependency in your App Module directory Run out of knowing To see Ali libraries and exclude all those libraries that conflict with you.

javascript - aMy jquery script does not work in ie 8, how to get around it? -

I'm trying to run a script in 8, but that does not work. The script works as follows: I load the result of the div with $ post . yearSOMEYEAR in each device, for example, year 2012 , year 2013 , ... I want to split these pages into my page which takes the numeric part SOMEYEAR to yearSOMEYEAR account. For this I have some pages to call classify () to the id gb_hidden_YEAR .. classification. I Is as follows: for (i = 1; i The function is classified below: function classified (seminar) {$ mydiv = $ (Seminar); Var year = $ mydiv.attr ("square"). Replace (/ [a-z] + /, ''); $ ("# Gb_hidden _" + year) .append (seminar); } It shoud me what I really want. It works fine with Chrome or Firefox, though it is not with 8? After trying to solve the problem all day, I finally found out what was wrong . That was a suitable description in my php code. I pass from php to jquery with a span class from variable yearSO...

ruby - Incorrect dates in Chartkick -

चार्टकिंक मणि डेटा इनपुट के एक दिन पीछे मूल्य रख रहा है। {मंगल, 15 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 1, बुध, 16 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 0, गुरु, 17 जुलाई 2014 00:00:00 यूटीसी +00 : 00 = & gt; 0, शुक्र, 18 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 0, शनि, 1 9 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 0, सूर्य, 20 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 0, सोम, 21 जुलाई 2014 00:00:00 यूटीसी +00: 00 = & gt; 5} पहला लाइन चार्ट पर बिंदु को 14 वें और अंतिम 20 वीं के रूप में चिह्नित किया गया है ?? मैंने सिस्टम पर तिथि की जांच की है और यह सुनिश्चित करने के लिए कि मैं सही डेटा भेज रहा हूं और यह सब सही लग रहा है। उपरोक्त डेटा सेट पृष्ठ पर html से सीधे होता है। मेरे क्षेत्र_चार्ट के साथ मुझे यही समस्या थी , और @ सिसिबल उत्तर से लिंक का अनुसरण किया। लेकिन आउटपुट को देखने के लिए यूटसी से मिलान करने के लिए मुझे असतत पारित नहीं करना पड़ता था: सच है। मैंने सिर्फ ग्रेटडेट मणि के फॉर्मेट वैरिएबल के साथ काम किया है: 'सुंद...

java - How to I package my database in with my app? -

Image
I have a SQLite database which is essential in my application. When I run it in an emulator on my PC then it flawlessly Works when I run it on my phone then it crashes because this method is empty because it can not connect to the database. this is where I Have prepared their database in preparation. I am unsure of how I want to package it with my application. Here's my database handler. Java: package com. Examples. my application; Import android.accounts.Account; Import android.database.DatabaseUtils; Import android.content.ContentValues; Import android.content.Context; Import android.database.Cursor; Import android.database.sqlite.SQLiteDatabase; Import android.database.sqlite.SQLiteOpenHelper; Import android.net.Uri; Static android.database.DatabaseUtils.dumpCursorToString import; / ** * Broadband created by Brad / * 19/07/2014 * / Public Class Databasendler Extended SQLiteOpenHelper {Personal Static Final End DATABASE_VERSION = 1; Private static last string DATABA...

r - Assign value to a column from another column based on condition -

Say I have a list like this: & gt; Desired & lt; - c ("10001", "10004") and such a sample data frame: & gt; , 10020), CBSA = c (Representative ("New York", 20): -; desired_sample_df & lt data.frame (ground = representative ("other", 30), zip = c (delegate (10001: 10010, 2) , 10011 Representative ("CA", 10))) & gt; desired_sample_df Geo zip CBSA 1 other 10001 New York 2 Other 10002 New York 3 Other 10003 New York 4 Other 10004 New York 5 Other 10005 New York 6 Other 10006 New York 7 Other 10007 New York 8 Other 10008 New York 9 Other 10009 New York 10 Other 10010 New York 11 Other 10001 New York 12 Other 10002 New York 13 Other 10003 New York A 14 Other 10004 New York 15 Other 10005 New York 16 Other 10006 New York 17 Other 10007 New York 18 Other 10008 New York 19 Other 10009 New York 20 Other 10010 New York 21 Other 10011 CA 22 Other 10012 CA 23 Other 10013 CA 24 Other 10014 CA 25 Other 10015 CA 26 Othe...

scala - Is there any way to abstrat enums ValueSet? -

I am using Scala 2.11, I have the following enums: objects Value "value" ("work") value = "value" ("female") value = "value" ("female") object object ("female") object emailType calculation Expand {val personal = value ("personal") other ")} // object with this I .toString) Or EmailType.values.toList.map (_to toString) I would like to have the same v Like to open the file def enumToString (value: type here & gt;): list [string] = values. [_ ToString] I like the type of enums val v1: gender.valueset = gender.values ​​val v2: EmailType.ValueSet = EmailType.values ​​ I do not see how this kind of essence has been shown above to create common types of normal tasks. Is there any abstraction for this? If you do values ​​ then this will work: def enumToString (value: traversal [count # value]): list [string] = values ​​.to_list.map (_toString) scala & gt; = l...

sql - Group by and exclude minimum and maximum from results -

itemprop = "text"> I do not have statistics similar to the following: Date ID amount 10 June 14 978500302 163005350 17 June 14 978500302 159,947,117 24-Jun 14 978500302 159142342 1-Jul-14 978500302 159,623,201 8-Jul-14 978500302 143,066,033 14-Jul-14 978500302 1458522727 15-Jul-14 978500302 148,595,751 Is there a way in Oracle that I can not get an average of this data, which does not include the highest and lowest value? I can get the overall average by grouping a based on ID, and then AVG (amount) . But how can I do this while leaving the minimum and maximum? After the The easiest way to use analytical functions is by using the minimum and maximum values First gets:. Select ID, average (zodiac) from (selection d *, min (amount) (division by id), as minima, max (amount) data as maxa (id Split by) D) D where zodiac & gt; Mena and Zodiac

html - jquery find next class in a list -

I know that this question has been asked for some time but none of the replies works, or less At least I've got it anyway. After checking the input from the form input, I have to select the error class from the list item. What do I have here: html: & lt; Ul & gt; & Lt; Li class = "label" & gt; & Lt; Label & gt; Label & lt; / Label & gt; & Lt; / Li & gt; & Lt; Li class = "input" & gt; & Lt; Input name = "fname" type = "text" /> & lt; / Li & gt; & Lt; Li class = "icon" & gt; & Lt; / Li & gt; & Lt; Li class = "clearfix" & gt; & Lt; / Li & gt; & Lt; Li class = "error" & gt; & Lt; / Li & gt; & Lt; Li class = "label" & gt; & Lt; Label & gt; Label & lt; / Label & gt; & Lt; / Li & gt; & Lt; Li class = "input" & gt; & Lt; Input name = ...

javascript - Are most http requests synchronous by default? -

By default, there are most functions for synchronous requests? I have come from Javascript and AJAX and I started working with http requests in Python. My surprise is that, by default, the http request work is synchronous, so I do not have to deal with any asynchronous behavior. For example, I'm working with the http library, and although docs does not explicitly say whether the http requests are synchronous, my own trial seems to call synchronous calls. So is it that most HP requests are in default by default synchronous, or are most of the functions designed in this way? And my first experience with http requests (JS AJX) just happened to an asynchronous nature? This is the language, most APIs in Python are synchronous by default and the async version is usually an "advanced" "Topics If you were using nodes, they would be async; Due to the use of JavaScript, Ajax asynchronous reason is due to the browser's nature.

Spotify memory leak? -

So, I'm using undocumented JSON API. I have a program that downloads this JSON object and it destlicates every 0.2 seconds: http: // localhost: 4300 / remote / status. Json & oauth = * othe token * & amp; Csrf = * cfid * When I run the program, Spotfum consumes more and more memory. I was wondering if any other person using this API has the same issues Are you can not confirm it My example for local SpotifyAPI-application Usage, memory usage will not increase over time (I'm inquiring all 50ms)

javascript - How to access data in JSON response recieved from JQuery? -

इस सवाल का पहले से ही एक उत्तर है: 16 उत्तर मैं डेटा कैसे प्राप्त करूं एक JQuery AJAX अनुरोध के पूरा समारोह में वापस आ गया है कि JSON में संग्रहीत। उदाहरण के लिए, मेरे पास निम्न कोड है: $। Ajax ({url: 'buildings.php', डेटा: "भवन =" + भवन, पूरा: फ़ंक्शन (प्रतिक्रिया) {चेतावनी ( प्रतिक्रिया। प्रतिक्रिया पाठ); चेतावनी (response.name);}}); पहले चेतावनी में यह निम्नलिखित प्रदर्शित करता है, जो कि जेएसएएन डेटा है जिसे मैंने PHP से भेजा है। {"name": "hsb" "" "Description", "directionsURL": "directionsURL", "imageArray": {"1": "URL 1", "2": "URL 2"}} अपरिभाषित प्रदर्शित करता है मैं पहले चेतावनी में प्रदर्शित होने वाले डेटा को कैसे प्राप्त करूं? यदि आप डेटा प्रकार जोड़ते हैं: "json" कॉल करने के लिए प्रतिक्रिया को एक जेसन ऑब्जेक्ट बनाया जाएगा: $। Ajax ({url: 'buildings.php', डेटा: "बिल्डिंग =" + बिल्ड...

metaprogramming - Dynamically creating accessors in Ruby module -

I have a config module in Ruby which I want to be able to add to the arbitrary variable. I made it as follows using method_missing and example_variable_set: module Conf # configure Sir DRF self.method_missing (M * Arges) methods arbitrarily args = args.pop = Args.length = = 1 instance_variable_set ("@ # {m}", args) and end However, I have trouble creating dynamically the accessers when I use attr_accessor as follows I am: module config # configured Sir DRF self.method_missing (m, * args) args = args.pop If arbitrary methods are found in args.length == 1 I get the following: Conf: "# # {m}" ("@ # {m} "Arges) Modul_avl (" attr_accessor: # {m} ") end end : S3_key ( '1234ABC') #Conf :: s3_key = nil and if I make separate Aksesrs I try: module con # # def self.method_missing (m, * args) args = args.pop if args.length == 1 example_v_y_set ("@ # {m}" , Args) module_evale ("def self. # {M}; @ # {M}; End "...

objective c - Ask for Permission for Local Notifications in iOS 8, but still have the App Support iOS 7 -

I have an app that uses local notifications Everything works fine in iOS 7, but in iOS 8 The app needs to ask for permission of the user to display the information I am using to ask for permission in iOS 8: - (bool) Application: (UIApplication *) Application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {[application registerUserNotificationSettings: [UIUserNotificationSettings settingsForTypes: UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories: zero]]; } It works fine in Xcode 6 and iOS 8. When I open the same project in Xcode 5, the error is a semantic issue. Use the undisclosed identifier 'UIUserNotificationSettings'. " I will call the app for iOS 7 & amp; 8, and notifications work properly on both versions makes some assumptions in the following answer: / P> The application should build properly with a base SDK of iOS 8 when using Xcode 6 and it will build properly with a base SD...

Instagram api: how to get photos containing like? -

In my application, I enter a username and receive its photo. (To get the photo, I use: = ...) The request returns only 20 photos, How to get all the photos user? I want to take pictures of this user in which he likes how it can be done? Do I have an idea of ​​finding all the pictures that the user has and his picture is his choice? But I only get the figures of four members who gave it, although the photo has 50 likes. (See screenshot below). Why so ? This is a two step process: 1) The latest media published by a user To obtain, request a GET for / users / user-id / media / recent inorder. 2) Then get another request for a list of users who like this media / media / media-id / likes. At this point you can record all the media-ids in which the specific person has the choice you want. Here is an API for instagram users: There is an API for instagram choice: I'm sorry to get the whole history but I am not clear how he knows about doing anything more than what...

javascript - Create a reusable modal using JQuery -

I'm writing IF-ELSEIF-ELSE statement work in the loop in the work below, though I avoid writing too many Want to mesmerize Instead, when I click the image icon (basically an info image), then I'm looking for a JQuery model to pop up. I want to be able to pass this error in the function, which will then display in the modal. Example: Say that I have 400 errors and 500 errors, when I click on the notification icon, the definition should be visible. Code below: index.gsp & lt; Html & gt; & Lt;% - Some codes (saving place for body) -%> & Lt; Body & gt; & Lt; Div id = "content" & gt; & Lt; Div id = "content-header" & gt; & Lt; H1 & gt; Error checking & lt; / H1> & Lt; / Div & gt; & Lt ;! - # content-header - & gt; & Lt; Div id = "content-container" & gt; & Lt; Div class = "portlet" & gt; & Lt; Div class = "portlet-content" & gt;...

Matlab transpose a table vector -

An embarrassing simple question seems to be, but how can I move a Matlab table vector? aTableT = aTable '; I tried a standard syntax for the simple interaction of a line vector to a line vector aTable : ATableT = reshape (aTable, 1, Height (aTable)); and aTableT = rot90 (aTable); According to the head, the last time table should work for table, see. However, I get this error code: Error type in using table / permit (line 396) Undefined function 'permute' for the input arguments. Error in rot 90 (line 29) b = magnitude (b, [2 1 3: ndims (a)]); NB: fliplr is not useful either pretty sure I have covered clear angles - any ideas? Thanks! Try changing your table into an array, move it, then back to a table In other words, try doing this: aTableArray = table2array (aTable); ATableT = array 2table (aTableArray. '); I have also read the document for rot90 , and it says that rot90 is definitely working for tables Do, and I find you...

android - Alarm Manager showing abnormality -

I have installed an alarm manager that will show notifications after 10 seconds after the app is destroyed. But it is not working. Here's my code OnDestroy (): @Override public void OnDestroy () {super.onDestroy (); MyIntent = new intent (this, alarm manager class); Pending pending vertical aliens = pending. Gatebodestext (this, 0, my intent, 0); AlarmManager AlarmManager = (AlarmManager) getSystemService (ALARM_SERVICE); //alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis (pending, Pending); AlarmManager.Settering (Alarm Manager. RTC_wekup, 10 * 1000, 10 * 1000, Pending Instant); AlarmManager.cancel (pendingIntent); } and here is alarmManager.class: public class alarmManager extends BroadcastReceiver {@Override public void onReceive (REFERENCES , Intent to intent) {intent to serve 1 = new intent (context, notification class); Context.startService (Service1); }} and here is Notification.class: public class extends Service {@Override pub...

How to cache profile picture from Google plus in android -

I am trying to set up a Google Plus profile image. I am able to get the URL and use the image: The Private Class Expands LoadProfileImage AsyncTask; String, Zero, Bitmap & gt; {ImageView bmImage; Public LoadProfileImage (ImageView bmImage) {this.bmImage = bmImage; } Protected bitmap doInBackground (string ... url) {string urldisplay = urls [0]; Bitmap mIcon11 = faucet; {Try InputStream = New java.net.URL (urldisplay) .openstream (); MIcon11 = BitmapfitterNetExecutestream (in); } Hold (exception e) {Log.e ("error", E. megas ()); E.printStackTrace (); } Return Mean 11; } Zero (bitmap result) on secure expression {bmImage.setImageBitmap (results); }} But this does not work when there is no internet profile image always getting it from the specified URL The question is: Can I profile image cache How do i Or will I store it in shared favorites? Thank you! Div class = "post-text" itemprop = "text"> If there is no internet connection D...

Android Studio / Win8 / ERR_NAME_NOT_RESOLVED -

Use Android Studio on Windows 8 X64 (latest stainless build). I have a very simple project, but a webview has pointed to google.com but every time I launch the app in the emulator, I get ERR_NAME_NOT_RESOLVED. I have ensured that Internet permission is in the manifest, I tried to pass the NNS-server flag to indicate the emulator 127.0.0.1 as well as the IP for my router Nothing works, nothing works. I have slipped the web and have not found anything, which looks suspicious, it is a relatively simple thing that I expected to work properly from the box. Any thoughts? thank you in advanced! By disabling my NIC, I was able to get the emulator to use my WiFi connection.

javascript - Object with methods and own return -

I'm trying, without success, in other languages ​​to do this, the object of which can be a default return value But its methods are as follows: var o = {it: "MyReturn", sample string: "My string", MyMethod1: function () {}, MyMethod2: function () {},} Then, my output should be: & gt; O & lt; "Mayerten" & gt; O Sample string & lt; "My string" & gt; O.MyMethod1 () & lt; Function () {} Is this possible? (In a way that does not use prototype, or it will conflict with my code) It is not possible as you can cast a custom toString method and o in a string and the object will always be the same as o To function and call o like o () . Here are some options that can be turned off as javascript. Option 1: Creating OA Function Object and Calling It. var o = function () {Return "MyReturn"; }; O Sample string = "my string"; O.MyMethod1 = Action () {}; O.MyMethod2 = functi...

CSS: adjust box width with margins? -

I have a box whose width is variable because it depends on the size of the container There is no content in the box, Therefore it is using margins to define relatively width but it is not working. This is my code: .box {background: url ("back.jpg") No-repeat scrolls 0 / transparent cover; Border: 4px solid black; Box-Shadow: 0 0 5px # 826200; Profile: 3px solid white; Hidden flurry; }. Box: {content: ""; Border-top: 2px solid red; Margin: -20 px 0 7px -7px; Status: Completed; Width: Auto; } This is my baby Please note that the red border goes outside the box without the respect of the right margin, and if I set the width to auto If the red border is not displayed at all, is it possible to solve it using CSS only? Thank you. I looked at Bela and saw that the top red border was not visible. There was a line with padding: 0 100%; Removing that line fixes your problem. Did you want this final result? .box {background: url ("back .jpg...

java - nextLine() and next() giving blanks when naming object -

After using the next () to leave an additional line after a user entry, I am trying and next The line () is the name that the user is currently entering. My program is using a text based menu and this is the only way I have been able to make the menu flow smoothly (with the Do-All Loop and what you have but I retract) My problem is : While I know that the object I am trying to name is receiving data from my main method, it is not giving proper name, just giving it a blank character I know this Because this object's name changes, but it does not change the object correctly, it just gives it in one place (I give the name variable for the object "N / A" object in the constructor method). How can I deal with this problem now and in the future? Main method snippet string past; Selector = in.nextInt (); If (selector == 1) {System.out.print ("please enter last name:"); Next (); Last = in. NXtine (); Entry.setLast (last); Terminator = true; } object naming m...

loops - Looping through two arrays simultaneously -

What is the best way to loop and simultaneously output the value of 2 arrays? Here the value of two arrays refers to the key position of two other arrays, respectively, illustrated by the picture and description. Therefore, the integer values ​​of the loop these arrays should not be output, but the value assigned to the corresponding keys in the reference array. var imgindex = [0,1,3]; Var detailindex = [2,4,6]; $ (Imgindex) .each (function (i, o) {$ ("# line"). App ("& lt; img src = '" + images [o] + ".png' / & gt; & lt; Div & gt; "+ Details [O] +" );}); Call on an array and use the index to get the elements. $ (imgIndices) .each (function (index, elem) {$ ("# Row2-extension"). Attachments ("& lt; img src = '{$ base_dir_ssl} img / cms /" + images [[index] [index]] + ".png' /> here viv O Index [index] I will index Description array.

Ajax login and get data as json (OpenAM) -

I want to log in as a different user when I click on separate button through OpenMM and the results Show me voluntarily I try the OpenM Develop guide but I do not get any information. 3.3.1 Authentication & amp; Logout (This is called Weight Openem) ## The easiest username / password authentication gives a token that the cookie value for other tasks requiring application authentication Can present in In this case, use HTTP POST to prevent web containers from logging credentials. Pass the password into the user name in the x-openm-username header, and the x-openm-password header. $ $ curl \ - support post \ - header "x-open-user name: demo" \ - header "x-openm-password: change" \ header "Content-Type: App / Jason" \ --Data "{}" \ https: //openam.example .com: 8443 / OpenM / JSN / Certified {"ToonId": "AQIC5w ... NTcy *", " This "zero page login" mechanism only works for name / password authenticat...

TFS automated build setup for android application -

I am developing an Android application for TFS version control. Even automated builds need to be set up for the Android app on the TFS server. It would be great if someone could gilid me on this. This is a very big question, so I'm actually giving you a broad answer: Install Java SDK, Android SDK, and whatever you need to build your application on your build agent (agents). Create a custom build process template (or find an online) that can execute an AN or Maven script.

javascript - loading a specific slide in carousel in modal in bootstrap -

I have a list of thumbnails, while clicking on them on Bootstrap 3 page, I want to open a model that contains each Additional info for the thumbnail is the carousel. I think that when I click on the thumbnail, the window opens with a specific slide in opening. I am trying the following, but use the "data-target" to set the "Data-Slide-to" attribute goal of the "Data Toggle" and Carousel of both models, but this In the case, the targets are two different IDs ("#mymodal" and "#gallery" estimated). I can not have a "data-target" on the same HTML tag Is this a way to hack easily? Sorry, I'm not a god. This is the list of thumbnails: & lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "colonel-xs-6 call-sh-4 column-md-3" & gt; & Lt; IMG src = "http://placehold.it/150x75&text=item1" data-toggle = "modal"...

how can we call a http servlet from mule? -

I have a requirement in which I need to call servlet calls from mules flows. I got an answer from the following site But when I copy that cell into my flow, it shows some errors in the flow to call mules to servlet There is no other way or solution. I have sublet URL and username and password. I am using mule 3.5 any studio. Please help me complete this task Edit: (pasted with a comment from OP) & Lt; Object To String Transformer Doctor: name = "Object To String" / & gt; & Lt; Http: outbound-endpoint exchange-pattern = "request-response" user = "javauser" password = "javauser1" method = "GET" doctor: name = "HTTP" address = "servlet / customtask circle?" Connector-Ref = "HTTP_HTTPS" /> & Lt; / Flow & gt; You are copying the old radish 2 syntax in mule 3, so it can not be done Reference: EDIT: If you use the address If you use the attribute in the HTTP endpoint (t...

html - Not able to center Input elements in Div -

I have tried googling but with no help, most of them margin: auto And there are many questions on the stack overflow with the same problem, most of them have answers in the form of margins: Auto I am implementing the same solution which is not working for me HTML & lt; Div id = "content" class = "lcard" & gt; & Lt; Center & gt; & Lt; H1 class = "n" & gt; View your & lt; Br> Sign in to Crawler Account & lt; / H1> & Lt; Br> & Lt; Form onsubmit = "return validateForm ()" method = "post" & gt; & Lt; Center & gt; & Lt; Input name = "email" required type = "email" placeholder = "email" & gt; & Lt; Input name = "password" required type = "password" placeholder = "password" & gt; & Lt; Button type = "submit" square = "b" & gt; & Lt; B & gt; Sign in & lt; / B...

Can't create many-to-many object in django admin using django-mptt -

I can not create an object in the Django admin, this error raises: Value Error On / Admin / App / Category / Add / "& lt; Category: & gt;" Many-to-many relationships can be used from this before there should be value for the "to_category" field Request method: Request URL: http://127.0.0.1:8000/admin/app/category/ Add / Django version: 1.6.5 Exception type: valueAir exception value: "& lt; Category: & gt;" Many-to-many relationships can be used from this before there should be value for the "to_category" field exception space: /usr/local/lib/python2.7/dist-packages/django/db/models/ Fields / related.py __init__, line 524 python executable: / usr / bin / python Python Version: 2.7.6 I do not understand what is going wrong . Import the MDTT model from imported models from Mptt.models, tree MFTTafine class category (MPTT model): name = model.carfield (max_text = 255, default = u ''), engName = models.CharField (max_...

how to set up one launch configuration for each / many projects in Eclipse -

I am using Eclipse 2.02 Keppler Edition to develop my software projects. But now I got a small thing to solve ... At the moment we have many projects, each \ "workspace" running its own launch configuration stored on "projectname" is. Settings \ Each single long config is equal to the second, now I want to set only one configuration \ "workspace" .metadata.plugins ... is stored anywhere on , all my projects should use this central (default) longconfig. Is my plan possible? I do not think it is possible with box with eclipse. The only idea is, I have to write a small (shell) script that generates all the launch configurations from the central template.

c# - Word interop - hiding styles -

Image
I'm making a new style using Word Interop (in Word 2013). It works fine, but I want to hide the style from the user. Actually, I'm trying to do the same thing when you go to Styles dialog - & gt; Manage Style - & gt; Click the Recommended tab and hide button: Then, the style details look like this: font: (default) + headings (calibrary light), 12 pt, bold, before space: 6 pt, style: hidden , Priority: 100 on Base: Normal Low style: Normal Is this word possible using interop? I can change the style preference property (using the priority .NET interface property), but I can not add hidden assets. I tried to use the "reserved for internal use" hidden style, but he completely hides the style (even manage styles window), which is not me needed. visible and visibility property has no advantage. Any idea is highly appreciated. It seems that this is a previous asset, try setting the visibility = true.

android - What happens if two resources differ only in their extension in andorid? -

I have a little confusion, when I try to copy the same file in the Drawable folder in Android, The resource already exists with this name "which is absolutely correct then if an image is different Try copying with the compilation, but takes it along with the same filename but only 1 resource ID is generated in the RJJ file. what does this mean? What will the ID point to? This means that while compiling, it is only capable to create an ID from one of the available resources. Why can not it create both IDs, if it is allowed to have both resources in the same folder? Because for each resource, there is a fixed integer, named file name, except for extension , so naturally, there can not be more than one static integer in one file From the resource? I think that you can not be sure I just tried to recreate the scenario (out of curiosity) and I came to know that this was the resource I finally added! Still, what resources does this tell about, it is irrelevant because it wil...

c - Why do I get random garbage values in this simple program? -

I have to read some numbers from the terminal and print them later. However, they all look like any kind of random value. Why is not my input left correctly? int main (zero) {int i = 0, number [21], cont = 1, z = 0; ("\ N === Bien Windo === \ n"); ("\ N === Vimos is a processor and number 20 digit number [number] === \ n"); ("\ N === Dm Los number === \ n"); While (equal! = 20) {effluv (studin); Scan ("% d", and numbers [i]); Printf ("\ n === Dame Otto number number:% d === \ n", cont); Remaining part ++; } For (z = 0; z OK, some issues: numbers has been declared as an array of 21 ints, but you are using it as if it is numeros [20] Undefined behavior because you are calling stdin scans ("% d", and numeros [i]) , though unsafe , All is fine and dandy, but i never increases check the function's return value ... always: scanf returns the number of values ​​it scans, if it returns 0, then no ...

java - Why am i not getting initialize HttpServletRequest object in Struts2 Action? -

I am facing a problem with the struts2 framework I get the data of the axle file in the Action class from the HTML form Want to But I am able to find the HttpServletRequest object to get the inputstream of this request. I am also implementing the ServalCounterAvr interface in my action class of Straits 2. My code is being displayed in ............ import com.opensymphony.xwork2.Action; Import com.opensymphony.xwork2.ActionSupport; Import java.io.IOException; Import javax.servlet.ServletInputStream; Import javax.servlet.http.HttpServletRequest; Import org.apache.struts2.interceptor.ServletRequestAware; Import jxl *; Import jxl.read.biff.BiffException; Public Square UpdateZflexRecordsAction ActionSupport applies ServletRequestAware {/ ** * * / Private static last long serial VERSIONUID = 1 L; Private Boolean results = False; Private string position = zero; Private string msg = null; Private ServletInputStream inputstream = faucet; Private HttpServletRequest Request = Zero; Pub...

facebook - Remembering logging in in Android -

I'm trying to create an email for Android and logging into the system via Facebook (stored in the online database) I have been emailing logging for, but I am thinking that next time you open the app or not, then I should remember how I should run the best code. What's the best way to do this in a shared priority file with a boolean to do this? And should I just store it with a username and then get all the user's points from the online user? Is it necessary to encrypt this data in my shared prefix? Yes, the preferred way of sharing priority is this. And to store only the username, I mean That is to store all the data in the shared priority and then it should be brought from there. There is no point in bringing it from the server every time until it is updated.

python - PyDev + Django - undefined variables from import -

विशेष रूप से, किसी भी क्वेरीज़ इस कारण होते हैं: users = User.objects.all ( ) .order_by ('user_group__user_group_description', 'user_name') सभी () कह रहा है आयात से अनिर्धारित चर यह मेरे विचारों में किसी भी क्वेरी पर है - और फिर भी सर्वर का चलना ठीक है। मैंने मजबूर बंडलों के लिए डीजेंग को जोड़ दिया है, मैंने डीजेंगो को फिर से स्थापित किया है, मैंने पइदेव को फिर से स्थापित कर लिया है, यह अविचल है कि यह चर मौजूद नहीं है, लेकिन सर्वर ठीक तरह से चलेंगे। अधिक कष्टप्रद, यह हाल ही में ठीक काम कर रहा था और अभी काम करना बंद कर दिया था - कोड में कोई बदलाव नहीं हुआ है। मुझे पता नहीं है कि क्या करना है। संपादित करें: तो मैं 'ठीक हो गया है, लेकिन मुझे यकीन नहीं है कि यह काम क्यों करता है। Django 1.6.5 में डाउनग्रेड करना, फिर 1.7 में पुन: उन्नयन, अजगर दुभाषिया के पुनर्निर्माण, यह तय किया गया। यद्यपि मेरे कंप्यूटर पर 1.6.5 से फाइलें हैं और यह उन्हें हटाने के लिए अनुशंसा की जाती है ... मुझे सटीक एक ही समस्या थी जब मैं 1.6 से 1.7 के लिए डीजेन्ग को अपग्र...

android - AppGyver: PDF behind navigation bar -

I am trying to see a PDF in my AppGyver app, but there are some problems with it. First, some notes : PDF can be accessed through a URL to a php page which will generate the requested PDF file. Post data should be sent when PDF file is on external web server. The user should be able to return to the final view. I have read about using steroids.views.PreviewFileView to view PDF files. Unfortunately it seems that this class is only supported on iOS and I would like to support Android too. PDF can be used by clicking on a certain button. I have created this solution, which creates a form via javascript and submits instantly when clicking on button. Therefore, I can request a file while submitting post data and displaying it in the app. But when the PDF loads, the top portion is displayed behind the navigation bar while pinching the screen, the pdf file will be completely on the screen. If I should use the steroids.views.PreviewFileView , then how can I send mail dat...