Posts

Showing posts from January, 2014

c# - MAPI Property to get Inbox Folder in Outlook 2007 -

I have this routine to get specific folders from Outlook folders: / / Property SentFolder string propertyName = "tag of http://schemas.microsoft.com/mapi/proptag/0x35E40102"; Outlook. Folder Folders = Store. Gatoroot folder () Folder; Object entry = propertyAccesor.GetProperty (propertyName); DefaultFolderEntryID = Property Accessor. Binrostostring (entry); If (! String.IsNullOrEmpty (defaultFolderEntryID)) {foreach (Outlook.Folder defaultFolder in folders) {if (defaultFolder.EntryID == defaultFolderEntryID) {folder = defaultFolder; break; } Marshal. Release com object (default folder); }} Marshal. Release com objects (folders); Marshal.ReleaseComObject (store); I have properties tags of all the folders but Inbox, nobody knows what is the property tag in the Inbox folder? Or any other way to get Inbox folder without using the word "Inbox" Currently, I use this routine to get the Inbox folder, but it depends on the Outlook language to work: Public Outl

javascript - regexp to get value inside [:(value here):] -

मेरे पास निम्न स्ट्रिंग है var str = ": [: {Business AddressId @ Business_Address / (: [:( सड़क का पता):]: [:( शहर):],: [:( राज्य):]: [:( पोस्टल कोड):]: [देश:])]}}: "; और मुझे अंदर मूल्यों को निकालना होगा: []:] ताकि मैं मूल्यों की एक सरणी प्राप्त कर सकूं [स्ट्रीट एडेस, सिटी, स्टेट, पोस्टल कोड, कंट्री]। अब तक मुझे निम्नलिखित regexp मिला है / \ [\: \ ((। *?) \) \: \] \) / G < पी> कोड var s = str.match (/\[\:\((.*?)\)\:\]\)/ जी) console.log (एस) रिटर्न ["[: (सड़क का पता):]: [:( शहर):],: [:( राज्य):]: [:( डाक कोड):]: [:( देश):]) "] यह ठीक नहीं है कि मुझे क्या चाहिए और मैं regexp के साथ बहुत अच्छा नहीं हूं। var arr = str.match (/: \ (([^)] +) \): / g) .map (फ़ंक्शन ( X) {return x.replace (/: | \ (| \) / g, "");}); console.log (आगमन); // ["सड़क का पता", "शहर", "राज्य", "डाक कोड", "देश"] उपरोक्त होगा। < / html>

android - onDataChanged() not getting invoked by WearableListener service -

I have a mobile app to popularize DataAP and use the Wireless Listener Service on Android Verses to listen for data changes. The listener has been implemented. In the past, I was using Android studio and everything was working fine but when I switched with an existing mobile app and had switched the integrated mobile code, the Wear app stopped answering the data changes of handheld parties. done. I have a timestamp with every data packet to ensure that the data is different every time. I have checked and the mobile app is successfully sending data to wear, but the onDataChanged method is not being used. Any ideas? Please note that the package names for both WearApp and MobileApp are the same. When developers generate codes from the studio, we automatically do this in Eclipse a manual step.

C# Excel how to add hyperlink with cell link -

I will try to work with Excel using C # let me add a hyperlink Required, which is using the value of another cell. If this value changes in the document, then the hyperlink has to be changed too. This code: curSheet.Hyperlinks.Add (curSheet.get_Range ("c1"), "https: //www.google.ru/? Q =" + curSheet.get_Range ("b1"). value) How can I create a dynamic link that has a syllable for the cell, not the value of the cell ? HYPERLINK formula? curSheet.get_Range ("c1"). Formula = "= HyperLINK (" "https://www.google.ru/?q=" "Amp; b1)"

scala - Custom input reader in spark -

I'm new to Spark and would like to load page records in RDD from a Wikipedia dump I Thaup tried to use a record reader provided in streaming but could not understand how to use it. Has anyone made me a good RDD with the page record to make the following code? Import org.apache.hadoop.io.Text Import org.apache.hadoop.streaming.StreamXmlRecordReader Import org.apache .hadoop.mapred.JobConf Import org.apache.spark.SparkConf Import org.apache.spark.SparkContext objection WikiTest {def main (args: array [string]) {// configuration val sparkConf = new SparkConf () .setMaster ("local [4]") .setAppName ("WikiDumpTest") Val JobConf = new JobConf () jobConf.set ("input", "enwikisource-20,140,906-pages-article-multistream.xml") jobConf.set ("stream.recordreader .class", "org.apache.hadoop.streaming.StreamXmlRecordReader ") JobConf.set (" stream.recordreader.begin "" & lt; page & gt; ") jobConf.set

r - Sorting ggplot legends by factor (here: months) -

