Posts

Showing posts from September, 2011

asp.net - In a SPA, how does my browser get the feedback that it is Authenticated? -

I have ASP.NET MVC single page application on the page there is an entry area in which submit. When submissions are clicked, the information is sent to the webappi controller and authenticates it on server (ASP.NET Identity 2 and WebAPI 2). The server then confirms that the status HTTP response is sent to the browser to confirm whether the user was authenticated (signed). Now the web page changes and displays a new visible area on which the server has the ability to send PUT's POST etc. to the web API. However, how can the server tell that the user is now certified? The web server sends the encrypted authentication cookie back to the web page and sends all the requests to that page back to that cookie. From the server So it looks: // Initial page request client - & gt; Server: Serve me the page server - & gt; Customers: No cookies, you are anonymous, this is your page // ajax authentication request client - & gt; Server: Here is my credential server - ...

c++ - I would like to know why my reading of the file is stopping early -

I'm a beginning C ++ user and I have tried to cooperate with my classmates and in this way, but we The answer to this question is that our instructor has given us a linker who runs the main function for us and provides a simple text file for us to read, and for the time being in the second const char * in the title is unimportant , Now for me all Read the data from the file concrete char * saiffile and display it on the screen when I run my program, I have found that it starts reading and I think you will not be able to help because you do not have access to the linker. But any help would be greatly appreciated. Here's my all code: # include & lt; Iostream & gt; # Include & lt; Fstream & gt; # Include & lt; iomanip & gt; using namespace std; Const int DESC_SIZE = 37; Structure item {int itemId; Description of the character [DESC_SIZE]; Double cost, value; }; Int ProcessIfile (Const four * Safffile, Const char * Raffey) {Fistruff Outfile, Infile;...

opencv - apply the edge detection in an image segmentation -

I have two questions about snake detection. The first question is, OpenCV contains a function cvSnakeImage (src, points,. ......), what does the point parameter mean? The second question is: I want to implement it, which part I have already created, how can I do it? My code is for this edge recognition: cvcanny (img_bw, img_canny), frozen, sesame * 50, 3); CvFindContours (img_canny, contour, and profile, size (cvcintor), cvuttrt, cv_chain_apppxximple); Points parameter is an indicator for snake point array

.htaccess - redirect a domain to a subdomain -

I want to create a site with this domain structure and flexiblily. My main ad site will be at www.website.com Customer admin.website.com / P> I want to give the client the option to buy a domain name from an external vendor, and in any way want to link it to my public site. Therefore, they can get a subdomain address like customer-site.website.com instead of the customer, get a regular domain name of your choice, or the customer can buy a domain Or those who already use themselves and are used in the Goddess and redirect it to their public site: www.customersite.com Redirect to customer-name Website.com I have a domain name for customers, www.customersite.com That will not be reached, which will be hosted by Godadi. My site, www.website.com is not hosted on the Godaddy and client's site, either customer-site.website.com is not usually done I can not see from Godaddy for specific instructions. You can set it with a CNAME record www.cu...

vb.net - Square of value VB 2010 -

How can I write a program that is a square of values ​​in the text box and each time the button is clicked it adds to the list is. Thanks to 0 to 100000. Thanks to this is that I have yet to open the public square Frames Square System.Object, byVal e as a ByVal sender. EventArgs handles btnGo.Click Dim x double Double = txtNumber.Text as the double number in the form of lstSquare.Items.Add (number * number) x = number end sub-private sub-btnStop_Click (ByVal Sender as System.Object, System.EventArgs as ByVal E) P> Here's another Do this, hope that it helps: If IsNumeric (TextBox1.Text) then double = CDBL (text box 1 text) in the form of slow DBL dbl * = dbl ListBox2 .ems.Add (dbl) other messageback. ("No entered value is entered"). If the end

google spreadsheet - If column includes a certain value, turn top cell red -

I want a function that can check a column for a fixed price and if at least one value is found If the top cell should be red, it is an intention to visualize the function of the top cell in the column: If any cell in the column "A" = "X" is cellbgcolor = red ELSE cellbgcolor = white I do not feel like doing this in two steps, that is, if the value is type "x" in the cell and to paint the cell Uses conditional formatting for the purpose. please try: = "MATCH" ("X" A: A, 0) with applies to category: A1.

ios - App store distribution profile -

Image
Before I select the iOS device from the plans in the encoded tonight and then an archive (after making sure the bundle / Plist information was correct). I have a distribution profile and proof on my Mac, although I did a fair collection before I did not convert distribution to distribution at a project or goal level, they still have my own development profiles With the code are set to sign. I opened the organizer (without the above) and approved it to submit and accept my app. My app is now awaiting review, my question is: a) Is this okay? - I think the last time (a few years ago) was to give instructions to Xcode to sign me from my distribution certificate / provisional profile. B) Does Xcode automatically use these profiles / queues now behind the scenes one day, if your iOS device is in the form of a build platform with? I am wondering why he submitted anything wrongly according to Apple Docs. Thank you, John Actually you do not submit an application signed by a...

PHP - Rename pictures sequentially double digit -

I have the following PHP code to rearrange the images in sequential order: Function sequential images ($ path)) {$ i = 1; $ Files = globe ($ path. "/ {*. Gif, * .jpg, * .jpeg, * .png}", GLOB_BRACE | GLOB_NOSORT); $ Count = count ($ files); Foreign Currency ($ file $ file) {$ newname = str_pad ($ i, strollon ($ count) +1, '0', STR_PAD_LEFT); $ Ext = substr (strrchr ($ file, '.'), 1); $ Newname = $ path '/ picture'. $ Newname '.' $ Ext. If ($ file! = $ Newname) {Rename ($ file, $ newname); } $ i ++; }} I would like to rename 01.jpg to picture01.jpg 02.jpg to picture02.jpg 03.jpg picture03.jpg 04. Picture for JPG 04.jpg ..... 10.jpg picture 10.jpg 11.jpg picture 11.jpg I get the output Picture 00.jpg Pictures 003.jpg Pictures 004.jpg .... Photos 101.jpg Photos 011.jpg I like that if the image sequence is less than 9 then It will be a '0' before it, if it is 10 or more then it will not have extra zeros. I tried to ad...

