Posts

Showing posts from April, 2014

linux - Is there an alternative to escaping '/' in vi editor when searching for strings with '/' in them? -

मैं अक्सर अपने आप को /a/b/c/file.txt फाइल में (लॉग फाइल, स्क्रिप्ट, आदि), वीआई संपादक का उपयोग कर। यह आमतौर पर कुछ सर्वर मशीन पर होता है, जिसे मैं एसएसएच का उपयोग कर कनेक्ट करता हूं, इसलिए मैं उन समाधानों की तलाश कर रहा हूं जिनके लिए कोई GUI संपादक की आवश्यकता नहीं है। यह उन सभी / s हर बार जब मैं स्ट्रिंग की खोज करना चाहता हूं जैसे कि फ़ाइल पथ। क्या / का उपयोग करने के लिए vi ? या, क्या कोई ऐसी सेटिंग है जो मुझे इस खोज चरित्र को कुछ और करने के लिए सेट कर देगी? (यहां तक ​​कि अगर यह केवल सक्रिय सत्र के लिए सेट करता है) मुझे पता है कि मैं grep का उपयोग कर सकता हूं, लेकिन vi में एक समाधान अच्छा होगा। / के बजाय आप ? चरित्र का उपयोग कर सकते हैं / p> >, लेकिन फर्क सिर्फ इतना है / ऊपर से नीचे तक आगे की खोज करेगा, जहां ? आखिरी से पहली पंक्ति तक खोज करेगा।

symfony - Roles in login not being stored in User of security context -

I did not find the answer after searching for 2 days and trying many different solutions. I have followed the steps of a tutorial () to create a simple login process, where I have: Table for the user The table for the role Many links between them (user_rol) all mysql tables were created correctly and I also have ORM theory classes If I hand a user Loads from and loads their roles so it works perfectly well But when I use the automatic login {% block body%} {% error%} & Lt; Div & gt; {{Error.message}} & lt; / Div & gt; {% Endif%} & lt; Form action = "{{path ('login_check')}}" method = "post" & gt; & Lt; Label = "username" & gt; Use: & lt; / Label & gt; & Lt; Input id = "user name" type = "text" name = "_username" value = "{{last_username}}" /> & Lt; Label = "password" & gt; Contribution: & lt; / Label & gt; & Lt; Inpu...

Insert csv with variable number of columns for every row into mysql -

मेरे पास यह सीएसवी फाइल है column1 column2 column3 column4 column5 .... row1 value11 Value12 मान 13 पंक्ति 2 मान 21 पंक्ति 3 मान 31 मान 32 मान 33 मान 34 मान35 पंक्ति 4 मूल्य 41 मान 42 मान 43 पंक्ति 5 मूल्य 51 मूल्य 52 सभी मान अलग-अलग हैं प्रत्येक पंक्ति में 1 से n स्तंभ हो सकते थे। मेरा इरादा उन डेटा को सरल MySQL तालिका का पालन करना है: पंक्ति मान पंक्ति 1 मान 11 पंक्ति 1 मान 12 पंक्ति 1 मान 13 पंक्ति 2 मान 21 पंक्ति 3 मान 31 पंक्ति 3 मान 32 पंक्ति 3 मान33 पंक्ति 3 मान 34 पंक्ति 3 मान 35 पंक्ति 4 मान 41 और इतने पर

javascript - ng-change not working with radiobutton -

मेरे पास ऐसा कोड है: & lt; div class = "form-group "& gt; & Lt; div वर्ग = "col-sm-8 col-md-offset-4" & gt; & Lt; label class = "ui-radio" & gt; इनपुट नाम = "radio1" प्रकार = "रेडियो" मान = "ए" एनजी-मॉडल = "$ data.choice" एनजी-परिवर्तन = "ऑनचवाइस ()" & gt ; & lt; अवधि & gt; & lt; / span & gt; & lt; / लेबल & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; div वर्ग = "फॉर्म-समूह" & gt; & Lt; div वर्ग = "col-sm-8 col-md-offset-4" & gt; & Lt; label class = "ui-radio" & gt; इनपुट नाम = "radio1" प्रकार = "रेडियो" मान = "बी" एनजी-मॉडल = "$ data.choice" एनजी-परिवर्तन = "ऑनचवाइस ()" & gt ; & lt; अवधि & gt; B & lt; / span & gt; & lt; / लेबल & gt; & Lt; / div & gt; & Lt; / div & gt; जैसा कि आप देख ...

unicode - How to know what version of ICU comes with an OS? -

They say that ICUs are used on many platforms. But I do not know which version comes with OS X and Windows. In linux I think the package manager will tell me. Update: ICU I do not know that platforms Comes Bundle with ICU Certainly, Windows is not a UNIX-based platform perhaps for one, with some versions of it. If the platform gives the full bundle of the ICU, you can test the version of the ICU using the command: $ uconv -V which version will print. The latest version is 54.1, it looks like: uconv v2.1 ICU 54.1 In addition, if QT is installed in your platform, this is It is possible that it has been compiled with ICU support, but this is not a requirement. If you want to use ICU, then you can probably improve it as a shipping along with your product, as someone's system. There is a regular regular update cycle of ICU, it is likely that pre-installed ICU libraries have expired.

c# - Regex: Find pagenumber from partial matching urls -

As we all know, the razax patterns are the first time you see them in your stomach (or the 10th time you have ever seen Also did not go before head and actually learned it. Quilty.) I am currently reading this, but since I am on a strict time limit, I check here if I can get a faster and better answer / lecture. I have a forum thread, and I want to scan through HTML and find the last page of the thread. Say that I have one of these URLs that recognizes the thread in question: * (full URL of thread) And I want to get all the values ​​(integer) which appear directly after the above (next path) Html - "partial" match in the document. Therefore anywhere from any of the following holes (the doctor is shown as a string): / forum / thread-93912/34 / forum / thread-93912/34 / nothing I want to remove 34 numbers (only 34), so I can parse it int. Edit OK, to make it easy: Say that I html string all numbers x which is my inputstring / fo...

javascript - SWIG template widhout node - it is possible to use it as standalone js library? -