If you consider this code: library (ggplot2) df & lt ; - As ("X", "Y") df $ date & lt; - as.factor (c ("April", "Gop (DF, AES (x = x, y = y, color = date)) + GOM_point (size = 3, size = 20) How can I sort my legend by a temporary sequence of months? < df $ dates & lt; - with line: m <- c ("april", "may", "june", "august") df $ date & lt; - Factor (M, Level = M)

write socket causes "program exited with code 141" in C -

I am trying to set up client / server in C. I establish the connection, then I want to send a user name to a PWD on the server, and the server must answer to confirm that it has received the USR / PWD. The problem is that both the server and the client leave the "written" or "reading" function as soon as they get it. What should I do? server.c #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; # Include & lt; Unistd.h & gt; # Include & lt; arpa / inet.h & gt; # Include & lt; Sys / types.h & gt; #include & lt; Netinet / in.h> # Include & lt; Sys / socket.h & gt; # Include & lt; Netdb.h & gt; # Include & lt; Signal.h & gt; Zero main () {int ds_sock; Struct sockaddr_in my_addr; Ds_sock = socket (AF_INET, SOCK_STREAM, 0); Memset (& my_addr, 0, sizeof (my_addr)); My_addr.sin_family = AF_INET; My_addr.sin_port = htons (25000); My_addr.sin_addr

xampp - Android Connecting to Xamp -

Good day. I'm trying to add my Android application to the Ax. Actually I have an application that uses xamp, it works on an emulator, but not on the actual device. After a few hours of searching, I got the solution to use Tethering on USB and WiFi. With Tethering I get the error "ADB problem, unable to communicate with the device .. add smash." With WiFi, it does not enter my localhost. I know that someone can say that this is a widespread question. What am I asking, how can I access my device to my XMOP locallog? I have just shown above that whatever I tried and did not succeed. <div class = "post If both your Android device and device are running XAMPP, both are on the same network, you can use the private IP address of the machine running XAMPP , But if they are not the same network, then you will need to forward some ports and possibly get a static IP address. </ P> </ div> </ html><br /><br />

shell - add column with incrementing integer to multiple csv files -

I have thousands of CSV files, each has 64 columns and 700+ lines I combine to import into database tables Want to Using a cat, there is no problem combining the files. However, each file represents a different event, so when I ask the database, I would like to be able to extract just the lines from the personal file. For example: log_phile1 For example: A, B, C, D, ... log_phil A, B, C, D, ... A, B, C, D, ... A, B, 1, A, A, B, C, B, C, D ... 1, A, B, C, B, C, D ... 2, A, B, C, D ... thanks With awk, you can write: awk 'FNR == 1 {count ++} {print count "," $ 0}' * .csv This increases the "count" variable when the first record is being processed by each file.

excel - Type mismatch when checking cells for error -

if cell (i, 4). Value = xlErrNA then exit the MsgBox ("Error on the line" & amp; i) End End if I think I am setting this if the statement is wrong I " #N / A "and also got the same failure. Any guidance? An error type can not be compared with the string / numeric type, because they are two different Data of First, you need to check the error: If IsError (cell (i, 4) Value) then if the cell (i, 4). If value = sever (XLAARA) then MSBBC ("Error in the line" & amp; i) ends with sub-end if note that IsError Also error value, while your = xlErrNA only checks for a specific error: # N / A . The CVErr function changes the enumerated constant xlErrNA (which is a long / numeric value) to its error-type. You may have to add other error types #REF! Other conditions for "Name", #Name! , etc., or you can only leave if the cell (i, 4). Value = xlErrNA and then it will handle any error values. If the IERR (Cel

Unlimited-precision decimal math support in Python itself -

I have a question about Python's pure mathematical support. As far as I know, at some point, calculation is not enough in Python, given that the circuit is big enough. Is there something like a library in Python instead of importing some unlimited exact support languages? I'm asking in Java for something like BigDecimal , which supports unlimited precision of the decimal calculation. Have you seen the decimal module?

scrollbar - custom scrollable tab bar on top iOS -

Image
I have a question about applying a custom scroll tab bar at the top of the screen in the iOS app. Looking for a tab bar similar to the one pictured below). I have checked this scrolling tab bar (), but want to move it to the top, and when I edit the source code it clearly shows ... I am assuming that I have a standard tabbar controller Can not use but should create a custom tab bar .... right? How do I go about creating custom scrolling tab bar at the top of the screen? Thank you very much for any feedback! This project will help you You can: But you need embedded with a UISCroll view in an unlimited UITabBar;) and it can be configured by putting tabbar in the top of the screen. Hope that helps is!

javascript - Cannot access jquery ajax responseText in a deferred object -

