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
1dc45f25d2fdd94f558e36771905c9d1ac2b383398d625882fb5e3adf32d0820
['39c8d292c3c449728e1d943752920c5a']
UPDATE: Thanks to <PERSON>'s help I was able to do more research on the textinput() method and found the Python documents page for the method itself, here is the link for anyone who might need it in the future: [1]: https://docs.python.org/3.1/library/turtle.html#turtle.textinput
36a4a82206f58d72ea5fcc378dfd515d02e414a07c74eb921a7add37a24cc34a
['39c8d292c3c449728e1d943752920c5a']
I have worked on many projects (school projects, I'm not too advanced), and have found that in many programs where I require the user to input a value that is an integer, or decimal(float), I need to use a "try-except" statement, within a while loop, in order to make certain that the user inputs the required value type...
39aa01c1d1671847f4776b9081481adaa53fb6ea7e7ad04f3e632d69c6c04e7e
['39cc9ba1ec2b421c95fe4f4dd6d6e557']
In order to find the blocks of missing data inside a Series you can do something along the lines of Finding consecutive segments in a pandas data frame: s = pd.Series([1, 2, np.nan, np.nan, 5, 6, np.nan, np.nan, np.nan, 10]) x = s.isnull().reset_index(name='null') # computes unique numbers for each block of consecutive...
7e3bded2955321724f5330ec4d2f15975ca7aca9192a48ae8f2a17b50c5370bd
['39cc9ba1ec2b421c95fe4f4dd6d6e557']
itertools.combinations will help you: import itertools pd.DataFrame({'{}{}'.format(a, b): df[a] - df[b] for a, b in itertools.combinations(df.columns, 2)}) Which results in: AB AC AD BC BD CD Dt 11-apr 0 0 0 0 0 0 10-apr -1 1 0 2 1 -1
793be3c55a6e121ed7b356dc5b609c480c86c15148e56a048054259da3ed1dc8
['39d9b89e02204afabbcc27f4e722352d']
I am trying to use workmanager: ^0.2.0 plugin for the background process inside the flutter project. While running the application in iOS, it throws an error as below, But in Android plugin is working seamlessly MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/f...
32757e1e2b0701ddfcd730986b4d26f65c9afc3dec968844ed84dd67a1431f2f
['39d9b89e02204afabbcc27f4e722352d']
I am trying to integrate the Background fetch feature inside a Flutter project using Workmanager plugin. So I enabled the background fetch feature under 'Background Modes' of my iOS project Capability. But the following block is not added to project.pbxproj file. As I understood, it should be automatically added by XCo...
9aa7d40bb2389d5cf68a3568ce51859d8a2829d81a236db8fc60a4849f565137
['39dea284363a45519700526a6a6d258d']
This is such a basic thing, but I need pointers on how to set up the field widths so that the table prints out nice and neatly for all values allowed. I have been playing around with it for a while and am having troubles. Is there maybe some trick to quickly figure it out? Just a push in the right direction would be ap...
88e29ca0da7cffdda4db72d3863d8b91f86596d4929be5fa3b6eb4d26aa4974c
['39dea284363a45519700526a6a6d258d']
Trying to get the program to exit if any of the three if statements are true, but only after all three have been processed. I have formatted this a number of ways but I can only get it to exit after each statement, not after all three. So basically it will continue on with the rest of the functions even if two of the i...
a1fac958b4f5a1d53673aba76e56e213f7db30ac29f31a8bafb81f431b0d020a
['39e21ac672964fc9a7e0973e5aa34b08']
I want to create a dropdown(not a spinner) using gingerbread. I thought of using a dialog box without buttons.But since its a list i dont think that would be possible. Moreover each item should be clickable. It should be more like dropdowns in websites. To get the dialog box i have used.Basically i am moving the positi...
fc77b7c1ab8352516831c573fb0dc39fd4fa106d510439daee4d92bd7119c5cd
['39e21ac672964fc9a7e0973e5aa34b08']
I can open google maps from my application and have a pointer over the location i am pointing to. Instead i wanted to open google maps application from my application---- as is when user clicks on an address google maps application opens up with that particular point. for that i used startActivity(new Intent(android.c...
1f54e17cb0731ae8fd46c9b4df2e84330aaca5a44dc6e63c07a5de151475463d
['39e5d8687fec47eeae907ec592b31878']
I don't blame you at all for your confusion. It seems that he's attempting to scientifically demonstrate or argue something on the basis of electromagnetism, but his assertion is rather unprofessional; I've read many scientific research papers, and not once have I encountered one that appeared so paranoid about people ...
683c49c767166bb7293098b8d6e44b3bb3ca32660c949a7167ee6d15d9459b19
['39e5d8687fec47eeae907ec592b31878']
I have a very large data set (~300'000 data points) and a subset of it (6000 data points), which shows the difference of travel time [in seconds] of agents before and after a road closure. I want to show the difference in their distribution. However, the data set is so large, that the outliers are still so many and not...
515230905285d256473bd92d134a3311b8c3bbcf666b2280fbe29b55ad046411
['39ea5148eebf42019eb9c6ceb16f6e68']
<PERSON>, I was wondering if I have a circle C and radius r and centre o = (1,1), how does that change things? I have to find the radius of the circle C' (in terms of r) which is the image of C after inversion in the unit circle about the origin.
6ea70483dcd61202a58a306f858ae6e78b5c1c877923b290ca5a6a65635ea4d9
['39ea5148eebf42019eb9c6ceb16f6e68']
Write down in the form ${Z}\rightarrow{AZ+B}$ the following transformations of the complex plane: (a) translation in the direction $(2,-3)$ (b) rotation about (0,1) through $\pi/4$ I know from my student answer key that the answer for part (b) is ${Z}\rightarrow{AZ-iA+i}$ where $A=\frac{(1+i)}{\sqrt2}$ can someone exp...
bd3c0480636d6949edce78df50c723756d83e303ad6cb4f92cec18e176a80a29
['39f24012139c48b38634cbc5ca1cf800']
This happens because your data structure is an array of objects, and each one of those contains a field called date. To check if a specific date is in that specific array, you should do: <?php $sql = "SELECT date FROM wp_table"; $result = $wpdb->get_results($sql); foreach ($result as $res) if ($res-...
c323f0b0a388ed38f41f156a7ca29c042a53b0f781a8fc40687f4541511d356d
['39f24012139c48b38634cbc5ca1cf800']
I have a PHP project where I manage data structures (in a $data variable) defined like this: array:35 [▼ "2020-03-16" => array:12 [▼ "00:00:00" => 17.185 "02:00:00" => 17.235 "04:00:00" => 17.25 "06:00:00" => <PHONE_NUMBER> "08:00:00" => 21.205 "10:00:00" => 23.47 "12:00:00" => 24.42 "...
0a233716d3876ca0bd1572b94ed739f822956dd72854c9a08e9aafe6bfb32721
['39f36eb1bd9a4fbb916e1ce5562354b9']
Suppose there is a population of trees, and in each period, each tree faces a probability $p$ of getting cut down. If a tree is cut down, its height is reset to zero (it doesn't die, this is merely a setback for it); if a tree is not cut down, then its height increases by $1$ unit. Namely, if $h_{t}$ is the height of s...
8e3b92d515f64a6a68ef3ebad4abe856e55ed9175a4d4b4130ecd3869882e40f
['39f36eb1bd9a4fbb916e1ce5562354b9']
When considering the probability of 1 head, you have to consider the three different ways it could happen (HTT, THT, TTH), and so you have 3 times (0.6*0.4*0.4). You may want to look up the Binomial distribution for some intuition on why what you describe doesn't make sense, but consider what your logic implies about z...
25ea795ed695fd3000f4c3c71ab60e21784c1824fda1f9f75a6d398011ec4be3
['3a067e2afc054c91a7139a3e957d13d1']
The word dilemma has caused a dilemma. According to Oxford Dictionary (http://www.oxforddictionaries.com/definition/english/dilemma) Pronunciation is : /dɪˈlɛmə, dʌɪ-/ Which is di-lema or dye-lema. The website "howjsay" (http://www.howjsay.com/index.php?word=dilemma) also gives two pronunciations. I just don't unders...
a52dc7e8f49c63d5a8d696b726fbf94be2051ec755fa4c459283e498b9e925e2
['3a067e2afc054c91a7139a3e957d13d1']
I am trying to add a product with an image via the WooCommerce REST API but getting this error: Fatal error: Uncaught Automattic\WooCommerce\HttpClient\HttpClientException: Error: #0 is an invalid image ID. Despite many other threads similar, no one seems to have an actual answer to why this happens despite the s...
0ece0d59db8c8a7e9248fccfcda64b949177eb908f029d0fe91e5703f0d1fba3
['3a071d4072594ceaa8b2d83674c2a81f']
i was wondering what is wrong with this code? <style type="text/css"> .recipe h2{ float:left; } .recipe .intro, .recipe ol{ float:right; width:500px; } </style> </head> <body> <h1>Recipes for Cheese</h1> <p class="intro">Cheese is a remarkably versatile food, available in literally hundreds of varieties ...
a047e1cd4dd87c846572d671d1178b2a866abefdf8fa7f8e8b1ee6f8b62353ae
['3a071d4072594ceaa8b2d83674c2a81f']
i want to apply for this job as description below: This employer is looking for a competent and experienced student to create a website. You will be required to update web site content through a content management system online. Initially the employer needs an online store product upload and monthly newsletter/VIP vou...
0354b3aa6ac8cb8ce1245ebd5c1f76356e3d320e31dfe25b1c5d9d5b43987c1b
['3a09aab29c3e471b9b24913817d2347a']
Estoy tratandod e consumir un API a traves de Jquery, al momento he logrado conectarme sin problema e incluso obtengo la respuesta del API el cual tiene el siguiente formato: { "status": "OK", "status_codes": [ 200 ], "status_messages": [ { "request": "Request processed." } ], "data": { ...
f1f07c28a4b4b4780319b9dd6bd0070b27c9518f8d4105ec9e18da926e5313d5
['3a09aab29c3e471b9b24913817d2347a']
creo que no hay mucha actividad por aquí. Estuve buscando un poco mas de información sobre el uso del API de Instagram y encontré un código que me funcionó muy bien y es: $client_id = '# de Cliente'; $client_secret ='# de Cliente SECRETO'; $redirect_uri = 'URI Autorizada'; $code ='Código generado al iniciar sesión'...
4b61a5c4e2831ee6486115f70afb55db0824af8c894f64436372c30ac9dac5c6
['3a0a42a7936745328668aca640283789']
I have a code; x = np.linspace(0, 12, 200, False, True, None) when I print x, I get; (array([ 0. , 0.06, 0.12, 0.18, 0.24, 0.3 , 0.36, 0.42, 0.48, 0.54, 0.6 , 0.66, 0.72, 0.78, 0.84, 0.9 , 0.96, 1.02, 1.08, 1.14, 1.2 , 1.26, 1.32, 1.38, 1.44, 1.5 , 1.56, 1.62, 1.68, ...
9ea671381d5ec9067c140b16da27f7355acb42a064682c08a3e7a8a53f89df40
['3a0a42a7936745328668aca640283789']
I have a selection of lists of variables import numpy.random as npr w = [0.02, 0.03, 0.05, 0.07, 0.11, 0.13, 0.17] x = 1 y = False z = [0.12, 0.2, 0.25, 0.05, 0.08, 0.125, 0.175] v = npr.choice(w, x, y, z) I want to find the probability of the value V being a selection of variables eg; False or 0.12. How do I d...
e909cbdddc76a84d7c83fe6bafaca09e66125e7bc1040e251cbb690b77cf5a0b
['3a113195372d4be595049c3e5d2f9d13']
Пишу программу, которая весь на весь экран рисует сетку квадратов. В каждом квадрате нарисована цифра "0". Когда пользователь нажимает на какой-либо квадрат, то в этом квадрате вместо "0" отображается "-1". ( Хочу использовать эту программу в дальнейшем для создания алгоритма для поиска пути ). Рисование происходит в о...
3700c69ecec2bda2de9060c45c4177910234c7d8f789f0c51f16ebd8ef387d7d
['3a113195372d4be595049c3e5d2f9d13']
every time I am in Game on steam the sound keep lowering and then every sound disappears and the sound will only come back when i close the game from steam itself i have been having this problem in 4 days and i want to know what this problem is what i discover is when i go to sound and fixes the sounds then it just co...
ffa0fb152ad16804e59c406f9d6a3c09043da40eb9338e7cf5c7fa357d009a6f
['3a153b4deaeb42d9921b5d1c153da96d']
i used .val() function in jquery to post value from textbox. when i alert i can see whole string .but when putting on a textbox only data before space is coming.anybody know this issue,please help am sharing my code here $('#add_input').click(function(){ var item = $('input[id="itemname"]').val(); i++; $('#dynamic1')....
63618d3918c477952aec488f128e5067779397e8cf501c884345221d61d7135a
['3a153b4deaeb42d9921b5d1c153da96d']
i have a function to display pdf on a modal popup when click on a button. i want to integrate this on another modal popup. but its not working. my code to display pdf on a modal pop up on button click <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script ...
49a36b9c111d3e38deb6779dd195f12185c4d3b553de07b07dfb56473ec02357
['3a21fe09b11f4a7f932cfcab3e7e6eae']
i have a function that give me the text between two words: Private Shared Function GetBetween(ByRef strSource As String, ByRef strStart As String, ByRef strEnd As String, Optional ByRef startPos As Integer = 0) As String Dim iPos As Integer, iEnd As Integer, lenStart As Integer = strStart.Length Dim strResult A...
c836e49338991216ade9f0ea5cf38cf3f95d05fd79c22536d5c6bfd548533cd0
['3a21fe09b11f4a7f932cfcab3e7e6eae']
i am currently using this code for the registration: value1 = registerEmail.getText().toString(); value2 = registerPassword.getText().toString(); value3 = registerName.getText().toString(); try{ Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection(url, user, p...
987a27285108b3d1891cac5e41b0e2207fbd3a5f2c8a91d4494eb2ccc0963695
['3a2b0d8cdffe484483b5b2bd34d733c4']
Estou abrindo um arquivo .csv com a biblioteca pandas, porém me é informado no momento de abertura deste arquivo que uma determinada coluna apresenta valores de tipos diferentes. Sei que o caracter "/" foi utilizado neste arquivo para denotar dado ausente, muito provável que seja este o problema. Minha dúvida é, como s...
1660d31f2aa27fe70df1efc7cefbc9ab116206f3e479ea8d483d5a03e416947c
['3a2b0d8cdffe484483b5b2bd34d733c4']
I am a Material Science and Engineering major.What I am having doubt with is how I am supposed to write long answers.Lets say someone asks,"What is a Lomer Cottrell barrier?" or may be,"What is solid solution strengthening?"Actually I write answers to these but those answers never fetch me a more than 50% marks.How do ...
132ddd84ddc5367a19a4a93a84c7e869adf5f6cfb379a244ab54b3fe4969820a
['3a3bf78680f54e399939faa31d264596']
I solved the problem meanwhile. The code was something like this: $ldaphost = "ldaps://XXX"; $ldapport = YY; $ldaprdn="uid=username,ou=OU1,ou=OU2,ou=OU3,dc=dc1,dc=dc2,dc=dc3,dc=dc4"; $ldappass="password"; // Connecting to LDAP $ldapconn = ldap_connect($ldaphost, $ldapport) or die("Could not connect to {$ldaphos...
38c095ef482167c123c6c3a413602126bb5496ab35e8039bc234493fb8777bf9
['3a3bf78680f54e399939faa31d264596']
I'm trying to get the list of all my friends from the Google plus via API. The user on whose behalf I'm doing this operation previously authorized my request and I got the auth token. I've tried the following code in php: function CallAPI() { $opts = array( "http" => array( "method" => "GET" ) ); $...
07c8fe28983e7bd0753ef90f3b67b337b0d7e8beeac6c13c6a1fb4542a245e18
['3a4221bcbe574162a16f3bdebe5661ca']
I've actually went another way instead of calling the method by its name, I simply make a lambda function to extract whatever attribute I want from the Task object. class Task: def __init__(self,id,name,category="",priority=1): self.id = id self.name = name self.category = category ...
2277c56772412ce5a4bd0b01be037c53400b88f1b78ae7eef705514423edcc25
['3a4221bcbe574162a16f3bdebe5661ca']
When I tried to run this same program on my computer and my school's server, I get these two different behaviors from struct.pack(...). This is from my computer Python 3.7.0 (default, Oct 9 2018, 10:31:47) [GCC 7.3.0] <IP_ADDRESS> Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more infor...
e6fae84775a585cb5190db401f84f1cc60d4499f15fea54fba0e7eac7d4dbd50
['3a520545e8d8416f80c6fa8a765e00ad']
You can create half octagon using :after. .halfOctagon { width: 100px; height: 50px; background: #f35916; position: relative; top:25px; left:50px; } .halfOctagon:after { content: ""; position: absolute; bottom: 0; left: 0; border-top: 29px solid #f35916; border-left: 29p...
75e081d9b47b501e03e753b2a96bbab3dcaa198e2a840a361580e50400211fa9
['3a520545e8d8416f80c6fa8a765e00ad']
You can achieve this by doing something like this. I have used a function to split comma separated value into a table to demostrate. CREATE FUNCTION [dbo].[Split] ( @RowData nvarchar(2000), @SplitOn nvarchar(5) ) RETURNS @RtnValue table ( Id int identity(1,1), Data nvarchar(100) ) AS BEGIN De...
80d53e0a77cfed36300365737bac63591d6bfe50271f7a0a74c59d9c62ef6346
['3a570c39cbde4a67872b148b2328da9e']
I have a dataset which contains continues and categorical type of data. Can anyone help with below questions. Can i use k-means clustering and euclidean distance or should i use Gower's distance? When to use euclidean distance/Gower's distance? How can we know we have formed the correct clusters?
bf104bf74de93cd6224bd0b0101b60cba3518f3569b3a8c780b388c40cd09b94
['3a570c39cbde4a67872b148b2328da9e']
Am trying to understand the difference in assumptions required for Naive Bayes and Logistic Regression. As per my knowledge both Naive Bayes and Logistic Regression should have features independent to each other ie predictors should not have any multi co-linearity. and only in Logistic Regression should follow linearit...
754ffaf4c34626a682e427fc9ea55635e98aee3f49c6c149f5522b4ec032c9e0
['3a7208b7fad34bbd8cbbe92ed2fdac41']
I use Python slackclient's module for handling interactive message. I create and post a message successfully with an "accessory" image: { "type": "section", ... "accessory": { "type": "image", "image_url": "https://avatars0.githubusercontent.com/u/44036562", "alt_text": "GitHub Worflow" } } After t...
7ace0eaa770630ecc9a4124fcf2bb51ed9a516dd2f640ced5ba8173878bfe46d
['3a7208b7fad34bbd8cbbe92ed2fdac41']
I'm try do simulate a two-fingers action when one-finger is detected, I successfully make a one-finger touch with GestudeDescription and I know that I can't do two-fingers with it but I wandering if I can make it think I'm using the two-fingers doing the same action(swipe for exemple) when I use only one finger.
a6b875a40b2e3aa2e5cf94b65142325e1e47514044c5aa51a4cf4a718ef226cc
['3a7b2ce6eb2a494a8e900bc4aa158798']
When I use 'dd' to make an image of my sad, I get the message: dd: /dev/disk1: Input/output error I've tried on Mac and Ubuntu (the Mac output is above) and the result is the same. My question is: what is wrong with my one week old SDHC card (Kingston Class 4, 8GB)? And more importantly, what tools (preferably GUI) ex...
07dfd1ea59061a766242e74ced4131145b916fab13c03014b165e82d46c602e1
['3a7b2ce6eb2a494a8e900bc4aa158798']
I've tried VLC, Totem and MPlayer and while they differ in their unique kind of choppiness, none of them play smoothly. The Ubuntu documentation suggest enabling DMA[1] but the instructions don't seem to apply to a SCSI device. How can I get the playback of DVDs to be smooth? In case it matters, it's a BluRay player: -...
191ceaae964186e70ca8f10872bf794a4da4c1633033c6809fce2efa747e4326
['3a8297068682402aa045dd52dba5c498']
I'm suggesting you to use iwatch which perl program that uses inotify internally.( It is possible to run it as daemon ) When you setup it to watch folder with files , you can simply run touch * inside watched folder. This will update timestamps of files and inotify events will trigger. Be careful with IN_CREATE event i...
1152ca5ef87bf9090df6db2474f8b0da5978eee7c599182f7a66be6b733c6d71
['3a8297068682402aa045dd52dba5c498']
First ensure that mod_expires has been loaded then ,you can define in httpd.conf file or inside VirtualHost following: <IfModule mod_expires.c> FileETag MTime Size ExpiresActive on ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ...
6d5da5af798d20b745eb9f888bde71efb4db9bd66a7abd5aead6687611f2ab05
['3a95ff3321324b63a6ce275760268bee']
In the model Tesla K20 the peak single-precision floating point performance is about 3.52 TFlops but the double-precision is 1.17 TFlops,so the ratio is 3. The Tesla K20X has 3.95 and 1.31, and Tesla K40 has 4.29 and 1.43 TFlops, the ratio seems to repeat. My question is if there is a reason to the ratio be 3 and not ...
68be177a76d1c55a0addda8bf17a64c59fc558f94d869f88172e6925a1d038cc
['3a95ff3321324b63a6ce275760268bee']
I'm using Gstreamer version 1.8.3 and the following pipelines to send and receive a rtp/rtcp streaming. Vars: export SAMPLE="overwatch.mjpeg" export IMAGE_CAPS="image/jpeg,width=1280,height=720,framerate=1/10,format=I420" Listener: test_play_rtpbin(){ gst-launch-1.0 --gst-debug=3 rtpbin name=rtpbin \ udpsr...
00cd7b473c81a65d58d32bfef2123fb583d63f8df31805870e00e76f9ec56457
['3a9cf915eeda4cdd967d278a68f57389']
Thank you <PERSON>. I am seriously computer language illiterate. I did try <PERSON>'s answer and got the result I wanted, but wanted to try yours as well. Yes, I get the blue window. Unfortunately, I'm not doing something right as I'm not getting the result. You have "optional-target" italicized.That indicates to me th...
5b0f0ad8ab57e6cd7feb6efcb424465b2d750685b4bcb8a770bc600f5323629b
['3a9cf915eeda4cdd967d278a68f57389']
Just curious if I would have problems with my computer if I were to uninstall the various @.... fonts? For example, @arial unicode ms, @batang, @dotum, @kaiti, @microsoft...., or the various microsoft... fonts, like microsoft jhenghei, microsoft yahei, etc. It may seem petty, but I'm a scrapbooker and I use a multitu...
2903547bc8fac36a841e5d005e2033d981c8c1e7f4285ccaa1c3f5b27966bfb0
['3a9d5a9fa2f1426bb24b8fe48482cac2']
SUMIFS() Should solve your issue here. You can use something like =SUMIFS(F:F,A:A,A2,B:B,B2,C:C,C2,D:D,D2,E:E,E2) if it is essential that A-E match. This will give you a Column G with the result you are after however this way will also give you multiple rows. IF B-E are always the same for a Column A value then you ca...
74a2f96da4e7a42317af93b47e9272a13914b69ddf13a359625ae2ee9af3cc84
['3a9d5a9fa2f1426bb24b8fe48482cac2']
The problem is not the coding of the CSS but the mathematics of a circle. Essentially your border-inner-radius (I know this property does not exist) is equal to the border-radius - border-width. Quite simply work out what you want your inner radius to be and then add the width of the border to achieve the desired effec...
636f2926db764d90a0f4857016d077d5eb3d00f77b2ff88aa44e675db82f0028
['3a9de2c9b64b4c258d8f7ac83c44c921']
<PERSON>: thanks for replying - I appreciate learning that. However, I want to adjust the screen lock time, and according to the Ubuntu Help menu under the upper-right hand gear icon on my screen, that feature should be under the "Brightness & Lock" feature. But I don't have that feature listed on my system.
d4405a6325b00ff84450bf9a55442fdbd611fa9bb476fda1a43a61b387908a03
['3a9de2c9b64b4c258d8f7ac83c44c921']
I did a clean install of 20.04 a couple of days ago and have been customizing my machine since then. When I right-click on the top panel, the context menu doesn't appear. I am used to using earlier versions of Ubuntu and adding apps to the top panel. Please advise. Thank you.
d3a1e5dc752e51b4c9952c505ed8f4af6df3c803489ab30f93b80ff115bdc10e
['3aa271f67dbf4daab109fd39e87d1794']
I'm working on a simple game using Phaser. My code: preload() { this.load.image('player', 'img/player.png'); } create() { var player = this.add.sprite(100,100,'player'); player.inputEnabled = true; player.input.on('pointerdown', () => { this.scene.stop('ThisScene'); this.scene.start('NextScene'); })...
d773ace4b02bf7a1c9c7a4442ebd6fc8066c15c3c6b97a45584d475e36340ca1
['3aa271f67dbf4daab109fd39e87d1794']
I would like to learn brain.js so I decided to make a little project. I would like to make a rock, paper, scissors game where the background color would randomly change between three colors after every play. If you'd choose that you will play one option every time a certain background color appears, the website should ...
620d97a9af2cc4b3da3ef8a9ed9ac643ec2e8a073414fe102dc484dc839082a4
['3aa45a1e8ae54a68a5c1b0bbe9556ed9']
If you call $this->ActionResult_Index() from within the Controller class, you'll get a fatal error, because the Controller class doesn't implement that method. Parents don't inherit from their children, it's the other way around. Also: your extends syntax is wrong; get rid of the () after the name of the base class.
99d4507109051cad7502b078ccd52945e834df92c2af640bbc5c40687cbdf271
['3aa45a1e8ae54a68a5c1b0bbe9556ed9']
The most likely reasons are: You're re-initializing curl after you get the CRSF token, so it becomes invalid for the subsequent request, because that's a completely different session as far as the site is concerned. Your $postinfo is a string, so you need to urlencode() the values by hand (CURLOPT_POSTFIELDS also acce...
3018f70ccc3a6700cbfe40e06d4a7033329c4c8a1a6ab923656905e6f44246ad
['3aaabffec3ad4f62ac52049457f3134c']
I am working on my homework and am currently stuck at the following question: Let $\mathcal S_{10}$ be the group of all permutations of the set of elements {1, 2, ..., 10}. Find an Abelian subgroup of size 24 to $\mathcal S_{10}$. Thanks a lot in advance for any advice/hints! :)
284d55b0df42bc1e9a1c22a4310924825824b9134348e5aa3c09458fcb2fbed5
['3aaabffec3ad4f62ac52049457f3134c']
\counterwithin{figure}{section} \usepackage[all]{hypcap} in the preamble after the hyperref-package. In this case \counterwithin{figure}{section} aswell \usepackage[all]{hypcap} is enough, but sometimes you need both, also \usepackage{caption} often helps. This question uses https://stackoverflow.com/a/6696146/67479...
fddd9cfabf721d11d0bc6b0cad7163835d6b5089673213219d8ae0db8984b8e1
['3ac5a92c32964164b92985c6ec6ac85e']
sphinxql's execute function returns the data in string but you can use it in geodist query as it is. just remember not to use quotes on the columns name in your query, if you put quotes over it sphinx treats it as a string and i wont produce any result.
b683b123348b46e8b53fcade94c5d06462b1b1c1c5ee4ff911f9c8869526557d
['3ac5a92c32964164b92985c6ec6ac85e']
check this out. 'query' => ['bool' => [ 'must' => [ ['match' => ['approvalStatus' => 'approved']], [ 'ids' => [ 'values' => [new MongoDB\BSON\ObjectId($documentid)] ] ...
6966e4a74c273be4e26818b129cf1163dfb81da22591a4b7820c8e71688e0510
['3acea34f11d142e39c22963d5821745c']
I have a following data frame: tests <- c("test1", "test1", "test1") obs <- c("observation1", "observation2", "observation3") test <- data.frame(tests, obs, stringsAsFactors = FALSE) I want to turn that into an XML file with specific formatting: library(XML) example <- newXMLNode("example") addAttributes(example, na...
0e6770f7454f78aa918fee1009abc835ae4830111d2dba9feca39c66cf81022e
['3acea34f11d142e39c22963d5821745c']
I have data frames in R which can be reproduced with this code: id1 <- c("NP", "AK", "HT") id2 <- c("t1", "t5", "t2") Sentence <- c("This is an example .", "This too !", "Ok") df <- data.frame(id1, id2, Sentence) It looks like this: id1 id2 Sentence 1 NP t1 This is an example . 2 AK t5 This too ! 3 ...
1f9353ea82cd000d3838f87acd4e1f49960be62c88707a3b3de2c4886b590c8f
['3ad311d8c5744967b4bc680bd4ae3aaa']
When you're using setFont method you need to make sure you pass absolute path of the font: $im->setFont("/var/www/html/mysite/media/fonts/myCustomFont.ttf"); Same would apply for your localhost development just change the absolute path. (This is a bit old question but I figured to answer it anyways.)
5b3d05585ce5c13d6e234f2e878c2dc99062ff52ff78e9263873e7c3bfded8a2
['3ad311d8c5744967b4bc680bd4ae3aaa']
Box-Shadow CSS3 box-shadow property has following attributes: (W3Schools) box-shadow: h-shadow v-shadow blur spread color inset; In your example you're offsetting shadow by 10px vertically and horizontally. Like in other comments set first two values to 0px in order to have even shadow on all sides. More on Shadows The...
d35c607fe793967be4de8062d85e830a9d5ba03cfc9f5ed385331e93e526bc81
['3ade4f0dedd2459bb1aea7ae735a0b1a']
It seems at present there is no way to get Pycharm to access and use Python on a worker node of the HPC cluster (though the above answer using forwarding might work for some??). Pycharm support suggested posting a vote on the feature request system https://youtrack.jetbrains.com/issue/PY-18828
a8652390506cb4faa6c7b5dc3072b49220bd253e8c6c315421c1775abd8e42bc
['3ade4f0dedd2459bb1aea7ae735a0b1a']
I have a gui script that has a button for users to click and select a file for running some processing on. I want to create a save path which is the same directory as the original file was opened from so that the saved file is saved back there. I use a try/except in the code in case of errors and I just can't get the s...
ca969d3e1f2aa8aff69304e34029ad1df168caae13b0234881d570a5b1e4d63b
['3ae374551fb54c5ca9faa24b5207518a']
Dose anyone have idea to resolve UWP project problem Ref this document For Android and iOS platform, we can use FontName property, but for Windows Phone platform, it uses FriendlyFontName property: Quote: This property is only necessary for the Windows Phone platform. This can be found on the first line of the fon...
7cf2f371813e2cc3eaf752d0d9ee385a63787f756296904b42f668466ec506aa
['3ae374551fb54c5ca9faa24b5207518a']
When debugging into my ContentTemplateSelector, my binding is always null You need to set data binding for the Content property of ContentControl control, see Remarks in MSDN: The Content property of a ContentControl can be any type of object, such as a string, a UIElement, or a DateTime. By default, when the ...
a0644ef3fdbbd0812379a413f901b2545ab9af9933d2d937b92f5460ed5aedcf
['3af0b4cf659c41c299a5141d1c16c0d3']
I want to determine if a user or his friends already like a specified external URL. Using the Graph API Explorer, I am trying to perform this FQL: SELECT user_id FROM url_like WHERE url="<URL>" AND (user_id = me() OR user_id IN (SELECT uid2 FROM friend WHERE uid1 = me())) I do not get back any results, the AJAX bar kee...
677ef3d343c831a74fc3c21a40425008fa27da63ddffac670dd36d47fd0f44f7
['3af0b4cf659c41c299a5141d1c16c0d3']
Simply get the claim "http://schemas.microsoft.com/2017/07/functions/claims/keyid" from the req.HttpContext.User.Claims object. It contains the key id in case a Function key was used. Works like a charm, and does not require external lookups. const string KEY_CLAIM = "http://schemas.microsoft.com/2017/07/functions/clai...
8e40d237a37821c046699cb1312e61c7d01a0d6784f9386fb9127d27471a9521
['3af10e4d6e824702bfe21094c7ee2d10']
I have run into a bit of (what I think is) strange behaviour when using Castle's Dynamic Proxy. With the following code: class Program { static void Main(string[] args) { var c = new InterceptedClass(); var i = new Interceptor(); var cp = new ProxyGenerator().CreateClassProxyWithTarge...
872165d1a5355e22384ae163fb860edf512e5bb7713e87fba92a1c731e8793a4
['3af10e4d6e824702bfe21094c7ee2d10']
maybe yes, not sure, checking out your suggestion now on google, I had a software that did some management and there I could always see how many times a file was accesed, but that software is gone, files are still in use, so I want to be able to easylie fast to see what files are still being used daily, sothat I can ti...
98b215ee8d5e6fe022d99eff554dad21a68fad4e12a39733c5ed8c6e6e258847
['3af81d0aa9504dafacae95158de65004']
I have 6GB sql file of insert statements where I would like to add a GO statement after each 150 lines. There are a total 9M lines in the file. I found some code using Powershell script and most recommended the stream or .NET commands for performance with large files. $reader = [System.IO.File]<IP_ADDRESS>OpenText("C:...
a98cd0213aa953115f3f23cebdf56ed59db57f3bb8f75a4758fb15c1515b123f
['3af81d0aa9504dafacae95158de65004']
I updated my code and got rid of the functions and included the namespace in the main code. This may not be the most elegant solution but here is the revised code that worked: if($files) { foreach ($file in $files) { [xml]$fileContent = Get-Content($file) attrib $file -r $X...
f88de1be40ca445091e4f2fd0ca39b06219e1eb72a935ad0c803cc1ce4421254
['3b03b878dd834185a114bbe9effa1cfb']
Yes the sensor didn't change, but the processor has changed... that means that the iso performance on the t5i is better than on the t2i and it will "clean up" the image better... I owned both these cameras and I can say that I noticed a difference, specially when shooting at higher iso values... So i would recommend yo...
fd67641f2b0ebda29f4b5f8c758e6edb77ada36aa445faa120524df3eb21102f
['3b03b878dd834185a114bbe9effa1cfb']
@ShimonRura Unfortunately is is the case, the HVAC guy checked last night. He said he couldv'e swron when the unit was being remodelled, there was a return duct, but neither of us saw it. On the main floor of the house, in the foyer (2 floors below the loft), there is a return. So all the air has to go downstairs, unde...
1facb1f6ded3460115476f7ca132d540e98eafb89a3fb5aae23cb644b7df98ca
['3b0c6840401d45aa8bb4bb24acdde1ca']
Does someone understand what's going on in my nodeJS application. When I do an asynchronous call using ajax the server first responds with a 404 error then loads the page. The application works fine but I have a lot of boring logs saying "Can't set headers after they are sent." Here is the route part module.exports = f...
b3a428bc034ed32bc304dfc3c400d804b1573adb6eab5b28ca394f05833c2726
['3b0c6840401d45aa8bb4bb24acdde1ca']
Problem solved. "Just" changed how to reference the model in passport.js as follow var User = user; had to rewritten as var User = db.user; Here the definitive passport strategy file const db = require('./../models/'); var bCrypt = require('bcrypt-nodejs'); module.exports = function(passport) { var User = db....
e1d1d2e5e29bdad7f8ffba6c3b9bf89b34ea4d30da6990b6904963d81ce33ff4
['3b0fa5f6b542406bab0277e41808d3c1']
right now when I press my touchableopacitys very quickly, it will stack up a bunch of calls to the onpress callback and then execute them over time. What I want instead is to be able to prevent further callbacks while the touchableopacity is "pressed" or faded, so that the onpress is only called once for each time the...
686813ce028d4c254be7ee24f212d77d657099389c9f7e14dc3e3c5a8ea3bf1f
['3b0fa5f6b542406bab0277e41808d3c1']
The solution that worked best for my specific situation was monkeypatching/refining specific methods to account for possibly nil values, and mixing it into the file that performed these calculations. Again, this is my very specific case in which the syntax needed to closely resemble a certain style. Many thanks all!
1e8754b561f75624b9b6e957a4f5a2bc8f946aff5b9052f46a644fdec43b51bb
['3b33b70a2ad942388a116923ae700016']
in the $("#mainTask").focus event handler you can set a global boolean variable to true, set it to false in an blur event handler and check on the value of that variable in the #taskInput mouseout event handler var preventSlide = false; $("#taskInput").mouseout(function(evt){ if (!preventSlide)...
f87314397a7f4b883d7c95ce89842dcc6d0217a5d24c64faf296b3d7816c6aed
['3b33b70a2ad942388a116923ae700016']
in your code you could replace the entire string with all the option elements with a for loop going from 0 to 17, like for (var age = 0; age < 18; age++) { d.innerHtml += "<option value='" + age + "'>" + age + "</option>" } although I think it is not so nice coding to keep on appending to innerHTML the way yo...
540ba130e0ff5a507b8370ea50a59002c638234c057e4cb7883984ce1acd7a81
['3b43e9c67f3345acb025b53744a68628']
I am using IMX6 Saberauto board on Linux OS. I have 2 displays primary is HDMI and secondary is LVDS. I want to run 2 applications. One QT on primary display, which I am able to do. Second application is airplay application I want this applicaiton to run on seondary display ie /dev/fb2. But I am not able to do. It is c...
ebf805f82ccf7d7f6f200c60e8badab990f60218ee0979cb24807e8725689da3
['3b43e9c67f3345acb025b53744a68628']
I am executing dhrystone 2.1 on freescale IMX6 quad processor with 1GHz.Below are the things I tried. 1. Executed dhrystone alone first time. 2. With an application running in the background, I executed dhrystone. In either cases I am getting DMIPS value same. I do not understand. In second case DMIPS should reduce.Ple...
c28bc202c55a3f1259258a2de4ec2a26fcfc466b466e4ddf8bc66c9ad290165b
['3b50e4d8fbbe4b6399b5deb75d63fea3']
This may seem like a duplicate question but the answers provided in the other posts did not help. I am making a C# ASP.NET website, currently it works fine when testing in the Visual Studio IDE. The site uses the default login controls that are created when you create a new asp.net web application. The problem is, whe...
c7cf160d23aac425e544bee812f1d8a6c0418c29020d69e2422175098bbbddfd
['3b50e4d8fbbe4b6399b5deb75d63fea3']
I'm working through a book and have come to an issue. it's a top down shooting game that has the player rotate with the mouse and move with the keyboard. problem is when testing if either the mouse or the keyboard set off movement the image vibrates. If i push the arrow keys it moves in a circle the longer I hold the k...
66dda046d4d2664e6504df1042efbff0adc91aafda5008d6a61e8aa46966a5ff
['3b5401b79acd42c3a39a86f8079677c3']
Well, ErrorException: Trying to get property 'id' of non-object in file isn't very helpful, could you see the exact line it's talking about? If it means $id = $request->user()->id;, then it seems like id is not part of user(). Maybe try dumping $request->user(). If you are sending user_id and email, then you can just d...
3f1031641f9719d2e820cc4b322064aa3cd1f4f413a9579f20f445fe865f1ad9
['3b5401b79acd42c3a39a86f8079677c3']
It's the port that your server will listen on. So, if you are listening on port 2000, you would go to http://YourDomain.com:2000. Make sure the port you are listening on is open of course! Port 80 is the standard port for http, and port 443 for https. I commonly see node sites using 8080 (which is an alternative to 80)...
1f59654c23dbed3645dae0b46511c7a087cd3cb7572b1b354a5210d2e25e0fb4
['3b5b3212c68f4ee6b8b346766f51d7f8']
That does not make a point to log in and logout a number of times to execute test cases if we bind everything in the suite. So I think that cannot be the root cause. Because without pom I tried to run all this in one of my earlier projects. Everything ran properly there.
eb9d1d5bb1ff32e2d8d51fd94ad3833e7697b37ece275e4d05bac2b8417c2c23
['3b5b3212c68f4ee6b8b346766f51d7f8']
A surprising one I learned about recently: If you're in an environment that might be audited you'll want to save all the output of your build, the script output, the compiler output, etc. That's the only way you can verify your compiler settings, build steps, etc. Also, how long to save them for, and where to save the...
6830d69b2b5e44f93b13117c256b2b0269f2fe351c3460caf44e2a53273ea3c1
['3b68b209e2ff4b069dc371e00edd44b3']
It seems as if i have erred and that the credentials format i stated earlier are for Google App Engine If you are on Google Compute Engine, you have two options: Connect to the public IP address of your Cloud SQL instance. This requires you whitelist your GCE instance on the ACL for the Cloud SQL instance. Use the Clo...
da4b6d0bdb2c9fe4a324fd65edb476d0715387f56c18618de69ce6c464957afa
['3b68b209e2ff4b069dc371e00edd44b3']
Looking for a best practice solution. I currently have metatags in my script to show Open Graph metadata when forwarding links from the webpage. All icons are 112x112 ie square and these come out v well on WhatsApp etc. They also come out well on Facebook when inputted into the NewsFeed. However - if i try and forward...
22df07c5d86e15ec22d13662fb5f4ec48cac03f03d4edb3e343709cf9935c2d4
['3b838ce7c1074a47b13cdcf177562dad']
This version addresses an issue raised by <PERSON> and is capable of dealing with a long with an arbitrary number of bits. After the necessary precautions treating non-positive arguments, we calculate the log of the argument in base 2 and change the log base to base 10 by multiplying by lod_10(2). The number of digits ...
43c1ae7750a22ea855740ea0ebdfc47f141e4d2d1499ba3ec519ecf14f195bd9
['3b838ce7c1074a47b13cdcf177562dad']
The definition of independent events requires that P(A B) = P(A) . P(B) [equation 1] In this case, we have P(A|B) = P(A) [equation 2] By definition, P(A|B) = P(A B) / P(B) [equation 3] Combinig equations 2 and 3, we obtain P(A B) / P(B) = P(A) => P(A B) = P(A) . P(B) Which is equation 1. So the answer is P(A|B) = P(...
a3c06c3c878396467c12c2ec81602d8d85645280ea9ea56b1a7caff42685e72e
['3bbd286690124ef88e7e4736c964aa29']
I want to create a Document in Google Drive from a BLOB generated from another document. I've tried this simple example : var doc = DocumentApp.openByUrl("https://docs.google.com/document/d/[My document]/edit"); var docContentBlob = doc.getBlob(); var newDocBlob = Utilities.newBlob( docContentBlob.getDataAsS...
d872701f1c27db203e66b6df7ea7aee05a9ddf6bf4cef3ebafd085a1f417ba85
['3bbd286690124ef88e7e4736c964aa29']
According to Google Apps Quotas guide : "Service using too much computer time for one day : This indicates that the script exceeded the total allowable execution time for one day. It most commonly occurs for scripts that run on a trigger, which have a lower daily limit than scripts executed manually." Triggers cannot r...
654cc9065e3a75864b6760b7ec515fab0d3ae63c507f6372c6b5b93547f20e40
['3bc117a7921e419f90f5af2cdddae30d']
I recommend to read capter: Embedding Controller http://symfony.com/doc/2.0/book/templating.html <div id="sidebar"> {% render "AcmeArticleBundle:Article:recentArticles" with {'max': 3} %} </div> You can make a for loop within Twig Template and call an action (with parameter if needed) where you render the form. ->...
464edf51027b6f7de23cf2b8fbb9783eb9035911dce5b24fe29c4ba36f2515b5
['3bc117a7921e419f90f5af2cdddae30d']
Since you're talking already about steps within your form process I suggest to use the CraueFormFlowBundle for this. Here you have the possibility to build a form type for each step in your form process. https://github.com/craue/CraueFormFlowBundle You could solve the problem as follows: Order Entity: User (N Order ha...
f51bc3201e12519c18bae348deafbf7dc57a9b9c3b1cbd9201c5dca358cfee82
['3bd3bf2720a74fd7a0d2363c9e5a36aa']
The uncertainty in the multimeter is the measurement uncertainty. The apparatus that you use will always have some sort of uncertainty associated with them; this has nothing to do with the resistor. The resistor will have its own tolerance. The tolerance and the uncertainty however, will propagate together to create a ...
24c59385572709fb90e302984158fab5a81aab0ded24056a82500fc9a1012032
['3bd3bf2720a74fd7a0d2363c9e5a36aa']
Есть таблица, вот кусок: <tbody> <tr><td><label><input type="checkbox" class="checkbox2"><span class="checkbox-custom2"></span></label></td><td>27.04.2017</td><td>28.04.2017</td><td>118725-31521</td><td></tr> <tr><td><label><input type="checkbox" class="checkbox2"><span class="checkbox-custom2"></span></label></td><td...
55ec68ccb88b01020122d928b2b84679bf1e9eb4321f7b8c1f40605f60b48382
['3bedf55cce454e06aae5be2c530c9b9b']
I develop an application with WebKit-based forms and it’s important that, when on a form, a user can press Backspace without returning to previous page. How do I do this in QtWebKit? I found out that one can inherit a class from QWebPage and overload QWebPage<IP_ADDRESS>triggerAction() to selectively filter out events,...
526bde56e474fe9ea93dda9e2c8ea9e90d6a59ac6e1ea9782d72fbc59ff5d0fd
['3bedf55cce454e06aae5be2c530c9b9b']
The problem is due to bug in the dynamic RTL which I use in the release build (description). The bug was not fixed in the version of IDE I use, so the only working solution is to upgrade to a higher version. Nevertheless, having a clear explanation helps a lot.
e7ef907bc1304d3ae894d656aae3f4425f39b0a0f1fb062ca878a3a7830f5405
['3bfc7400a6414118bd045619e31157a0']
For languages which don't support a block-comment syntax (e.g. /*...*/ vs // in C), "Un/Comment Block" and "Un/Comment Lines" are functionally the same. There are some ...curiosities involving how spaces are managed after line comment delimiters. If the declared delimiter for the language has trailing spaces, BBEdit tr...
aec4348edd9e4f5c22aa93f0e6f1ed45cbe10a86fb2248678347419d851fcd29
['3bfc7400a6414118bd045619e31157a0']
The language setting is in the status bar at the bottom of the editing view. For new untitled documents it says "(none)", click there to open a menu from which you can choose your desired language. If you always want a specific language for untitled documents, there is an expert preference, which you can set with this ...
25c4b366b9b7bfa14805e4f71aa67cbabcd74d8cfe0c3744fc17f51225f2a0c2
['3bfd0d64c3bf43d8a24e1f8fe08a9d65']
I have a problem in my symfony 1.4 using CKFinder. My CKFinder is used to create a custom message for email template. But now I need to put an attached piece in the mail. So I saw the CKEditor can help me to do this. I activate the file in CKFinder and I can upload a file in the server. But after sending my email the ...
86fcba7f2803283f94911559ff6ae339614676bf2dc870757fbb5b4f4b1bd782
['3bfd0d64c3bf43d8a24e1f8fe08a9d65']
I'm working on PHPExcel Library on symfony!! I work on how to create a comment in a cell on my excel file. With the documentation I know how I can create a comment in mys excel file with this: $objCommentRichText = $objPHPExcel->getActiveSheet(0)->getComment('E5')->getText()->createTextRun('My first comment :)'); And ...
97ab620a0517d2e529449abddb8223e149b88dd98955716f61c28efa88388266
['3c02d6160cef40919458078c0e80e857']
Using an extension such as Greasemonkey, you can add a new script containing a bit of javascript. // ==UserScript== // @name All Links in New Tab // @namespace * // ==/UserScript== (function(){ var script = document.createElement("script"); script.type = "application/javascript"; script.innerHTML ...
3ff9b2a9daccc7fa6b0430cd3928dd647168b44a71a5c0e6c9fc1ea6871906ae
['3c02d6160cef40919458078c0e80e857']
Есть таблица продления длительности логинов пользователей: id,login,date_prolong(дата когда продлили),date_finished (дата когда заканчивался логин),time_added (время на сколько продлили) Задача отчета - в период от даты 1 до даты 2 (смотрим на дату окончания логина) выбрать какие логины продлялись, какие нет, и на ско...
307a07afa42145262f373f83bb1ed9790691a1d1646d7a40119601bbe838757b
['3c0e6f8b2c17462198d4a260a8569205']
I have a custom ros node, that subscribes data from robot-joints. in order to access the joint data, I have a None variable to which the joint positions are being assigned during function callback. Now, the problem is , i can only access that variable when the subscriber is running, once its stopped, the variable is be...
7afce0dc5ce295c7166b9daea5876bf2fc4045b1b58d4f149952bab172a8c38e
['3c0e6f8b2c17462198d4a260a8569205']
I believe it might a python path related issues. when you do such binary installations, in general those packages get installed in dist-package file of the respective python either python 2.7 or python 3. And ros-kinetic uses python 2.7 for its basic commands such as roslib and rospy. So please try to check whether the...
38e013489d7805b4ffe41cfabec7bb9f395d80d10da05ee213e34de24f8d66d2
['3c34a49dd38644d58935e776bb0c113a']
You can use function array_filter, so in php 5.3 code will looks like this: $data1 = array(40, 'P1'); $data2 = array(70, 'P3'); $data3 = array(35, 'P2'); $data4 = array(55, 'P3'); $data5 = array(25, 'P1'); $data = array($data1, $data2, $data3, $data4, $data5); $result = array_filter($data, function($_item) { retur...
2ad06d387f0b574a3a0ba5eb6be62c78643e01697e2db6ce44bbc9eac5f80cc0
['3c34a49dd38644d58935e776bb0c113a']
Datepicker stores value only in input element, so if you don't have a year in format string, datepicker merely doesn't store it. Here one of jquery.ui developers says, that this is not a bug and "Datepicker is only designed to pick a full date". Anyway, I had the same problem in my project, and solved it by ugly trick,...
ad3f8fc231f7a54e181c2ba9b42db49fbb8c9049b6d9c8ec2ab6caae973c9cf8
['3c38a52dd9cb4eed8ce6e085c291a645']
{ geometry: { location: { lat: 20.012256, lng: 73.761541 } }, icon: "http://maps.gstatic.com/mapfiles/place_api/icons/fitness-71.png", id: "3e59d6a764e44c969e632c659e0d4284e7bd2561", name: "<PERSON> & GARBHASANSKAR", photos: [ { height: 1024, html_attributions: ["From a Google User"], photo_refer...
1550d39ab0c156aa3d227c268930e4e1561fc0e97f31e878c4ed8b79de0a3eb7
['3c38a52dd9cb4eed8ce6e085c291a645']
-(void)setFlagToZero:(BOOL)flg id:(NSString *)qid { NSLog(@"flag %hhd and ID:%@ ",flg,qid); sqlite3 *database; quiz = [[NSMutableArray alloc] init]; if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { const char *sqlStatement = &"UPDATE Question set Question_Flag="+flg+"wh...
7250c569f92029d642e98f5471d47ce725b6f4e3730b0c9280fcb1e80ca17f06
['3c3f922ba98d41a7be4b6091fe339fca']
you could try something like this to avoid runtime errors: if let actualPath = path, !actualPath.isEmpty, let url = URL(string: actualPath) { if let imageData = try? Data(contentsOf: url) { if let image = UIImage(data: imageData) { self.images.append(image) } } } instead of this if!...
20ac74c8a1b905b8660793439c62d71be7b7fd0a605767a29fa6322beb87d337
['3c3f922ba98d41a7be4b6091fe339fca']
Solution (based on <PERSON> answer) for SHA256 hash: func sha256(url: URL) -> Data? { do { let bufferSize = 1024 * 1024 // Open file for reading: let file = try FileHandle(forReadingFrom: url) defer { file.closeFile() } // Create and initialize SHA256 con...
7e958f757d2d2570fb1561d9854d9e03820c2b7ab9009774d48958914f76841a
['3c51cd3eda62492085ec70859a3772e8']
Sorry maybe I didn't properly explained it. v1 and v2 are positive functions defined on a subset of C( the complex plane) and I know both of them are of C2, and both log v1 and log v2 are subharmonic. Now I was asked to prove that log (v1+v2) is also subharmonic.(Forgive me I don't know how to type formulae on the cell...
44036e1e5c54ca2bdff6a2a323d578d80f794a9f9ddf791fd6029e9bb7864933
['3c51cd3eda62492085ec70859a3772e8']
I see the same issue with a Logitech M325 mouse. This is NOT a Bluetooth mouse; it uses the Logitech Unifying Receiver. So I don't think it's a Bluetooth-related issue, but more likely something to do with GNOME and its underlying architecture for storing and applying hardware configuration settings. Interestingly, th...
5992c463e8710a1e759c86ddfac2b9244b1590b24f518be1b283db8e7d24bb18
['3c5ce38a42e74c879728f10240ee6df0']
I have 6 edit texts on my screen (used to enter 6 digits) If I enter 1 digit on one EditText field the focus should go onto the next one and so on. If I hit back space on some edit text field the focus should come to the previous edittext field For this I used the below code EditText2.addTextChangedListener(new Tex...
4b553aef84eae6f4be96278a1f5920f8e18125b5ec0e2fc7ae9b07b24d2f48ac
['3c5ce38a42e74c879728f10240ee6df0']
Trying to solve a leetcode problem of "valid palindrome" below is the code . when I convert the stringbuffer to string and to lower case the string is getting printed as all lower case letters, but when I access it for comparisons using s.charAt(i), I am getting the uppercase letters as well. public static void main(S...
864a754a9f2d3e0ab8ccabdb33abaeef97ea468cf46468b0462c3e4d82e3e4bf
['3c72899cf17045ae98886ed7980bfb62']
The fix for me was to configure SQL server to allow an unlimited number of connections (set to value of "0"). I still had a few connection issues as described in the original post, but no where near as much. So I also setup a direct connection to the SQL server via the secondary Ethernet port on each server (Webserve...
d88b93ff29f83e2ab3adcba1d3dc7a777700248cae2660baf7d1f860c9677cde
['3c72899cf17045ae98886ed7980bfb62']
Allaire's HomeSite 4.5 is what I have been using for about 20-years. I've tried NotePad++ and it works pretty good also, but is a bit more difficult to use. I also tried several versions of Visual "XXX" (Visual Studio, Visual Code, etc.) and all of them are monster programs, and load very slow, even on a very fast R6...
6a55bf1a7410c7c0f91eb27a80298018860ff2f63be05e66201b0f3f6f2637f6
['3c72a584e3c247fb945e172f9773763b']
When generating worlds that are old (1k-10k years), I have a very hard time stopping civilizations dying out and every fortress I visit in Adventurer mode is abandoned. What aspects of world generation effect fortress abandonment and creation? Can you have an old world without many abandoned fortresses, or are they jus...
818e9a04c40365bd4fd247941cbe279b33b7422a897509c17ce55c67d92ea6d2
['3c72a584e3c247fb945e172f9773763b']
You can rebel if you like, but this particular train is pulling out of the station. Not only is it becoming common for lay people and "partly computer-savvy" people to use *zip* generically, but programs that handle multiple formats are also becoming more widespread. If you had simply given your daughter 7-Zip (for exa...
8bdb336904805879b19f2271c70d66393106ea953f8f781f332064824504146e
['3c837a0145b146bda2c9fbf9753fb65a']
Django's manage.py runserver by default forks a child process from the main process. If you add print('PID:', os.getpid(), 'Parent PID:', os.getppid()) to your __init__.py you will see that you get 2 numbers each line, the PID and the parent thread PID. The output should look like this, more or less: PID: 31019 Parent ...
54a7ec10673bc2863e9234c1154b3c74bf18091627ee42ed6c0c8d63acf5f81f
['3c837a0145b146bda2c9fbf9753fb65a']
I am a bit confused regarding metaclasses in case of multiple inheritance. Consider the following code: class MetaClass1(type): def __init__(cls, name, bases, dict_): print "MetaClass1" class MetaClass2(type): def __init__(cls, name, bases, dict_): print "MetaClass2" class A(object): __met...
e685b39dfb86bffe8809c1a194ac5647faf7f92737b88881c8c70d7d239687d1
['3c8e477e72d0471a8663be4c75aeb4fe']
I am trying to create a RadioButton in android. My requirement is that the label should be always left aligned and icon should be right aligned(evenly distributed, as first item in attached screenshot). I was able to achieve it. But this is not working when the label has no character and only digits between 0 to 9. I a...
f749b6ad61f859dc1eb25ec79b015ffdd07a0d84fb1aca4730d9c4393c023aec
['3c8e477e72d0471a8663be4c75aeb4fe']
An optgroup can't be made selectable. Only mat-option can be selected. But we can use a workaround by keeping all items in the select as mat-options and add some custom style to differentiate groups. You can refer the accepted answer for a similar question from this link. Or you can think of using ng-select (link), Gro...
4638ed294dc7b50fc24aa497a50348d9cd939d2d141a0c25e3571fbb26986198
['3c99eb58eb8e4ef089d9b8d60e56d26f']
This is a question I came across while going through some questions on alchemy puzzles. It seems pretty hard for me.The question stands: You are studying alchemy and want to create the philosopher's stone. You have a grimoire full of recipes for the transmutations. Being methodical, you numbered all ingredients startin...
e5bb1440dc94948248ca6f10834ce872aba7e8503bbf2fba06d9a77c232ce887
['3c99eb58eb8e4ef089d9b8d60e56d26f']
I'm trying to compile a kernel module named DAHDI in a FreePBX (RHEL). I get the following make output error: You do not appear to have the sources for the 3.10.0-957.21.3.el7.x86_64 kernel installed. But I don't think that is the problem, cuz I already checked my kernel version, headers, config file and they all matc...
c89aa2b49837635030a5798f6559dba5e00dfa4e21c41af6d6dbba04efd202e4
['3c9b9c67d7794d0ca07b8177b555aee2']
I guess if I understood how the circuit in an outlet switch combo works I’d be home free. IF you connect hot to brass side of switch does that provide power to the outlet too, even if switch is off? If so, then I cap off the red as suggested, pigtail black to brass switch and brass line gfci. Then I pigtail white to...
a2d540d1370ad858ffe75f5c49871b84cf4e71a1cc4d336c00019c1431909fe6
['3c9b9c67d7794d0ca07b8177b555aee2']
Wow, this is great, thanks! Only thing I could use clarification on is, aside from removing some of the autogen javadoc, what can be done with Character class? It's for the most part just a giant container that organizes the various stats and container classes, the only thing I could think of doing is making some large...
ff4989f0dba741038934f69a421ea98df47bf665ea3ee0f9c46ba622df3322dd
['3c9f13c6eef347449e2cf061d6755eaa']
Thanks <PERSON>. As I mentioned in my comment to your comment above, we van just totally drop the "cheater" word and choose "random selector". Another clarification is that I'm not seeking certainty in my decision, I just want to have an idea about the highest possible ratio between ones with odd answers, and those who...
47f480554280ce9c111effdce8fd600d33e8cef027dc22b606e67336fb223824
['3c9f13c6eef347449e2cf061d6755eaa']
@whuber my question is just a hypothetical question to illustrate the scenario. But anyway I can modify it to be deciding if the color of a given cube is black or white. If 999 said it was black and only one said it was white, do you think that there's any other possibility that this person is either blind or selecting...
45132c00ca7f6cd5031e038d6e2d0eb33e95ff56198faae42cc4504900dd1322
['3c9f5501972548d887a18ce4295d0f5b']
i'm trying to send a request to a webservice. For the requet i'm using this code. The testMessage must be correct, because with SOAPUI the same request is working. StringEntity stringEntity = new StringEntity(testMessage, "UTF-8"); stringEntity.setChunked(true); String endpointURL = ...
f5abf40434449936204c2b2808debfdad19ee100bf78b290d32c63a9a7da8f92
['3c9f5501972548d887a18ce4295d0f5b']
i've got a question for my study stuff: I have to decrypt a file(src-cipher.bin) using C. I have a corrupt key corrupt-src-key.bin (an initial vector is at the end of the file - dont know if i should this vector- maybe dont have to). final decrypted file should be a *.pdf one and it was encrypted with Camellia-192-OFB ...
a388095032701d352c2d5e169984a340622bc91c6f3bfd69b2b7372b955de99a
['3ca9c59902d345659b744bb53fec8d69']
There are two types of contracts: Contracts, created by ordinary addresses Contracts, created by othe contracts And there are three possible ways to find type 2 contracts: Check every block and every transaction in a block. Take “to” field of a transaction. Get code at address “to”. If code is not empty, than it is ...
e04071b534671dfe581b27b1c49e420373e27cab825d55c835d54dbcca350450
['3ca9c59902d345659b744bb53fec8d69']
The filter text field is a very neat idea. And the more I am fiddling with my mocks, I am moving away from proving sorting options for Location. So I am deciding just to allow a sort by the 'Name' which would be alphabetical Up or Down. The filter txt is kind of what linkedin does too. So I think I will have the top 5 ...
4fbdf8d83683654d162e633caa8c6e1dc56e8d726767f6036fb4a0f214257909
['3caebd437be5498ea8500dc1c94a50c7']
I'm trying to create a simple discount calculator. These are my variables: percentage = float(raw_input('Percentage: ')) price = float(raw_input('Price: $')) discount = price*percentage finalPrice = price - discount At the moment, I have to enter "0.50" to calculate a 50% discount, but, I'd like to simply enter "50". ...
d883f9abbda843082307b51b00898f19f97539a537725495be330c1c80b1c0ab
['3caebd437be5498ea8500dc1c94a50c7']
Tried searching for this and I couldn't find an answer. I have a container set at 728px with two divs inside of it, and both divs are set to width: auto;. I would like to center one of those divs, and have the other float on the right like in this example. The closest I've gotten is using text-align: center; for the ma...
b981ff6c1770b64fa0c6ddc2c2e7bf1d9d597b5d5fa18a69cff1b9701eec18b9
['3cc3a39485c0411098b4c0dde4c9b1b2']
You can run a message queue on the parent, which should also allow it to not get overwhelmed by the children while processing the events in the order they arrive. Furthermore, you can expand this to a simple send-acknowledge model, where children will wait for their message to be acknowledged, before sending further me...
862b042b91b63000c3d6a0e60f209128c72aeafac8ed5eedcb04b39d6c885f01
['3cc3a39485c0411098b4c0dde4c9b1b2']
Presumably these subnets, i.e. <IP_ADDRESS>/24 (?) and <IP_ADDRESS>/24, are part of your local network. You will need a Layer 3 device to perform inter-VLAN routing. This will be a router with Layer 3 VLAN interfaces, in the Cisco world they would be SVIs, that would be acting as the default gateway of the subnets in y...
548f39fa64ae2715a96154e2aa4066f510d1d6a212ba398b1ec60d30a2eff6e4
['3cc81385f0fa474eb67d72e8a007dd1c']
I'm moving the streaming app from flume to kafka. So needed help since I'm new to kafka. I've a windows machine on which CSV Files are continously being generated by IOT sensors at a particular location say D:/Folder. I want to transfer it to a hadoop cluster. There are millions of small files being generated daily in ...
2210c07e02dc869771346c172b355d503618fecf8d539dc4c2171e491ce5eca7
['3cc81385f0fa474eb67d72e8a007dd1c']
When loading 16 GB data using pig store command into Hbase, the HRegionserver gets killed. It throws OutofMemory error. PFA the screen shot of the Hbase logs​. We're using 4 datanodes of 12GB RAM each. Any pointers to resolve the issue. Tried increasing HBASE_HEAPSIZE to 4GB in Hbase-env.sh without any success.
0be1a50cd3b2e9cb71a57fd8056631b6a2ba73f0c29ecdfa36ce6fb00cacbd1d
['3ccd2d46b14b481e9e5c7af8d8aacd84']
You are currently using page.click('div[id="logOnFormSubmit"]'); There is no div in your given code example with that ID, but instead there is a button. You'd need to change that line to reflect this. The final code would look like below. (async () => { const browser = await chromium.launch({ headless: false }); co...
b1f6a44bf5e766ef2df2b6a4bf4d5136d23b718769183aed9c26b4527ebd23f1
['3ccd2d46b14b481e9e5c7af8d8aacd84']
You should be able to start Expo in offline mode so that your internet shouldn't be an issue. If you're using yarn the command would be yarn start --offline. You may also need to select Local once Expo launches. Source: https://github.com/expo/expo-cli/issues/101
fbb6b48b3165563be5b57cefa35bb433239628ff2cf46fc758b814ad0f9c2187
['3cdb0941090a4eeaaae9910469ff59fa']
I have a huge network of PCs that are all in a same domain (active directory). I want to enable WMI service and relative port, then set the domain's administrator credentials to WMI credentials over my entire network in the group policy. For the Work Grouped network I created a batch file that does what I want but for ...
bc535d2f0186b9b6cb6272dec475d87fa4ec8ec58751d077dea11431e462ba6b
['3cdb0941090a4eeaaae9910469ff59fa']
Well, thank you @WS2 then, seems like I managed to learn English somehow, barely. But I thought I provided enough information to make it clear, but I'm probably wrong... I tried to ask here because it seems like this is like, a broad question. Like, which term defines the method of study that concentrates on modeling (...
4ab8d0a08508e159fe2c9f38789e977d6c8011248e6ff59fa6fe2c4506c0d798
['3ce01a30079a40b392d0f401628b6f94']
I am fairly new to Verilog and FPGA development. I am currently working on a project to control two motors using a Basys 3 board and an H bridge. The module is currently built to use PWM to control the motor speed, sending the output to the ena and enb pins on the H-Bridge. The H inputs are currently constant for the s...
f356dbd954968524e08261c889b68a4ce5d5694614b4bf85be6a51d3372bba78
['3ce01a30079a40b392d0f401628b6f94']
I am fairly new to boost python, and I am attempting to follow this tutorial: https://www.boost.org/doc/libs/1_63_0/libs/python/doc/html/tutorial/tutorial/hello.html . Following the tutorial exactly, I receive this error upon building the project using either b2 or bjam: " fatal error LNK1181: cannot open input file 'b...
2ba30202f7bf0a6b6b3a9ef24fea015f62ab13df49293c4719db9e5312e584d9
['3ce2ad72b96f450fbd1a237f3433bc81']
Look at ParallelArray class, it satisfies your requirements, but you need to learn a bit of functional programming concepts to use it efficiently. The class does not come with JDK 6, but might come with JDK 7 (under discussion). Meanwhile you can use it as a library - download the JSR166y package from: http://gee.cs....
2277990ff7ae1693caf5514d8e8e087c10e76ef91181cf315af643af26e9eb2f
['3ce2ad72b96f450fbd1a237f3433bc81']
As said above, Internal transfer are best way to start your career. If so you do not find any opportunity, then with free beta testing opportunity available for lots of Mobile application, build your reputation in testing community. Later you can start freelancing showing some testing portfolio/experience and get proje...
3de6b770b10806dcc555eded35e2e7f654ea7321d8e49b1ac9b64980c5b149e0
['3d104a44f7d84896ba99709e7895cff5']
I tried to block vpns and proxies to my website using iphub.info, but cloudflare ip’s get also blocked, so basicly no one can access my website! Is there a way to whitelist cloudflare for https://iphub.info? I created the website with php. Thanks in advance! This is how iphub looks if an ip is bad: <?php namespace IPHu...
2414996946ac90a6f8b5807190eeca08a5bd81e9b83fb1245c2dfd5337abcfd8
['3d104a44f7d84896ba99709e7895cff5']
I'm using this script in beautifulsoup4<IP_ADDRESS> url = ["url1", "url2," "url3", ...] headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36'} for item in url: r = requests.get(item, headers=headers) print(r.text) To scra...
38994aed34c2997d178d1be0dc9f17ec81a390ee5d9eddada583b189bf5cffbc
['3d157ecb3c73401197210269fd05090e']
I've got a strip of LED lights that requires a 60V supply with 200mA of draw (15w). I am curious what would be required to get this to run off a significantly smaller voltage source (i.e. USB) I don't believe a traditional USB charger would work as they are 5V/1A and there is no way to turn that into 15W but if I had...
2d07703caf3259f945a1df4e4346a1c33588e2f6c56c007ff79706d8dc9f1797
['3d157ecb3c73401197210269fd05090e']
" If employees are worried about getting shot down or in trouble every time they need to take a day off, they may wait until the last minute to let you know they won't be in." // Undersigned. I myself have been the employee in this situation. The combination of dread and the lingering hope that maybe somehow, some way,...
f77eae7fa23cfc63881d999338234d79994e0919707a6aa9a3f3a80f3c0e6ca4
['3d1cdb3b66a94639b23011017a631d56']
Suppose, I have multiple branches: feature_1, branched from HEAD of master, then feature_2 branched from HEAD of feature_1 and feature_3 branched from HEAD of feature_2. And then I discover a bug in feature_1. I fix it and commit, now feature_2 and feature_3 still contain this bug. One way to fix this is to merge featu...
dca29a0c8b359ef45f195e6f8742ca527369ef2b5f75405102a0751167fa6025
['3d1cdb3b66a94639b23011017a631d56']
I feel like you are misunderstanding a few things about working with interfaces. In your op() method you are creating an ArrayList. The type of the List is then "locked in" and cannot be changed. Even if you return only the List interface, the underlying object will still be an ArrayList. As Flame's answer already ment...
223500c0a3936f2757ec5ba99df38a1be1090a625138cedb68c8af3d7df7372c
['3d1f6ef663aa4b0e8c053ffbe8db426a']
I ran into this problem when trying to implement markdown using PHP. Since the user generated links created with markdown need to open in a new tab but site links need to stay in tab I changed markdown to only generate links that open in a new tab. So not all links on the page link out, just the ones that use markdown...
24b891247880cc82e24c762882bfdeed33030ccae859e627f74690dbb91a40f0
['3d1f6ef663aa4b0e8c053ffbe8db426a']
According the Charles Proxy page for setting up SSL Certificates: As of tvOS 10.2 it is no longer possible to trust the Charles Root Certificate, so it is not possible to use SSL Proxying with tvOS 10.2. This appears to be because the Certificate Trust Settings menu is not available (see iOS devices above). A bug has ...
50be23d5be69bdd292a34830ab07d432156e70b857e87b8a06cd5c54b43355ec
['3d21148f87de4dd6b3469b677120f204']
I found solution for the above problem. I modified my service in the following way. It works fine after the modification. [Unit] Description=/etc/rc.d/rc.local Compatibility ConditionFileIsExecutable=/etc/rc.d/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.d/rc.local start ControlGroup=cpu:/ Sy...
3819efa2038c48934edcfb0914c174504bef7d1efae82e4e938623105bc60737
['3d21148f87de4dd6b3469b677120f204']
I am new to systemd service scripts. I am trying to start my application from systemd service scripts. My application is a process that in turn invokes multiple process that includes Qt GUI as one of its child. But the service downt starting up my application. This is how my service looks like: [Unit] Description=/etc/...
2d3b486c437d37028be042be1056f261ff317853266d376b037346a360a2aad3
['3d2c3f3a4f664d5e94dc505e85f8d6ec']
I have the issue that when I'm moving my finger diagonal on my touchpad, it tends to make a zig-zag pattern when I go slow. Also when I want to move the cursor, a few pixel over to a link, it doesn't react until I move my finger enough and then it makes a jump, making it hard to hit links. I've tried to draw the patte...
5cd88bfb5119adfa1580face073cc592896e45651b1f67e5f4ed776eb1f71b16
['3d2c3f3a4f664d5e94dc505e85f8d6ec']
You should try Remote Keyboard, available for Android 2.3+. That app worked well with my Windows 10 computer and my OnePlus 3T, and you can try this tutorial which shows you how to use the app. If you don't like this app or if it's not working with your phone, you can try this one : https://play.google.com/store/apps/d...
6f04c861bf5c4111e11900dcf12e51de020aee7dc883317d924222f326e33094
['3d2de3a8203d4f58892f5c8ad19b102d']
<PERSON> I understand, really the standards and being quality-based cause a site like SO to stay at top, a piece of blame should be for me that I didn't spend the time you said to learn more about posting, I'm about 3 years in SO with just about 20 questions, I had quite good respect for most of my posts, a silver badg...
69b512bc44ec8f75028f312391a7e4a34094d357a2a78a48e3717063846d7f3a
['3d2de3a8203d4f58892f5c8ad19b102d']
@vcsjones the only comment that tried to give me an information which could help me find a problem within the post, I think this is again like what I said before, I didn't even wanted to give a single statement, maybe used some "English Words" incorrectly. e.g : Developers could have different opinions ... is it a stat...
de5bdf4c75d86e12bb3f48ed8491e85663acbd57e5603d1f21eb22a81ff923f1
['3d3fc30deb084d728d521e62d795a779']
I am trying to understand the return keyword and its functionality, however, I am getting a little confused. I have read this which has been a good starting point, but I can't seem to understand the solution to what I imagine is a very simple problem. Say I have a PHP file called index.php and I call a function from i...
b093e150c226d30dc339baa7bd23dd218200e882e87a6f03e0f45a1f78f63dff
['3d3fc30deb084d728d521e62d795a779']
I have a method that is being called, every time a user touches the screen. Once they have touched the screen enough times, the object that the script is attached to is deactivated. The script in question is attached to layouts that I am looping out based on dynamic data. So say I have 10 questions, that means I will ...
d0bb68c4ff98baa0f35f7e63f35daa2192d15d7821c0540b83eb62a0a1efd6bb
['3d58064c5d6a407095a18fc7d0c2c810']
timeSlot=[]; function reduceTime(st, et) { var obj={ start_time:'', end_time:'' }; if (st.indexOf(":00")>0){ obj.start_time=st.replace(":00", "") }else{ obj.start_time=st; } if (et.indexOf(":00")>0){ obj....
936d61802960b1f4cd4d47dd5de781e67c86d541de24927fe649fa339c365415
['3d58064c5d6a407095a18fc7d0c2c810']
I have a value $scope.time = 13:30:00 (in 24 hour format) Now I want to change this value to am/pm format using angularjs filter like <th class="text-center">{{time | any filter}}</th> Output: 1:30 pm Is there any built in filter or do I have to create custom filter? how can I use "date" filter to solve this i...
1d4bd552b105ca64aece487e64dc997de4a257b53784d9c02255ddf73a9dbc44
['3d5aecc9ed2947a6ab2781f040b0ff25']
To clarify. We have a linear mapping for $Bf(x)$ that goes from $L^2_{(R_+)} \to L^2_{(R_+)}$. We have $Bf_{n} \to Bf(0)$ when $f_{n} \to 0$ (True for all linear mappings). If we can then show that $f_{n} \to f$ we are done from there. This is true due to density (I believe.) Unfortunately at times my teacher ran away...
4293a33cf4088d506113ef9dd8b73faa22369f642b6a3338d5e0db38fddad217
['3d5aecc9ed2947a6ab2781f040b0ff25']
We have that f(t) is undefined, but is smooth so is differentiable. The issue with this is that this diverges as $x \to 0$. For the purposes of the question as a whole, it needs to be shown to be a bounded operator (The Bf(x)) in $L^{2}_{R_{+}}$). My teacher hinted that this should result in a constant and use of Hol...
2091c02d192c67199e315dbdec4f33aa41c5f64eab13b004ee957cbb69b4b2ec
['3d5c0914fc7d45b095ed0e6a82cc6d79']
i have a collection view, with cells in a size of the all screen. i'm trying to add spacing between the cells, so when ever i scroll between the cells there will be some space between - as in the iOS photo gallery, when you scroll between full screen images. obviously i have paging enabled. but for some reason when i s...
93683087c527936950d93bc1c6e47bf52801074a4c4b8f89c243fd3903d32049
['3d5c0914fc7d45b095ed0e6a82cc6d79']
i'm having issues with the watch os2 handoff, specially when my iPhone app is not running. what i see from the launchOptions is: UIApplicationLaunchOptionsUserActivityDictionaryKey = { UIApplicationLaunchOptionsUserActivityIdentifierKey = "xxx"; UIApplicationLaunchOptionsUserActivityTypeKey = "c...
f2d92219664f01334e844d3cb8275195e54d0b066946c54cdbee4f562391de40
['3d64046803004b67888af5a30e1b706d']
in my case i solved following steps: There are times when you do not want to change ownership of the default directory that npm uses; for example, if you are sharing a machine with other users. In this case, you can configure npm to use a different directory. Make a directory for global installations: mkdir ~/n...
8a3a7cbd02f4302ee82e31a7cc3e2eb4abf58dec7fa2fcdecbf4af4e75a46be0
['3d64046803004b67888af5a30e1b706d']
The new value of HTML Fields, must be set before append From what I understand, you're trying to initialize fields after "amount" as off, if that's it: Set "disabled" in "Select" created in htmlcard The new html instance created in jquery is not set like a disabled <select disabled class='form-control w-30' id='NoTwo' ...
149f7b45a6efacda22aec3e12878c34ef3f35682f34c6f76ca0cf3983303aad6
['3d7bf4b92de049159864cc0d45e5b87c']
Uma vez que existem criticas a inspeção de normalidade usando testes formais, uma alternativa é fazer inspeção gráfica por meio de histograma e ver se ocorre a forma de sino na figura resultante. O comando hist(dados) faz isso. Busque imagens de histogramas distribuição normal e os use de referência. Se o seu histogram...
8bb53f9f7b72948ecf1e88792b2d02638074fc065c00c1ba3f6c5bf707f3d697
['3d7bf4b92de049159864cc0d45e5b87c']
Hi! The main problem is to find a graph with 3 vertices or more in which <PERSON>'s algorithm run at some vertex will find a maximum-weight spanning tree. The problem does not specify that the graph needs to contain cycles, so I guess your comment about the A-B-C vertices is a right answer. I am still curious though to...
dc589b4e8fcdbf39e6c1235cb5e56088831a752d94742a704a23ac83649cc255
['3d978dbc55d44a81bf58621b243da2d5']
I used the following code for building a simple Python program which gets input from user. Name = raw_input('Enter your name: ') Age = raw_input('Enter you age:') Qualifications = raw_input('Enter you Qualification(s):') A = raw_input() print "Hello" +'.'+ "Your Name is " + Name + ". " + "Your Age is " + Age + ". " + ...
93c0078c201a56b59b4d314dee3ffe5380c5b9ec5a90a41ffbf793208b059f3c
['3d978dbc55d44a81bf58621b243da2d5']
I am stuck on a problem of a aligning a image next to a division in HTML. Below is the code. I want the image to the right of the division but I can't seem to get it. <h1><u><center> <PERSON> </center></u></h1> <br/> <div style="height:1000px; width:500px;"> <PERSON> (20 April 1889 – 30 April 1945) was ...
40947800f4c953d9874c15c1c18611ce3b6c5ba79a59d3709583b7fa4de72cf0
['3da5a7e3b7434b8a892a0662a9429379']
i have a difficulty and its about display:table , i was working on a one page website and i have a navbar and a .product section below it , now inside .product the section , i have a carousel and i want the carousel centered vertically and so i have used the following technique <IP_ADDRESS> @media only screen and (mi...
0ef5523cb0c0e908aaae3256a17698c78e2d9bf037315828516f6d18eb375746
['3da5a7e3b7434b8a892a0662a9429379']
I have the following grunt file: module.exports = function(grunt) { grunt.initConfig({ cssmin: { options: { shorthandCompacting: false, roundingPrecision: -1 }, target: { files: { 'css/output.css': ['css/one.css', 'css/two.css'] } } } }); ...
b53002f0b79e4f09e2993fa60e06f051396851e130a009cf6887067eb0898386
['3dabb4caf72140a888b2a23d5789e7b2']
As shown in code that data are read from CSV file and for applying conditions on same column inner for loop is used. This will extract data with all rows according to condition given. with open(fName,'rt') as csvfile: data = list(csv.reader(csvfile)) print(data) df = pd.read_csv(fName) print(df.loc[(df[...
600cece4617c970ac0f379cccc7f278e99d4c0e0f1c8335fd884c245b1364309
['3dabb4caf72140a888b2a23d5789e7b2']
I have multiple data selected from checkbox bs table and i want to pass these data to the controller and redirect to another page. Below is the code which i have tried: View: <script type="text/javascript"> var checkedRows = []; $('#eventsTable').on('check.bs.table', function (e, row) { checkedRows.push(...
a0d747317a4d6f12e5418a5d527ed46102675e4af9693e9039f6fb10a66352cf
['3db9997c103e4a15b9358255f5df55be']
The "col-md-6" elements need to be within an element with class="row" for the bootstrap layout to work: BOOTSTRAP GRID SYSTEM <div class="row"> <div class="col-md-6"> <kendo-chart [categoryAxis]="{ categories: categories }"> <kendo-chart-title text="Gross domestic product growth /GD...
cf1ca8330269e07d74284e6b2d3322027fba6293beff3258caf451d357d3cb11
['3db9997c103e4a15b9358255f5df55be']
The provided code suggests that you are initializing new DropDownList widgets from the same HTML element every time, and also that new DataSources are created every time. You can create the two different DataSources outside of the functions, and then in the functions bodies use the DropDownList setDataSource() method ...
9506c26c1537eac4cb8b34f7b7c5bd2ec6cb19c56081bb41660988b62764ebde
['3dbc24624dc64b76b136684ec56e7f38']
Can someone help me out figuring how to write a model adapter for geddyjs or expressjs web frameworks for NodeJS? I'm following this tutorial but they persist data in memory, I want to know how to do it with sqlite since I'm starting to get to know it. Thanks http://geddyjs.org/tutorial.html
1a4edc9f3ba417d4baa8256a5047124a7e2735b7c1165315c1aae68a16d2b7ef
['3dbc24624dc64b76b136684ec56e7f38']
Interesting, I was not aware of this kind of things. I looked it up very quickly on wikipedia and they say: "It operates by putting a short circuit or low resistance path across the voltage output". But I don't really like having a short circuit on my power supply either.
7ed2a4a643790333e8c83b4f6807875d990c0cf17e010f1ad58990d06407f31c
['3dbd8cfe0fd348e4b2a632663eec0329']
I'm passing an ImageList to a usercontrol. I have read that ByVal allows to change the object, but only ByRef allows setting the object to something else. In my code I'm settings the imagelist to Nothing at some point in order to know that the imagelist has been destroyed. Would it still be allowed to pass the imagelis...
595d4425ca07696e951a37d79ec7bb59888b43522aa51469c3a6bf1986e3b6fb
['3dbd8cfe0fd348e4b2a632663eec0329']
I'm creating a grid usercontrol, and I want to show grid lines. As a reference, I took a look at Excel. Between Excel cells there are thin grid lines. Now when it comes to calculating the grid lines in my usercontrol, I wonder if these grid lines should be drawn as a part of a cell so that they just draw over the cells...
39b53b75098b4a4d0a64d935f54b51e46a16b834ff203168d78477cd1e481b96
['3dce3d1c86b649aea1d5ca2d5da7da5f']
In my fragment I have material search bar with navigation button(humbugger). How can I call Navigation Drawer which is in main activity with that humbugger button in my fragment Do not get how to handle it inside DictionaryFragment MainActivity: DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);...
2d0223ce4df8cd48140b040163d1ff3d867a0bc491ca0c045d84859346707742
['3dce3d1c86b649aea1d5ca2d5da7da5f']
I have text that comes from SQLite database to my onBindViewHolder in this form: Hello I am {<PERSON>}. I want to be able to adjust size or colour of the text inside {} and hide those {} curly braces from output. So final desire to have text like this: Hello I am <PERSON> For the first time I meet with Regex related th...
b779997e243a0f64a62a1e4a7507616d17142c7bef7d948dbc6d6a1810329000
['3de0d9b5cdf443c298ae0a0960048d0b']
The sp unit of measurement is used for fonts and is pixel density dependent in the exact same way that dp is. The extra calculation that an Android device will take into account when deciding how big your font will be, based on the value of sp you use, is the user's own font size settings. So, if you test your app on d...
26cf9dbf02ca6458e8832945092144d98ecedcf3f7ebae6e6aebdcb29fee3777
['3de0d9b5cdf443c298ae0a0960048d0b']
The problem here is that you say to java do something if value 1 is true or value2 is true or value3 is true,and then you say on the else to do the same if using or.You got to understand that you need to use and && in order to help java to understand the else parameter.
8d185bcb141e52a88077d0a379d9ee0ab342539c3d7608be40e8c2d8afc5ef5f
['3df56ebf5bb0466c98f59b5093874934']
I am trying to bind combo box inside of a list view. Here is the Xaml: <UserControl <UserControl.Resources> <Style TargetType="ListViewItem"> <Style.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="true"> <Setter Property="IsSelected" Value="true" /> ...
1c7fd0fed809b0ebd7dc82e5b74c73243e041658c78933dfec3f4567946160a2
['3df56ebf5bb0466c98f59b5093874934']
O.K I finally found the problem ! It wasn't a binding problem. this is very silly. i had this code public void GetItems() { _devicesDiagnostics = new ObservableCollection<DeviceDiagnosticsVeiwModel>( (from dd in _dal.GetItems() orderby dd.Device...