Posts

Showing posts from September, 2013

image - New warning in Android 4.4 -

I have seen these exceptions recently (those who have been caught but are logged into log-in): W / System.err (2612): java.lang.RuntimeException: Canvas on android.graphics.Canvas.throwIfCannotDraw: a non premultiplied bitmap android.graphics.Bitmap@535924e0 w / Systemkerr (2612) trying to use (Canvas.java:1088) W / System.err (2612): android.graphics.Canvas & lt; Init & gt; (Canvas.java:139) System.err (2612) :. Com.example.imaging.ImageHelper at addShadow (ImageHelper.java:553) is I understand this exception means (as well as non-premultiplied bitmaps), but I'm not sure whether this exception may cause I've tried it. Are we having problems with the pictures we are receiving from the server or are we doing something locally? (This is not just the line that causes exception, but it is one of them). For reference, I have added method in question and highlights that which causes an exception: public static bitmap addShadow (Bitmap bitmap) { Try {BlurMaskFil...

how to Implement slidein effect in windows phone toolkit using xaml and C# -

& lt; फोन: लॉन्गलिस्ट सिलेक्टर का नाम = "मेन लाँग लिस्ट सिलेक्टर" मार्जिन = "0,0, -12,0" आइटमस्सोर्स = "{बाध्यकारी समस्याएं}" टूलकिट: टर्नस्टाइलफ़ीथरएफ़ेक्ट। फ़ेडरिंगआईएनडीईक्स = "0" चयन = बदल दिया गया है = "लोंगलाइस्टसियल्टरसिसचर्ड चेंजेड_1" & gt; & LT; फोन: LongListSelector.ItemTemplate & gt; & LT; DataTemplate & gt; & Lt; ग्रिड मार्जिन = "0,0,0,10" & gt; & Lt; छवि स्रोत = "{बाध्यकारी समस्या छवि फ़ाइल}" ऊंचाई = "65" चौड़ाई = "65" क्षैतिज एलाइन्मेंट = "वाम" मार्जिन = "10,0,0,0" & gt; & Lt; / छवि & gt; & Lt; स्टैकपैनेल मार्जिन = "80,0,0,0" & gt; & Lt; TextBlock Text = "{बाध्यकारी समस्या नाम}" शैली = "{StaticResource PhoneTextExtraLargeStyle}" / & gt; & Lt; TextBlock Text = "{बाध्यकारी समस्या Desc}" शैली = "{StaticResource PhoneTextSubtleStyle}" / & gt; ...

jquery - Attach a JavaScript function to a standard link that would handle the request? -

On my page I have several DIVs related to the same category and with the automatically generated links by the flow doc There are small statements for @mants). Is not a user to redirect any other URL, instead of calling on that function instead of calling on that link, which will filter the statements given on that page, will show only The Dietary Div in which @Myt was clicked? Here's an example: & lt; Div class = 'entry' data-hashtag = '# supermarket # feed # alcohol' & gt; & Lt; P & gt; #supermarkets #food and #lcohol and lt; A title = "search @ personal" category = "app-tag-link" href = "/ context / @ personal" & gt; @ Private & lt; / A & gt; & Lt; / P & gt; & Lt; / Div & gt; The user clicks on private and instead of going to context / personal / a javascript function is said to filter the DIV via jQuery, as it is. Thank you for your help! Of course - you want to add the...

html - Css set border none to last table tr -

I have td : Table TD {border below: 1px dotted # 706E6D; Direction: RTL; Line-height: 30px; Vertical-row: middle; } I border: none; wants to set the previous tr (this can be td ). table tr: last-child {limit: none; } You apply for rule rules of td elements are doing . You have to remove it from td to the last tr . table tr: last-child TD {limit: none; }

html - Drop Down Menu hidden behind the slider -

The drop down menu is hidden behind the slider on Chrome. I have not yet checked Internet Explorer. Tried to set up submenu with: relative and high z-index, and sliders as the status cover: relative and lower z-index. However, this is still not working The website I'm working on is: slider_uper .rev_slider_wrapper {- Webkit-box-sizing: border-box; -MOZ Box-Size: border-box; -mm-box-size: border-box; Box-size: border-box; Z-index: 1; Status: Relative; } .tp-bannertimer {z-index: 20! Important; } .rev_slider iframe {z-index: 100; } Main Menu # Header-section & gt; # Main-nav (border-top: 1px solid # e4e4e4; / * background: url ('image / triangular page'); * / background color: # C17B48; border-top: 1px solid # E25879 Important! Border Bottom: 1px solid # E25879! Important: Position: Relative; Z-index: 2000;} # Header-section # Main-nav, # header-section # Main-nav.ub sub-menu, #header-section #main-navs. Sub-menu, #header-section #main-navs. Sub-menu li, ...

javascript - Passing LatLng values in Google-maps-v3 directions API -

How to pass LatLng values ​​for the original / destination parameters in Google's request API's request parameters. Visit this link: var request = {origin: 'Chicago', // Here I want to add a latitude and longitude value destination: 'New York', Travel mode: google.maps .DirectionsTravelMode.DRIVING}; You just need to be able to use a new Google Lat / lng pair. For example: Basic: new google.maps.LatLng (51.2244, -12.12221)

javascript - override extent for one horizon instance -

I have a series of horizons graphs that have been created like this: d3 Select ("body"). Selection (".history"). Data (metrics). Center () .append ("div") .attr ("class", "horizon") .attr ("id", function (d) {return d.tosting ();}) .col (reference .horizon Height (['75'])); Where matrix is an array metric objects. I the horizon for the one code> extent I have a code on the border, but I'm not sure I'm calling it, d3.select ("# id-attribute") .call (. Context.horizon (to extent) (function (d, i) {return ([0,1000]);}); This type of work seems to be working, but the graph display gets spoiled, extra white space is being added beneath the graph and the speed of the graph is not accounted for and at the top Leaving the graph unanimously I suspect that it is in some way because it is a new example of the extent object, so I tried to do it: d3 .select ("# id-attribu...

c++ - Visual Studio 2010 Express 64 bit Properties Missing -

I am trying to run OpenCV with Microsoft Visual C ++ Express 2010. I'm using Windows 7 64bit. It seems that I have to compile the code as a x64 application (using OpenCV libraries) that's fine. I have installed Windows SDK 7.1 which allows you to do this. So now I go to the dropdown menu, Configuration Manager and select x64 (copying from Win32). But here I go into a problem. I can not edit the property in this configuration If I change back to Win32 and go to property properties then I have all the usual options (Configuration Properties -> General, Debugging, VC ++ Directories etc.). ). But I have a practically blank window in x64 that has general properties-> framework and context menus, I can not modify anything. If I try to add a new property sheet to Debug Manager, x64, I can add it to the name, but when I click it, there is no "property" page for selection. ". I have searched every possible relevant forum for it! Maybe I'm using the wro...

Using AMQP (RabbitMQ) for High Availablity in my applications -

I am putting a queue-based distributed system together, for all the standard stuff we provide to our messaging transport level, RabbitMQ Using the latest version of I have a few questions about getting high availability (not for my applications but for rabbit MQs), which I could not read by reading the documentation. I appreciate some advice, this is probably the lack of understanding of the rabbit / AMQP which is causing the problem :) Problem: I have a message maker (called Primary). One and only 1 message maker is How can I get it using the current RabbleMQ capabilities? Consideration: A "unique" queue, for which the primary will connect to the backup will try to connect this line of backups when the primary fails, the connectivity will be acquired in the backup queue and install the control on this process Can do. What should I do to correct this? I did not find any documents on competitive producer, your advice would be appreciated! If you want only on...

vb.net - what exception rule to use with unselected radio buttons to produce exception dialog -

I am trying to generate an error exception when the user has not selected an option with the radio buttons beside me The exception message box does not exist. I'm not getting any coding errors as the syntax is recovering, just so that the code does not produce the desired process. Try SelectedServiceDeciaml = CostSelectedService TotalDecimal = SelectedServiceDeciaml + TotalDecimal AmountAllServicesTextBox2.Text = TotalDecimal .ToString ("C") Catching DiscountException as ArgumentException (Discount10RadioButton5.Checked = False andalso Discount20RadioButton6.Checked = false andalso NoDiscountRadioButton7.Checked = false) MessageBox.Show ( "should be an exemption amount selected." "data entry error", MessageBoxButtons.OK, MessageBoxIcon.Information) NoDiscountRadioButton7 .Focus () attempts ended with .Select (with) the end in you create a custom exception to your case Does not need to, but if you want to create a custom exception, then I w...

ruby on rails - Select attribute which is not current_user.id -

I am creating a messaging system in the railroad, and to display the conversation partners, Current_user is included in: Message.where ("to_id =? Or user_id =?", Current_user.id, current_user.id) However, since I want the other user's ID only from that query, I have to select it, and I can either select : to_id or : user_id Is not current_user.id something like this: Message.where ("to_id =? Or user_id =? ", Current_user.id, current_user.id) .select (: to_id ,: user_id unless current_user.id is not) Thanks in advance! Edit: The message table is simplified here: create_table "messages", force: true do | T | T.integer "to_id" - & gt; The user who has the message t.integer "user_id" - & gt; If you are trying to get a user ID Message.where ("to_id =? Or user_id =?", Current_user.id, current_user.id). Map {| M M.user_id == current_user.id? M.to_id: m.user_id} This gives you more...

javascript - KnockoutJS Mapping Plugin not working on a Linux box -

I have a knockout JS Mapping that works well on OS X. However, the same code fails with a Linux box "Unwanted Type Error: Object Function is Not" Error in knockout.mapping.js? Body = 1: 467 var mapping = {key: function (data) {return data.id; }, Deployment: {create: function (options) {// code var of this part is not working mapping = {'inspection': ["current_tag", "current_serial", "component.available_tags"], 'ignored ': ["Created_it", "update_tite"]} inner innermodel = to.mapping.frames (optionsdata, decimalment mapping); // Internal modification of non-working code. Corrent_tag darringflag = new ko.dirtyFlag (innerModel.current_tag); Internal model Corrent_sialial darisflag = new to.ic flag (insertmodelour_ourierial); InternalModel.degaged_tag ​​= co.au.il.wbnwaswwable (InarmmodelCournt_tag ()); InternalModel.Commercial_ Serial = Co.UttleInWebObswaveable (InRermodelCourant_Esreal ()); Return Int...

Is there any fundamental reason Julia doesn't support abstract multiple inheritance? -

For example, I want to be able to do something with these lines: Abstract tree essence preserved model type DecisionTree It is currently not possible in Julia whether it is due to any fundamental reasons or is it still implemented Has not happened? This issue is currently discussed. It appears that the implementation is complex and it is the result of many increments, but it is not a fundamental reason why it may not be the language's specialty: In addition,

sql - SQLAlchemy: select all posts that has tags in [..] (many-to-many) -

I have users, interests and events User (many-to-many) interests (many-to-many) Interests are the reason why I have two "intermediate" tables: user_to_interest and event_to_interest. I would like to select all the events in any way whose interests are from the list of interests of the user (in other words, tag in all events [1, 144] I WHERE event_to_interest.interest_id IN (10, 144, 432) How should I do this through SQLLame? (IF I am using FlaskSQLKey if necessary) user_to_interest = table ('user_to_interest', base); Version-1: You interest_id s The list should be able to do simple queries, which you basically desire for the SQL statement: interest_ids = [10, 144, 432] query = session. Query (Event.name) query = query.join (event_to_interest, event_to_interest.c.event_id == Event.id) query = query.filter (event_to_interest.c.interest_id .in_ (interest_ids)) However, if there are incidents in which there are two or more interests from the l...

extjs - Include deprecated code with Sencha Cmd -

Piece of code into framework files // My problem is, when I use Syntactic CMD, especially sencha app build test all the excluded code resulted in the app.js file, and because of that I have many bugs. BTW, I can not remove / upgrade code that requires refracted sections (for reasons beyond the scope of this question). How can I include a deprecated code with the sencha app build command (or similar)? Thank you PS: I'm using Touch 2.2.1 (though I think it also applies to ExtJs) and Senka CMD 3.1 if it helps Then I got the solution sencha config --prop build .options.minVersion = 0 Then the app build test This code gives the command to degrade all versions> = 0, which means ... all. This can also be configured in a config file, for example: build.options.minverions = 0 In the sencha.cfg or any of the config files. Hope this helps someone

css - Background-size with SVG squished in IE9-10 -

itemprop = "text"> I have a div set with a background image: & lt; Div & gt; Play video of lt; / Div & gt; with the following CSS: div {background-image: url ('icon.png'); Background-image: url ('icon.svg'), none; Background-size: 40px 40px; Repeat Background: No Repetition; Background-position: 90% 50%; Padding: 20px; Width: 150px; } Background size is respected in Firefox, Safari and Chrome. In IE8, SVG is replaced by PNG file. However, in IE 9 and IE 10, the size of the SVG file is quite low, the problem is linked to the width and height of the div. If I add height of 150px, then SVG is sung properly. If I shorten it (i.e. 100px) the graphic starts to shrink. Has anyone found any way to fix this problem in Explorer? Is there a way to tell ID to use the background size independently to use the width and height of the div? Make sure that your SVG is specified in width and height if you specify it as Illustrator , Make ...

xslt - Scrolling down to an anchor in an HTML frame -

I have created an HTML document that is made up of 6 frames: & lt; Xsl: result-document href = "frameset.html" method = "html" & gt; & Lt; Html & gt; & Lt; Frameset column = "15%, *, 15%" & gt; & Lt; Frameset Rows = "100, *" & gt; & Lt; Frame name = "logo" src = "logo.html" /> & Lt; Frame name = "menu" src = "menu.html" /> & Lt; / Frameset & gt; & Lt; Frameset Rows = "100, *" & gt; & Lt; Frame name = "title" src = "title.html" /> & Lt; Frame name = "content" src = "content.html" /> & Lt; / Frameset & gt; & Lt; Frameset Rows = "100, *" & gt; & Lt; Frame name = "search" src = "search.html" /> & Lt; Frame name = "link" src = "links.html" /> & Lt; / Frameset & gt; & Lt; / Frameset & gt;...

How to make dependable selects dynamically using a mysql DB, PHP and jQuery -

I have the choice to represent three states, cities and banks. You can see the proof of concept in it So when the user selects a state, the link changes (via jQuery) and it goes to the list of all states is. If the user selects a state and a city, the link changes again and it goes to the list of all cities of that state. And if the user also selects the bank, the link changes to that state, city and list of all offices. This data is simplified by two schemas in this way: mysql> Office description; + ------- + ---------- + ------ + ----- + --------- + ------- + | Field | Type | Faucet Key | Default | Extra | + ------- + ---------- + ------ + ----- + --------- + ------- + | ID | Int (11) | Yes. | Faucet | | GID | Int (11) | Yes. | Faucet | | Name | Long text | Yes. | Faucet | + ------- + ---------- + ------ + ----- + --------- + ------- + Mysql & gt; Description of land; + ------- + -------------- + ------ + ----- + --------- + --- ---- + | Field | Type | Faucet ...

android - Working with pixels and argb -

मेरे पास एक लूप है जो कि i & lt; Pixels.lenth तब जब पिक्सेल = बिटमैप .getpixels (..) । अब मेरे कोड में यह कोड है: int argb = 0; Argb + = ((पिक्सल [x]> gt; 24) & amp; 0xff); // अल्फा आर्गब + = (पिक्सल [x] & amp; 0xff); // नीला argb + = ((पिक्सल [x] & amp; 0xff) & lt; & lt; 8); // हरे argb + = ((पिक्सल [x] & amp; 0xff) & lt; & lt; 16); // लाल पिक्सल [x] = argb; समस्या यह है कि छवि ग्रे और बोल्ड (यदि किसी को भी जरूरत है तो चित्र जोड़ सकते हैं), शेष सामान्य की बजाय क्या कोई मेरी मदद कर सकता है? बहुत बहुत धन्यवाद आप गलत क्रम में जा रहे हैं यह होना चाहिए: int argb = 0; इंट अल्फा = ((पिक्सल [x]> gt; 24) & amp; 0xff); // अल्फा इंनाल्यू = (पिक्सल [x] और 0xff); // नीले ग्रीन हरे = ((पिक्सल [x]> gt; 8) & amp; 0xff); // हरी इंट लाल = ((पिक्सल [x]> gt; & gt; 16) & amp; 0xff); // लाल पिक्सल [x] = अल्फा & lt; & lt; 24 + लाल & lt; & lt; 16 + हरा & lt; & lt; 8 + नीला

python - implementing functions in a game -

I have trouble with this part of my work, I have to declare the winner of the game and then input into the function Will happen. Once I have entered all the statements, I have to create a function def playGame () . Join it: showRules () user = getUserChoice () computer = getComputerChoice () Announce winner (user, computer) I also believe This is not how to do it. Please help. Below is the code I have completed so far: (Do I have to make a statement for scissors?) #Display game rules print "Rule: Each player chooses a rock, paper, or scissor.) Print (" The winner is determined by the following rules: ") print (" cut paper in t \ t \ tcissors -> wins the scissors ") Print (" Deep User Choices:): Select = (Input ("Select (Rock, Paper, Paper, or Scissor).))). Lower () Return Choice # Desktops Computer input DEF computerchoice (): import random RNU = random. Rdid (1,3) if RNUM == 1: print ("computer selected rock.") If rnum ==...

angularjs - Where is .bowerrc file in a Yeoman generated Angular app? -

I can see that by which the yo angular is running after .bowerrc Specifies the file. . But for me, the .bowerrc file is missing, I did not say the sources that it is no longer in use. So if I still need it, then where can I get it? Update: The reason I did not have. Borrick was because my yo angular was not completed due to errors Just create .bowerrc file with that content in your root {"directory": "app / component", "jason": "bower. Jason" // add this line} / Code> All packages will be installed in that package. Then create a file bower.json with that content {"name": "project", "version": "0.0.0", "authors": "", "description" : "", "License": "mit", "dependency": {"jquery": "~ 2.1.0", "angular": "~ 1.2.13", "angular-resource": "~ 1.2.13 "," Ang...

knitr - Rotate a table from R markdown in pdf -

I'm typing in the R markdown and there is a casual table that is quite broad. I am changing the R markdown document in a PDF using pandf and I would like to rotate or shrink the table. I am misusing the option of data in the knitting to try it, but do I use the Kanye or Extable, I have no luck. Is this possible? Is there a way to rotate my table without switching over to latex? I have tried some permutations: `` [out.extra = 'angle = 90', result = 'ASIS'] library ( Sterile cable (Iris [1: 5,]) `` R size = 'Footnotis', Results = 'ASIS'} Library (Nitter) cable (Iris [1: 5,]) 'Angle = 90', result = 'asis') Library (Ext.) Extable (Iris [1: 5,]) `` `R shape = 'footnotesize', results = 'asis'} Library Extabling (Iris [1: 5,]) `` All these table looks well Not, but do not rotate it. I am using to knit ruf-A "library (knit); knit ('table. Rmd', 'table .md')" and to convert to P...

javascript - Using jquery html() method to get width of dynamic text needs timeout -

I'm trying to use a technique that I've seen elsewhere so that quickly with any dynamic text Insert a DOM node. However, to get the width of a div, however, after the html () call, the result of the width () method gives me, I think, unchanged width later I can get width with formatted text. What does it give here? Is there a delay in painting? Is there a better way to do this, like with inline styles or some things? Or am I completely losing a concept? var htmlStr = "& lt; span id = 'userFeedbackText' class = 'user-feedback-text' & gt; + F +" & lt; / Span & gt; "; _feedbackEl.html (htmlStr); _feedbackEl.show (); console.log ($ (" # userFeedbackText ") outerWidth ().); // 238 window.setTimeout (function () {console. Edit: OK, well I hide the CSS visibility setting: I'm facing the problem, so that the problem can be solved but I still want to know the underlying mechanism in this specific example. Thanks ED...

javascript - Update CDN links in HTML -

In addition to the core angular.js file I am using one of my projects There are many anglerJs components, which are listed in my HTML: All script src =" // ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular-animate. Js "& gt; & lt; / script & gt; AngularJS is updated very often, which is important Is there any way to update all these versions with the same command? This stunning Maybe if the solution can update, not only kangaroo, but jQuery and other CDN components. I'm adopting and in my project; If these tools can help, I love to know. If you are in sync, you can use the final version of the project: jQuery Latest: Angular: ... Google CDN does not implement this latest feature Used to be. If you want to update the editions by yourself, then you can use a template render in your screwy build process. for example.

python - Setting array element with sequence -

Run this code: Python simulation to calculate potential difference of rod Setup Details: Visual Import from Visual Import * From __future__ Import Division View = Display (X = 0, Y = 0, width = 600, height = 600) Graph = Gdisplay (x = 600, y = 0, width = 400, height = 300) Code body: # objects Vgraph = gcurve ( Color = color.Sation) marker = spherical (pause = vector (0, .15,0), radius = .05, color = color. Ed) marker.v = vector (0, .5,0) #Constants e = 1.6e-19 oofpez = 9e9 scale = 8e-3dt = 0.001 # initial value l = 2 ## Rod length N = 100 ## Point Charges Q = 3e-8 dQ = Q / NDX = L / nt = 0x = (dx-L) / 2 dVtotal = 0 Annet = Vector (0,0,0) ## Calculating x & Lt; L / 2: spherical (pause = (x, 0,0), radius = 1/6, color = color.sean) x + = dx while marker.pos.y & lt; 1.15: x = (dx-L) / 2net = vector (0,0,0) while X & lt; L / 2: r = marker.po - vector (x, 0,0) rmag = meg (r) rHTH = r / rmag e = orphase * dq / rmagad2 * rhp annet + = e x + = dx dv = - Dot (Annet,...

math - method for substituting the variable in a recurrence relation -

or the Data Structures class we are learning how to solve recurrence in 1 variable. Unfortunately, some things come "out of blue" Example: Some exercises already show how to calculate the variable n: for T (n) n = 2 ^ of t (n) = for n = & Lt; 2 T (n) = 8T (n / 2) + bn ^ 2 (a and b >> 0) But some exercises will only give you without T (n) Providing substitution for variable n: T (n) = 1 n = & lt; 1 T (n) = 2 T (n / 4) + sqrt (n) I used the repetition method and reached the correct answer: sqrt (n) + ( 1/2) * sqrt (n) * log (n) but when the professor explained, he started by saying: "Let's do it n = 4 ^" I mean, "using the fact" out of blue " The answer is simple to get. T (n) = 1n = & lt; This is another example: (n) = 2 t ((n -1) / 2) + n Here I started again with the repetition method, but I can not reach a certain answer, it looks more complex in that way. After 3 iterative steps I reached: (1) T (n) =...

cq5 - In CQ's cq:IncludeClientLib, what's the difference between theme and categories attributes? -

के अनुसार: श्रेणियां कॉमा से अलग किए गए क्लाइंट लिब श्रेणियों की एक सूची। इसमें दी गई श्रेणियों के लिए सभी जावास्क्रिप्ट और सीएसएस पुस्तकालय शामिल होंगे। थीम नाम को अनुरोध से निकाला जाता है। इसके बराबर: com.day.cq.widget.HtmlLibraryManager # writeIncludes विषय अल्पविराम से अलग किए गए क्लाइंट लिब श्रेणियों की एक सूची। इसमें दी गई श्रेणियों के लिए सभी थीम संबंधित लाइब्रेरीज़ (सीएसएस और जेएस दोनों) शामिल होंगे। थीम नाम को अनुरोध से निकाला जाता है। के बराबर: com.day.cq.widget.HtmlLibraryManager # writeThemeInclude मैं सीक्यू के लिए नया हूँ और यह मुझे थोड़ा अस्पष्ट लगता है इन विशेषताओं के बीच अंतर क्या है? मान लीजिए कि आपके पास JCR में निम्नलिखित हैं: - / etc / clientlibs / ग्रिड - / etc / clientlibs / forms - / etc / clientlibs / तालिकाओं - / etc / clientlibs / तालिकाओं / उत्तरदायी - / etc / clientlibs / तालिकाओं / उलटा श्रेणियां चाहिए संयुक्त राष्ट्र-संबंधित क्लाइंट पुस्तकालयों की सूची में खींचें उदाहरण के लिए & lt; cq: includeClientLib श्रेणियों = ...

php - Wordpress page dynamic content -

I'm hoping that someone can help, set up a dynamic page in WordPress We currently have thousands of images, but I do not want this setup as a post, yet I want them within the WordPress site, so I wonder if it is possible to create a page domain / news page and if domain.com / Newpage funny will display this fun image. From the other directory on the JPG server Obviously the id needs to set up a custom page template that I can but am struggling with the dynamic code bit in the admin You can add images under Media They are not linked to any posts But they can be used on the entire site.

c++ - Two styles of syntax for parameter taking a function? -

Reading of Alex Allen's tutorial on function pointer (), in which the function describes the syntax to get the argument: / P> void doSomething (int (* GetNumber) (player p) = myFunct {} Then I was reading Quick C ++, which was The syntax shows: Maps & lt; String, vector & lt; Int & gt; & Gt; Xref (istream & in; vector & lt; string & gt; find_words (const string & amp;) = partition) {} What is the difference between two approaches? It is, a versus B: A: something from zero (int (*), (player P) = myFunc) {} b: something less than nothing (intimate gratitude (player p) = myFunc) {} There are two different language rules involved. One is that the function type has a parameter that, when compiling the pointer to the time in the adjusted function: the type of each parameter After determining, to assign the "T's array" or "returning function" to any parameter of "T" or "returnin...

java - How to count the occurrence of an element in a tree? -

सार्वजनिक int countOccurrences (स्ट्रिंग लक्ष्य) {int count = 0; नोड कर्सर = रूट; जबकि (कर्सर! = नल) {int compare = target.compareTo (cursor.word); अगर (तुलना करें == 0) {//System.out.println("aa "); यहां पर अटक गया ++; } और अगर (तुलना & gt; 0) कर्सर = कर्सर। राइट; और कर्सर = कर्सर। बाएं; } System.out.println (गणना); वापसी की गणना; } मुझे एक शब्द की घटनाओं को एक पेड़ में ढूंढना है (जो पहले से ही एक शब्दकोष के क्रम में किया गया है)। मेरा कोड अब स्क्रीन पर "एए" को प्रिंट कर रहा है ... मदद? आप नहीं हैं अपने बयान में बदलकर कर्सर, आप केवल गिनती बदल रहे हैं, जिसका कर्सर पर कोई प्रभाव नहीं पड़ता है ताकि आप अनंत लूप में फंस जाएं। जब आप एक मैच पाते हैं और बढ़ते गिनती के लिए आपको कर्सर बदलना होगा। उदाहरण के लिए नीचे देखें: यदि (तुलना करें == 0) {//System.out.println("aa "); यहां पर अटक गया ++; कर्सर = कर्सर। बाइट} यह माना जाता है कि जिस तरह से यह सॉर्ट किया गया है, वह कुछ बाएं शाखा में होगा बस इसके विपरीत cursor.left को cursor.right में पर...

c# - How to disable all binding/triggering inside a ContentControl -

In this case I have a grid in which it has lots of control, buttons, canvas, drawings, animations, all to see It is bound to -models, I would like to disable all data triggers, triggers, bindings inside their children and children's children etc. When I collapse the visibility of the grid, this CPU is not wasting the cycle (because heavy Animation is constantly running), and not crashing Is In! I am using a behavior: But it seems that this is making an app crash if collapsing while using the listbank Your admin templates will not be applicable ul> So The only way to do this is to put everything inside a control: So the template will not be implemented in this way and by the time I do not switch visibility, everything will be closed. So my question is: Is this the right way to solve this issue? Yes, because the content control collapses, unless you change visibility into visible The template will not be implemented until However, I would be inte...

ios - Splitting UiImageView in half horizontally? -

How do I go about dividing a UIImageView half horizontally? I do not want two separate images, but my last purpose to declare two parts of more UiImageView is that if my "ball" hits above a stage (top half) then He raises if the ball hits the lower half of the platform, then it bounces down. - (zero) partition {UIImage * image = [UIImage imageNamed: @ "cat. Jpeg "]; CGImageRef imageRef = image.CGImage; CGImageRef leftRef = CGImageCreativeWithImageInRect (imageRef, CGRectMake (0, 0, image.size.width / 2, image.size.height)); UIImage * leftImage = [UIImage imageWithCGImage: leftRef]; CGImageRelease (leftRef); _imageView1.image = leftImage; CGImageRef rightRef = CGImageCreativeWithImageInRect (imageRef, CGRectMake (image.size.width / 2, 0, image.im.width, image.size.height)); UIImage * rightImage = [UIImage imageWithCGImage: rightRef]; CGImageRelease (rightRef); _imageView2.image = rightImage; }

ios - Crop a specific area of an UIImage from an UIImagePicker -

This issue is exploding my title. I want to apply something similar to the camera view. In Instagram I am using an overlay view to customize the format of the camera. The first issue - I could not make the live scene square. So, I made an idea to cover the part of the live view and create a square. This solution has led to my second problem. My closest solution has come from this post: Is there a way to create a Square? Use the live preview and the picture or can I create a square from a part of the scryeen that I have lost without distortion or quality. Regards Live camera feeds are a great framework for processing. For example, to create square video feeds with rectangular camera input: GPUImageStillCamera * camera = [[GPUImageStillCamera Alloc] initWithSessionPreset: AVCaptureSessionPreset1280x720 Camera status: AVCaptureDevicePositionBack]; Camera.outputImageOrientation = UIInterfaceOrientationPortrait; // 720/1280 = 0.5625 GPUImageCropFilter * ClassCrop = [...

runtime - C++ Run time efficiency -

I am creating a hex board from the nodes. In some of this code, anything works for me. My problem is that starred item slows down this loop from 1 second to 1 minute. This vector does not have the number of objects, because if I remove the last one except those that still take 1 minute. There are errors in either way of not running a path for (x = 0; x Nodes [x] [y] .neighbors = std :: vector & lt; Node & gt; (6); If ((x == 0) & amp; (y == 0)) {this-> Nodes [x] [y] Navy = {nodes [x + 1] [y], this-> nodes [x] [y + 1]}; } And if ((x == 0) & amp; amp;; (y == max)) {this-> Nodes [x] [y] Neighbors = {This- & gt; Nodes [x + 1] [y], this-> nodes [x] [y - 1], this-> nodes [x + 1] [y - 1]}; } And if ((x == max) & amp;; (y == 0)) {this-> Nodes [x] [y] Neighbors = {This- & gt; Nodes [x - 1] [y], this-> nodes [x] [y + 1], this-> nodes [x - 1] [y + 1]}; } And if ((x == max)) & amp; Amp;; (Y == max)) {it-> Nodes [x] [y] Despicable = ...

node.js - Prevent users from accessing subdomain in Express -

I have web development and node. I'm very new to JS / Express. I have an express server, in my customer, I send a GET request for some data in DB. GET request is controlled by app.get ('/ pathname', controller.getsomedata); The problem is, users can now type URLs in the URL domainname.com/pathname and point to that pathname. If they include a specific question in domainname.com/pathname?query, then they are able to get data from DB (this is going to happen), but I would like to request only if / for pathname within the customer code , When the user does not enter the browser. Is there a better way to make my GET request? Or there is no way to restrict users from using / path. I apologize for the newbie question, but I do not know how to solve this, there is enough word to do a Google search. Thanks! It is impossible to do so if your client-side code is reaching something, even malicious users Can do this. You can reduce the problem by using a custom HTT...

html - Regex to detect all characters outside of the <img> tag -

Image
I do not have experience in regex. I'm just trying to find a way to detect and remove each character outside the img tag. In other words, I want to strip the HTML code given to all the text and tags and just put everything in the IGG tags. The result should be just that image tag shown: & lt; Img src = "sourcehere" & gt; Is there any way to do this? UPDATE: I need a regex in particular which goes into preg_replace which I have done, but it does not work: $ buffer = " gt;> head> gt :: & lt; / body & gt; & Lt; / html & gt; "; $ Buffer = pre_legal ('(? I) & lt; (?! Img | / img). *? & Gt;', '', $ buffer); Buffer $ buffer; / * Output & lt; Img src = 'image.jpg' & gt; But this is not what you plan for - * / Log in or display in a console, or output it somehow it works for me, but in fact 'stringing' can be additional work. It's jQuery, I think you want to ...

regex - Detecting accents in words (Python) -

This is the deal: I have written a program that finds all the algorithmic classes in the dictionary. However, I'm having trouble dealing with the accented letter, currently my code reads them, behaves like they are invisible, but still '\ xc3 \ ???' Finally print any type of replacement code. I would like to discard all words with accent, but I do not know how they will know. Things I've tried: Check if Unicode Type Using a regex for words containing '\ xc3' / Li> Decoding / Encoding (I do not fully understand Unicode, but whatever I tried was not working) Question / Problem: I have to find out how to detect the accent, but my program command on the command line is odd '\ xc3 \ ???' Prints as Characters are not, which is not how the program behaves in them, because I can not find any word containing '\ xc3 \\' Example: SE -> S \ xc3 \ Xa9, and SE and S are considered as anagrams by my program. P> got...

c++ - Why does my program have an infinite-loop when I enter in a character? -

contains # lt; Iostream & gt; # Include & lt; Cstdlib & gt; # Include & lt; Ctime & gt; #include & lt; string & gt; using namespace std; Int main () {char replay; Int userInput; The court's & lt; & Lt; "Let's play rock, paper, scissors" & lt; & Lt; Endl; Taxes {cout & lt; & Lt; "Enter 1 for rock, 2 for paper, 3 for scissors" & lt; & Lt; Endl; CIN & gt; & Gt; user input; Switch (User Input) {Case 1: Cust & lt; & Lt; "You chose the rock" & lt; & Lt; Endl; break; Case 2: Cotton and LT; & Lt; "You chose paper" & lt; & Lt; Endl; break; Case 3: Cotton and LT; & Lt; "You chose the scissors" & lt; & Lt; Endl; break; Default: cout & lt; & Lt; User input & lt; & Lt; "Not a valid option" & lt; & Lt; Endl; break; } Cout & lt; & Lt; "Do you want to play again (for Y, not for N)?"...

javascript - Fetching reddit comments using JSONP in backbone returns HTML -

I am using the Reddit API to populate the model and compilation in a backbone.js app. To store the collection, I have used a JSONP request in the sync method which works great: Archive: Sync: Function (method, model, option) {var Params = _.extend ({type: 'GET', datatype: 'jsonp', url: 'http://www.reddit.com/r/gif/.json&jsnp = ', Process data: wrong}, option); $ Console.log ('Fetching for Collection') $. Returns AJAX (Param); }, However, when I use the same technique to bring a personal link, the response is HTML and not JSON. Model: Sync: Function (method, model, option) {var params = _.extend ({type: 'GET', datatype: 'jsonp', Url: 'http://www.reddit.com/r/ Gif / comments / 1y1edn / .json and jsonp =', process data: wrong}, options); Console.log ('Fetching for Model') Refund $. Ajax (params); }, Why does the reddit API return to the HTML and HTML for the model? This is discussed in your comm...

Groovy remove part of string within < > -

नमस्ते Groovy में स्ट्रिंग स्ट्रिंग का हिस्सा निकालने की आवश्यकता है I & lt; परिणाम xsi: प्रकार = "xsd: स्ट्रिंग" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" & gt; अपडेट किए गए उपयोगकर्ता आईडी: nish .test11 & lt; / परिणाम & gt; "अद्यतन उपयोगकर्ता आईडी: nish.test11 मैं ऐसा कैसे कर सकता हूँ? def xml = "" "& lt; परिणाम xsi: type =" xsd: string "" पाठ के बाद "आइटमप्रॉप =" पाठ "> Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" & gt; अपडेटेड यूज़र आईडी: nish.test11 & lt; / results & gt; यह एक्सएमएलएसलरर का उपयोग हाथों से पार्स करने / निकालने की तुलना में बेहतर है डीफ़ परिणाम = नया एक्सएमएलएसलर ()। पार्स टेक्स्ट (xml) प्रिंटलाइन परिणाम .toString () यह वांछित परिणाम देता है ( परिणाम की सामग्री

background - Error when switching to running applications - android -

I've written an app to switch between background apps in Android, I'm running system error (ex: com.android.setting ) My code: try {intent i = new intent (); I.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK); I.setAction ("android.intent.action.VIEW"); I.setComponent (ComponentName.unflattenFromString (pack + "/" + cclass)); This.startActivity (i); } Catch (Exception precedent) {** // precede **} Thanks for the help!

c# - Proper use of StartWith and Contains in Entity Framework -

I remove the prefixes from the Linq links in the StoreName field I want> query > Query 2 var objRetailer = From store in context. Join ReetailerStoredtls to join the reference Retailer Contact Dtls at stores. ReetailerID is equal to ret.RetailerID stores on context.RetailerRegDates. ReetailerID equals retreg.RetailerRegDateId where (stores.IsDeleted == zero) stores.Is deleted == incorrect) & amp; Amp; (Stores ready Date Price Year == iYear || stores.ModifiedDate.Value.Year == iYear) & amp; Amp; Retreg.IsAprproved == The right orderbay stores. Select store name new {store.StoreID, store = stores} Store name, area = stores Storecity, zip = stores. Store Zip, Selling Card = (Stores. Ritter ID.Value)? True: False) StoreWithoutPrefix = stores.StoreName.StartsWith (& lt; Question 1 & gt; One of the prefixes in stores. Store name: & lt; stores.StoreName without prefix & gt;}; Unfortunately we do not take string parameters as a result ...

imacros - VBScript -How to direct click on screen or click on the specific name button? -

I have created an immacross script to automate the work within a web browser: set Iim1 = CreateObject ("imacros") for M = 1 to 80000 i = iim1.iimInit ("- i.e.", true, 1000) iret = iim1.iimInit () iret = iim1.iimSet ("line", set) M) iret = Iim1.iimPlay ("1", 1000) iret = iim1.iimExit () Next I created this code for special work, but now I have some additional functionality Want to add When a specially named button is clicked, another click action should be performed on another defined x and y position - how can I use this program to use IMacro?

ios - How to set a subview's frame to be its parent's frame in a custom view -

I want to set the frame of the custom view as my SubViews frame, which is UILable but when I self I use the UILabel blank text to see the UILabel to hardcode the parameters in CGRectMake . How to set the frame of UILB to frame the footage? - (id) initWithFrame: (CGRect) text with frame: (NSString *) text {self = [super initWithFrame: frame]; If (self) {self.backgroundColor = [UIColor grayColor]; Self. Rounded corner radius = 3; Self.layer.borderWidth = 1; Self.layer.borderColor = [UIColor blackColor] .CGColor; _text = text; } Healthy return; } - (zero) layout subviews {// it works // UILBL * label = [[UILBL Alloc] InitVithframe: CGRactMake (0, 0, 50, 40)]; // This does not work UILabel * label = [[UILabel alloc] initWithFrame: self.frame]; Label.text = @ ""; If (! [Self.text isEqualToString: @ "?"]) {Label.text = self.text; Label.textAlignment = NSTextAlignmentCenter; } [Auto add subeview: label]; } layoutsview will be applied multiple times, so ...

jquery - Simpledialog2 Uncaught TypeError: Cannot read property 'sdIntContent' of undefined -

I was working on jquery mobile and used simpledialog2 to create the dialog. My code & lt; Li & gt; & Lt; A href = "#" data-rel = "dialog" onclick = "return openpoint ();" Style = "font weight: normal;" & Gt; Register & lt; / A & gt; & Lt; / Li & gt; Function OpenPopup () {$ ('# Mobile-Login-Panel'). Siderealism 2 ({Auto Open: False, Re-Accuracy: Correct, Height: 'Auto', Header Text: 'Sign In', Close Header: Correct, Width: 'Auto', Headerclose: True, Empty Resource: "SomeHtml"} ); $ ("Div.ui-simpledialog-container") .appendTo ($ ("form # frmdialogin")); return false; } Now this dialog has been opened correctly. But when turned off $ Mobile.sdCurrentDialog.sdIntContent.find ('select') is throwing an error. Every function () { Any solution? I The only way to recover was to use the uncompressed version of SimpleDialog2.js and m...

ios - UIImage distorted when using it for UIImageView -

Image
I have taken a picture, and then I am starting a UIImageView object with this picture. The only problem is that when I take a picture, the picture is being taken using the full screen of the iPhone. UIM's Weigh is being started with this picture only% of the top 50 iPhone screens, so you can imagine that the image looks distorted. I have been able to improve it using the following code: UIImageView * halfView = [[UIImageView alloc] initWithImage: Image]; [Self.view addSubview: halfView]; HalfView.frame = CGRectMake (0, 0, self.view.bounds.size.width, self.view.frame.size.height / 2); HalfView.contentMode = UIViewContentModeScaleAspectFill; The only problem is that, the last UIImageView called "semicolon" is still slightly distorted. I figured it is impossible to decide because the original photo is being taken with full iPhone screen and can never fully scale to fit a UIImageView that only the iPhone screen Takes up to 50% of the top. I was originally tr...

Laravel Facade get Variables -

कहें कि हमारे पास Laravel में निम्नलिखित वर्ग है myClass class {private $ _someArray; // कार्य करने के लिए $ _someArray सार्वजनिक समारोह में हेरफेर someArray () {वापसी $ this- & gt; _someArray; }} मैंने एक मुखौटा और उपनाम घोषित किया है इसलिए मैं $ _ someArray पर myClass :: someArray () पर कॉल कर सकते हैं और myClass :: someArray () ['कुंजी'] । क्या कोई तरीका है जिससे मैं फ़ंक्शन बुलाए बिना सरणी पा सकता हूं? यानी मुझे myClass :: someArray ['कुंजी'] मैं उपयोगकर्ता को ऐसे फ़ंक्शन का सुझाव देता हूं जो गुणों के साथ ऑब्जेक्ट प्राप्त करता है मायफ़ैक्ड :: प्राप्तसमूह ऑब्जेक्ट () - & gt; माईप्रॉपर्टी; एक उदाहरण के रूप में, फ़ंक्शन वर्ग स्थिरांक से या वर्ग चर से डेटा ले सकता है और यदि आवश्यक हो तो उन्हें जोड़ सकते हैं: सार्वजनिक फ़ंक्शन getSomeObject () {$ result = नया \ stdClass (); $ परिणाम- & gt; आईडी = स्व :: SOME_ID; $ परिणाम- & gt; myProperty = $ this- & gt; कुछ प्रॉपर्टी; वापसी का परिणाम; }

JavaScript: How to stop random number from regenerating? -

I'm a programming novice, so please bore me with me. I am a child of a game to guess where a random number (between 1 and 50) is generated and you have to keep that number till you have guessed, unless you get that population. You get feedback about whether or not your estimation is too high or too low to better inform you of your estimation. The code I came down below, but the problem is, I can not point to random numbers. It seems that the number has been reproduced with every estimate. How can I make it so that only one number should be used for each estimate, until it is guessed correctly? & lt ;! DOCTYPE html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; Link href = 'http: //fonts.googleapis.com/css? Family = source + sans + pro 'relay =' stylesheet 'type =' text / cs...

Gmail Blue Bar issue -

When I open Gmail and load it first, for the first time when I first switched to the upper left side of the email, The time is open it's open Once I click on an email and then going back to the inbox, the blue bar disappears. Have you heard about this problem or issue and there is no solution? Press J & K to press and down? This keyboard shortcut looks like conversation indicator. It's just showing you which conversations are currently selected by keyboard shortcuts.

ios - How to use customize Parse query to find whereKey: doesNotContainString:? -

वर्तमान में, मेरे पास एक गेम वर्ग तालिका है जिसका नाम currentTurnPlayer । एक क्वेरी के लिए, मुझे game ऑब्जेक्ट्स प्राप्त करने में दिलचस्पी है जहां currentTurnPlayer का नाम मेरे self.currentUser के बराबर नहीं करता है .username दूसरे शब्दों में, मैं कौन से डिफ़ॉल्ट पार्स ' जहां की: शामिल स्ट्रिंग: करता है, और केवल ऑब्जेक्ट पुनर्प्राप्त करने के लिए कुंजी में स्ट्रिंग self.currentUser.username नहीं है। मैं इसे कैसे पूरा कर सकता हूं? धन्यवाद! मैं अपने खुद के विदग्ध के साथ PFQuery का उपयोग करने का सुझाव दूंगा। NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "currentTurnPlayer! =% @", Self.currentUser.username]; PFQuery * query = [PFQuery क्वेरीविथक्लैसनाम: [गेम parseClassName] predicate: predicate]; ... और फिर क्वेरी को हमेशा की तरह निष्पादित करें। पार्स सभी विदग्ध बयान का समर्थन नहीं करता है, लेकिन यह बुनियादी लोगों का समर्थन करता है, जिसमें = = और ! = ।

Chrome Extension -- Pass an array from popup.js into injected javascript file -

So close, so far ... I'm writing a Chrome extension In which a user adds / deletes an item to a list. This ; then and gt; Elements are stripped, and they are included in a local storage item as a linked list. This list is processed in an function and an array is created. Send me popup.js into the content script & lt; Script & gt; is running, inject.js , which is injected into a page. On one hand, I have made all the necessary manifest entries. I have read the chrome extension documentation, and many stack-overflow answers, yet I have not yet understood a clear idea of ​​what to do to wrap the argument passing through the array in a function which only provides the array Inject.js for We say that the array is created like this in popup.js: // popup.js var list inside; Function getlist () {listings ["list"] = local storage ["myAwesomeList"] the division ("**% **"); Return list; } Function sendListToInjectJs () {list = ...

Submit Partial View Data with main form in asp.net MVC -

Submit how I submit data to a partial view on the main view. Partial view does not have a separate submit button I want to add multiple products to a single order. Each product is a partial view The user can add many products at the click of "plus sign". I want to submit all the products after submitting the order. See my place order @model MyApp Models.Order_Detail #section scriptsection {& lt; Script src = "@ Url.Content (" ~ / scripts / jquery.validate.min.js ")" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "@ Url.Content (" ~ / script / jquery.validate.unobtrusive.min.js ")" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "../../ script / jquery-1.4.4.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Documen...

Custom emacs indenting c mode -

The coding format style used in my work is as follows: public: trace Indent (int i = 0): _i (i) {if (_i) {nesting ++; }} Tabs are three spaces but there is no indentation after the braces Is it possible to get this type of formatting for sim-mode in emacs? It seems like I have trouble. After a little research, I came to know that this type of style is known as "Whitesmith". I put these lines in my Macs init.el, which resolved this issue. Hopefully, it will be helpful for anyone. (setq c-default-style "whitesmith" c-basic-offset 3)

mysql - Pagination issue while sorting based on last modified property -

I have to show some sorted sort based on the modified column (latest activity on top) (with new edit or comments Post Top) There's Twitter like 'More' post buttons for applying anil scroll in app UI. Each 'more' will add the next 10 records in the UI. The issue is that when any of the records shown in the points are modified then the pagination index breaks For example, suppose I have a record A, B, C, .. in the Z tables . The first time I am showing the user using the ' AJ record SELECT * jobs where 1 record past_modified DESC limit 1 , But if some body revises any record after any record, then DESC limit 10, 10 in the last 9 months Select J , before clicking on 'More button', 1 order from jobs, final_defended DESC limit 10, 10 JS . I can hide it by inserting J in the UI but more buttons will show only 9 records. But this system fails when a large number of records are updated, if 10 records are modified , The quer...

Why does the use of JavaScript arguments.callee result in a RangeError -

In the code given below, "Uncredited Range Array: Maximum Call Stack Exceeded", and I'm not sure why I think It will be a series of events: The code runs on page load A timeout callback is established The call stack ends there > After 5 seconds, the function is called The callout is reset again and the call stack ends etc. But I get the console output: xi = 0 uncheck range array: Maximum call stack size exceeded : & lt; Script & gt; Var xi = 0; (Function () {window.console & amp; console.log ("xi =" + xi ++); settimeout (function () {arguments.callee ();}, 5000);}) (); & Lt; / Script & gt; Thanks for any help. The easiest task (anonymous function) is calling itself is setTimeout (function F () {f ();}, 5000); So this is the result of endless repetition. What do you want: var xi = 0; (Function () {window.console & amp; console.log ("xi =" + xi ++); var f = arguments.callee; setT...

php - Mysql INSERT INTO and UPDATE won't work properly -

Image
$ name = array ('maxgebruikers' = & gt; $ _POST ['maxgebruikers']); $ Name1 = सरणी ('maxplaylist' = & gt; $ _POST ['maxplaylist']); array_push ($ नाम, $ name1); $ Result = mysql_query ("सेलेक्ट * ऑर्गनाइजेशन_सेटिंग्स WHERE organisation_id = '{$ organisatieID}' '); यदि (mysql_fetch_assoc ($ परिणाम) == 0) {foreach ($ name as $ name = & gt; $ value) {mysql_query ("INGED IN organisation_settings (type, value, organization_id) VALUES ('{$ type}', '{ $ Value} ',' {$ organisatieID} ') "); print_r ($ नाम); }} और {foreach ($ name as $ name = & gt; $ value) {mysql_query ("UPDATE organisation_settings WHERE organization.org_id = '{$ organisatieID}' (प्रकार, मान, संगठन_आईडी) SET VALUES ('{$ type}', '' {$ Value} ',' {$ organisatieID} ') "); print_r ($ नाम); }} जैसा कि आप चित्र पर देख सकते हैं, मैं चाहता हूं कि कहां है मेरी सरणी की तरह; यह...

php - Google Calender API Login -

I'm new to the Google Calendar API. Now, my site is connected to my Google Calendar with Google API, the problem is that even after logging into my Google Account, I still have "Connect me!" The thing is looking, please help. need_once 'src / Google_Client.php'; Need_once 'src / contrib / Google_CalendarService.php'; Session_start (); $ Client = new Google_Client (); $ Client- & gt; Set UpplugName ("Google Calendar PHP Starter App"); // To create your // Client ID, customer go to https://code.google.com/apis/console?api=calendar and register your redirect. $ Customer & gt; SetClientId ('my_oauth2_client_id'); $ Customer & gt; SetClientSecret ('my_oauth2_client_secret'); $ Customer & gt; SetRedirectUri ('my_oauth2_redirect_uri'); $ Customer & gt; SetDeveloperKey ('my_developer_key'); $ Cal = New Google_CalendarService ($ customer); If (isset ($ _GET ['logout'])) {Set ($ _ session [...