Posts

php - Get most popular videos of a channel by its name -

I am trying to list the most popular (or latest) video of a channel using the YouTube 3.0 API. I have already implemented it, just not sure that this is the right way to do this, therefore advice is needed. First of all, I get the Channel ID by name (for example, instead of TEDxTalks> {Channel_name} ): https: // www .googleapis.com / youtube / v3 / search? Part = snippet & type = channel & amp; q = {channel_name} & amp; ; Key = {API_KEY} Then I get a video of this channel ID, which is ordered by viewCount (or date ) The list of videos that is completely: https://www.googleapis.com/youtube/v3/search?part=snippet&channelId= {channel_id} and command = viewcount & Amp; Type = Video & amp; Key = {API_KEY} How reliable is the first request? If the name is the exact match of the channel URL slug or username (such as tdstalk), will he always bring this channel back? Or is there a more reliable way to get Channel ID by its name? Thank you. ...

sql - mySql equivalent Sqlserver statement with COUNT -

I am not looking for ways to convert the following Sqlserver statement to MySQL. I am using paging logic to view that data: from Selection COUNT (*), select from CN, ID, date of time (Seal, tap) MzMesDb.SysLog where deleted = 'F' order according to ARD serious LIMIT 0,3; This idea is obtained from a table with 1000 rows where the deleted 'F': cn id date time 1000 1 data 1000 2 data 1000 3 data Therefore, it will return the total number of rows and 3 selected rows. Thanks for the help. Maybe I'm missing something, but the following will not solve it: SELECT (select cn, id, date time) as per the 'f' order ID SECL LIMIT 0,3 by COUNT (*) MzMesDb.SysLog)

html - Same CSS but different results for Chrome and Safari -

Image
I have the search element widget on the main page of my site that contains different tabs within the widget that represent the search criteria We do. This issue looks different in Chrome and Safari for these internal search tabs. I am adding screenshots for both Chrome and Safari versions. Chrome version (preferred version) Safari version (looks like it looks in Chrome) I tried to play it around but all my hacks broke it and made it worse. It can be changed at any time in the Safari. HTML does not have much to do for CSS code, so I do not really know why it works in Safari. Here is the public link to the site: Any help and suggestion Thank you. Is every search criteria dropped down? The image that replaces the criterion's text can be set to vertical-align: bottom , or it may have an effect on another type of image.

c# - Lambda expression gives error while sending parameters while creating a new Task -

मैंने निम्न कोड लिखा है: int n1 = 5 कार्य & lt; int & gt; MyTask = नया कार्य & lt; int & gt; (n1 = & gt; बीबी। मल्टीप्लीनम्बर टाइम्स 2 (एन 1)); myTask.Wait (); कंसोल.प्रकाश रेखा ("परिणाम है" + myTask.Result.ToString ()); मैं इसे क्या करना चाहता हूं, इसके बारे में कोड विवरण: मुझे यह उम्मीद थी कि माई टास्क नामक एक नई कार्य शुरू होगी, जो एन 1 चर चर को स्वीकार करेगा और यह, यह lib.MultipleNumerTimes2 विधि चलाएगा। फिर इसे पूरा करने के लिए इंतजार करने के बाद, मैं कार्य परिणाम को स्क्रीन पर मेरे टास्क के साथ मुद्रित करूंगा। रिस्पॉटल स्टेटमेंट। लेकिन दृश्य स्टूडियो मेरे ऊपर दिए गए कोड की पंक्ति 2 पर एक त्रुटि दिखाता है, गोटो से पहले n1 को रेखांकित करता है ऑपरेटर (= & gt;) कह रहा है: इस संदर्भ में 'n1' नामक एक स्थानीय चर घोषित नहीं किया जा सकता, क्योंकि यह 'n1' के लिए एक अलग अर्थ देगा जो पहले से ही ' माता-पिता या वर्तमान 'गुंजाइश, कुछ और को निरूपित करने के लिए मैं यह अपने लैम्ब्डा अभिव्यक्ति सींतक्स में एक गलती लगा रहा...

parse.com - how to handle the return of a javascript function with nested Parse.Promises inside -

मेरे पास यह फ़ंक्शन है: फ़ंक्शन doCalculateStopBefore (thisD, lastD) {thisD.attributes .start.fetch ()। फिर (फ़ंक्शन () {lastD.attributes.end.fetch ();})। फिर (फ़ंक्शन () {// इस सामग्री का उपयोग करके कुछ सामान की गणना करें.उत्पादों। प्रारंभ और अंतिम D.attributes। इस डीसेट को बंद करें ('प्रॉपर्टी', मान); // & lt; --- महत्वपूर्ण; thisd को अपडेट करें!}); इस डी वापसी; // & lt; --- !!! यह पंक्ति वादों श्रृंखला के लिए नहीं चाहता है! } thisD और lastD हैं पार्स.ऑब्जेक्ट । मुझे इस 2 क्षेत्र (संकेतों को एक अन्य पार्स कक्षा) लाने की ज़रूरत है, फिर इस मान के साथ कुछ सामान की गणना करें और thisD को अपडेट करें। फिर मैं फ़ंक्शन समाप्त करना चाहता हूं ... फ़ंक्शन को _ में बुलाया जा रहा है। प्रत्येक लूप इस तरह से: _.each (myCollection.models, फ़ंक्शन (यह डी, इंडेक्स) {if (index == 0) {// उपयोगकर्ता की पहली प्रविष्टि / कुछ भी नहीं करते।} Else {// thisD = doCalculateStopBefore (thisD, myCollection.models [सूचकांक 1]); // उपरोक्त यह है कि कैसे मैं इसे पहले किया था। //...

template programming vectors C++ -

टेम्पलेट & lt; क्लास टी, क्लास आलोक = ऑलोकेटर & lt; T & gt; & Gt; वर्ग वेक्टर; // जेनेरिक टेम्पलेट वेक्टर वर्ग के लिए टेम्पलेट ऊपर वर्णित है कुछ शोध के बाद, क्लास आलोक का उपयोग स्मृति भंडारण मॉडल को पहचानने के लिए किया जाता है। संभावित मूल्य क्या हैं जो मैं इसे पास कर सकता हूं, अर्थात्: हैं vector & lt; int, double & gt; V1; या vector & lt; int, int & gt; अनुमत? आप किसी भी श्रेणी का उपयोग कर सकते हैं।

regex - Match Strings with Variable Left/Right Delimiters -

The problem is quite simple. At the beginning I want to match anything between some stars and between the stars in the end. In the end, the strings must initially match the appropriate strings . Let's say I want to match everything between [ and ] or { and } . The first regular expression that can be used: /[{\[ }(.*)[} ​​elseother/gmu However this is a problem. When the subject is: {AT} Verifyiu [AB] wrewre [ac} would also be [AC} But it should not be. It can be easily changed by: / \ [(. *) \] | \ {(. *) \} / Gmu And the problem is resolved. But what if (. *) were more complex and examples for beginning and ending 10 and they would be a bit more complicated (not a character but many)? Then using the entire rule, the whole (. *) should be repeated twice and it will be unclear. Is there any way to end the match with the beginning? For example, I want to use the same syntax as / (aa | bb) (. *) (Cc | ddd) / gmu to indicate that the ma...