I have to create a commitment based on AJAX calls for a web method. Basically, I was working using this method: $ Ajax ({url: window.location.pathname + "/ LoadPage"}}. Done (function (data) {// do some stuff}). Failed (function () {// Other things}}; Then ran on the issue of needing to wait to load before doing something else, so I decided to create a variable to catch the promise object. < Code> var promiseObj = $ .ajax ({...}); Create a named function for calling Function Some functions (data) {...} Get feedback from server Access var someData = promiseObj.responseText; and call it Promise obz .one (some functions (Some data)); And it was not working I was getting undefined errors so I just got to console.log Tried console.log (promiseObj) // object console.log (promiseObj. Response text) / / undefinates What am I wrong I am doing? How do I send data from AJAX calls to another function using this method? Any help would be ap

c# - Advantages or alternatives to asynchronous events in my case of many subscribers -

Assuming that I have a class item the value of the item is taken from the external source. For at least the recent price, you have to request as much value as possible in the loop. Of course there are only 1 item , there are thousands. It looks like: while (active) {foreach (item item item) {item.Value = RequestValue (item.Address); }} Every item can be used multiple times to get a change, there is a value change in value , where You can subscribe. Let's say I have a lot of customers, like 100 or 1000. Each handling can delay the loop behind the time and the variable is the idea: make the event unattainable. In this case No matter how long the handler needs. However, in this question: no asynchronous events have been changed (except if there is a good performance reason). I did a little demonstration test I created a SyncItem and asyncItem and a subscriber . SyncItem is calling OnValueChanged and AsyncItem is calling new thread ((= => ONValueCha

asp.net - Listing Models from ASP pages, with Visual Studio and C# -

I am creating a very basic web application in Visual Studio in ASP, I used the default web site and Then the 'staff' ideal. This model can be stored using the database: Public class EmployeeDBContext: DbContext {public DbSet & lt; Employee & gt; Employee {receive; Set; }} In the employee namespace. When I created the controller for this model, make Default, Read, Update and Delete methods are created. An index page has also been created which is shown for the first time the page is loaded and this page shows to every employee currently in the database. The code for index.cshtml looks like this: @modelimimableable & lt; Other webpages Models. Employee & gt; @ {ViewBag.Title = "Index"; } & Lt; H2 & gt; All employee options & lt; / H2 & gt; & Lt; P & gt; @htmlexactionlink ("create new", "create") & lt; / P & gt; & Lt; P & gt; @htmlexactlink ("see all", "see now")

tomcat - Grails - How to add Oracle jdbc jar to classpath without placing in /lib? -

I am trying to run my Grails application locally with Tomcat, but without ozdbc6 My village application for glassfish has been deployed and works fine on the server (because there is ojdbc6.jar available). As expected error: could not load the JDBC driver class [oracle.jdbc.driver.OracleDriver] (failed) approach # 1 I have previously optimized my GGTS configuration to include VM logic: -cp: / somelocalpath / oracle- jdbc-drivers (failed) approach # 2 I'm currently looking to use jvmArgs a local version of jar Point to grails.tomcat.jvmArgs = ["- cp: /somelocalpath/oracle-jdbc-drivers/ojdbc6.jar"] Although a run- The outcome of the war: | Error server failed to start: Tomcat prematurely called '1' code (error output: 'unrecognized option: -CP: /apps/glassfish3/oracle-jdbc-drivers/ojdbc6.jar exits error: Java does not create virtual machine Error: A fatal exception has occurred. The program will end. ') I should clarify my

Ruby - Nested IF statement syntax -

I'm trying to get this nested if the statement works but my syntax is incorrect and I can not understand it . I have a search box and a type of drop-down on the train 4 app. On the search results page, I want to sort product entries that the user chooses in the order dropdown. If a user does not enter the search term, I have to display a message. Here is my controller code. If I remove the conditions and display only a default sort, then the search results page is displayed so that the error statement is in syntax. def search if the search [: search]. Display? If Parameters [: Sort] == ​​"- Price - Low" Highlighting "=" Eligible Parameters [: Sort] == ​​"- High - High" High to Low "@listings = ... Elsf Param [[Sort] == ​​"- New recurring" @ listing = ... Elsf params [: Sort] == ​​"- random drag" @ listing = ... and @ listing = ... end and flash [: notice] = "Please enter one or more search terms such as blue shirt

.net - MonoDevelop vs Xamarin vs SharpDevelop -

In the last two versions, there is a question for mono development download link Xrine versus? I am thinking more about licensing for zaminin, linux (web and form) and mobile development. Since there are no Xamarin download links for Linux (they are not working in the site), this means that they are not planning to support Linux at all. In addition to this there is just another IDE called ShardDevelop, it is exactly the same as far as I can tell that it is only supporting Windows. If you can provide more information about the Cross Platform IDE option which would be great, but it does not support any web application development directly. Mono develop is supported on Linux. You can get 4. * package from official site here If you want the latest 5. * package, then you get package and installation instructions here. Or you can make them yourself from your repository.

ibm midrange - How to view a Trigger Definition in AS400 -

I am trying to see the triger definition for a trigger for AS 400, and to find the command to help Unable to do I have to do this I can list triggers, make or remove them, but how do I see the trigger definition? DSPFD file (LIB / FILE) TYPE (* TRG) The C program is implemented and when a trigger starts to fire, you will get basic information.

c - Benefit of threaded binary tree -

In the documents of threaded binary tree, I read recursive and non-binary tree traversal For recursive procedures it is necessary that pointers to all free nodes be temporarily placed on the stack. This can be avoided by using the Threaded Binary Tree My question is 1- How and how long is the pointers in normal binary trees? 2- How does the points in the stack in the threaded binary tree not be added? 1) They are talking about walking in the tree. You either use a recursive algorithm (which uses the CPU stack to keep track of things for you), or you use an iterative approach and keep a data structure stack and see yourself To manage the nodes. The latter can perform better because you eliminate the overhead of the function calls, but it is often more conceptually difficult to understand. 2) A threaded tree stores how to walk on a tree in the tree itself (instead of the null pointers you have to follow, they point to the next place in the tree to walk), by You get p

charts - How can I force a dual y axis graph to use the same baseline for each axis? -

I have a Google combination chart where I am using two Y axis. Currently, the baseline is at a different level for each axis. I want to make sure the baseline is at the same level for each axis. I am currently using my graph to display the following: gt; & gt; & gt; & gt; & lt; body & gt; & lt; div id = 'Graphdiv' style = 'width: 900px; height: 500px;'> I am aware of the following questions which are relevant to this question: / ol> It seems that the first of these deals is especially with the situation where the data is already known. It would also be useful to see some of the javascript signals necessary to implement it. The second, offers some useful javascript, but it can not seem to deal with the data series where the second series contains negative values, my dataset does. I know that the most important component of these answers is using the minimum value of each vAxes and the maximum value properties

Go language: Change the build folder when running "go run" -

Using Go to Windows, whenever I go to run myprog.go from the console Go builds is a new executable with a random name on my C drive. Is there a way to configure it, so it will always create a file at a specific location, and preferably to avoid the randomness of the name? (I.e., always build on D: \ Temp \ LastBuild.exe.) I got some information that go help run and help create In the latter one output flag was -o outfile but it was not accepted in the go run . Any help is appreciated. Do not use . The snippet of code is aimed at instantly testing the size of screening lines. A working perspective Edit the code. create it . To run your executable, which will keep the predictive name. Go to Step (1). If you write a test in parallel with the implementation (and you want), then it edits the code. Edit the test suite. Test . Go to Step (1). Please see for more information on the same topic. / P>

php - phpsec and zend framework 2 should be integrated? -

