Posts

Showing posts from May, 2014

python - App engine ndb. Query model based on Reference Property -

I have some problems in querying the object while using NDB in the AppEngine framework for I It is very new and I think I understand some important concepts wrong. Here's what I got: I have my model code teacher (ndb.model) from the teacher : Webapp2_extras.appengine.auth.models : User = ndb.StructuredProperty (user) ranking = ndb.FloatProperty (required = true) as you can see, from webapp 2 framework Comes. Then I try to ask some affiliate teacher. I do it like this: def _findTeacher (self, user): t = teacher. Curious (teacher.use == user). Fetch (1) If T: Returns T [0] Else: return Anyone The user coming in the form of this function comes as follows: user_session = self.auth.get_user_by_session () user = Self.auth.store.user_model.get_by_auth_token (user_session ['user_id'], user_session ['token']) [0] However, I get the following error: BadFilterError: invalid filter: non-empty repetitive property can not query for auth_ids I would li...

mysql - cannot response.write on connection node.js -

मैंने इस कोड को नोड। Js में लिखा है: var http = need ('http '); Http.createServer (function (req, res) {res.writeHead (200, {'content-type': 'text / plain'}); res.write ('start \ n'); var mysql = require ('mysql '); Var कनेक्शन = mysql.createConnection ({host:' hostname ', उपयोगकर्ता:' उपयोगकर्ता ', पासवर्ड:' पास ', डेटाबेस:' dbname ',}); connection.connect (); connection.query (' SELECT कोड से उपयोगकर्ता_प्रकार ', फ़ंक्शन (गलती, पंक्तियां, फ़ील्ड) {यदि (गलती) गलती हो तो; // इसके लिए सभी परिणामों पर चलाना है (var i = 0; i & lt; 2; i ++) {res.write ( 'नाम:', पंक्तियां [i]। Code);}}); connection.end (); res.end ('end');})। सुनो (8080); Console.log ('सर्वर चल रहा है'); मेरे प्रश्न हैं: 1. मेरे एचटीएल पृष्ठ में लूप के लिए res.write क्यों प्रिंट नहीं किया गया? 2. क्या लिखने के बजाय के लिए 2 में? मुद्दा यह है निष्पादन का समय। चूंकि connection.query () एसिंक्रोनस है...

google app engine - GWT Font-awesome not properly displaying on Firefox -

I can not get fonts-awesome to display properly in Firefox, even in the localhost. I am receiving a cross domain error, which is actually reported. This problem is resolved directly in the following .htaccess or Apache config: & lt; File match ". (Ttf | otf | eot | woff) $" & gt; & Lt; IfModule mod_headers.c & gt; Header has access-control-permission-origin "*" & lt; / IfModule & gt; & Lt; / FilesMatch & gt; But I'm hosting my app in Google App Engine, so how can I set entry-control-permission-origin in GAE? If you are using Java, then your appengine-web.xml code> to include the file in something & lt; Static-files & gt; & Lt; Path = "/ my_static-files" & gt; & Lt; Http-header name = "access-control-permission-origin" value = "*" /> & Lt; / Include & gt; & Lt; / Static-files & gt; Or to avoid potential security issues, note by @ mabn u...

iis - URL rewrite - REMOTE_USER always empty -

I URL re-write is required to rule adds REMOTE_USER value for the query string. I made my app simple to masterful, though, REMOTE_USER is always empty when the rule condition is evaluated. My web site, configured in IIS 7, uses integrated mode with AP Pool NIT 2.0. I disabled the unknown ath and enabled Windows Ath on the site through IIS Manager and I also added the line in the web connection so that anonymous access could be stopped. Here are my two files. web.config: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; System.webServer & gt; & Lt; Security & gt; & Lt; Authority & gt; & Lt; Remove users = "?" Roles = "" verbs = "" /> & Lt; / Authorization & gt; & Lt; / Safety & gt; & Lt; Rewrite & gt; & Lt; Rules & gt; & Lt; Clear /> & Lt; Rule name = "Add login to URL" stopProcessing = "...

r - Remove Data in a data frame based on an index column -

इस तरह से एक डेटा फ्रेम को देख रहे हैं: set.seed (3) Data1 & lt; -निरम (20, माध्य = 20) Dir_1 & lt; -nnorm (20, माध्य = 2) डाटा 2 & lt; -nnorm (20, माध्य = 21) Dir_2 & lt; -nnorm (20, माध्य = 2) डेटा 3 & lt; -rnorm (20, मतलब = 22) Dir_3 & lt; -norm (20, माध्य = 2) डेटा 4 & lt; -nnorm (20, माध्य = 1 9) Dir_4 & lt; -nnorm (20, माध्य = 2) डेटा 5 & lt; -nnorm (20, मतलब = 20) Dir_5 & lt; - (6, माध्य = 2), 6 = 6), 6) 2) आंकड़ा 8 & lt; -nnorm (20, माध्य = 25) Dir_8 & lt; -nnorm (20, माध्य = 2) इंडेक्स & lt; -nnorm (20, माध्य = 5) डीएफ & lt; -data.frame (डेटा 1, डीडीआई, डेटा 2, डीआरडीओ, डेटा 3, डीआरसीआई, डेटा 4, डीआरएन, डेटा 5, डीआरआईआई, डेटा 6, डीआरआई 6, डाटा 7, डीआरडीआई, डेटा 8, डीआर -8, इंडेक्स) मैं एक डेटा फ्रेम के साथ समाप्त होता है जिसमें डेटा के दो कॉलम होते हैं अवलोकन (अवलोकन 1-8 पर आधारित) और एक सूचकांक इस सूचकांक के आधार पर मैं कुछ डेटा टिप्पणियों को दूर करना (या एनए बनाना चाहूंगा)। एक उदाहरण के रूप में: यदि सूचकां...

python - Close lingering connection -

I am using Python-requests for client tools. It repeatedly requests the server for intervals. However, if the server is disconnected, the client fails with the socket error on its next request. It appears that the client opens the connection from his side, instead of connecting again. These connection hours can vary, so it is not possible that the server will not disconnect it. What is a way to keep it alive and forced to stop it? Is there something like this: with r: doStuff (r) # R is cleared as request.get (url), socket is off Can I be forced to clean the connection after I do? As written, it does not work, because the request. Response is not a __ How about this? I did not test it, based only on the API doctor: s = request Session () r = s.get (url) doStuff (r) s.close () Or, to ensure that it is always said near, even if there are exceptions , Here it has been attempted that at end / end by using Android: s = requests.Session (try): r = s.get (url) do...

javascript - Why does W3 validation require populated alt and src attribute for images? -

I am not using these properties as I dynamically add the source later. I do not need ALT either, I want my page to be valid. I can bypass this requirement by using a CSS background inside a div. Is this a legitimate approach? Explanation: I do not care about search engines. My images are always loaded. I have set up the SRC attribute using javascript. Major modern browsers for Accessibility is not necessary yet. Doctype HTML5 - & lt ;! DOCTYPE html & gt; Post-text "itemprop =" text "> because it is valid for a specification HTML is a specific structure that is documented on the site. W3 validation assumes that the input specification matches, in this case the requirements match: src attribute should be present An IMG tag with any source has undone the behavior, for example, depending on the browser, instead of a valid image it can re-request the current page. The Alt attribute should be specified and its ...

Clojure: Wrong number of args (4) passed to: core$rest -

Write the function that allows you to create function compositions should take a variable number of functions in the parameter list, And they should be applied from the right-to-left by creating a function. (fn [& amp; F] (fn [& amp; amp;]] (->> (reverse FS) (decrease #% 2% 1 Apply))))) = & gt; (= [3 2 1] ((_ rest reverse) [1 2 3 4]) clojure.lang.ArityException: Wrong number of ARG (4) passed: core $ rest What is the reason for this error? I can not see it This is in your applicable - this parameter is used for the parameters Changes to a flat list, make a call like this: (rest 1 2 3 4) Which is probably not what you want ... .. and tells you the error you get.

php - htaccess redirect subdomains to certain page? -

I need all subdomains to redirect to a specific page without actually changing the URL, because I Depending on the specific page which is the subdomain in the URL, display different content. Assuming my site is located at testdomain.com/site1 / , I want all subdomains, such as xyz.testdomain.com/site1 / or here As long as xyz.testdomain.com has to be redirected to a specific page on , then the browser needs to be loaded, but the URL will still be xyz.testdomain.com. Its purpose is that a person can go to abc.testdomain.com or xyz.testdomain.com and will take both users to testdomain.com/site1/index.php/test.php, And then at test.php, I have some code that will catch the URL, and if the URL is abc.testdomain.com, it will display certain content, though the subdomain xyz.testdomain.com will display different content. Is there anything I can do in Http? If so, then how? You can hack it together by using mod_rewrite . # Step 1: If the user goes to example.com or www.e...

sql - Storing the previous month as a char with a leading 0 for single digit months -

I have a field filled with dates, but they are stored in varchars as they are in the following format: 01302013 09232007 I am trying to write a query that will only allow the following three parameters The last four characters of Year The previous ward "date" match for last month The previous varchar "date" The first two letters of last march Match up with The value in a completely different date field (which is actually stored as a date) comes within the last month My efforts lasted me The month and the previous month have stopped trying to store in two variables, and then on varchar "date" a LEFT () and right () "to see if they match those two variables." / P> The problem is that MONTH is being stored as a digit, and I It needs to be stored in the form of "0" + month digits (only in the case of single digit months), except that it is not working just for the year, so it is completely closed. Hope someone can...

c# - ASP.net MVC upload image NullReferenceException -

I have implemented a simplified method for inserting data into the database, and it worked fine I decided to upload the image Done, but I'm getting NullReferenceException (the file is empty) and I can not know why I hope you can help me! This is my code: [Authorized] Create public actions () {viewBag.CategoryId = new selection list (_categoryRepository.GetAllCategories () (Asenumerable), "Category ID ", "Name"); See Return (); } // // Post: / advert / create [hppost, author] public action result (contest dto contest dto, html posted filebase file) {if (file.ContentLength & gt; 0) {string fileName = path.get filename (file. FileName); String File Extension = Path Gate extension (filename); If (fileExtension == ".jpg") || (File Extension == ".PNGG")) {string path = Path.Combine (Server.MapPath ("~ / Upload / Images"), Filename); File.SaveAs (Path); CompetitionDTO.ImageURL = Path; }} If (ModelState.ISIIIDID) {_competitionR...

php - MySQL - Start without limit -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मेरे पास निम्न SQL कोड है ; सेलेक्ट करें myTable WHERE id = 1 LIMIT 4, 10; मुझे परिणाम 4 से चलाने के लिए एसक्यूएल चाहिए, लेकिन अंत की कोई सीमा नहीं है, इसलिए मैं स्क्रिप्ट को 4 से सभी परिणाम प्राप्त करने के लिए चाहूंगा। क्या यह संभव है? किसी भी मदद की सराहना की। आप ऑफफेट विकल्प आपकी क्वेरी में है इस तरह से SELECT * myTable WHERE आईडी = 1 OFFSET 4

How to turn this command into a zsh function -

This command is what I want to translate into a zsh function, which performs a global search and changes to a string: Find ./type f -exec sed -i 's / string1 / string2 /' {} \; I tried: gr () {search / -type f -exec sed -i 's / $ 1 / $ 2 /' {} \; } But this does not seem to work. The obvious error is the wrong quote - as always ' Expand in detail, use " instead of what you want - and you also want to global flag to sed: gr () {find ./type f -exec sed -i "s / $ 1 / $ 2 / g" {} \ |} However, this Not very zsh - Stylish ... the following is better for reading small and IMHO: gr () {sed -i "/ $ 1 / $ 2 / g "** / * (.)} ** Searches from R, but does not follow the simulation (use *** if you want to) (.) Restricted to plain files

Extract Month/Year from Date in SSRS 2008 -

I am using the SQL Server SSRS 2008 version and I need to remove the date fields, months and years values I for example, 2013-01-11 21: 11: 29.340, I need to report "January 2013 January" ??? In the Design view, to display where I want the information in the cell, where I place an option from the "Expression" pull-down menu, enter = DATENAME (MONTH) , DesiredDate) & amp; DATENAME (YEAR, DesiredDate) and received an error message. BTW comes from SQL code in a "desired date" query designer. To add values ​​between the + values ​​in SQL Server: DATENAME (month, desired date) + "DATENAME" (year, desired date) You could probably & amp; '& Amp; which will add whitespace between values: DATENAME (MONTH, DesiredDate) & amp; '& Amp; Based on your comment, edit DATE_1 (YEAR, DesiredDate) Edit # 1, you can use the following in the expression window: = MonthName (month) (desired! Value of desi...

c# - MigrateDatabaseToLatestVersion initializer failing to create database -

I'm trying to create a database to use the first migration of EF code if it does not exist yet , I've successfully done enabled-migration I have also used add-migration to create the initial migration of the database. The script is in the migration direction and looks correct. This is the main part of my main method. Database .Set Inchylizer (New MigrateDataLoautWarson & lt; MyDbContext, Configuration & gt; ()); Var directConfigContext = new MyDbContext (); All I have read says that I want it all in MyDbContext in app.config and looks like this: & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Configuration & gt; & Lt; ConnectionStrings & gt; & Lt; Add name = "MyDbContext" connectionString = "data source = (localdb) \ v11.0; initial catalog = dbcfif; integrated security = true; multipleactive serialset = true" provider name = "system.data .sql client" /> ...

batch file - Asterisk not working in for loops -

I'm creating code I can not get the star in the "* .map" loop to work? Is there any reason for this? That's because they are for for findstr inside loops for loops loops SETLOCAL ENABLEDELAYEDEXPANSION for / f "delims =" %% A in (Marks.txt) (var1 =! Var1! %% Set a Finder / E "! Var1! "" * .map "If there is no error 1 (for / f" tokens = 2 delims ==, "%% b in ('findstr / e'! Var1!" * .map ') Do (set var2 = ! Var2! %% B set / one linecon + = 1 if! Linecount! GEQ% maxlines% GOTO part2): for part2 / f "tokens = 4 delims ==," in %% ('findstr / e'! Var1! "* .map ') (set var3 =! Var3! %% C if! Linecount! GEQ% maxlines% GOTO exitloop)) You Closing feet are unavailable

knockout.js - KnockoutJS - observable object is undefined? -

I'm still new to knockout so I'm hoping someone can help me on this. This is my visual model: baseModel = {logged_in: ko.observable (), alert: ko.observableArray (), Errors: ko.observable ()} ; And in my HTML I have: & lt; Span data-bind = "text: ($ root.errors ['myerror1'] == $ Undefined): $ root.errors ['myerror1']" & gt; & Lt; / Span & gt; I am hoping to drag arbitrary items through AJAX and specify it to me. Errors for property For example, when my response is: object {myerror1: "password is incorrect", error 2: "something else is wrong"} I expect to show an error in my span when I do the following in my AJAX success callback: if (feedback errors! == undefined ) BaseModel.errors = Ko.mapping.fromJS (Reaction Errors, {}, Besodel. Errs); OR, if (feedback. Errors! == undefined) baseModel.errors = response. Errs; Neither myerror1 shows that I'm bound in HTML, maybe I was do...

Bash backtick escaping -

क्या यह बैश चर घोषणा घोषणा है: foo = 'b`` `` ar ' इससे कम कुशल : foo =' bar ' क्या "फांसी" या "गठबंधन" इंडेंट (रेखा निरंतरता) के स्वरूपण का यह तरीका है: a_long_variable_name = 'एक प्रतीत होता है कि अनंत समय' `` स्ट्रिंग को निरंतरता की आवश्यकता होती है '' अगले पर n (विरोधी?) पठनीयता के लिए अपने फार्म को नापसंद करने के अलावा, किसी भी तरह से स्पॉन उप-गोले, कचरा संसाधन, या किसी भी तरह से प्रदर्शन को प्रभावित करने के लिए ... इस तरह की क्षमता: कंप्यूटर दक्षता, नहीं, "मनुष्य कई अक्षर टाइप कर रहे हैं और अंतरिक्ष-आधारित, अनावश्यक रखरखाव ऋण" बनाते हैं। प्रदर्शन पर प्रभाव (या उसके अभाव) आसानी से प्रदर्शित हो सकता है? परीक्षक 1 () {i {1..1000} में; A_long_variable_name = 'एक प्रतीत होता है अनंत लम्बे' `` स्ट्रिंग को निरंतरता की आवश्यकता है '' अगली पंक्ति पर ... '$ a_long_variable_name echo करें & gt; टीएमपी किया} परीक्षक 2 () {i {1..1000} में; A_long_variable_name = "एक प्र...

Can Cloudflare cache HTML for anonymous users but not logged in users? -

We have an anonymous website content that is usually stable (once renewed every hour), and The content user is often updated to log in to different users for each. Is it possible to configure cloudflow, so that the HTML has been cached for anonymous users, but the user has not been logged in, both have the same URL? Is there a cache header we can set it? I am struggling with the same scenario, and as far as I can see that there is no way, You can set up page rules in Cloud Flower, but they will only see the URL. This will be the only solution that will be the different URL (some additional parameters or maybe a subdomain) for each type of users, then you manually set the rules to apply the cache expiration time.

HTML Text area with custom user font size style and colour -

How do I create a text field in HTML where the user can change the font style, size and color I am about an hour Have not taken any advantage. I can get simple text boxes, where the user can input the data, but not where they can change the font size style and color thanks Very basic, you may need to type some javascript. You might be a dropdown, which shows the font size from 4px to 30px, for example. Example: & lt; Textarea id = "textarea1" & gt; Test 123 & lt; / Textarea & gt; & Lt; Select onchange = "textarea1.style.fontSize = this.value;" & Gt; & Lt; Option value = "12px" selected = "selected" & gt; 12px & lt; / Option & gt; & Lt; Option value = "4px" & gt; 4px & lt; / Options & gt; & Lt; Option value = "30px" & gt; 30px & lt; / Options & gt; & Lt; / Select & gt; To change the background color, the onchange code will be tex...

ruby - How to use conditional to test if a block is passed? -

For example, if I want to implement a function that does some work, if any block is passed, or if it happens, then work. There is no block, how do I write conditional? # obsolete Class = "post-text" itemprop = "text"> If I understand your question correctly, you can use the function.

iphone - memory leak in singleton class -

I am new to iPhone development. I am developing an application in which I am using single tone class. When I am creating the object of a single tone class, then it is giving me leakage of memory when analyzing my code. This is giving the message as "possible leakage of the object" and "allocated object is not referenced later". But I am using that item in my code, the following is my code where I created a single tone class object - (zero) viewDidoad {[Super Viewedload]; NSLog (@ "Inside View"); Self.navigationController.navigationBar.topItem.title = @ "Menu List"; UIImage * image = [UIImage imageNamed: @ "Navigation_bar.png"]; [_bg Image Set Frame: CGRactMake (0, -45,320,510)]; [Self.navigationController.navigationBar setBackgroundImage: Bairametrics for Image: UIBarMetricsDefault]; [Self-back controller. Tabbar setbackgaged image: [UIimage image named: @ "tab_bar page"]]; [Self. NavigationTime SetHidebackBackton: Yes]; Me...

ios - Merging multiple images into 1 -

I'm trying to overlay images taken from the camera with some other preset images. The problem is that the camera There may be 8MP, which is very large in the memory usage period. Nothing can be more than an overlay trying to cover the entire image. I tried several ways to merge them all into one image. UIGraphicsBeginImageContextWithOptions (_imageView.image.size, 1.0F); [_containerView.layer renderInContext: UIGraphicsGetCurrentContext ()]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); or CGContextDrawImage (UIGraphicsGetCurrentContext (), (CGRect) {CGPointZero, _imageView.image.size}, _imageView.image.CGImage); CGContextDrawImage (UIGraphicsGetCurrentContext (), (CGRect) {CGPointZero, _imageView.image.size} * Other image views *); or UIImage * image = _imageView.image; CGImageRef imageRef = image.CGImage; Size_t imageWidth = (size_t) image.size.width; Size_t imageHeight = (size_t) image.size.height; CGContextRef Reference = CGBitMapContex...

css - How to make the background image fixed in the input box -

Image
As you can see in the snapshot, a small icon to the right on the right of the input box, when user input box Keeps typing, the icon starts to move, is there any way to fix it in the current situation? Input. Fulhohar indicator {background-image: url ('../../ Images / Message_info_grri'); Background repeat: do not repeat; Padding-right: 16px; Background Status: OK,} HTML & lt; Input name = "instance / logical.name" class = "fillHoverIndicator" id = "X26" style = "width: 100%; height: 19px;" Onkeydown = "cfKeyDown (event, 'X26');" Onkeyup = "cfKeyUp (event, 'X26');" Onclick = "Handle-click (this, event);" Onfocus = "CBOnfocus (this, incident);" Onblur = "cbOnBlur (this, incident); applyToSameControl (this);" Onchange = "handlenchenge (this, incident);" type = "text" maxlength = "2147483647" ButtonId = "" dvdVar = ...

android - Initialse a jsonArray java -

I'm trying to start a Jasonson Jason Array, but I'm losing in doing this. I am wrong and how do we start a Jason array? JSONArray template = {"header": "color", "item": [{" "Red", "first": true, "url": "#Red"}, {"name": "green", "link": true, "url": "#Green"}, {"name ":" Blue "," link ": true," url ":" #blue "}]," empty ": wrong}; You need to create a JSONObject of the template, which automatically items try {string template = "{\" header \ ": \" color \ "," + "\" item \ "": \ "name \": \ "red \", \ "before \": True, \ "url \": \ "# red \"}, "+" {\ "name \": \ "Green \", \ "link \": true, \ "url \": \ "# green \"}, ...

ruby on rails - Mongodb import export database -

I want to import and restore the mogodb database from one machine to another I have used Check this slide show

linux - Bash command substitution with extra whitespace: How to solve this? -

I would like to change the number of processes to know my command line: > ; Cat / proc / "fuser / dev / ttyS0`" / cmdline cat: / proc / 5231 / cmdline: Any such file or directory but it seems that fuser Adds an extra white space in PID Expected behavior: I want to get a process ID using the Fusor and in the second stage of the display / Proc / & lt; ID & gt; / Cmdline . I think the echo \ "` fuser / dev / ttyS0` \ " will show you that there is a prominent place if you split your operation in two steps, then you can do the following u = `fuser / dev / ttyS0` cat / proc / $ {U /}} / cmdline Then first you put the result of fusor on the variable u (which is still the location ), And then you start a paradigm shift with all the codes with U ( // if you Evl / , then the place of all events, will simply replace the first event - which will not have any problem in your example).

javascript - can't access variable in another function inside object literal -

मेरे पास javascript var Obj = {Init: function () {this.over = $ ('& lt; div />').addClass('over'); $ ( 'शरीर') संलग्न (this.over)। $ ('क्लिक करें')। पर ('क्लिक करें', this.show); }, शो: फ़ंक्शन () {console.log (this.over); }} Obj.init (); यह तब होता है जब उपयोगकर्ता एक । क्लिक करें लिंक पर क्लिक करता है, तो यह शो फ़ंक्शन को चालू करता है और में बनाए गए डोमेन तत्व को लॉग करता है init फ़ंक्शन। लेकिन समस्या तब है जब यह अनिवार्य रूप से लॉग आउट करता है क्यों? इसे कैसे हल करें? यह प्रयास करें: var Obj = {init: function () {this.over = $ ('& lt; div />').addClass('over'); $ ( 'शरीर') संलग्न (this.over)। $ ('क्लिक करें')। पर ('क्लिक करें', this.show); }, शो: फ़ंक्शन () {// यहां 'यह' बटन है, नहीं obj ऑब्जेक्ट .. console.log ($ ('। Over')); }} Obj.init (); एक और विकल्प: var Obj = {init: function () {this.over = $ ('& lt; div / & gt;') addCl...

c# - Developer License Error Windows RT (Error 0x90070005) -

I am trying to install an application (my own developed) on Windows RT (Qualcomm Tablet) During installation (obtaining the developer license) gave me an error "that means we could not obtain your developer license for Windows RT (error 0x90070005). My windows are for testing purposes only for Windows RT Build 9200 . In advance thank you According to this formula, problem of MSDN (forum) The reason may be a password that is too long. At least your password Please try again consider changing D.

Non-crud rails actions in Ember.js -

How can I use non-crude operations from my railroad controller in Amber.JS? i.e. In my controller I have some other actions besides creating an index, show, ... like the MacroPhone action and I want to use it in Amber You can use JQuery AJAX calls directly: $. Ajax ({url: '/ projects /' + project_id + '.json', type: 'GET', success: works (data, textstats, excerpts) {result.setProperties (data.project); result.set ('isLoaded ', True);}, error: function (xhr, textStatus, errorThrown) {warning (' not found ')}}

objective c - How to navigate from UIView to UIViewController -

I know that uiview does not have navigation controls. In this way, I can not push uiview into the next uiviewcontroller . Here is the code of my method, please help. Thanks! - (zero) ScrollviewPlayed: (UITapGestureRecognizer *) Identifier {CGPoint pointInView = [identifier location: view: self]; NSLog (@ "% f,% f", pointInView.x, pointInView.y); If ((pointInView.x> = (231.0) and PointInView.x & lt; = (293) & PointInView.y & gt; = (193) & amp; Amp; PointInView.y & lt; = (218))) // How to push the next viewing controller here? UIView * View = [UIGestureRecognizer view]; // What should I do for this code? [View Yourself Controller]; }} - (TestViewViewController *) viewController {for (UIView * next = [self supervisor]; next; next = next. Supervive) {UIResponder * nextResponder = [next next responder]; If ((Next Respondent, HackandoffClass: [Test Viewview Controller Class]]) {Return (Test WeaveView Controller *) Next Respondent; }} Return zero; } ...

c# - Wp7 create path element from code and set Data element -

I have this path in xaml: & lt; Path data = "M16, 12 16,0 0,12" Fill "" {static resource phone accentbrush} "/> I created it dynamically via code The problem is that I can understand the way to set the data element, I have read something about geometry, purse (), then it came to know that it can not be used only in WP7 projects. / P> Any ideas? Specifying paths in the code You will need to create an geometry object and set that as the value of the data property. Example: myPath.Data = New EllipseGeometry {center = New point (50, 50), Radius X = 25, Radius = 25}; It is not possible to use a brief syntax (eg " M 16,12 16,0 0,12 " ) from the back of the code. This is only supported by the XML Parser. See more

How to change title bar for a nsis application -

I created a simple app using the rendering web page NSIS The next requirement where I got caught is the custom controller bar To apply, a custom title bar is to apply. I think I can do this with skins or with some existing plugins but there was no viable solution for this. Please suggest how I can change the title bar for the NSIS application. The only way to do this in NSIS is to write a new plugin (there is no current plugin which is non-client area because it is hard to do and usually nonsense looks like IMHO) To do this, you have to originally write 3 versions of skin handling: and with XP + with Vista + Arrow ... to deal with the high contrast mode etc. which you may want at the top Naya ESI never really comes into the pictures, which is to connect things. In addition to calling your new plug in guiuiinit, the rest of the subclass needs to be in the handler and it should be written in C / C ++ ...

sorting - passing lambda function to sort a vector c++ -

कोशिश कर रहा है vector & lt; int & gt; मैं; i.push_back (1); i.push_back (2); i.push_back (5); i.push_back (6); Std :: sort (i.begin (), i.end (), [] (int a, int b) - gt; bool {वापस & lt; b;}); त्रुटि को फेंकता है hello.cpp: फ़ंक्शन में "int main"): hello.cpp: 63 : 69: चेतावनी: लैम्ब्डा भाव केवल -std = c ++ 0x या -std = gnu ++x [[डिफ़ॉल्ट रूप से सक्षम] के साथ उपलब्ध है hello.cpp: 63: 70: त्रुटि: कॉल करने के लिए कोई मिलान समारोह नहीं है ??? सॉर्ट (स्टडी :: वेक्टर और लेफ्टिनेंट; इंट एग्रो: :: इटरेटर, स्टडी :: वेक्टर & lt; int & gt; :: इटरेटर, मुख्य () :: और लेफ्टिडा; लैम्ब्डा (इंट, इंट) & gt;) ??? Hello.cpp: 63: 70: नोट: उम्मीदवार हैं: /usr/include/c++/4.6/bits/stl_algo.h.31317: नोट: टेम्पलेट & lt; class _RAIter & gt; शून्य std :: sort (_RAIter, _RAIter) /usr/include/c++/4.6/bits/stl_algo.h/35353: नोट: टेम्पलेट & lt; class _RAIter, वर्ग _Compare & gt; शून्य std :: sort (_RAIter, _RAIter, _Compare) पूरी तरह से सुनिश्चित नही...

r - Control spacing between bars in a stacked barplot -

Image
When I plot a stacked barplot in R, then the X axis values ​​are used with equal intervals of bars As label, I should put the bars closer or further on the basis of X axis values. Can someone help me get this plot using R? Edit: # data.frame newtest ABCD 100 0.2 0.3 0.1 0.4 400 0.3 0.5 0.1 0.1 500 0.1 0.3 0.4 0.2 600 0.4 0.2 0.2 0.2 1000 0.1 0.5 0.1 0.3 1500 0.3 0.2 0.2 0.3 1600 0.4 0.1 0.3 0.2 1700 0.1 0.1 0.7 0.1 2500 0.3 0.2 0.1 0.4 1 plot barplot (T. (matrix (newtest)), Col = c ("cyan", " Legblue "," yellow "," green "), legend = colnames (newtest), cex.main = 0.5, cex.axis = 0.5, cex.lab = 0.5, lwd = 0.02) Here's the plot: Bars just labeled according to line names goes. But I want the bars of 400,500,600 to be closer to each other, empty space to represent any block for 700,800 9 00 , then bar for 1000, then empty space 1500, Bars of 1500, 1600, 1700, , etc. Given that a barplot represents a specific variable i...

Reading Binary File into a Structure (C++) -

So I have an issue in my composition to not properly read a binary file. The structure is: Structure Student {Four names [25]; Int quiz 1; Int quiz 2; Int quiz 3; }; This is 37 bytes (25 bytes from four arrays and 4 bytes in integer). My .at file is 185 bytes. I have 5 students who have this 3 integer grade. Therefore each student takes 37 bytes (37 * 5 = 185). Bit Simpson 75 65 70 Ralph Vigam 35 60 44 Lisa Simpson 100 98 91 Martin Prince 99 98 99 Mallhaus Van Hauten 80 87 79 I can read each record individually using this code: student studs; Fstream file; File.open ("quizzes.dat", iOS :: in | iOS :: Out | iOS :: Binary); If (file.fail ()) {cout & lt; & Lt; "Error: Can not open file ..." & lt; & Lt; Endl; Exit (0); } File.read (stud.name, sizeof (stud.name)); File.read (reinterpret_cast & lt; char * & gt; (& stud.quiz1), sizeof (stud.quiz1)); File.read (reinterpret_cast & lt; char * & gt; (and stud.quiz2), size (...

php - Add Information To CException And CEmailLogRoute -

I have many errors in my CEMEM cellulite. I'm fine but I have to get more specific information For example with 403 access denied errors, I would like to know that Yii :: app () - & gt; User- & gt; ID has started it, maybe I want to add those roles that the user has. Is it possible to add information to be more specific than CELLROZE or CEEpisode or CHttpException.403? You should use it (or spread), e.g. In your config: array ('class' = & gt;' CEmailLogRoute ',' levels' = & gt; 'error, warning', 'email' = & gt; 'admin @ Example.com ',' filter '= & gt; array (' class' = & gt; 'CLogFilter', 'prefixUser' = & gt; true),),

android - How to change the color of action-bar title? -

एक्शनबार बार = getActionBar (); Bar.setTitle (R.string.title); // सेट एप्लिकेशन शीर्षक मैं अपने जावा कोड के माध्यम से अपना शीर्षक सेट कर रहा हूं। एक्शन-बार शीर्षक का रंग कैसे बदल सकता है & lt; शैली का नाम = "एक्शनबार। पाठ। उदाहरण" अभिभावक = "@ एंड्रॉइड: शैली / टेक्स्ट ऍप्परेंस" & gt; & Lt; आइटम का नाम = "android: textcolor" & gt; @ रंग / क्रियाक्षेत्र टेक्स्ट & lt; / item & gt; & Lt; / शैली & gt; & Lt; शैली का नाम = "शीर्षक टेक्स्ट" अभिभावक = "@ एंड्रॉइड: शैली / टेक्स्ट ऍप्परेंस" & gt; & Lt; आइटम का नाम = "android: textcolor" & gt; @ एंड्रॉइड: रंग / सफेद & lt; / item & gt; & Lt; आइटम का नाम = "एंड्रॉइड: टेक्स्ट साइज़" & gt; 18dip & lt; / item & gt; & Lt; / शैली & gt; एंड्रॉइड डॉक्युमेंटेशन में एक्शनबार स्टाइल का उदाहरण है: >

c# - Remove left and right side borders -

Image
I want my textbox to see if it How can I remove the left and right sides of my Textbox control? ? Normally, you want to override the OnPaint event to do this, however for the textbox , It will not work because OnPaint is called wont. As a description one box box will be a way Although I do not suggest you do all this, it looks like a daunting task Maybe it would be enough to just draw a line above or below the text box? - Edit - Perhaps this will explain it better: The text box is special that you do not recruit it Can do If you just want a custom border, you can create a new UserControl and add a reader with the borderline style. Ensure that you leave enough room outside the text box for the border and then paint the border on the UserControl surface. An alternative way would be to handle the WM_NCPAINT message of the text box and then paint the border, but it is much more complex. Source: msdn shawn.ohern in forums: (Sorry I did not -itit2 - This...

php - Convert UTC offset to timezone or date -

A head scratcher for you I am grabing geo IP data with my API and it UTC Returns Offset Off TimeSam from Including DST (Currently Reflected). For example, I live in EST (-5) and currently it is DST, so the geographic IP API return ( -04: 00 ) in the form of offsets This is very good because DST headache disturbances but due to my surprise, it caused another headache. I load this data into PHP, which can be applied through AJAX. I would like an IP address live locally at the app. I have this set completely, but I'm crazy about how to try to find out how to set the PHP timezone to offset the match so I just have the current hour date ('H' '); More minutes date ('I'); I can take to pass through AJAX. I have no uncertainty if there is a specific task which can give me current hours and minutes based on that offset, or if there is no practical way to set the timezone based offset (which DST already applied If it is in effect). I am searching ...

shopping cart suddenly stopped working c# -

Shopping cart is down again, because the hosting company provides a new temporary website? I think the company is being hosted, the shopping cart is working again, and I have not changed anything .... Is there a good reliable Is Windows Web Hosting Company? Can someone help me? The hosting company drives me crazy. My website and shopping cart was working just fine a few days ago and the website is running fine in my local host, but my shopping cart suddenly stopped working from tomorrow. I think the hosting company has changed some settings, but they reject it, and say that this is a problem with my code. Here I got this error: [A] ShoppingCarts can not be put on [B] shoppingcart. Type 'A' App_Code.ej8etxbi, version = 0.0.0.0, "Default" by 'Culture = Neutral, PublicKeyToken = null' 'Location:' C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP 'Net Files 'Root \ 03050970 \ f5f76d45 \ App_Code.ej8etxbi.dll' ge...

php - How do I use PDO's FETCH_CLASS to assign constructor arguments? -

I want to make examples of objects using PDO. I know that there is a lot already, but only I have been found that it is possible to send an array of parameters to the constructor. I think the producer can only accept an array in the form of logic. However this will make the constructor less meaningful. I want to create a class with my own gates and the setters: class MyClass {Personal property is a private property B public __constructor ($ ArgA, $ argB) {$ This- & gt; Setproperty A ($ argA); $ This- & gt; SetPropertyB ($ ARGB); } Public Setproperties ($ AGR) {$ this- & gt; Property A = $ AG; }} Is there a great way to use data from a database to create an example of such a class, preferably using PDOs? freebillin 'here: $ handle = new pdo (" Blablalblah "); $ Statement = $ handle-> Prepare ("selection bluetooth"); $ Statement & gt; Executed (); $ Object_params = $ statement- & gt; Get (PDO :: FETCH_ASSOC); $ Object = ne...

php - $mysql_ disspearing? -

Hi I am an installer coding, somehow ... ive ran into trouble when it creates the .. global.php file Is $ Mysql_ not visible in the connection file, while everything else does? I am trying to include it $ mysql_host = 'localhost'; $ Mysql_user = 'root'; $ Mysql_name = '-----'; $ Mysql_pass = '-----'; It comes out in global.php: = 'localhost'; = 'Root'; = '-----'; = '-----'; Notice $ mysql_ incorrect? This is the code in the installer: $ db_name = trim ($ _ POST ['db_name']); $ Db_user = trim ($ _ POST ['db_user']); $ Db_pass = trim ($ _ POST ['db_pass']); $ Db_host = trim ($ _ POST ['db_host']); $ Handle = fopen ($ setting ['config'] ['folder']. $ Setting ['config'] ['file'], 'w'); $ Input = "& lt ;? Php $ mysql_host = ''. $ Db_host. '' $ Mysql_user = ''. $ Db_user. '' $ Mysql_name = '...

html5 - Active menu link should "crop" the menu strip? -

I have a strange menu for code and I do not know how to do this, let me get this 100% wide head bar The logo logo sits on the left side and the menu bar on the right goes to the fullscreen background, so, I need an active link to crop the header bar somehow, like a hole. I attached an image so that you can get a better idea. Thanks! Here is the image: Background opacity Use HTML & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Menu 4 & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; CSS body {background: url (http://2.bp.blogspot.com/-C...

iphone - Date formatiing -

This calendar warning when adding an event to a calendar using a calendar event: "1 day ago", but the form of "at the time of the event" In my code, calendar = [[NSCLonder ALOOC] initWithCalendarIdentifier: NSGorian Calendar]; NSString * cday, * cmonth, * cyer; // Set today today = [[NSDT alloc] Init with introversion now: 1]; // Format the NDAT current day * temp1 = [[NSDateFormatter alloc] init] to show; [Temp1 setDateFormat: @ "dd"]; Cday = [temp1 stringFromDate: today]; NSLog (@ "checking% @", cdi); [Temp1 release]; Is my code wrong? Can anyone help sort me out? Maybe there is something to do with time zones, you may be right for the Time Zone property of your NSDateFormatter object. Must set the value. Please set the time zone in the local time zone [temp1 setTimeZone: [NSTimeZone systemTimeZone]]; (Or) [temp1 setTimeZone: [NSTimeZone local timezone]]; Please enter this code: NSCalendar * calendar = [[NSCL...

php - Double quotes inside array -

I have this line of code in my file, but in the return array part, I should have double quotes inside the array. If I just walk the way, it crashes. How can I solve this problem? If you have already selected the maximum number of pictures for this shirt ($ number_of_picture_allowed & lt; = $ number_of_picture) Return Array ('Error' = & gt; "{tr domain =" PhrasesInTemplates "} {/ Tr}", 'File_sid' = & gt; $ fileSid); thanks, intranspecter using the following backlash ( \ ). So your return should look like: Returns array ('error' = & gt; "{tr domain = \" PhrasesInTemplates \ "} You have already selected maximum images for this shirt ! {/ Tr} ", 'file_sid' = & gt; $ fileSid);

java - How does paintComponent work? -

This can be a very naw question, I'm just starting learning Java The operation of the compound method is not understood. I know that I want to attract something, I have to override the paint compendant method. Public Zero Paint (Graphics G) {...} But when is it called? I do not see anything like "object.paintComponent (g)", but still the program is ready when it is ready. And what is the graphics parameter? where is it from? The parameter should be provided when the method is called. But as I said earlier, it seems that this method is never called clearly. So what does this parameter provide? And why do we have to put it in Graphics 2D? Public Zero Paint Head (Graphics G) {... Graphics 2DG2 = (Graphics 2D) G; ...} The short answer (too) of your question is that Paint Component is called "when it is needed" Sometimes the Java swing GUI system is easy to think of as a "black box", where most of the interior is handled without muc...

c# - Validating payment amounts with WorldPay -

We are using WorldPay for the payment process for a global membership system, for which the amount of payment is selected subscription Depends on the level. & lt; Input type = "hidden" name = "zodiac" value = "295.00" /> Basically, the form is deposited on WorldPage through POST and the user adheres to several steps to process their payments. Once completed, the user is taken to a specific confirmation page. It appears that the World Package accepts payments. There is a clear issue here, in which the value of the hidden field can be easily tampered with the basic knowledge of HTML. The form is posted directly to the WorldPoint, so we do not have any postback in which the amount against the membership level Can be verified. We have the option to validate the payment process, routing the callback through a handler before the confirmation page; However, I would like to avoid the situation where the user presents a tampering form, pays ...

c# - Practical implications of using Expression in methods with delegates -

Linq.Expression & lt; T & gt; प्रकारों का उपयोग कर हम बाद में मूल्यांकन के लिए प्रोग्राम को एएसटी परिभाषित कर सकते हैं और / या निष्पादन। लेकिन व्यावहारिक रूप में, इस तरह से विधि हस्ताक्षर को परिभाषित करने का क्या असर है: सार्वजनिक शून्य someMethod1 (फ़नक & lt; bool & gt; func) {.. ।} // 1. के बजाय सार्वजनिक शून्य someMethod2 (अभिव्यक्ति & lt; फ़नक & lt; bool & gt; & gt; expr) {...} // 2. स्पष्ट रूप से जिस तरह से हम Func & lt; bool & gt; से परिणाम प्राप्त करते हैं से भिन्न होता है: var परिणाम = func ( ); // 1. से var func = expr.Compile () // 2. var परिणाम = func (); कच्चे व्यावहारिक स्तर पर भी आमंत्रण समान है: someMethod1 ((=) = & gt; सत्य); // A. SomeMethod1 (() = & gt; AMethodReturnsABool ()); // बी। SomeMethod1 (एमेन्थ्रेट्सअबल); // सी। अंतर के साथ कि संकलित स्तर पर SomeMethod2 विधि समूह वाक्यविन्यास स्वीकार नहीं करता है: // SomeMethod2 (AMethodReturnsABool); // - & gt; जब मुझे मानक प्...

php - pass value of textfield to another textfield on next page -

I have a table on a page that appears as table: ID name birth date school 1 ABCD XX-XX-XX XYZ 'Edit Icon' 2 PQRS XX-XX-XX LMN 'Edit Icon' If I click the Edit icon I want to pass the name ABCD on the next page. Anyone have ideas on how to do this? I tried using session () but it does not pass the value Thank you in advance. Code to display the table: echo "& lt; tr & gt;"; Echo "& lt; td height = '30' & gt; & lt; a href = 'next.php? Name =". $ Info ['name']. ' '' Gt; & Lt; Img src = 'image / edit-icon png' & gt; & Lt; / A & gt; ". $ Info ['id']" & lt; / TD & gt; "; echo" & lt; TD height = '30 'id =' key '& gt; ". $ Info [' name ']" & lt; / Td> "; echo" & lt; Td height = '30' & gt; ". $ Data ['date']" & lt; / Td> "; ec...

android - Get distinct email id from contact list -

I have a contact list with several names with the same email ID. How can I modify the code given below so that I only name with different e-mail id? Public Array List & lt; String & gt; GetNameEmailDetails () {ArrayList & lt; String & gt; Name = new arreelist & lt; String & gt; (); ContentResolver cr = getContentResolver (); Cursor cur = cr.query (ContactsContract.Contacts.CONTENT_URI, faucet, empty, empty, empty); If (cur.getCount () & gt; 0) {while (cur.moveToNext ()) {String id = cur.getString (cur.getColumnIndex (ContactsContract.Contacts._ID)); Cursor cur1 = cr.query (ContactsContract.CommonDataKinds.Email.CONTENT_URI, blank, contactContact.comCommentIndEmailCONTACT_ID + "=?", New string [] {ID}, empty); While (cur1.moveToNext ()) {// Contact name to get the string name = cur1.getString (cur1.getColumnIndex (contactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); Logs. E ("name:", name); String Email = cur1.getString (cur1.getC...

python 2.7 - Django: QuerySet error -

I have a test scene where one of the data collection questions throws an error that I do not understand. I appreciate it if someone can comment on it and tell me in the right direction. This is my first project project and I am exceeding the learning curve, please bear with me: Code: biz_group = BusinessGroup.objects.get ( group_manager = user)) Group_team = BusinessGroupToTeams.objects.get (group_id = biz_group.group_id) which throws the error: traceback (most recent Only call in the final): File "& lt; Console"; Line 1, & lt; Module & gt; File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, receive refund self.get_query_set (). Get (* args, ** kwargs) file "/ usr / lib / python2.7 / dist-packages / django / db / model / query.py", line 394, found in the num = len (clone) file "/ usr /lib/python2.7/dist-packages/django/db/models/query.py ", line 90, __len___self_come_cache = list (self.iterato...

osx - Can't install rubygems with ruby 2.0.0 -

I am trying to establish RubyGames for hours, but it fails. Error is: RubyGems Installation - 2.0.3 ruby-2.0.0-p0 for ...................... .................................................. .................................................. .... 'env GEM_PATH = / users / Chris / .rvm / gems / ruby-2.0.0-p0: /Users/Chris/.rvm/gems/ruby-2.0.0-p0@global: / running users error in. /Chris/.rvm/gems/ruby-2.0.0-p0:/Users/Chris/.rvm/gems/ruby-2.0.0-p0@globalGEM_HOME = / User / Chris / .rvm / gemma / ruby-2.0 .0-p0 / Users / Chris / RVM / RBI / RUB-2.0.0-P / BB / RUB-D / Users / Chris / RRM / SRC / RBGims -2.0.3 / STPRB - Verbose ', please read / Users / Chris /. RVM / LB / RUB-2.0.0-P / RUBZMS.stol.log (Sorry, if reading is difficult, then I'm not sure how to break it.) rubygems.install.log: Top Rows: [2013-03-21 06: 55:13] / Users / Chris / . R.V.M. / RBI / RUB-2.0.0- P / Bn / RBI Exceptions 'Load Array' / Users / Chris / RRMM / Robies / RB-2.0.0-P.L.L.B...

app store - Difference between iOS Developer Program ($99/year) and iOS Developer Enterprise Program ($299/year)? -

I want to know that the iOS Developer Program and iOS Enterprise Program And my application for the public in the iOS Enterprise program. What's available, I've uploaded other apps in the iOS Developer Program (Appstore), but I do not know how to publish in the enterprise program. Can anyone please help me? In addition to the enterprise program, you have permission to distribute the app within the company and only that company For employees. With a normal iOS developers you can distribute apps only through Appstore.

How to split the vector into small group in R? -

X How can I split x into 500 groups, there are ten numbers in each group? Answer # 1: / P> x y

pagination - ZF2 - PaginationControl $this->route not working -

एक दृश्य में मैं कॉल करता हूँ: & lt; php echo $ this- & gt; paginationcontrol ($ paginator, 'जंपिंग', 'पृष्ठांकन') & gt; यह काम करता है लेकिन pagination.phtml के भीतर paginatorcontrol कॉल: & lt; a href = "& lt;? Php echo $ this- & gt; url ($ This- & gt; मार्ग, ऐरे ('पृष्ठ' = & gt; $ this- & gt; पहले));; & gt; "& gt; पहले $ this- & gt; मार्ग काम नहीं कर रहा है, यह खाली क्यों है? मुझे पगिनक्शन कंट्रोल () के अंदर जाना चाहिए? / P> धन्यवाद अग्रिम में। मुझे paginationcontrol () में गुजरना चाहिए? हां, चौथे पैरामीटर को paginationcontrol एक सरणी को स्वीकार करता है जिसे आंशिक रूप से डेटा के रूप में पारित किया जाता है, आपको वहां का उपयोग करने के लिए मार्ग शामिल करना चाहिए & Lt;? Php echo $ this- & gt; paginationcontrol ($ paginator, 'कूद', 'पृष्ठांकन', सरणी ('मार्ग' = & gt; कुछ / एप / मार्ग '))? & Gt;

css - Variable content width fixed sidebar width layout -

I searched around forums but could not find the exact answer to the question. This is currently a fixed width layout, I want to zoom in my blog layout to adjust the content area flexible width, when the browser changes the width. The main styles that play with me are: #wrapper {width: 960px; Margin: 0 auto; } # Content {padding: 25px 0; } Section {float: left; Width: 660px; Margin-right: 20px; } To be dynamic in maintaining on one side to sit in window radius (float: left; width: 280px;} Em> section change your style to section {float: left; width: 100%; margin-right: -280px;} one side (float: left; width: 280px;}