max - Are all genetic algorithms maximization algorithms? -

I'm not sure that my understanding of maximization and minimizing is correct. Some functions F (X, Y, Z) I have to find out what the maximum value will be, which is maximum, right? And if I want to get the least value which is least? So if a genetic algorithm is a search algorithm trying to maximize some fitness function, then what is the definition of maximization algorithms? then ask for some function F (X, Y, Z), let me know this Is to determine whether the highest value is the maximum, right? And if I want to get the lowest price which is least? Yes, that definition is correct. So if a genetic algorithm is a search, the algorithm is trying to maximize some fitness functions, can they be maximizing algorithms by definition? Too much yes, although I'm not sure that "Maximization Algorithm" is a well-used word, and only if a genetic algorithm is defined, which I believe It's not that it's strictly. The generic algorithm can also try ...

javascript - Fabricjs - setBackgroundImage to Empty URL causes null reference error in _setWidthHeight -

I found an article explaining how to clear the background of the canvas ... Canvas.setBackgroundImage ('', canvas.renderAll.bind (canvas)); I have created an online design tool that uses Fabric 1.4.4 and includes a lot of functionality but can not know for my life what I am doing wrong here I canvas real image Can set in the URL and it is displayed correctly, but when I used the code to remove the background picture (shown above) I would like Fabricz S gets a JavaScript error: Unused exception line 16045, in column 7 ... / fabric.js 0x800a138f - JavaScript runtime error: undefined or empty reference property Unable to get 'width' The line refers to the _setWidthHeight method Am I doing something wrong? It seems that it should be quite straight forward, but I can not remove the background image ... whether it exists or not. K-Dev canvas.Sizebacksize (0, post-less "itemprop =" text "> canvas.renderAll.bind (canvas)); It works ...

r - How can I efficiently generate a dataframe of simulated values? -

I am trying to create a data frame of counterfeit values ​​based on the current distribution parameters. My main data frame contains mean and standard deviation for each observation, such as: example.data & lt; - data.frame (country = c ("a", "b", "c"), score_men = c (0.5, 0.4, 0.6), score_sd = c (0.1, 0.1, 0.2)) # country score_manon score_sd # 1 0.5 0.1 # 2B 0.4 0.1 # 3C 0.6 0.2 I usually use the score_mean and score_sd parameters to draw from normal distribution to sapply () And a custom function: Score simulation and lieutenant; - Function (Scoreman, Score, SD) {Return (Mean (Ronam (100, Median = Score.men, SD = Score, SD))}} Symmeted Soccer & lt; - sapply (example.data $ score_man, FUN = score.simulate, score.sd = example.data $ score_sd) # [1] 0.4936432 0.3753853 0.6267956 A round of counterfeit values ​​( Or column). However, I want to generate a lot of columns (like 100 or 1,000). To do this I have to wrap the lapply () ...

How can I show the output of two print statements from two different functions on the same line? -

मेरे प्रश्न के लिए कोड निम्नानुसार है: def score_Calc (बराबर, स्ट्रोक, छेद_एनम्बर): यदि स्ट्रोक == सम-1: प्रिंट ('छेद #', छेद_एनम्बर, 'एक बराबर', बराबर, 'आपने एक बर्डी को गोली मार दी।') def स्कोरकोलसी (बराबर, स्ट्रोक, छेद_एनम्बर): यदि स्ट्रोक == 1: प्रिंट ('एक में एक छेद के साथ!') मेरा प्रश्न यह है: मैं एक पंक्ति पर मुद्रित परिणाम कैसे प्राप्त करूं? अभी, मुझे इसे प्रिंट करना मिल गया है: छेद पर # 5 एक बराबर 5 आप 5 ओवर समर शॉट बो डेरेक के साथ ओह। मैं इसे कैसे प्रिंट कर सकता हूं? छेद पर # 5 एक बराबर 5 आप 5 पर बराबर का शॉट बनाते हैं। एक बो डेरेक के साथ ओह। मुझे एहसास है कि कोड ज्यादा समझ में नहीं आता है, क्योंकि यह मेरा पूरा कार्यक्रम नहीं है मेरी समस्या तब होती है जब मैं मुख्य फ़ंक्शन निष्पादित करता हूं, यह दो अलग-अलग लाइनों के रूप में प्रिंट करता है मैं कैसे इसे दो अलग अलग कार्यों से इनपुट के साथ एक पंक्ति बना सकते हैं? डिफ़ॉल्ट रूप से, प्रिंट एक नए वर्ण के साथ समाप्त होता है यह कॉल प्रिंट ("हैलो वर्ल्ड") वास्तव म...

sql server - Combining values of a specific column from consecutive rows in SQL -

I am exporting my logs to SQL. The problem is that the logging API trims the message column if this length is 800. Exceeds characters and creates new entries with the rest of the message. I use loggers to export this data directly to SQL. Therefore, for the rest of the discussion, suppose I have to solve this problem in SQL. The SQL table looks like this id timestamp eventad message 1 2014-04-23 ABCD "some messages" if If the number of characters in the message is greater than 800, then we will have a new line in the table, with the message starting with "...", the original line will end with "..." according to the next things. . For example ID Timestamp event ADI message 1 2014-04-23 ABCD "Some messages ..." 2 2014-04-23 abcd "... More messages ... "3 2014-04-23 ABCD" ... even more messages " Note that the IDs are consistently of the associated message. And nothing is guaranteed that the timestamp is guarant...

How to store the ASCII value in a character (Ada 83 Only) -

How do I store the ascii value in a character (say 33) I want something like that in Aida 83 No, not 95 c: code char c = 10; char * k = & amp; C; Strncat (des, k, 1); printf ("% s", des); Thanks! c: letter: = character 'val (10); or C: Character: = ASCIILF; The first work in all the editions of the ADA was the standard method in the second ada 83; It is now the obsolete new way C: character: = ADA. Latin_1.lf; More information: In ADA, character is a calculator type, not an integer type, therefore, you can not assign an integer to it in the integer ' Val is a ADA method to convert an integer into a calculation; Enum_Type'Val (N) means the Nth calculation defined for "math type, 0-relative". To go to the other side, Enum_Type'Pos (E) returns the integer corresponding to the status of the E in the list.

C how to use strcat with static offset char array -

My current code looks like this (looks good on the eye but does not compile). Four file configs [256]; Char * pos; GetModuleFileNameA (0, FileScroll, 256); Pos = strrchr (FileConfPath, '\\'); If (pos) strcat (FileConfPath [1], "file.conf"); Second conflict (file config, "file.conf"); 2 compiler generates errors. Error # 2140: 'Error' in argument 1; Expected 'char * restrict' found on 'char' I should strcat (& FileConfPath [1], "file.conf"); . It does not look right to use the addresses here seems to be FileConfPath [1] without error, there is no error for the index specifier. This is the correct way to keep "file.conf" After: strcat (& FileConfPath [1], "file.conf"); FileSystemPath [1] is an index character; & amp; FileConfPath [1] is the character you want to pass on strcat , but the character's address is Note that if. If you want to use the c...

ios - Getting: Property 'getFlower' not found on object of type 'ViewController *' -

I'm following "Sams teach myself iOS 6" and I have been able to troubleshoot this error without any success Have tried. Here is my ViewController.h file: @ interface view controller: UIViewController @property (weak, non-fixed) IBOutlet UISegmentedControl * colorChoice; @protecti (weak, nonomatic) ibotlet UIWebView * FlowersView; @ Property (Weak, Non-Meticulous) IBotlet UIWebView * flowerDetailView; - (IBAction) toggleFlowerDetail: (ID) sender; - (IBAction) getFlower: (ID) sender; @end The error I'm getting is on this line, [self. Flower: zero]; , in the ViewController.m file: @ interface view controller (@ @ Expandement @ Exploration View Controller - ViewedDidload {{Super Viewedload]; self.flowerDetailView.hidden = Yes; [Self.getFlower: zero]; } - (zero) did risive memorianising [[super dysrhymmy warning]; // Any resource settlement which can be reproduced. } - (IBAction) toggleFlowerDetail: (ID) Sender {self.flowerDetailView.hidden =! [Sender isOn]...

android - Autocomplete Contacts and add to ListView -

I am creating an application, in the name of a contact through a AutoCompleteTextView , then after selecting the contact, I want to add that contact to a ListView So far, I have been successful in getting contact names, phone numbers and types via autocomplete with this code: Public class enhances UserContactActivity activity {Private ArrayList & lt; Maps & lt; String, string & gt; & Gt; MPeopleList; Private Simple Adapter mAdapter; Private autocomplete text message mTxtPhoneNo; /** Called when the activity is first created. * / @ Override Crate on Public Zero (Bundle Saved Instantstate) {Super. Contents (Saved Instantstate); SetContentView (R.layout.activity_user_contacts); MPeopleList = New Arrestist & lt; Maps & lt; String, string & gt; & Gt; (); PopulatePeopleList (); MTxtPhoneNo = (Autocomplete full view view) ViewById (R.id.mmWhoNo); MADAPTER = New simple adapter (this, ampleblowlist, R.layoutcastcentview, new string [] {"name",...

vba - Pass range into an array and retrieve value -

I have a fairly simple problem that hurts me, throws a 'boundary out of bounds' error in the following code, I think the array is not going to be populated? Is anyone doing me wrong? ... R2 ") = P (0) PSG20: G-29 is wired Grab it syntax to figure out first item range ("R2") = multi-functional code>

google maps android api 2 - Converting from world coordinates to tile location -

Another friend trying to create an Android app for an add-on that uses Google Maps, and we The error is spent for one day. Ideally the app gets updates of the user's location, archives them, and paints over any stored coordinates. This has become a nightmare to implement, we are now trying to paint on the entire tile if the tile has a coordinate which the user has seen, though we feel that some of our conversions from tile space with coordination Is wrong because as much zoom more zoom a little or a bit like a little bit of painted tile from the actual direction and a small west Su is. Personal boolean isCoordInTileForZoom (int tileX, et tile, int zoom) {// coordinate to check if they have existing tile float lawn = WILF_TEST_COOR.x; Float late = WILF_TEST_COOR.y; // map length and map height float map x = lon + 180 coordinates; Float Map Y = (axis * -1) + 150; // Number of tiles in a row or column (2 ^ zoom) int tiles = (Math) Math.pow (2, zoom); // Single tile double til...

google drive sdk - Google_Http_REST::decodeHttpResponse throws exception unexpectedly -

We are using PHP client: "google / apiclient": "1.0.4-beta" / strong> Our script was previously working to upload a CSV to our Google Drive, but stop working now. We have not changed anything We tried God, Scaffolding, Production Google Product ID, throwing all the same error Is there any problem on the API side? Or is there a problem on our script? Exception: # 0 / home / dev / workspace / FB / vendor / google / apiclient / src / Google / Http /REST.php (44): Google_Http_REST :: decodeHttpResponse (object (Google_Http_Request)) # 1 /home/dev/workspace/fb/vendor/google/apiclient/src/Google/Client.php(499): Google_Http_REST :: execute (Object (Google_Client), Object (Google_Http_Request )) # 2 /home/dev/workspace/fb/vendor/google/apiclient/src/Google/Service/Resource.php(195): Google_Client- & gt; Execute (Object (Google_Http_Request)) # 3 /home/dev/workspace/fb/vendor/google/apiclient/src/Google/Service/Drive.php(1694): Google_Service_Resource- ...

c# - "'EditItem' is not allowed for this view" while I am using ExpandoObject as the row of datagrid in WPF -

I am trying to use expandoObject as a line for the datagrid in WPF I am And I think that until the cell is not edited it works fine. Here is the core code: ExpandoObject line = new ExpandoObject (); ((Id works & lt; string, object & gt;) line). Add (strale column, strue); Dg.Items [0] = Row; The datagrid can display the line correctly, but if I click on the cell to edit it, then I get the error 'EditItem' is not allowed for this view "will be displayed . ¼ ?? I know what's wrong with it. We should use it: dg.ItemSources = new dynamic [] {expandoObject} And it works now! What a stupid boy!

c# 4.0 - Outlook 2013 detected a slow addin -

Image
I have developed an addin that includes login and data entry and recovery functionality, data entry and recovery via REST URL Is accessed. Outlook startup does not have any code, except that it checks out the Outlook version. I apply a simple look that shows the "loading message" to the user initially and the rest of the logic will be controlled by a thread. So I hope everything is followed in accordance with the performance, but still I have an additional I'm getting the error because "Outlook detected an ADIN problem" add-in started slowly due to the start of the process. I am able to overcome this problem and at most I am able to get time figures for incidents of starting or closing the application. Anyone help me, how do I resolve it? Are you trying to add your AddIn to debug mode or through an installer? First of all, make sure it has been disabled because it is slow and not because there are errors in it. If there are errors in it, then this ...

ios - How to enable and disable certain UISegmentedControl segments based on selection in preceding segments -

I am trying to enable / disable certain sections, depending on the selection in the first section containing the controls 2 selects different segmented controls user. First Section: Black | Lal Green | Second section: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13. 14 | 15 | 16 | 17 | 18 | Third clause: | 19 | ..... | 36 | 00 | I want the functionality to be that if the user selects black, then only a few numbers in the second and third sections should be triggered. enabled = yes Since the second and third sections require the initial input of the first block, I have completely disabled the Segment in VeeDidLoad - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view // Do not ensure what to use and why [auto. Second set set enabled: no]; //self.secondSegment.enabled = NO; [Self. Third set set enabled: no]; //self.thirdSegment.enabled = NO; } Good, now it is disabled and gray (desired behavior). But when the user taps ...

sql server - Convert excel data into SQL table -

I have an Excel, which has a few columns (column 1, column 2, column 3, .... so on ) And the rows, the number of columns and rows is not fixed here. Now the data of this Excel has been copied into one table ( Type-Navbar (Max) ) ... Now I have to take data from this column and SQL Need to show in table format in If the number of columns is fixed, then I can easily convert column values ​​into XML values ​​and show the data in a tabular format. As the number of columns is not fixed, please get the desired output, please suggest. Believe me, you use ',' as the delimiter . 2. You do not worry about performance after putting everything in a column Will the following help come? Create table (Col. '1,2') *** / DECLARE @ MXX as int, integer @ I as SELECT @ maxcol = max (lan (change, ',', ''))) + 1 Select TBL @ i = 1 (maximum) declared as @nvarsql nvarchar @nvarsql = '' while @ I & lt; Start = @ maxcol @nvarsql set = @nvarsql + ...

javascript - Getting news from the site -

Through the parts of the time required to obtain a reference for the first news on the site. I'm developing through Python, Selenium. I tried different methods: and read HTML, and tried to get feedback from javascript, but nothing. OK, trying different things to help solve your problem is. Finally I got an idea. So basically you can not trust the static HTML that gives you access to that page. Therefore, by looking at the Networks tab in my browser, I got two requests too much X seconds (it has not been noticed). So you can get your first information (calling this URL above the list): http://mediametrics.ru/rating/ru/online.tsv?page=1& Update = 1401216280 The final parameter update requires you to change the time when you request it is an era of time, Get the answer to the code> text / plain . Unfortunately, this is not your biggest feedback: URL title visitors Delta shift id 819 1401216700 0 508 -7 088680394 247 4 88, 193830 137 0 -1 88777121 135 -...

winapi - how to start/stop windows service using php -

How can I start / stop windows service using php? I found this job: win32_start_service ('serviceName'); But it seems that I must first include a class for WinAPi, can someone guide me with plazas? Thanks A brief solution is here : You have to download and enable the extension as a description in the above link.

c - Make: command not found when specifying cross compiler path -

I am trying to compile a kernel on my Fox G20V board. To do this, I have to specify the cross compiler in one of the steps in the arm-linux-gnueabi steps create ARCH = arm CROSS_COMPILE = arm-linux- Gnueabi-at91-ariag25.dtb In order for the compiler to know the cross compiler is executable, I export PATH = By doing $ PATH: / home / path_goes_here / bin I specify in the path I resonate $ PATH , I get the correct way of the cross compiler Though Now, when I make my project, I get: In: Command not found But when I do not specify the path Compiler Works, but when it reaches the point of cross compiler, it gives me: create: arm-linux-gnueabi-gcc: command not found I think that when I change it on the cross compiler, then my creation is not in my system path, so I A cross compiler I can / how can add the system path? Edit My Cross Compiler does not really contain Linux-gnueabi-gcc-4.7 , and no arm- Linux-gnueabi-gcc . However, when I specify the cross c...

how to liferay include javascript , for borwser versions -

Currently working on liferay with IE8 points. So, I want to divide IE8 and others .. in lifer-portlet.xml if (IE8) {' How can it be obtained? The simplest way is to do differnt javascritp (if you already have a custom template) in the speed template . There you can use the IE instructions to tell what the scripts have been included in each browser version. Below one sample: & lt; Script src = "custom.js" & gt; & Lt; / Script & gt; & Lt ;! - [If IE 9] & gt; & Lt; Script src = "custom.ie9.js" & gt; & Lt; / Script & gt; & Lt; [endif] - & gt; & Lt ;! - [If lte IE 8] & gt; & Lt; Script src = "custom.ie8.js" & gt; & Lt; / Script & gt; & Lt; [endif] - & gt; If you prefer, you can include the script closely by checking the Liferay.Browser variable.

wpf controls - Wpf right click menu on datagrid Column -

Image
मेरे पास यह डेटाग्रिड है (चित्र देखें) और मुझे वास्तव में एक विशेष कॉलम पर सही क्लिक मेनू करना है, लाल चौक देखें। लेकिन यह केवल वह सेल होना चाहिए जिसमें मेनू है मैंने वेब पर खोज की है, लेकिन मैं केवल वहां पा सकता हूं कि यह हैडर का स्तंभ नहीं है। यह सेल कोड है: & lt; DataGridTextColumn हेडर = "{wpfTx: क्रिया का अनुवाद करें}" बाध्यकारी = "{बाध्यकारी कार्य}" IsReadOnly = "false" width = "*" & gt; & LT; DataGridTextColumn.ElementStyle & gt; & Lt; शैली TargetType = "{x: टाइप टेक्स्टब्लॉक}" & gt; & Lt; सेटर संपदा = "टेक्स्टवॅपिंग" मान = "लपेटें" / & gt; & Lt; / शैली & gt; & LT; /DataGridTextColumn.ElementStyle> & LT; DataGridTextColumn.EditingElementStyle & gt; & Lt; शैली TargetType = "{x: प्रकार पाठ बॉक्स}" & gt; & Lt; सेटर संपदा = "टेक्स्टवॅपिंग" मान = "लपेटें" / & gt; & Lt; सेटर संपदा = "स्वीकारें वापस...

c# - Asp.Net Identity 2 Password reset link No of clicks -

How can I know that the user has clicked on the password link for the first time in Aspnet Identity 2. If a user clicks on the link multiple times, then it should not work. We can set the time for the link but do not set any click in the token. To store the number of clicks, just use the flag in the database described by Gujju developers. If you want to make sure that the link has not been used for the second time, use it to call userManager.UpdateSecurityStampAsync () For more information about canceling a token, please read this post:

how to encode javascript and html code which is written in .php file -

Is it possible to encode javascript and HTML code (such as the following) which is the .php file ? & lt; script type = "text / javascript" charset = "UTF-8" & gt; Function for_sale () {$ .ajax ({type: "POST", url: "report / approval / check_stat.fpp", data: '& amp; stock_id =' + format_stock_id, success: function (feedback) {... }}); } & Lt; / Script & gt; I think it has been asked before. Please refer to the link given below

ruby - gem install rails -v 4.1.0 stuck with ri-documentation -

I have run the gem installed Rail-v 4.1.0 on my code, but in some way Parsing documents for the railroad 4.1.0 Rail-4.0.0 Re-installing the document Can I cancel it? Do I need to re-documentation? Is it really necessary? Although the documentation is not required to run the tracks; I have found that it is not the most stuck Mani established Rail 4 4.1.0 took more than five minutes to complete Quad-Core i7, but if you have a slow computer (this is the only 15m 47s for RE and logical core i5 on an additional 16m 21s RDO 4) They want to use RI and RDODS, they only have to wait. You can execute those people who have no intention of using them any time Install Gem Rail - v 4.1.0 --no-ri --no-rdoc This was ~ 30 on my i5 machine.

matching columns from different file & aggregating the values from particular coulmns using shell script -

Hello, I have more than one file that has the same lines but I want to match the data according to the date of the different data Am & amp; All files have output as a total of time and a few specific rows. FILE 1 DATE TIME ABCD 20140402 00:15:26 21 50 30 60 20140402 00: 20:04 23 54 40 70 20140402 00:25:04 25 52 50 80 file 2 DATE TIME ABCD 20140402 00:15:21 40 60 60 70 20140402 00:20:29 50 61 70 80 20140402 00 : 25: 22 60 63 80 90 20140402 00:30:26 70 70 90 40 20140402 00:35:23 80 80 65 50 20140402 00:40:27 50 65 76 60 DATE TIME ABCD 20140402 00:15:24 10 50 10 50 20140402 00:20:03 20 60 40 60 20140402 00:25:03 30 70 50 70 20140402 00:30:24 10 80 70 80 20140402 00 Output: DATE TIME BD 20140402 00:15 160 180 20140402 00:20 175 210 185 240 20140402 00:30 150 120 20140402 00:35 170 130 20140402 00:40 65 60 $ gawk / 2014 / {print $ 1 , Substrate ($ 2, 0, 5), $ 4, $ 6} '& lt; .txt | \ sort | \ Gawk '{b [$ 1 "" $ 2] + = $ 3; D [$ 1 "...

UITextView text is missing when adjust frame according to text in iOS7? -

Image
Hi I'm trying to set UITextView height according to the content. Its work is fine to adjust the frame of UITextView. But the text has gone missing as the image shown is like the one below. It is only in iOS 7, displayed in iOS 6 well if I tap on the text view, then I have started writing textview completely. I have code notes in the flight.Text = [Edit objectForcowi: @ "Notes"]; // Adjust the frame according to the text CGSize size = [NotesFile size thatFits: CGSizeMake (notesField.frame.size.width, FLT_MAX)]; CGRect Frame = notesField.frame; Float difference = size.height - frame.height.height; Frame.ize.height = size.height; Notefield.fr = frames; Please help me with this problem. Thanks in advance. A few days ago, I was struggling with the same problem and I got the solution with the Reset of the Property Scroll. The following is my code snippet internalTextView.scrollEnabled = NO; If (newSizeH> = MaximumHight) internalTextView.scrollEnabled =...

Using for-comprehension, Try and sequences in Scala -

Assume that you have several ways: def foo (): [straight ] [String] [String] Try and make an inclusive one for you: {list & lt; - foo item & lt; - List results & lt; - Bar (item)} yield result Definitely it will not compile because the reference can not be used with Seq. Anyone have a good solution to how to write it without dividing it into two separate ones? I have come for the third time in this syntax problem and thought that it is about time to ask about it. IMHO: Try and CAC Moned Transformer is more than the need to define: Code for the Library: Try the case class [R] (Run: [R]] [D ] DEF MAP [B] (F: R => B): Try [B] = Triax (map {_ map F}) def flatMap [B] (F: R => trySeq [B]): trySeq [B] = TrySeq {match match {case success (s) => sequence (map f map {_.run}) map {_.flatten} case Failure (E) => Failure (E)}} Def sequence [R] (CEC: Seek [try] []: [Seek [R]] = {Sequence match {Case Success (H) :: Tail = & Gt; tail.foldLe...

windows - nginx configuration won't deliver static assets -

I want to distribute static assets through a virtual directory, but I'm stuck with the following two problems. I am redirected to a URL where NGX wants to add a previous slash to the file name and The system thinks that I have a directory list instead of a file I want to, Nginx as a result is working wrong. Error: From the .log file example: 2014/04/24 11:21:37 [error] 6808 # 6952: * 15 directory index " E: / FileRaver / Intranet / "is prohibited, Client: 192.168.110.79, Server: Intrast, Request:" GET /intraStatic/employees/0C0C3E08-5056-A300-0E2C2FF5D437C6A3.png/http / 1.1 ", Host: "Intrast" Snippet from my config file: location ~ / intrastatic / {auto-index close; Aliases E: / file / intranet /; break; } Since the log contains the path mentioned in the alias I know that the location block has not been ignored, but I can not access the files here, even if the file system The permissions are okay and the file exists and nothing h...

ios - UIDocument & NSFileWrapper Architecture and Performance -

We have recently converted our code to use UID document instead of manipulating files on file system , And we have faced some of the performance issues as a result we are thinking that we are using this class in the wrong way, if someone else has these problems, and the general ways of addressing them What are you Our App We have a "Shoe box app" which manages a group of documents, each has several image files that can be quite heavy, a small Metadata file and a short preview image. Users can have multiple documents on their device (1000+ documents). Each document's files are grouped into one directory and we use NSFileWrapper to read and write them. When our app starts, all the documentation needs metadata to show the document document, and a subset of its preview image is loaded in more detail as the user scrolls. To get that information, we open all the documents, read their metadata and preview image, if we have to close them, and then reopen on demand. ...

java - How to use custom SurroundWith feature of eclipse -

In the eclipse circle, with the default options offered / hold while, switch, etc. Do I want to add another option to that list? Below the popup is an option where we can configure the template, it displays a pre-defined list of templates, but I have a question about how to use one of those templates and pop it Up menu. ...... It looks like any template that is $ {line_selection's} Uses} is included in the variable list. Then there will be a very simple template: {$ {line_selection}} which will add around {} to selection.

ios - HTTP POST multipart/form-data with setHTTPBody like .csv.gz -

I have to compress a .csv with gzip. To do this: NSString * limit = @ "*****"; NSString * contentType = [NSString stringWithFormat: @ "Multipart / Form-Data; limit =% @", border]; NSMutableURLRequest * Request = [NSMutableURL request request with url: [NSURL URLWithString: @ "url"]]; [Request [HTTPS: Handle cookies]: No]; [Request timeout interval: 100]; [Set http system: @ "post"]; [AddValue: contentType forHTTPHeaderField: @ "Content Type"]; [Request Set Value: @Headpuffed: @ "Actress-encoding" for "jizip"]; NSMutableData * theBodyData = [NSMutableData data]; [Debotata enddata: [[NSSTING stringwhite format: @ "-% @ \ r \ n", border] Data wrapping encoding: NSUFF 8 string encoding]]; [Debotta Endadata: [@ "Content-Disposal: Form-Data; Name = \" server_value_name \ "\ r \ n \ r \ n" Data Encoding: NSTF 8 string encoding]]; [BodyDataApendData: [CSV string data accessing encoding: N...

ios - UINavigationController on Pageview Template -

I created an app using the Pageviews template. I've added a UINavigationBar to the Data Controller because it does not appear when I add it to the root controller. Displays navigation, but when it scrolls the pageview, it scrolls. Can anyone tell me how to keep the navigation bar stable? First you set a UINavigationController and set it as the initial view controller After that you have your RootViewController . As required to set the root view of UINavigationController .

hadoop - Renaming folder at runtime in Oozie or pig -

I'm still new to ozzy and pig. Can anyone tell me if I can rename a folder on runtime using OOG or pig? I have a dip script that reads data from a folder which is called input and then writes output to the output folder. The flow is made using Oozie. The next time I run the Oozie folder, the input folder should be deleted and the name of the output folder should be in the form of input. Thank you. Waiting for answer Ozzy FS (HDFS) be used to change the name of a directory Could. / P> In the above link, you will find your workflow.exam & lt; Name of workflow-app = "[WF-DEF-NAME]" xmlns = "uri: oozie: workflow: 0.1" & gt; ... & lt; Action name = "[NODE-NAME]" & gt; & Lt; FS & gt; & Lt; Transfer Source = '[Source-Pat]' Goal = '[Target-Path]' / & gt; & Lt; / FS & gt; & Lt; Ok to = "[NODE-NAME]" /> & Lt; By error = "[NODE-NAME]" /> & Lt; / Action...

ruby - How to avoid implicit call to parent class's constructor in Java? -

I have this code which is "a tree" twice and "oak tree Prints " Once I think that it's saying the tree class constructor inherently extends the class oak tree . Anyway, can I call the parent's constructor? public class app {public static zero main (string [] args) {tree p = new tree (); Oak m = new oak (); }} Public square tree {the name of the protected string; Public tree () {name = "A tree"; Println (name); }} Public square oak tree {public string name = "an oak tree" is extensively; Public Oak () {System.out.println (name); }} I compare Java with ruby ​​due to my small risk to do this. In Ruby, the parent's constructor is called only when the child is not one, therefore, I am trying to achieve my basic rights. class CDEF starts "C class" and end class D & LT; "D Class" End End # Class E does not have its own Constructor Class of CDR initialization E & lt; C end CNU # = & gt; C Cl...

html - Posting information via jQuery -

इस सवाल का पहले से ही एक उत्तर है: 1 9 उत्तर 73 जवाब मैं पृष्ठों के माध्यम से नेविगेट करना चाहता हूं और एक मूल्य के साथ उनके बीच एक चर का नाम देना चाहता हूं, मैं आमतौर पर इसे "name.php? S उदाहरण के लिए = p ", लेकिन मैंने सोचा था कि: www.myweb.com/?s=p उदाहरण के लिए। मुझे ? S = के अंदर मान प्राप्त करने की आवश्यकता है और इसमें क्या पढ़ता है। मैंने इसे करने की कोशिश की लेकिन यह काम करने में प्रतीत नहीं होता है: / P> console.log ($ (स्थान) .attr ('s')); क्या jquery के साथ संभव है? प्लगइन का उपयोग करें और लिखें नीचे कोड। आपके मामले में आप "s" के लिए खोज करना चाहते हैं, तो नीचे कोड काम करना चाहिए। $ .url ()। Param ('s');

angularjs - Angular js select ng-model binding -

I have a big problem with angular here. Here's my code: Controller: function testCt ($ scope) {$ scope.types = [{name: 'fruit', label: 'to do fruit'}, {name: 'meat', label: 'meat'}, {Name: 'other', label: 'other'}]; $ Scope.foods = [{Name: 'apple', type: 'fruit'}, {name: 'raptor', type: 'meat'}]; $ Scope Selected = null; $ Scope Selectionfood = work (food) {$ scope.selected = food; }}; More views: & lt; Div ng-app ng-controller = "testCt" & gt; & Lt; Ul & gt; & Lt; Li ng-repeat = "food in food" ng-click = "selectionfood (food)" & gt; {{Food.name}} & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Select data-ng-model = 'selected' data-ng-option = 't for type t In the form of LLL '& gt; & Lt; / Select & gt; & Lt; Br> {{Selected.name}} & lt; Br> {{Selected.type}} & lt; / Div & g...

Transparent Android activity trouble -

I have an application where the theme can be changed between three different parts. I have two activities Those who have a transparent background and look like a dialogue above the previous activity. I have searched a lot for transparent activities on the stack and most of them are the same moon. A custom theme with some properties to enable a transparent background for the activity in question. The issue for me is that I need to set up this custom transparent theme on parental activity, as well as all to get any transparency. If I set only a transparent subject on activity then I want to be transparent, it will be a solid background. Everything I thought I have tried, but it boils down to it all and I am not sure what I am doing wrong. This is my two separate thematic topics (slowing down in the lower parts): & lt; Style name = "style actionbars" original = "theme. Sharlock. Light. Force overflow" & gt; & Lt; Item name = "android: text...

xaml - WPF Border thickness bottom only.. -

I'm just trying to create WPF buttons with the range below and hide the rest. I try to use borderthickness = "0,0,0,1" but this does not work. This is my code. & lt; TextBlock Width = "200" & gt; Station Maintenance & lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / Button & gt; This is because BorderBrush is is set to transparent . Assign a color for it. & lt; Button background = "transparent" border area = "0,0,0,1" borderbrush = "black" width = "235" padding = "5" FlowDirection = "LeftToRight" & gt; & Lt; StackPanel Orientation = "Horizontal" width = "260" & gt; & Lt; Image Source = "Images / Rooms -32.png" Height = "20" margin = "30,0,8,0" /> & lt; TextBlock Width = "200" & gt; Station Maintenance & lt; / TextBlock & gt; & Lt; / StackPanel ...

MarkerClusterer & jQuery UI Map: clusters not showing -

मैं markerclusterer के साथ jquery-ui-map प्लगइन का उपयोग कर रहा हूं। मार्कर एक से लोड होते हैं बाहरी JSON फ़ाइल यह प्रत्येक जानकारी विंडो के लिए मार्करों और सामग्री को जोड़ने के लिए बहुत अच्छा काम करता है अब तक कोई समस्या नहीं है। jQuery, jQuery UI मानचित्र और मार्कर क्लिपस्ट्रेर स्क्रिप्ट मेरे दस्तावेज़ में ठीक से संदर्भित हैं। हालांकि, मुझे मार्कर्स क्लस्टर नहीं लगता I यहां नक्शा दिखाने के लिए मेरी स्क्रिप्ट क्या मैं कुछ देख रहा हूं? $ ('# map_canvas')। Gmap ()। बाइंड ('init', फ़ंक्शन (इवेंट, मैप) {$ .getJSON (MY_JSON_URL, फ़ंक्शन (डेटा) {$ .each ( Data.posts, फ़ंक्शन (i, मार्कर) {$ ('# map_canvas')। Gmap ('addMarker', {'position': new google.maps.LatLng (marker.custom_fields._cmb_tatort_map_latitude, marker.custom_fields._cmb_tatort_map_longitude)} ) .क्लिक करें (फ़ंक्शन () {$ ('# map_canvas')। Gmap ('openInfoWindow', {// कुछ सामग्री यहां},);});});}); $ ('# map_canvas') जीएमएपी ('सेट', 'मार्कर क...

sql server - how to properly send ssis package to another user to deploy -

I have developed an SSIS package that runs fine IS VS. To deploy the package, I need to send it to DBA to deploy on the server, but there are logon errors. I have narrowed it down (which I believe is the reason for this issue ) "Security level: Encrypted with zero" setting. So when the DBA opens the Visual Studio project, then it does not get the password settings and then fails to run Dtsx files on the server. How do I send the project properly, so that it can be implemented without having to type in the password again? It seems that the sensor does not save with server storage or sensor package That's the way to go for your scenario. Another option is to store connections. Strings require a password as string variables and hard-code values. This is a pain when you need to change the password, though.

database - How to make a crystal report with following view or Postgres crosstab() function? -

Image
मैं निम्न दृश्य से एक क्रिस्टल रिपोर्ट बनाना चाहता हूं: मुझे उपरोक्त दृश्य vConsolPrchOrd के साथ एक रिपोर्ट बनाने की आवश्यकता है जो ऐसा दिखता है: जैसा कि आप देख सकते हैं यह पहले पर आधारित है मेरे दृश्य में 3 पंक्तियाँ vConsolPrchOrd । बहुत कुछ करने की कोशिश करने के बाद मैंने स्वयं पाया इसके लिए एक समाधान, एक crosstab crystalreport बनाने से मुझे अच्छा नहीं लगता है, इसलिए मैं यह समझाऊंगा कि मैंने क्या किया है: अतिरिक्त मॉड्यूल स्थापित करें tablefunc जो फ़ंक्शन क्रॉसस्टैब प्रदान करता है ()। चूंकि मैं PostgreSQL 9.1 हूँ, इसलिए मैं उस एक्सटेंशन के लिए बना सकते हैं EXTENSION tablefunc; और crosstab से 'चुनें उत्पाद, शाखा, आदेश से निम्नलिखित कोड का उपयोग करके निम्न कॉलम में कॉलम में परिवर्तित पंक्तियां परिवर्तित करें; उत्पाद के अनुसार vConsolPrchOrd आदेश, $ $ मूल्य (1 :: इंट), (3), (4), (5), (6) $ $) के रूप में टीबीएल ("उत्पाद" चरित्र बदलती है, "1" संख्यात्मक, "3 "आकस्मिक," 4 "संख्यात्मक," 5 "संख्यात...

eclipse - How to know if a PostfixExpression belongs to a for statement? -

I am using Exclier parser to work with expressions and statements in Java code. Public Boolean Visit (Postfix Experiment Node) / Code>; The problem I want to differentiate between a statement for postfix, and other postfixes. I thought I might go to node and I can check it in any way that it is for Node.getParent () ... but expression does not return anything like .getParent () . How to identify any idea that PostfixExpression is related to a loop ? Thanks Edit: " Postfix for the password" means i loop The first line of code> is the postfix. For example: For (i = 0; i I therefore use this i ++ I want to separate from other i ++ . Can not just call ASTNode.getParent () view it For what kind of expression is in expression?

c_void_p arguments in callbacks using ctypes in Python -

I am a frequent user of CTIPs, but I have to face the things I can not understand. First of all, when I define a callback with c_void_p, callback will get an integer. I have seen some other posts that wrap c_void_p by wrapping it in second digit when it returns the c_void_p return value. So, I thought I could try it for reasoning in callback definition: POINTER (c_void_p) When called callback, now I get a pointer, but I still do not know that this value indicates data is. Since C_void_p indicates the buffer with the binary data, I do not believe that I can use a c_char_p I put the array without any realization, whose length is passed to me But then Python tells me that I have a tupe, and there is no "content" or "value" property which I can use. Suggestion In the callback, as an integer, c_void_p is normal. It's using simple type of getfunc to auto conversion - the same as receiving a c_void_p as the structure field . CTIP will not autom...

How do I write inline documentation for methods and variables in Go code? -

Are there some rules for documenting the methods and variables in the Geo language? For example, PHP / ** This method will increase the parameter $ B in 10 digits @ wind int $ B / return intra / public function in some mode ($ B) {Return $ B + 10; } Is there something like that, or should I use the "// comment" method without any @var or @reurn on there? You should use standard // comments because this is what is called the official document tool called Godock. Code will be used for making documents. You can see this post from official Gol Blog: I find this recent article interesting:

c# - Assembly Name and Default Namespace -

मेरे पास एक ऐसा अनुप्रयोग है जो स्थानीयकरण का उपयोग करता है। वर्तमान में मेरा ऐप नाम "MyAppName" है और डिफ़ॉल्ट असेंबली "MyAppName" है। अब मुझे exe नाम को "मेरा एप्लिकेशन का नाम "और डिफ़ॉल्ट नामस्थान" MyAppName "है मैंने इसे प्रोजेक्ट- & gt; प्रॉपर्टी- & gt; विधानसभा नाम से किया है। अब मुझे इस तरह से अपवाद मिल रहा है: 'WpfLocalization.LocExtension' मान संपत्ति को नहीं सौंपा जा सकता है 'MyAPPName.MainWindow' वस्तु का 'MinHeight' विशिष्ट संस्कृति या तटस्थ संस्कृति के लिए उपयुक्त कोई भी संसाधन नहीं मिल सका। सुनिश्चित करें कि "मेरा एप्लिकेशन नाम.प्रॉपर्टीज़। संसाधन। स्रोत" सही समय पर एम्बेड किया गया था या सम्मिलित "मेरा एप्लिकेशन नाम" में सम्मिलित किया गया था या सभी अपेक्षित उपग्रह विधानसभाएं लोड करने योग्य और पूरी तरह से हस्ताक्षरित हैं। मार्कअप फ़ाइल में 'My Application Name; component / mainwindow.xaml' वस्तु में 'WpfLocalization.LocExtension' वस्तु में त्रुटि। ...

How to truncate value in tooltip using highcharts -

Image
मेरे पास निम्न कोड है: $ (फ़ंक्शन () {$ ('# container (): शीर्षक: {text: 'CO2 (नवीनतम 7-' 7 ')। (उच्चतम सीमा: दिन) '}, निर्यात: {सक्षम: झूठे}, एक्सएक्सिस: {प्रकार:' डेट टाइम ', लेबल्स: {ओवरफ्लो:' जस्टिफाय '}, स्टार्टऑन टिक: सच्चे, शोफस्ट लेबेल: सच, एंडओनिक टिक: सच्चा, शोलाल लेबल: सच, श्रेणियां: (एंड्रॉइड अर्रे, टिक) अंतराल: 10, लेबल्स: {formatter: function () {return.value.toString ()। Substring (0, 6);}, रोटेशन: 0.1, संरेखित करें: 'left', step: 20, enabled: true }, शैली: {fontSize: '8px'}}, yAxis: {title: {text: 'CO2}}, लेबल: {formatter: function () {return.value +' a ° '}}}, किंवदंती: {स्पलन: {मार्कर: {त्रिज्या: 4, रेखा रंग: '# 666666', रेखाविधि: 1}}}, सीरीज: {स्पोर्ट्स: [{नाम: "CR3000Tower", डेटा: चार्टडेटा, मार्कर: {enable} डी: झूठी}}]}); }); यह निम्नलिखित आउटपुट का उत्पादन कर रहा है: मैं दो दशमलव बिंदु के बाद tooltipe मान को छोटा करना चाहता हूं। ताकि टूलटिप मान लंबी मान के बजाय 414.26 हो...

Laravel 4: left join with where claus not showing none linked rows -

I am trying to create an artisan cron job in Laravel 4 which is available to all the subscribers, who are known for the well-known ORM Should use. I am trying to accomplish that at least one month ago I subscribe to all the consumers who have paid the last time or new subscriptions that were never paid. Even though I only get information from the user table (user 1 and 3), the value of the pay table is 'null', that means that they are not with the limit, although I only want to say 'null' if they have a table There is no value in the payments. My code: $ ('Payments.user_id', '=', 'user.id') - & gt; ('Payments.paid_on') (payment 'payday_on'), date ("D"), date ("Y"), '& lt; = ', Date (' YMD HH: I: S ', MKTEM (0, 0, 0, Date ("M")) - & gt; Where ('payments.paid_on', '& gt; =', Date ('YMD H: I: S', Mktm (0, 0, 0, Date ("M") -1, Date...