After text "itemprop =" text "> I am writing a web application based on Zend Framework 2. Now I've got and I'm wondering if I need to integrate Zend Framework 2 with phpsec (Zend Framework 2 to increase security) or if the Zend Framework is already phpsec (or something similar) ). What you asked is more of a subjective question. My opinion is that you do not need additional security for JFF already above top security. And this is the case for many frameworks - we use them because there are some basic underlying capabilities in them (of course, in various levels of complexity) and security is one of them. You need to add stuff like phpsec when you want to add a layer of security on top of a custom codebase that you may not have already in it. It is being said that what you want to compare in JFF and PPSC and which may be missing in ZFF, because PPSC is a decapple set of security functions. In addition, these are two good articles, and ZF is taking

three.js - How can I install files the maintainer has configured Bower to ignore? -

I am using and there are many useful files under the example / directory. Unfortunately, example / three would like to include. Is listed under the Ignore property of Js bower.json . Whether under a example / The idea which is behind the bitterness to focus on the main library files. From my point of view, you have the option: Use the generated package through NPM instead of the conveyor and your code will have node_modules Directory - For example Create your own NPM package based on npm / bower and use it the same way

angularjs - Filtering ui-grid[ng-grid 3.0/or earlier] using range slider -

I want to filter a standard Yuri-Grid [ng-grid 3.0] with range sliders. The input came from the filter, but I can not tie it in the values ​​of angles coming from the range sliders. Any ideas? Alternatively, I will bring my code back to the ng-grid (again) & lt; 3.0 Any ideas how to do this (I have found here at that point that I can filter multiple columns once per filter based. I found the" solution ": This works for me: $ scope. $ Watch ('from', Function (newValue) {$ Scope.gridOptions.columnDefs [5]. Filter [0] .term = newValue; $ scope.gridOptions.columnDefs [5] .filter [0] .term = newValue;}); $ scope. $ Clock ('', function (newvalue) {$ scope.gridOptions.columnDefs [5] .filter [1] .term = newValue;}); column deaf inde In my case the 5th column def looks as follows: {region: 'age', filter: [{condition: uiGridConstants.filter.GREATER_THAN, placeholder : 'More than'}, {condition: UiGridConstants.filter.LESS_THAN, p

java - ClassNotFoundException: HelloStageDemo -

The code I am running from the code is from the homepage. There are no compiler warnings, but when it runs, I get an exception. I tried to use JDK 1.7 with Scalay 2.11 and Scalax 2.9.3-2.2.67 and received the same error. I still meet with Scala 2.11 and Scalax 2.11-8.0.20-R6 with JDK 1.8. I'm hoping that I'm stupid missing something simple: all that is written in the console: "c: \ program files (x86) \ java \ jdk1.8.0_20 \ bin \ Java "-Didea.launcher.port = 7532" -Didea.launcher.bin.path = C: \ Program Files (x86) \ JetBrains \ IntelliJ IDEA Community Edition 13.1.4 \ bin "-Dfile.encoding = UTF-8- Classpath "C: \ Program Files (x86) \ Java \ jdk1.8.0_20 \ jre \ lib \ charsets.jar; C: \ Program Files (x86) \ Java \ jdk1.8.0_20 \ jre \ lib \ deploy.jar; C: \ Program Files (x86) \ Java \ Jdk1.8.0_20 \ jre \ lib \ javaws.jar; C: \ Program Files (x86) \ Java \ jdk1.8.0_20 \ jre \ lib \ jce.jar; C: \ Program Files (x86) \ Java \ jdk1 8.0_20 \ jre \ li

c++ - Why isn't my class constructor initializing its member variables? -

I'm sorry if there is a lack of information because I'm trying to follow "Asking Guidelines". I have created a category called "item" to store the item information and defined my constructor as follows: item :: items (std :: String number, std :: string name, int volume, double price) {itemNumber = number; ItemName = Name; Quantity = quantity; UnitPrice = value; } and I like to start it in my main function: item temp ("string", "string", 0, 0) ; But when I printed the item's prices, only the item number and item name was printed properly. The random garbage that was printed then I realized that the issue is of the quantity and the value is not starting. Why is it like this? Try this-> quantity = quantity; or (IMHO better): item :: items (const std :: string & number, const std :: string & name, int quantity_), double price) {// ^ // ... quantity = quantity_; // ...} or (Imho also better) u

angularjs - Accessing selectedItems from ng-grd in directive -

हैलो मेरे पास निम्न विकल्पों के साथ एक रंग है: $ scope.mySourceSelections = []; < / p> $ scope.gridOptions = {डेटा: 'formatSources', showSelectionCheckbox: true, enableCellSelection: true, enableRowSelection: true, multiSelect: false, selectedItems: $ scope.mySourceSelections}; मेरे निर्देश में मेरे पास मेरे पृष्ठ पर HTML एम्बेड करने के लिए एक टेम्पलेट है I मेरे div टैग में मेरे पास विशेषता है: डेटा-गतिविधि-स्रोत = {{mySourceSelections}} जब पेज विशेषता को प्रस्तुत करता है: डेटा- गतिविधि-स्रोत = "[{" स्रोत नाम ":" कॉलेज का पत्र & amp; स्रोत को सेट करने के लिए, मुझे वाक्य रचना को डेटा-गतिविधि-स्रोत = "कॉलेज ऑफ लेटर्स एंड साइंस" की आवश्यकता है । / p> जब मैं अपना टेम्प्लेट बदलता हूं: डेटा-गतिविधि-स्रोत = {{mySourceSelections [0] .SourceName}} मुझे निम्न दो त्रुटियां प्राप्त होती हैं: GET / api / v1 / activity / public = s = 0 & amp; l = 1 & amp; o =% 2020% 20% 20 और 20% विज्ञान 400 (खराब अनुरोध) jquery-1.1

excel vba - Colon in FormulaR1C1 -

I have the following line in my vba code [A1]. FormulaR 1C1 = "= IFERROR (VLOOKUP (RC [-4], Rates! A: H, 3, FALSE)," "" : = IFERROR (VLOOKUP (A8, Rates! A: (H), 3, False), "") I'm not sure The formula does not work because 'H' appears in parentheses, but when I remove the brackets it works. But how do I get VBA to formula in the first place? The reason for this is really simple. On one side You are saying . FormulaR1C1 and you are using both notations on either the R1C1 or A1 , try to do [A1]. Formula 1 C1 = "= IFERROR (VLOOKUP (R [7] C, Rates! C: C [ 7], 3, FALSE), "" " or [A1] .user =" = IFERROR (VLOOKUP (A8, Rates! A: H, 3, FALSE), "" "") "

How to set apache user to access GitHub -

I'm trying to deploy GitHub on a shared web server, but the first step is: Set up your Apache user to reach Jitub. How is this done? How to do it at a loss? The documentation for the Apache-git-sync-tool goes into more details: Assume that the Apache user is at 'www-data' ('__www' on the Mac). You have to add your SSI public key to Jithub. If you have not generated the key, then you need to do it with the following command: sudo -hu www-data ssh-keygen -t rsa Thus, www / data users in /var/www/.ssh/ in general The id_rsa key will be generated for. You will see the location in the output. Passphrase should be left blank For successful generation, the / var / www / www-data user should have the facility of writing. I have tried some variations on that, while Apache server had SSHing, but there was no luck what happened here: [myusername @ webhosting -login01 ~] $ sudo -HU www-data ssh -T git@github.com sudo: unknown user: www-data sudo: Unable to

c# - Possible to check if Key V is pressed in AddingNewItem event in WPF Datagrid -

Is it possible to check whether the key is pressed into the AddingNewItem event in the VWP Datagroup, such as how to preview the Kidadown event Is done Private zeros grd_PreviewKeyDown (Object Sender, KeyEventArgs e) {if (e.Key == Key.V & amp; (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) {// TODO}} I see if Ctrl + V is pressed, is it possible to do the same check in the event by adding? You can use Keyboard.IsKeyDown () in this way: if (((Keyboard. ISKDown (key.LIFTLL) || keyboard .iskdown (key. Right-CTRL) and keyboards. ISKDown (key.W)) {// CTRL + V is pressed}

office365 - Using office 365 api from a service -

Can I use the new Rest file API without service? For example, I want to be able to create a service where the user agrees once, and after that without any clear consent for the months of service intervention, file operation (against sharepage online) ). It is possible to talk with other OAIUT type REST APIs (for example One Drive Rest API allows for this) to store fresh tokens and to get a new access token. 1) Is this possible with these new APIs? In response to "Tdriver" the comment of "Jethke" is here. It seems to indicate what I want is not possible, but I'm not sure why not. The new O365 rest API uses the settings to verify that the app is using Is allowed. This means that the user must first register an app in AAD and Ape; Please agree in the browser for the app's data usage so that the app has the correct permissions. Once the app has been agreed, by completing any kind of flow, you will get the correct token to call the API from any servi

MySQL ORDER BY multiple elements in different where clauses -

I have a question for which I do not know how to call it properly. Maybe I do not use the correct name and therefore I could not find the answer. But it is the case Buking_ Start (Waimdi) Buking_sttaim (H: A database table to me to come): booking_hotelstart (ymd) booking_hotelstart (ymd) booking_hotelstarttime (Ymd) booking_hotelend (ymd) > booking_hotelendtime (h: i) booking_and (ymd) booking_and time (h: i) booking_enable ( Boole) Now I want to do a query that is about it: (What I want to do is to show it A invalid question) SELECT `booking_id` to` system_bookings` WHERE ((`booking_start` = '2014 -10-20' order 'booking_stime' ASC) or (` booking_hotelstart `= '2014-10-20' Order 'booking_hotelstarttime' asc) or (` booking_hotel '=' 2014-10-20 'order booking_and time' ASC) or (`booking_and` = '2014-10-20' order booking_and time 'ASC') and `booking_screated` = threshold of truth 0, 100

android - Null pointer Exception on Adapter because of View Holder -

यहाँ मेरा एडाप्टर है: सार्वजनिक वर्ग MainAdapter बेसएडैप्टर लागू करता है View.OnClickListener {private संदर्भ संदर्भ; निजी लेआउटइनफ्लेटर इन्फ्लेटर; निजी मानचित्र & lt; पूर्णांक, जानकारी [] & gt; originalDatas; सार्वजनिक मुख्य एडाप्टर (संदर्भ संदर्भ, मानचित्र & lt; पूर्णांक, जानकारी [] & gt; सूचना लिस्ट) {this.context = context; OriginalDatas = infoList; Inflater = लेआउटइनफ्लाटर। से (संदर्भ); } @ ओवरराइड पब्लिक इं प्राप्तकॉउंट () {originalDatas.size return (); } @ ऑवरराइड सार्वजनिक ऑब्जेक्ट होट इटैम (इंट पॉजिशन) {मूल डट्स। गेट (स्थिति) लौटें; } @ ओवरराइड सार्वजनिक लाँग आईटीएमआईडी (इंट की स्थिति) {वापसी की स्थिति; } @ ओवरराइड सार्वजनिक देखें getView (int स्थिति, कन्वर्टव्यू देखें, ViewGroup पैरेंट) {convertView = inflater.inflate (R.layout.grid_list_row, null); अंतिम देखेंहाल्डर दृश्यहॉल्डर; if (convertView == रिक्त) {viewHolder = नया ViewHolder (); ViewHolder.rightText = (TextView) कन्वर्टव्यू.फ़ीन्डव्यूबीआईआईडी (आरआईड। राइट टेक्स्ट); ViewHolder.leftText = (TextVi

html - Want to remove default border from my background img -

How can I remove this ugly 1px black border from this background image ?? I unsolicited background: url (../ images / thumbsDownSelected-Red.png); Anything else that stays in the Chrome Web Developer Tool is an ugly 1px solid black border . ThumbsUp selected (Background: url (../images/thumbsUpSelected-Green.png); Background-Size: 100% 100%; Background repeat: No duplication; Height: 65px; Width: 65px; Cursor: Indicator;} & Lt ; Img src = "" id = "" class = "thumbs up thumbs up button" & gt; I try to delete src = "" Nothing has changed. Even img {border: 0! Important} does nothing! I have the src = I am not seeing IMG reference, so avoid posting solutions which pls do. What is going on ?? Why does not one deity appear in the tool and it can not be removed? P> Have you tried Border: someone On the div? It is the div in which the border is the image is just the div's background, so you take it on that

sql - how to define sqlalchemy orm models for difficult logic -

I'm using sqlalchemy for my project, I have difficult arguments to define the model. I have four database tables item_type - item_type_id (tinyint) - item_type_name (varchar) - Item_types "post (1)", "Products (2)", "Gallery (3)" tag - Tag_ id (Int) - Tag_nam (varchar) item_tag - item_type_id (tinyint) - item_id (int) - the Item_id be my model < code> class tag (base): __tablename__ = 'Post_aidi or Utpad_aidi or Galri_aid - Tag_aid (int) Post - Post_aid - Post_taitl - Post_ content tag "Tag_ id = column (integer, Prathamik_ki = true ) Tag_names = column (string (255)) square post (b) Express): __tablename__ = 'post' post_id = column (integer, Prathamik_ki = true) will post_title = column (string (255)) Post_title = column (text) # tag links here Item Mdgred (base): __tablename__ = 'item_tag' item_type_id = Column (integer, primary_key = true) item_id = column (integer, primary_key = true) tag_ id = column

python 2.7 - Converting theano tensor types -

I have a calculation graph created with the Thano, it happens in this way: < code> import from T importer as imported TNO, such as NPW1 = Nano. Shared (N.P.R.M.Rend (45,32). Staceype ('float32'), 'w1') b1 = thino. Shared (N.P.Randm.Rand (32). Stesip ('float32'), 'B1') W2 = Nano. Shared (N.P. Randem.Rand (32.3). Steppe 'Float32'), 'W2') B2 = Thino. Shared (Np.Rom.Rend (3) .stip ('float32'), 'b2') input = teamatics ('input') hidden = ttn (teadot (input, w1) + b1) Output = T.net Softmax (TDT (hidden, W2) + B2) Now, mapping from a vector is a vector, however, the input is set as a matrix type So, I can pass several vectors together with mapping. I'm learning some machines and it makes the learning phase more efficient. The problem is that after the learning phase, I want to see the mapping vector in the form of a vector so that I can calculate: jac = theano.gradient. jacobian (output, wrt = inpu

c# - Why is object still alive? -

Just doing some exercises and breakbacking was done through this example. I found that the references made to the first list of members were still alive, why? The values ​​of another show and newShoe were assigned to their reference members, but as you can see, by cleaning the actual objects was given. I know that I can provide them zero values, but when they return their reference items list list & Lt; Shoe & gt; ShoeCloset = new list & lt; Shoe & gt; (); ShoeCloset.Add (new shoe () {styles = Styles.Sneakers, color = "Red"}); ShoeCloset.Add (new shoe) (styles = styles. Sandals, colors = "green"}); ShoeCloset.Add (new shoe () {styles = Styles flipflops, color = "yellow"}); ShoeCloset.Add (new shoe () {styles = Styles. Loophers, Color = "Brown"}); ShoeCloset.Add (new shoe () {styles = Styles.Wingtips, color = "Blue"}); // int numberoffsops = shu classcity.quarter; // foreach (shoe shoe in shoe cloacet) /

arrays - Bash How can I use read command to assign multiple words to 1 variable -

I am trying to read many words / logic in one variable. I tried to specify it in an array and using the loop, put all the elements in the array in 1 string. read -a info i = 0 datastring = "" while [$ i-lt $ {info [@]}] tautestring = $ datastrings $ {info [i]} "$ dataString" When I run the program, it does nothing and sits there and does not leave printing and I have lost it in some other way. itemprop = "text"> < reading datastring & lt; & Lt; & Lt; "There are many words in this sentence" echo "$ datastring" If you already have an array datastring = $ {info [ ]} will combine the array into one word, the first letter of $ IFS will be used as a separator. If you want all the words not found in a separator, you can: datastring = "" $ {info [@}} "for word; datestring + = $ Word; or this: datastring = $ (IFS = ""; echo "$ {info [*]}") or this: datastr

How to replace html in php -

I am reading for hours and how it can be understood how to do it. I can get examples of everything but what I want left: 6px; "& Gt; this Each post should have something that I can add to a single.php file to complete it. If you do not want to databases the way jquery (document) .ready (function () {var cntnt = jQuery (" body "). Html () ; If (cntnt.indexOf ('style =' margin-top: -501px ')> -1) {var cntntreplaced = cntnt.replace (/ & lt; div style = "kill Jin-top: -501px; margin-left: 6px; "gt; / g, 'div class =" flex-video "& gt;'); $ (" body ") .replaceWith (" & lt ; Body & gt; "+ cntntreplaced +" & lt; / body & gt; ");}});

EXCEL VBA to find duplicate rows and sum rows -

Image
विक्रेता और विक्रेता भुगतान जानकारी के साथ 10,000+ पंक्तियाँ यदि स्तंभ, ए, सी, डी, एफ, जी, एच में फ़ील्ड के आधार पर डुप्लिकेट हैं, तो मैं कॉलम के और एल में राशि की राशि जोड़ना चाहता हूं और इसके लिए 1 एंट्री / पंक्ति रखना है। नीचे की तस्वीर का नतीजा है। मैं यदि संभव हो तो शब्दकोश स्क्रिप्ट का उपयोग करना चाहता हूं लेकिन मैं इसका उपयोग कैसे नहीं कर पाता यह सिर्फ कुशल लगता है, यदि नहीं, तो अलग विधि भी ठीक है। कोई भी सहायता कर सकता है ????? मैं बहुत सराहना करता हूं !! यह एक मजेदार है, इसलिए मैंने इसे लिखा है। मूलतः यह स्क्रिप्ट आपके wsFROM का इलाज करती है जैसे कि यह एक डेटाबेस तालिका थी, तो यह आपके लिए क्या आवश्यक करने के लिए एसक्यूएल कथन पर लागू होगा और परिणाम वसूली के लिए निकाल देगा यह बहुत जल्दी चलना चाहिए, हालांकि यह 20000 रिकॉर्ड है विकल्प चादर में हर पंक्ति के माध्यम से पाश के लिए होगा और फिर यह देखना है कि क्या ऐसा दूसरों है और परिणाम जोड़ें। यह उन 20 मिनटों में से एक होगा जो दुःस्वप्न वाले वीबीए कार्यक्रमों में से एक है, जहां यह कुछ दर्जन सेकंड में चलना चाहिए। स

python - Unable to get proper timestamp ranges -

I hope to generate many limitations in between: 18:00 (EST ) With the interval size of 2.2 seconds and 400 seconds later on October 6, 2014. Getting start and end dates: When I do the following: start_time = datetime.datetime (year = 2014, month = 10 , = 6, hours = 18, tzinfo = pytz.timezone ('US / Eastern')) end_time = start_time + datetime.timedelta (seconds = 400) Some seem unsuccessful: start_time.isoformat () returns '2014-10-06T18: 06: 40-04: 56' < Li> and_times.isoformat () returns '2014-10-06 to 18: 06: 40-04: 56' Note that the time zone is offset for the above two time ranges Are: -04: 56 (4 hours and 56 minutes) Even if EST is behind UTC is 5 hours ? Getting the deadline: On the move, if I try to get many time limits between these two dates then each 2.2 seconds (I.e. 2200 ms ): ts = pd.date_range (start = start_time, end = end_time, freq = '2200L') I get: & gt; Ts [0] timestamp

machine learning - Grouping Similar Images with names in them -

Image
I have hundreds of images that need to be grouped together. All the pictures have names in it with colors. Is there a simple way of grouping them on the basis of names along with colors? Is there a package available in Python or an algorithm with which it can be done? For example, in the above image there is a "boy" If I had a similar image with the same name. Then how can I group them together. If the text is clear as you do not need to learn the machine: only the name of the key Use the same name to group all items with the same name. If the text is still clear, but you want to group the conjugate group named stem or lemmatize with NLTK . If the text is clear, but you want to group meaning-related words that are not conjugate only, use a topic model or word2vec , which will give you each A vector of the word gives space embedding then it can be used to do a similarity search . I highlighted key words to help you with your help. The technical term for

c# - Data binding to singleton class -

I have searched here many times and found a bunch of examples, but nothing can be found to work. . A solution has been established to me, where a view model refers to the main visual model class through a locator. The main visual model is in the class: public notification log {get {return LogMgr.Instance.log; }} This allows me to specify: & lt; The text box IsEnabled = "True" text = "{Compulsive Log Test, Mode = Options}" /> NotifyLog is defined as: public class NotifyLog: INotifyPropertyChanged {public NotifyLog () {_Log = new StringBuilder (); } Private Zero OnPropertyChanged (String property) {If Property (PropertyChanged! = Zero) property changed (this, New PropertyChangedEventArgs (property)); } Private Event PropertyChangedEventHandler PropertyChanged; Private stringbuilder _log; Public Zero Enclosed (string value) {_Log.Append (value); OnPropertyChanged ("text"); } Public string text {return {Return _Log.ToString (); }} P

Python - Can users call variables with only part of its name? -

इस सवाल का पहले से ही एक उत्तर है: < / p> 2 जवाब क्या करने की कोशिश कर रहा है I उपयोगकर्ता का नंबर टाइप करें, जो तब सिस्टम में विशिष्ट चर के रूप में पंजीकृत होगा। उदाहरण: n1 = "x" n2 = "y" n3 = "Z" num = input ("संख्या प्रविष्ट करें (1-3):") प्रिंट (n (num)) इसलिए, यदि उपयोगकर्ता ने अपने प्रोग्राम में संख्या 2 दर्ज किया है, कार्यक्रम एन 2 में संग्रहीत मान को प्रदर्शित करेगा, या एक समीकरण में n2 का उपयोग करने में सक्षम होगा। क्या यह संभव है? मैं अभी भी पायथन के लिए नया हूँ और यह स्कूल की नौकरी नहीं है, बस मेरी अपनी जिज्ञासा है:) धन्यवाद संपादित करें: करने के लिए: temp = int (इनपुट ("\ n प्लेअर वन, कृपया एक वर्ग (1-9) चुनें:")) जबकि {1: एन 1, 2: एन 2, 3: एन 3 , 4: एन 4, 5: एन 5, 6: एन 6, 7: एन 7, 8: एन 8, 9: एन 9} [अस्थायी] == "एक्स" या {1: एन 1, 2: एन 2, 3: एन 3, 4: एन 4 , 5: एन 5, 6: एन 6, 7: एन 7, 8: एन 8, 9: एन 9} [अस्थायी] == "हे": अस्थायी = str (इनपुट ("\ n प्लेअर वन, कृ

ruby - Putting Faker Gem Values to a Hash -

मैं ककड़ी, कैपेबरा, वेबड्रायवर, साइटपरिज्म, और फ़ेकर का उपयोग करके स्वचालित परीक्षण लिख रहा हूं। मैं इसके लिए नया हूँ और कुछ मदद की ज़रूरत है। मेरे पास निम्न कदम हैं .. दिए गए (/ ^ मैंने एक नया सक्रिय उत्पाद $ / बना दिया है) क्या @ पेज = AdminProductCreationPage.new @ page.should be_displayed @ page.producttitle.set Faker :: Name.title @ page.product_sku.set Faker :: Number.number (8) क्लिक करें @ page.product_save @ page.should has_growl पाठ: ' संग्रहण सफल।' कॉन्फ़िगरेशन / कॉन्फ़िगरेशन में / समाप्त / Env_config.rb मैंने एक खाली हैश स्थापित की है ... इससे पहले कि # चरण परिभाषाओं के बीच आसानी से डेटा साझा करने के लिए खाली कंटेनर @verify = {} end < p> अब मैं "दिए गए" चरण में फेंक द्वारा उत्पन्न मान को हश करना चाहता हूं ताकि मैं इसे "कब" चरण में ठीक से सहेजी गई सत्यापित कर सकूं। मैं नीचे दिए गए स्क्रिप्ट में खोज फ़ील्ड में उत्पन्न मान को भी दर्ज करना चाहता हूं। @ page.producttitle.set Faker :: Name.title < Ol> @ सत्यापित करें

html - Why isn't box-shadow working? -

I can not get a box-shadow to work with the following CSS code for my div element: #header {background color: # B89E70; Top: 0; Left: 0; Width: 100%; Height: 5%; Status: fixed; Box-Shadow: 0 pixels, 20px, 5px, RGBA (0, 0, 0, 0.7); Font-family: aerial; Text align: center; } I'm using Chrome Box-Shadow For any idea of ​​the value it should not be a comma box-shadow property uses a comma to separate multiple shadows. You should update your box-shadow like this: Box-shadow: 0 px 20 px 5 px rgba (0, 0,0,0.7); Keep in mind that you can display many shadows on one box like this: Box-shadow: 0 px 20 px 5 px rgba ( 0,0,0, 0.7), 5 px-5px 0 rgba (0,0,0,1); You can create some very cool effects like this!

background - Local notification to poll server at interval (iOS 7) -

I have an NSTimer in iOS, which for every data line in the table based on the voting on a database server every 10 seconds Voting is a fixed data id, which is sent as a logic via PHP-script if the data ID matches the Data ID of the row that is inserted by an external source, then the notification from the app data line Containing a warning box and NSTimer Will stop to be. But it only works, while the app is running in the foreground and I want to show the notification message as a local alert so that the user exits the app, it will still vote When the app is running in the background well. I have read on many sites that the Local Notification Service and Background Forbank is the right kind of solution, but I do not know how to actually set it, it is very misleading. Because I have seen many examples where local notifications are used to send reminders to certain dates on calendar and triggers alarms at certain times and not much about voting on a server. How do you establis

javascript - How to make button appear at bottom of div on hover -

I am trying to add an effect to a site. I have a list of icons that are arranged in 2 groups of 3, which is made using a combination of boot slips-SM-4 using a set minimum-height of 6 squares total. What am I trying to do when the user enters on any part of the div, this icon changes the image, and the visible creates the button below before me Both of those features are working from the same, but to change the icon you have to be curved on the icon, and to see the button, you can see the & lt; P & gt; tags I'm looking for a way to change my state on moving them on my specific div. html & lt; div class = "col-sm-4 info-item" & gt; & Lt; A href = "#" & gt; & Lt; img src = "../ desktop / icon1.png" onosauover = "it src = '.. / desktop / icon 1_read.png' 'on-houseout =" this src =' ../desktop/icon1.png & lt; bell & gt; & lt; div class = "icon-text" & gt; &

javascript - 'WebSocket.URL' is deprecated. Please use 'WebSocket.url' instead -

वेबस्केट कनेक्शन 'ws: // localhost: 35729 / livereload' में विफल: कनेक्शन स्थापना में त्रुटि: नेट: : ERR_CONNECTION_REFUSED chromereload.js: 9 'WebSocket.URL' नापसंद किया गया है। इसके बजाय 'WebSocket.url' का उपयोग करें chromereload.js: 12 क्रोम के संस्करण के संस्करण में क्रोम के बाद से मुझे यह त्रुटि संदेश मिल रहा है। मुझे यकीन नहीं है कि यहाँ क्या हो रहा है, लेकिन अब सबसे अधिक चीजें खोल रही हैं विस्तार करने के लिए कारण क्रैश। मैंने शुरुआत में अपनी परियोजना को मचान करने के लिए पुरुष का इस्तेमाल किया, और सब कुछ ठीक काम कर रहा था। मैंने मेनिफेस्ट से लाइवरेलोड को हटाने की कोशिश की, लेकिन ऐसा लगता है कि सब कुछ तोड़ दिया किसी भी सहायता की सराहना की जाएगी। यहां कोड है: 'सख्त प्रयोग'; // क्रोम के लिए पुनः लोड क्लाइंट ऐप्स & amp; एक्सटेंशन। // पुनः लोड ग्राहक livereload के साथ एक संगतता है // चेतावनी: केवल पुनः लोड आदेश का समर्थन करता है Var LIVERELOAD_HOST = 'स्थानीयहोस्ट:'; var LIVERELOAD_PORT = 35729; Var कनेक्शन = नया वेबसाकेट ('