query_id
stringlengths
4
64
query_authorID
stringlengths
6
40
query_text
stringlengths
66
72.1k
candidate_id
stringlengths
5
64
candidate_authorID
stringlengths
6
40
candidate_text
stringlengths
9
101k
22a211369609d79bb8af657addca32012f5b0fa5216aaabe5aca11e03817cc46
['9e32c388d61a4ff5b9f661025a438842']
What are you trying to tell me? I asked a simple, clear question. What I'm trying to do in detail is not relevant. Yes, like you, I would prefer such a perfect command line tool - like Linux' fdisk and mkfs. But since this is not Christmas I limited the criteria to CLI and free, if there is a perfect tool without overh...
11850dde4de4e38849281e4201bd2fa8d463d27d7267e62a610f1ccda8f8cf9d
['9e32c388d61a4ff5b9f661025a438842']
I am attempting to help a colleague with data analysis and I'm a bit swamped as to what is appropriate. We are trying create a formula to explain why children in various provinces have stunted growth and we predict it is due to Vitamin A deficiency and damage from Diarrhea events (Simplified of course). I have proport...
e7a510d4f5c87602156c6cc9750b790a892f8c1a0789103bfdcf6f3a5c744f98
['9e37bfb5a0e34193906a11d1c64a6521']
I am new on OpenCV. I am always wish to learn new image processing technologies / Programming. I have seen few tutorial on Object detection, tracking, counting etc. I wish to learn the same and try to make my own similar project. With lot of searching on internet and papers. Finally i came to know about Kalman Filter...
1ae1af181cb5698d00f0953c2c1cab95d7df82d37fb17a07f5d850f2ea245650
['9e37bfb5a0e34193906a11d1c64a6521']
I am bit new with Opencv / C++. I have been learning Opencv for last few months and trying to do work on a project to count persons in a video. would you please tell me how to count only one time. I draw a virtual line on the image and when the centroid of bounding box crosses then increase by 1. But it counts multipl...
2d8b9c4b027c082cf8cdcbdbbcb2318e1f23a72370d6b7a80f59d2d536099eab
['9e4383eff3c843388d936d0af6151277']
I have an application that requires a transactional mail server that also supports inbound mail parsing. The application was previously setup to use Sendgrid for this using their inbound parse API (receives mail and POSTs to webhook endpoint on our application), but a fully on-premise solution is needed in this case. ...
317de8627a0d3e10856517cf52a1280988cfd0245eff9c5fc1890057f924cf41
['9e4383eff3c843388d936d0af6151277']
I want a script that can check the age of files in different directories and delete those that exceed an expiration age. There can be hundreds of thousand of files with different creation dates. Some directories don't have that many files. There are approximately 100 directories. The directories have different expirati...
bc5a98e179bf3af924b2396d668fd722b1ea199d1fd63a4622302e644bc13bb8
['9e4b98545c34423bb4cefdd11cd9a37c']
I was looking at an example of a simple audio amplifier circuit and have a few questions... In the circuit below what represents the 1 and 2? What is their role in the circuit? Also, I've seen multiple different circuits and some have the potentiometer before going through the op amp and others have it after. What is t...
e0774962727987a495659d3f15b8c02c51a636c3ae4d0f8ca1d8cbd10aa1cb3c
['9e4b98545c34423bb4cefdd11cd9a37c']
I'm not a native English speaker and the American accent is the most familiar to me. I plan to visit NZ for a Working holiday program, but I'm concerned that I won't understand what they say. I can fully understand the North American speakers, but when I heard New Zealanders speak on TV, I couldn't understand half of ...
dba1c130716ad5ad11ba6c8ba5ff36d2d3c47223e3c16d168d44d98591f0decb
['9e4eaf61b81c4ec3893dd0f8c85b2d49']
I have a MySQL database (called database) with tables: event, gebruiker and situatie. Now I need to write code in Java (using netbeans) to test my restful webservice. I'm able to retrieve all users (=gebruikers, dutch), but when I want to retrieve one specific user by searching on it's primary key 'Username', I get thi...
be553b2738f2c66c604203cd47149ffe67ccf1f8677e8212871d74a784c09ae9
['9e4eaf61b81c4ec3893dd0f8c85b2d49']
I got this following code that retrieves data from my web service: using System; using System.Collections.Generic; using System.Windows; using Microsoft.Phone.Controls; using Newtonsoft.Json.Linq; using RestSharp; namespace BlogIT { public partial class BlogPage : PhoneApplicationPage { public BlogPag...
2a6f4bfbcfc5f1a4923ab3ee3b32c3f80ae5be25416d640c891fc6670d4017a4
['9e533a32ccb94b05ad418b9a4e463967']
I cannot reconstruct this: Retrieve only the queried element in an object array in MongoDB collection. Remember, there are two id which should match and I want the Image: [] back. This is my structur. { "_id" : ObjectId("5ee4e57a6e5a926bdeb1e406"), "Display" : [ { "_id" : ObjectId("5ee5b7db9245084840dc6...
8f7c23e8c8e59c10438ac503363935dd6b6098215c1ccd1a9d61611e5f22f73f
['9e533a32ccb94b05ad418b9a4e463967']
I want to create a Grid with 3 columns and * rows. The problem is something with this row.appendChild(col); element. This work 2 runs or zero runs. There isn't an error, I tried different browsers, I haven't a clue. Can a buffer overload or a memory got overfilled? var Jsonstring ='[{"Imgname":"http://localhost:8080...
6e38de8018cab4b4a72490090014bdce2f01490eef8064183ed67376b3c6a5b0
['9e6cbfd024a94a13a296334de6ebe905']
I would like to make a single facetted plot (lattice style) by varying the span parameter to the loess smoother. I tried using a for loop as below but no plot was produced. If I were to use the ggsave function, the plots are saved separately. In addition, I was wondering if there is a more parsimonious way to do such a...
d92d1ffe79ada4687cb1cadcd84da263b02e2f5c57f5b5c66b615f125133070e
['9e6cbfd024a94a13a296334de6ebe905']
I would like to generate a sequence of dates by quarter backwards from a given date (31 July 2015). Instead of getting the last day of April, I get the first day of May as below: > seq(as.Date('2015-07-31'), as.Date('2014-09-30'), by = '-3 month') [1] "2015-07-31" "2015-05-01" "2015-01-31" "2014-10-31" I also tried pa...
2ee1a160f43aa5d5ae0cebef351016c837c2ac72747400ec8e78f0671eec44d8
['9e74736714014773b34a56642cb525fe']
To anyone who is interested , i have a backreference to Recipient from Address. SO I was able to do this following m.CreateMap<SalesOrder, OrderDTO>() .ForMember(d => d.OrderBy, conf => conf.MapFrom(o => o.OrderBy.DefaultAddress)) .ForMember(d => <PERSON>, conf => c...
4351202f59ad116faca7cbbc40414d835ec081dfeaccf87bdaccae7aef9cd074
['9e74736714014773b34a56642cb525fe']
I have an angular app hosted by asp.net core as a SPA. I need to integrate it with SalesForce Canvas using Signed Request. I understand that Salesforce does a POST to the callback URL with the signed request body which can be validated (see here). But Angular SPA cannot handle POSTs. It can only handle GETs. Which am...
b69890532a67595a57b00bbd5f031f9e17ed34815e62fd8e6b0bd3d016d2fa17
['9e75b185f4c34c69851ea41225740a36']
The <pre> tag will interpret its contents literally -- so you need to add some spaces. <pre><code>somevar = array.join("-") somevar.split("-") puts "#{somevar} is cool yay!" if somevar.nil? puts 'it's nil!' end </code></pre> should become <pre><code> somevar = array.join("-...
425e4e5e3dc2810b0cc56020f2f57566a3d48cd55b1fe1436523b2a2925a7cd0
['9e75b185f4c34c69851ea41225740a36']
Thank to <PERSON> feedbacks, I have rewritten the code as the following: def grayscale(image): return cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) def sobel_xy(gray, sobel_kernel=9, absolute=True): sobel_x = cv2.Sobel(gray, cv2.CV_64F, 1, 0, ksize=sobel_kernel) sobel_y = cv2.Sobel(gray, cv2.CV_64F, 0, 1, ksize...
c92a2df2126c90ba2ac46fc2a1d5560167a8e8228a54288850fcf53fd0e9184d
['9e793e78ffea48e3b324e6e88bac0405']
The Chow Test which is also incorporated in AUTOBOX actually dteremines if any of the parameters have changed ober time. If as you assert the last 2-3 years has a different ARIMA structure than the prior periods AUTOBOX will suggest data segmentation. If you want to pursue this feature contact the folks from Aautomatic...
25edeb09ee336a67ea0ad7d39bdf509ff62753af2cb2814326ff6f35318fdc83
['9e793e78ffea48e3b324e6e88bac0405']
If you knew a priori that certain weeks of the year or certain events in the year were possibly important you could form a Transfer Function that couild be useful. You might have to include some ARIMA structure to deal with short-term autoregressive structure AND/OR some Pulse/Level Shift/Local Trends to deal with unsp...
4e37c9c21448c1004176ce3a7a093b773df03fd916f5f396d10eb7988685c6d0
['9e848e9304734beda1efdaa59c2e471b']
...actually, it looks like <PERSON> may finish about a full point ahead of <PERSON> in the popular vote, which means this poll was off by 4, not 3. So in theory a similar poll that had her winning by 3 points would have been **twice as accurate** as this one (off by only 2 points rather than 4).
14dbd46e811b18e2fdb842325419b8f284a75714e7b2ce2ccc8f907345442b48
['9e848e9304734beda1efdaa59c2e471b']
what i want to ask is, how does calling a binary from script cause crash? Also I am sure my binary is called by script as I can check the core is created due to my binary. so please suggest what are the factors created difference running a program on a shell prompt and running the same program from the shell script ?
1c0980e41a39523f62465f6748f5974fcd1762f1152a85cdcd2a8317502bc73d
['9e84d5f5895141cf995c9697a1ce2e4f']
There are a number of things that could be wrong. Usually this error occurs when there is no .htaccess file present, or it's not configured correctly. (Keep in mind: if you new host is not running Apache, then you're not dealing with .htaccess altogether) It might also be that mod_rewrite is not set. First thing to try...
cfd2bb99d4bc0b57f9d602c62ec294082f9d8b8f2a1acc14da6a8126a398aae0
['9e84d5f5895141cf995c9697a1ce2e4f']
I had the same problem, and I noticed that infinite scroll does add a page number to each block that it loads. So I peeked at infinite.php to see how it's done. Basically it looks at the query to see which page/block we're on. Then you can set the counter properly, like so: $counter = $wp_query->current_post; $page = $...
ccce0bf5964945738fcc82a7df3dec6b0905ed71c75d28d3e490b9efb106a968
['9e982edd58cd4fd89d50c11eaab99113']
I've encountered a problem when trying to define a recursive function which uses map over a zip. Here is a simplified version of my code, firstly one that works datatype bar = Bar "bar list" function (sequential) bar_lub <IP_ADDRESS> "[bar,bar] ⇒ bar" ("_⊔b_" [30,60] 60) where "(Bar ts) ⊔b (Bar us) = Bar (map (λ...
e7e0fe31af515fede45850854f2a72281488861afe13cb8daf3099fcfd8757ed
['9e982edd58cd4fd89d50c11eaab99113']
The most immediate way of doing this that occurs to me is to set up a datatype for you modal language datatype fml = ..., and a satisfaction predicate sat :: ('w ⇒ 'w ⇒ bool) ⇒ 'w ⇒ fml ⇒ bool, and embed the logic in Isabelle. This is (essentially) the approach taken by <PERSON> and <PERSON> (<PERSON>'s Honour's Thesis...
8010ccd0073ff36f0bd2c6b18e87bbe48cd7c1830514d0764e7dda90b9c70812
['9ea31598257d4de69de287de0b919e2e']
I'm also new to Lucene.Net, but I do know that the Simple Analyzer omits any stop words, and indexes all tokens/works. Here's a link to some Lucene info, by the way, the .NET version is an almost perfect, byte-for-byte rewrite of the Java version, so the Java documentation should work fine in most cases: http://darksle...
2a70ce26a12a0b3fee59d394d1d53bf60e3228a40c5df3262b45533ae5636111
['9ea31598257d4de69de287de0b919e2e']
<PERSON> is right. How are you defining your URL to call this ajax script? It should not just call a file, you should use Wordpress `add_action` for your ajax function. So in js file make your call to WPs admin ajax URL and set data to your function name like `add_action('wp_ajax_my_function','my_function')` keep in mi...
3c922a843f408c57e8a803714df9f22f04da8182aa2f4d3be0f470a6f960c2c0
['9ea53812a92c46629dc3a4471c20435c']
I want use DialogBox in Adapter, when start application and click area of my mean shown FC error. My Adapter codes : public class newSMS_card_adapter extends RecyclerView.Adapter<newSMS_card_adapter.ViewHolder> { private static String[] mDataset; static public Context context; public newSMS_card_a...
d536ac04e821ece3197bcfe565b3b5d90d32f4e708356ec68fb1b75c55a2cdb6
['9ea53812a92c46629dc3a4471c20435c']
i what use ImageView and set images from server, i use Volley library for connect to server and fetch data. but when start Application and scroll items, show FC errors. my items has RecyclerView , CardView and custom ImageView. My Adapter codes : public class DataAdapter extends RecyclerView.Adapter { private fin...
9228c915ff8864c05ba3ba33afe9e386ed0ac856b1b89055a5e942c0d8892744
['9ea62417b0374e2fb678e71dd1d140c6']
Workaround for this problem is to place canvas into other panel which respect parent width like StackPanel: <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal"> <Canvas Background="Black" Width="1600" Height="35" /> </StackPane...
c5de9a097d3df82ce587a915bbd91d552d82f1fcf89d298af51193f07ed192d5
['9ea62417b0374e2fb678e71dd1d140c6']
I think in Stackpanel instead of setting Height you should set MaxHeight and VerticalAlignment property value should be Center instead of Bottom and that should do your work: <DataTemplate x:Key="TileViewDT"> <DockPanel> <StackPanel MaxHeight="40.5" DockPanel.Dock="Right" Margin="5,2,5,2" VerticalAlignment=...
332462de44d58ea7260520baeb54d2363d68923f201803ee6ffd40151314f912
['9ea7483f232b4381824429699eb8bfe0']
Prova 3.0 http://www.prova.ws is nearing completion. It is, however, not just another Prolog but a mix of programming styles, particularly, useful for easy bi-directional Java integration, reactive agent programming, integration with ESB's, workflow logic, and event processing. This version is a complete rewrite from z...
718706a0af0fde0edf709941355ed9f83d745112ebbf7ec81d1ca0c3d43ddff2
['9ea7483f232b4381824429699eb8bfe0']
Two other interesting projects to note related to coding in Abstract Syntax Tree's is Tree-Sitter which is now a part of the Atom text editor and Github. It parses your code real-time into an AST. This allows you to do some very interesting things, like something the creator of it calls "Extend Selection" where you can...
1260fec4087494e4125bb42a16c9654d308dec11989cd7512ced04ae33a9ac4c
['9ebbbcfe97ec4130927e5c7c9b8e5ae6']
I am using a GcmReceiver with a listener that extends GcmListenerService. In my onMessageReceived method, I want to download a remote image (using Picasso lib) and once the image has been downloaded, post a notification to the user. Code: public class MainGcmListenerService extends GcmListenerService { @Override ...
44852ee4709f9bbd3c67174aab2bdc4a370093f7f8a59a498674070ba0dbd762
['9ebbbcfe97ec4130927e5c7c9b8e5ae6']
Once a minute I am running an update to my sqlite database using core data, by making a web request, parsing that request, and updating objects on my managed object context. The JSON data returned from the webserver is stored in an NSDictionary: NSDictionary* dictionary = [NSJSONSerialization JSONObjectWithData:operati...
abd092cd3c318fa1096afe4e4090887622df8ff7fc38f8cba46aace92291b9a2
['9ebeb4a9eeec418599874cf4deb0ac5f']
I need to get index of from array of objects without using loop as per the key name using PHP. Here I am explaining my code below. $arr = array(array("name"=>"Jack","ID"=>10),array("name"=>"Jam","ID"=>11),array("name"=>"Joy","ID"=>12)); $key = array_search('Jack', $arr); echo $key;exit; Here my code does not give any...
95b38f15abb12976792fe6b472b46bdb4f43a6028b2496168bfdb7686af4f503
['9ebeb4a9eeec418599874cf4deb0ac5f']
I am getting the following error while using aggregate method in mongoDB. Error: Error: <PHONE_NUMBER>:14:33 - MongooseError: Callback must be a function, got [object Object] at new MongooseError (/home/anil/Desktop/new/EdQart_Project/local/edqart-store-setup-api/node_modules/mongoose/lib/error/mongooseError.js:1...
40a1e5b58e5738a7ab879df391e1d5c0a6ec20dbff4e380387f77d063e408675
['9ec4ee165c9846b4a2d189d362f648c8']
Here is the description of te function I am supposed to develop...give a Money instance that rounds the monetary amount to the nearest coin (e.g. NICKEL). In everyday language we would say that this method (function) gives back change; however, it does not change the calling object itself but rather, returns a new inst...
20b93b6489ff54159d277a3b880a025152a8bc718ce199268bf02df59d8e5a70
['9ec4ee165c9846b4a2d189d362f648c8']
Trying to print out a polynomail i.e 10x^0+1*x^1 and 9*x^0+1*x^1 However the polynomials print out as 10x^0+1*x^1 +9*x^0+1*x^1, here is my for loop equation for(int i=0; i<=p->deg; i++) { if (p->coeffs[i]==0) break; //dont want to print out any 0 constants cout << p->coeffs[i] <<" * " << x << "^"<<i <...
aec39d9f7ee24ce9f47c70dabae53016e226172e51d73375c1dc515c2a809942
['9ed6868c50e2436caa87fde7f398c9da']
Individual made a (second) mortgage loan to another. The loan has been in default for many years. The bank (first mortgage holder) foreclosed on the property. The individual lender received a partial lump sum payment of $20K. The total loan amount was roughly $280K of which $150K was principal and accrued interest ...
010b05f8ef74ba74c797bbdfbf10a138370ccf3ed97fcd52c9fda40c00327924
['9ed6868c50e2436caa87fde7f398c9da']
It appears, there is nothing wrong in what you're doing.. but there could be multiple reasons of why this is happening. you could check the values of each one of you variables (Users UserID). and note that tha contain function is case sensitive.. so also check the spelling of the name.. if you can provide the results ...
9fc5dc717c540e51852430ab3183a47904a2d935dd634830a0f53c69cfa80bb2
['9edc8780fe9b4364babf098a79d71b24']
As outlined in this documentation, the google-accounts daemon in compute-image-packages creates users and home directories for all users in the project that have SSH access after booting the new instances (these accounts are registered as SSH keys in the Compute Engine metadata). The google-accounts daemon repeatedly p...
e07397a0bac5d0867ae24a2b25bec09924efc8ca768bf6ca9a7ea6053a69782e
['9edc8780fe9b4364babf098a79d71b24']
You can change the Cloud Storage bucket/folders used by Cloud Dataprep for uploads, job runs, and temp storage by making sure you have created a bucket in your desired location, selecting the icon which displays the first initial of the account owner's username located in the bottom left corner, then selecting "Setting...
47687e49ee6266a3afb1cf573182f9d70fb918fbb43635b78f6ca3871d1e13c1
['9ee67f09974143dcb1dd9963432e8634']
First of all, sorry for my english :-) Second, I want to run and debug my Spring application in a docker container. The container with the application starts up without any problem, I can reach the app from a browser. I'm developing it in IntelliJ IDEA on Linux Mint and I would like to retrieve the debug informations ...
4d7e27655e359899e7bf8ab3fa31c669b25300c60bead5bf873b4d910430c9ff
['9ee67f09974143dcb1dd9963432e8634']
I think you need the client-go informers. Here's a good tutorial about them: https://firehydrant.io/blog/stay-informed-with-kubernetes-informers/ You can create an asynchronous event listener for the Pod in which your containers are running and then when one of a container status is change then the pod status is change...
9435a901c98f942c21c8f36eeec458f491d1644839784bf75ffecb809e430bc4
['9efa5747691441cc86e3dcc1b6c839eb']
If you have VPS or Dedicated server on bluehost, try this manual from Bluehost FAQ: https://my.bluehost.com/cgi/help/2383 Pretty sure, that you must manually import database (as it not included to git and can't upload automatically in mysql) and configure again wp-config.php. Also you don't say, what server you using w...
3b4216fb2e3569a3241e5817743568a3874ae709040d819fad32a4d9c264de96
['9efa5747691441cc86e3dcc1b6c839eb']
I am trying to update title of wordpress single post via admin-ajax.php. Everything works great when I am directly load http://mysite.url//wp-admin/admin-ajax.php?action=myactionname * but when I am trying to load it from frontend (single post), variables doesn't send correctly. I am using Wordpress 5, Php 7.2, Nginx I...
f7df5ecfe35e7d66c835f99cd88051b760bd5abddcea4969b074b149c3fe61b6
['9f22e827ee5e43df8d9983842e1226d4']
I am reading about index of the Hodge-de Rham operator d$+$d$^*$, for a compact Riemannian manifold $M$, and its equality with the Euler characteristic of $M$. In the proof, which is an easy consequence of <PERSON> decomposition, there is usually stated the "obvious" fact that $$ \text{Image}((\text{d} + \text{d}^*)^2)...
aa270a4c32757198a1ab9337120fd32fb48a12129298c04fa4457c1dd8be1114
['9f22e827ee5e43df8d9983842e1226d4']
Am I correct in reasoning that, from <PERSON> decomposition in the form $\Omega^k =$ d$\Omega^{k-1} \oplus $d$^* \Omega^{k+1} \oplus H^k$, the Laplacian must act as an isomorphism on d$\Omega^{k-1} \oplus $d$^* \Omega^{k+1}$, since $H^k = $ker$(\Delta)$, and so, its image is indeed d$\Omega^{k-1} \oplus $d$^* \Omega^{...
ca7b553ecd7bacecbf820678310d19bbaa8e4eed777fc6aebeb7313494016005
['9f28d926b08e46f480858af8b2648214']
I solved this in a two-step fashion. Formula for calculating elapsed day of fiscal year. Formula for calculating fiscal week based off of elapsed days of fiscal year This formula calculates the elapsed day of the fiscal year - for my purposes as of April 1. You'll need to tinker with the month value as fit for your ...
65883acb042d2823ff206b2e2d412b6355b5fef32ab70eaa0923d1c76df03830
['9f28d926b08e46f480858af8b2648214']
05AB1E, 3 bytes <P< Try it online! This is of course only assuming that the greatest common denominator of the inputs (exchange rates) is 1, because otherwise this number is not well-defined. Explanation: The number we want to compute is called the Frobenius Number and can be calculated with the formula \$\operatornam...
64dec32dd7105f90340e79ff5f8fd238789ce84dd2115708c06afdcd7e56915e
['9f2b9ec319c141e9b8ef1f325f4344a8']
There are a few ways to do it: Redokun https://redokun.com (disclaimer: I’m a co-founder) Export all the sentences in an Excel file, translate them and then reimport the sentences into the InDesign files. Otherwise, there are a few (paid) tools (InPagina come to mind, but there are a few of them). There are also some ...
68793c0c1c040ccbf1e096ac695b232f7e68bbd3602c1df674243b310aa843a5
['9f2b9ec319c141e9b8ef1f325f4344a8']
I think you can use any digital camera with good amount of pixels (12 should suffice). You also need to make sure that the object is fairly lit in case its steady, or well lit in case its moving. Also, I don't think you need to take two different photos if you want to make use of the interactive zoom feature on the web...
6a276371cf13cbcb8580aeb7ec2371a8744daddf2bfb1e246fefd119eea5957b
['9f363158a25a41b8bc8da7c5636210ba']
As far as I understand, the whole trick is in the not-so-intuitive behavior of gamma and that it affects the value of option based on actual volatility (the 1/2*gamma*market_change^2 term). [This article](http://investorplace.com/2010/01/long-gamma-position/) was also quite good to explain the mechanics. And as [volcub...
f82ad9ec2a9fe57104d5b249cfae90d29eab5065d7dcfc377a66b431c4ae5552
['9f363158a25a41b8bc8da7c5636210ba']
I would like to do something in R that SAS can do using SAS's proc mixed (there is some way to do in STATA es well), namely fitting the so called Bivariate model from <PERSON> et al (2005). This model is a special mixed model where the variance depends on the study (see below). Googling and talking to some people famil...
496cd4622427c246751014c69e94c1424d61003809911a91403ec3a0bb32e1e3
['9f3c92688bdb46398e0ddc7b7b473aab']
I have written an application program and what to get notified in this application if system date or time changed, the same way if user presses ctrl+c then OS sends sigkill signal. My requirement is to know if date or time change take place at any instance of time. Dear friend, Can you please suggest me any technique t...
de229d52095394de94d41c005ea52c7fab78b3105a91261070255383125cf4ad
['9f3c92688bdb46398e0ddc7b7b473aab']
I know that we we call an overloaded function, compiler tries to match exact prototype and then goes for type promotion. But we it comes to return type, compiler does not goes for exact match and throws error. I am not sure the logic behind it. Dear friends, can u please help me here? Thanks in advance to all
245c050116fcb76c4c38a04c0073b53ee702338eaf4b962a155b7f69d20c163f
['9f3e872137a342a893f30131b5f44f50']
I understand and I agree with your comment. I will update and complete my question in the following days. This is not part of a problem sheet or homework, I was studying and wanted to prove the general case, which I couldn't find in the textbook I was following.
81d9209df9d5e536480881a5e44c5e8abdca46f13a1b72ea11dd590b41b18401
['9f3e872137a342a893f30131b5f44f50']
Given a Hilbert space $\mathbb{C}^N$ and the reduced dynamics $\Lambda(t)$ of the open quantum system, we can define the set of asymptotic states as $$ \mathcal{A}=\left\{\tilde\rho \in \mathcal{S}(\mathbb{C}^N)\,|\,\exists\rho \in \mathcal{S}(\mathbb{C}^N)\; \text{such that}\; \lim_{t\rightarrow\infty} \Lambda(t)[\rho...
11d029174a5aabc009becef30a136b252d5cca7a756b1f44e960e41eb6e5c439
['9f41eadbf7b84bc39714f65317b60f3c']
Just wanted to know how I can make a div with more vertices just like the picture below: Is there any way to do that with css or JavaScript? What I wanted to do is to add a text inside this orange shape, so the image that is on the top left area doesn't overlay the text.
8267bf3b39abca0cb8beec479ef717d72e56474b15d4555946367eb2443c4d44
['9f41eadbf7b84bc39714f65317b60f3c']
I was making a new code where my objective was to make whatever key you press make my little "truck" go forward. I was trying to do this by adding spaces to my string, which was my truck. String truck = "<o><o>-<o>~|#|¬"; truck = new StringBuffer(truck).insert(0, " ").toString(); System.out.println(truck); I...
3e0e7b80cce0aa21a516f900461feb329ac636c2f65a427f35087cefef8cca8c
['9f737b6b173446f99e05e69cd578815b']
You can embed your data in the XMP tag within a JPEG (or EXIF or IPTC fields for that matter). XMP is XML so you have a fair bit of flexibility there to do you own custom stuff. It's probably not the simplest thing possible but putting your data here will maintain the integrity of the JPEG and require no "post processi...
ab9337a38e06f4aed7e66f5d1f7ed07700b1501490a6f7ad503d2dc53221b0f5
['9f737b6b173446f99e05e69cd578815b']
If you know the taxonomy name the plugin uses, you should be able to use the_terms pretty easily. You could basically plop this in between <?php foreach( $images as $image ): ?> and <?php endforeach; ?> where you want the terms to be displayed: <?php the_terms($image->ID, 'YOUR_TAXONOMY_NAME'); ?> If you want to get f...
3cd1c1281bc0aafee27b92c36607baa50bb31219870976f84d8f60550ca20694
['9f7d94d9a4f644979557e0062c6defdf']
The best way to do this is to supply the ViewController to the view as a delegate, conforming to a protocol you create for it. For instance, if you UIView is used to pick an image, then the delegate should have a method akin to: (void)view:(UIView*)view choseImage:(UIImage*)image;
5749634f9f589d475c58492964821c1d8da2de9aa57a6668b102bb971d1621d1
['9f7d94d9a4f644979557e0062c6defdf']
Assuming you want to catch the exception inside of MyBuffer<IP_ADDRESS>xsputn or inside of MyBuffer<IP_ADDRESS>_Xsgetn_s, you could wrap the code inside of the method in a try-catch block. In my own custom LogFile class I inherit from std<IP_ADDRESS>streambuf, and redirect where the ostream goes, using cout.rdbuff(...)...
d7ce1ac57c42be31716172ced8281508243d1c4a49c8bd927bd9f15fa6fcbf06
['9f7ea843fe594bb39a8768549651a460']
Thank you! I thought this would do the trick when I first read the description...but I cannot figure out how to compress a folder back into a CAB. My intention was to extract the corrupt CAB, replace the file that I suspect is causing the install to hang and then repackage - I don't think I can repackage a folder of fi...
2622660c2447df7fa64bd478036abf935dda70311c272c5f985393d9fc8ae54b
['9f7ea843fe594bb39a8768549651a460']
I’m trying to learn how to play the Pokémon tcg and can’t find an answer that makes sense online. My opponent used Cinccino’s Fluffy Tail attack, which does 30 damage, and also puts the defending Pokémon asleep. Without a slew of cards that can wake up my defending Pokémon, I don’t understand how to defend against this...
f106172e7d4dd0952f37f6855088c21e2172b4296414ce420f8d3a545f141b6b
['9fbc5385e665443cae50db0f2d1cecec']
You can share the Spreadsheet directly with another user (needs to have edit permissions), that will give them access to the script (macros are stored as scripts). So a user with access to that same Sheet will have access to the macro you made. If you want to only share the macros (in a way that can be reused in severa...
a6e147277d4cc2075f7a1f2ed598344487f04efead7798b1d4ccf11d790c5dbe
['9fbc5385e665443cae50db0f2d1cecec']
There does not seem to be a way to directly state that you want to set the response to "other". However, you can do it manually, and it shows how the pre-filled URL is crafted. I wrote some code (below) that will grab a list of items in a sheet (range B2:B4) which are supposed to be the responses to be pre-filled in "o...
c8ca166eebcc25029f1e9606b65e7a3bf5456c56ef615b35c06b5e2dfa66593e
['9fe03da1e0284dbdac841cace10c8977']
I am using Java with framework Spring and Liferay. With liferay I know how to get a locale (object where there are some information: language, country...) but now I am in a java class without conection with liferay and I don't know how to get a locale object to get the language. For example, I have the next method in a...
91198ac2b598bfd72b10a84793eaf4574bc30806de55b627912279d702348579
['9fe03da1e0284dbdac841cace10c8977']
Environment: Liferay 6.1 In my liferay-portlet.xml I have this cron job: <scheduler-entry> <scheduler-event-listener-class>com.shorex.b2b.web.billing.IndexJob</scheduler-event-listener-class> <trigger> <cron> <cron-trigger-value>0 0 6 1/1 * ? *</cron-trigger-value> ...
6144ab5d937d16ca7aef2f878e74300761ef3adce9c3ae8906f840a4f98624fe
['9ff964bb5be5442ca83fe9ed6cf4fde8']
Добрый день! Мне необходимо реализовать сервис event broadcasting между бэкэндом и фронтендом. Соответственно, необходима библиотека с этим функционалом. Поддерживающиеся из коробки Pusher и Redis не устраивают по ряду причин. Подскажите, существуют ли альтернативы и если да, то можно, пожалуйста, ссылку на Github этих...
d74019378a02ca7858b0c000f1ad585c603d185371a9a7225fa8012a033850cf
['9ff964bb5be5442ca83fe9ed6cf4fde8']
You're putting on a lot of answers that they don't answer your question it might help if you said why they don't answer the question. Its worth noting that the monitor is not required by law to display what the software asks it to. It could for example change every third pixel to green, or invert them. So the reason th...
d07abad0c324c4d8d3c11fc67105308d9474d3d6ce8e8c3b58c88dc4d5ebddcf
['9ffe22ba80b8475d8d09b6c64fdde3cf']
FaceBook's SDK doesn't allow that.. they've implemented the oauth login method so that the user don't need to give username and password to the application, user directly input the credentials in the web view and get authenticated via the fb servers. But in response app receives an access token which it can save and an...
3577e1e5d83ecaca81ff5941f26233ff1f0135d44077f9ee5393c0d10298c358
['9ffe22ba80b8475d8d09b6c64fdde3cf']
I wish to create multiple instances of UIView so i figured instead of creating new variables i'd allocate one UIView and then reallocate it again to create another UIView. Is this ok? Plus am I releasing the view properly or is the retain count of tempview is 2 after 2 allocations and a release just brings the retain c...
4e01594686beda0ae91bee22d28a8e08d0621239b71cdb581f1e1b01af68fe93
['9fffa1d93e8c4b7283c6384a509ba1e6']
I want to test a read from file and a write to file functions. My problem is that the functions don;t have any parameters. Until now i've tested this kind of fucntions only with the file as parameter. I've looked through other questins and found these: How to unit test a method that reads a given file, How to test writ...
cec8c09ced1506883b697791cd98bcd55d5657e57847f83110206feb9bf5900b
['9fffa1d93e8c4b7283c6384a509ba1e6']
I have a final exam in databases and as I was solving some sample questions I came across some problems. I have a many to many relationship between 2 tables. Player PlayerTournament Tournament ------- -------------------- ------------------- pk id_player ...
1596b27b3c69d81fbfa0e2269edb320071ad3ea3bcde1422cd33306184de03eb
['a008f3f173c74dd592328f10d51b640c']
This is related to an earlier question I had asked about what sort of middleware one can use for developing a client/server app. Among the options suggested, I was intrigued by zeroMQ and its capabilities. Since morning, I have been researching on using zeroMQ for my application. However, since my client is a Adobe AI...
2602ec034ac70b2bfb611c3b7c7e14e3d8dd0b99dd5b94bfff7c3f2907720fc0
['a008f3f173c74dd592328f10d51b640c']
I am developing a client/server application for which I am evaluating a few options for the communications layer. As part of this communication framework, I am contemplating using google's protocol buffer (PB) for representation of the transport data instead of re-inventing my own binary structure. Now coming on to the...
d972834fda30428e398c2b923dc7977c8d2531f0f33793759dbbb305eabfdf68
['a0252daa9eca438296b03ecbab0f9da0']
Found out that this behavior is by design. OpenLDAP has a global setting that controls the minimum length for a substring index. The default minimum number of characters that get indexed in a substring index is 2. If you use online configuration (OLC), you will find the description of the setting in man slapd-config: ...
9fde6b49389f1b8a824f9e502a047eb58a26422f2a14c6e2e517f0ad161edd97
['a0252daa9eca438296b03ecbab0f9da0']
I assume you are using the least square method (in linear regression) to find the best fitting straight line through a set of points representing the given training data. You might define s as being the error associated to $y=a_0 +a_1x$ by: $$s = \sum_{i=1}^n( y_i - (a_0 +a_1x_i))^2$$ You goal is to find $a_0$ and $a_1...
602aa31f34520b50b8dcf14a8b3f37fc58b5f8593ca40383eeacb629f15e18d4
['a0292c49b2914789ba829869e2e40b47']
private void Enable(TextBox temp, String system) { if (File.Exists(temp.Text)) { Properties.Settings.Default.system = temp.Text; } else do something here; } Basically I'm trying to take a text box with some file path, check if it exists, if exists se...
4eb9f60416e6c4772518ab5789c44cc9cb91283221bbc50948bcd7d6d8aba511
['a0292c49b2914789ba829869e2e40b47']
Thanks to <PERSON> for getting me started and getting me thinking about this correctly. Ended up scripting it out manually without using RoboCopy or Xcopy as I could not get them to work exactly how I wanted to. $target = "C:\\TestTemp" foreach($item in (Get-ChildItem "C:\\OriginalDir\\This" -Recurse)){ if ($item....
ca7a8dd6b97eda774d8dba312c68cffdd00d2291b9e1b86c5da8cd063c00810b
['a038bdfef61542acbd411af615abd2e6']
You must check application pool identity settings. Make sure your web application's appPool Identity is set ApplicationPoolIdentity and Managed Pipeline Mode should be Integrated. Then check your web config system.webserver modules and enable this configuration on your application web config. <system.webServer><module...
1f58b4ee235c81f088d77dfca4043a9524cc692599179e4a10a7d5c73a022e33
['a038bdfef61542acbd411af615abd2e6']
You can use jquery class selector instead of Id. if you give all transactionLines the same class name, you can access hover event for all transactionLines divs. So you dont need foreach by this way. transactionLine1 transactionLine2 ... <?php echo "$('.yourClassNameHere').hover( function() ...
f6e80fd611f342b8fe2fe4824d92271745ffca2a66c7b603c4814ecab716eaae
['a0472c14d16a43e9825b7e951eb36031']
I just spent some time figuring out this issue as well and here is the solution that I found is most clean and uses Magento's XML-style abstractions to add the image column to the catalog_product_flat_1 table: In config.xml: <config> <frontend> <product> <collection> <attributes>...
cd7acfbf51f51867144afaefdb6422039feb0062a2c1536bc554e9d244eb02bf
['a0472c14d16a43e9825b7e951eb36031']
Try adding complete and error methods to the ajax call. This will help determine whether you are actually receiving a response. For example: $.ajax({ url:"<?php echo $this->getUrl('product.phtml') ?>", dataType:'jsonp', type:'post', data:data, success:function (jqXHR, textStatus) { alert(te...
d40a72109df70125af4c2eaaa11dac02872613f5e562f197b80db7874296fc3a
['a04bfc033e3846f1aa9cb2ce6a33d180']
Its just the cache problem. Just follow these instructions:- Press Ctrl+a then Ctrl+C then delete your all code of file and save the file. Now just refresh your page. After refresh press Ctrl+z and save the file Now again refresh the page and see the results. It Works...
3577a682354a23b6c47681919f488fdc0e3c992b39caa4f473b2bfc275897044
['a04bfc033e3846f1aa9cb2ce6a33d180']
Paste that code in function.php function show_last_modified_date( $content ) { $original_time = get_the_time('U'); $modified_time = get_the_modified_time('U'); if ($modified_time >= $original_time + 86400) { $updated_time = get_the_modified_time('h:i a'); $updated_day = get_the_modified_ti...
14fa3fc98c43cd9e8b0e2f376f9b4747ed57b347e617b687332d044e633e219a
['a067c4d8f43345f19344301844126e6a']
I'm using Oracle Database with UTF-16 encoding. The diacritics is correctly displayed when using directly cx_oracle client. Connection statement is like this: cx_Oracle.connect(username, password, conn_str, encoding='UTF-16', nencoding='UTF-16') However, now I'm building bigger application and I would like to use SQLa...
b7a22567593c262315aaaf38bd82149f86d12e0988ec282071eaf315e01f661b
['a067c4d8f43345f19344301844126e6a']
it's a litle bit off-topic question but the answer would really help me. Does anybody know the release date (year) of the first Pydev version? As far as I was able to find, I got year 2004. Is it correct? (I need it because of my Diploma Thesis)
dabeeb5839716df72c9cbdfa715d793ea281db79897c4fc4e7e0091d58c98177
['a06fdd592b224c8a9716b44661d514b7']
document.write("<table>"); document.write("<tr>"); for (var i = 0; i < rs.Fields.Count ; i++) { document.write("<th style='color: #009900;'>" + rs.Fields(i).Name + "</th>"); } document.write("</tr>"); while (!rs.EOF) { document.write("<tr>"); for (var i = 0; i < rs.F...
711966c9bc509e961758b409255349b1c3292c8562e5d96e9c914d1bc565e6f5
['a06fdd592b224c8a9716b44661d514b7']
i have a codeunite i want when i run the codeunite the SoapUrl of my pages which i published as a web service show in a message; my published objects Object id = 50000 and 50001 i just want to display SoapUrl in message. below is the code i tried . Var WebService : Record Tenant Web Service; Run() WebService.Fin...
98f9143d70822ed7a28b42c50b1c025e1091cda4bbae248109ed95682c2d2616
['a07d9f79cdfe4f9fb3e70696c575515f']
My question is stated in the title. I have a need to specify the content inset for specific rows. Reason for this is that i have to make a layout in which the first cell of the first section needs to occupy whole width of the screen, while first cell of the second section needs to have insets of left: 8, right: 8. sna...
a24aa03bdab7570393f6206b2621a0730ab521bf043b85f8c8ce2472491707c8
['a07d9f79cdfe4f9fb3e70696c575515f']
I've managed to find the solution to this question by: manually saving position of a header in: func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { let cell = collectionView.dequeueReusableSupplementaryView(ofK...
a7db4e44351ceb1a553be4eeffb810a33d2a49d844d552f27c2a852228c0d66d
['a07eac58277d44d199b10d45823b0eb5']
I installed mongodb ( windows 32, storageEngine=mmapv1), it was working fine, I already created several DBs, inserted documents and collections. Surprisingly, when I was trying to connect today, it kept saying connect failedand emitting errno:10061I can't understand why. It's probably worth noting that last shutdown wa...
877494e6144e5097be5d5296794e8b9729e4cc815cac5f4c4a078051cb78e35d
['a07eac58277d44d199b10d45823b0eb5']
I'm trying to apply SVM to my classification problem. I have an issue with SVMClassify. old_data=vi(5:10,:); newData=vi(1,:); svmStruct=svmtrain(old_data,groups(5:10),'Kernel_Function',@KFUN); newClasses= svmclassify(svmStruvt, newData); newClasses vector does'nt have same rows as newData matrix. I just can't understa...
c08ec0fcc9f273cbf12516966d2bee176071ad2be3918df56ab7905cb78fccfe
['a08c31b568ae4a17858f98256d9a354b']
Hello i just started using flux but it's still confusing me. so i have a component named CoursePage in this i'm rendering courses and authors and they are fetched from the server separately, then i created two stores CourseStore and AuthorStore. The problem is i want my component to subscribe to these stores. so is the...
126fdbb4f794b75c38e25deadd6505c5d81d6e8734fae558a104fd630ffa6d74
['a08c31b568ae4a17858f98256d9a354b']
first of all you need to import these function in django.contrib.auth from django.contrib.auth import authenticate, login """ from django.contrib.auth.models import User don't need this import since authencate will directly check if the user you trying to authencate exist in the User model """ def logi...
806b44366708176c3eab55def24e3e19eed8845602856010352bf2e4c2d6a697
['a096d8c154484ac4be0114c43d1148e6']
Due to the rollback war between OP and editors (FYI: the edits were beneficial and should have been kept) I have rolled back to the acceptable version with some modifications and **locked this post** for a week to let everyone cool down. No more activity is accepted on this post in the interim until the lock expires. ...
6e5c9f29268fc0ea38e15f483d50186259840009f911bab81ecdc338e4341680
['a096d8c154484ac4be0114c43d1148e6']
@user447607 Then all you can do is wait - I would share the link, here, in a comment though so we can link to the existing bug in this answer, in case people want to status-check the state of this bug. (Note that if this were a Python 3 program, the error wouldn't exist, because `str` is Unicode by default in Python 3...
149b962601e26bdf88bd05b450f90b0224f52d3139903572c19336632ed1e8e5
['a0a008025fb043d1b6fe32052aee77aa']
So, I spent some time trying to achieve this and I have found that this setup works so well that I have decided to post it here in case it can help someone. The integration with PyCharm (pro) works so well that you don't need any linux box or shell or ssh tunnel. PyCharm can see your WSL instance, it will automatically...
5df9af238e57415affc4ce19dbbc8cd5f6cb105c8ca4a33de669f140fae96331
['a0a008025fb043d1b6fe32052aee77aa']
First, a small word on how I have generated the event objects. To make a reliable integration with the others java applications, I started from the JAXB event java classes used in the solution. I have converted them into schemas using schemagen and then converted the generated schemas into python classes using pyXB. Th...
b5454bcd3b7ccaf9293b6670ed47995eccf1c0dba1d94a2255afab966e9682cf
['a0a05c5056a242e4933c95e5e9125dad']
I need to delete a folder from a blob container in Azure storage account. The folder structure is as follows: container -> failed -> profiles I am connecting to the container as follows: CloudBlobClient blobClient = StorageAccountManager.getStorageAccount(ConnectionString)); var container = blobClient.GetContainerRefe...
e498c378e5178e66d29daf7b560ea3600baf2afa68baa12e2464be4dd16b970f
['a0a05c5056a242e4933c95e5e9125dad']
I am trying to gather all the possibilities through which I can import the data occasionally to OMS in Azure from Azure SQL database and Azure App Insights. The only possibility that I could find is using the SQL Server connector for importing data from SQL server to OMS and using Application Insights connector for im...
5e26870e49b2f1eb2b67586bdac19c35f57c0dfce6d68f1e2653c41321768b44
['a0acfd45948a44fda485ce230bf15eea']
I've a big calendar table to provide a overview of a planning. I want to always scroll automatically on windowload to "this day", which col has the class .today. I've already tried to work with JQuery scrollTo, scrollLeft and animate, but nothing works. The table always start automatically 3 months before. (Now in July...
86e3f8eb736e999542bf5ef74bc46d148989591922e0fd17f31f94efa37976c5
['a0acfd45948a44fda485ce230bf15eea']
I'm using node.js and pdf2json parser to parse a pdf file. Currently it is working with a local pdf file. But I'm trying to get a pdf-file through the URL/HTTP Module of node.js and I want to open this file to parse it. Is there any possibility to parse/work with an online pdf? let query = url.parse(req.url, true).qu...
245d81214e8059f2e3f108c31428733eaa60020e5ea9444b23ed85d3e72790dc
['a0b6b74c15b54a11b44617a470c35877']
I am trying to extract some information from this site using beautifulsoup. I am familiar with extracting tags by class/attributes, but how can I extract the url from "tr data-url"? import requests import re from bs4 import BeautifulSoup url = "https://www.amcham.org.sg/events-list/?item%5Bdate_start%5D=07%2F05%2F20...
d23d11ae4b990eda9e5fa64c4f586a6e34d1cf769e34fb9c7cffbbd8010c7965
['a0b6b74c15b54a11b44617a470c35877']
How can I extract Commission I, Legislation Committee, Ad-Hoc Committee from tr? <tr> <td class="text-center">1</td> <td class="hidden-xs"><a href="/en/anggota/detail/id/1319"><img class="img-responsive" src="/doksigota/photo/1319.jpg"/></a></td> <td><a href="/en/anggota/detail/id/1319">PROF. DR. <PERSON>, MA</a><br/...
21940538458021b418dc096558bcab5fe6ae2685f638b93609d6f7cbff8cc940
['a0be02fc62ac41ae92b98aab97589cf9']
We had the same issue with our project because we compress the response and remove comments. One workaround in order to avoid using a <div> or <span> for your foreach is to define your own <ko> element. If you do this, you will need to include the following script for IE8 and lower support: <!--[if lt IE 9]> <script...
dbf2cba520d3b073ebaf1dd78671b36c241882bc8d110fad67c0b076ef557f35
['a0be02fc62ac41ae92b98aab97589cf9']
I'm designing my 403 page and I can't seem to obtain the 'reason' string which I am populating on various forbidden pages to give a more relative response to the issue at hand. If I type ${response.reason} in the template, the whole page gets replaced with just the text of the response.
177a8470f5b9cf29c87cc2e3215a1b62512d2101c40e3a541dda1f3c1e945b6c
['a0eec2477bb2423388d8314617244cba']
I fixed this problem by restarting explorer.exe. I think the issue I ran into was that I edited %PATH%, but explorer was using a stale version of it. This will also happen if you already have a command window open when you edit an environment variable: the changes don't reflect in the window that is already open, only...
61fe265c8d48735d97dbb3f98fe7282dec8307c5a4f9f96af4cfb6f894ae6e08
['a0eec2477bb2423388d8314617244cba']
Пишу тесты для компоненты которая использует CKEditor. TestBed.configureTestingModule({ imports: [FormsModule], schemas: [NO_ERRORS_SCHEMA], declarations: [DocumentEditComponent], providers: [{provide: AppConfig, useValue: appConfig}, {provide: DocumentsService, useValue: documentsService}, {provide: ...
52e72a413261f69d3b443df8cfadcd1672d9aef0e2da96d91366136020cf11e6
['a0f6bd70ecc84c0c97f8be0ce6d6829d']
I have a Linux server application that is using Kerberos for client authentication and client that needs to run on Windows. Kerberos tickets are issued by Windows Active Directory. Client authenticates successfully on server if I use MIT KfW 3.2.2. API for retrieving AS and TGS tickets from Kerberos server and store th...
d3672e0c3edfa69cc4bc662090fb83dd41ac3e5a8163daaf514064b3a5e1f94e
['a0f6bd70ecc84c0c97f8be0ce6d6829d']
In c++ I am trying to build a portable server running on Linux and Windows and client running in Windows that will use MS Active Directory for authentication. After some research I decided that best way to go is use Kerberos. I decided to use MIT Kerberos v5 library due to BSD style licence. But my problem is that I am...
de8d141a58d99ff8e0a610680578cc04b6a116fa579aa8281643124e03fcbd15
['a0ff40ad34284b05a5e4dca40bea1f6a']
We were giving a this program in class and asked to try it our at home but it doesn't work, I'm guessing there is something wrong with the algorithm. Can someone help me out? import java.awt.Graphics; import javax.swing.JApplet; public class rotationalTransformation extends JApplet { int[] x=new int[3]; ...
bb7c0496e924dd41b598736edb8b586bf7c76f1858f31e53ddcccb555f8d13e9
['a0ff40ad34284b05a5e4dca40bea1f6a']
We have been trying to create users in our Cognito User Pool but keep getting a rather weird error. The stack trace looks as follows: { "errorMessage": "Not Found", "errorType": "UnknownError", "stackTrace": [ "Request.extractError (/var/task/node_modules/aws-sdk/lib/protocol/json.js:48:27)", "Request.cal...
fafe10589dad288fec7324c08d2f0a647eba8f1d08574128968ca8b65829104b
['a100ac15c27b4ed5b0fe9404ee24fc4e']
I am using Silverlight 4 and have a datagrid that allows users to sort the rows. On the sort column event the SelectionChanged event gets fired and the initial first row in the datagrid is selected. Is there anyway to not have the SelectionChanged event fired or is there away to have an onSort event to set the select...
7fb2b221ba1bd609ad36da47047af41c48199fddf3192ff2de05987d5d4c02fa
['a100ac15c27b4ed5b0fe9404ee24fc4e']
Hi <PERSON> my life saver! It works! Somehow I have never thought of GUI tools when it comes to Linux (bad perception). However, after installing the driver labelled as "proprietary, tested", it popped out window saying “The system is running in low-graphics mode" (as in http://askubuntu.com/questions/141606/how-to-fi...
eb2db1df1215b66dce536c3cd62568c3faca6f17bcab996cc6e786e633ec1831
['a1514393051f4955a52c3f19c03956e4']
I want to say thanks to those who came up with suggestions, but I went the lazy way... I downloaded and installed AutoIt, and managed to make a reliably working exe with it in less than 10 minutes... still using a continuous loop to check for a change in display resolution, then--when it does--run a vbscript I'd alread...
fbfda625039fa54f9324041072c66603734f0063b46520f7f34877b2fe11585c
['a1514393051f4955a52c3f19c03956e4']
I have a laptop that has both HDMI and VGA connectors; my TV is connected to the HDMI port (set at a resolution of 1600x900), and my desk monitor is connected to VGA (at an old-fashioned 1280x1024). The GPU does not allow for both external ports to be used simultaneously, so I end up having to switch between the one an...
4c64b8ac18d402c31236c84703cfc5b36d5cfc798de8759dd6b91f8084baf66c
['a15d402e01af4bc7a81cfe0212f9656d']
I am writing an add-in for Word using the JS API. My requirement is - do a search for a string, highlight the matching ranges (using font.highlightColor) - so far no problems. But I also need to keep track of which ranges/texts have been highlighted, so that I can later programatically remove the highlights when the us...
35ce705281e5cdd61074ed43234ec6f8278a79cfba29080bfd5dd177377ab278
['a15d402e01af4bc7a81cfe0212f9656d']
I am trying to add a new member to a MS Team, but I cannot get it to work. It adds the new member to the group, but that's where it stops. It does not add the member to the team object. This is what I am doing: POST to 'groups/' + groupId + '/members/$ref' with the right data. There is no error. It updates the group wi...
fb7bd6d2569f1ff74da417569b9caba8d421896b4c4993f00d8f9516a618ba0e
['a164f8eac9994d5998ebdd13a7bf1b55']
I am trying to use Font Awesome icons, the problem is that the size of fa-bed is 0X0 though the other icons are displayed properly. Here is my html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title></title> <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <...
b2698e4003f7d1090cb519b1d2249ba9702bf37df347a2e3427419f0e05c44cf
['a164f8eac9994d5998ebdd13a7bf1b55']
I am exporting some data to Revit via API. The problem is that the result when having more than two elements meet at the same point is incorrect. I have tried to edit the faces or the edges of the elements but it seems that they are read only and cannot be edited. How to pass the correct geometry (faces & edges) to r...
939cc6e8e9090a2aaf4a4588cfbb8f6ae6305126ffb3b413a88eb91ebe447a21
['a16dc8d7d7b640629e95e9c574c0a504']
I would say: depends on what kind of architecture your app will have and how reliable it will need to be: AWS Load Balancers does not provide instant (maybe real-time is a better word?) auto-scale which is different of fail-over concept. It works with health checks from time to time and have its small delay because it...
6a07b90488649d19fb49b4cd240cfff69dd70c4ff02fde47d87a66d1dd13cc83
['a16dc8d7d7b640629e95e9c574c0a504']
I'm currently trying to require ace-builds (installed from bower) with webpack. Since it's a huge lib, I'm adding the whole folder to noParse option. I'm running webpack with -d option on terminal. The problem is: when my code tries to require it, it is an empty object. Also, it's not loaded by the browser. Here are so...
3e07c2663e52124e4b21b909a07e7e13a7faa5dbbe0bee8b3ddf4fb5c99c5647
['a17404f1596a4bc6a5ffb8d1fda0ef24']
I implements an observer for a model's datas; I have 2 activity, that share that datas. In my first activity I set the model like: public void refreshValue (String id, Data data){ ConnectionModel.getInstance().updateConnection(data); In the model the updateConnection is like: public class ConnectionModel extends Obser...
e21db28b139d0f31b23c03418f5164328a865ce85bc2415fea91a45da660687e
['a17404f1596a4bc6a5ffb8d1fda0ef24']
I'm tring to download a pdf file inside a android web-view page. The problem is that the Web-view don't support the blob-link. So I made a JavaScript interface, suggest by this answer @JavascriptInterface public void getBase64FromBlobData(String base64Data) throws IOException { convertBase64StringToPdfAndStoreIt(ba...
a27269d5070f4b976cfda8c14f3b75a79d6be0754674f623f383ff6454dc2275
['a17b45d0b4e042d0a4e0beb43a1cb1ee']
Two straight line are at right angles to one another, one of them touches the parabola $y^2=4a(x+a)$ and the other touches the parabola $y^2=4a'(x+a')$. Show that the point of intersection of the straight lines will lie on the straight line $x+a+a'=0$. I tried to solve this problem, I find two tangents of two parabolas...
3f629d3b81937809aa06c84b5b14124e784ad014cc4c6b171cae5ebe914cafab
['a17b45d0b4e042d0a4e0beb43a1cb1ee']
I'm trying to install a software which comes with a shell script to install, and I need to run this in su because of some drivers it installs. When I try to run this shell script with sudo: ➜ lab sudo ./xsetup _xsetup: cannot connect to X server And this is the error message I get in a dialog window when I try to r...
f56521eb7df92132c9277c756d60927dfdd79b7887459fe4e20a415f70ccae7e
['a17e57cc4e8d4fcca05fad33a6ddde58']
I have a USB camera here that I am very familiar with and have worked with for a while. I can capture "still images" in OpenCV and with Gstreamer without problems. However one of the use cases for this camera involves a button on the camera itself to capture stills. The camera has a "still pin" which I have wired up a ...
f69804daedf73db1d6ec74f66ef42b848c3f56c4398548830848ae96202b3234
['a17e57cc4e8d4fcca05fad33a6ddde58']
I have read all of the related questions with no success trying anything mentioned anywhere. I am new to cross-compiling and have been working on this for over a week with no progress. So please forgive me if you think I am stupid or have overlooked something. So I have an application running in C++ that works great on...
990d8fe1e298ecd20b0a2e45105fffc691961a4499b6a613508b21bc4195e230
['a181ad01fa6343b5a12238cfb8dad830']
We know that if M is an R-module, A,B,C are submodules of M and C is subset of A then $ A \cap (B+C) = (A \cap B) +C $ What if we use $ \oplus $ instead of +. Is it true to write that equation again? Or should we add more things to make it true for direct sum? Thank you for any help.
4d3e023ab3d541a30917a91d379ab26ed8f652766aec5730a1b881909e43ebe5
['a181ad01fa6343b5a12238cfb8dad830']
For modules we can say "External direct sum is associative and commutative up to isomorphism." If we are using internal direct sum I think we can say it is associative and commutative (They are equal not only isomorphic). Am I right? I tried to prove and didn't see any problem. I mean I can say; Let A,B,C are submodule...
d2cc0e0a40d341a73e8c1eb0573309b8a9488ce74707c6c3a1affbe5e63477f8
['a18aef9e5f32452abb663bb824601ef1']
I would start by looking at your UV map. If you try using the color grid or UV preset textures (when you create a new texture) you should be able to see if your UV map makes sense, or if it's causing the issue. If the UV map is the problem, you can probably just UV unwrap your object again. To make a flat UV map from a...
18ad9626f3edabe730134b4b1ad4779f57e779b4fa348ae06370033ca6ec16a1
['a18aef9e5f32452abb663bb824601ef1']
Guys, I am not a DBA, only a SQL developer. I am just asking all this as it's been going on for quite some time. Thanks for your comments, I will try to respond to all of them, even though for now I find it hard to follow (and it all seems pretty obvious for you). What is MP?
13e688229852cc25394afc587022119aefd8471745e50ab837839405d7f4db62
['a1913eab5bf34e9384e5252fb2433861']
set following in service model <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" /> <services> <service name="SyncWebServices.Service1" behaviorConfiguration=""> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basichttp" contract="SyncWebServi...
1daad420b50007e2aab62cb61bf938a9921766e24eb7bf703e771408a0f75bb9
['a1913eab5bf34e9384e5252fb2433861']
hello i find out solution by using following i can get actual difference should it proper or not please suggest public static DateTime ConvertToTheaterTimeZone(string TheaterTimeZone, DateTime Date) { TimeZoneInfo est = TimeZoneInfo.FindSystemTimeZoneById(TheaterTimeZone); DateTime targe...
a5d700e2efb5d4e826baf76331b91a735beb7d59f0a853141a1eac7d11c55b32
['a19580f5196743d0aa002d2c1139a623']
Kotlin code for sub data class like ImagesModel also parcelable used data class MyPostModel( @SerializedName("post_id") val post_id: String? = "", @SerializedName("images") val images: ArrayList<ImagesModel>? = null ): Parcelable { constructor(parcel: Parcel) : this( parcel.writeString(post_id) ...
6947edd13e96b6e0d9195029650a923ee74abee98176125cf91eeafe4c84e352
['a19580f5196743d0aa002d2c1139a623']
Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface. This error showing in my app and might be problem of extension is not proper in Image URL. I have using the Glide library to load image and showing th...
4eb937478b9f25a57ecf7a2d1adef1a59e6ed6020c4006eb5b8025e4b7dd1d3f
['a19c1082435e4018830b293e95f9817a']
there isn't a cpu temperature applet in the default list of panel applets, but there are applets to control cpu temperature in the repositories. I use one called cputemp or something along those lines, and I have both that and the cpu frequency scaling one installed on my panel as my cpu seems to overheat pretty easily...
67198acc253cb4dd269c8e41c7560c616e6c68378886ceec6a706499e3b95c9b
['a19c1082435e4018830b293e95f9817a']
Your university may have specific guidelines as to how your thesis should be formatted (this is VERY common, actually - please consult the appropriate office at your school so there are no surprises). My university has the following ordering: Title Page Abstract Dedication Acknowledgements Contributors and Funding Sou...
ea01a7dd1c9ef51c2224a2750030e5a6c932ac7e51bc3d711c0007d61f08c32f
['a1afba0a563e4895a6af826e8a597cc8']
You could use the Column mode (ALT + Mouseselect) to select only the part (column) you want. This could be tricky if the product name length is very unequal. An other way would be Find+Replace with a clever RegEx. Thats what I would do in your case. As the product name is the first column, deleting everthing behind the...
7594d15adf8a1fefd622b018486912b55dff3c96b4acc28f4c2d8b161b8ecfda
['a1afba0a563e4895a6af826e8a597cc8']
In a script you can do that like: for line in ${ods-ksmutil key export --zone 231.72.212.in-addr.arpa --ds | grep "8 2"} command ${echo $line | tr -s " " | cut -d " " -f 5-8} done That requires that the IFS is set to the newline character which it should be by default.
04271726a15cc142bde26b11af5ea0b89a77fab832d6f20e2ec2fb6f63a10a3a
['a1d4bfba62f844288687d3f681745ca3']
You should build your code with -Wall flag to compiler. At compile time it will then print: main.c:9:15: warning: ‘coord1’ is used uninitialized in this function [-Wuninitialized] This points you to the problem. coord1 is a pointer type, that you assign to, but coord1 has no memory backing it until it is initialized. ...
0f89f781b87f0b3588dfbb01d1cf8ddc3bb3f13563e55fcaa214976ccd85f4d0
['a1d4bfba62f844288687d3f681745ca3']
The following works for me with a gnome-terminal in Fedora and vim7.3. Select the text you want, for instance using visual mode. Press Ctrl-Shift-c Then enter ESC followed by :shell Once in the shell press Ctrl-Shift-v If you also grab a newline when you copy it will execute as a shell command when you paste. A side ...
a9ccbdfd01fba1f6bf0f7d7a19f18afef8c73fd84723589760e3618125e86157
['a1d4e5bbbf4b4d7cbf2fb3918f737859']
I'm trying to use rpmbuild to do the following. I have a prebuilt project, about 100 files in a single directory, as a tar file. I want to create an RPM which will bundle those files, and when installed on a new machine using rpm -i, will unpack the files, create a directory under /usr/bin, and copy them into there. Fi...
5c4d1cd8c2b50f40965080aa634884d3ea7d3fdee11516854bf8a8aaf10fc000
['a1d4e5bbbf4b4d7cbf2fb3918f737859']
I have want my .Net Linux service to start a bash shell script, which stops its parent service, while the script continues. This can be done on straight Linux easily, with nohup and &. It can be done in Windows .net, by writing a stub .exe or script which starts the persisting script, then stops its parent. In that ca...
4ab8cc62810bb1b3c821ab018e9edc268124a65860cb776a11603a606204590d
['a1e256f9c0c4430d9707b2a1ca153a1c']
Yes, I think you can use Oracle APEX with Oracle XE for corporate applications, you can also use Oracle APEX Listener as your web server. The only problem would be the hardware limits imposed on the XE edition: "Oracle Database XE can be installed on any size host machine with any number of CPUs (one database per machi...
8a2666428746207a523d72a095f0586d4582b54a47539bf05c60dd2d5aa6a3f5
['a1e256f9c0c4430d9707b2a1ca153a1c']
Given the following source code: namespace EventThreadLocal { static thread_local std<IP_ADDRESS>unique_ptr<std<IP_ADDRESS>vector<EventInfo>> Stack; static const EventInfo* Top() { auto stack = Stack.get(); if (!stack) return nullptr; if (stack->empty()) return nullptr; return &(sta...
6ef4c1874d2adfe4bce1ce179b8c45fa021e5a43a063c0449c0da2a4f8e7b9c3
['a1ed709944834fab9f8b30db57d54777']
I believe I got it working the way you want :) The problem was that you were not checking the current class dynamically after change. Updated jsfiddle here. $('.points').click(function () { if($('.points').attr("class") === "points first") { $('.points').removeClass('first').addClass('second'); $('.ten-point...
a06f8e6430ff49d33632141deba96ccb8f4e1148641f0f03030f1361cd265e20
['a1ed709944834fab9f8b30db57d54777']
How to get the amount of the free quota in my applications local storage? I need to get the remaining storage amount in bytes, kilobytes, megabytes or in percentage. Also it would be nice to get some visual display of how much free quota I have in local storage. Thanks! Edit: Please note that this was "answer your own...
04e415394b0ed0a182f9c3ef811f09d6100821fbfd46c7e31b0f0fba023ff245
['a1f4099b33d7485b8d15f893bb3cc2ea']
I'm following the Extending QgsTask example to create a custom QgsTask. However, I don't want it to display the Task Complete notification* every time the task completes successfully. Is it possible (preferably using PyQGIS) to suppress the "Task Complete" notification? * In Windows 10 at least, the notification appea...
a3f13bd73b20224fe36f42c75466ab0e6be22fad1b9597d62b8ecf5ffd962027
['a1f4099b33d7485b8d15f893bb3cc2ea']
I have a button in a QGIS (3.4.1) plugin that should: create a new project; set it's CRS to EPSG:4326', then import various maps. However, when I run it for the first time after QGIS has loaded, the maps are show with their own CRS of EPSG:3857(confirmed in the bottom right of the GUI). If I click the button a second ...
b631ebeb6bef47dee549fdaa78883bd4ac1518685ae34978e31062d43eca61d5
['a1f40aabf8604b60b5a7f8e9d60b2825']
Variadic option. It prints «foo!bar!baz!foo!», as expected. enum class foobar { foo, bar, baz }; void test() {} template< typename F, typename... Fs > void test( F Foo, Fs const&... args ) { switch( Foo ) { case foobar<IP_ADDRESS>foo: std<IP_ADDRESS>cout << "foo!"; break; case foobar<I...
641f19658703cee09ff02ae2ea51e19794e75c6f042752cdc101fd5283f14da3
['a1f40aabf8604b60b5a7f8e9d60b2825']
To me this looks like a compiler bug: do you really need side effects from T{}? The whole construct of decltype((void)T{}) should discard zero-initialized T, allowing unevaluated side-effects — so what's the point of such side effect, if there are any? If you simplify it by just using void, or even omitting the whole ...
a525f1707faa68000635d3bbcdd6287066b6e8f262ac75455fcd28265b4756ac
['a1fd895033b84495bb810cf0cf3bf37c']
I have a binary mask that originated from a piece-wise smooth curve. Each underlying curve segment is smooth, but connections between segments may or may not be smooth. The mask is noisy so it might contain several pixels around the underlying curve. Image below shows an example of such input: I want to estimate a fit...
91e78af372cfc7fc64c440021a5753e7b2a3348f09ec185808344ae60213eaf9
['a1fd895033b84495bb810cf0cf3bf37c']
I'm working with Matlab R2015a on Linux (Fedora OS). The Matlab Editor shortcuts are defined as the default Windows shortcuts. Some of them work OK (for example: ctrl+c , ctrl+s, ctrl+o) but some of them don't do anything (ctrl+F3 for searching the next appearance of a selection (while strangely Ctrl+Shift+F3 works OK ...
4b2cc63c71a39af98793dc8ebc35ec63db8ab40ffe195ce25c80250b3b3a66b0
['a20a7aa2d6b74149b899cdf7f10082c1']
You can go along two ways: import numpy as np M = np.array([[1,2,3], [1,2,3], [1,2,3], [1,2,3], [1,2,3], [1,2,3]]) mask = np.array([False,True,False,True,False,True]) true_locs = np.where(mask)[0] # set True to False in the mask mask[true_locs[2:...
c71d7da1aadbef76c81aa007b376ff8416c6b3bb2a12430b08ec3e98b5eea822
['a20a7aa2d6b74149b899cdf7f10082c1']
If you read in a csv-file, you can use the multi-select widget to select the columns you want to show: import streamlit as st import pandas as pd # load csv uploaded_file = st.file_uploader('upload') # into dataframe df = pd.read_csv(uploaded_file) '## multi select' cols = st.multiselect('select colum...
2249f9302bf5ec3d2b045c2ca6c55d2385cad3ce0fdf561a9d7492a0f9e0520c
['a20cc0f24d9d45f2a3ba8e7333ea6521']
I try to get URL with inAppBrowser in ionic 4 for my instagram api. I build PWA and smartphone applications. . Why loadstart event does not work when I build in PWA ? I've already tried to get with in app browser plugin for ionic4 and with javascript (window.open() method). In app Browser work when I build my IOS app...
355e9c9be353edeaf4d7bd50eeb0750bb6aaf539b45bdf9b6593d0db4d99d74d
['a20cc0f24d9d45f2a3ba8e7333ea6521']
I had a bug with symfony, I had to reinstall my vendor folder and since then I have a bug that I cannot fix. Argument 3 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in C:\wamp64\www\br...
c8f9436c96206b2ae30a0815f46c997c510c5599d9cdefd91a431fa9fb6a10f3
['a210162a87c64bad90ec66d24ec8f6e5']
If you want anybody (anonymous) to be able to access the Blob - you can put them into a container whose Public Access Level is set to Blob. The documentation here shows how to do it through the portal and through code. Then to share the URI of the Blob, use the CloudBlob.Uri property.
1b3430f01a4b22f67b7016ec64f444bcf8a138e8869707b0fbb82a7f093da5e4
['a210162a87c64bad90ec66d24ec8f6e5']
I hope I'm not missing something here... The URL you're using isn't the one that generates tokens for the Text-to-Speech API as documented here. (The "Oxford" that's referenced in your URL refers to the Project Oxford which Cognitive Services was formerly known as.) Also, WebRequest is deprecated. Use the System.Net.H...
9f9bf0dbff18da4a95aafdabb908433823ed2d6c30e4db38d6154dcdb0abb144
['a21de59467a24a09ad4d5df9a7e3669d']
If you have gmail, I recommend using the Gmail interface but also be sure to find the right extensions. Offline mail has been mentioned, but look to Checker Plus for Gmail This extension will make your experience better as it polls your accounts every few seconds and provides live notifications saving you the trouble o...
7fed6793edb2f7e23bda3b47ecef60c1d3e28d9c800a20a457c59302fb23145c
['a21de59467a24a09ad4d5df9a7e3669d']
I'm not sure what those numbers mean. Pending sector count errors are caused by sectors that need to be remapped ([http://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes](see this article)). As far as dealing with this, first you should update the disk firmware. This might stop the errors, but the prob...
7e61858da750abc98b90ea71150b176c70160467b8e0340f09d6e5e8ce3eed07
['a2255fb2e6a947c0be53fddbf9336fe9']
Помогите разобраться в теоретических вопросах. Я внутри своей компании разрабатываю ERP-систему, которая позволяет аккумулировать данные с производственных цехов и анализировать их. В качестве архитектуры системы я рассмотрел много вариантов и увидел, что многие системы реализуют так: MVC - CORE WEB API - MYSQL Правиль...
eaf10938e24834afd37d29ce53b809c075d4cff1e117aff539cc8421f833031b
['a2255fb2e6a947c0be53fddbf9336fe9']
Есть 2 объекта, одним полем которого может являться List. public class pDataStruct<T, O> { public String Name; public T Tag; public O Object; } Например полем Object такого объекта может являться List или просто bool. Как грамотно перегрузить Equals или сравнивать объекты по значению полей Tag и Object. М...
c0c125998c33ca55480031d8549572a36b937ecc4dfd9d093c5f04bd50ef968b
['a22cd0540a784131998b55afbb400fe0']
I'm trying to build a ROM for my phone (Xiaomi Mi A2 Lite) with SELinux enforcing. I've booted the phone successfully in permissive mode, however in the enforcing mode the Wi-fi won't work and SystemUI restarts every few minutes, displaying "Phone is starting..." instead of the launcher screen. I used audit2allow to gr...
759e40a4f1e2082041d3a5f0d36629f502cd7d730044d4e423317d81a7e831d5
['a22cd0540a784131998b55afbb400fe0']
I'm trying to solve a problem with SystemUI's dimens.xml on my Pie-based ROM (it happens on stock as well). Currently, when a notification arrives, it looks like this (the notification icon is basically cropped from the left side). The only thing that solves it is reducing rounded_corner_content_padding and status_ba...
30d00b822ffb52dd9d0d7b6894f37883d24cff5b5df4ecadd5e562bfc43596d1
['a22f52cbffd84325bbc1f1c236ea471a']
I have this function called numFunc(), which produces a numeric output. I want to run this function 5 times and get the sum of all 5 outputs. Here's what I've tried function total(){ for (itr=1; itr<=5; itr++) //run the function 5 times { var numF = numFunc(); //store the output from the function in a variable var ...
501338afa923ef240f5616dc6d9671b52e160829d8bfe5c583721eb5def7871b
['a22f52cbffd84325bbc1f1c236ea471a']
I have this code, where I run parseString()to extract some information from an xml file function parseTime(){ var parser = new xml2js.Parser(); var data = fs.readFileSync('C:\\Temp\\tasks\\acis\\110-1100.sat\\110-1100.sat.response.xml', {encoding:'utf8'}); parser.parseString(data, function (err, result) { var timeSt...
f5b1602f755ce2a8e42a70b63a0d381dd7b3018fd070fa2e51397afdd202434d
['a235f604ea364fb681680f41e97b45e6']
I am trying to delay validation of an custom textbox component. I only want to validate the input on blur. The existing component does not use ng-model inside the input but uses the ngModelController inside the controller of the custom component like so: <input type="text" name="name" ng-required="true"/> Can I still ...
a1e6d118b971d1d689913a7ec2cc3ac28c5e9f2f708930df469d384a7a433ef0
['a235f604ea364fb681680f41e97b45e6']
I have a page of photos where I want to allow the user to click to enlarge that specific image into a bootstrap modal. How can I dynamically add each specific image to the modal on click..my html looks like this: <div class="container fishing-picture-container"> <div ng-repeat="picture in fishingPictures" ng-if="$in...
63cb5155440eff5732207bcc9650c1230b9c55d108a03b0873b4e425202080af
['a239ca839f5d44b3b6c1bf3cbfdb23dc']
I've encountered the same problem and found a git repository of Azure samples for their computer vision service. The relevant part is the Camera Capture module, specifically the Video Stream class. You can see they've implemented a Queue that is being updated to keep only the latest frame: def update(self): try: ...
647e8135f69666f9350ef21206fd26d08fe49bb7c9e452aa6cddf0111af88d5e
['a239ca839f5d44b3b6c1bf3cbfdb23dc']
I'm running an experiment that include text documents that I need to calculate the (cosine) similarity matrix between all of them (to use for another calculation). For that I use sklearn's TfidfVectorizer: corpus = [doc1, doc2, doc3, doc4] vect = TfidfVectorizer(min_df=1, stop_words="english", use_idf=False) tfidf = v...
4479ea2c50e0e4e79eb3a0c4c9e4d52003138949e0337614f29c54a288e430b9
['a25683b99655436284a60077d96e8220']
i have this link in a form : <input type="file" class="multi" accept="doc|jpg|png|jpeg|tiff" maxlength="1" name="optionPhoto" id="optionPhoto" /> But if i want to upload a image i always want that a specific folder is opened. for example : libs/uploads/ Now it depends when last folder is opened.. Any way i can do th...
b00156ba2e16bf563c712417d258c68445ff2593ebc8adebd8afc3ffcf58983d
['a25683b99655436284a60077d96e8220']
Oke after reading the documentation again http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html The ParamConverter only seems to work with request paramaters in the url for example a {id} parameter in the route. It converts the {id} parameter to a object so it is required to have...
09c3031aa28f624f5b0fa06d202d33a6a40e9a5e4ff76513c4960e060a48897b
['a261b63dde7d40cbb05f5d0cb540eb6f']
I have tried changing the color of md-select underline with the following css: md-input-container > md-select { border-color: rgba(13, 148, 74, 0.82); } but it doesn't work. Here is the html which contains the md-select which I want to customize: <md-input-container> <label>Items</label> <md-select ng-mod...
2e42cd6288e780bfe557db60b5339f9b87271c226c47b38d461ed99113b07906
['a261b63dde7d40cbb05f5d0cb540eb6f']
I was wondering if there is a way of writing the appended function in a shorter way. The only difference between the code that's executed in the conditions is whether the datetime will be set to 00:00:00 (startOf('day')) or 23:59:59 (endOf('day')). This small difference led me to believe that there must be some way of ...
61d7df908df37c73ad9b8268fb1048f6fdbdc359c985c7fa311b08270edc0797
['a262ce7c3a714f1d80830a16ccd316d5']
I would like to know what kind of data type this is, so I can decode it in PHP: {s:31:"xperience_achievements_you_have";s:20:"You have %1$s points";s:26:"xperience_award_drawnin_of";s:69:"<b>%1$s</b> drawn-in of <a href="member.php?u=%2$s">%3$s</a> on %4$s.";s:26:"xperience_award_issued_for";s:68:"<b>%1$s</b> issued fo...
185acd02a84ef1b97138d65c9e0a6338d8146378b2e07707a068bf736ab8c63c
['a262ce7c3a714f1d80830a16ccd316d5']
I had an issue where some of the above answers worked, but added a visible new line at the bottom - which was unacceptable, because the box had a background color. I fixed the justification with the code below: jQuery: $(".justify").each(function(index, element) { var original_height = $(this).height(); $(this)...
9795f169e23dc9b61818b77ea197541bc8eafbf66121a3ee7e3546ee27e1a58f
['a26b778c27004b8083fc660a0bc99b1b']
This works for me: <?php require ('facebook-sdk/autoload.php'); use Facebook\FacebookSession; use Facebook\FacebookRequest; use Facebook\FacebookRequestException; use Facebook\Entities\AccessToken; use Facebook\GraphUser; session_start(); ?> <html> <head> </head> <body> <div>Testing Notifications</div> <?php try {...
49ab6876cbef499e6809d70334c84f050948ffeec526c5997222d7e680b15244
['a26b778c27004b8083fc660a0bc99b1b']
Thanks guys! My approach: <?php session_start(); require ({your_php_sdk_path} . 'autoload.php'); use Facebook\FacebookCanvasLoginHelper; use Facebook\FacebookRedirectLoginHelper; use Facebook\FacebookSession; use Facebook\FacebookRequest; use Facebook\GraphUser;...
ce6084dcb3e9370a28455e29ad2521e49ad4411ec649f0510160cf15cfbec829
['a274bfd8269e400e9aa16fddae1b5efa']
I created a WebView which loads google.com as test. And at the bottom of the Layout ist a SeekBar. If the Seekbar is changed to progress of 2 it shall for example load another page like stackoverflow.com. If its progress is changed to 3,it shall load another page ( android.com) My existing code is the following. But I ...
31c8a08ef55616ffccfdd593bc318fa6daf97592a073442447644ee69034a9ce
['a274bfd8269e400e9aa16fddae1b5efa']
I have an Array of Websites in my code. I added 2 buttons with the id button1 and button2. They shall be used to navigate between the sites in Array. private WebView webv; private SeekBar seitenSwitcher; private String[] websites = { "000.htm", "001.htm", "002.htm", ...
b7d2261a753160d1cbdccb4437a410350f0f42e05962aaa3350f17957a016d23
['a295b3e88a1d4ed3a276bfdcb462838c']
I need bash script to count processes of SPECIFIC users or all users. We can enter 0, 1 or more arguments. For example ./myScript.sh root deamon should execute like this: root 92 deamon 8 2 users has total processes: 100 If nothing is entered as parameter, then all users should be listed: uuidd 1 awkd ...
8ee3cc4cf48eac3ce3a187bb942e8d99e293873e61d84c1a162f390c3277f978
['a295b3e88a1d4ed3a276bfdcb462838c']
I am pretty new to tries. I found some solutions on net, but tries are defined in totally different way. I need solution for this type of trie. What I need is function to print all words from trie in alphabetical order. As you can see, Insert and Search functions are done. Here is 2 header files, necessary for main co...
6dfe072a13766449a9064189ac4c17f3b5705cebb4be753b9475a31a82263707
['a2962e40bd3e479ca46f22e546d2cb0b']
parent component: import React from "react"; import InputRow from "./InputRow"; const Bid: React.FunctionComponent = () => { const inpVal = (d:string) => { } return ( <div style={{ display: "none" }} className="bid-container animated zoomIn" id="bid-modal"> <p>Mortage</p> <div className="bid-row-container"> <...
cc3b28025c079c603297f9cac167857779a57be32518ddfae8d936d6d9ee59f3
['a2962e40bd3e479ca46f22e546d2cb0b']
i want to animate div box from left to righ and right to left. suppose i have a 2 box with bootstrap classes`example : <div class="container"> <div class="row"> <div class="col-md-6 id="leftToRight"></div> <div class="col-md-6 id="RightToLeft"></div> </div> </div> now i want to animate #leftT...
78377ddf3520893dc365343bf935c7b8774d748a93d49dd170a54aef6c60b3e8
['a2b0b629a56e451cbea790d013b25046']
I Have a activity that opens the Camera by starting ACTION_IMAGE_CAPTURE Intent: Intent intent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); SimpleDateFormat dateformat = new SimpleDateFormat("ddMMyy"); File photo1 = new File(Environment .getExternalStorageDirectory...
a6ef94eed91a0d07049bd3e59ed580f7ea190df48b50585a0f25f98f28ebd6e2
['a2b0b629a56e451cbea790d013b25046']
I'm using Apache commons Net library for FTP in my android app. and sometimes when using interrupted network or 2G network it doesn't send/download the file as expected. I know that i have to check the boolean result of storeFile function in order to resend the file again and again...and sometime it sends corrupted fil...
da06130b09a167e4fb56b9dee541efcd901e3e60b4101794852a2d15da900ea5
['a2b0dc33821441ce8b2918dfb894d61c']
Numpy's diff() function does what you ask. Here is an example: import numpy as np a = np.arange(10) # this instantiates a numpy array containing values from 0 to 9 result = np.diff(a) # if you print this you'll see an array of 1 with length 9 If you want you can use slicing instead (I add this for all newbies, as a...
a39738abc55ea373874021ebec8bd4e289e1accd4aafd5177adca9e654d2321d
['a2b0dc33821441ce8b2918dfb894d61c']
The following is a common function to sample from a probability vector def sample(preds, temperature=1.0): # helper function to sample an index from a probability array preds = np.asarray(preds).astype('float64') preds = np.log(preds) / temperature exp_preds = np.exp(preds) preds = exp_preds / np.su...
a9e40c0428d8e6e97961292077ce586dbed58d69e0b1db55354c80ff38566414
['a2b61e0b5b7a4c23a9fc7cf60b7bb8fa']
This is so simple like if you are using hard values like setText="22sp.Now it might good your test mobile but good for every mobile screen so you have to create four folder **hdpi,xhdpi,xxhdpi,xxxhdpi** Copy the same file in these 4 folders and adjust it. when the app runs on any mobile Android framework automatically...
2795f403cc49c2609c81e34d072737ac7003c5b8fb3867cbca6c0494c51d5aa2
['a2b61e0b5b7a4c23a9fc7cf60b7bb8fa']
What I recommend you is to go to files and select invalide and restart (you will find something like that). If your problem has not been sort. Then uninstall the android studio but keep it in mind when you are uninstalling it only removes the setting, not the whole. The android studio asks you about this. So in this wa...
80429ad90c57c3eb91bc7294aa5475ae166cbe2b3766815d9193f4887f112193
['a2bd0474370547e4bf5c80e85e2f6ec4']
I thought this will be very simple but i think there is a bug when posting a variable from .ajax to a query. Is there any other way I ca get my result? here is my jquery: jQuery_1_4_2(document).ready(function() { jQuery_1_4_2('.mainfolder').live("click",function() { event.preventDefault(); var ID = jQuery_1_4_2(this)...
c07d3dd856cc2fa09a12416f80448ac957265fa52edc6ea002fdfd58ac8382f3
['a2bd0474370547e4bf5c80e85e2f6ec4']
I just want to list all elements inside a div. If i have: <div class="main_container"> <h1>Hello</h1> <span>Hi</span> <p>World</p> </div> I will want to have an ouput as a list of h1 span p To have an idea, I am creating a DOM tree for my simple code snippet in my website. Please Help. Cheers!