There are some great JS template engines for Django programmers: but it is available for NPN package Node.js. And the file requires a path to render: swig.renderFile ('/ path / to / template.html', {pagename: 'horrible people', writers: [' Paul ',' Jim ',' Jane ']}); Is it usable like other JS / JK library and renders templates with string? Yes, you only use the render (source, option) method can do. var output = swig.render ('{{takos}}', {local: {takos: 'tacos !!!!'}}); Unless you do not mean that you want to run it in the browser, take a look at it.

css - Keep columns with same height -

I try to keep two columns with the same height using the display: table I am here. What did I do: .col-sm-12 on one side. Silent Content and CSS . Col-sm-12 {display: table; Height: 100%; } Separate {display: table-cell; Height: 100%; Width: 25%; Background: green; }. Main-content {display: table-cell; Height: 100%; Width: 75%; } worked fine but when I added content on one side, the content goes down First of all, you should use the bootstrap grid instead of percents in width. That said, to get two floating (and dynamic) columns for the same height, you can use this trick: set Overflow: hidden at column origin li> add margin-down: -5000px; Working in the padding-down: 5000px example ( I -xs instead of -sm Example only ): . Wrapper {overflow: hidden; } On one side (background: Forrestgreen; padding-bottom: 5000px; margin-bottom: -5000px;}. Main-content {background: tomatoes; padding-down: 5000px; margin-bottom: -5000px;} & lt; link...

jmeter - Mobile load testing -

Weather requires load to test for the weather? My application is basically of the client server application, load testing is actually the case in mobile applications? You can load the test of web services (if any).

AngularJS, Add Rows -

