Posts

Showing posts from September, 2010

access vba - Open a specified form based on a button in a continuous form -

I have a constant form with each button for each record, I want to open another form with that button Where a specified segment (id = "123") edit : I found out that ID still pulls up until I do not query data from any other table . So I can use the table where the id remains, but if I add it to another table, then TaskID value gets taped. Any idea here is the code: Constant form strWhere = "[TaskID] error on private sub btnOpenForm_Click () Goto btnOpenForm_Click_Err dim strWhere string 'Assign as TaskID =" & Amp; My [TaskID] DoCmd.OpenForm "frmDBAFix" ,,, strWhere btnOpenForm_Click_Exit:. Exit sub btnOpenForm_Click_Err: MsgBox error $ resume btnOpenForm_Click_Exit End Sub Before the data table Appearance was visible as the tables were connected through the foreign key and there was no data in the table 2. Not sure why this also preventing textfields from appearing ... but I will leave it alone. Thanks

c++ - I have solved the 1st of three phases of a panhellenic competition (it is now over) -

I am the first solution (now that it's finished) in three phases of a panhellenic competition, but I'm interested in knowing that Whether there is a simple complexity algorithm there or not 7 9 5 2 3 6 2 3 1 7 > 6 2 4 6 1 5 3 int main () {ifstream in ("Domes.in"); Offscreen Out ("Dome."); Int oreo, Zed; In & gt; & Gt; Orio; In & gt; & Gt; Z; Ent Dome [Oriio]; For (int i = 0; i or lt; orio; i ++) {domes [i] = 0;} int k; For (Int i = 0; I This is about some places (represented by numbers), the number of first two numbers (orio) and the number of matches (z). Places are "connected" in some way (meaningless). You should know how many places have fewer than 2 connections and the output (in this case C) is the number of places that have fewer than 2 connections. Kashmir has temporarily added each number and "see Plasplus" Gone "is used for time. If this is seen then it means that it is connected...

c# - lock keyword on a LINQ Parallel.ForEach<> loop -

This is a conceptual question. I was thinking that if I used a lock inside Parallel.ForEach do & lt; & Gt; The loop will take away the benefits of a paragraph foreach loop. Here is some sample code where I have done this. Parallel.ForEach & LT; KeyValuePair & LT; String, XElement & gt; & Gt; (BinReferences.KeyValuePairs, Reference => {LockLockObject} {if (fileLocks.ContainsKey (reference.Key) == false) {fileLocks.Add (reference.Key, new object ());}} RecursiveBinUpdate (reference .value, testpath, reference.key, maxRecursionCount, referee recursionCount; lock (fileLocks [reference.Key]) {reference.Value.doc.sev (reference);}}); Where fileLockObject and fileLocks are as follows Private static object file LockObject = new object (); Private Stable Dictionary & lt; String, Object & gt; FileLocks = New Dictionary & lt; String, Object & gt; (); Does this technique not completely parallel the loop? I want to see my though...

ruby - How can I configure Rspec to raise error when stubbing or mocking non-existing methods? -

Is there any way that I can configure RSPC to increase an error when I use the stub / non-existing method I'm trying to fake So, if I have a class class A and FF and end and I write something like this: Describe that a description '#foo' does this expects fuses (subject). To get (Foo2) # fire subject.foo end end end Then the RSPC will fail on the first line Hope (topic ... . By telling me that : foo2 is not a message that the answer to topic . This functionality and more recently was introduced in RSPC 3 (currently in beta).

c# - Log View Grid in WPF -

First of all I am new to WPF and MVVM so it is a simple question I I WPF I'm making a log viewer for an application, and I have a grid of connected titles that you can click and can be expanded to show the log text as part of the grid, as well as adjust the text You can move all other rows to the line. What is the best way to accomplish this? Is there a control already present? Do I Need to Create My Custom Control? you RowsDetailsTemplate Grid: & lt; Data Grid Grid Ro = "1" Margin = "4,0,4,4" Otogrentek columns = "false" Aitmssors = "{Binding few Aitmsssors}" CanUserAddRows = "False" AlternatingRowBackground = "# FFCED9FF" RowDetailsTemplate = "{StaticResource gridDetilsTemplate}" & Gt; & Lt; DataGrid.Columns & gt; & Lt; DataGridTextColumnBinding = "{Binding Some Values}" Header = "Some Text" IsReadOnly = "True" /> ... and & lt; / DataGri...

algorithm - Find non-unique characters in a given string in O(n) time with constant space i.e with no extra auxiliary array -

Given a string that contains only lower case letters (az), for pre , If the string s = "aabcacdddec" output: ACD 3 approaches to this problem exist: [Brute force] Check every four letters (i.e. s [i] with each other and print if both are the same) Complexity of time: o (n ^ 2) space complexity: o (1) after sorting (sort and after attache Comparison) (O (n log (n) in time), cross the string and check if s [i] ns [i + 1] are equal time complexity: hey (n logan) + o (n) = O (N Logan) Space complexity: o (1) [Store character count in an array] An array of size 26 (keeping one-jade track ) And for every S [i], index = s [i] - 26 is stored in the array. Finally find the array and print all the elements (i.e. 'A' A 'I') with the value greater than the complexity of time: o (n) space complexity: o (1), but we have a different array for accumulating the frequency of each element. Is there an O (N) approach that does not use any array / hash ta...

vagrant Vagrantfile mount point ignored -

I have a vagrantfile that is running under libvirt . When the box is booted, the project directory is placed under " / vagrant " not " / path / to / source ". It works fine on any other machine under virtualbox. Any thoughts? Samlinking / vagrant In the real place, I think the mount is hook. vagrant up --debug shows that this is not even trying. Port forwarding works fine though. # - * - Mode: Ruby - * - # vi: set ft = ruby: Vagrant.configure ("2") do. Config | Config.vm.box = "mybox" file = file.open ("# {Dir.home} /. Mybox_key", "RB") key = file.read config.vm.network: forwarded_port, Guest: 80, Host: 8080 config.vm.synced_folder "./", "/ path / to / source /", type: "nfs" end If you are running an old version of the warranty that does not support this option (like 1.3.5), then it may be quiet rather than setting NFS share. Make sure you are running at least 1.5.1 furious...

ios - How to know when menu is "open" using ECSlidingViewController -

I am using ecsliding for menus in my app. I was thinking that when the menu is open and when it is controlled, how will it know that I am trying to do topics in the menu and I am having problems because I viewdidload and viewdidappe color on "reset" (main " Top "View Controller" for "). Originally: The user opens the menu, selects the color, the menu is closed and the color should change ... but since the correct view controller did not really add up completely "I think that when I close the menu, the methods of video load and viewups are called ... Sorry for any help ... Thanks Andy It is defined as typedef NS_ENUM (NSInteger, ECSlidingViewControllerTopViewPosition) {/ ** Top View is for Left Wave / / ECSlidingViewControllerTopViewPositionAnchoredLeft, / ** Top View Correct * / ECSlidingViewControllerTopViewPositionAnchoredRight is anchored, / ** Top view is cente red * / ECSlidingViewControllerTopViewPositionCentered}; It look...

vba - How to use checkboxes to get data -

I have a forum called Frame Aid, which is receiving data from a table named "agent" in this table "Agent's Name ". Under this clan, the name" Chris "is" Nikita "" No "," Jennifer "and" Diane ". In the forum, I have a check box next to a check box with these names. All the different checkboxes of the course. What I need to do is enable me to run my query which will receive data from "agent" from the platform in which each checkbox will be marked Example if I have a check box marked for Chris and Diane, So I have to catch all the data from the table "agent". If only one of them has been marked, grab that person's data. Does this make sense? Can you please help me? I am very new to VBA and access. Example and coding will help a lot Thank you in advance. On the assumption you have the "submit" or "filter" command button, You can use: strfilter = ""...

PHP use curl_multi_exec(), print HTTP Status -

I do not know how to print curl_multi_exec (), HTTP status. First I use this: function testurl ($ url) {$ ch = curl_init ($ url); // curl_setopt ($ ch, CURLOPT_USERAGENT, "Mozilla / 5.0 (Windows NT 6.1; WOW64; rv: 25.0) Gecko / 20100101 Firefox / 25.0"); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, TRUE); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, TRUE); Curl_exec ($ ch); $ Info = curl_getinfo ($ ch); Curl_close ($ ch); Return $ info [http_code]; } This will print 302, 200 ... but if I use this function for 10-15 URLS, the script will work for about 15 seconds. It's really too long. Then I try to use it: $ nodes = array ('http://www.google.com', 'http: // www. .microsoft.com ',' http://www.rustyrazorblade.com '); $ Node_count = Count ($ node); $ Curl_arr = array (); $ Master = curl_multi_init (); ($ I = 0; $ i & lt; $ node_count; $ i ++) for $ {$ url = $ nodes [$ i]; $ Curl_arr [$ i] = curl_init ($ url); Curl_setopt ($ curl_arr [...

Create new variable in sas, which is equal to the first digit of another variable -

I have a data set in SAS, which looks like the following: 1 3454 4 4231 5 5343 named variable From the disk, I want to create a new variable, which is equal to the first digit of the disco variable: The person disco new_disco 1 3454 3 3 4534 4 4 5 423 4 5 5343 5 I also want a numeric variable to be a numeric variable. Thank you You get the substr () and input () functions need to be aligned: data is new; Old set; New_disco = input (substr (disco, 1,1), 8.); Run;

sql - Concatenate two or more different tables in MYSQL -

मान लें कि मेरे पास 3 टेबल हैं, table A कॉलम आईडी के साथ, मूल्य, सूची; तालिका बी कॉलम आईडी, बिक्री, सूचना, डेटा के साथ; आईडी कॉलम सभी 3 तालिकाओं से संबंधित है आईडी मूल्य कैटलॉग मैं कैसे एक तालिका में एक MySQL कथन में नीचे मिल सकता है? बी सी एईएसडीआर 2000 हम तबाही हैं 0 1 DRETH 1400 चलो मछली पकड़ने जाते हैं 0 0 कॉलम बी और Table B और tableC तालिकाओं P> 'कृपया ध्यान दें कि पहले तीन स्तंभ tableA से हैं यह: का चयन करें TableA.id, TableA.price, TableA.catalogue, यदि (TableB.id है, 0, 1) AS B, IF (TableC.id IS, NULL, 0) 1 के रूप में सी तालिका से सी में टेबलबै पर टेबलबोड में शामिल करें। TableB.id LEFT JOIN TableC पर TableA.id = TableC.id

c# - Windows Phone - Debug info lines cause the program to malfunction -

Hi I am developing a Windows Phone app and I System.Diagnostics I use Debug.process () Function to write some debug info and when I run the program in debug mode, while my phone is connected to my computer and a visual studio, there is no problem. But when I run programs without a debugger - when installed in each release and debug mode - these lines of debug info cause the app to face exceptions! Can anyone say that what is happening there? "post-text" itemprop = "text"> You can try to check whether the debugger is enclosed, then implement specific code for debugging purpose only if the IsAttached value is correct: if (System.Diagnostics.Debugger.IsAttached) {System.Diagnostics.Debug.WriteLine (); }

java - Insertion sort Numerical -

My strings have two arrays with 1 and ints with the second one. To print this number in narrow order, I want to use the entry type, numerically this is my code so far These are the arrays: string [] Bn = {"Cardinals", "BlueJays", "Giant Birds", "Vulture", "Crows", "Mockingbirds", "Condors", "BaldEagles", "Pigeons", "RedHeadWoodPecker", "Hummingbirds" "Dodos"}; Integer [] BQ = {40,15,1,3,10,2,12,25,7,6,88,15}; Public Static Zero SortingMedic Ordernert (String [] BN, Int [] BQF) {For (Int I = 1; I & Lt; Beak.Lamp; I ++) {Int next = BKA [i]; String y = bn [ii]; // Find all entry locations // move all big elements up int j = i; While (j & gt; 0 & amp; amp; amp; amp; amp; amp; amp; & amp; BK [J-1] & gt; Next) {BN [J] = BN [J-1]; BQ [J] = BQ [J-1]; J--; } // insert element beac [j] = next; Arab [J] y =; }}} Where am I doing this wrong? /...

Redefinition of formal parameters C++ -

Let me try to change my attitude. I have the following code, which I want to convert to work. However, whenever I try to use a function structure my variable starts to generate errors thanks to all those who have given me assistance so far. #include & lt; Iostream & gt; # Include & lt; Iomanip & gt; #include & lt; String & gt; using namespace std; Zero name (string name [9]); Zero grade (double score [10] [5]); Zero received data (double score [10] [5]); Get zero (int score [10] [5]) {} zero name (string name [9]) {} zero grade (double score [10] [5]) {} int main () {// create a string Students are given the average string names [9] = {"Johnson", "Aniston", "Cooper", "Blair", "Clark", "Kennedy", "Bronson", "Sunny", "Smith"}; Int Score [10] [5] = {{85, 83, 77, 91, 76}, {80, 90, 95, 93, 48}, {78, 81, 11, 90, 73}, {92, 83 , {77, 31, 52, 74, 83}, {93, 94, 89}, 30, 69, 87...

SQL - Select distinct but return all columns with CakePHP Find -

I'm trying to do the same as using cakephp: $ everyRWithCode = $ this- & gt; Movie Review- & gt; Search ('all', array ('field' => gt; movie review '', 'group' = & gt; array ('movie review' codes), 'recursive' =>, 'nifilator' '= & Gt; true,' order '= & gt;' movierevocode ')); This code returns an error: Error: The column "Movie Review" should appear in the group BY section or should be used in a composite function What are you using DBMS? Mysql shows you columns that you do not use in the total function (but you are not, but there is no ether dbms, so each column that you want to show it is a composite function such as MAX) Or SUM () or COUNT () So you have to do this (suppose you have a number column): $ every R isCode = $ this-> Movie Review- & gt; Find ('All', array ('field' = & gt; array ('COUNT (Movie Review...

matlab - How to unique elements of each cell vector? -

Suppose I have ten cell vectors, c {1}, c {2}, ..., C {10} , if I want to remove the unique elements of each vector vector at the same time, how can I do this? I tried to use the unique (c) , but it does not work. If you want unique elements of each cell, then you have to apply unique to each code, such as unique (c {1}) , unique (c {2}) etc. This the cellphone . can be achieved by using uniqueCellArray = cellfun (@ unique, yourCellArray, 'UniformOutput', incorrect); If you have a matrix in your cell array, then you want to use the option 'rows' if you are outside of unique If you do not want to sort, you may want to use the option 'Stable' . You can modify the details given below: uniqueTestCell = selphon (@ (x) (unique (x, 'rows', 'static')), testicle, 'uniformaptive' wrong) ;

javascript - Making radio buttons that are named differently, act as if they were in a group -

I have a dynamically-form form - it has many fields with its own elements; Button is a simplified snippet here: & lt; Form name = "ePIC" method = "post" action = "test.php" & gt; & Lt; Fieldset & gt; & Lt; Input type = "radio" name = "pic [1]" /> & Lt; / Fieldset & gt; & Lt; Fieldset & gt; & Lt; Input type = "radio" name = "photo [2]" /> & Lt; / Fieldset & gt; & Lt; Input type = "submit" name = "submit" value = "test" /> & Lt; / Form & gt; Basically, the fields have pictures and the selection of the cover image for the radio button album. Everything is doing a great job except this fact, because the radio buttons are named differently, they will not function as a group - that is, sometimes the radio button is selected at one time. can go. Can anyone tell me how the radio buttons work as a group, maybe java...

html - Cross-browser custom styling for file upload button -

इस सवाल का पहले से ही एक उत्तर है: 14 जवाब मैं शैली की कोशिश कर रहा हूँ मेरी व्यक्तिगत प्राथमिकताओं के लिए एक फ़ाइल अपलोड बटन, लेकिन मुझे JS के बिना ऐसा करने के लिए कोई भी ठोस तरीके नहीं मिल सका। मुझे इस विषय के बारे में प्रश्न मिल गए, लेकिन जवाब वहां या तो जावास्क्रिप्ट शामिल थे, या सुझाव दिया। इस क्विरकममोड्स के दृष्टिकोण के साथ मेरा मुख्य मुद्दा यह है कि फ़ाइल बटन में ब्राउज़र-निर्धारित आयाम अभी भी होगा, इसलिए यह जीत गया इसके नीचे रखा गया बटन के रूप में उपयोग किए जाने वाले किसी भी चीज़ को स्वचालित रूप से समायोजित नहीं किया जा सकता मैंने कुछ कोड बना दिया है, उस पर आधारित है, लेकिन यह केवल उस फ़ाइल को उठाएगा जो आमतौर पर फाइल बटन को ऊपर उठाएगा, इसलिए यह पैरेंट डिवेल को भरने वाला नहीं होगा जैसा मैं चाहता हूं। HTML: & lt; div class = "myLabel" & gt; & Lt; इनपुट प्रकार = "फ़ाइल" / & gt; & Lt; span & gt; मेरा लेबल & lt; / span & gt; & Lt; / div & gt; सीएसएस: । MyLabel {स्थिति: रिश्तेदार; }। MyLabel इन...

java - The type of the expression must be an array type but it resolved to Card -

I am doing practically with my project and I get this error: "The expression type should be an array type, but it was resolved for the card" It is on the line that reads: deck [i] = new Card [i]; Here is the code: Public square deck What am I doing? remove card to use that example array bracket that you just have Created deck [i] = newcard; ^

google apps script - Get the spreadsheet key that is in the URL. Not ss.getId() -

How to get a spreadsheet ID in the URL I'm aware of using SpreadsheetApp.getActiveSpreadsheet (). GetId () and SpreadsheetApp.getActiveSpreadsheet (). GetURL () but getId () / getURL () / getKey () now fails with Google Drive-SDK. I am not able to use this ID to open a file with drive-SDK. It was working about 1 week ago, but the drive-SDK now fails to open the file. Using an ID that is present in the URL is an alternative solution. After the key ID = But I want automatic ways to get it, not a manual process. Using a template as a spreadsheet, I have no way of knowing ID, so is there a way to get it? Note 1: stackoverflow.com/questions/18583885/ Google Drive SDK issues should be posted on the Stackoverflow flow Note 2: ID in getUrl () and getKey () As the IID () is not the same key. So it seems that the key has been removed from access, so I do not have much hope. Edit Drive code is Java instead of Google Apps-script version 1.15.0-RC Drive drive service = new ...

cmake - Debian package:user and group -

Recently, I use cmake / cpack to create a Debian package. I become successful. But I install it on a computer (Sudo Dpkg -i mypcakge.deb), I get a problem: The user and group of the installation program is root: root. Due to some reason, my problem should be run in a specific user / group. I do not know how to do this, can you help me? Also, after installing the package I do not want to modify the user and the group with the cron (..). How to add something to CMakeLists?

javascript - Error: Zeptojs Animate Is Not A Function -

zeptojs document when I use $ (). Function throw error as follows: Type error: $ (...). Chetan is not a function and provides the version page I use. $ (...). Chetan zepto is in fx module it is no longer in the main main distribution of zepto!

javascript - Customize Pagination create_links() in codeigniter -

& amp; php foreach (श्रेणी ('ए', 'जेड') $ key = & gt; $ पत्र) {गूंज एंकर ('रसोईगुरुअडमिन कंट्रोलर / एडमिन_प्रिसिशन_ब्राउज़ /'। $ पत्र, ''। $ अक्षर); } गूंजती है "& lt; BR & gt; & lt; BR & gt;"; ? & Gt; & Lt; तालिका सेलपैडिंग = '5' & gt; & LT; वें & gt; हटाएं & lt; / वें & gt; & LT; वें & gt; & lt; / वें & gt; & LT; वें & gt; ईद & lt; / वें & gt; & Lt; th & gt; विधि नाम & lt; / th & gt; & LT; वें & gt; संपादित करें & lt; / वें & gt; & Lt;? Php if (isset ($ अभिलेख)): foreach ($ नुस्खा के रूप में $ रिकॉर्ड):? & Gt; & LT; टीआर & gt; & Lt; td & gt; & lt; इनपुट प्रकार = "चेकबॉक्स" नाम = "idsToDelete []" मान = "& lt;? = $ नुस्खा ['नुस्खा']? & Gt;" / & Gt; & lt; टीडी & gt; & Lt; td & gt; & lt;? Php इको $ नुस्खा ['नुस्खा']...

java - Trouble getting a card shuffle method to work -

यहाँ समस्या का वर्णन है: "शफल विधि कार्ड ऑब्जेक्ट्स की सरणी को घसीट देती है एक बार में कार्ड ऑब्जेक्ट्स की एक सरणी के माध्यम से पाशन करके और एक्सचेंजिंग (सरणी व्याख्यान के स्लाइड 62-63 देखें) कार्ड के साथ उस स्थिति में कार्ड को यादृच्छिक स्थिति में (जैसा कि एक रैंडम नंबर द्वारा निर्धारित किया गया है) 0 और 51 के बीच । " मैंने उपर्युक्त करने के लिए नीचे कोड लिखा है, लेकिन यह मेरी कार्ड ऑब्जेक्ट्स को फेरबदल नहीं कर रहा है। सार्वजनिक शून्य फेरबदल () {/ / अगले कार्ड को रीसेट करें। अगले कार्ड = 0; यादृच्छिक randomGen = नया रैंडम (); कार्ड अस्थायी कार्ड; Int randomNum = randomGen.nextInt (DECK_SIZE); Int i; के लिए (i = 0; i & lt; DECK_SIZE; i ++) {tempCard = डेक [i]; डेक [आई] = डेक [यादृच्छिक]; डेक [यादृच्छिक] = tempCard; } // के लिए अंत। } // अंत फेरबदल () समस्या क्या है और मैं इसे कैसे ठीक करूं? पीएस मैं अनुरोध पर कंसोल आउटपुट पोस्ट करूंगा। आप randomNum को for loop के प्रत्येक चलन के लिए उत्पन्न करना चाहिए इस तरह से अपने पाश को फिर से लिखना आपको...

android - lost some parameter from user space to kernel space -

I have a question for the consultation parameter, I have some parameters user location , one of them has been lost on kernel space (value is wrong when checking it from the kernel location). Below are some of my code and logs, write lost paragraph, I set write_flag as integer number (2) in user space. But when I print write_flag in colonel space it is completely wrong (1651866136). Some parameters were moved without problem like Oploads and Arg. [859.877750] user.write_flag: 1651866136, idata-> Ic.write_flag: 1651866136 [859.883133] user.opcode: 8, Idata-> Ic.opcode: 8 [859.887421] user.arg: 0, idata- & gt; Ic.arg: 0 To correct this issue, anyone can give me ideas, HAL PARTY: LOGI ("dev-> Fd:% d, cmd_idx:% d, arg:% d.", Dev-> fd, mmc_local_cmd- & gt; opcode, mmc_local_cmd-> arg); LOGI ("dev-> write_flag:.% D", mmc_local_cmd-> write_flag); Rate = IoCTL (dev-> FD, MMC_IOCCMDDD, and MMC_LOCAL_CDD); kernel side:...

Find the host name in postgresql -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर क्या आसान सिंटैक्स के साथ संभव है जैसे एमएस SQL ​​सर्वर SELECT HOST_NAME () में postgresql 9.3.2? मैंने कुछ लेख पढ़ा है लेकिन कोई परिणाम नहीं! नहीं, डिफ़ॉल्ट बिल्ड में ऐसा नहीं है। नए देशी कार्यों के साथ PostgreSQL का विस्तार करना आसान है और किसी ने पहले से ही ऐसा किया है।। एक अतिरिक्त तरीका एक अतिरिक्त डीबी भाषा स्थापित करना होगा (PostgreSQL बहुत ही अच्छा है - आपके पास मनमानी भाषाओं का उपयोग करने का विकल्प है बजाय pl / pgsql के) और उस भाषा के अपने कार्यों का उपयोग करने के लिए कि। उदाहरण के हैं Pl / python () और pl / perl (- विश्वसनीय और अविश्वसनीय भाषाओं के बारे में चर्चा भी देखें)।

javascript - ng-repeat does not update after changing data -

UPDATE कोणीय की सेवा का उपयोग करें। कॉलबैक में $ scope.items सेट करें। धन्यवाद सिलवेन और चेन-त्सू लिन। मैं अंगुल के लिए एक नौसिखिया हूँ जो सीमित अंग्रेजी बोलता है यह एक बहुत ही सरल प्रश्न हो सकता है। जब डेटा में परिवर्तन होता है तो मैं एक आइटम सूची प्रदर्शित करने की कोशिश कर रहा हूं। लेकिन, मैं सूची को नहीं देखता, जब तक कि मैं कोड चलाने से पहले आइटमों को इनट नहीं करता। html code: & lt; ul ng-controller = "testcontroller "& gt; & Lt; li एनजी-दोहराने = "आइटम में मद" & gt; {{item.description}} & lt; li & gt; & Lt; / ul & gt; जेएस कोड: फ़ंक्शन testControler () {var items = [] var डेटा = [{description: 'food'}, {description: ' फल}}} सेट टाइमआउट (फ़ंक्शन () {आइटम = डेटा}, 2000) $ scope.items = item} $ टाइमआउट का उपयोग करें setTimeout के बजाय करें; इस तरह आप कोणीय दुनिया में रहते हैं कॉलबैक में $ scope.items भी सेट करें। फ़ंक्शन testControler ($ टाइमआउट) {$ scope.items = []; Var डेटा =...

java - How to access a typecasted object's method directly? -

It looks like a basic object oriented problem, but I was coming from Pascal / Delphi background, and I Similar method to get the same result. In Pascal / Delphi, I can change something like this (this is not entirely true, but just to give you an example): var A: teabton; B: string; Start one: = getObject (request)); B: = a.caption; End; In: var b: string; Start b: = TeTube (getObject (request)). Caption; End; But how to get the same solution in Java? How to change: button a; String B; A = (button) getObject (request); B = a.caption; in string b; B = (button) getObject (request). Caption; Or something like this? The point is, I want to eliminate the need to declare a variable variable to hold an object, if I want to take another value (or object) inside that object. But the problem is that the object should be typed, because what I get is just a normal object getObject () function Thanks for your help. I will do the following: b = (string) (( But...

javascript - Phonejs toolbar menu text shows twice -

Recently, I use the HTML5 framework: "Phones" to develop a mobile project, when I I want to create a toolbar menu with empty view, It looks like the menu text will show in this demo twice: I use it like this: homeToolbarItems = [location: 'menu', text: 'logout', click Action: logout}, {location: 'center', text: 'manage membership'}]; And the menu shows 'logout' twice, what can I do? It appears that the menu item renderer is triggered twice on the initial view once more on click Once I was able to solve this buggy behavior by adding an initial flag to render for the first time. If the flag is slipped then do not re-present the menu item on the additional request. Example ... var menuInit = Incorrect; Var viewModel = {menuItemRenderer: function (itemData, itemIndex, itemElement) {if (menuInit == incorrect) {itemElement.dxButton ({text: "Execute" "+ itemData.text +" \ "action"}); Menuinit...

winforms - How to filter DataGridView in C# Win Forms? -

Image
No) It is working flawlessly below as you can see in the picture below. Now I want to filter entries by contact person name. I have a textbox and search button, when the user enter "contact person name" such as "altaf" and then click on the search, the gridview should be refreshed and only the entry should appear with entry = 4. The .cs file has the only code: (it was generated automatically) Private Zero form 2_load (object sender, event ergugs) {this.tblTicketDetailTableAdapter.Fill ( This.sTDataSet1.tblTicketDetail); // auto-generated} I clicked this button as suggested by someone, but it generates an error: "Can not interpret token in position 27 "{27}". . Change ("'", "' ') +"%' "; DataGridView1.DataSource = bs.DataSource; I do not have any experience in DataGrid footage or that is to win form coding for that matter, so please explain in detail. Your help is really apprec...

sql server - SQL: Can I use CHARINDEX to return the best match not just the first match? -

Not sure if this bela will work I want to return to code 2 by joining CHARINDEX. As another example, I have a description table (DT) that looks like this: ID details code 158 99 159 Interested in Interest 383 160 Account Due to 384 Interest Due and a Master Table (MT) with such entries: ID Anger code 1 interest I need to set the code on the master table to 383. When I do INSERT based on a join using Chirindax (DT.Description, MT Discription)> 0, it sets mt.code at 199 each time. How do I drag the host table from the description table with the best match, not just the first matching example? Thank you! You can use a simple addition to simply find a match with A. Longest time Leave up to finish all of the match; update t1 SET t1.codeA = t2_1.codeB from table 1 t1 JOIN table2 t2_1 at CHARINDEX (t2_1 .colb, t1.colA)> ; On CharacterX (T2_2.colB, t1.colA) & gt; 0 and T2_1.codeB & lt; & Gt; T2_2 Kodab and LAN (T2_2.colB)> LAN (T2_1.colB) is W...

javascript - Onblur event is not firing for first time -

I have an application, I need to update the number, for this, I have planned, when I number Clicking on the container, Iam is converting it to an input field with jquery, then on the stigma I want to turn it off as plain text inside the container divan and then trigger the AJAX to update it in DB Want to do it, but first time the blur also trig No, I mean, if I click at the forst time for the number, then it is converting it to the input field, and when I click outside (blur also), the blur function does not work If I click again and click on the outside, then it's okay. Here is my code & lt; Div onclick = "wrap ($ (this))" & gt; 999999999 & lt; / Div & gt; & Lt; Script & gt; Function wrap (sel) {sel.html ('& lt; input onblur =' open ($ (this)); "value =" '+ sel.html () +' "/" gt; '); Sel.attr ('onclick', ''); } Open the function (child) {warning ('unverifying'); } & L...

c++ - Receiving sms through gprs shield on Arduino -

I am trying to find some example code which is about listening to sms and reading it. I am new in command, so I am trying to see some examples. My intention is to listen to SMS and read content. If there is a word in the message: 'Forward', I want it to run a certain function. I am using a studio GPRS v1.4 gradient with my arduino uno. I found a library but I am confused with the readSMS () function. The library is found here:. I have the current code: GPRS GPRTtext (8, 7 9, 600, "1818XXXXXXXXX"); // Texas, Rx, PWR, Bodrate, phone number zero setup () {Serial.begin (9600); GprsTest.preInit (); Delay (1000); While (0! = GprsTest.init ()) {delay (1000); Serial. Print ("init error \ r \ n"); }} Zero loop () {// is not gprsTest.readSMS () for doing anything; } My problem is that what I want to do in the parameters of the readSMS function. According to the API, the int, string, and other int int readSMS (int message index, four * message, integ...

java - How to parse json object date to Android -

After parse json date for "itemprop =" text "> like \ / date (1391802454790-0700) \ / How to (2014/01/31 11:44 AM) In Android API results:. "," "Comment": "ogogog", "commentDate": "\ / date (13918024547900000) \ /", "commentReply": [], "NumberOfLikes": 1, " UniqueId ":" f786e0da-2e4a-430F-a37c-c60db1901e38 "," VIDEOID ": 65} I tried the code below but this format (2014/01/31 11 : 44 o'clock). string json = "\ / not displayed as date (1391802454790-0700) \ /"; // string json = "comment; comment comment"; Json = json.replace ("/ dated (", "") .replace ("- 0700) /", ""); Long = tall. PartLong (JSN); Date d = new date (time); Println ("Dateeee ---->" + d); After you should format d by using the date MM / Dd / yyyy hh: mm one string json = "/ date (1391802454790-070...

php - Insert DropDown Values to MYSQL -

This is my html form and php file which I want to include in my database by selecting the dropdown values ​​in the database. Enter the selected value in the database and my data is being included in my database when I click on submit button twice gt; & Lt; Br / & gt; & Lt; Div class = "label" & gt; Email & lt; / Div & gt; & Lt; Input type = "text" id = "email" name = "email" /> gt; & Lt; Br / & gt; & Lt; Div class = "label" & gt; Phone number & lt; / Div & gt; & Lt; Input type = "text" id = "phone" name = "phone" /> gt; & Lt; Br / & gt; & Lt; Div class = "label" & gt; Budget & lt; / Div & gt; & Lt; Select ID = "Budget" name = "budget" & gt; & Lt; Option value = "" & gt; Select & lt; / Options & gt; & Lt; Option value = "1" & gt; 0-100...

file rename - Git : Not under version control fatal error -

I am trying to rename a file via the Torotoisegit -> Rename option. The file is already subject to version control because it was checked-in at the previous commit. I'm getting the "Critical Error: Not Under Version Control" error any error that could cause this error? I have also tried to rename files through the "GIT MV" option, but I am still getting the same error.

javascript - Blank map MapType wanted in google maps v3 -

I am trying to find a way to create a solid color map in the Google Maps v3 API, so that my second selection Drop-down map type menu I understand that it was possible to use MAP_TYPE_NONE with v2, but I could not find a comparable functionality in v3. I think I push MaptypeTypes (new gmaps.ags.MapType ("http: //", {name: 'no map'})); But apart from having a link, it takes about 5 seconds. I want to do something through the drop-down map-type menu, which I mean by means of the map registry. FWIW is a work example (with clause) Yes, you can do this. About the documentation and making of the is a good tool to help you create your custom style. Hope it helps!

jquery - Make a checkbox and checkbox text disable -

I have a checkbox that I need to disable with the disabled text of the checkbox, but I failed to do so. I have the following code: $ ('Input: checkbox [type = "checkbox"]'). Each (function () {$ (this) .attr ("disabled", true) .attr ("readable", true);}); The above code is not disabling my checkbox, but I am able to check and uncheck the checkboxes. The only thing I wanted to do is disable the checkbox and if the value of the check box I am loading in the backend is checked, then its position should not be affected. I also want to disable the checkbox text Please note I have dynamically prepared the checkbox and here is the code for it: if (cellvalue == "True ") {Html =" & lt; input type = 'checkbox' class = 'checkbox user' id = 'checkbox "+ row +"' check / & gt; " } Other {html = "& lt; input type = 'checkbox' square = 'check box user' id = ...

c++ can use chromium base::callback in interface? -

Can I use Chromium in the base :: callback interface? I'll keep the callback on another dynamic link library Thunderpool, but I'm not sure it's correct and which module releases callback? The short answer is yes, you can do this from the document // Callback object must be passed by a cons-reference, and stored by / // copy. They internally store their state via a refueled class - // thus there is no need to remove it. // // The reason for passing through a cons-reference is to avoid unnecessary AddRef / Release pair in internal condition

mysql - DoctrineORM : Error while inserting data into a table which has foreign key attribute -

Image
मेरे पास " code "" code "में " course " कॉलम तालिका अंक को "कोड" तालिका में "id" "sub_category" तालिका "उपयोगकर्ता" में "id" कॉलम के लिए "courseort_id" कॉलम को "कोर्स" तालिका अंक देता है > तालिका। मैं "कोर्स" तालिका में डेटा सम्मिलित करना चाहता हूं। मैं डेटाबेस लाइब्रेरी के रूप में सिद्धांत के साथ Symfony2 ढांचे का उपयोग कर रहा हूँ। जब मैं निम्नलिखित कथन का उपयोग करके डेटा तालिका को सम्मिलित करने का प्रयास करता हूं: $ newCourse = new \ FrontEndBundle \ Entity \ Course; $ NewCourse- & gt; setSubcat ($ डेटा [ 'subcat']); $ NewCourse- & gt; setName ($ डेटा [ 'coursename']); $ NewCourse- & gt; setInstructor ($ instructorId); $ NewCourse- & gt; setDescription ($ डेटा [ 'विवरण']); $ Em- & gt; जारी रहती है ($ newCourse); $ Em- & gt; फ्लश (); , मुझे एक त्रुटि मिलती है ( $ newCourse कोर्स एंटिटी क्लास का ऑब्ज...

spring security - Difference between two action signatures in grails -

In grails, we can define an action using 2 methods: - Def action name () {} and def actionname = {} what is the difference between two styles is? When I tried to put spring security annotation on the action (second genre), then he said it is not applicable to the "safe" field . what does this mean ? Is it due to closing? Grails refer to the use of closures for controller functions in the preceding versions of the Grails Reference Document, itemprop = "text"> Personally, I use methods in all my controllers and this issue has also come with comments like @ safe which work only on methods and Not Closer

android - Stroke deletion in finger paint -

I am developing a finger-color application. I have a full functionality that wants to delete a full stroke (I do not want the point or full screen deletion) I want to remove the stroke (a single stroke is the middle point between touch and touch). Is there a predefined method in the Android canvas erasing this stroke? Keep a list of all strokes. When you want to delete one, remove it from the list, cancel your view, and walk through the complete list of all strokes and recreate the canvas.

Java convert 2 dimensional String array to String -

After I change a 2-dimensional string array. Then to copy the 2-dimensional string array, try another 2-dimensional String in the string string, print the string after that but what the string does not believe ... I am trying to do this without using the Java library. Public class train {// public static void {String [] args) {String [] [] FF = {{"0", "1" , "3", "4", "5", "3", "4", "5", "6", "7"}, {"0", "1", "2" , "6", "7"}, {"0", "1", "2", "3", "4", "5", "6", "7"}, {"0", " 1 "," 2 "," 3 "," 4 "," 3 "," 4 "," 5 "," 6 "," 7 "}," 5 "," 6 "," 7 "}, {" 0 "," 1 "," 2 "," 3 "," 4 ",...

Android camera intent timestamp is incorrect -

I have a code that wants to take pictures from the Android device to take pictures, after that it is on previous activity The photo taken back works fine, but the problem is made in 1969, when the photo timestamp (when checking photo details from the gallery) is made. I do not know why this happens Ury mCapturedImageURI; Public Zero (see V) {ContentValues ​​value = new content value (); MCapturedImageURI = getContentResolver (). Insert (MediaStore.Images.Media.EXTERNAL_CONTENT_URI, Value); Intent CameraIntent = New Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE); CameraEntent Input Extra (MediaStore.xtra_uaptu, mcaptide imageURI); StartActivityForResult (camera entrant, TAKE_PHOTO); } If you are using a real tool for testing, please If you're using an Android Virtual device , then this will probably be used and date you Make sure that your PC time is correct on PC time. Hint: Finally try to modify the image after creation by writing an additional c...

java - Eclipse maintains a lock on certain service's jars even when the service has been undeployed -

Image
I run my badge from eclipse, and use reference files to deploy applications. But whenever I weaken a service, and I try to make a service again (i.e. its snapshot) using the mvn clean install , it complains that some or other Jar is still being used somewhere, and it can not be removed. The result is that every time I have to start my Tomcat again to create one of my personal service Eclipse Instead of employing web applications from workspaces, use the TOMAX installation as in the picture:

sap - X-CSRF-TOKEN validation failed in SAPUI5 -

Image
I am calling a create service from SAPU 5 to SAP Net Weaver Gateway. I have written the following code to get the CSRF but I can not get it. This tells me the username and password to be shown in the image. code: Save to function () {useroDataModel = newsap.ui.model.odata.odataModel ("Proxy / Juice / Opu / OData / Juice / ZUI_GROUP1_CREATE" ); Empid = oTF2.getValue (); Empname = oTF1.getValue (); Empaddr = oTF.getValue (); Empdoj = oDP.getValue (); Uilogon (); UseroDataModel.read ("/ zui_group1_createCollection (im_emp_id = '" + empid + "' ')", blank, empty, true, fnSuccess, fnError); UseroDataModel.setHeaders ({"X-CSRF-Token": "Fetch" // auth}); Function fnSuccess (data, feedback) {//alert(response.headers['x-csrf-token ']); Var header_xcsrf_token = response.headers ['x-csrf-token']; // warning (header_xcsrf_token); Var createrequestdata = {im_emp_id: empid, im_emp_name: empname (), im_emp_addr: e...

java - An alternative to StringBuilders by just using Strings? -

वर्तमान में मेरे पास यह है .... सार्वजनिक स्थैतिक स्ट्रिंग दोहराने वाले (इंट गुणक, स्ट्रिंग पाठ) {स्ट्रिंगबइल्डर दोहराना = नया स्ट्रिंगबइल्डर (); के लिए (int i = 0; i & lt; text.length (); i ++) {for (int j = 0; j & lt; गुणक; j ++) {repeat.append (text.charAt (i)); }} System.out.println ("पत्र दोहराए गए:"); Println ( "-----------"); Println (दोहराने); Println ( "--------------"); वापसी दोहराएं। स्ट्रिंग (); } मैं इस तरह से कोड चाहूंगा कि अंतिम वक्तव्य जो वर्तमान में "वापसी दोहराएँ। टू स्ट्रिंग ();" पढ़ता है; बस "वापसी मान" करने के लिए मैं यह करने के लिए यह कोड कैसे बना सकता हूँ? क्या ऐसा करने का एक तरीका है कि स्ट्रिंगबइल्डर्स का उपयोग किए बिना और स्ट्रिंग्स का उपयोग कर रहे हैं? अपने विशेष मामले में आप अपना कोड सरल कर सकते हैं लेकिन ज्यादातर मामलों में, स्ट्रिंगबइल्डर का उपयोग करना बेहतर विकल्प है। और "सीधे स्ट्रिंग का प्रयोग करना" बिल्कुल पसंद नहीं है। सार्वजनिक स्थैतिक स्ट्रिंग दोहराने वाले (इंट...

java - List of elements in JDOM -

This summary is not available. Please click here to view the post.

c# - DrawToolTipEventArgs graphics property read only and change tooltip location -

I have made a graphic component that your tooltip-style pop. I use these events have: private void Tultiptekst_ Draw (object sender, DrawToolTipEventArgs e) private void ToolTipText_Popup (object sender, PopupEventArgs e) When mouse far down below, is not the tooltip visible because it is outside the visible screen area, so I want to show it in the left and / or upper Mauspointr position. Txt_Document parameters tooltip DrawToolTipEventArgs e only read certain properties (such as e. Graphics). I tried: e.Graphics.TranslateTransform (-50, -50); But its "move" tooltip content is not tooltip only. I really j ... I "paint" tooltip information and lines, e. Graphics. Using the DRASTRING ...

c# - Non-unique name in ASP MVC when using .Where().FirstOrDefault() inside a loop -

मेरे पास निम्न एएसपी एमवीसी राज़र कोड है: @ फोरेच (मॉड में मॉडल .allProducts) {& lt; div वर्ग = "एस्ट्रियन-समूह" & gt; & Lt; div वर्ग = "एसीयियन-हेडिंग" & gt; & Lt; एक वर्ग = "accordion-toggle" डेटा-टॉगल = "पतन" डेटा- parent = "accordion2" href = "# पतन @ (i)" & gt; & Lt; h4 class = "widgettitle" id = "शीर्षक" & gt; & gt; @ Prod.Description_VC & lt; / h4 & gt; & Lt; / a & gt; & Lt; / div & gt; & Lt; div id = "पतन @ (i)" वर्ग = "एसीयियन-शरीर पतन" शैली = "ऊंचाई: 0 पिक्सेल;" & gt; & Lt; div class = "accordion-inner" शैली = "मार्जिन-बायां: 10px;" & gt; & Lt; div शैली = "पैडिंग-नीचे: 10 पीएक्स;" & gt; & Lt; strong & gt; उत्पाद के लिए कुल: & lt; / strong & gt; @ Html.TextBoxFor (ओ = & gt; ओ। ओफ़रहार्डर्स। जहां (पी = & gt; पी। उत्पादक_आईडी ==...

groovy - renameTo() in grails to rename an apk file to zip file -

I want to upload apk files. And then to extract some information, convert it to Zip. I used the renameTo () function but it is not working string newFilename = "new.apk" New file (f.getOriginalFilename ()) .name (new file (" New.apk ")) (f.getOriginalFilename () will revert the name of an APK file) How can I change the name exactly? Understand that the given file is given a full path. For example new file (webRootDir + "/" + [folder name] + "/" + f.originalFilename) .renameTo (new file (webRootDir + "/" + [folder] Name] + "/" + + appname + ".zip")) will solve the problem.

android - Not enough space to show ad (AdMob) -

I am trying to show ads in my activity, but it is always giving an error that "enough to show ads" No Location " My XML file is: Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" ad: adSize = "BANNER" Advertising: adUnitId = "@ string / adobebed android: Android: Android: Android: Android: com.google.ads.AdView Android: ID = "@ + ID / AdMyWid" "Android: Layout_linePrineBottom =" True "Android: Gravity =" Down | AdView = (AdView) FindViewById (R.id.adMobadView); AdRequest again = new AdRequest (); re.setTesting (correct); re.setGender (AdRequest.Gender.FEMALE); ad.loadAd (again); : 02-18 14: 16: 17.869: W / WebCor (813): Can not get view after first layout 02- 18 14: 16: 17.979: come / Advertising (813): Honorsive () 02-18 14: 16: 17.979: W / Advertising (813): There is not enough room to show ads! : , is: The left and right padding of your relative layout ...

javascript - Html 5 Rotate image inside the Canvas -

I need to rotate an image inside a canvas..I have gone and saw similar questions in the StackVaverflow. I can not do the same object to move inside the canvas I can only do the same canvas Can turn So I have to translate the center of the object and then rotate the canvas. I have followed the same stuff, but I have been killed by translating the image into the center. I am using the code below. Here's JSfield. It is moving on a whole canvas even if there is an image .. Some make me a guide where I am wrong. Thanks // Hero Canvas Ball = New Hero (); Var angle = 0; Holocaust = document. CreateElement ("canvas"); Herocanvas.width = herocanvas.width = 500; Herocanvas.height = herocanvas.height = 500; Heroocatax = heroconavategatecontite ('2d'); Document.body.appendChild (herocanvas); Var requestAnimFrame = window.request animationframe || Window.webkitRequestAnimationFrame || Window.mozRequestAnimationFrame || Window.msRequestAnimationFrame || W...

internet explorer - How can I test the same site from IE8 / 9 / 10? -

परीक्षा वास्तविक इंटरनेट एक्सप्लोरर पर की जानी चाहिए क्योंकि यह वेब ग्राफिक के बारे में नहीं है लेकिन इसके बारे में कैशिंग प्रणाली। क्या रिमोट होस्टेड वर्चुअल मशीन में स्थापित होने वाले विभिन्न वेब ब्राउजर में लॉग इन करना संभव है और इसका परीक्षण करना है? आप वर्चुअल मशीनों के साथ अपने कंप्यूटर पर विभिन्न ब्राउज़रों पर अपनी साइट का परीक्षण कर सकते हैं। Microsoft आपके कंप्यूटर पर वर्चुअल ऑपरेशन सिस्टम चला सकता है । इसके अलावा दे देता है। वीएचडी, यह फ़ाइल है जो आभासी पीसी लोड करता है और सिस्टम चलाता है। उस समय एमएस, आईई 6,7,8 और 9 संस्करणों के लिए परीक्षण देता है। इसके अलावा, एक ऐसी साइट है जो इस सेवा को प्रदान करती है, और इसका उपयोग करने की एक स्वतंत्र अवधि है वहां आप लगभग सभी ओएस और सभी ब्राउज़रों को देख सकते हैं और अपने परीक्षण करें एक उन्नत सिस्टम है जो बहुत सारे विकल्प देता है जो कि आप अपने परीक्षण पर स्वचालन सहित, का उपयोग कर सकते हैं। यह साइट वही करती है, अपने सर्वर पर आपके लिए वर्चुअल मशीन चलाती है और आपको वेब साइट के माध्यम से, आपकी साइट को कैसे लोड किया...

css - My canvas gets 2 borders instead of one -

I have several canvases on my page. I should all leave one and get a thin border, which has a thick border I want to insert all the border information into the element inside the HTML head. Here's my attempt: & lt; Style & gt; / * In the canvas with thick border, the ID is 'C' * / # C. Border: 8px solid # 8525AA; } Canvas {boundary: 2px solid # 5408FA; } & Lt; / Style & gt; This is a fraction of my HTML body: & lt; Canvas ID = "Filler" width = "10" height = "70" & gt; & Lt; / Canvas & gt; & Lt; Canvas id = "c" width = "400" height = "200" & gt; & Lt; / Canvas & gt; & Lt ;! - Follow more canvas here - & gt; Problem: With this code, the canvas two boundaries, with the id 'c', become one thick and thin! Is it intentional behavior? If so, how can I achieve my goal? Try changing your CSS like this: & Lt; Style & gt; / * Id ...

Correct parallelisation of git filter-branch -

I have a repo with loads of branches and "git filter-branch ... - -" all dramatically Slows down and almost (about 400,000 commits, about 7 days time). But 'GIT filter-branch' at a branch gives an important performance boost (about 5 days). Is it right to use the following algorithms to parallel the 'filter-branch' on the load of the branches? For bx (b 1.bn): GIT clone - beer-bbx repo.org repo.bx parallel on repo: bit: git filter- Branch - index-filter ... - head GIT init --bare repo.new For bx (b 1.bn): CD repo.bx; Git push repo.new head: bx Riggers, Girt GIT Filter-Congratulations on finding an interesting way to parallel the execution of the branch - I think in theory, the process described will be correct and give Will be successful in; Intrinsically repeated written history, though it will surely depend on the right what your - index-filter command was going on (resulting in branch history completely different If you were g...

php - Google Login API on Codeigniter is returning empty userinfo. Any ideas? -

I have a Google login works, except that the final step on my site, I it received from: access_token expire Nothing else! Here's where I am requesting data: $ url = 'https://www.googleapis.com/oauth2/v1/userinfo? Alt = json & amp; . http_build_query (array ('access_token' =>> $ Token-> Access_token,)); This completes the loop, but when I Czech Out: file_get_contents ($ url) found nothing to me! These are my Scrop: https: //www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.profile.emails .read Do I miss a scope? Or am I requesting wrong information? In addition, I am using v1 , should I use v2 instead? Try your scope is wrong: " finally, as @ Dimato had suggested, you should probably start it you Google will install APIs with client libraries Has and makes it very easy to work with Google's OAuth 2 implementation....

Update Mysql from Curl using php -

मेरे पास एक php curl स्क्रिप्ट है $ ch = curl_init (); $ Fp = fopen ("कैश / temp_file.txt", "w"); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ ch, CURLOPT_URL, "https://upload.wistia.com"); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ डेटा); Curl_setopt ($ CH, CURLOPT_PROGRESSFUNCTION, 'प्रगति कॉलबैक'); Curl_setopt ($ ch, CURLOPT_BUFFERSIZE, (1024 * 1024 * 512)); Curl_setopt ($ CH, CURLOPT_NOPROGRESS, FALSE); Curl_setopt ($ CH, CURLOPT_FAILONERROR, 1); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, 1); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_TIMEOUT, 15); Curl_setopt ($ CH, CURLOPT_USERAGENT, 'मोज़िला / 5.0 (विंडोज; यू; विंडोज़ एनटी 5.1; एन-यूएस; आर.वी.: 1.8.1.13) गीको / 20080311 फ़ायरफ़ॉक्स / 2.0.0.13'); $ परिणाम = कर्ल_एक्सएसी ($ CH); प्रतिफल $ परिणाम; फ़िलिट ($ एफपी, $ परिणाम); curl_close ($ ch); fclose ($ एफपी); जो एक स्ट्रिंग देता है $ result = {"id": 5966875, "नाम": ...

python - Twisted, deferred requests and File vs ErrorPage -

I am currently creating an HTTP server with Python / twisted. Store this server with another web server, store it locally and send feedback to the customer. If he has to face 404, then he should try to serve the local file, if there is no local file, then he will fail. To achieve this, I am using different requests. My code looks almost like this: class remote file (resource): isLeaf = True def render_GET (Self, requested): # Downloading related file on remote server # Service_local_file` When a return is returned NOT_DONE_YET def service_lock_file (auto, request): if self.file_exists_for_request (requested): fileResource = File (filename) fileResource.render ( Request) else: page = NoResource ("no such file") html = Page Render (requested) # The next two lines are my problem request. Type (html) request.finish () I had to add the last two lines (type ) and full () ) To really get the request to finish. I do not need these rows for the file resource, because...

php - how to display the object value in array -

Text after " subscription object {id: "3", type: "all", name: "order payment status complete "Admin-1" ... admin_contact: object admin_contact_selector: "admin-1" Category: Object display: "Flight: [All]" id: "-1", "-1", category_id: "-1", admin_contact_selector: "admin-1" "Product_type:" Flight "__proto__: Object category_id:" -1 "id:" 3 "Name:" Order Payment Status Fully Payment ":" All "__proto__: Object I subscribe with ID Consumer commodity prices. I want to display the value of the display in the category object. print "& lt; pre & gt;"; Var_dump ($ membership ['category'] ['dispaly']); Print "& lt; / pre & gt;"; ? & Gt; My problem return value is empty, the actual value is Flight: [All] thanks a lot It should appear that .. echo $ subscription->...

javascript - search xml file for any occurrence in search string -

Image
When searchterm is one of the keywords (like 'driver' or 'white)' gives this result and it looks okay, But whenever SEARCHTERM has been extended to 'Driver 102' or 'R-22 red' is not something. (tried to loop on the quote from the regular expression, avoiding spaces, but SEARCHTERM - it goes through each letter) Any idea about how to get results from keywords in many keywords (like 'Driver 102' or 'R-22 red') * XML Doc: * & Lt; Find_index & gt; & Lt; Search & gt; & Lt; Title & gt; Driver & lt; / Title & gt; & Lt; Keyword & gt; 101 101 & lt; / Keyword & gt; & Lt; Link & gt; R-12 & lt; / Link & gt; & Lt; Color & gt; White & lt; / Color & gt; & Lt; Itemid & gt; Trial & lt; / Itemid & gt; & Lt; / Search & gt; & Lt; Search & gt; & Lt; Title & gt; Driver & lt; / Title & gt; & Lt; Keyword & gt; 102 ...