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 |
|---|---|---|---|---|---|
429b9fba437e02b48ddb72301fa536d22db1d9d65ce6c02265e561b214ae3435 | ['58dc2ba9aba44a328563d50ed35fe61c'] | Remove from your $PATH the /home/pi/bin that is in front. If you’re positive you need it, move it to the back.
The $PATH variable is probably set in ~/.profile, ~/.bash_profile, ~/.bashrc or something similar.
Only add to the front of $PATH if you absolutely must override system commands.
After that, you should look in... | c541fccdf677153e2abd7aef1eed187830a5f214eb197bcbc6d63e32251a7a28 | ['58dc2ba9aba44a328563d50ed35fe61c'] | So it's not really "I want a script!" but "How do I make a script run at a specific time?". Which is good, because the former isn't on-topic. It's not even a question. You should edit your question. And since your already have the cron tag, you should perhaps expand on what's keeping you from using it. |
0374acd683479c349522106917d88e21fa1047f47335c7816f9f8fb4f4c6e50e | ['58df3ef96e2b4dd7bafa61d078617183'] | Sounds like you just want the first occurrence of each unique "number of AR" joined with the length associated with that.
df.groupby('number of AR').first().merge(
df.groupby('number of AR').apply(len).rename("Frequency").to_frame(),
left_on='number of AR', right_index=True)
# Year Month Day Hour Fr... | 89bef8f8c16b02a307383faf118c39ce6d3c576f03cedd0e88f1d4d6eab6c545 | ['58df3ef96e2b4dd7bafa61d078617183'] | I am scraping a limited number of items from the top of an infinite-scroll website.
links = driver.find_elements_by_xpath("//div[@class='fixed-recipe-card__info']//a")
while len(links)<100:
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
links = driver.find_elements_by_xpath("//div[@cla... |
8feef492d308d7293bb5096bcb178a5dbdd5dc596e5f77c2fc23ddb4f196eb81 | ['58f691dda3954d52ac023633c10cf5ed'] | Actually i am making a food app where you can order foods by choosing category of food and adding them to carts. when i sign in and choose category of food and then choose a food to display description and add it to the cart the app stop working and the problem is in the picture below.
Here is the picture with the log... | 52d90a8569b5b6d7e90ed5caf626c87f77d6d21d4f072f802ff4d3e41566285c | ['58f691dda3954d52ac023633c10cf5ed'] | I currently trying to make a website with a validating booking form for a university a project about a university portal. It used to work with my javascript validation until I added to validate time. Problem is sumbit button not working when I add to validate time and whenever I remove it is working.
HTML and JavaScrip... |
d99058a472861e1c76dc8f1e33494b38927b9240ee510dac8ede2645a5b7aeaa | ['590363e1d56442998313a3f7a650b56f'] | On the first render i am setting the productsList with all the products in my redux state. When i click to render products corresponding to a specific category, i am able to set a jsx element (filteredProducts). I have printed it in the console as well but the complete list of products is still being rendered.
I also t... | 56116e3094e7e59c5df2c6389166ede35db1f717e3dbf7872089a281a8420b41 | ['590363e1d56442998313a3f7a650b56f'] | You don't even need BeautifulSoup to extract data.
Just do this and your response is converted to a Dictionary which is very easy to handle.
text = json.loads("You text of the main response content")
You can now print any key value pair from the dictionary.
Give it a try. It is super easy.
|
a13a41b434a74e85f8c97f4c2105853c9f1c953fa748caa28dcadaf6c890198c | ['590409da979244929482c632ed012826'] | The following code gives an error.
The error occurs on "var businessIndes: Index!"
It keeps asking me to add < Any>! then once I do it tells me to remove < Any>!
What's weird is that this is supposed to be a term used by Algolia search, so I do not see what would be causing this. Any help would be appreciated. It's pr... | ee82094a88f14029277a1628bddac62029a9af88b7e53e9da649cb80872c4c85 | ['590409da979244929482c632ed012826'] | I have found the solution!
Preface:
View Controllers have an assumed size. (the size of your phone's screen). That's why whenever I presented a view added a view to the UIView it was always 667 -(iPhone 6 Screen Size). So in order to fix that I did this:
Code:
if selectedIndex == 0 {
vc.view.frame.size.height... |
9dbf84aaf625854fd91139422a113f62613650d7636eddde84428347696fd05b | ['591767e1ac6343ec817455808b6d2523'] | I'm trying to update a old template. Therefore I want to replace the vmargin package by the geometry package:
Code before:
\setpapersize{A4}
\setmarginsrb{3cm}{1cm}{3cm}{1cm}{6mm}{7mm}{5mm}{15mm}
Code after:
\geometry{a4paper,left=30mm,top=10mm,right=30mm,bottom=10mm,headheight=6mm,headsep=7mm,foot=5mm,footskip=15mm}
... | efbe9333f89843bdb82dd75a49435f9f59b38d89807c506e21ae024766a64034 | ['591767e1ac6343ec817455808b6d2523'] | Es lo que veia en algunos sitios cuando buscaba mi error pero nunca me soluciono el problema que tuve con lo que ellos mencionaban que podria ser la solucion. Incluso en donde me fui guiando para hacerlo, nunca hicieron mencion sobre el Datasource ni presentaron problemas con ello. Es por eso que no se si estoy haciend... |
4c94827b256827a6843e745138236488505afa6535f84fceee997d0483a69fcf | ['5918382c476840138c7991e7e00c74ca'] | Using refresh token This can also be achieved in less time
Get refresh token by API https://{{auth0_domain}}/oauth/token
BODY-
grant_type:password
client_id:abcdefghijklmn
audience:https://abcd.com
username:abcd
password:efgh
scope:openid profile email offline_access
In Response will generate Refresh Token, thi... | 00aee1ff11d5162ca01ff1b5aff2ce4838f88bdf10fa02c100959292e59d8b4d | ['5918382c476840138c7991e7e00c74ca'] | I was trying to use if else to access [ ] condition
pm.test("Cases here", function () {
var jsonData = pm.response.json();
if (jsonData === null) {
console.log('1');
postman.setNextRequest("Get Count");
}
else {
console.log('2');
postman.setNextRequest("Create");
}
})
"... |
5972dc87709d040ffb740635ae26379f5b429d8f2a7b54acb5b00abade6f1f39 | ['5918fd1c9a7746c0ab5c7b3011c8ca3b'] | i have the following code in a angular 4 reactive form :
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary" *ngFor="let item of list;let i=index" >
<input type="radio" name="someName" [value]="item" (click)="onSelectItem(i)" formControlName="someName" [checked]="isChecked... | 5e6e986e53b0bffbff5e28fca695d706cb30778b6952f0539e199802f74205fd | ['5918fd1c9a7746c0ab5c7b3011c8ca3b'] | i have the following perl code :
my %conf = ( file => ".cookies", autosave => 1, destroy_at_the_end => 0 );
my $mech_instance = WWW<IP_ADDRESS>Mechanize->new(
cookie_jar => HTTP<IP_ADDRESS>Cookies->new(
file => $conf{file},
autosave => $conf{autosave},
... |
81fd7e91e018c141845cc69713788125824fbb39362fe02c5597c812509a9643 | ['5940cbd02ecc4477becd35f902992f8c'] | how can i simplify these jquery code? any idea?
$('#expand').click(function() {
$('.bbit-tree-elbow-plus').addClass('bbit-tree-elbow-minus');
$('.bbit-tree-elbow-minus').removeClass('bbit-tree-elbow-plus');
$('ul.bbit-tree-node-ct .bbit-tree-elbow-end-plus').addClass('bbit-tr... | 3d5a38ff6f1df131fd3979dd961cd6de597d7173d089047910abe545d67025fb | ['5940cbd02ecc4477becd35f902992f8c'] | what is the best way to retrieve id from itunes app link?
let say i have these link:
http://itunes.apple.com/us/app/bring-me-sandwiches!!/id457603026?mt=8
http://itunes.apple.com/us/app/bring-me-sandwiches!!/id457603026
i just want to get the id, 457603026 using php preg_match
|
cfb3fcc6c8d481248c014c52a920ec0e26066ca42edf456f99267bfa1fe4311a | ['5953268de97e475a825718f1079c63bc'] | @user46688 - as long as I don't write or change anything in SYS schema since the full cold backup - You shouldn't write or change anything is SYS, but Oracle internal processes will, all the time. I see no reason to complicate your life with this strategy, use RMAN instead. | eacc19bddc695a25d8e34b2590a9ffceead93d3465f8bbe5c6c7c1edfaf0c2de | ['5953268de97e475a825718f1079c63bc'] | Tengo un ListView personalizado y un botón que al presionarlo guarda un dato, en este botón utilizo "SharedPreferences" las preferencias compartidas, el problema es que el adaptador(Codigo Java) es así:
public class Adaptador extends BaseAdapter{
Entonces no puedo llamar el método SharedPreferences para guardar los da... |
f37badf3a23317605522e63e13a4ff284f2a6cf6a6c2797ccd589e17ef4c32b1 | ['595fd0ffff514c85abd325402043bd8d'] | Plugin conflicts cause most of these problems.
If you are able to log into using wp-login.php kindly log inside and check after disabling one by one each plugin and check your site wp-admin in different browser if disabling a particular plugin gives you access to wp-admin then that plugin is the cause of this.
It also ... | 86c5fc47aae76933c163d2bb6ff176a4385e145be191b7a6a1dbf0a4b2ef5542 | ['595fd0ffff514c85abd325402043bd8d'] | Correct, my tmux has no scroll-mode. You need to `C-b [` to enter copy mode and then use either the emacs or vi key-bindings to scroll around. This seems like a lot of steps just to scroll, but the benefits of tmux still outweigh these annoyances. I'm on a macbook and there is no PageUp key :-\. (Also, how do I make ke... |
8cd81db60c1be663b1f97ff4a7d67cd499472de62f70aa481cb0d87fd381b986 | ['596962da390a478fb7358fcbc47cc190'] | I have some trouble with "locale" in my Rails App with ActiveAdmin after logging. How can i permit params for locale?
Started GET "/admin?locale=ru" for ::1 at 2015-02-25 23:05:19 +0100
Processing by Admin<IP_ADDRESS><IP_ADDRESS>1 at 2015-02-25 23:05:19 +0100
Processing by Admin::DashboardController#index as HTML
Pa... | 4f9281485926cb0b9edc00298e8058c3de2be52d9692d8ccc55a19017649b77e | ['596962da390a478fb7358fcbc47cc190'] | I want to add export to PDFs in my app in ActiveAdmin, but i don't know how. Have anybody Experience? How i can add simple csv/pdf output in Show for any Order, but not for all?
ActiveAdmin.register Order do
actions :index, :show, :edit, :destroy
index download_links: [:pdf, :xml] #only for all Orders, but bot... |
74759cdfcc91caba3af6f7795f1c32441142f3466555ba8ddf2cbd1d394431da | ['598300bfc6084cbfaffc0bfcac29a859'] | Thanks <PERSON> - I on closer inspection I think you are right about the protection diode.
Cheers for the pointer about the heat sink, I will be doing a similar thing to what the author did - this implementation was purely a very quick and unfinished prototype. Heatsink, enclosure and a bit more heat shrink is still to... | ba245597791c57c3e0b9674de814fac05725780dccc9c8723a50e02aaf5be2e1 | ['598300bfc6084cbfaffc0bfcac29a859'] | I want to install a package (libappindicator3-dev) but it's not showing up for me when I try install it -- I'm using the sid/testing repository, so it should be there:
http://packages.debian.org/sid/libappindicator3-dev
So I was wondering if it's possible to download the .deb package directly without using APT, and ins... |
54073beb8fee36b26461439b651c574fedf537f41a083360616b243aa2d8ed34 | ['599f2b0e162340ef831f314dc151df69'] | Hi stackexchange users,
I have a data (model) class which has two methods which look like this:
class ContactDetails {
public function setWebsite($address, $type) {
//do something...
}
public function getWebsite($type) {
//do something...
}
}
Now I want to create a form where the user ca... | bf11cba490322b9f3436936f8dbf92cf6c15d2db17d894d115eba54366602ee7 | ['599f2b0e162340ef831f314dc151df69'] | I'm using Symfony 2.7 and try to resume a session which has been interrupted by closing the browser window and clearing cookies. Now I want to resume this session by visiting a page and entering the session ID of the old, interrupted session.
The naive approach doesn't work:
class TestController extends Controller {
... |
aa60cba5325e593a923050b71c7f875fdac0f95260bddacd6eb2dab6e140c3de | ['599f4253c75a4d9b97b11879e91d8efa'] | Looks like you are making an ajax call but not handling the response.
and you are right, the success function is missing. You just need to populate the HTML element(you could use 'frame' or 'object' html tags to embed the pdf in the html page) with the response and also handle ajax errors.
ajax({
url: '{{root_url}}/t... | 1bf832cc15ef1514990f402a42fe9190cb813eb4c5e652aab9ac4aff2faecfd1 | ['599f4253c75a4d9b97b11879e91d8efa'] | The way foreign keys are stored is through automatic fields(IDs). Since 'Category' is a foreign field of 'Product', when you make a record entry, the id of category is stored in 'product_category' field in products table.
I think your code is a little confusing since you are trying to do somethings django does automati... |
10570b36f5e5ec971914605a7ea3a3b33a981a7ea789ecca872fa7b6b66ff631 | ['59a113834de545b3992089748940ee50'] | In general, the .NET Framework is designed to maximize backward compatibility.
Especially upgrading to a later point release rarely causes any issues.
However, always check whether the new .NET Framework version is still supported by your (minimum) target Windows version? See .NET Framework system requirements
Note tha... | 81e1045e13bdc1a9fa6a536354eedcd6a7aa137a5750b2398fc3e9a0db9b1ea3 | ['59a113834de545b3992089748940ee50'] | xUnit has been designed to be extensible, i.a. via the DataAttribute.
InlineData, ClassData and MemberData all derive from DataAttribute, which you can extend yourself to create a custom data source for a data theory, in which you may read from you external file and use e.g. Json.NET to deserialize your data.
User <PER... |
146dc990cb8bf412f0333a3ffa82fd5cbe4f85c29e358b54e2197763fcdc768f | ['59a3897db360465f81718c6766c1cacb'] | For an adapter I've written I would like to have a small delay for the filter (to avoid starting a filter operation on each repeated keys and wait a fraction of a second until the user slows down his/her typing since the list to filter is potentially quite large and and filter operation will take a couple of 100s ms). ... | 4fa04fdf407c741801ea707be8c33187847696de7d6967b080d9f93b515b0c47 | ['59a3897db360465f81718c6766c1cacb'] | Going through some supposedly "good" sources sources to learn the details and tricks of context handling in Android I have come across one pattern multiple time that I fail to understand.
What is the advantage of using a ContextWrapper when you could equally well use the implicit context?
For example why use the follow... |
258851d3dcdbf4eec675783d91a3e4a5f293a674a0b696fa8f8390c6116f8afc | ['59b6b3e65f92416fa7e500424882e0f8'] | Let's say I wanted to make an app where people would ask questions and get questions, based on their responses.
What's an efficient way to do that?
I get the feeling creating many View Controllers is not the way I'm supposed to do it.
I'd like to know what I should do instead, or what concept I need to become more fa... | 9ac7b149fd5f3eaefe04ff6372fd74f8bde98d7883b60207a916a1f27ba6d658 | ['59b6b3e65f92416fa7e500424882e0f8'] | Figured it out.
Seems like you have to use CoreText to pull it off though, not just TextKit.
I still have to figure out how to extend the highlights so they cover the bottoms of letters and not so much of the top. And I have to figure out how to move the highlights so they're "behind" the text and not making the font c... |
51edd4ac2cb176f00e18333efec66e43fd90dcf0e994ab8ffae475abc548f6f6 | ['59b833cd53c542028e69c3246790d775'] | You're going to have problems with accessing both the local and the remote site due to DNS resolution conflicts. The `/etc/hosts` file is going to trump any other sort of DNS resolution. So, if you do set the www entries in your `/etc/hosts`, you're going to be able to access only the local installations. You're never ... | c14d9d8ca17a866c1d53bf7c612df5b9ed7f4c062c0586793f696b8755edec45 | ['59b833cd53c542028e69c3246790d775'] |
[...the preferred way of implementing
cp would include GETting the resource,
DELETing it and PUTting it back again
with a new name.]
One problem with the above approach is lack of atomicity and consistency. Since each of the operations (GET, DELETE and PUT) happen over HTTP (which is stateless inherently) the s... |
87fd741263f7ca42634c6dcc1ed66ba2603c1eb6f1870aef3c83e213370eba2e | ['59bdba484a9a47e8a93f8136a6212453'] | You are doing it totally wrong. LONG_MAX is an integer, so you can't call strlen (). And it's not the number that gives the longest result, LONG_MIN is. Because it prints a minus character as well.
A nice method is to write a function
char* mallocprintf (...)
which has the same arguments as printf and returns a strin... | 13e787ce23648444820ac8ca059bffafbc07ce39bc5cabd8f1a875cb71f88d9f | ['59bdba484a9a47e8a93f8136a6212453'] | To start, user is an optional AnyObject. You can never expect that you can use an optional where anything non optional is required. Typically you will use "if let" to check whether the optional is there.
But really, do you want to put an AnyObject in your database? This is asking for trouble. Check first that it has t... |
2f82faf1a1953724a9dfcd867cf71e905ce4e9ecb1e4c7a8f1d50464cbd5510e | ['59c6a30a0ba14d2790bccd685aa862b5'] | Hi i'm using devise_token_auth with rails 5.1.6 .When i updated my rails version to 5.2.1 so i can use acts_as_favoritor 2.1.0, i got the error in my elasticbeanstalk environment log:
Column `tokens` of type ActiveRecord<IP_ADDRESS>Type<IP_ADDRESS>Json does not support `serialize` feature. Usually it means that you are... | 26463a7605bf080cfac02c85935047b5a7bd7a06056d624721ecc04c787d9e8d | ['59c6a30a0ba14d2790bccd685aa862b5'] | I am using <mat-select> for angular material with multiple choice, is there property to set for <mat-option> to check or not an option depending on a param.
For Example if I have 3 objects:
users = [{ name: 'name1', checked: true}, {name: 'name2', checked: false}, {name: 'object3', checked: true}]
I want to get this... |
fe6de2e38efb61106cb52c135f867c8fc0e0d1cdf601305bdc25c965e837c45e | ['59d8aefa434547e3a0d05364351b2b56'] | As described in documentation "message" service message can have multiple arguments, so you need to specify at least argument 'text': "##teamcity[message text='Getting production info']"
Your script will be
write-host "##teamcity[message text='Getting production info']"
if ($LASTEXITCODE -ne 0) {
write-host "##tea... | f5c30664e373e631064f84c275566b4b65ef1baca06f2af96c57237c42633d48 | ['59d8aefa434547e3a0d05364351b2b56'] | You can create 2 build configurations:
"Functional tests" configuration with VCS trigger.
"Deployment" configuration with snapshot dependency on first configuration and also VCS trigger (or other trigger, e.g. Schedule trigger with 'Trigger build only if there are pending changes' option selected).
Files will be depl... |
5822c6cc714a26f8d2c4c5f76c9d8313cae6d7ea1451de7467dd177b7f616d39 | ['59dae14a366d46e58c5f434b62c3937f'] | I tried this and it seems to work.
$data = ReviewHeader<IP_ADDRESS>select(
<IP_ADDRESS>raw('DATE(review_headers.`created_at`) AS dateTime'),
<IP_ADDRESS>raw('(SELECT
(ROUND((SUM(IF(rd2.`param_value` >=9, 1,0))/COUNT(rh2.id))*100,2)) - (ROUND((SUM(IF(rd2.`param_value` <7, 1,0))/COUNT(rh2.id))*10... | a8dc33acf2989570de2993d32eaf480eeb5ad3dec0aa3de14b2be90a14265462 | ['59dae14a366d46e58c5f434b62c3937f'] | I know that the answer is really late :)
But for the sake of anyone else who may have a similar error.
<?php
// change from: echo $form;
echo $form->render();
?>
I was rendering the elements separately so this is how I did it:
<?php
// without the renderBegin() and renderEnd() it may give the no object error
echo ... |
5e888a439c16e44ea35f747ac818458113a0b77123cb2425f5a02618e74645b2 | ['59e0dfca7edf4f7fbac6f6aeff0e76a1'] | I am beginner to pusher . I want to integrate pusher in android app , eventually i have done this. But i want to make connection of my app with pusher alive when android app is in inactive state.
Is this possible to make connection when application is not running.
and one more question associated with above is:
Can we ... | cd6a02f27221b93deae2776ee1245ca4627ab25b19d17bd5e4748dc9288834b9 | ['59e0dfca7edf4f7fbac6f6aeff0e76a1'] | I am license owner in google developer account.I have invited some team members to join this developer program. One of the team member has admin role permission and he published an android app on play store on behalf of our group.
What would happen if i delete that user from the team. Who will get the whole rights of... |
691fdbda78b47a09c2175eb548b4642048e4ea80304665f11840c364a2597cfc | ['59ec33a993834c8b81093fc985303609'] | This is a 2 Part Question!
PART A <IP_ADDRESS>
So Till this point all i can figure over was Till Android 4.2.2 there were two ways available to us :
Use the logcat and extract information from it Runtime.getRuntime().exec( "logcat -v time -b main PhoneUtils:D"); I used this code to read the logcat and find out the "dis... | 3b3f22ec44b5a241b2f2a2e4d3004f06d96f2b392da30ce0b597c9bf06fd2381 | ['59ec33a993834c8b81093fc985303609'] | I've this application into which the input text is passed through adb shell , now the problem is whenever i type command :
./adb shell input text 'Khay'
works perfectly fine and it display<"Khay"> it in a text-box in the application as it is supposed to be . but when i pass command that is very long something like :
./... |
e36ee4e8f0399a9c713f620542850dcd853eee3b74cb8befcce37f80bf7a32db | ['59eee5abc0494718bcae013a82cbe37a'] | To find the adapter, run this command.
lspci -nnk | grep -iA2 net; lshw -c ne
If you're using Broadcom, here's a great resource that will show you how to install the drivers (I had to do this when I installed 15.04 last weekend)
http://www.howopensource.com/2012/10/install-broadcom-sta-wireless-driver-in-ubuntu-12-10-... | 369cf859c84e754478742b067720fa2d9899e447411ff87eb750731d6811a0c5 | ['59eee5abc0494718bcae013a82cbe37a'] | Thanks for your answer. Unfortunately, that didn't work. You can find more details of my problem in [antergos forum](https://forum.antergos.com/topic/11552/headphones-recognised-but-produce-no-sound/5). The file /var/lib/alsa/asound.state has following lines at the start:
`control.1 {
iface MIXER
name 'Headphone Pl... |
134186afbf87e552bc1b68c5c3066fcc9656c2463cbd8d5fb6b06bfb223a82f9 | ['59f077c4ee7b471db04e97e376eaa72e'] | Define "safe" and "worth".
It will void your warranty, and you will risk bricking, blocking or otherwise ruining your phone, so it is anything but safe.
It will also open the possibility of custom ROMs, modding, debloating, theming, hacking, backing up, extended updates support for recent versions of Android beyond wha... | 09d9f45c3707d566baa259e8f91c5be2bfff9110de5075c4d45d10f6e155e0b7 | ['59f077c4ee7b471db04e97e376eaa72e'] | I'd say in general you should refrain from using any absolute paths in your HTML file,they will almost definitely break as soon as you change devices, and is probably a bad practice regardless of the purpose.
If you want to do this property I'd strongly recommend creating a master folder for all your recipe related fil... |
dfc3cef755f2b368d74d43eeaa4b34871255902d8f775fbdf191325522b14d43 | ['5a0f27b9b7134597903269417c512f80'] | I apologize in advance if I'm fundamentally misunderstanding something here. But I'm trying to figure out where the data is produced that forms the t-distribution on which one calculates the p-value for a coefficient in linear regression. Is the regression run multiple times, maybe on bootstrapped samples, in order t... | eb15f3fe6f7ae7467d628ffa894ce9813608e4cb9df525a62002150c1d977b5b | ['5a0f27b9b7134597903269417c512f80'] | I'm trying to improve my intuition surrounding machine learning algorithms.
Let's say I have a continuous feature (for example, let's use the length of a flower stem), and I'm considering using that feature in a classification model to help me predict the type of flower it is (let's restrict the problem to roses vs. vi... |
c113031373f99fdc4ef04faf7095dabf83c60c66fc8d16621b02e1cda5c69bc9 | ['5a16e5a4bb3f478e89d11cabfae7acc6'] | I would suggest you to try to use the binomial theorem expansion which can be proved by induction, for more details about that see https://en.wikipedia.org/wiki/Binomial_theorem.
At least on part a) you should get:
$$ \sum_0^n \frac{n!}{(n-k)!(k!)}n^k-1 $$
which should expand to something like:
$$n^n+nn^{(n-1)}+...+n^... | 857f420e2cd485d04ba470f003bd9686e0b79e43e11f6935709bb038ede35e01 | ['5a16e5a4bb3f478e89d11cabfae7acc6'] | I think f(u,v) can also be thought as f(x,y) via $uv=y^2$ and $\frac{u}{v}=x^2$. Then to take $$\frac{\partial f}{\partial v}=\frac{\partial f}{\partial x} \frac{\partial x}{\partial v} + \frac{\partial f}{\partial y} \frac{\partial y}{\partial v}$$ This should be equal to
$$\frac{\partial f}{\partial v}=\frac{\partia... |
8d311d95c9de48c0bbdb443ea85e812667556117844b3e4abecbc1b05cb6f2a9 | ['5a17f7b036ec44678ec833a9f12c9888'] |
z[l]=w[l]a[l−1]+b[l]
In this if I interchange w and a terms i.e.
z[l]=a[l−1]w[l]+b[l]
I know matrix multiplication constraints that is no. of columns in first matrix should be equal to number of rows in second matrix.
If we ignore those constraints, that is these constraints are satisfied
z[l]=a[l−1]w[l]+b[l] is... | ad0ca0e813082348e86160a3e465fd49c0e23a228b0b4772d53931594e120748 | ['5a17f7b036ec44678ec833a9f12c9888'] | ok thank u ..i get it now...but still i have a confusion about the 1−y(wx+b) part.
if i am not wrong yi in above equation is the actual output of training example xi.
so if suppose yi is -1 , the equation becomes 1+(wx+b) (replacing yi =-1). how this
equation will give a value less than or equal to zero so that no pen... |
6d7bf3b5fd0049ffbf9d319d26827e5cf2a25aeffec3d782ae45b198524226f1 | ['5a58a3b8fd6a466f9d5cfdc1398cf265'] | I want to know the use of KVO in swift as I read in Apple Doc or any other online articles it states that it provides indirect access to properties and addressable via string. I have a set of doubts.
If I can set the property directly via person.name = "<PERSON>" they why to use a Set Value for key name = "<PERSON>" i... | d18c02d57bd2f9543925e57208f41245d0e75fbbee9a6f9c2af7898c41632f0e | ['5a58a3b8fd6a466f9d5cfdc1398cf265'] | I have a requirement for an editor app where i want to store data in the form of image ,audio and video in realm Object as i am new to realm and swift.where i am able to write data but how to read in form of array of objects.
|
940526b1fee2837cbe28bcf1871231283492bd465fdb2c392de82265ce7e5903 | ['5a5fef9c4bc34e5ebda100e9c6e7051f'] | Ok, based on the comments received it seems that the ideal solution is to break the modules into sub-modules and use those as dependencies. However, as this is currently a time consuming task, I am posting a quick and dirty solution on how you can include one or more java files into your build by copying the files unde... | 38eb55df4660ec53901dae71e79ad8767522621030ee6127f67b872bde280066 | ['5a5fef9c4bc34e5ebda100e9c6e7051f'] | I am working on JavaFX the last couple of months. I am trying to find a way to implement a listener that is fired whenever a particular pane is shown on the root pane/scene. In Java, I could implement this using the ancestorListener on JPanel as shown below, but I cannot find the equivalent method on JavaFX.
JPanel pan... |
6b0f5ee766d81a3f1bb2bbcecf2362d30f0db671ae92c04e2c5466057b2e7886 | ['5a7401abd742413a9c2c88f479531022'] | I have an object with users:
const data = [
{
name: "John",
lastName: "Doe",
email: "<EMAIL_ADDRESS>",
password: "123",
following: [{ id: "113"}, { id: "111" } }],
id: "112",
},
{
name: "Jane",
lastName: "Doe",
email: "<EMAIL_ADDRESS>",
password: "123",
following: [{ id: "112" }],
id: "113",
},
... | 9568297c8922a31b322566044e565cb68e54dc75a1fffeb2fa37d3f2155ae45b | ['5a7401abd742413a9c2c88f479531022'] | I need to pass two methods to my child component. That component is <NavigationBar/>, and there i have two <li> elements Field and Statistic. When i click on Field i want to execute pausedMethod(){something=true}, when i click on Statistic i want to execute resumeMethod(){something=false}.
I can listen for one event li... |
1a03107bf56b2278ab208e70edce3caed779bdac090f425e105396f0a1e67d3d | ['5a84ce98f0004ef6bccbdc4903d04d41'] | Hi this is my first project in both React and Django Rest Framework and I need to figure this out to complete the project.
The issue I'm having (I believe it's a React one) is that my api is returning an json response which React receives using axios which works fine since when I do the console log all the data is ther... | 769e55b852bae3f203d387234bcf952a9b0d552122acf5f2e9ac2a1d9d5b88a1 | ['5a84ce98f0004ef6bccbdc4903d04d41'] | Hi I'm new in react so sorry in advance if I missed something obvious. I'm having problems with returning links from my json while using the map function. I have been trying to use the map function to return several links that are in an array in json file that I have but I seem to be doing something wrong. I would like... |
021cebefbfdabea1808d796d9ed62cbecbb027fe7f7f89c5324a154bfaf5a8f7 | ['5a89fec3692045fd987cc7b8d52de712'] | You also can use the new searchPaths setting since 1.0.1
config:
server:
git:
uri: http://host:port/configuration/git/app.git
repos:
team1-config:
uri: http://host:port/configuration/config.git
searchPaths: team1*
pattern: team1_*
team2-config:
uri: http:/... | a4d84a982800a108be9a8844c34ae55f8644407ff812d17e9631d38e9c2d6c8f | ['5a89fec3692045fd987cc7b8d52de712'] |
Without a pattern the server doesn’t deliver any configuration from
any of the files in the repo. On top of that while pattern: “*” works,
it only works for first repo. After that, the Cloud Config Server
cannot load any configuration from any file in any other repo no
matter what pattern is given. This includ... |
300aefbf49c75d52aa591331f26ab3d1fb1923222d768242f5a6dba20941929a | ['5a8e9941d5c84316850cf8deb62b0860'] |
The EnfantParents is a hidden table
From the above I assume you are using EF with auto "link" table, your Enfant entity has Parents navigation property and your Parent entity has Reservations navigation property.
Then you can achieve the same result as the SQL query with a LINQ query like this:
var query = db.Enfan... | da0f76e80852fb11a1686117ad3d041f89afa2beb6f7c04230a7807823fd8bf0 | ['5a8e9941d5c84316850cf8deb62b0860'] | Once you have control on the underlying data source class, you can add a special property used just for data binding (this way not breaking the existing code) and use attributes to control which one applies to UI.
Let assume your class is something like this
class MyClass
{
// ....
public byte[] Password { get... |
24707ea17e1c6a70ba0290a997b557316da21582beb46b626ff98781c586ee63 | ['5aa8475054a44fd380ba5078d4e802e1'] | You can use something like that
let list = document.querySelectorAll('.product')
for (let item of list){
item.children[0].remove()
}
<ul class="myclass">
<li class="product-category product">
<a href="#">del</a>
<a href="">
all product info here
</a>
</li>
<li class="product-category product">
... | fa502d6d84f5a7248a331a4f7c2df5f39b66b4dbfe990bebb637432af5ab8981 | ['5aa8475054a44fd380ba5078d4e802e1'] | One more way to solve this.
let array = [{x: 205, y: 205},{x: 230, y: 205},{x: 255, y: 205},
{x: 205, y: 205},{x: 205, y: 205},{x: 205, y: 205}]
let sortedArray = []
array.forEach(elem => {
if (!sortedArray.includes(JSON.stringify(elem))) {
sortedArray.push(JSON.stringify(elem))
}
})
sortedArray... |
b1b879c07d9abf3bab1b32f240214ec99231bf4d30a244edf46a81ea7ec35f15 | ['5aadea49e0ea42e6aa045d0e2201a532'] | I am trying to join 2 height balance trees. for that purpose, I am writing join() function in C. I have done everything as per as instruction but for something, it is showing segmentation error. I understand that segmentation error happen when there is a bad pointer. I am trying to code in C. I could not figure out wh... | 0c990f9a45e7f788cb256e6717990a9b54ef292f0bf3dcb1b4eb09a240cc64f1 | ['5aadea49e0ea42e6aa045d0e2201a532'] | i am trying to pull from a repository in bitbucket.
i am giving
bash-4.1$ hg pull https://<EMAIL_ADDRESS>/golmschenk/i4330-notification
but it shows like this
pulling from https://<EMAIL_ADDRESS>/golmschenk/i4330-notification
searching for changes
adding changesets
adding manifests
adding file changes
transaction a... |
c65b51d1ca6c6ecbcee2fdc7a98743dfedccc3ce3adbfbba871d80eee70e687b | ['5abffb17f53543eb8a1d1937b19f6a1f'] | I have a VF page that works fine in a Dev org, but when installed in another org it breaks with:
SObject row was retrieved via SOQL without querying the requested field: Namespace__Hub__c.Namespace__ClientName__c
<apex:page standardController="Hub__c" extensions="HubControllerExtension">
<apex:form >
<apex:... | 5b08468b4525ee41e3ebb1e6aae0cba5343646067a4eb49050360c66cca2c767 | ['5abffb17f53543eb8a1d1937b19f6a1f'] | We have a setup here were users can remote into our network via VPN and then remote to their desktops.
This was all working fine.
The other day, we moved DNS from one server to another. I changed all the entries I could find in the ASA to the new DNS server's IP but now after connecting via VPN, you can't ping or RDP ... |
8291a25048f0354c4e2c51977939ed12e9f019c3e0ebac09100aec376a2eaa6c | ['5ac377df41d44028a4deca64b1ebb601'] | I have a <select> element defined like this:
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
I would like to get the same functionality (being able to select an option), except I want to permanently display all the options, instead of hiding them in a drop-down-list. I basically wa... | ba7953ab7d208509d42d25396aec270a7d227395cae7795b23f1e0ede46cbe8f | ['5ac377df41d44028a4deca64b1ebb601'] | I am drawing a line chart. Sometimes there is no value (null) for a certain time. I want to draw a line between two points even if there are null points in-between
example:
['2010-01-01',123],['2010-01-02',null],['2010-01-03',349]
I want it to draw a line between 2010-01-01's data and 2010-01-03's data, ignoring 2010-0... |
29281ae09b7e6a97d4da8828e686b768ebcad41a303191fbaa36675e3f6f08ea | ['5ac56463bff5482f94298b908d653e14'] | Currently I am trying to solve a problem with a nested for loop. I have solved it using the reverse method before. Now I am given it a go with a nest for loop.
I am confused on why my code doesn't work. Would love and appreciate some guidance. Thanks in advance.
function palindrome(str) {
var splitStr = str.split("... | 38164bc308a5146b77579a625c3474aa1aa561e8be3e8ed5689fd4f22a96adb3 | ['5ac56463bff5482f94298b908d653e14'] | I've been working with a dataset and solved some of the constraints given but now I am stuck.
Any help and explanation is very appreciated.
The question is:
Write the function bot_spammers that accepts the absolute path of the activity logfile, and returns a list of all the spammer names
The conditions to identify a ... |
b3eebb8295aba5e678fd534b24d69510e2b29f2be7391e6da662fbb80f8af3ac | ['5aca379e658741999252756812b10f4a'] | It turned out that JS passes primitives(numbers, booleans, strings) by values and objects(also arrays) by reference.
So when you work with complicated state object and pass objects as props to child components - it's really easy to mutate upper-level state.
For me it was input-field-change-handler like this
handleInp... | 9a5f6cbdb1f54d35e1927d004affee956b0a0fee1755cb3e6fc1157406813fd8 | ['5aca379e658741999252756812b10f4a'] | So I have stateUpdater like this
stateUpdater(field, val){
let obj = {...this.state.json}
obj[field] = val
this.setState({json: obj})
}
(It is passed to children components from Main so I can update Main state on lower-level events.)
And I have componentDidUpdate like this
componentDidUpdate(prevProps,... |
64e425ac5373ea37742ee0c98392d98c63b2b57a4b6a95198a5808f5be7b09c8 | ['5acf1a6827e343de834fd40ac8a0ad47'] | I'm having an issue accessing my website (heatcool.com) from outside of my network by URL.
Server Environment: Windows Server
Here's what I know:
1) I CAN access within my network by IPV4 IP, Public IP and URL
2) I CAN access from outside my network by Public IP
3) I CAN NOT access from outside my network by URL
4) I ... | b85c72fccea7b317cc5138ebe6aa27aed796c4d755a0c4d82ae2c6a0bc25d6d5 | ['5acf1a6827e343de834fd40ac8a0ad47'] | Recently bought a Logitech MK850. It has Ctrl, Fn, Opt, Cmd buttons on the left. I'm trying to switch the Ctrl and Fn keys so that it's the same as the Macbook keyboard (which has Fn then Ctrl). Tried the Keyboard preferences but no luck - it doesn't seem to let me modify the Fn keys. Any idea how to map keys? (FWIW: r... |
9f9ded135a967d36aaa0e29e49b1964a4e8172d702a1ee71641fdcf2cd5e4312 | ['5ad7ec8b22094e35a5be563105acad18'] | My code to address the problem below worked, but can someone help me understand this: why did my code only access the key and not the value? This has been a consistent issue I've had understanding dictionaries - just started studying them this week. I expected to either get an error or some jumbled mess of countries an... | df857ee9e1854702978bf275a2bec0099d1329719f744412aed385c4b819a60b | ['5ad7ec8b22094e35a5be563105acad18'] | I'll type the question my code is in response to below for clarity, but I'm having 2 issues. It seems to be adding correctly up to a point, and the result for the count of the other words in the sentence seems to be accurate, but rabbit suddenly jumps from 1 to 4 and I'm not sure why.
I'm also getting this: Error: Att... |
1a363ef80cd61b90819df42797d611911273ff30a44a2e4bd73db8a8c7248f7c | ['5ad9feab7a5749278a34a7c83578d20c'] | By the way, to ensure my statement, _"You should use labels in the most possible upper scope (if possible, function scope)."_, I would write the while-loop as a GOTO-loop. Because using a GOTO-statement within a while-loop hurts a structured text while-loop ^^. What you are actually looking for is an interleaving loop ... | 189a59a34e4fc3c1429eff44d06af7e53a423c810bd91cc75d3d9a03736c301d | ['5ad9feab7a5749278a34a7c83578d20c'] | Thank you for your reply. I'm answering to your _"Comments on aspects of the original code besides code repetition:"_: I know about the fact of bit-mask operations, but don't do they increase runtime? Using `DIR_N | DIR_S | DIR_W` may need more CPU-cycles than just passing a constant. I agree to your statement of not u... |
42b54de8b72ea34f5205cc82d62916d79967ad8aa219ba84a4ff2d8fa732294f | ['5ada1b7e595f461d9bc32e1184e49ea0'] | Make the member private and add a setter/getter pair.
In your setter, if null, then set default value instead.
Additionally, I have shown the snippet with the getter also returning a default when internal value is null.
class JavaObject {
private static final String DEFAULT="Default Value";
public JavaObject()... | bf747a5b8a700b091d0ac269feb8045c4c1972eb9af07856123b19dedf6c35a9 | ['5ada1b7e595f461d9bc32e1184e49ea0'] | Non-Atomic Concurrent Session Management access can be simulated with the following pseudo coded logic:
function main(){
$locker = new SessionLocking();
/** read elements the $_SESSION "cached" copy. **/
$var1 = $_SESSION['var1'];
$var2 = $_SESSION['var2'];
/** Pseudo Atomic Read **/
$locker->lock(); //sess... |
96bc6a683d02edd491611c3d773171480fa6e0d5a6f7a4608793be2bd02eecf7 | ['5ae090d83a2e455480433494eabf8115'] | So for second question
If want to do kinda nested(multipurpose?) comobobox you need to make event that changes it. This sub will run when user try to select something so it might not be "bulletproof"
Private Sub cmbRoomType_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmbRoomType.SelectedIndexChanged
... | 5c9be94f95bcd2a8361ba04ba95bb637ba1a3ea0b265ff6c9c5fd194fac9746f | ['5ae090d83a2e455480433494eabf8115'] | im working with automate my script to scrape counters from lan-website and im pulling my hairs now.
code looks like this
<TR><td><p align="left" style="margin-left: 30;"><b>title</b></p></td><td><p> </p></td>
</TR>
<TR><td><p align="left" style="margin-left: 40;">table one</p></td><td><p> Task  ... |
6f35efb68a67dc2ec208a54932394775a1fd3e191153e41d185ebc429543218c | ['5ae2cb186374423185c29c0963ba7011'] | With the changes in Android O, ANDROID_ID is now scoped per app signing key, as well as per user. Factory resetting the device will also generate new ANDROID_ID value.
My questions is, what other alternative ID (that's more potent) does you folks use aside from Android ID?
I did some research learnt that Google sugge... | c1496bd6889ac09f3e0eb61eb8d9ec3040b5f17ef9d029a0b57f8a56c9befea3 | ['5ae2cb186374423185c29c0963ba7011'] | I've implemented GA in my app like what it stated on the Google Developers page. I was getting real time data, events and screen views just fine.
However, I decided to turn screen view off because I was getting too many screen views events and have to reduce the number of events sent to GA. So I went on to set this at... |
a4104a2e9c3046339266cb82fd70bf4521fd2f2ce293bc44a22663e15b03e701 | ['5ae4edccc2524423a4cc7e0c4833aa55'] | I followed the steps of this post https://developer.jboss.org/thread/194827 Integration to set up and run JBPM Designer. The only difference is that I am using jbpm-designer-2.3.0.Final-tomcat.war.
The problem that I faced is that I cannot see the run simulation button. I can see only the process paths button. What sh... | 10becef8a671827212c366e5a5d5f2ad561fa826a4b8ae07fe592d3e1d4de53a | ['5ae4edccc2524423a4cc7e0c4833aa55'] | I used to had exactly the same problems. I dont think there is any way to solve your problem. I offer you to create an app were you can change your h s v parameters on run time and checking from threshold if your combination is good enough. I used this project for that . I hope it will help http://www.osslab.com.tw/@... |
0077dd92ad5ee422498d7382dcf68f45ff2c4d26f72e23c7d6dbdca17ec2d1ac | ['5aef22aa574341609a1b0a71443dd90e'] | Firstly, you might consider using same mapping for GET/POST requests as a standard like:
@GetMapping("/new")
...
@PostMapping("/new")
Also @Valid Album album parameter should be annotated as @ModelAttribute.
You should not add model attributes if binding result has errors. (Actually, you should not add any model attri... | 7ba1bb017dedd5e4c23c202e7ac9782a6b62427c1788cdf9fb2c23da2ec7a3ab | ['5aef22aa574341609a1b0a71443dd90e'] | You also need set model and view name in post/create method.
By the way, handling methods with ModelAndView is valid but I think it would be better to use the String approach. It's much better to read and a standart way. So your controller will look like:
@Controller
@RequestMapping("/accounts")
public class AccountCo... |
8f074ff5fba3613fe8b4d30df94a277bf43b4f41e70c37e5750f73b97454d8b9 | ['5afb16ed0feb4a0683a0fc19a32f3f08'] | I have org-mode on two computers. On one, the version is 8.2.5h; one the other, 8.3.2.
Evaluation of source blocks works on the machine with the 8.2.5h version but not on the 8.3.2 version.
Here is a minimal example:
* Emacs org / R / latex.
Make a random number.
#+BEGIN_SRC R :session *R*
x <- rbeta(1000... | acb7fc992057b2cc1b053f066b9f84e16d2b64589cd7b7b8d542df9e9aac6f55 | ['5afb16ed0feb4a0683a0fc19a32f3f08'] | This issue was addressed in a similar post here by <PERSON>:
https://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01600.html
Results are not noticed without a newline. However, it is also important to put the newline argument in the printed argument, otherwise the result will include ">" from the next line in R... |
260b789a237908098a778b6393d2daadffb3780357064981350b7f831bdebb69 | ['5afbb7c760cb498b8743cf568cf76686'] | I have inissider network analyzer tool running on my window 7 machine. I also have 2 different networks running in my house. Each network is on different router. When i run inSsider it shows that i am connected to one of those network but max rate for one is 156 and second one is 144. Should it not be same?
I dont ... | 0ef21dd53a23be04b2c6c71e76e3876650eabad402218b88966ae4dae0ca2f38 | ['5afbb7c760cb498b8743cf568cf76686'] | Ok i think i am good now. I pulled one end out of that patch panel. I terminated one end at keystone and the other end has a plug. I tested it and it looks good. I plugged plug end in the one of the router ports and using patch cable (connected to keystone) i connected my laptop. Everything works. I used standard ... |
81627dfd007e9c46e059f519224efcfe209c2e32e961aa77e667e7b30e292feb | ['5b0c6298bd534fa8b8b2a0a6fb3bedd3'] | Lab employee here. I can't speak for all labs but here's how it works at mine (note that we do both photographic and press printing as well as a few other methods).
It all depends on the type of equipment that is going to be printing your product. Traditionally photographic prints are done on a minilab or equivalent p... | 8deefe752aa379885a429dae07ea7ae97ca80427e16ca0b0e0d3fa99458a0448 | ['5b0c6298bd534fa8b8b2a0a6fb3bedd3'] | I think the main reason for non-transparency is issues of envy between officemates, and the fact that companies can save on their expenses since a lot of people don't try for a raise when they are clearly qualified for a higher rate.
This is just speculation though, so don't quote me on this. |
1fa18bc1e2880c76d6a8dea55a3f9828da36e8fa8ab1d2b271bdd2d00195ec96 | ['5b31ef06f5e243459f5aa91a29fcc13f'] | I had the same problem since Coronas last update. I fixed the problem by removing the if check for the event phase. Just comment out the event.phase check in your listener function:
function listener(event)
--if event.phase == "began" then
print(event.name.." occurred")
storyboard.gotoScene("facebook", "fade"... | 64434af909d946af15e2bfbcacb435718085af9ba8cb4de17cf97e6c7cb152d2 | ['5b31ef06f5e243459f5aa91a29fcc13f'] | There is a way! I finally figured it out!
First make sure that you have the subl command for the terminal, and set subl as your git editor (with the -w option):
Edit your .bash_profile to look like this:
export EDITOR="/usr/bin/subl -w"
Then do a git commit -v for the message to open. Inside of the sublimeText2 window... |
12e672d8b47a0f0094894711de518182ded0e3a1084e75d034e4864bd4fce62d | ['5b4fc97cf5a6451f87e76302e463498f'] | Trying to get very simple ('toy') 2-layer neural network to build model, as a learning example to make sure the math flows correctly.
The model should learn that a '1' on the first and last feature equates to a '1' output.
features = []
features.append([[0, 0, 0, 0, 0], [0]])
features.append([[0, 0, 0, 0, 1], [0]])
fea... | f8c8ab333a13a520811bf19cd47a34d70d3859e7edb3fe53ace746a0ad0ffff2 | ['5b4fc97cf5a6451f87e76302e463498f'] | The problem turned out to be the output, it needed to be a 2-class array. Not sure why this is necessarily the case.
features.append([[0, 0, 0, 0, 0], [0,1]])
features.append([[0, 0, 0, 0, 1], [0,1]])
features.append([[0, 0, 0, 1, 1], [0,1]])
features.append([[0, 0, 1, 1, 1], [0,1]])
features.append([[0, 1, 1, 1, 1], [... |
906238d910a92f9f5d077be298ba9abd27f278e3e0c03076713c27360b9463ed | ['5b513f148acb4999b1b48834421490b5'] | I get warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long unsigned int *' [-Wformat] for the code below
unsigned long buf[254];
char systemlogmsg[500]= {'\0'};
snprintf(systemlogmsg, sizeof(systemlogmsg), "INFO: %lu ", buf);
what should I have used instead of %lu?
Furth... | e8005690466c36533011c037daa4fe70c169821f484a7b4b6e99a4fa1bfe4a76 | ['5b513f148acb4999b1b48834421490b5'] | I would like to add wpa_ctrl.h on a C code, and the source code has the following header files:
#include "includes.h"
#include "common.h"
how do I suppose to have them? Do I need to install any package or do they suppose to be at the kernel header files or in the include path? If I need to include it manually, then ea... |
47bf589abf1556c031361de78279b4f855e1801e5d95f26e1c5ab64a08537ebf | ['5b52e8c76e9b44928bb761f47f980f14'] | I have generated an AngularJS project with yeoman, and have the standard 'Allo, 'Allo! page working.
I then decided to add restangular to the project, so executed "bower install restangular" which correctly installed the package (bower list shows the restangular reference).
However, I expected the index.html file to au... | 9947e278f339eabe9ce7cbcbddc4aaae52da5cde57c87040e57cf54edce71670 | ['5b52e8c76e9b44928bb761f47f980f14'] | I've been looking for a tool/utility that provides a console-like option for building JSON data APIs on top of a relational database.
I've come across deployd (http://deployd.com/) and emergent one (http://www.emergentone.com/), and am wondering if there is anythign similar for internal relational Dbs.
Success would be... |
68c0c443bc4ca83686b0752cafad9697cb6f10ef45098218faab4eda8c005f23 | ['5b5c2f91dba04c2c9a3abfd68ebaca18'] | I found the solution from Google, when using the rsync method then add the ssh account to Vagrantfile content:
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.synced_folder ".", "/var/www", type: "rsync", rsync__exclude: ".git/"
and remove lines from 77 ~ 79 at file C:\HashiCorp\Vagrant\embed... | 971533fb13d9a4b93ba3449eff005b617d2ef3947b8dae7e3ef6c5148197088c | ['5b5c2f91dba04c2c9a3abfd68ebaca18'] | I got the below errors once I run vagrant up and using rsync method in config type
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /e/virtual-boxes/scotchbox/
Guest path: /var/www
Command: rsync --verbose --archive --delete -z --copy-links -... |
26407a4c4999492f67444d4f9649d5e245c05595be95e9572e6d3f645c8d8eb8 | ['5b66bf3f31784c7e904845c24ef906fe'] | In your case, you have not used editor.commit() function. Here is the whole code
//Store in SharedPreference
val preference=getSharedPreferences(resources.getString(R.string.app_name), Context.MODE_PRIVATE)
val editor=preference.edit()
editor.putBoolean("isLoggedIn",true)
editor.putInt("id",1)
edito... | e195d9bffc855df5f92054a06327dc59d109aca3aaeca91470145ee2000bdf65 | ['5b66bf3f31784c7e904845c24ef906fe'] | <PERSON> answer help me alot, I changed my model code:
public class ProductTest {
String code,desc,name;
ArrayList<Object> packs;
public ArrayList<Object> getPacks() {
return packs;
}
public void setPacks(ArrayList<Object> packs) {
this.packs = packs;
}
public ProductTest(... |
b3876ca09fd1396c518f7f82ee60940d3e8f2b429dbd6c74f7631afa43675a32 | ['5b68a4f977fa41809d73d7c9a2b85df1'] | Finally find out hot to solve this issue.
According to this link kotlin-maven-plugin jpa adds only default constructor for entities, but does not make entities open. So i changed plugin configuration to next one and it worked:
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>... | 8db4a458f27db5237f6b4fd5a3cf35993e973fdedd651f9beca95aceb51359da | ['5b68a4f977fa41809d73d7c9a2b85df1'] | I'm trying to create CRUD endpoints for entity A. This entity has a field with collection of ids of another entity B. Entity B lives on remote server.
I want to
Validate that entities B with passed ids actually exists on remote server.
Save in local database both fields of entities B: id and name
name of entity B ca... |
430e25def3169fa087225e1f687819be455fc7920c46bbaa0a7862811dbddf7a | ['5b6ed260778344babeb9354471813ce7'] | http://developer.android.com/sdk/installing/installing-adt.html
Here is the link to adt plugin
Scroll down till you see a downloadable zip file of adt.
Download it
Unpack it
And copy paste the files n folders of that zip file in to the eclipse folder
If prompted for overwrite, select yes..
You will be good to go..
| cd48489f18909757b490a91789e3b027b5ffef3f412c3712f74f08da2eeafdb2 | ['5b6ed260778344babeb9354471813ce7'] | I was wondering how to go about interrupting the hover function with an unhover function?
For eg ,
I have a circle(made by css : border-radius=half of width ,where width=height) on webpage , on hovering it , it starts to increase its width and height from 200px to 500px , also the border radius from 100px to 250px.. a... |
a72ca4dee45d61ae7feb427ac4be2e7a9f8e48b837e1aaaa7b3937c44bb537a5 | ['5b7211e5bd1444c78c3f6f9c48b13d60'] | I have the following problem:
I would like to have a flashcard software in which I can write Latex formulas without to have installed Latex itself (Miktex etc) on my device. I suppose this is possible since XMind has also Latex integrated without having to install anything. As far as I could see Anki needs Latex to be ... | 07357ed757139efc2b4ed1980dd418ae7eb4fc4b4a8bbc5d6662e100b422c9b5 | ['5b7211e5bd1444c78c3f6f9c48b13d60'] | Thank you very much! It worked after I reboot my computer. Sorry for this lateness of my reply, the calculation work do not admit a reboot. After all worked normal, I have also tried the command demsg | grep ath, and what I got is : (sorry I have to trim this message) [4.248277] ath <IP_ADDRESS> EEPROM regdomain : 0.6... |
6352596fe99da32e6c2638e57c81cb8a1f0de9d951b8ac8f0877b702925e35d4 | ['5b744f92d28745adaf0a99e61e957c70'] | Better if you could post the code to see how you are sending the intent with extras to current activity too, for what I´m seeing here, the error is in this line:
Bundle bundlefrankrijk = getIntent().getExtras(); // is returning null object
And when youre trying to:
int scorefrankrijk = bundlefrankrijk.getInt("finalSc... | a9a8e5dc6c2afca8445b6f3702cb71a6507b2afb2da3ff2649d3447edbbf7262 | ['5b744f92d28745adaf0a99e61e957c70'] | I found a solution finally, just set the FloatingActionButton´s visibility to GONE in activity´s onPause() method and then set its visibility to VISIBLE in activity´s onResume() method, works nice for this case cause the FloatingActionButton recover its anchored properties when is shown again,
Source code:
@Overrid... |
db519e11347a4dee20df79082b61bf4acdf6a326291b5249ee537baa5f488d4e | ['5b79d7ea9cb5487a8a2a862c9170d15e'] | so Im trying to calculate a number raised to a power from user input, using scanf, but i keep on getting a segmentation fault.Does any one know why?This is my code:
int power( int base, int exponent){
int total=1;
int temp = power(base, exponent/2);
if (exponent == 0)
return total; // base cas... | e0fdc4aacfcb5ede24dbdec32a124e20f46e2e81945b18038c7bb6fd670a866b | ['5b79d7ea9cb5487a8a2a862c9170d15e'] | I wanted to make a 3 x 3 map with dots as their location. when you click a dot then it will change the path that you are using, i.e the line will be changed to that route. This being the color of it as well as the line position does anyone know how? This is what I had already. Now im confused of how to make a function ... |
fea6a4e6a53a0f6b2000f26d0366b40ebeb00f3970f8263fa2793bc65e087e83 | ['5ba0090520b84acaac1e1d6352a62400'] | There are 2 main differences between Interfaces and abstract super-classes:
Abstract Classes
code reuse is possible by using an abstract super-class
you can only inherit one super-class
Interfaces
every method has to be implemented in each sub-class
a class can inherit more than 1 interface (multiple inheritance)
... | a604bf0e04c26d262075a5f074535d257879169cd4a6b7b55eb7a37531d6c50f | ['5ba0090520b84acaac1e1d6352a62400'] | If you really just wanna remove the compile error, you can try something like 'a = a', or 'error = error'.
The arguments coming from some people here, stating that such compile errors are great because they prevent a lot of cruft are true for most situation, so you should avoid such constructs. On the other side I qui... |
8877c0b9c776693b741cd0fd0a3fcf9be960e4761fc91c27e7db8217fe16ecfb | ['5ba32a6a15fc4c20a437e65f21ea84fd'] | I am struggling with passing parameter to selector when by using withLatestFrom, which was mapped earlier from load action payload
loadLocalSubServices$: Observable<Action> = this.actions$.pipe(
ofType(LocalSubServiceTemplateActions.LocalSubServicesTemplateActionTypes.LoadLocalSubService),
map((action: LocalSubSe... | 878af58dcf333e78dbe2db970ed3485163cb8fa120f127f912e1f6d89e13a8e6 | ['5ba32a6a15fc4c20a437e65f21ea84fd'] | try to edit quantityupdate function so it actually saves qtytotal variable value to local storage:
function quantityupdate() {
var div = document.querySelectorAll('.each-cart-row');
var qtytotal = localStorage.getItem( "cart") || 0;
for (var i = 0; i < div.length; i++) {
var card = document.querySel... |
d723ccb5d392a85910666f4ec24fd073e9f04616c8d742cd1d76c2f561f6357f | ['5ba4c5f85c914cbb8499f75f796691cd'] | I'm trying to get basic ad level data from Facebook's insights API using facebook-python-business-sdk with python 3.7.
The problem is I'm only getting 25 results back, even in accounts that have more than 25 active ads.
I'm using the get_insights method on each account, passing a 'level':'ad' param and filtering on a s... | fec911eb6033c72b3aee518b5d0937208dec81249b3eb02bfd47172553461acd | ['5ba4c5f85c914cbb8499f75f796691cd'] | The solution is just to add a 'limit' param, see below:
from facebook_business.api import FacebookAdsApi
from facebook_business.adobjects.adaccount import AdAccount
from facebook_business.adobjects.adaccountuser import AdAccountUser
from facebook_business.adobjects.campaign import Campaign as AdCampaign
from facebook_b... |
f61792d5fc8522c9fa4b078c01ad8e21f3ca4fd4a3cc5f3e01d5b646875ea862 | ['5baf5fbc1bb944f5976938b733a921f4'] | I am using node-postgres for a database connection. For that I have APIs like that:
app.post('/api/insert', urlEncodedParser, function(req, res) {
// do stuff
})
Now I need synchron steps:
Select specific id from table user
Check if id from table user already exists in table list
3a) if id in table list does not ... | 38cc10fb0aed9cd910ad4d4eafb9e88a38bdca9a3d092136218926337cfda00b | ['5baf5fbc1bb944f5976938b733a921f4'] | How can I convert following string into an array in nodejs?
"Content: [{id: 1, value: 1, number: 1},{id: 13, value: 1, number: 3},{id: 14, value: 1, number: 3},]"
I tried JSON.parse, but there was an error: Unexpected token c in JSON at position 2.
Do you have any ideas?
|
7a2f4655e79f5d2c9bc29a4d06a56edaed6e7c1e91b58844c040c3c48bbd157b | ['5bb1b0bdc92a4009a944173593477340'] | I have resolved the situation by:
Making my directory structure simpler as well as the file names. It was over-engineered. I have my root folder now and then just one level below that for folders.
The Ajax url path, which I was struggling with was amended to 'serverside/like.php', which picked up the php file but noth... | 6ec6a622ef4bfaa993cecd414cdcb99353c79e701de2b774e924593aeb7557da | ['5bb1b0bdc92a4009a944173593477340'] | Looking through similar code I have on my website I found the below solved the issue. Because the content div is a parent that is there when the page loads, before the Ajax request creates the rest of the html, I used this to attach to the showMore div.
Thank you <PERSON> for your help!
$(document).ready(function(){
$... |
c3bb74e5d3974710179dbfa8e6704c281ffd9aab76321dc5d5e2a57e7a6b5d49 | ['5bd1aa51875b4003a6d4daaea267575b'] | http://legacy.datatables.net/ref
I am running an older version of DataTables, which so far has proven satisfactory for my needs. I have found the answer I am seeking, but just don't know WHERE?? the file is located within DataTables folder structure ???? - ( I want to make changes to the default # of records shown )
aL... | 616c14f9c2f97bea66daae2a0c8399305d4c95d5fe619285fc899127856b77d1 | ['5bd1aa51875b4003a6d4daaea267575b'] | I added Weblinks to my website as I have done for years.
The Weblinks show up at the page just fine, but underneath each link an edit button appears that anyone can edit each link. I have spent 2 days chasing the answer...
I just want the normal links to appear and not the edit icons underneath.
www.ignacioval.com/con... |
119d426ca341315f28e465368d1bc1029333dd117cbeecee6a4e235259bde667 | ['5bdb848d3fd24ba3bb651b627b539040'] | Chrome Lighthouse is telling me that to improve my performance I need to decrease my Max Potential First Input Delay (as it calls it). I searched how to improve it but I only found things related to javascript and my page is only using html and css (no javascript). Please can someone tell me how to improve it?
( I alre... | 513ccb066bdf7d5dd6f21a64a48427df99d42a9d8205840c1bb0963085f1690d | ['5bdb848d3fd24ba3bb651b627b539040'] |
try to derive data from other data (for example if you have a voting app, instead of storing the number of people that voted, the number of people that upvoted and the number of people that downvoted, you can store only the upvotes and downvotes and do maths to calculate the total amount of people who voted)
|
fc1dbec517f3206110d34bc39cf60e7f134cf64c7a55501e44ffa9636237de94 | ['5be2a5cacfa742a1b7d07785d94e2ea7'] | You're drawing the pointer at the same position as the run button still, because you don't ever check if the pointer's position is in your recording bounds. Also, you might want to scale your pointer's position with your recording bounds.
For example, you can check to see if the pointer is left or up from the viewing r... | 275ce53a4d0f0545103a3176a99a9a7362ee50372426372cbac38e403405c59f | ['5be2a5cacfa742a1b7d07785d94e2ea7'] | For Android you would probably want to do something like this:
initialize();
setButtonListeners();
new Thread() {
public void run() {
try {
sleep(3000);
} catch (Exception e) {
} finally {
Intent menuIntent = new Intent(SplashLoadScreen.this,
... |
42bc24823b370d127248bb98ff0db9e861f79f76b89ca6be69640364f4d44fee | ['5bf07c4bccd2425ab5416b4571c6abd8'] | My Situation
I'm running the latest Ubuntu 18.04 and I'm capable of opening a WEP encrypted hotspot, but for security reasons I'd like to avoid WEP and use WPA2 instead. Needless to say, opening nm-connection-editor doesn't let me choose any other options in the Security tab, so here I am.
What I've tried
I found this... | f34bc4f6eb9389293653aad375f31ed16770dd3075a12ae2be67a0c767432abb | ['5bf07c4bccd2425ab5416b4571c6abd8'] | I have an Open Graph achievement at the following URL:
http://rinth.bucket1.s3.amazonaws.com/Achievements_LOCAL/Achievement1.html
When I attempt to register it, I get a response of: status code 400: OAuth "Facebook Platform" "invalid_request" "(#3502) Object at achievement URL is not of type game.achievement"
When I b... |
7acd62096c6e1b290dd5bbab9a98c322ede0be7b95340701ffd64545893b4939 | ['5bf09788a15b45c6b61d857cbc765e61'] | As <PERSON> commented, os.system uses a shell that is often not bash. on top of this, bash -c 'command' does not write to .bash_history. You could, of course, just make something like this:
import os
def runcommand(command):
with open(os.path.expanduser('~/.bash_history'), 'a') as f:
f.writelines([command])... | 77454ddee6ae4d5dbc8c3d979996d1f7d0d931b31e3d1b57972a2661cccbffc2 | ['5bf09788a15b45c6b61d857cbc765e61'] | ManualResetEvents my poor attempt to regain control of code execution during async tasks. Especially during tests, without them you can't test lambdas, event delegates, and some other async things ..You may try test -> T_012_CheckAndRetryAsync without passing manual reset event, as far as I remember execution stack in... |
5e297c6670b81468d8eee9bc095f2794807ec64a5134ef2d7195afd7ac966ee9 | ['5bfe09e3ed984172a8a64b197985c4cc'] | You can use .ebextensions (commands/container_commands) or lifecycle hooks For e.g. we use the following commands to install newrelic agent
$ cat .ebextensions/newrelic.config
commands:
00-cmd:
command: yum install -y http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
test:... | f8dfa9f80cabb899842ca30f3a7a5ac6450163345db8e5514c125e17238232c5 | ['5bfe09e3ed984172a8a64b197985c4cc'] |
i've this working on my other servers it's just this new server is cuzing the error and only on cronjob
I had mostly the same issue but with inkscape binary. It works perfectly via apache but doesn't work via nginx. The root of the issue was environment variable PATH.
For example from cron
# crontab -l
* * * * * echo... |
8baa41cf167b618f020ba72f86df0ced017c77f61dda048c68c44320e2c41d07 | ['5c00cd5181a84f9c92c3d8643774623f'] | You can use ggplot2 and data.table, I think it is easier, here is the code:
library(data.table)
library(ggplot2)
dat <- data.table(Spring = c(runif(9,0,1),2),
Summer = runif(10,0,1),
Autumn = runif(10,0,1),
Winter = runif(10,0,1))
dat1 = melt(dat)
ggplot(data=dat1,... | 08ca3e8e671565459871568b972658c6fa1074f374a35d2e905955b9300e18a3 | ['5c00cd5181a84f9c92c3d8643774623f'] | I use devtools to install the Rcpp:
devtools<IP_ADDRESS>install_github("RcppCore/Rcpp")
Then the version of Rcpp has changed:
> packageVersion("Rcpp")
[1] ‘1.0.1’
And I load the tidyverse and see it is successfull.
> library(tidyverse)
── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔... |
34dcb97e91dfc488fd975ba5401f5b4e3f305c05f03f20c24becc0312c98c45b | ['5c03de56de4246078df385e1c90dea62'] | on my website when button is clicked then other javascript should download from server and apply to current page.
is it possible to do that, could anyone please share some info on it.
Thank you
basically want i am trying to do is
<input type="button" class="btntab" onclick=\'$p.apply.javascript('+ v_id +',"'+v_url+'")\... | eae04953502fac704dcf80bcc75869678da99230ea971504acfb1a89c2700539 | ['5c03de56de4246078df385e1c90dea62'] | I have webpage i am using very large size background image for that, the issue is when normally we visit the page it will display website contents and then load the background image.
in my case the situation is different my webpage is waiting untill the background image is loaded and then start displaying the page cont... |
40063e1c9c73aa1b916faa9c49a4e6e24f26e4f0ac56843960fe5f52f8685138 | ['5c0ea79385514400a8d2422760700e2e'] | Wondering if anyone can clarify. I have some results from lit of a sample mean estimate, and 95% CI's. I can use the CI's to calculate the standard error of the mean. If we I want to find the standard deviation and don't know the population estimates do I interpret the standard error of the sample mean as the standa... | f41dea5479fcb380841ab9cd27cd894b53c7d6a5edd1d349e51f64d103d7c196 | ['5c0ea79385514400a8d2422760700e2e'] | I did not considered using the fact that $I = E[UV]$, it appears to be significantly shorter and way less complex. But since we don't have the same results one of us has done a miscalculation (possibly me since my calculation involves way more steps). +1 for suggesting the use of probability tools rather than going hea... |
65d2fe02d9736ec8ca4b8e234886c1de37d507f23220adb364c2f8d0fcb23714 | ['5c1e95c9ec0143f598022b4cf5b98c4c'] | Yes you can do this. Try to make your matrix manually not by wizard. and keep your field at right hand side and in one column type column names as it is. In <PERSON> report I've done it . I'm sure ti will be done in SSRS also. This is not a big deal.
Or
You can pivot your quer... | 65461aaf789efe1a1a47ca8f1dc3c96967f10b59dcb3580d8639afc7d366bd7b | ['5c1e95c9ec0143f598022b4cf5b98c4c'] | I'm stuck with container to container communication. I've deployed web application and web api in docker for windows. I can access web api directly from browser. I'm calling this using services endpoint in my web application as I studied on the internet but it is not getting connected.
http://dockerSampleWebApi:8083/w... |
85ca7903343ace0dc269eda88896c69da6cc91cff2d7fe6424493d20ba1825c5 | ['5c27dc9d3909493baf4ddd9ce6161a9e'] | I'm not exactly sure what you want, but have you tried:
request.getRequestDispatcher("/xxx.jsp").forward(request, response);
The response.sendRedirect("/xxx.jsp" ) is just what it is, it tells the browser to go look somewhere else (http 301 with a location header of "../xxx.jsp"). No information is passed along in t... | fe1193a216c2b3f10ac60d37881a4b2bb1577b5028f40b5b4fd0be68f8a34ada | ['5c27dc9d3909493baf4ddd9ce6161a9e'] | I eventually found an explanation on help.nextcloud.com by <PERSON>. Here is a summary of the steps to use.
Working as root or using sudo.
Find where the nextcloud data is stored. You typically will find this in the /var/www/nextcloud/config/config.php. Search for datadirectory such as grep datadirectory /var/www/next... |
c520bd7508b8c8b7fc4d22b740443a9f8d5f7f1cab5e1a041f092d0eb1d5da99 | ['5c411412a74b47bcb745642afe3270b1'] | I'm a StringTemplate newbie with a really basic. I'm trying to utilize this to send automated emails. I've read as much as I can to digest what is out there. I'm starting with a simple test case and having trouble getting properties of objects to render. As a test case I have the following in my template file email.stg... | 26f46944dbf9db3e8c3b488d642c99715981e5ee472a0c3c700069f89afb3690 | ['5c411412a74b47bcb745642afe3270b1'] | Answering my own question: I think this is the answer from the Introduction here - https://theantlrguy.atlassian.net/wiki/display/ST4/Introduction.
"...in general they follow the old JavaBeans naming convention. StringTemplate looks for methods getP(), isP(), hasP() first. If it fails to find one of those methods, it ... |
fa68b8006bc9844d8992a358d86eba8be6a9c659d299eade69701ba5c07f7eff | ['5c49218894ed4ee48dcba2b76d8e135b'] | You can prove this (indeed, a more general theorem that $r$-surgery on a knot $K \subset S^3$ is diffeomorphic to $r$-surgery on the unknot iff $K$ is the unknot, $r \in \mathbb Q$) using monopole Floer homology or Heegaard Floer homology; see "Monopoles and Lens spaces surgeries" or "Holomorphic disks and genus bounds... | 934edff36af8a1c5ed9ac7cb2293c95fb3a4c06ae72c1be94d54e54913096ff6 | ['5c49218894ed4ee48dcba2b76d8e135b'] | $T^3$ is the group given by the 3-torus, aka $\Bbb R^3/\Bbb Z^3$, and the action of $GL_3(\Bbb Z)$ descends from the action on $\Bbb R^3$. When you take connected components (the mapping class group) you are just left with $GL_3(\Bbb Z)$. I just thought I would mention these slightly stronger results as well which incl... |
1f76a82599f1e5e1e2c4ff9a39d05cea78cfb9306f0051bd7512e1034614866b | ['5c55e25eb3f54be88242049e78773b0d'] | <PERSON>,
The above style i.e. css shows that you have not assigned height.
Please try adding _height:auto in class which will look like
.col1,.col2{
width: 33%;
_height:auto;
height:auto;
text-align: right;
margin-left:3px;
padding-right:3px;
line-height:17px;
}
Basically, many browsers fail to recognize the heig... | 9771c51f1e09f6ad95b458bbd51ca8460ad99c6de997561a2dc8b99e6c39303f | ['5c55e25eb3f54be88242049e78773b0d'] | <PERSON> If the purpose of your writing is to express what is wrong with <PERSON>, who is it aimed at? Either people already agree with you, and you aren't adding much to what they already know (why would it be of interest if you are 'preaching to the choir')... or are you trying to shed light on issues with the guy t... |
9171186cd19464eecac2b4c0b038e966a33634bd808324aa2d1ab8c4e95d4874 | ['5c5e898183454bf0a25a88d20da4de18'] | I'm developing a game in xcode 6 with swift. I have a scorelabel var scoreLabel: SKLabelNode!. Now in one of my methods I show my label:
scoreLabel = SKlabelNode(fontNamed: "TrebuchetMS-Bold")
scoreLabel.text = "\(score)"
scoreLabel.fontSize = 30
scoreLabel.fontColor = SKColor .redColor()
scoreLabel.position = CGPoint(... | e9703ca9b7f99d9fc5741707524904da4708209541de768a4113666becc8bbcb | ['5c5e898183454bf0a25a88d20da4de18'] | i try to run some code, when my finger is moved to the same position, where the imageview is.
I defined the position of the image view:
CGRect imagepos = myImage.frame;
And the position of actual touch position:
UITouch *myTouch = [[touches allObjects] objectAtIndex: 0];
CGPoint currentPos = [myTouch locationInView: ... |
68f692da48cef5cb7284a563a1420528a1e0929e0737ae4c5e8905fcb009c072 | ['5c66f6f343714163962d83b397271c07'] | I have Woocommerce (Subscriptions) and Elementor. I'm trying to add a page/content within the Myaccount area of Woocommerce - new navigation menu item.
Creating the endpoint and navigation menu bit works without issue. The issue I'm facing is displaying a page created in elementor. One page (also created in element... | a1c5196aba76f83eabed54427f8cc8f904e583dcba201585167881fa4e9500f1 | ['5c66f6f343714163962d83b397271c07'] | I'm trying to disable a number of WC Subscriptions emails (so they don't get sent). I know that I can do this in the admin settings area manually however I'm trying to do this via PHP (in a plugin). The reason for this is so that when it's moved from the test site to the live site the relevant files can be simply copie... |
3f837f4a45de47445746e68627557fb46c9faa38042498e9c39b17f410c920a9 | ['5c72da08c7ff4e0f9a5af3c75460aa9b'] | OK! I figured it out, thanks to this link:
https://github.com/florentbr/SeleniumBasic/issues/128
Managed to download the latest version of the Chrome Driver
http://chromedriver.storage.googleapis.com/index.html?path=2.24/
Looks like there's no equivalent fix for Firefox, have to roll back to version 46. Hopefully an up... | d3f5924f42e45f124ccc87414c8b6e3b08b738e646472068f93b7ecad7ebbefc | ['5c72da08c7ff4e0f9a5af3c75460aa9b'] | In my Module1.vb code, if I assign a Watch to Form1.Width, I get the error "Reference to a non-shared member requires an object reference", and if I assign a Watch to Form1, I get the error "Form1 is a type and cannot be used as an expression"
However, Debug.Print Form1.Width works.
I read here
(https://msdn.microsoft.... |
42e7927e5933dfa63de59e149ea65c9eaa0a5054582132ca810f285ab2d95238 | ['5c83cdea9a5241e2ad6a51bf2dacd470'] | A moving point has its distance from (1,3) always one-third of its distance from (8,2).
Find the equation of its Locus.
My equation displays a circle formed by the loci, I don't know if it's right. Please help me find the equation, Thank you in advance to those that can answer.
| d35f0aa85cf2d2ddcc1055b21c501d3d86f115dd74df6b94a7452ac88495e80a | ['5c83cdea9a5241e2ad6a51bf2dacd470'] | The joists are 16in apart. I've been thinking about growth with the beams too...I'll probably back them away from the tree a couple inches when I make the recommended changes to them. I regret having to pause and reassess midway, but you live and you learn, better safe than sorry, etc. etc. right? |
1e15db44491a3ee6e411e27cf1db4314729f0573a8cc50f036e9ccacb0052eba | ['5c8588bd2b8749e289c5cabf5eb5190c'] | Figured out the answer. I had to define the recordset and db, and then reference the recordset results to display to the textbox after button update. The Code was largely the same:
Private Sub btnSearch_Click()
On Error Resume Next
Dim strSQL As String
Dim ctl As Control
Dim strWhereClause As String
Dim db As Databas... | cb9011fa95c1583391c36d7da706077b40f4962088fcc89dc5f2e77163019183 | ['5c8588bd2b8749e289c5cabf5eb5190c'] | I'm trying to make a simple batch script to wipe/zero a flash drive and reformat it. It's for others, so i'm attempting to make it relatively safe, by blocking formatting to C:, D:, etc.
I'm looking for an IF ELSE type command i can use, to be an error catch-all.
Here's (the main portion of) what i have ATM
:again
echo... |
9810902029c28381a246a7f6a8718eef658484d7556900d9cfddc888cc47c05c | ['5c85ce7881d74d03b75e14b1e36f5220'] | Here's a simple example illustrating a schema and a MongoDB query similar to the example you gave. I've written this in the mongo shell for simplicity; the node.js version will be similar. Hopefully this will give you an idea how to get started.
First we add some documents to the subscriber collection:
db.subscriber.in... | d7b1f1f0dd3b3dbab47b3f3f9cad699edc02b5defce61cfeeaac63af1d3bd022 | ['5c85ce7881d74d03b75e14b1e36f5220'] | Mean will correspond to the overall average brightness of the image and sd will correspond to the contrast, that is, the difference between the brightest and darkest parts of the image. So if the mean remains the same, as in your example, but sd is increased, then overall average brightness remains the same, but the da... |
413ef71f20f417b7b895749d3f0212adfb4110cc80e1ecd58eab1757d3dc0a1b | ['5c880022ea5f443da49b4c430b540c8f'] | I have had this problem show up on multiple computers with different arrangements of hardware: a laptop I used to own, a computer I built for work with an Intel CPU, and the computer I'm typing this on with an AMD Ryzen CPU.
Occasionally (not every time), when the computer reboots to install updates the reboot will sto... | c20d611743b3b289101bcc96e818dde36fa27de8551bf29c1b1dbcbb007ba69e | ['5c880022ea5f443da49b4c430b540c8f'] | This is quite frankly making me very mad.
I've turned on File History, and I've recently upgraded to Windows 10.
In the Backup Options (I presume the new name for File History), there are several folders I wish to not be backed up, named Dropbox, Google Drive, Downloads, and Desktop. I have gone into the settings and d... |
37731bc363a61fb8321c00d37f82824b11a76269fd96e65c6443dea220cb1ce1 | ['5c8d1ef7688d4cbf99d7427c96bb3cdb'] | Every time I think I have got these triggers figured out I have to create something new and I am stupid all over again! This time I have to update a field on the account with either 'R', 'Y' or 'G' (Actually it will eventually be a stoplight). The date to update that field is on the case depending on case status, age, ... | 4c075fd961ce30e9ffc752f0582922415f4a8a1c3d979f80ae812982cbe7157c | ['5c8d1ef7688d4cbf99d7427c96bb3cdb'] | The good news is there are houses and driveways on the property so it's not the entire 11,000 sq ft. My plan is for redoing all the landscaping (unrelated to the glass) and replacing a lot of the dirt. In the meantime I've become a glass farmer. |
cfe6dcbdcfa3e6a2521a8ce43d0e110e164ef3511d5cdd617623e5a9fb626fa7 | ['5c91d192f8c449f39304bfe0d9346da7'] | I'm writing a java template to test the methods of my classes.
The classes to be tested have a private constructor and static methods:
public class ProdClass {
private ProdClass() {
}
public static EnumType myMethod() {
// do something
}
}
In my template class for testing i write this code using the java ... | 52927a45cfdce4f2770fff31f83f602be196abc1d89e16ab2068b35aa7706c00 | ['5c91d192f8c449f39304bfe0d9346da7'] | I'm trying to understand the roots function.. I was looking for a java code that implemented the similar function matlab r = roots(p).
For example, if p = [1 -6 -72 -27], matlab returns r = 12.1229 -<PHONE_NUMBER>
I admit that I have no idea what it means in practical function roots, but I need to use it within an algo... |
a7ca2ede5be01248644cd4c64d574a67db7b4849c74bde478620492ed0fa13b6 | ['5ca04e6efa494519897133dee1a61376'] | Short answer: no
The Angular app runs in the users browser. That means any logs using console.log will be logged on the user side in their browser and Kubernetes will not know about it.
The part that runs in Kubernetes is actually a static web server like Nginx or perhaps a NodeJS server that is just serving up the fil... | 9bf11fac3480721c8605a790fd1504da6f3613dd28833029874fa95d4dd5aff4 | ['5ca04e6efa494519897133dee1a61376'] | You can use the DataStore REST API directly.
Otherwise, you will need a sort of proxy. One way to do this is to host an app on AppEngine that will expose Datastore entities to you as REST APIs.
Another approach you can use if you do not wish to pay for an AppEngine instance is to use Google Cloud Functions.
|
12bf8b8a5b0ac95bd70380be4f9b341e45ff04224b34fb6945d45f4281b3d6b0 | ['5cb41d5cb22f418f88ff22f591476fa7'] | Usually, a client would make an HTTP OPTIONS request to the resource. If the PUT is listed in the "Allow" header, then the resource can be modified.
If there is a Content-Type response of application/JSON, then a field could be added to the JSON metadata that marks the payload as READ-ONLY.
| ad6d59eddb2e1fd18034ba2a27e2fbdefffadc43f9ecee419ce77824d4c5587f | ['5cb41d5cb22f418f88ff22f591476fa7'] | Here is how I examine the value of the cookie "fslanguage" and set the Accept-Language header in the request based on the language. You could easily do a backend rule (see use_backend) instead of a reqrep rule.
acl langCookie_en cook(fslanguage) en
reqrep Accept-Language:\ (.*) Accept-Language:\ en,\1 if l... |
e917365aeaf154265eeea48d3bdc3bbb8a4fd8032f49209f4f70ff8c64d9d040 | ['5cb86a79a3504094bccc5d5ef60e466e'] | I am currently using a RESTful API for Woocommerce to add items into cart. It's supposed to accept "product_id" and "quantity" as the parameters based on the documentation for the API in which I used the following code to do so:
JSONObject addcart = new JSONObject();
try {
addcart.put("product_id", 28);
... | 1aaaf106ee8423bec1d71d9ca3ecc304468cbc7dc00fd2a941d7802d9022f118 | ['5cb86a79a3504094bccc5d5ef60e466e'] | I am able to solve the problem after using the code below:
StringRequest addrequest = new StringRequest(Request.Method.POST, "http://domainname/test/wp-json/wc/v2/cart/add?product_id=28&quantity=14" ,
new Response.Listener<String>() {
@Override
public void onResponse(String... |
8cb849b5b43de9c0037e200522317db59338e7ae1f3ad64c39b5bc188d3a2722 | ['5cc35c78fc5e4d34829df5bec21d60a1'] | Please, someone help me. I want create a pointcut with spring AOP that intercept all method annotated with annotation was inheritance by another.
In my example, I want c
TaskControl.class
@Documented
@Target({METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RUNTIME)
@Inherited
public @interface TaskControl {
/**
... | 1cb4c5464776d490a7181a8f855f12cdae2e6d5112a6ed770ef4b0f98dc1c538 | ['5cc35c78fc5e4d34829df5bec21d60a1'] | Look the follow sample:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/bea... |
cac0cdb125c646433023edbdb5576da907b610c1c3778c5b69a5206530a08c60 | ['5ce2135bf37246f380676b5c84810151'] | I have a backup service which stores the backup files in a share directory on a Windows server , but it fails and if I look in the logs I see this error:
13:02:13 <PERSON> notice tsrv-cmdqx(Backup->server)[30043] Result::_add(514) Connection to myfileserver failed (Error NT_STATUS_BAD_NETWORK_NAME)
13:02:13 <PERSON><I... | 2efbb86d23abededd11ece6b3358f979c1caf8f97b49324bd493ae83bf6183c4 | ['5ce2135bf37246f380676b5c84810151'] | I am not getting an IP in the subnet <IP_ADDRESS>/24 where the DHCP is working and should serve an IP, I am getting instead only an IP in the subnet <IP_ADDRESS><PHONE_NUMBER>(link local address) that is probably given by Windows which runs on the laptop I am using to test this, which makes me think it might be a probl... |
d49d376ef167e89f6f72fb0cf7536e3d627394b9664b01de1fecb6e544fdd9c1 | ['5ce33e4ebc49415bb9d19289c4d4283e'] | Show that $\Vert v\Vert^2= \langle v,AA' v\rangle \iff AA'=I$.
My thoughts: let $AA'=M$. Then, the above implies
$$
\sum^n_{i=1}(1-M_{ii})v_i^2+\sum^n_{i=1}\sum^n_{j\neq i}v_iM_{ij}v_j=0.
$$
How would one go about showing $M_{ii}=1$ and $M_{ij}=0$?
| 0e7a24ea28e820d8d99853155e1a42506288e3f177cee0c25abdaacd55ef7c0d | ['5ce33e4ebc49415bb9d19289c4d4283e'] | We are planning on using schema's in our confirmation emails to our users to enable Google Now cards as well as provide an action for users to modify their reservations. I am curious how long the approval process typically takes. We've already sent our test email to <EMAIL_ADDRESS> and filled out the registration for... |
0aecdb340a7e15949de2b72907ddc4f0461e963136b35d5a56297c650051363a | ['5cfebe11cb7945988906c0c40f6a6d6e'] | Aaah! ok! I thought that the associativity property was something like this "if you have three elements, and need to make a binary operations on them, it does not matter which two you make first, they will always yield the same result" but from your explanation that is more the definition of a group that it is both ass... | 17e9969a2c1075caf13804d2bbd3d7040f9f5c7e619b9956a2b79a02dc833e1c | ['5cfebe11cb7945988906c0c40f6a6d6e'] | Great! Thanks. I think my real confusion was that I thought that for a group to be associative under a certain operation meant that no matter how you combined three elements into a two step binary operation they will always be equivalent (Which would be complying with the six cases I list up there). But from your answe... |
a8e9dfd0ed393228b5c8346ad5cce1e5fbff3a7bd4cb739ff1c3830bc5713b9d | ['5d0845c2f23f4aabbbb762ef04100fb1'] | In build.gradle.kts file, I include this code on the top line. Then I use KotlinCompilerVesion.VERSION below.
import org.jetbrains.kotlin.config.KotlinCompilerVersion
Some code works fine, but some code failed:
It seems like only plugins block can not enable this import.
Here works fine:
dependencies {
Implement... | 39dfdfaa54bafbd117deedff92908c3f371f14ac653e9dc31200e2086dc6526f | ['5d0845c2f23f4aabbbb762ef04100fb1'] | Try this defensive programming code. This should avoid NPE problem, but the root reason are:
You should refactor your game code with some Design Mode (try MVC at lease). You should not relay on the TextView String Value for game logic decision.
Some UI Tree node maybe has been changed inside the loop.
public boolean... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.