Image
In the morning, We are trying to implement this line of addition, it seems Does it seem to repeat our input data? Does anyone know the solution to preview a duplicate field to add a unique ID? This is our current and example. $ scope.addRow = function () {var row = {}; $ Scope.productdata.push (line); }; $ Scope.removeRow = function (index) {$ scope.productdata.splice (index, 1); }; $ scope.formData You have no array, but only one object is that all your rows are bound to that object and so they all refer to the same data . The reason that you add a new line is that your ng-repeat $ scope.productData and you add additional records to it. A simple example: In your template & lt; Div ng-repeat = "Products in the product" & gt; & Lt; Input type = "text" ng-model = "product.title" & gt; & Lt; / Div & gt; In your controller $ scope.addProduct = function () {var product = {}; $ Scope.productData.add...

ssl - HttpsUrlConnection with SSLSocketFactory class takes too long to connect in Android -

I want to use the TLS protocol in Android with HttpsUrlConnection . For this, I'm overriding the SSLSocketFactory class and setting the TLS protocol by using the setEnabledProtocol () method. Then I am using SSLSocketFactory in HttpsUrlConnection connection.setSSLSocketFactory () method. HTPS URL connection connection = (HTPS URL connection) url.openConnection (); SSLSocketFactoryEx SocketFenture = New SSLSocketFactoryEx (); Conn.setSSLSocketFactory (socketFactory); Conn.connect (); Here SSLSocketFactoryEx has been derived from my custom class SSLSocketFactory class. Inside the SSLSocketFactoryEx class, I am setting the setEnabledProtocol () method with the TLS protocol. The problem now occurs when I take more than one second to connect to SSLSocketFactory class, HttpsUrlConnection . According to the link given below, there is a bug related to reverse DNS in Android, due to which it takes time. I followed the approach described to fix this issue but st...

MySQL stored procedure will execute but conditions not working -

MySQL will perform the stored procedure, but the conditions are not working Can anyone clear this problem? Do not check the empty value or from the position does it require replacement for or ? DELIMITER $ DEFAINER = `RBAR` @` %` process' progress in search` (Client ID Benefit, GCN name varchar (250), TeamID int, USPMID Bigint, JobReceivedDate datetime, Importance ID Bigitt ) Select * from * jobdetails * (Client = ClientID or ClientID = "") and (GCName = GCName or GCName = "") and (TeamID = TeamID or TeamID = "") and (Received date = JobReceivedDate or JobReceivedDate = "") And (ImportanceID = Importance ID or Importance ID = "") and (JobIDO (JobCoordinator select job for the country, where USProjectManagerID = USPMID)); I think this can be a bracket It (Clientid = ClientID or ClientID = "") can be written in such a way (clientid = ClientID) or (ClientID = "") Its justa thought I could...

security - Penetration test for J2EE web application -

I have a J2 EEE web application, and want to conduct the entrance exam. I have got some tools by gogging, but some experts have the opinion that if any entry / free admission entrance, if someone is in the entrance examination, please tell me your experience and suggestions Thanks in advance. I have some tools, so stop this question.

html - php update certain fields to database -

I am trying to work on an inventory system where the user sees their inventory and update volume as input by the user Only the rest of the database can be the same. But this is not working, please help me figure out where I was wrong. This success will refresh the message but the database will not be updated. & lt; Form name = "form" method = "post" & gt; & Lt; Table width = "70%" range = "5" align = "center" & gt; & Lt; Tr & gt; & Lt; Th scope = "row" & gt; SKU & lt; / Th & gt; & Lt; Th scope = "row" & gt; Item Details & lt; / Th & gt; & Lt; Th scope = "row" & gt; Current legality & lt; / Th & gt; & Lt; Th scope = "row" & gt; Update volume & lt; / Th & gt; & Lt; Th scope = "row" & gt; Unit Price & lt; / Th & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Th scope...

jquery - Full Calendar places all events to early -

Well, trying to work my whole calendars with Ajax and a database. All events related to all its workings have been shown an hour ago: Example of Organizing: {title: ", start: '2014/11/08 02: 00 ', end' 2014/11/08 09: 30 ', details:' ', id:' 10 '} This event is displayed in one hour while viewing the calendar Started like this: Start: 2014/11/08 01:00 end 2014/11/08 08:30 I saw my database and my source and output For the first time. (Starting at 02:00) My calendar set with the following time format (The form of the site has been taken): $ .fullCalendar.moment ('2014-05-01T12: 00: 00'); Why are my incidents happening an hour ago? Confong request: $ .fullCalendar.moment ('2014-05-01T12: 00: 00 '$' ('# Calendar'). Complete Calendar ({Header: {Left: 'Previous, Today's Next', Center: 'Title', Correct: 'Month, Agenda Wiic, Agenda Day}, Default view:' Agenda Vick ', Ax...

javascript - Append Hidden input fields and bind them to the Model -

I am using a 3rd party file uploader (backlog) to upload images; Javascript to get the uploaded image name I want to pair the list of image names in my MVC model. My requirement is to dynamically create hidden information when I submit the form. I know, I have to use sequential binding with loop. Can someone help me use appropriate syntax to achieve this? It is for (int i = 0; i & lt; noOfImages; i ++) {& lt; The input type = "hidden" should be similar to the name = "model. Images [I] .name" value = file. Name / & gt; } (Please note that I do not want Ajax solution for this and please show me the code to use in my razor view or if there is any other better solution, please let me know). . Thank you. Public Sector Madmodel {Receive Public Entry ID; Set; } Public string name {get; Set; } Public virtual iconging & lt; ImageModel & gt; Images {get; Set; }} Public Class ImageMeld {Receive Public Ent ID; Set; } Public string name {get; Set; }...

Ruby - MySQL server has gone away (Mysql2::Error) -

This is a duplicate question: The answer related to this question is not helping me in any way. Please help me get rid of this problem. MySQL query: insert_query =% {my_table INSERT (`my_column`) VALUES (" # {my_value} "}}. Gsub (/ \ s + /, '') Customer = Mysql2 :: Client.new (: host = & gt; 'localhost' ,: username = & gt; "# {ENV ['MYSQLUSERNAME']}",: password = & Gt; "# {ENV ['MYSQLPASSWORD']}") client.query ("USE 'my_database`;") client.query (insert_query) inserting values ​​into my_column Meanwhile, I get an error "` query ': MySQL server has gone away "(Mysql2: error) . My_column has MEDIUMTEXT data type and encoded string values ​​will be stored in it if encoded Gaya (Base64.encode64 Ruby ) The string character count is higher (more than 100,000 or 100,000,000) so I am facing an error but if the encoded string length is less then it works well. I wait_timeout and ...

gruntjs - Grunt: flow control -

From my own work, I use the QTa-prompt to ask a Boolean Q Do not want to run or run any work based on the answer. The problem is that grunt.task.run () does not actually run a function, but adds it to the queue. P> So if I do my work: grunt.task.run ('hint: ask'); If (grunt.config ('answer')) {grunt.task.run ('do: something'); } If implemented quickly then really did not work ... Is there any recommended way to do this? Just like some syntax: grunt.task.run ('prompt: ask'). And then (function () {if (grunt.config ('answer')) {Grunt.task.run ('do: something')}}} Note: : Check whether the difference is from grunt.task.run After answering, you must use the plugin to execute the code: prompt: {ask: {option: {question: [// your question here ... ], Then: function (result) {if (result [0]. Whatever) {// Clearly you will need to update this ... grunt.task.run ('hint: ask'); }}}}}

Integrate TFS GIT repository to CruiseControl.Net -

Support the latest section cruise control in your section of "tfs" and "git" types. Which use to get the source from the "GIT" repository located on the Team Foundation Service? The TMS option has the option to specify the username and password to log in to the repository, but there is no branch option in it. GIT option has no password () What will be the section configuration? When you are connected to a gigantic stock, you need to have cruise control. The Git option should be used in the net. The TFS option is used only when you can connect. You can do it. And remember to keep basic authentication running for your VSO account. .

c# - .Net Database how do I properly close my database connections? -

So I've read a lot about SqlDataReaders are not being dealt with properly - and I "expire the timeout The timeout period had expired before getting the connection to the pool, it could be because all the pool connections were in use and the maximum pool size "error for a few days" obviously I could jack the maximum pool size up to 30,000 I do not solve the real problem. As I step through the code, I execute the following SQL query: Select from sys.dm_os_performance_counters where counter_name = 'user connection' after cmd.Connection.Open (); line, the user connection has increased by 1. However, it does not return until I recycle the app pool on the web server (at which point all the active database connections from the website are killed). This is my The code is: public static datatable SPExecuteDataTable (string [] connection data, parameters object [] args) {SqlConnection conn = null; SqlCommand CMD = Faucet; SqlDataReader dr = fauce...

sql - How to run this query on Oracle Developer? -

I have this query as part of the PowerShell script and it runs fine on SQL Server but fails on Oracle Select When OBJECT_ID (N'INTERFACE_DEFINITION ', N'U') is Zero, then 0 and 1 end Here is an error: ORA -00923: Not Found by Keyword Thanks "text"> Select the case when 'A' & gt; 'B' then dual to 0 and 1; Dual table is present in each oracle database. This particular table contains only one column column named Dummy, and has a datatype of VARCHAR2 (1). The dual table has only one line in that row, there is a value in the Dummy of 'X' The purpose of the DUAL is simple - when you do not want to receive any data specifically, its Instead there is something to do to run a SELECT statement, but instead it is only willing to run a SELECT statement to accomplish some other work. is making sure that any object exists: OBJECIDID (N'InterFACDFININT, 'N'U') In Oracle, you can use this query: ...

ruby - Rails 4 actionmailer not sending emails -

I have tried everything I can think of sending email with rail 4.1.6 (local development) Nothing is working. I have the following in my development using postmark. Rb and application.rb: config.action_mailer.default_url_options = {host: 'localhost', port: 3000} config.action_mailer.delivery_method =: postmark config.action_mailer.postmark_settings = {: api_key = & Gt; API_KEY} config.action_mailer.perform_deliveries = true and I have tried GMAIL: config.action_mailer.default_url_options = {host: 'localhost', Port: 3000} config.action_mailer.perform_deliveries = true config.action_mailer.delivery_method =: smtp config.action_mailer.smtp_settings = {address: 'smtp.gmail.com', port: 587, domain: 'gmail.com', user_name: My_email ', password:' my_password ', authentication:' plain ', enable_starttls_auto: true} My mailer class looks like this: Category BusinessMailer & Lt; ActionMailer :: Base default: "my_e...

email - How can I add an image header to my php mail form? -

Then I have a standardized mail form that contains some generated details, along with the header image. I am trying to learn how to add an image to the text form when I send it. I have $ img_path = 'image12.jpg'; // announcement ($ line = mysql_fetch_array ($ result)) {resonant "& lt; tr & gt;"; $ EmailContent = str_replace ("\\ r \\ n" "", $ line ["generic_email_text"]); Echo 'test'; Echo '& lt; Td width = "450" ​​& gt; & Lt; Textarea name = "genericemail" & gt; '. $ Img_path $ EmailContent '& Lt; / Textarea & gt; & Lt; / Td> '; Echo "& lt; / tr & gt;"; } Resonates "& lt; / tr & gt;"; Echo "& lt; / table & gt; & lt; p & gt;"; I tried to add img_path to do this but it will not work. I'm moving forward with some ales code which I always find difficult I get it with IMG's name (...

javascript - Method will roundoff the final sum to 2 decimal places - jquery -

मेरे पास यह कोड है: & lt; स्क्रिप्ट & gt; $ (Document) .ready (function () {function compute () {var a = $ ('# a')। Val (); var b = $ ('# b')। Val (); var total = a * B + (8/100) * a; $ ('# total')। Val (कुल);} $ ('# a, #b')। परिवर्तन (गणना);}); & Lt; / script & gt; ¿के रूप में मैं कमांड (.toFixed) का उपयोग कर सकता हूं? हमेशा गोल प्रदर्शन करने के लिए राशि को दो दशमलव स्थानों पर समाप्त हो जाएगा। धन्यवाद। आप ".toFixed (2)" का उपयोग कर सकते हैं, यह हमेशा दो दशमलव के दौर का होता है हालांकि यह फ्लोट / दशमलव संख्या के स्थान पर एक स्ट्रिंग लौटाएगा। काम करने के लिए आपके उदाहरण कोड का लिंक देखें

how can i get the current dom after javascripts made changes to the html source with selenium in java? -

I have read many posts about this, but I have not found the solution yet. Maybe I am so dumb, in that case, please tell me that I like it: D This is my first question which I post here, so be good: D My problem is, I use Selenium to open some websites and click some buttons. After that, I get the source of the page and I should parse it for some content with Jessup. This works, but the pages where I do not get the current domain, but the page was sent as a source by the server before. I can click on the stuff added by Javascript, so Selenium knows that they are there. But I can not find the whole HTML code. So basically, my question is: How can I get with Selenium, when I right click on the page and click on viewing the page source? Because what I am seeing, when I execute the getpagesource () method, what do I get from then on People answered some questions: Like I have to wait, I have to execute javascript by myself. .. but it does not help me to be honest. The button is ...

sql - Check for equality on a phone number inputted in a variety of formats -

is a phone number table that stores the number in the form of user input (eg 555 555 5555, 555-555 -5555, 555.555.5555) We register those numbers with a 3-rd party service, then the consumer is one of our web services, but only 10 points (5555555555) Offers. > I have to find a match, but my records need to filter non-alphanumeric characters. I added a function that draws non-alphanumeric characters here: I have the following, but I always get 0 records, although I have 555 for a record in the table -555-5555 is the value: SELECT COUNT (*) FROM [dbo] [Phone number] WHERE [DBO] [RemoveNonAlphaCharacters] ([number]) = '5555555555' Em> non-alphabet characters are sorted out like this: create function [dbo]. [RemoveNonAlphaNumCharacters] (@Tharm Verarkar (8000)) Announcing the return as VarChar (800) @KeepValues ​​varchar (50) set @KeepValues ​​= '% [^ A-zA-Z0-9] % 'While Pat Index (@ Child Wells, @ Temple) & gt; 0 set @Temp = Stuff (@Temp, Pa...

Adding records from two SQL Server tables that are unique on one column -

I have two tables in a SQL Server database, which contain letters with a post and one of the documents sent electronically Is one. / [P> Make Table [DBO]. [DocumentTransmission] ([PatentNumber] [varchar] (50) null, [filename] [varchar] (512) No tap, [infected datetime] [datetime2] (3) tap, [gpc] [Date] [50] Null, [status] [Wakahar] (50) Null, [email address] [Varchar] (64) NULL, [DateTimeAdded] [datetime2] (3) NULL) [Primary] The other table is called DocumentPrint > me DocumentTransmission And only need to select the record from DocumentPrint , where files Name appears in no DocumentTransmission - and I can not seem to know how to make DBA cry early because it is very slow - How do you suggest that it is done. there is no adding a record to SQL However, you merge Two (or more) SELECT results can be combined with a UNION . Something like this: Choose from * Select Document Transmission Union * From Document Print Since you want to exclude ro...

Example of how to do TODO Filtering in Webstorm -

Image
So I'm trying to figure out how to filter my Todo list when I see it now in 527 Most of which are in my libraries I saw it but in fact I felt the need for an example. I would like to be able to write something like this in my code: // TODO name Then when I go to Todo tab I can only see those people, I get an example in . Basically I need to create a pattern: \ btodo name \ b. * Then make a filter and select that pattern.

jquery - Writing custom validator to confirm email fields with formvalidator.net -

I am using the jquery form validation plugin, it works right, but still I have to confirm / There is a small problem in writing a custom validator to compare. I have the "MEMmail" field and the "confirm_mEmail" field in my form. I & lt; Label & gt; Email: & lt; / Label & gt; I need a custom verifier to ensure that both of them confirm the email address. ; & Lt; Input id = "mEmail" type = "text" name = "mEmail" size = "50" data-verification = "email" & gt; & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div class = "form-line" & gt; & Lt; Label & gt; Confirm Email: & lt; / Labels & gt; & Lt; Input id = "confirm_mEmail" type = "text" name = "confirm_m email" size = "50" data-verification = "email" & gt; & Lt; Br / & gt; & Lt; / Div & gt; is an example of a custom Vedi...

aem - CQ5 prevent deleting of a page -

I think if the resource is no longer available, then catching an event removed after a page's removal There is no way. My problem is that if I click on the deleted button for a page on the local 4502 / siteadmin console, I get a removable event, but catches During the time, the resource "text"> until you decide Do not want whether a user should not be able to delete the page to use ACL to define such barriers or not? See the official document: ,, On the other hand, if you need processing then you may want to stop the action by including the request or overriding someone. For more information, take a look at your developer console in the browser and check the request that will be clicked on the Delete button.

testing - Checking Multiple Integers in Python 3 -

Recently I have found a method to test whether a variable is an integer or not in Python 3. This syntax is like this: Try: a = int (a) Excluding ValueError: Print ("See" Index is not a number: o (It probably does not break much in this version However, people who are after! ") Error = true However, when many variables are tested, it quickly becomes horrible: def integerChecker (a, b, c, d): # is an index, b is the end time, c is the distance, try the speed limit global error: a = int (a) ValueError: pri Nt ("See out! Index number is not: o (This will probably not break much in this version, maybe later in the!!)) Error = try the truth: b = int (b) ValueError: print (Try out "end time is not a number: o") try error = true: c = int (c) except valueError: print ("look! Distance is not a number: o") error = try the truth : D = int (d) except ValueError: print ("see, speed limit is not a number: o") error = the source Yes It ...

MATLAB Code - Color Image Histogram -

I want to create a color bar histogram of an image which has been adapted to adaptive color quantization with each channel. = 16 bins i.e. all q q q = q3 = 16 * 16 * 16 = 4096 in compartment I show the box of histogram bars to show the box, the average color of the pixels present in the respective box Arrange in descending order of number of pixels to histogram bars The want to. Can this histogram be generated through MATLAB functions & amp; Sentence - Configuration? I would highly appreciate peer support / assistance in this case. It is within the capacity of imhist (), I think.

python - Pandas Pivot Table alphabetically sorts categorical data (incorrectly) when adding columns parameter -

I was annoyed with Pandas Pivot function. I am trying to pitch sales data during months and years - - Name of the month - Year One - 100 - January - 2013 One - 120 - January - 2014 b - 220 - January - 2013 Customers: Datasets are as follows / Month>]. ('January', 'February', 'March', 'Apr', 'May', 'Jun', 'Jul', 'Aug' '] When I use the Function : pt = dataset.pivot_table (value = "sale", index = "month") I get the result of the hope month January 3,620,302.79 February 3,775,507.25 March 4,543,839.69 However when I sorted the pivot month alphabetical order throughout the year and month . print dataset.pivot_table (value = 'sale', index = "month", column = "year", a Ggfunc = "yoga") year 2011 2012 2013 months April 833692.19 954483.28 1,210,847.85 1,210,926.61 August 722604.75 735078.52 879905.23 1,207,211.00 December 779873.51 1,05...

extjs - Pass parameter out from Ext.window.Window to an Ext.panel.Panel on close -

मेरे पास एक कस्टम विंडो है जिसमें कस्टम Ext.panel.Panel ExtJS 5.0.1 का उपयोग कर रहा है। कस्टम पैनल पर दिखाए गए आइटम को क्लिक करने पर कस्टम Ext.window.window एडिटिंग के लिए आइटम दिखाता है। कुछ पाने के उद्देश्य के लिए तरह का उत्तर, या अपनी स्थिति के लिए एक प्रारंभिक बिंदु, मैं मानक एक्सटेंशन घटकों के लिए पूछता हूं। कस्टम विंडो को बंद करने पर, कस्टम पैनल में एक वेरिएबल को अपडेट करने की आवश्यकता होती है जो कि परिवर्तन बना दिया गया है। विंडो बंद करने से पहले पुष्टि संदेश के लिए यह एक अलग आवश्यकता है; विंडो डीबी को सूचना की बचत को नियंत्रित नहीं करता है, लेकिन किसी अन्य घटक को यह जानना चाहिए कि बदलाव किया गया है। यह एक बूलीयन असंबद्ध परिवर्तन को सेट करने के लिए उतना सरल होना चाहिए पैनल पर true यदि विंडो की जानकारी बदल दी गई है; मैंने इसे एक सरल पृष्ठ पर किया है, जिसमें अतिरिक्त विंडो को एक बाधा के रूप में नहीं मिला है। खिड़की के उपयोग के कारण, कोड> this.up या this.lookupReference शून्य पर लौटता है, या एक त्रुटि फेंकता है। मुझे पता है कि मैं पृष्ठ के अभिभावक के...

C# Events Multiple Publishers to One Subscriber -

I have a code that has two event handlers, I want to inform these two event handlers another method That's something to do. I have applied it through manual reset avenues, but I am sure what is the best way to achieve it, or if there is a better way. Static Manual Reset Event AutoEvent = New Manual Retset (incorrect); Zero Start () {ThreadPool.QueueUserWorkItem (New WaitCallback (genericHandler)); } Zero OnEvent1 (object sender) {autoEvent.Set (); } Zero OnEvent2 (object sender) {autoEvent.Set (); } Zero generichandler (object information) {while (true) {autoEvent.WaitOne (); // do some work}} I have one of the most important questions: After autoEvent.WaitOne () , I do some work and this Work uses Pahl. Meanwhile, another incident has started, and set () is said before the normal handler WaitOne () again when WaitOne reaches again This will wait for another set () or set () is said before reaching WaitOne () when proceeding? Is the best way to implement mul...

javascript - 'href' Not Showing Output on Click -

I am trying to expand a href link / display additional text when I click, but when I click I do, nothing happens. When I run the html code, I can click on the link but it does not show text for some reason why any thoughts? This code is: & lt; Html & gt; & Lt; A href = "# 1" onclick = "$ ('divID'). Toggle ();" & Gt; Click to expand & lt; / A & gt; & Lt; Div id = "divid" style = "display: none;" & Gt; It has been expanded & lt; / Div & gt; & Lt; / Html & gt; I try to keep the code as low as the code above will be repeated hundreds of times for each link. Assume that you are using jQuery, you are misusing the CSS selector. Your line should be: & lt; A href = "# 1" onclick = "$ ('# divID') Toggle ();" & Gt; Click to expand & lt; / A & gt; Any element with # in #divID id of divID Code>, while divID tags (such as ...

eclipse - Android app is stuck installing not from Google Play -

I have an app that uses push notifications via parse.com and posts it to the server . The app works well with Eclipse, but when I try to install it from a download via a link in the browser it gets trapped. I am using this line which extends into the class according to parse tutorials: parsing installation.stustant installation (). SaveInBackground (); It is stuck on this line and does not get as per my logs. Does anyone know why? After dealing with this for a while, I came to know that all started in the application class, but I am saving it before posting with it. ParseInstallation.getCurrentInstallation (). Save () instead of ParseInstallation.getCurrentInstallation (). SaveInBackground (); The difference is that Infocation creates a different thread to save infantation and another thread protects it without making the responsibility of thread thread. So I have a thread that keeps all the apps out of my app and I saved the save () in that thread. Who worked for ...

algorithm - Knuth the art of computer programming ex 1.1.8 -

I can not understand the meaning of what it means in my instructions for exercise 8 from chapter 1.1. This task is to create an efficient GCD algorithm for its notation theta [j] using two positive integer m and n . >, phi [j] , b [j] and a [j] where theta and phi strings and a And b - positive integers that represent computational step in this case. An input a ^ mb ^ n My question is How to use it for directions Along with it the algorithm can be associated with the original r (with the rest) | Mn | and replaced by n replaced by min (m, n)) . When Knuth says, "input to string one ^ mb ^ n ", What does it mean that the input should take the form of m number a s and n number b S Ab . Take a moment to look back on your equation 3 in that chapter, which shows someone. (Σ, j_)) = (σ, a_j) = (αφ_jω, b_j) if α does not contain θ_j (σ, j)) = (σ, a_j) f ((σ, j_)) = At least the string for which σ = αθ_jω f ((σ, N)) = (σ, N) ...

jquery - window.load only works on refresh -

मेरे पास यह jquery कोड है: $ (window)। Load - & gt; $ ("# परिचय H2")। SlabText viewportBreakpoint: 0 लेकिन यह केवल कोड को कार्यान्वित करता है जब मैं पृष्ठ को रीफ़्रेश करता हूं। इसलिए जब मैं एक लिंक पर क्लिक करता हूं और फिर अपने मुखपृष्ठ पर वापस पाठ slabtext द्वारा प्रदान नहीं करता। मैं कोड को $ (window ) .लोड करें - & gt; क्योंकि अगर मैं इसे $ (दस्तावेज़) में डालता हूं .ready - & gt; मेरे सीएसएस द्वारा फोंट लोड किए जाने से पहले कोड निकाल दिया जाता है जो इसे विफल करने के कारण होता है आपको फॉन्ट को html HTML अनुभाग में या फिर दस्तावेज़ में गतिशील रूप से (और सिंक्रोनस) लोड करना चाहिए। आपके कोड से ठीक पहले, क्योंकि उस स्थान पर जहां प्रारंभिक कोड का संबंध है

please help me for loop c++ i don't to run it -

I can not write a code for loop c ++, I want it 1 21 321 4321 But I do not write this way. #include & lt; Iostream & gt; using namespace std; Int main () {int num; CIN & gt; & Gt; Number; (Int i = 1; i & lt; = num; i ++) for {for (int j = 1; j & lt; = i; j ++) {cout & lt; & Lt; J; } Cout & lt; & Lt; Endl; } Cin.get (); } It outputs: 1 12 123 1234 12345 123456 1234567 12345678 123456789 for (int j = i; j> = 1; j-- div = "post-text" itemprop = "text "> ) And it will work.

bash - Use variable inside double quotes inside single quotes in sed -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मैं एक के लिए खोज करना चाहता हूँ स्ट्रिंग एक स्थितिबद्ध पैरामीटर द्वारा दिए गए दोहरे उद्धरण में संलग्न है। यह मैंने किया है: #! / Bin / bash FOO = $ 0 sed -i / "$ {FOO}" / बार / मी file.txt न तो "$ FOO" और \ "a $ {FOO} \" / काम नहीं करें मुझे पता है कि चर के विस्तार के लिए, आपको पूरे रिजक्स को दोहरे उद्धरण () में जोड़ना होगा बात यह है कि जिस स्ट्रिंग के लिए मैं खोज रहा हूं वह भी दोहरे उद्धरण में संलग्न है, यही कारण है कि मैंने संपूर्ण रीगेक्स को सिंगल कोट्स में रखा था। मैंने इसे दोहरे उद्धरण चिह्नों में शामिल करने और दोहरे उद्धरण से बचने की कोशिश की, लेकिन यह काम नहीं कर रहा था। P> sed कमांड के रूप में sed कमांड का प्रयोग करें sed -i "s / \" $ {FOO} \ "/ bar / m" file.txt टेस्ट: $ इको $ बी हैलो $ इको \ "हैलो \" | Sed "s / \" $ b \ "/ asdf /" asdf

c# - Get Email Addresses From Exchange Given DirectoryEntry -

I am piping through all the users of our AD environment and reading their email address so that I do not have any other Can be updated in system. I am using the System.DirectoryServices library below. Simplified example What do I know is that the mail attribute is not always correct and it is often missing, though the user Has a valid mailbox setup and functional in exchange. So, the question is that DirectoryEntry is given, instead of reading the mail attribute, to list the user's primary email address (and ideally a surname) from the exchange Any way I have seen something, but they do not look credible either. I am looking for a solution that comes directly from the exchange. No other-and-or-this is their email address about this directory finder search = new directory finder ("(and (mail = *))"); Search. Page size = 1000; Search.PropertiesToLoad.Add ("Mail"); Finding results in SearchResult Search (FindAll ()) {DirectoryEntry entry = result.Get...

python - Why is assigning the result of print an invalid syntax? -

सरल कोड: & gt; & gt; & gt; A = print ('foo') फ़ाइल "& lt; stdin & gt;", पंक्ति 1 a = प्रिंट ('foo') ^ सिंटेक्स त्रुटि: अवैध वाक्यविन्यास क्यों? क्या प्रिंट को कोई भी वापस नहीं करना है? प्रिंट के बारे में इतना खास क्या है? नोट: इस बात का कोई मतलब नहीं है, बस यह समझने की कोशिश कर रहा है कि यह विशिष्ट कार्य इस तरह से प्रतिक्रिया क्यों करता है। पायथन 2 में, प्रिंट एक बयान है यह फ़ंक्शन नहीं है और इसमें "परिणाम" नहीं है हालांकि, आप इसे __future__ import print_function से करके एक फ़ंक्शन बना सकते हैं, और फिर आपका उदाहरण काम करेगा। (पायथन 3 में यह हमेशा फ़ंक्शन होता है।)

android - Only three records in SQLite database at a time -

I am developing an Android application in which I need to keep a record of the three most recent actions the user made on the screen I have these records stored in the SQLite database. I want to implement a specific feature, such as whenever a fourth action is taken, the least recent record automatically changes with the new one. I discovered some ways to limit the number of rows, one of them was to use the trigger in the database and I am not very familiar with the use of the trigger. Please help me implement the functionality. according to your post, I think that 3 is the only arbitrary number that you said. You have a large database and you want to restrict numbers or rows with a specific limit. Use the trigger below Trigger trg 1 when the table 1 Press INSERT (Select number (*) from Table 1, delete from BEGIN Table 1; WHERE _id = (SELECT min (_id) from Table 1); Even Assuming that _id is the identity column, it should work. If you do not want to use _ID, the...

javascript - CoffeeScript curiousity about splat & this implementation -

Therefore, looking for some code with functional & amp; Shredder as its driver .. I am looking at the Spelat usage of this conference, and although I am "watching" in compiled javascript, I have not found any mention of docs etc. .. "Split usage for coffeeclubs at the end of the line (see below). For example, we have: flip = (f) - & gt; (Eg ...) -> F. as.reverse () ... compiled: flip = function (f) { Return function () as in {var as; as = 1 & lt; = arguments.length? __slice.call (logic, 0): []; return f.apply (empty, as.reverse ());}} ; Now, I understand that "as ..." is being used in this form: like = 1 Taking arguments and giving them "h . " But, the one who is not wrapping over my head, it is used here: -> F as.reverse (). ..include "..." If I delete it ('...'), then the "applied" gets compiled. .. So, what is the conference to use "..." and I remember this conc...

c++ - What is a proper way to implement is_swappable to test for the Swappable concept? -

I will consider the "proper" implementation for is_swappable for the following: Template & lt; Square t, square u = t & gt; Straight is_swappable & lt; T, U & gt; : / * See below * / {} is_swappable if T and U are, otherwise than I have tried many things, but SFINAE just does not seem to work. This is a particularly nasty counting example: struct A {A () {} ~ A () {} A (const A & amp;) = delete; A (A & amp;) = Deletion; }; Not explicitly a , but with any generic solution I can not handle the example coming up properly. I have tried a SFINAE implementation, but did not work as seen: Namespace with_st_swap {std :: swap; Template & lt; Class t, class u, square = manifesto (swap (std :: declval & lt; t & gt; (), std :: declval & lt; u & gt; ())) gt; Std :: true_type swappable_test (int); Template & lt; Class, orbit & gt; Std :: false_type swappable_test (...); } Template & lt; Square t, class u =...

osx - Cocoa Storyboard Responder Chain -

Image
The storyboard looks like a great solution for the coco app because I like the similar method in you iOS. However, there are a lot of logical emotions when breaking things in different view controllers, I'm not sure the window controller (toolbar button) or view the interval of menus to see the controllers who care about my app representative Is the first responder and receives the menu or toolbar functions, however, how can I access the controller that I want Need to get the land? Can you drill down only in the visual controller hierarchy, if so, you can get there from an app representative, because it is the first responder? Can you make the window controller first responsive instead? if so, how? In the storyboard? where? Since this is a high level question, it does not make any difference, however, if you are thinking then I am using Swift for this project. I'm not sure any " justified " is the way to resolve it However, I have come up with a solution t...

Offset key WORD for cipher in Python -

So I'm halfway through computing GCSE controlled evaluation in school. I have completed a task that was to create a Kaiser cipher of my controlled evaluation that encrypts the message by changing each letter from a significant number in the message that the user must enter. The task is to do this, but a key word. This means that the keyword string should be multiplied, unless the length of the message is the same, the user who enters (part one). For example: Keywords = GCS User Message = Hello, my name is Jake The keyword should be multiplied so that it is so Let's see something. gcsegcsegcsegcsegcsegc Hello, my name is Jake Now the message above and the key word The length (22 characters, though they do not see it) Next, each esque value of each letter should be combined together, which means that the first letter of each string is added together , Then the second, then the third etc. Until the program completes this process, each letter in the me...

css - equivalent of omega() in jeet? -

Using jeet.gs, two of my squares above each half of the total width of my parent's container takes away. Something (stylus notation): . Varper .alpha .beta col (1/2) Now, when I write something like this in the jade: . Wrapper .alpha p no.1 .beta p no.2 .alpha p no.3 Then the line does not wrap properly: "No. 1" ends in a line, "No. 2 "And" number 3 "ends the second line. I want "No. 1" and "Number 2" on the first line, and "Number 3" on the second line. Why is this happening? Do I need to clean? Are there things like Omega in the world and clean? What is the other way to offset? You need to clean. Wiper If you are using Nibb, you can use it: . Wrapper clearfix () Otherwise you want to make your own mix and use it. After clearing > clearfix () zoom 1 & amp;: before, & amp;: content display table After & amp;

arrays - Compiler errors -

After reading the shoot, I have started playing with Goolg. And I'm trying to make a simple TCP chat I have created a user structure, and I want to listen to every user interband channel from the user array. I know that the problem here is with the writeUser () function after waiting for the IUserbound. I get such errors from the compiler: ./ chatserver.go: 22: syntax error: unexpected LCAN, expected) ./chatserver.go : 25: Non-declaration statement outside function body ./chatserver.go31: Non-declaration statement outside function body ./chatserver.go:32: Syntax error: unexpected You have tried to navigate your function Channel on user in signature: func recieve (user.inbound chan string) {// ^^^^^ - that part is incorrect You can not take an object's property into such a function logic - it really does not make sense. What will you do with that channel I will leave you (you do not seem to have anything in the function with it). Other errors a...

jquery - How to get the class name of a child element with content “XX”? -

How to get the class name of a child element with the content "This is active"? I know the id name 1 with the original element div . & lt; Div id = 'name1' & gt; & Lt; Div class = 'name 2' & gt; & Lt; Period & gt; & Lt; One square = 'active name a' & gt; It's active & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = 'name1' & gt; & Lt; Period & gt; & Lt; One class = 'no-active' & gt; Not active & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; You can try this approach: warning ($ ("A: happens ('this is active')"). Et ("square"));

javascript - Knockout and Kendo Datetimepicker resets date to today when changing time -

I have a page that uses the Condo Datetime picture to force a knockout view. I am using knockout-kendo.js for bridging. I As you can see in it, I have set the scene in the initial times with the time of today's date. I set the value later (as if it was loaded with an AJAX recovery, I did not want to deal with Eco API at JSFiddle) var SchedulerAppointmentModel = function () {var self = it , Saved = [], initComplete = false; Self. StartDatabase = Ko.SourceWeb (moment (.) Format ("MM / DD / YYYHH: MM A")); Self.StartDateTime (moment ("10/23/2014 1:30 pm"). Format ("MM / DD / YYYH H: mm A")); }; The problem is, if I change the time in my drop down box, reset today's date I wanted to leave the date alone I think That it is doing nothing to set the candodetight picture in the code and not in the HTML. I think if I can set the max in some way then it will work. Not sure that you still need an answer, but ... I think that you have drag...

python - Numpy vectorized less than/greater than comparisons -

I have some code that they meet the quadrangle of the circle which they fall. It currently gives me the results that I want, but I am trying to lose the loop to make full use of the numpy speed. The fourth part of each circle is the center of spawn_angles = np.array ([3, 10, 80, 100, 170, 190, 260, 280]). np angle = np.array 0, 90, 180, 270]) segment_degrees = np.diff (spawn_angles) [0] lower_bounds = spawn_angles - (segment_degrees / 2) upper_bounds = spawn_angles + (segment_degrees / 2) max_upper = upper_bounds.max () # Wrap back negative Angle angle angle angle greater than the upper limit of angle & gt; Max_upper] = = 4th part of the 360-quad = np.zeros_like (angle, dtype = np.float64) # that fourth part that does not get calculated # Just want to ensure invalid numbers will be assigned, i.e. -1 quadrant.fill (-1) For segment_num (lane (spawn_angles)) in range: in_segment = (; lower_bounds [segment_num]) & amp; (Angle & lt; (angle & gt upper_bounds [segment_n...

.net - C#, use reflection to get each case name in switch -

यहां स्ट्रिंग शब्दशः स्विच कथन का एक अनुरुप उदाहरण है: स्थिर स्ट्रिंग GetStuff (स्ट्रिंग) कुंजी) {स्विच (कुंजी) {मामला "thing1": वापसी "ओह नहीं"; मामले "thing2": वापसी "ओह हाँ"; केस "बिल्ली": वापसी "एक टोपी में"; मामले "वॉकेट": वापसी "मेरी जेब में"; मामले "लाल मछली": वापसी "नीली मछली"; मामला "एक फिश": वापसी "दो मछली"; डिफ़ॉल्ट: नया NotImplementedException फेंकें ("कुंजी" "+ कुंजी +" 'मौजूद नहीं है, अपने पिता से पूछिए जाओ); }} आपको यह विचार मिलता है। मुझे क्या करना है, प्रत्येक मामले के प्रति रिफ्लेक्शन के माध्यम से प्रत्येक अक्षर को अक्षरशः स्ट्रिंग प्रिंट किया जाता है। मैंने यह जानकर प्रतिबिंब के साथ पर्याप्त नहीं किया है कि यह कैसे सहज तरीके से करना है मैं ईमानदारी से यकीन नहीं कर रहा हूं कि प्रतिबिंब इस तरह की बात बिल्कुल भी कर सकता है। क्या यह किया जा सकता है? यदि हां, तो कैसे? नहीं, आप आईएल नहीं पढ़ सकते हैं (जो आप के ...

postgresql - ERROR: missing data for column when using \copy in psql -

I am trying to import a .txt file into PostgreSQL. There are 6 columns in the txt file: lab_name lab_ID feature ZIP_Code city state and 213 rows. I am trying to use \ copy to use this command in PostgreSQL in a table called doe2 . : \ copy DOE2 FROM '/users/nathangroom/desktop/DOE_inventory5.txt' (DELIMITER ('')) This gives me this error I have to do this while facing this error and some Three possible reasons: One or more rows of burnt file only 4 or less space characters (your delimiters). One or more space characters have survived (inadvertently) possibly with a backslash at the end of an unconditional value. Using the text format (default) you can cite the COPY / code> data characters For data which can otherwise be taken as line or column delimiter. Nobody will perform but will your file be edited or is it from a different, faulty source? You are not using the file you looks you are using \ ...

unity3d - Unity - limit/clamp rotateAround() -

I have a unity setup and issue that can be described as follows: There is a pivot in the center of a circle and the object I am trying to move is with the circumference of the circle (using RotateAround ()) I need to turn this rotation around the 45 degree both methods (or total 90 degrees) around the axis object I have more than a month I am trying not new to this, no success, please help: & lt; Edit: This is the code that I am currently using and it works. The object rotates in a circle correctly, but I want to have a border / clamp on this rotation. GameObject.Find ("rotate_me_around_pivot_object"). Transform.RotateAround (GameObject.Find ("Pivot object"). Transform.position, Vector3.forward, 5 * Time.deltaTime);

java - Why is this method being skipped when it is called correctly with no syntax errors? -

Here is the original code for what is happening. I have already been encouraged to input the number of rows and columns, which works This problem once the program reaches "enter data ..." it prints, But completely ignores the call on the matrix . Inside matrix I also prompt to enter a matrix using the scanner class. Apart from this, I know that there is no end to its end. help please. Case 1: System.out.println ("Enter data for first matrix."); // Input needed MatrixOne = matrix (rows, columns); Println ("+"); System.out.println ("Enter data for second matrix."); Matrixout = matrix (rows, columns); Int [] [] plus = add (matrixon, matrix two, rows, columns); Print (lines, columns, plus); break; Here is the method: public static int [] [] matrix (int rows, favored column) {int [] [] NewMatrix = new integer [Rows] [column]; For (int i = 0; i This is currently output: Please choose a procedure: additional (1) or subtract (2) 1...

math - How to flip element (mesh)? -

Image
I want to flip my web over all the axes. I have only one thing in two stimuli, but I will rotate one (flip) so that it can face the other? What is the correct change, do I have to rotate, or somehow flip matrix me? Here is the image that I am trying to do: A -1-shaped model in the axis that you want to mirror

objective c - UIStatusBarStyleBlackOpaque and UIStatusBarStyleBlackTranslucent still possible despite being deprecated as of iOS 7.0? -

Is it possible to use the Uititus Bayer style block OPEC or Uititus barriceless blockage transplantation despite being disliked in iOS 7.0? [[UIApplication sharedApplication] setStatusBarStyle What is "refractory" means "looks down but still allows" or "not allowed"? : UIStatusBarStyleBlackTranslucent]; In method - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) Launch Option of my AppDelegate.m, but it has no effect. The status bar is still so gaudy white, haha. When an object is lost, action, code, or it may still work or Prepare the dedicated work in advance, but not in the expected way. Like, with UI items, it is best to avoid them because the further version (8.x update) break the items you just dislike and remove them completely if you need them, Then dedicate it to - (zero) viewDidoadload or a completely different storyboard / xib file (this does not recommend that your app can do...