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 |
|---|---|---|---|---|---|
8d9b825b9bdccaad73e014df55fde5fe9168f1a34cb57435f6f2afa00b73c39d | ['ab0cc069595448b2ba92e3f0aade1644'] | Could go either way. It really depends on the specific token, whether it is just to save looking something up or a few keystrokes and isn’t likely to ever change, so that doing the replacement before ever render is a waste, or whether it makes sense to do so because it’s replacement is in any way needing a current dyna... | c4ef38b8d8dbdfda3f98559a69aa94f960b75fb0dee2c3d68ea4ebf549fba418 | ['ab0cc069595448b2ba92e3f0aade1644'] | The only thing I don't like about this Q&A format is that I can't select two answers. Both answers here are very good. I liked dg99's explanation but your links are also very important. Then again, I think me giving you a sincere THANK YOU is more important than a few extra reputation points :). |
193e3451dcc327a4ef1945fe1d0d6061abd6a612126bf0555b6a95ee284bc5a2 | ['ab115687d40744e2b4a407c22f1684a9'] | Disclaimer: this question is directly related to programming exercise from a text book.
I'm working on a C++ programming exercise from a text book but could not figure out how to get it working. Hope if anyone could point out the error in my code. Here comes the problem...
"Use an istream_iterator, the copy algorithm a... | c0075d978b4f78a4e54be8c478e934968bdb1d8e85177ad331ea59c758619167 | ['ab115687d40744e2b4a407c22f1684a9'] | I'm having difficulty wrapping my head around this odd behavior of Java inheritance.
Say, I have Parent class with private method method1. Then there's a class Child that extends Parent class. Child also defines method called method1, but it is public. Please see below for example:
public class Main {
public static... |
b83652a844541e398e593aca77c89941e236f28c83f5fba4772964f2172dfd26 | ['ab165b61f047470e9f15a6b345f90714'] | I was wondering what kind of method I could use to directly embed videos or pictures contained in twitter tweets directly ... For example .. below is a tweet from <PERSON>
President <PERSON>: "Right now, we have a real chance to reduce gun violence in America." http://t.co/tmCoUsPyyB #TimeToAct
The link that starts wi... | 50076651bcab40f7f449a6d4f32bd5f042c965c04d1ec4d20501ae6dbc30fb38 | ['ab165b61f047470e9f15a6b345f90714'] | How can I make sure that two commas are not entered in an Array .. this is for a web application that generates an array from user input and it's a text field .. I cant change it to anything else.
example .. var names=["Kim",,"Andrew","Ashley"];
in this array , we have two consecutive commas, instead of one .. how can... |
5f6e45148b6ae9130c9eefa368e2a946f3b61131eabd2df63ed355be33bb454e | ['ab1e1e1cc43846e1be2c8b9c8feacb06'] | I have a oData model with entities : Order, OrderInformation. There is 1 : 1 an association between Order and OrderInformation.
Now in the view, based on a value in OrderInformation, I should hide / display a button.
In the controller, following logic to get the value of OrderInformation->appUrl does not work but I can... | bfa0d65cb9b0b0cb29e1f4dad692bbe12edf8bd7ca8bb60da6158f52c6f4aae5 | ['ab1e1e1cc43846e1be2c8b9c8feacb06'] | I am trying to implement a Variant management in SAPUI5 using Personalization service of sap.ushell.Container. I have written functions to Save, Manage(delete, rename) and select Variants from the drop down. However i see strange behavior when i select a variant in the method mentioned below.
onSelectVariant: function ... |
4f98635d2ca9ab94bea1f49b228f123e62fa0b2a4665514db43a3239cad6dd1c | ['ab37bd27e82e49cba99d7a5e7d87de4c'] | Hi I have Navigation based application in which there is a timer in one view. (View like : A, B & C)
I have timer in C when I start timer it's working fine but when I push back to any view and again come to View C it's not showing updated values.
here is my code .
App Delegate
-(int)updateTimer
{
timer_value--;
... | 0cb28e9fcc2f257a7c58add8a803c6bbf905ec539ee08a8dec50e33ef30f7f1c | ['ab37bd27e82e49cba99d7a5e7d87de4c'] | I am very new developer for Android application so please ignore if there is some technical mistakes in my question.
I have five screen (Home, SR-1, SR-2,SR-3,SR-4 ) in my Android application and I can switch any screen at give time.
When we are pressing device back button it will take we to the previous screen where ... |
3a4bc3497ce3be300cb7cbb7593735b53cea427d0bc1169787c7f742ebefb585 | ['ab57d0881f5e4edbb3bae3aa650a5121'] | I found out the issue thanks to http://vkubushyn.wordpress.com/2011/05/31/smart-gwt-restful-spring-mvc
Had to use Spring's InitBinder
@InitBinder
public void initBinder(WebDataBinder binder) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
dateFormat.setLenient(fa... | b31ef157788d9bc7dc8f55f0f7fcff2fc6fb553ae1ebb33c25ad72594e81c9ff | ['ab57d0881f5e4edbb3bae3aa650a5121'] | I am trying to capture error messages in my Java code from stored procedures in Sybase using RAISERROR, but nothing is being caught, even though when I call the proc directly I can see the error is thrown.
I understand that Mybatis-Spring
translates MyBatis exceptions into Spring DataAccessException
So I have coded ... |
90c650bf4bc3a0c9f7f6e2b362f92ea02540d3a964227df9fafe17798422e021 | ['ab58112ec5364bbe8754919511e958fb'] | I am given a string of characters that I have to encode and decode using the ideas of the huffman tree. The original string of characters is uploaded as a file, and the return for the encode method is a new file containing the translation table and the encoded message, in order.
Here is an example of what an output fil... | 9bbcc49f6b56867939dc39bbaed130d34b4573e9a209144b3973ce3d9d276c09 | ['ab58112ec5364bbe8754919511e958fb'] | I am working on a code that puts new elements on MyStack if they are unique. I had to copy and paste the node starting code, so I'm having a bit of trouble with an issue. I keep getting two error messages, even after trying various workarounds and I'm not really understanding why. I've even tried using some helper func... |
3105e3d503d5377d71909502c171b8327fb2221444f9efbb47d6ccc4a8d1b7a2 | ['ab6601e3ee694e4e845686fe9d524ece'] | Say I have a class like this:
public class RegularStuff {
public int getAmountOfStuff() {
int stuff = getAmount();
return stuff;
}
public int getAmount() {
return 10;
}
}
Now let's say I have a unit test like so:
@RunWith(PowerMockRunner.class)
public class StuffTest {
p... | 7984f7f237a8a232576c53638ab89d0980db5688f596522ece452644bbe0fb98 | ['ab6601e3ee694e4e845686fe9d524ece'] | So let's say I have the following HTML:
<select ng-model="MyCtrl.getCargo().handler.cargo"
ng-options="cg.name for cg in MyCtrl.getCargo().handler.cg">
</select>
And cargo looks something like this:
this.cg = {
cgCategory: "",
cgName: ""
}
Both cg and cargo are getting their data from an external json... |
d3cb9cf964ac09af09230df6a95478de9645d17adf63430b89a0255ec6d02768 | ['ab854c849bfc425083bfb71be9de837d'] | <PERSON> Many thanks for the topics. I'm already familiar to most of them, and although the advices there do helped me along these months of uncertainty, I did not find them correlating too close to my specific problem. You see, my worst fear is of being seen as corrupt because of the data issue I had... I did not find... | de70689b98673ca487506134559e05ee9925caf566176c84e4d2b8d6f558f0b5 | ['ab854c849bfc425083bfb71be9de837d'] | <PERSON> the journal does not exist anymore. But apparently it used to print what they call articles (with no author name) with various reviews in it (from a number of authors). Basically, a book. So, from what I've seen, they had used one of these articles as a book, and the authors of this book, which is a compiled o... |
a0fb503f62d4bd47643e8c71684b2da154d270df995aab45690e438feb8f52d0 | ['aba32d91e30447e1b40412a8aa466b65'] | I have the following rule set configured using UFW on Debian Jessie 8.2.0:
Status: active
Logging: on (low)
Default: deny (incoming), deny (outgoing)
New profiles: skip
To Action From
-- ------ ----
20,21,22,53,80,442/tcp ALLOW OUT Anywhere
20,21,22,53,8... | 50adec47f98c1cc4da5a5bb413322c81fc41f99a98b9106bb7e80859d0c2c692 | ['aba32d91e30447e1b40412a8aa466b65'] | Seems you didn't understand it. The *species average lifespan* is in the order of 1 to 10 million years, with mammals taking the lowest margin (1 million years before going extinct, on average - see https://en.wikipedia.org/wiki/Background_extinction_rate). Now you suppose our intelligence will allow us to survive much... |
d73c9e7e5dbf07951002372ea57e63807e66c70d0854a4762a88fd529885e3bc | ['aba6b79dbad540f9bf3b39e457bba980'] | Thanks for the responses. The image textures themselves are fine. I am evaluating the materials in the rendered view it's just that it looks similar to the material view in this case and I wanted to remove the effect of lighting which I've played with to no effect. That being said, I am beginning to think that the ligh... | 12a513214e3900563a21e42b7e88e49b9d8751261613fa8ff885c41da44b64bc | ['aba6b79dbad540f9bf3b39e457bba980'] | <PERSON> While I agree with your assertion that no native speaker would use "All the flights having been cancelled..." in conversation, I can see it being used in something like a retelling or account of a day's events. I agree it's still a bad question, but there is a context where the "correct" answer would make sens... |
4f6856c92372724a27240a6147c29447ebf3cb469707c12c20c82f3f7e02c31f | ['abab8c0e90c44a9989312be1e5fb1f6c'] | Не соглашусь с аргументом по песне: для специфического жанра (как саундтрек к [Производственному фильму](https://ru.wikipedia.org/wiki/%D0%9F%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D1%84%D0%B8%D0%BB%D1%8C%D0%BC) ) или песни-пародии, отличное слово. | 6c1bfa8ce7f5bff9edc74118c90389bfd6c176e5b2dc3e0c793d644e99654eed | ['abab8c0e90c44a9989312be1e5fb1f6c'] | Согласно Д. Э. Розенталю, Параграф 104, пункт 2г:
Запятая перед союзами и, да (в значении «и»), или, либо не ставится, если части сложносочиненного предложения:Источник: http://rosental-book.ru/punct_xxvii.html#sect104
...
г) выражены двумя вопросительными, или двумя восклицательными, или двумя побудительными предло... |
26f096e81681c94828cf3be7d180d6234e0c3085dfb8d21c658e67d05a27f30f | ['abac94ca92fa479e811d9184cb7ef7dc'] | I'm using Zend Framework to connect Google web services (i.e. gmail) using OAuth. The following code works okay; but it cannot detect denied access. For example, when the user hit "deny", I'll get an error saying "Could not retrieve a valid Token response from Token URL: The request token is invalid"
Here's the code:... | 04417c599cf6740b16b4efb483d13ac961bafef2166b4a5ccf58be6aa95ef696 | ['abac94ca92fa479e811d9184cb7ef7dc'] | If I receive an email from A.com without DKIM-Signature in the header, how could I know if A.com is using DKIM?
I am trying to figure out if a domain is using DKIM, but if I didn't or can't receive an email from A.com, how could I konw if A.com is using DKIM?
|
6d3df3dcaf81f69733ab3fbaccbbdbe9c8d556ae24ef35a5baa832217d4f400e | ['abc459eeb76e4be6b4eca1484e6dbd73'] | I want to show a multiple select box that uses a placeholder (nothing unusual). I've prepended a blank item to the list, which enables the placeholder to be displayed, as expected.
<select id="county_id" name="county_id" multiple="" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true">
<option value="... | a075e0b980717fff4f3b751998bee4fa94233276288a6c0fffb44f1af2014ca7 | ['abc459eeb76e4be6b4eca1484e6dbd73'] | To bind radio buttons to boolean values instead of string values in Vue, use v-bind on the value attribute:
<input type="radio" v-model="my-model" v-bind:value="true">
<input type="radio" v-model="my-model" v-bind:value="false">
I'll leave it to you to figure out how to match these values with your backend data.
Check... |
e46b847c69db093207b9da2dfb10e5979ba42a35807b6d7c4b3192a69b0e90e1 | ['abd04b03455743e39d3b6ac521d98a07'] | OK this segmentation fault is the root cause, actually my rPI2 is ARM6 and geckodriver is available for ARM7 only:
https://github.com/mozilla/geckodriver/issues/796
https://github.com/mozilla/geckodriver/issues/560
So I have to go compile it for ARM6 or use a RPI3.
Unless someone already compiled it for ARM6?
| 8395a4d2da1338b5d5e016f587fda3d782cb32e38fb1556cd7384846e55500f0 | ['abd04b03455743e39d3b6ac521d98a07'] | I have the following configuration:
Raspberry Pi2 with Stretch
Python 2.7 with pip installed
Firefox 52.9.0 (from apt-get install firefox-esr)
geckodriver 0.17.0 (from https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-arm7hf.tar.gz), copied to /usr/local/bin
Selenium 3.4.0
So ac... |
4fbb1e3fed0f3889a76385360631b97e95eae03a7f7bf9a037bc29ef9a35c6f1 | ['abd0a12c56644b34b290f0718d2f40d9'] | I'm developing an app using Cordova and the camera plugin by cordova.
I'm having an issue where, when using the photo library as an image source, if i select an image over about 3mb, the app crashes.
I have found no consistency other than file size to my crashes.
I have added a few other fields and conditions to both t... | b45f225a9a8a4f02409fa9185d300ff2463bf6c1284dc7aa3250e991ffd3b840 | ['abd0a12c56644b34b290f0718d2f40d9'] | Im developing an android app with cordova and am having some issues with the soft keyboard. (using this tutorial: https://ccoenraets.github.io/cordova-tutorial/creating-view-classes.html )
When I tap on an input field on my test device (nexus 5), the soft keyboard opens and the view becomes scrollable, as expected.
How... |
9ead4cf50641a8b46625a8f334353c8e166bf4aad413cfdc324fd79c4cc564dd | ['abdae35b4d95430d8c37e61da3d67e63'] | Documenting process a little better was second on my list for probably two months. You can infer my list from the fact that I never got to it. Unlike most things I don't do, this is something I said I'd do, so I greatly regret that it remains as undocumented as it was when it arrived. Sword, ready yourself! I fall u... | 8f3e86235e23180b7cc635d3bc11a0360ff37480cd9b993c2f0d5f764c3f971f | ['abdae35b4d95430d8c37e61da3d67e63'] | I took other peoples' answers and scriptified them into something a little more worky for me. I still had to delete a couple by hand out of /usr/local/cellar.
#!/usr/bin/env bash
#
brew install gnu-sed
sudo gem pristine --all --no-extensions
gems=$(gem -v 2>&1 | grep called | gsed -r -e 's#^.*specifications/##' -e 's... |
b066b6a7b3f1dbcce0656c648fc9abd3c7cd75bb0aeb9357fc3c186dde48f6ec | ['abe81c3c6fc74dd699640a1d1b58e3ee'] | I'm really new to AngularJS and I've found that ng-model doesn't work for a file type input tag. I want to be able to allow users to upload pictures to my app, but nothing I've tried so far has worked. I've tried to use both ng-file upload and angular-file upload, but they both require dependency injection and whenever... | 84b8da7aa296af549103f8258bc5ab661beac1e8a5febc2779c6475ecb8c7a2a | ['abe81c3c6fc74dd699640a1d1b58e3ee'] | I'm creating a project using xCode9.4 and everything was working fine. My app started to update without the changes in the code so I (stupidly) used the Hardware>Erase All Content and Settings option. Now the icon for my app won't appear at all. I've tried deleting the build folder and rebuilding and I've tried restart... |
8264f8f2694db8811adb4ea762d2eeadb907343f10fb6db022a1944ea0dc69b2 | ['abec8ab8f83e441fb202c8ca204c8b7d'] | I have an index (similar to say, the Consumer Price Index) which contains a number of weighted items. I have time-series data for each of the items that comprise this index, in addition to the index itself.
Ideally I would like to find out what is going on in my index - the most important 'drivers' of change over time... | 916f7e4ce83be3421fe27ac205be8536070125bc95bd10c03d0c40adeaa85911 | ['abec8ab8f83e441fb202c8ca204c8b7d'] | We need to integrate into an existing java web application, a new feature that allows the user to compare 2 pdf documents and see the differences. So, I started to search for some already exiting library or tool (open source or commercial) that could help me solve this request.
Does anyone know if exists this kind of a... |
8b50c2fe2ce4e73039867053a3697f2bd0b257f647799016b227d07f794b1328 | ['ac060246b0784cb194eaf9c5c06dc539'] | Whenever our tests give us unexpected trouble, it's important to take a step back and re-evaluate our approach. Usually, this is an indication of some design problem, either with the code we're testing or with tests themselves.
While it sounds like using a truncation strategy has fixed this particular problem (see mor... | 865591b351cf0a2b74b63226fb85f3e5f444b76eb33216449192b404469dd273 | ['ac060246b0784cb194eaf9c5c06dc539'] | There are a number of ways to do this and it's hard to recommend one without more context.
Here's one way using a forked process and a pipe:
# When given '-' as the first param, IO#popen forks a new ruby interpreter.
# Both parent and child processes continue after the return to the #popen
# call which returns an IO... |
7a069aedfec0f572390f0a82f65ebe7a757ab80ee309867639c1071abf546988 | ['ac069573675f4a7db6a1ff50d646de45'] | I am experimenting with an Android Beacon Listening App. To simplify my question lets assume that I just want to have a local database with a list of Beacons and be able to identify which Beacons of these are currently being scanned.
I have several ideas regarding possible approaches, however, I would like your advice ... | 50d707c8fdfd50d0a8baa858c634e823ff377633ed496cba9b263c9ca096f040 | ['ac069573675f4a7db6a1ff50d646de45'] | Is it practically possible for a developer right now (or at least theoretically in the future) to develop an App that can measure via UWB, the distance towards other Iphones?
UWB technology can take different forms in terms of ranging techniques. How does (or will) ranging work in these iPhones?
|
8004d5ef310ce6408bc44aeddb764cbde3976cc55b022863224764fe9dd973b5 | ['ac10e44b970c41ef996dee1d62870e02'] | I need to create different application properties for a spring boot project and include the proper one in the generated war. I'm able to generate a war, but no to include the proper file in it. I have different profiles created, and different application.properties following the pattern application-env.properties where... | cf13b049473d56a153c1838d615a3355a5dc9d06e442160df7cfb0570b1b756a | ['ac10e44b970c41ef996dee1d62870e02'] | I'm triying to format the number on my report with Apache poi but it is not working, I tried :
c.getCellStyle().setDataFormat(HSSFDataFormat.getBuiltinFormat("#.##0,00"));
and
c.getCellStyle().setDataFormat((short)BuiltinFormats.getBuiltinFormat("#.##0,00"));
But they are not working,
I'd like to show it as 1.000,99 ... |
d17dff905a5875fe719e208a8af69deee068873b18561c0be401840da08e6d5a | ['ac15ca26681f47fe8d05f7ddd205b4d4'] | "client-server, когда есть централизованный сервер и все общение идет через него, пример Skype, ICQ".
Скайп реализован не за клиент-сервер в плане обмена временными данными (сообщения, поток аудио/видео). На сервере скайпа реализовано хранение только данных самого пользователя.
Берите во внимание, когда в звонке 3 уч... | a91d311628a5972ebbd704307e8b42e18c0564161fbf04a9c4bbaacdf327d76a | ['ac15ca26681f47fe8d05f7ddd205b4d4'] | In this case it looks as though the problem was that the condition of having a score of 2 or more was not met. Seems silly that the person offerring the bounty accepting an answer shortly after the bounty expired would not reward at least half bounty to the user. Thanks for your clarification as it does answer my ques... |
e11d5cec82b723576a1441474dcc8cd990388df0072b1d920e68e09e0b0acc14 | ['ac48ebaba31a4f678465a0b8529b427f'] | It sure would be nice if someone answered @Qwerty. As it stands, this is a useless answer. Ok, it's possible. Now how do you do it? I had to create an account on this community (which I'm sure no one wants a bunch of inactive members) just to comment here. You can't even click edit to hopefully see what markup it is. I... | f0cb2e102e0c6caea3bc9f32ee7eea85e0832e7403f31ab3aaeb672ae733ff25 | ['ac48ebaba31a4f678465a0b8529b427f'] | @TheCleaner I started out with the scripts in a share on the domain controller. I placed the files on the C drive to troubleshoot some suspicions I had about network connectivity. It's a poor practice, I know. I'll change it back to referencing the shared location once I find the problem. |
f284a9b30f7d41b077cd9775b512d73ee1b92efe697ce05eda4aaa92f7e45d47 | ['ac4c0eaf2852404abbe77b085774a870'] | How can I deserialize the following JSON into a custom object using C# and Json.NET:
[ {
'data': [
[ '100473','<PHONE_NUMBER>.0' ],
[ '100472','<PHONE_NUMBER>.0' ],
[ '100471','<PHONE_NUMBER>.0' ],
[ '100470','<PHONE_NUMBER>.0' ],
[ '100469','<PHONE_NUMBER>.0' ]
],
'e... | 4d5e2c84c7561d6903eafc36dd5f532a1e4c2fe0abefd7cc967a1fa4866423c5 | ['ac4c0eaf2852404abbe77b085774a870'] | I'm trying to make a VERY simple graph with the chart control in SSRS 2008 and, of course, Microsoft wants to make things as difficult as possible. The x-axis contains stations on an assembly line and the y-axis contains some numerical value that is irrelevant to the issue. I'm returning a dataset with the scanning s... |
bfc50d032b9b61f3d32dbc0dc6af7a206373671f228da5cf9d61a952fd61ab16 | ['ac5a0071e75f4547883a275824465cfa'] | I am trying to run a C++ program developed on Ubuntu 18.04. It uses JSON-C shared library. It compiles and runs without any problem on my Ubuntu 18.04 system. However it compiles on a Ubuntu 14.04 system but crash upon running,
Reporting following message -
*** Error in `./main.out': corrupted size vs. prev_size: 0x00... | f9cb9cb7f661966feed9c89a5e1f8e50e228a7c83e6bfaa1a3908a7dd1f0b797 | ['ac5a0071e75f4547883a275824465cfa'] | My question is related to a question I asked earlier.
Forward packets between SR-IOV Virtual Function (VF) NICs
Basically what I want to do is use 4 SR-IOV functions of Intel 82599ES and direct traffic between VFs as I need. The setup is something like this (don't mind the X710, I use 82599ES now)
For the sake of simp... |
948d3a496fc95fb5f116aa92d3e0d92937893fc3afb61762982e90c013c263a6 | ['ac5f8582da414fd2b2a7248286a656f4'] | You can achieve it, its not hard. for instance I assume that
0..4=LOW (0)
5..9=HIGH (1)
I start calculating π using chudnovski algorithm... and so i start π=3.1415.... (π=0.0001....)
At the same time as I calculate the infinite tail of π, I compare the data that I wish to send to somebody else, until I find a 100% ma... | 804c23a07d766f2b81d60e6ae2d29c590803bc79b0508de8a9c3f4774f850dda | ['ac5f8582da414fd2b2a7248286a656f4'] | The answer to this question may vary depending on the opinions regarding the various so-called "good practices".
If we take into account the dependency inversion principle (In SOLID principles), then we should always aim for our classes to depend on abstractions and not on implementations.
However we could also take in... |
4716d5d8a6938d49762557f8e597137a876c3e44898ac663b585ab0372a413b7 | ['ac6738319d264374992959b959bd89bd'] | What is the best way to make my tar log more informative?
Cat'ing the log shows what was backed up, but tells nothing about the files last update or size.
Eg:
tar cvf /dev/st0 foo* > backup.log
cat backup.log
foo1
foo2
...
I changed it to tar cvf /dev/st0 foo* | xargs ls -lah > backup.log
cat backup.log
-rw----- root ... | cbb3b881cc9f449a1422842454d1448de97ba2d4a9ac824178fcfb4cab08aa1c | ['ac6738319d264374992959b959bd89bd'] | This also works,
cdf name_of_file_or_directory
..given that you set up a custom cdf.sh script (below) sourced in the shell. For a directory as the parameter, this script only gets to the parent directory for the found directory.
Add following line into your .bashrc or .zshrc, whatever..
source ~/bin/cdf.sh
And add ... |
8a64742fdc93c9b0a816996bf3ac5acc84657f88b38faf6d02c83672f2c43cd4 | ['ac71209ebb92408da6738db85dcfc0ac'] | Do a search of "Make Money While You Sleep" and you will find that this idiom is quite popular. (I have not read nor do I endorse this book, but it's the first one that popped up on Amazon.)
This phrase would be understood by most Americans as a passive investment that may have taken some effort to get started but cont... | 2256598db53c549afbc69d772105014f801b7fa1b0a483a4be3dcff3f1fea520 | ['ac71209ebb92408da6738db85dcfc0ac'] | No! You simply cannot fight space battles like that, except solely fictitious ones. Any type of real-space ranging and detection systems are going to use electromagnetic carrier waves, which can't exceed the speed of light. If the fleets are at such vast distances from each other, the target will have moved a significa... |
c52a68747873d6a7d173179a9430715cd398611e0c23db0ab1016492a171ae7f | ['ac78e68a6d274db8b4dac8ce80609a81'] | I tried to build a QR Code scanner, when I installed on apk, the buttton didn't appear to the place that supposed to be.
Here's my code for the button:
<Button
android:id="@+id/scan_btn"
android:layout_width="127dp"
android:layout_height="0dp"
android:layout_centerHorizontal="true"
android:layout_c... | e3ab71007be27f9ba258fe0b2ae0f04f0ab3ba94b7ff0f88ff6b7429b5213899 | ['ac78e68a6d274db8b4dac8ce80609a81'] | I just follow this tutorial video:
https://www.youtube.com/watch?v=Fe7F4Jx7rwo
And in the end after we scanned the QR Code, it only show a text even if its a link. How can I change it to clickable link from url that I put from my QR Code?
Here's my code that I use in MainActivity:
private Button scan_btn;
@Override
pr... |
1e8da22b1eeb83675114e741cad00600bed3f58540951be0572afd9decf0759a | ['ac7dcee87f904dbdb46aa9b9ba43d2b5'] | I created an Aqueduct project using aqueduct create -t db_and_auth but I did not understand how registration and authentication with OAuth 2.0 works. Can someone explain how to register from OAuth2.0 and DB template auto-created by aqueduct and what steps I have to do to register and then authenticate?
| a392b47c4bb4f915b809ed336c71558b337f04d09a876ed1a9adc5892ec23358 | ['ac7dcee87f904dbdb46aa9b9ba43d2b5'] | I'm developing an application using Python, Flask and serving with gunicorn and eventlet (worker) but i can't deploy it on Heroku.
Locally the application is working fine and in gunicorn too. I tested it using heroku local web and honcho start (foreman for python) and its also working.
My Procfile is web: gunicorn --wo... |
f408402a9a47c4abdb4c967f743cdd7a2675328216b1c79c69f063180152f7b5 | ['ac7ec90013b6460bb4dc4a4865b7f3e3'] | I want to use HIPS autograd (https://github.com/HIPS/autograd) in Python 2.7 (in Jupyter notebook) to find a parameter x. My forward model (observations at given time points t as a function of the parameter x) is a piecewise function of t. Therefore, I elected to use the autograd.numpy.piecewise function. My loss (or o... | 67c61f1ce26c8ea0ff4b431d51c528435016786290ee1f359d209c8ca1a44550 | ['ac7ec90013b6460bb4dc4a4865b7f3e3'] | It seems numpy.piecewise is not supported by autograd. I ended up changing it to an implementation that uses numpy.select, which is computing every function over the entire time window instead of just the region where its condition is active. It seems inefficient, but I suppose the alternative is to write a custom auto... |
efe2c9abac93d0b11e570db2915bd835bfe4fbf9742c4e37d76a8c20a1d7f2b3 | ['ac805a46f446401694676f141a641ba6'] | I get error messages, when compiling my code. The output is next:
debug/display.o: In function `ZN7Display5clearEffff':
D:\Qt_Projects\TestProj\build-SomeOpenGLTest-Desktop_Qt_5_5_1_MinGW_32bit-Debug/../SomeOpenGLTest/display.cpp:37: undefined reference to `glClearColor@16'
D:\Qt_Projects\TestProj\build-SomeOpenGLTest-... | 356fbb992b5785544395a0dc15f839168751f13b698a8a6e23b051224f26cd9d | ['ac805a46f446401694676f141a641ba6'] | Considering your response to my question, you should add checking if the tag from the payload isn't already in the database. So it should be something like this:
new_one = Article(**payload.article)
tags = []
for tag_name in payload.tags:
tag = session.query(Tag).filter_by(name=tag_name).first()
# tag will be N... |
17c18a08bf6b5550b26520f3111ba6d5f1beff661b01204184b4b1019c841dd0 | ['ac9bf71ec5324ce189336d082b2a8c9f'] | The below is my Generator structure.
As you see, if I remove the batch normalization, GAN extremely works well.
But if I add Batch Normalization at the commented place, it shows only noise.
I don't know why. I have tried add BN to generator only or discriminator only or both too.
Even when I add only one BN layer into ... | 319f37b77cbe34bc93814c9e1defa2f81a2ddd841b0f7f2b4825c67841a0d420 | ['ac9bf71ec5324ce189336d082b2a8c9f'] |
Hello currently I am working on android and I am stuck to implement the structure picture above.
I need to add and delete the CardView in the list.
I have tried it with RecyclerView and also used NestedScrollView to avoid double scroll, but I
faced a problem that the animation is not available anymore when deletion b... |
61a8ecbb0af9c6cc8a3fc4bc22168721e243c5aa97748a7d27650e19050b93cc | ['ac9eddd2d0494cf899d0aa38ada1bab0'] | I have a table with just one row and I want to add the other rows dynamicly so obviesley I am using the function clone() so here is the code
<table>
<th>New SL</th>
<th>condition</th>
<th>Sl donne</th>
<div id="conditions" numTypes="0">
<div class="condition clone" id="lol">
<tr>
... | 541c5031efe1aaf5d8c9f307fd4054d4bf8c3d4d8eed6e99c20715bf23f8c420 | ['ac9eddd2d0494cf899d0aa38ada1bab0'] | I have a problem with tomcat every thing works fine when I try to access to tomcat from my pc but when I try using mobile or an other PC from the same LAN I can't get any response
here is my connector
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="844... |
c5f91fe2cc403dca5625492deefedd782ead36bde04dba92af68488ef509368c | ['acad7ea8bfdd436b97c44ab71a5fa51e'] | I was going through HiveMetastoreBridge code in Apache Atlas and encountered few doubts.Pardon me if these questions are very naive.
HiveMetastoreBridge code
Why are we clearing relationships in findEntity method?
What does add referred entity does exactly in the background ? To be clear in toTableEntity method we are... | ecf6d596c6b1a6eacdb5f62f9df7fff8014578b193964e826d78ee7dd3c7851f | ['acad7ea8bfdd436b97c44ab71a5fa51e'] | http://www.spoj.com/problems/LSORT/ It is a problem on spoj
It states that
You are given a permutation of n numbers that are between 1 to n and having no duplicates.
Task is to sort that permutation in ascending order.There is another array Q in which we are inserting elements from given permutation P.
You have to impl... |
069d19620590a9ee8d80efae995471048ff185f084c1ced066e3b59bac4c6090 | ['acb905b9814544cfbfa52f3bdf9071c5'] | I have configured all things by going System->Webservices menu, submenus that start with REST.And then I test in myDomainname/api/rest/, but it shows a 404 error like "Request does not match any route". It is shown the guide tutorial in http://www.magentocommerce.com/api/rest/introduction.html here, not fully. I need t... | 56aacb92d92f81a10b1f3d52cba78512ead3c5f6da268d6615cae6247be3eb95 | ['acb905b9814544cfbfa52f3bdf9071c5'] | I have downloaded composer and magento2 from git hub. I have also Executed the command “composer install”. And then I am installing magento 2 on my localhost in windows 7 system using Xampp, but unable to install getting error in Step 1 : Readiness Check
Error Getting "File Permission Check Server Failed to respond. P... |
fb56d27c7cf40d50aa985ba6479281eb449fdb0092a5aed5533d4d54764d3a06 | ['acbcd5759d2e49b4b629afbe765b8b3a'] | I have a code here, I want to change font in listview and display it,in listadapter. however, it doesn't help but only show a default number rather than real data. Is this the correct way of change font of my data?
ListAdapter adapter = new SimpleAdapter(
AllProductsActivity3.this, produc... | 231ff5abeda2c6b5376a2dd04630ebd6264e1b808a289cf9708d814cf616a13d | ['acbcd5759d2e49b4b629afbe765b8b3a'] | I have this function, and I have tried to use toFixed(4) to make the result into 4 decimal points but it's not working.
function fncSum()
{
ParseFloat(document.frmMain.percentage.value).toFixed(4) = (parseFloat(document.frmMain.received.value) +
parseFloat(document.frmMain.wronglyc.value))/
parseFloat(do... |
dc128af15a0246816b3c0f9e63978c339e3a0a8429d31883d34b5f158167eedc | ['acccd45144a346de8bb491ba74b9f6ac'] | pre-installation:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
The error comes from the -y flag:
sudo apt-get ... | 20050f5febfd953d5b33c0ac43cf6a1490a2dce56781ac009cd3f4d6d65aba38 | ['acccd45144a346de8bb491ba74b9f6ac'] | Finally, I used this solution. The condition to detect if you are authenticated is tal:condition="not: here/portal_membership/isAnonymousUser". So, you can use a stylesheet only for visitors and other stylesheet for authenticated users. Something like that:
< style type="text/css" tal:content="string:@import url($porta... |
0bd8e3fcbc71d372e77b1afd9a9d8328bd93d8b2721fc991220fc1a559f96de6 | ['acd308bcc85e4b5b8e062e5a4c757468'] | I think there is a mistake, this line is defined twice (line 28):
self.check_box2.stateChanged.connect(self.onStateChange)
Therefore the event onStateChange is triggered twice when you check check_box2, which is logical.
I think you did a copy paste and the last should be check_box3. But your naming conventions are no... | 5516957e7a16efd52ad5b190216052d94995c8d29e90cb72f14825a9508595ed | ['acd308bcc85e4b5b8e062e5a4c757468'] | Regarding the possible attack vectors, fair point. I was thinking about **null byte injection**. I am not sure that the `empty` function will always be safe enough. If you provide a null character it seems to return false. POC: `` Output: `bool(false)`. There are quite a few pitfalls with this function, `0` or `'0'` wi... |
e1198451b799d73bc272758d1d8b84c54b74896cf57aa7a79a7a967f35698b66 | ['acd3fa51f2214afaaa35045ce888ffee'] | The application has a CPU intensive long process that currently runs on one server (an EJB method) serially when the client requests it.
It’s theoretically possible (from a conceptual point of view) to split that process in N chunks and execute them in parallel, as long as the output of all parallel jobs can be collect... | 6c38d7191aafa570e492c8ac347e046e19228ac108bc43f919437ce930b2d10e | ['acd3fa51f2214afaaa35045ce888ffee'] | It's not possible. (not from the FileInputStream in the Java API). The FileInputStream constructor does not store this information in any field:
public FileInputStream(File file) throws FileNotFoundException {
String name = (file != null ? file.getPath() : null);
SecurityManager security = System.getSecurityMan... |
6264c3b8af27685ce8d68b2d71018c9c16ddcff639e8e06bbdb4b9e0a82fd6cf | ['ace5dd1ab497478f8c1299247cd9a793'] | Finally I sort out this situation with the following code :
import os
import webapp2
import logging
import json
from google.appengine.api import mail
class MainPage(webapp2.RequestHandler):
def get(self):
#If request comes from the App
if self.request.referer == 'Your request.referer' :
... | 2bb10d2f66bbaf939bc52917d03954ab099b7e76d60a235424d05ab27d2c2370 | ['ace5dd1ab497478f8c1299247cd9a793'] | Need some help please with this error :
TypeError: 'unicode' object does not support item assignment
Ligne : menuDic[str(menu.id)]['menuDishes'][str(d.dish.dishType.name)]['dishTypeName'][str(d.dish.id)] = {}
def getDishOfTheWeek():
menuDic = Ddict(dict)
for menu in Menus.select().where(state = True):
m... |
584b44f032319543f41cb94b46d9004994c72bb9018843d47ffe0d098298cadc | ['ad1509a8b0ee4f219dbc29b788b70285'] | I have a read only db that I don't have the ability to change. I know that it is extremely inefficient to store images in a database. However I don't have control over this one. I need to display the image from the field in the database. How can you do this in Django?
| eddb2282101d0765ef4ba8a2ac044b231980f400547de3474e31178d7ddaf87b | ['ad1509a8b0ee4f219dbc29b788b70285'] | I have a obscure database in Django. The database is read only and created by my property managements software. Basically in my view I need to write this query to get a specific record.
SELECT * FROM propuserdefinedvalues WHERE propid = propid and userdefinedid = 49
Is there a Django way to execute this instead of hav... |
ac157a16aa6aa6f3de1adceff4fa8394192f457fbe48af74735624fa9bbf5f0d | ['ad176a8b2d5c452d8af0a3f7f3bfe659'] | But we don't know how the quality of medieval mail would compare to the mail which was used in the test, which was the finest modern day mail available.
The historical evidence shows that throughout medieval times, knights and men-at-arms wearing mail and/or plate armor were killed in large numbers by archers with lo... | 71638cfd9623eadb7d3bf78ae90d80f3901a71306231c30f8f49783a8ae638e2 | ['ad176a8b2d5c452d8af0a3f7f3bfe659'] | That is a good point. A whole diocese could almost go under because the local bishop's blessed water "doesn't, uhm.. work anymore." It wouldn't be quite the same as in the Middle Ages until the world had a good handle on the Vamp problem. The government would have a hard time appointing its own favorite, corrupt bishop... |
9afc391021ac7b7d2ebc5d810870de176be7942287f2da3898f76bf631f89eff | ['ad1a01c36b3747c789db98cb36adb4c4'] | I apologize in advance if this is not the correct place to ask this question (please kindly inform me if this is the case) but I'm wondering what the easiest way to save SO favorites to Evernote would be (both old ones and new ones). So there are really two questions here:
(1) How do I most easily save all existing SO ... | 02141327a309727cffa532d547191e500637f84744aaf8cf444032c7a85a5e84 | ['ad1a01c36b3747c789db98cb36adb4c4'] | I understand that it needs to be clear, but I disagree wholeheartedly that it is not already so. For anyone with subject matter expertise, it is obvious that Heroku + clockwork is a no-brainer. So asking "How do I do the same thing, but with AWS", does not require additional detail. The first commenter on the post cert... |
ffd5d46993d82f43922140f0173010996722e541790009da8e4872883c125ea6 | ['ad3810e72c694c1f9239934ca243cb42'] | @ElectronSurf it may be that <PERSON> is redirecting you if you're not in the same country as me? That's not the whole schematic, just the regulator section. The plot thickens.. it appears that the additional current is further down the line somewhere, but only when this regulator is used. The only other significant co... | 913edb657c1680ac29a9f24b232447278fa7123b496a2b416f1f0855aa7cce3c | ['ad3810e72c694c1f9239934ca243cb42'] | <PERSON> I don't but it's very similar to a 540; it's in a small submersible motorhome water pump. The problem appears to be with a few different pumps of a similar size. I would have thought a large starting current would be worse when I hard-started the motor rather than soft start with a voltage ramp? |
b38593631d38fe5f8aa69513e875a965d7c06e0595fb9740d756e94176171340 | ['ad3d8855a01343009e1187237314c40d'] | Spring's aim was to ease programming complexities in the java world. As a JAVA programmer your wish is not surprising :)
Spring provides wrapper around standard specifications in JAVA like JTA, JDO, JDBC, etc. Whereas JCo is just a connector API provided by SAP to transact with SAP internal objects and interfaces. Curr... | 040ab486895548e841d2b68d797f7c2a9d4edcfa8212b3f3bd88810bef7f76d4 | ['ad3d8855a01343009e1187237314c40d'] | If it is a regular development approach, you should ideally look at the API of the component class.
If you are using metadata driven approach for development and you might generate the required code then you should fetch details from metadata information provided by the class or read it from .js file. ".js" will be hel... |
cba77b9bf2c05ec78c87e7dd20bcd1be0fd4d47942ec5dda598ae0feba188212 | ['ad4f38e8eb744bc794b2c1d14795d6b2'] | Is there an R package with a function that can:
(1) simulate the different values of an interaction variable,
(2) plot a graph that demonstrates the effect of the interaction on Y for different values of the terms in interaction, and
(3) works well with the models fitted with the lmer() function of the lme4 package?
I ... | 0e0e6e0d1e4c45d9becbe802efd15b0e0e67d64fae908e53a28332a43ee274bf | ['ad4f38e8eb744bc794b2c1d14795d6b2'] | Imagine a small data set like the one below, composed of three variables:
v1 <- c(0, 1, NA, 1, NA, 0)
v2 <- c(0, 0, NA, 1, NA, NA)
v3 <- c(1, NA, 0, 0, NA, 0)
df <- data.frame(v1, v2, v3)
df
v1 v2 v3
1 0 0 1
2 1 0 NA
3 NA NA 0
4 1 1 0
5 NA NA NA
6 0 NA 0
One can use the is.na command as follo... |
0eb0afedf033c0fc36843e8204ac7c2adffede85cb78a851dd60670340ed4937 | ['ad6c3129b75a44cf857802a8d2d3c1cb'] | The Motor does have a wire for speed feedback which will be used when I start implementing my control system. I just wanted to make sure that I can actually control the motor's speed, and when I got this weird behaviour I though that I was doing something wrong! | aa87357034973c1a07bd81d329c33bf8d694df3c82d22aa9015dd69b3d0323be | ['ad6c3129b75a44cf857802a8d2d3c1cb'] | So I have been given a circuit which supposedly works. The circuit was the the one shown but with a 10k resistor where the scribbles are.
Q17 is an IRLM6344TRPbF N-chanel MOSFET and Q16 is a ZXMP6A17G P-channel MOSFET
This didn't work at first until I removed the scribbled out resistor. After I managed to get it to ac... |
9aae577ae054114c391e85a4d98b531a9daeb239f041e50fcfb4c161ecda0e12 | ['ad7b3c61e7414a96819ff24e0ebfcaa3'] | I am doing some detection work using OpenCV, and I need to use the distance transform. Except the distance transform function in opencv gives me an image that is exactly the same as the image I use as source. Anyone know what I am doing wrong? Here is the portion of my code:
cvSetData(depthImage, m_rgbWk, depthImage->w... | bc7afbf55be088fd9e6647c79e439594e7c78ee01924b9acfebea9e79ca684f2 | ['ad7b3c61e7414a96819ff24e0ebfcaa3'] | okay.. I have had a lot of trouble in this myself.
You need to look int the opencv folder structure that you installed for these header files yourself. Sometimes they're not in the place the install guide tells you they are.
In my computer for example, most of the header files I needed are in:
[INSTALL DIRECTORY]/inclu... |
e32a7d4f54a84bee5e4068cef48d064730b4ff1dac0eedd8eac9e2f333ddc87a | ['ad8e4ebb92344fabaa5f545afa2829d0'] | @psaxton That one's really common, and makes a lot of sense if you think about it. When you point to yourself and say "me" and point to the child and say "you", they treat the words "me" and "you" the same as they think of names. From my perspective, I am "me", and you are "you", but from your perspective, you are "m... | 56fd364ba70e37e90299f7c712c1498eb2d6f7029957b5508e0955fdc141d480 | ['ad8e4ebb92344fabaa5f545afa2829d0'] | Dropbox uses https://github.com/rentzsch/mach_inject to inject code into the Finder process to change the overlay. This is TRICKY BUSINESS. Finder in 10.6 can be hacked with a [SIMBL](https://code.google.com/p/simbl/wiki/Tutorial) plugin , you just have to use the swizzling method to reimplement the drawWithFrame meth... |
ffc5571b0de9074c7b7a7cd73e0917ddfc4e83e0422f224792958660eb0ff969 | ['ad9429ae6e2240fe92548d8b1caed940'] | I'm not 100% sure, how the trailing slash affects cp, mv, rm, though it my experience it doesn't have any practical effect.
e.g.
running
cp -r dir1 dir2
will give you the same result as
cp -r dir1/ dir2
It definitely matters for rsync. In rsync the difference between including and omitting the trailing slash is the dif... | 41c6137ff286a0c3307720f00530134cffab605e924196cf97af0e59c8f141fe | ['ad9429ae6e2240fe92548d8b1caed940'] | The solution was pretty simple, actually. I just needed to specify the path of the php-cli that I wanted to use and where the composer.phar file was located. So I added the following to my depoly.rb script for Capistrano:
SSHKit.config.command_map[:composer] = "/usr/local/php56/bin/php-cli ~/composer.phar"
|
41f097029b6126a0f018eaecf4516869065da4a900eacecbd5bc85ad85186bc1 | ['ad99b1d6e3fc41d089827893e55556e1'] | i have strange errors got from my flutter pages do some math computation with null value. or i assume it was makes errors happening.
in my case i do computation such as (120 * null) inside stateful widget init section. when i build in release mode. I have debug view which means it read background in my apps and shows:
... | ca6905efc572c89b02e3921c7b8fd31e20af2c75253a1dda3be1c2f3748a35e5 | ['ad99b1d6e3fc41d089827893e55556e1'] | i try to get FragmentManager in my android flutter plugin. In my case i need v4.app.FragmentManager.
but in PluginRegistry Registrar. i just get app.FragmentManager from Registrar.activity().fragmentManager
Since i use FlutterFragmentActivity which extend v4.app.FragmentActivity, you can see the code in here.
So i thin... |
49d9d7287508b591c1a3e5491215c4a81d195684c89086054e1de51da3ca93a0 | ['ada4eb11c97944b3a6fa53d7135d494d'] | now i know that its not posible.
I found an answer in some docu then i add this code to my Module.php
public function onBootstrap(MvcEvent $e) {
$this->initAcl($e);
$e->getApplication()->getEventManager()->attach('route', array($this, 'checkAcl'));
}
public function initAcl(MvcEvent $e) {
$acl = n... | c3caa6d6b66eb93c4060ee17947005021d3ee68fabbf24d6107818fe70e3f94a | ['ada4eb11c97944b3a6fa53d7135d494d'] | I need to rename the file on file upload and inserting to the database.
I search for ways but i can't find the right code.
I tried to use callback but it did not work.
Here's my code:
public function home()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('blog_post');
$c... |
b9569c08b134d1d5bd97f9b880ee924d2b2ee59b04035fd4c2a3ca97f20b1d5f | ['adce39e9a1a947589a7020cb647d2d81'] | There is complicated MySql SELECT query:
SELECT id, login, date...
FROM tab1
LEFT JOIN tab2
LEFT JOIN tab3
LEFT JOIN tab4
...
WHERE
condition1 = value
condition2 = value
...
ORDER ...
LIMIT ...
I need to get the number of results from same select but without condition1 and limit. What is the best solution? ... | 856ce684e4fc8fc839ca3cee230335ee8c81cf04b12080a3e8efe92463ed4f1e | ['adce39e9a1a947589a7020cb647d2d81'] | I have a qTip tooltip where I'm loading its content via ajax. After the content is loaded I need to call a function someFunction()
$('.element').qtip(
{
content:
{
text: function(event, api)
{
api.elements.content.text('Loading...');
var content = $.ajax(
{... |
6dc8b98addafdfdc898a73500e36e0b9c98c4f26a4e7164d9759a66f5d15a3e1 | ['adcfe949bb544efbbf961fc62975c154'] | in order to get started with <PERSON> I am trying to construct a very simple function that gets me the a posterior distribution:
grid_length = 20
k_successes = 6
n_trials = 9
prior = ones(grid_length)
function plot_posterior(grid_length<IP_ADDRESS>Int64 , k_successes<IP_ADDRESS>Int64 , n_trials<IP_ADDRESS>Int64 , prio... | 6d6d2d14f21cc05678d94864c1ca3b71143a841e9504bba682ed64288b511c78 | ['adcfe949bb544efbbf961fc62975c154'] | I am trying to count the number of rows by group in a DataFrame. The following code generates a new column, called x1, which which has the intended information:
by(df, [:grouping_var_1, :grouping_var_2], nrow)
However, I am not aware on how to generate such column in a way I can define a name other than x1. The solu... |
375392d830d1df4861f9fee590a61394c4011c497976f2f32dd9bf6b7eab63a6 | ['ade140ddbfa5445a8d421735293f4db5'] | Unfortunately you cannot define an anonymous struct and then initialize it un-anonymously. If you want to do that, you have to type out the entire struct all over again. This way is easier.
package main
import (
"fmt"
)
type Circuit struct {
RemedyCircuitID string `json:"RemedyCircuitId"`
Statu... | 9ecb27735f2e757ddf554260322933a7184db8a94759e04fb00efc22596d3651 | ['ade140ddbfa5445a8d421735293f4db5'] | For full disclosure I don't know google analytics internals so if someone does, they may know something I don't. However, I do know browser mechanics pretty well and what you are doing is impossible due to security restrictions. One way of doing this, assuming both of the domains (windows) are going to be running withi... |
8ffb30bd89920cb62b5fc8b726daaef3bf76e039427dfb03319ee87a730b6acd | ['ade343e772e14e0e84779ab4be23c721'] | What is the proper way for where condition if i need to get rows in range for today and e.g. for yesterday?
I mean something like this:
Model.where("created_at ? OR created_at ?",
Time.now - 3.hours..Time.now + 3.hours,
Time.now - 1.day - 3.hours..Time.now - 1.day + 3.hours)
| 9f724c399cf75ab7d123ed040d3d0cd6d81a41987140a41506048976010cb709 | ['ade343e772e14e0e84779ab4be23c721'] | This could be possible if you have another gem in Gemfile which have dependency on activerecord. In your case it's rails so you can just leave it here.
GEM
remote: https://rubygems.org/
specs:
...
rails (<IP_ADDRESS>)
actionmailer (= <IP_ADDRESS>)
actionpack (= <IP_ADDRESS>)
actionview (= ... |
6de7470e74f5588c252f764c9edd78eb452be70a69c4938f1e1762562fee4ac4 | ['adefb12089b342e8b91c7449cefec10b'] | I wonder if writing a check representation function for an object and calling it while testing is enough to check the object's internal state corectness or should I also put assertions inside methods? Or maybe I should only use assertions inside methods and just don't include them in production version to not slow my a... | c45601e602f6855a361983dae81928c427539c68b166008696fc1679d0dfba53 | ['adefb12089b342e8b91c7449cefec10b'] | I'm using swiftmailer to send emails. User is able to pick an attachment. The problem is that even with 1KB attachment, the script is running for more than 30 seconds which causes fatal error.
I'm using XAMPP and smtp.gmail.com to send messages. tmp_path seems correct.
Here's my code:
require_once '../mailer/lib/swift... |
17a898580332bc41bbf7a656fc626f4b18c176c66a467a607674eae6ee0f1266 | ['adfdea01dd124d6ab65c5806686937f0'] | This seems to be an issue related with .NET COM interop through DLR (dynamic language runtime) in association with the COM bridge that the COM-Server (Java program wrapped through JNI utilizes). I suspect the latter to be ComfyJ from Teamdev. You can work around the issue by providing an implementation of IDynamicMetaO... | c1e9d6080e3578baf8703a2baeee9cef2d6e2a3ab5cf98d2e94b881fb0c5a1bc | ['adfdea01dd124d6ab65c5806686937f0'] | I know that this question is older, but I have run into the same issue today in combination with Eclipse Neon.
So here goes a possible explanation for your issue.
PDFbox has some class initializers that are using the logic "<Class>.class.getClassLoader()" to get an instance of the class loader that is being associated... |
bbbd444cb8ee9a6bc7f0bbc9e8080b213e60f5207bb80704e3b35d7a71ab8bce | ['ae14ed10309347b6a6af6ac45edb09bb'] | i'm using typescipt in react project. but i don't know why type errors.
show me my code.
how refactoring this code plz help me
i think expression tha useTabs function args code
than useTabs return 2 values. making how return value.
i want one type that "useTabsProps" in all useTabs args and return value
Page
import Re... | d04bcc1198818c15d8186b020099ca143055678a243e641879267cca9d92f865 | ['ae14ed10309347b6a6af6ac45edb09bb'] | some body help me~~
My Issue is this
IOS is Normal operation. but upgrade ios11 a bug broke out.
Scroll down quickly, My header menu hide, and scroll end than menu show.
My header is 'position:fixed;top:0;left:0;width:100%;height:50px;' had property.
Why does this happen?
i tried css edit and meta tag change...
|
dac30d9f1c57f68a3701eac45b08e63072df1b24c15dc324562a0a59585854c7 | ['ae1775a402fa4757bea6cbb22509acf7'] | I ended up not using SageMaker for this, but for anybody else having similar problems, I solved this by opening the file using s3fs and writing it to a tempfile.NamedTemporaryFile. This gave me a file path that I could pass into either torchaudio.load or librosa.core.load. This was also important because I wanted the e... | fd406a07fdc72d94bf6eb0d3a092e9e732ddb4e036d040e151e217adff513bef | ['ae1775a402fa4757bea6cbb22509acf7'] | I stored like 300 GB of audio data (mp3/wav mostly) on Amazon S3 and am trying to access it in a SageMaker notebook instance to do some data transformations. I'm trying to use either torchaudio or librosa to load a file as a waveform. torchaudio expects the file path as the input, librosa can either use a file path or ... |
04a083b5fc49a7ae0b19a8a741a33680c340fd6506402c4f22914150f1b62aae | ['ae21d7e743364b979d56b95782f3148a'] | Is there any way by which we can set "Build Automatically" option to true via a configuration file so that this option would be checked as soon as eclipse gets started. This is just because the workspace is made ready with the help of a batch file which compiles the code and then opens the eclipse also.
| 63207a39f0842c0ebad859dfc76c8a7377311e6cd40b2c8ad4e46f69e783183a | ['ae21d7e743364b979d56b95782f3148a'] | I have a web project which has the same as in a typical web project, say web, dto, service, dao. Now I'm working with the service layer. Now, I want to read an xls file and each row should be pushed to the db via dao. I have created a separate utility class to read the xls file. To which layer, the logic of reading sho... |
65cf3c632ce5b57f36e90a2bd7cfbaa6d902a73e3063a927d0ec5f1f9b4ff40e | ['ae28dc44629d437da28c184736dbafa8'] | <div ng-if="true"class="items">
<ul ng-repeat='entry in list1'>
<li ng-click='clickMe(entry.name)'>{{entry.name}}</li>
</ul>
<ul ng-repeat='entry1 in list2' ng-if="secondList">
<li ng-click='sendToserver(entry1.name)'>{{entry1.name}}</li>
</ul>
</div>
contorller.js
$scope.optionsSel... | 8dd8425c26913d7f81c680a575f9309010f5ddd3f6ebb12dcaccdd51d0cf75fb | ['ae28dc44629d437da28c184736dbafa8'] | setup: Nodejs server gets data from pc com port
While reading data on pc serial com port i received following text stream:
[13;27HF [13;27H [1mF [22m [27m [13;31H44 [13;31H [1m44 [22m [27m [13;37H [22m [27m [13;37H [13;46HPTORDR [13;46H [1mPTORDR [22m [27m [13;55HCR [13;55H [1mCR [22m [27m [13;62HF419152 [13;... |
ae765b1b6811a706858e820ee2813dabb8f9c54c581eb8511ab9abe8b51e785d | ['ae399388ed1b46c1ba1f33eca7ac7030'] | I have been looking through quite a few functions in order to find a function that will work, but I have had no luck.
I need to create a program that will have an input/preset string variable with a sentence already there.
I have listed the sentence, so it already has values for each word.
sentence = "ASK NOT WHAT YOU... | 26e6ad34f25f6e8afd67a921f1e42140df42ce90a9a018cfb529da0670623408 | ['ae399388ed1b46c1ba1f33eca7ac7030'] | I'm trying to find a way to output an array in alphabetical order as well as the length by a window alert, or alternatively any way for the user to be able to see it, when they're in the browser.
Here is the little bit of code:-
var vehicles = ["Car", "Bus", "Train", "Boat","Plane"];
vehicles.sort();
As well as:-
ve... |
fc0aacdf855294dd755bf66a53ad681e02e889147f6f808a60a44864baf63f55 | ['ae3fa441145a441a95b11484ef32422e'] | copy your m.3gp file to sdcard and then set the path accordingly like
private String path = "/sdcard/m.3gp";
else for quick testing on emulator push m.3gp file to data folder like
adb push m.3gp /data
and then set the path like
private String path = "/data/m.3gp";
hope this will resolve your problem.
| d9932ebc2d725d88cb28e171a831a465fbe0cc614919549177b612f051b44f02 | ['ae3fa441145a441a95b11484ef32422e'] | Command-t in one of my favorite vim plugins, it's ruby based plugin above integration with FZF.
By using Comamnd-T and FZF you can do the search with an extremely fast "fuzzy" mechanism for:
Opening files and buffers
Jumping to tags and help
Running commands, or previous searches and commands
with a minimal number of ... |
ca8bdca595c19a8b8206c35d6c2a12f50ef048be5eec948f164ef6e5426a9c95 | ['ae54881bd0574cdc9457582a45c0b761'] | My working solution is a "dirty" trick to hide the table without using "display:none". The ordinary "display:none" style causes initialization problem for jQuery Data Tables.
First of all, place your data table in a wrapper div:
<div id="dataTableWrapper" style="width:100%" class="dataTableParentHidden">
...data table ... | a37f581468e4be3a3880e2a9f4a41403a73999b34fac2ac1bd95e71e8e80ef55 | ['ae54881bd0574cdc9457582a45c0b761'] | When I call Graph API as
https://graph.facebook.com/comments/?access_token={TOKEN}&filter=stream&fields=parent.fields(id),message,from&ids={PAGE_CONTAINING_EMBEDDED_FB_COMMENT_BOX}
the results displays the replies as well with "parent" field.
Trying the same for page feeds like:
https://graph.facebook.com/{PAGE_ID}/fe... |
42754574d1beb52df943187575ad147cbc76e05a01ddb7fbd18a7c4b8e27c6ab | ['ae554ce33ab940d6a68dc8f772df4abb'] | The monitor may not be able to handle that high a resolution and goes out of synch. Do you hear any high-pitched whistling and clicking as it tries to synch up to the signal? That's usually a sign that the monitor doesn't work at that resolution, and why it can only display a much lower resolution.
You don't say the vi... | cf14402be580b881bcb803fc2dd88a76b018cca44a538176ce751c92cf8090cc | ['ae554ce33ab940d6a68dc8f772df4abb'] | Sure it will work and I've used it before, however, it has to be the same hardware, otherwise the user is going to have a mess. This is a new laptop. The user will receive a new license and should use that to setup the machine. It's also cleaner that way too. |
7b3e02d9acdc1cd649d04d4fd75dbe554bf8a619c38b3c32638b186604c285e6 | ['ae5dbdc4a1d34098ad320ee5f9286210'] | I am writing a code in Android to print a value process in background thread using Async task. I am displaying the value in the background thread on onPostExecute function. But i want to display the value in the MainActivity after completing the background process.
Java Code
package com.example.mydoinbackground;
impor... | 13bb0ff9ba4b7be9e33d36bf8a410849fcd20eaebbf66653dd826442d66c118d | ['ae5dbdc4a1d34098ad320ee5f9286210'] | I am trying to write a code in Android to display 5 Custom Switch button in the layout. I got a code from Internet to develop Custom Switch button. So , i run the code and i got a fancy Switch button in the Layout.
So , now i am trying to display 5 such fancy button from the code , but i don't find any technique to do ... |
14698a90c97daa1d6fcdd123595d12f8e4e3d18c862d6866c79d0c4da1a18d3a | ['ae63300658834ff59428f4979e0064a6'] | My csv file is,
https://github.com/camenergydatalab/EnergyDataSimulationChallenge/blob/master/challenge2/data/total_watt.csv
I want to visualize this csv file as clusters.
My ideal result would be the following image.(Higher points (red zone) would be higher energy consumption and lower points (blue zone) would be low... | 42f8b90d17366118e130e05518c10d00330c00a9269c3c54ca6a23a605b70413 | ['ae63300658834ff59428f4979e0064a6'] | I am trying to make a model for predicting energy production, by using VARMA(or VAR) model.
(If you have any recommendations other than VARMA or VAR, please let me know.)
The data I can use for training is as following;
(https://github.com/soma11soma11/EnergyDataSimulationChallenge/blob/master/challenge1/data/traini... |
df7eca27220870ef06764e81cd1816cc7b33cd519aa1f0883e73f1940be29763 | ['ae6437e85d4e42bea74d533810f13baa'] | I have an issue in Excel where I need to find if two adjacent cells are both equal to 100. I need some way to change a cells value to true or false based on this condition. Here is an example data set
A1: 100
A2: 95
A3: 84
A4: 100
A5: 100
A6: 86
A7: 92
In this case, I would want the result to be t... | 2a0a5d37bf571f89cd9aaac870933d1fb4833c110f8e25d2b8d4e247497eb2ef | ['ae6437e85d4e42bea74d533810f13baa'] | I am trying to create a connection string which contains SQL login information for use in Excel
The connection string I have been using is:
Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=vw-AdventureWorks;Extended Properties=""
Which works fine, but when adding user/password fields, like this
Provid... |
f59c45b8278d5f7f112837df14521579f64869f33914bbf0d7da3f3bc2692d01 | ['ae730707e1a44b93a70822cef398bba4'] | Doing a question on codility and was Asked to take two numbers and get the product. Then get the binary repesentation of that number and count the number of one's that are in the binary number.
My code is
return method(int a, int b)
{
int count=0;
int num;
num = a* b;
while(num>0)
{
... | 5c72bb84888989900319bf7957e8182b6940bcdf74ee0e2c88d0a921e6b462a9 | ['ae730707e1a44b93a70822cef398bba4'] | I'm creating a Java UI for a school project. I have 4 buttons and an image in the JFrame, I want to be able to perform a task on the Image with each button. Each time I press the button it will overwrite the Image using the buttons function. I have the buttons and functions working but I'm clueless at how to add the Im... |
e1a0ade7b68447cd2279a02c43bfffa7e6db3793a752cf5b1eae8f098ab0e935 | ['ae95b889de294fa792473440cbc1d4bf'] | <script>
var map = '';
function showmap(){
if(!map){
var mapOptions = {
zoom: 4,
center: new google.maps.LatLng(23.6459, 81.9217),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
^^^^ Remove var from here a... | 5b97ec1ec7389d015a00649f47eaec5f4b9cc05755b9bf322973c64f15ace6bf | ['ae95b889de294fa792473440cbc1d4bf'] | i am having a table emp like
____________________________
ID | Name | Address
____________________________
1 | <PERSON> | Street On Road
2 | <PERSON> | Park Side Lane
I want to create a table at SELECT runtime that will create a new table on the basis of address spilited with every space. Something Like
ID... |
8cba8b108ed2f952c5c77a4ff2c262dfe92879942de47cfa3e0f9ea9dcd52c98 | ['aeaa688611294269a9b231776b8e8f0c'] | i have a inherited from QGraphicsScene and QGraphicsItem to create my own classes. I use Qt 4.6.
I want to set a specific opacity on each items of my scene. I use setOpacity : setOpacity method, but its not the result i hope.
I want to have for example one item opaque and an other transparent (to see the desktop, or th... | 2150b0717047fe4eaeabe971beb0847f6485978c3291f3620d9276fbc1ec7d29 | ['aeaa688611294269a9b231776b8e8f0c'] | i have an application where is use Qt 4.6 and Microsoft SDKs (the Psapi.Lib).
I use cmake or qmake to build.
For qmake and cmake i specify in hard the path of the Psapi.lib.
qmake :
win32 {
LIBS += "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\Psapi.Lib"
}
cmake :
SET(PSAPI "C:/Program Files/Microsoft SDKs/W... |
cb6067cf7a4ed55e41d9df7003a3b7f63de0b8a7eb463a4e409b7c370a87d71d | ['aeacbb0f9edd47a7a74f043381ae4785'] | Using: Vue CLI 3.0.0-rc.3
How can I config my app, that it is loading the A) css itself, B) the fonts loaded in css and C) the images from a relative path depending to the parent-folder the app is located?
My complete vue app is currently running without extra webpack config file. I already know, I would need to create... | 8ec9538924969b259935d2c5d8dcc18f466577b1abd0fa18e7176b5b19a0e148 | ['aeacbb0f9edd47a7a74f043381ae4785'] | The described situation contains two different problems:
1) Relative Path to assets at all.
To have the web-app functional in every nested folder, you need to load all assets from relative starting point.
Solution: baseUrl = './' (the folder itself, were the html starts loading the vue app.)
Documented here: https://cl... |
50858c03f3294628665205bf5e2520749c9ad4c03d787df7074e9dd1b9f40249 | ['aeb623be2eca4bdab96444e615335c7a'] | **Uncomment** mod_rewrite.so in httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
to
LoadModule rewrite_module modules/mod_rewrite.so
**create** .htaccess file on root app folder
with my example script
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /hrd/
RewriteCond %{REQUEST_URI} ^syst... | 21020d0150927a487b6b496a9f3d430aa6a9125c15483e68a60dc24fe13d05e1 | ['aeb623be2eca4bdab96444e615335c7a'] | <?php
$data = Array ( 'user_id' => 1,'username' => 'phillip', 'password' => 12345, 'email' => '<EMAIL_ADDRESS>','account_balance' => 100 );
$keys = array_keys($data);
?>
<table border=1>
<tr>
<?php
foreach($keys as $key=>$value):
?>
<td><?php echo $value;?></t... |
42665d405ae7502e3780cf7930d6bf816b46bd126e0885beec15d231b08be6a9 | ['aec03aeb9ef84bbeae2193774ba7b218'] | eof() does not look into the future. So, when you are right before EOF, you will read it also into your vector and probably corrupt it.
A better way to read all lines into a vector is:
string line;
while(getline(inFile, line)
text_list.push_back(line);
Your loop will break once you've read an EOF or when any other... | dcd6251ca891c2afa82d07ac3501a66f9d6a8abd75ba15b492d212e2cd8d5af0 | ['aec03aeb9ef84bbeae2193774ba7b218'] | You can also use std<IP_ADDRESS>sort with a lambda expression:
std<IP_ADDRESS>sort(value.begin(), value.end(), [](const FooMember &lhs, const FooMember &rhs)
{
std<IP_ADDRESS>string str1 = i.first, str2 = j.first;
boost<IP_ADDRESS>algorithm<IP_ADDRESS>to_lower(str1);
boost<IP_ADDRESS>algorithm<IP_ADDRESS>to... |
516e988e7456741b61f497caa1a55d696039e2cdbb6153ff8cccbc331e51cd39 | ['aec38a7652cc49e2b69f3019602b752d'] | Please use col-xs-offset-x
Instead of x you can write number between 1 to 12.
Move columns to the right using .col-md-offset-* classes. These classes increase the left margin of a column by * columns:
Your code will be.
<div class="container-fluid main-container">
<div class="col-md-10 content col-xs-offset-2">
... | f6d7ddc10924612c7701d6146648bea2dd0671715caedab932137b41e763aa0e | ['aec38a7652cc49e2b69f3019602b752d'] | I have created one custom form (Wordpress Woo-commerce) for purchasing products.
I need to insert data into ORDER tab OR After Orders I would like to create one more tab called Subscription Orders same like Orders, but inside this post type data is only for subscription orders.
Can you please guide and help me, How I c... |
ce9dfea396991a8228a551d5ed8343edd0496d9af3581c7ef1767b5bb394f30e | ['aec8f306d95b43f783cb264080be1930'] | I'm in the middle of creating a website that basically hands out codes.
Each code is 8 digits long.
Each digit can be any of the following:
0-9 numbers
26 lower case alpha
26 upper case alpha
Total 62 choices per.
If I've done the math right 62^8 (and I could be completely wrong, which is why I'm asking the brains) b... | f1a9dce8e1e2b942b887e97cb76d26df9d41cac7c066ba5d8296668d9ee7f09a | ['aec8f306d95b43f783cb264080be1930'] | Interesting, it actually gets passed to the end of a url. It's essentially a shortened url code that forwards to a much longer link. My thought now is to add link expiration which would mean I could probably drop down to 62^6 or 62^4. Thanks for the thoughts. |
037019a99c1895480da2f720f250ed881b903960d6e8ad9fe7de41605bc97737 | ['aed2a9b180f2463582044124139dbf62'] | How do I code a share button into my SpriteKit Scene? I've seen tutorials on how to make it however this is in the Main.storyboard and ViewController.swift, I'm coding it in my MenuScene.swift (Cocoa Touch Class) and displaying it in MenuScene.sks (SpriteKit Scene). I am using Swift 4 and the latest version of Xcode (9... | 5de065d84a0f1503c615e8eac1546131bc7e0033907f1a0565c09066d6a710b5 | ['aed2a9b180f2463582044124139dbf62'] | How would I make a Time/Date Picker that allows a selection of minutes and seconds and set that as a countdown time (I only need to know how to make the Time/Date Picker). I've found many tutorials but they are made in the Main.storyboard. I want to add it to my GameScene.swift (file type is Cocoa Touch Class). I am wo... |
7820b23b1fce8caecd358efae07d4eafe81d48a6c1adc5a1f2abe0a9f58d4a5e | ['aed3d8a8ea694e7fa63e87ec21ede271'] | You can bind the class "active" to an element like this
<button {{bind-attr class="isActive:active"}}>Test</button>
Even static classes are possible:
<button {{bind-attr class=":btn isActive:active"}}>Test</button>
But how to get a button like this
<button {{bind-attr class=":btn :facet%id%"}}>Test</button>
to have ... | 862ccf12de7c6616de9f5a0674575f9f165e69df902ab865643b6f5e4bb6cad6 | ['aed3d8a8ea694e7fa63e87ec21ede271'] | I'm using PHP's exec function to execute the command convert on my server.
For a 6,7 kB SVG-File (converted file: 5,2 kB PNG-File) the following command:
/usr/bin/convert -density 72 -resize 270 80 -background transparent
/var/www/app/img/logo.svg PNG32:/tmp/svg2png/20140105-
a86b2ed2c38ed310020d201db8042d71.png
T... |
ccc39f1240eda1a69dd9bd56445b091c8be652e5f08d31250e66533651d70092 | ['aedb392151814f00bbd80b619f09fe55'] | I would suggest using iTerm2 instead of the default Terminal.app, as it is better for many reasons.
Specifically, you would be interested in iTerm2's options to map left/right option as "+Esc", which works much better than trying to have it emulate Meta for every purpose I can think of or have tried.
This setting is lo... | 24f0395d5418f963732a87b6554c19ac0a0d4258c1aec1c6e29a975fc63d27fb | ['aedb392151814f00bbd80b619f09fe55'] | Unless I'm missing something: You run the script, the main function runs when you call it, it does what it does; after everything is done with the functions, the last line which unsets is run. Unless you exit the `return` or `break` the script in one of the functions, the unset will unset them |
df7b225ce9e4031d5871573b4ec1bb10cbc6d19699bd5e491dcb7ae3b3d5ef1d | ['aee1fe2b44134ab5acd7e12362d7fa73'] | I had the same problem and I am also running 4.19.1-1-MANJARO and postgresql 10.5-3, but most answers are for Ubuntu and refers to directories that don't exist on Manjaro.
You have to run systemctl to check the service to see what is wrong
sudo systemctl status postgresql
It gives something like this
systemd[1]: Start... | 99b5a34fffb904126537cd0aaef6e68f6928014dbe3286d445106523b70ce52c | ['aee1fe2b44134ab5acd7e12362d7fa73'] | I am using an array of strings inside my function declared like this
char (*array)[PATH_MAX] = malloc (1000 * sizeof *array);
Allocating 1000 char pointers of size PATH_MAX (1024).
I want the function to return that specific data structure, i.e. return the pointer array. But I can't manage to choose the correct return... |
98415400699acdbf67f0d2a329a516155510e34940a4224136c22fd499fbe1de | ['aee7a2b2f7aa4ee69d15786cebe79483'] | I am entering a string to the quill editor. The quill editor convert the string to a delta and saving it to the database. So I want to trim the string when I am retrieving it from the database but because it's a delta is trim the delta and all my styling is not working and it return an uncompleted delta
| c9ccd7296542eceabf36b954755ec028af8c527e9d65380598ffdf31515a6667 | ['aee7a2b2f7aa4ee69d15786cebe79483'] | Because I grid view is a Table you can use CSS
<html>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="RegNo" DataSourceID="SqlDataSource1" Width="931px" CellPadding="4" ForeColor="#<PHONE_NUMBER>" GridLines="None" Height="170px" AutoGenerateDeleteButton="True">
</asp:GridView>
<st... |
62a2510a67723b7acabf443e2a4ad3e33bc0dd345f40db36cba4f1cce7826ae9 | ['aee9311941cf402797199f00644713dc'] | I'm working with processing, and I was wondering what the best (most efficient) way of ordering an array was. I basically want to be able to write a function that could take an array with, say, the ints 3,2,7,29,5,1 and order it like: 1,2,3,5,7,29.
I could figure out some inefficient way of doing, but i'm working with... | c0dfa721eaeca32dbdc81ad1a52b442158886d5040679d2fe1b93cb0ecb364ec | ['aee9311941cf402797199f00644713dc'] | The ACM (http://jtf.acm.org/index.html) library is good for basics.
Java has some native graphics, but libraries are far better.
Java is good for games (far better than python even with PYGame). If your game is complex, then you definitely want to use C(++).
There are libraries that allow animations, although you coul... |
d5cf663cc990297c5f79b01aedb30c4ab74c6485bc927709f5b0c9d0836ae8f7 | ['aef7650e91dd400090cb919ecabf2b07'] | When we are about to write some code in the .aspx.cs file , we are able to access Response object.
How we are getting that object, and where it is presented, and how its working as a object as we haven't created that
Is it a property?
Is it a class?
Tell me all variations about Response object
| 3ef4fb72934209f00bc0d12b17e9cb1b045dee0e7001f181fd65bd6c84c6d38e | ['aef7650e91dd400090cb919ecabf2b07'] | The request message must be protected. This is required by an operation of the contract ('IMyNumericService','http://tempuri.org/'). The protection must be provided by the binding ('BasicHttpBinding','http://tempuri.org/').
when i am trying to connect to the host where i have registered my service , i am getting the ab... |
296f27c9225a7ce178c7a0426e9fc9ffdaf9f25605bc0fa890389f4e96067163 | ['aefebbeb2a54404ab49da9cc70ad27aa'] | Спасибо!! посмотрю, но правильно ли я понимаю, что этот класс обязательно используется если мы делаем какие-либо манипуляции с линкедлистом? Меня смущало следующее : есть метод add ``` LinkedList list = new LinkedList();
list.add("Geeks");
list.add("for");
System.out.println("The list is... | b2e827b295f143a6e1bcb7978c08580b463f2d341c406979995296f2eb24c811 | ['aefebbeb2a54404ab49da9cc70ad27aa'] | Есть ли возможность пройтись по массиву циклом и при создании объекта занести значения элементов массива в конструктор. Например, у нас есть строка:
String result = "1 2 3 4 5 6";
// делаем массив строк
String list[] = result1.split("");
// затем я хочу сделать следующее:
BigInteger a1 = new BigInteger (l1); // String ... |
b4264433418d12855a06669af94c54e89378cebf1d1bdc6e372dc55e98667809 | ['af08842a68734b1c87b01a999c50fe2b'] | I would like to figure out the difference between two things: transformation matrix and coordinate transformations between the Cartesian system and spherical coordinate system.
It is absolutely clear how to transform Cartesian system to Shperical, simply by:
enter image description here
but the thing that is not clear... | 9d6237898bf51d06ac384d2a6caacbdce5ebce80234ff2542b20f203be693dd2 | ['af08842a68734b1c87b01a999c50fe2b'] | I probably confuse you here, but $\tau$ and $t$ are different time. The first one is "fast" pulsating time, the second one is "slow" meantime. This concept comes from perturbation theory, where you can define different time scales. And as far as I understand, if we average by $\tau$ over a period and we average periodi... |
8da6c974df032c0f586de1e3c2061e2f7aa3944ac1ac4c48b7d4304ff193a424 | ['af2328a6491d42ea88f78a21fafed051'] | I am new to hdf5 files. Trying to read some sample files from the below URL..
https://support.hdfgroup.org/ftp/HDF5/examples/files/exbyapi/
while trying to reading one of the .h5 files in R environment
library(rhdf5)
h5ls("h5ex_d_sofloat.h5")
I am getting the below error
Error in H5Fopen(file, "H5F_ACC_RDONLY") :
... | ce6efe863eb084ce2831997ff6093b899c42d3157edae6efa8653a43783c9d60 | ['af2328a6491d42ea88f78a21fafed051'] | ERROR: type should be string, got "https://community.plot.ly/t/how-to-plot-multiple-x-axis-in-plotly-in-r/3014/3?u=him4u324\nI have posted my question on Plotly community as well\nI am trying to display two x-axis with common Y-axis on plotly for R. I was able to do so as well but starting point for each x-axis is separated from each other Whereas I wish them to be represented a common y-axis.\n\nf1 <- list(\n family = \"Arial, sans-serif\",\n size = 18,\n color = \"grey\"\n)\nf2 <- list(\n family = \"Old Standard TT, serif\",\n size = 14,\n color = \"#4477AA\"\n)\n\n# bottom x-axis\nax <- list(\n title = \"Number of PBIs\",\n titlefont = f1,\n anchor = \"y\",\n side = \"bottom\",\n showticklabels = TRUE,\n tickangle = 0,\n tickfont = f2\n\n)\n\n# top x-axis\nax2 <- list(\n title = \" \",\n overlaying = \"x\",\n anchor = \"y\",\n side = \"top\",\n titlefont = f1,\n showticklabels = TRUE,\n tickangle = 0,\n tickfont = f2\n\n)\n\n# common y-axis\nay <- list(\n title = \"Process & Sub-Process Areas\",\n titlefont = f1,\n showticklabels = TRUE,\n tickangle = 0,\n tickfont = f2\n\n)\n\nplot_ly(data = scrum %>%\n group_by(Master.Project) %>%\n summarise(Total_PBIs_Planned=sum(PBIs.Planned.in.Sprint, na.rm = TRUE),\n Total_PBIs_Delivered = sum(Actual.PBI.Delivery,na.rm = TRUE)) %>% inner_join(scrum %>% count(Master.Project)), # creating the desired data frame\n color = I(\"#149EF7\")) %>% \n # for bottom x-axis\n add_segments(x = ~Total_PBIs_Planned, xend = ~Total_PBIs_Delivered, \n y = ~Master.Project, yend = ~Master.Project, showlegend = FALSE) %>%\n add_trace(x = ~Total_PBIs_Planned, y = ~Master.Project, \n name = \"Total_PBIs_Planned\", type = 'scatter',mode = \"markers\",\n marker = list(color = \"#149EF7\", size = 15, \n line = list(color = '#FFFFFF', width = 1))) %>%\n add_trace(x = ~Total_PBIs_Delivered, y = ~Master.Project, \n name = \"Total_PBIs_Delivered\",type = 'scatter',mode = \"markers\",\n marker = list(symbol =\"circle-dot\",color = \"#F71430\", size = 10, \n line = list(color = '#FFFFFF', width = 1))) %>%\n # for top x-axis\n add_trace(x = ~n, y = ~Master.Project, xaxis = \"x2\",\n name = \"No._of_Sub_projects\",type = 'bar', \n marker = list(color = \"#149EF7\"),\n opacity = 0.1,\n hoverinfo = 'text',\n text = ~paste(\n Master.Project,\n '<br> Total Sub Projects: ',n,\n '<br> PBIs Planned: ',Total_PBIs_Planned,\n '<br> PBIs Delivered: ',Total_PBIs_Delivered\n )\n ) %>% \n plotly<IP_ADDRESS>layout(\n title = \"Product Backlog Items - Planned Vs Delivered\", titlefont = f1,\n xaxis = ax, \n yaxis = ay,\n xaxis2 = ax2,\n margin = list(l = 250)\n ) \n\n" |
6b13c099008adb4502befe3c7b493ab48f48acaf9cee3cffc7bdbc641f9aeaa7 | ['af23328496e341e286b5c338dc0f9fd8'] |
If your object has a fixed length you can received specified amount of bytes on the other end and then create your object.
Otherwise you can send delimiters (symbol or sequence of symbols that you are not using in your object) between your objects and keep reading received data byte by byte until you see the delimiter... | fcb713659f5089e36fce68cdc721b3931e1bbe11bba09b2156dd64e2397aea41 | ['af23328496e341e286b5c338dc0f9fd8'] | <PERSON> did warn about using <PERSON>'s (0.2) as small (0.5) as medium and (0.8) as large. <PERSON> never meant for these to be used as rigid interpretations. All effect sizes must be interpreted based on the context of the related literature. If you are analyzing the related effect sizes reported on your topic and th... |
095545e6580c94bd4e3c66b8dd60fa7b46c29551b4cc1c924fb270baf856f47a | ['af284c4a5d9d4a7cbcfe0acada4fbc25'] | You could use the Txtfmt plugin for this. To make it work, you simply need to set the filetype to something like tex.txtfmt (instead of the customary tex).
:help txtfmt-nesting
With Txtfmt highlighting enabled, you could add arbitrary fg/bg colors and formats to your document.
Caveat: Txtfmt accomplishes its formatting... | 87304801bdc18913c8c278edf95a0e7ebe6c471ec8a39d4fb448d4b7ee819d34 | ['af284c4a5d9d4a7cbcfe0acada4fbc25'] | The Wine App database has good information on how to set these things up just go to the page linked and look through the listing and comments below to see if there are problems/workarounds.
http://appdb.winehq.org/objectManager.php?sClass=version&iId=21127
Also, you might try to check if it is supported under PlayOnLin... |
88b9543a8cf944e38d8aa74bca26faa6d42c50c6d0f9e202075f3af9e4384665 | ['af2d576bf0c748b78e597d67503aca99'] | i am making a mail client and i have made an option in which user can save his/her profile
and i saving all details in an xml file using SXML lib in python . now i want that file to be encrypted otherwise any one can see the details...How do i Do dat?
| c065855024f8913eac8cbd499b34b81422c182982fdd78593fb9922b753ca3e9 | ['af2d576bf0c748b78e597d67503aca99'] | why I can bypass deep Freeze by logging in windows partition from Ubuntu and edit what I want is it freeze. I just go to the windows partition file system, then I go to desktop and edit any file I want, then I reboot in windows 7 and I found my file that I edit from Ubuntu. so what is advantage of deep freeze it's usel... |
68009d288b161470090379867068a9126d5002b7dee18b0b74f970a999f8c827 | ['af315417536140d4a91f3c4880314a39'] | Environment : Hortonworks Sandbox HDP 2.2.4
Issue : Unable to run the hadoop commands present in the shell scripts as a root user. The oozie job is getting triggered as a root user, but when the hadoop fs or any mapreduce command is executed, then it runs as yarn user. As yarn, doesn’t have access to some of the file s... | 7285163afee1cbcf9b5b394e793020049f07368a61e819babb89450e68f04959 | ['af315417536140d4a91f3c4880314a39'] | As documents don't have the url field therefore the id of the documents empty, so its throwing a null pointer exception when it runs the below method.
Below is the code of SolrDeleteDuplicate class from nutch 1.7 trunk where the solr record is deleted by id field.
updateRequest.deleteById(solrRecord.id);
updateReque... |
42d44773f0e92c7b516e53850e3052d2da1196fff2312a25a380b47f39ae8b54 | ['af3bbcbcf6e441a6b14d41693054cb90'] | Because many have written $('selector').attr("readonly", false); I want to mention that this will not work.
When readonly present, it specifies that an input field is read-only, either is =true, =false, =whatever.
So proper way to go with JQuery is .removeAttr("readonly");
https://developer.mozilla.org/en-US/docs/Web/... | 9849d1fad75d6e3ee4588d1f26b29a7eb9794c668df496df942e7d74d1d7e590 | ['af3bbcbcf6e441a6b14d41693054cb90'] | For me rails new "first_app" produced these files:
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
and it seems that git wasn't installed so it didn't proceed with the creation of the rest of the files
|
dfc64bfa19351eaf8f1eb6c0f17aecd773b21e5b75f78f69bc73451247da07a6 | ['af402ab6b5ca40aa8aa051c8a8587080'] | I have landing page where you can select the country to change language.
It has a link where you can request a demo. This link is an anchor tag with a mailto url.
I need to change the mailto url based on the language i selected before.
This is my index.html:
<div class="c-navigation__language">
<div class="c-lang... | ef6ccd2ac8415df0d1773acbc02e336c651977fb834ec51f6816f1262c136891 | ['af402ab6b5ca40aa8aa051c8a8587080'] | I am building an Express app and having some issues with routing.
This is my routes.js
const EDIT_VIDEO = "/edit";
const routes = {
editVideo: (id) => {
if (id) {
return `videos/${id}/edit`;
} else {
return EDIT_VIDEO;
}
},
deleteVideo: DELETE_VIDEO,
};
export default routes;
This is my... |
f4a52c08e02ee7e7c6538c2eb4cf078526fb42f7e8d94d2cf19f22ee7dec1249 | ['af42ce94a71d4b67939884420baee21b'] | In my case, I followed the full trace 'til reach sth related to my code, in my case I had a trouble with one namedQuery:
Grave: Excepción al desplegar la aplicación [segeca_restful] : Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.EntityMana... | 8b258e2fd06ee29b5f052cee201c42c9254f506b0ad955f1254b0dae334bb7e1 | ['af42ce94a71d4b67939884420baee21b'] | i want to redefine an event, i mean, i have this:
boton.Click += infoApp;
//i think thats similar to: boton.Click = new System.EventHandler(infoApp).
when button 'boton' is clicked, the function/method 'infoApp' triggers,
this method its something like this:
private void infoApp(object sender, EventArgs e)
{
/* my co... |
bbf6665a4b70e1c61e3aa933994338163054ee2a176008e9843a2b886e7a6079 | ['af4c263b2f9e4f9e962bd90f478e5690'] | This is not the most elegant solution, but since no one is posting a better one (so far), here's the best I've come up with.
Just execute a script to do what you need. In my case I'm using jQuery:
page.execute_script('$("[name=FieldName][value=Other]").trigger("click");')
| 83749c443adebba3fb3fe65b20a4a620916b964a65427016085c321f1fef536a | ['af4c263b2f9e4f9e962bd90f478e5690'] | This code is virtually verbatim from egghead.io, but it is not working at all unless I remove ="app" and remove the ng-controller attribute from the <body> element. (And of course the last <script> element gets ignored in the process—the code that would normally be in app.js.) Of course removing those bits prevents a... |
670af27aab72212908b334e0eefe8d379b6bbed54c3b370fe3a3ca46ea6b8563 | ['af51582087fb43b3b0a09ea706be68fc'] | I have created a form in PHP where i am inserting data and saving in .csv file now i want to show .csv data into HTML page using page but i don't know how to do.
this is my form code in PHP.
<?php
$error = '';
$name = '';
$email = '';
$number = '';
$gender = '';
$country = '';
$birthdate='';
$address = '';
$education ... | 3238e082c7834d569316db6bff0afe80c6ee14a728c580a6b09884b87f90ed71 | ['af51582087fb43b3b0a09ea706be68fc'] | I am new in the CA API policy manager and I want to create an API in policy manager. Which assertion is used in the API policy manager?
Make an API
If I passed <PERSON> in the JSON format it should return me ur Surname
Request -
{"name":"Mayank"}
Response -
{"surname":"Agarwal"}
Likewise
Request -
{"name":"Yash"}
Respo... |
4aec05acc219f0150d3da628a698248dbff23fba7de3488f0076461e528a8300 | ['af81755336dc4be2beb669c71f03c863'] |
i'm working on JEE application on netBeans with Tomcat. when adding "applicationContext.xml" ,
then build and run i have this error:
The module has not been deployed. See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:238) at org.netbeans.mod... | a4e4955d7f7797b1756581a74ace4403ad8b2a3328b3ba8ec5f42678e690d3d8 | ['af81755336dc4be2beb669c71f03c863'] | @Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.main, menu);
super.onCreateOptionsMenu(menu,inflater);
}
is it like this or like this
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the... |
47c886bf9cfd4dd1e19ee398f2e0d9a3e422e324864cdaf31d64ba3b50a5b9d4 | ['af86aacea17e4e379dc83861249c2f60'] |
// Unimportant stuff
const $ = document;
$.get = $.getElementById;
$.get('theOptions').addEventListener('change', function(event) {
// Get the value from the select-element
$.get('out').innerHTML = 'You selected ' + event.target.value; // Or $.get('theOptions').value
});
<select id="theOptions">
<option value... | a83c08a8431460bce7286dda145eff0987c1c0a9986610796416c7b4bb13c897 | ['af86aacea17e4e379dc83861249c2f60'] | Do you mean something like this?
// Some shorthands
const $ = document;
$.get = $.getElementById;
const log = console.log;
const warn = console.warn;
const error = console.error;
$.body.addEventListener('click', function() {
$.get('trigger').addEventListener('click', function() {
$.get('overlay').style.display... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.