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 |
|---|---|---|---|---|---|
078ee6dff2afd6dc643cb25ee7dba9659e2ed110e657f3deafc57e5126fbb912 | ['bd909313ccfb44eb9c54f87ac14d0155'] | I try to use gcsfuse in order to store application source code on a GCP bucket, here's my Dockerfile:
ARG VERSION
FROM golang:1.12.5-alpine3.9 as gcsfuse-builder
ENV GOPATH /go
RUN apk --update add git=2.20.1-r0 fuse=2.9.8-r2 fuse-dev=2.9.8-r2 \
&& go get -u github.com/googlecloudplatform/gcsfuse
FROM php:$VER... | 62cda2065ec8a39d9ebf9541b3370ae09662a93bb6226271cbe1e3de81050388 | ['bd909313ccfb44eb9c54f87ac14d0155'] | For Postal Code, I find that the data from onemap.sg is pretty accurate. However for some postal code, there will be more than one result. This is because there might be multiple listing of the same postal code within the same building. Nevertheless, it is still accurate.
For simplicity, I would recommend looking at th... |
06529d1232d9ef61958db03cacfe36e32e7338f5ab20088a6fedf6490d988ca5 | ['bd90954d247d4db492dd9fd7cc4e35fd'] | I made a 2D project with a lot of tile sprites, and one player sprite. I'm trying to get the camera to follow the player, and for the most part it's working. However, there's one problem:
If you go to the edge of the map, it scrolls normally, but instead of the black background, it displays copies of the sprites on the... | 72a332e28babb23404d209aec9b6ccfa71e832d5eab4e445dfe6c990ba2d8d78 | ['bd90954d247d4db492dd9fd7cc4e35fd'] | How can one use code in a LiveScript file from another LS file? For example:
# In script-one.ls
foo = 5
# In script-two.ls
bar = -> foo + 3
Simply including both files in the HTML via script tags does not seem to work. Changing the first script to export foo = 5 and using require! './script-one' (or variants) in the ... |
25209a810de1feb27a4926647b164fc2d50b2e719b5627f79395b868f17952f4 | ['bd928956e8844c869e26823f3618e7bc'] | If you refer to the source for the quotation above, I'm sure the user http://superuser.com/users/93284/greg posted it originally here: http://superuser.com/questions/20386/audio-line-in-on-ubuntu-linux-mint. I just thought it could be of value to relate to this post. | d8b7ee7706630f204d669535b497ae864babb15181ebbbe521edf86a92eac8cd | ['bd928956e8844c869e26823f3618e7bc'] | It's hard to tell where most time is spent especially not knowing well the framework. I believe most time is spent in `amp.amaps.FCLS(var_y, EM_mat)` but it's an educated guess at best. Running the code under a profiler, such as cProfile, is probably the way to go here. Nothing obvious to me concerning performance impr... |
6088f17519ad0e709aff24acb685afb94892bae8b63c47625039f9f058b47211 | ['bd9d5e8544f04f98a89a2a654fa0e43e'] | I found a solution for this.
I have defined a function like this-
def Vectorize(text):
try:
count_vect.fit_transform([text])
return count_vect.vocabulary_
except:
return-1
and applied above function-
from sklearn.feature_extraction.text import CountVectorizer
count_vect = CountVectorizer()
products['word_c... | 0056dbe8e80402a1ad34ad761deec3370ef2d46cd93eb3c098951af8c5887efb | ['bd9d5e8544f04f98a89a2a654fa0e43e'] | I have dataframe column 'review' with content like 'Food was Awesome' and I want a new column which counts the number of repetition of each word.
name The First Years Massaging Action Teether
review A favorite in our house!
rating 5
Name: 269, dtype: obj... |
383fb95c3fc87722042e2aea972652285e8650b387d2d6d123b9a5a161b117c0 | ['bdde4c7bd4ce4a2b925e55045da13dde'] | I have been taking a closer look at HBCU 4 year institutions and am looking at their 6 and 8 year completion rates (C200_4 & C150_4). I have noticed that several of the 8 year completion rates are lower than the 6 year rates. Why would this be true? Shouldn't the 8 year completion rates always be higher?
| 68f358ad1f93088ce674cbc82509e64d433de5c71d86a89c2108b1533b29ee69 | ['bdde4c7bd4ce4a2b925e55045da13dde'] | Moreover after thinking things a little more through, I believe that as a matter of fact a binary random variable cannot be correlated to a logistic random variable over those thresholds. I don't have a full rigorous mathematical proof, only a heuristic argument which makes intuitively sense. I will post later my full ... |
2b4619cc60ddd1a137be3c8b23034c0be04ba06988c572020373eb659ad0adee | ['bde07b0f0e084b0c87c5e0c9ccc7aded'] | I have date in string like 7 october 2019 but in polish
7 sierpnia 2019 and i would like to change it to date (Y-m-d)
I did:
$day = '7 sierpnia 2019';
setlocale( LC_TIME, array('pl_PL.UTF-8','pl_PL@euro', 'pl_PL', 'polish'));
$date = DateTime<IP_ADDRESS>createFromFormat( 'j F Y', $day);
echo $date->format( 'Y-m-d');
b... | ca00bae545b8b2b47b01b8b40acec789a49814e295053087136ea1c1e53b5466 | ['bde07b0f0e084b0c87c5e0c9ccc7aded'] | I am trying upload xml file using simplexml_load_file but when in file is special character i'm getting an error ( There is everything alright without special character in it).
First of all, I am using XML file from another program so i can't change it.
This is sample of xml:
<wuo>
<header>
<title>title1</titl... |
80fcadf3cb88a6e667f09ddd539274d0607baa2ba5040229a4f077debda7343f | ['bdf0f5e0a14a4330afb56858b5877d72'] | I agree with this list except for The Ellimist Chronicles - I usually read it directly before the start of the final arc (so book 49, if I recall correctly) as the books which tie up the story read more like one long book and reading TEC so near the end messes up the flow of the story for me.
| f19e85ba540d948761ffe6430cea231adea0a65197b451bd6115e59819d1eb82 | ['bdf0f5e0a14a4330afb56858b5877d72'] | Just as an example, taken from this site about two minutes ago: "From what I have seen, it is quite common for far more subtle and hidden negative messages to be put into an academic reference than what you have described. In these cases the references are not used because the letters are there to convey a warning." (h... |
3608f398a39b3492ac71e34df1887256acf92a623cd0aa495358e413d5349d10 | ['be0ae92144c54f4e8cd3ba7c5b0a10b0'] | Try the following code. Multiple variables are not required for the validation of user input. I used an array to store all the errors.
<?php
if(isset($_GET['flag']) and isset($_GET['msg'])) {
if($_GET['flag'] == 1 ) {
echo "<span style='color: green'>$_GET[msg]</span>";
}
if($_GET['flag'] == 0) {
... | 4d7450cd91f618d3b7e11f51a5ba55825a34dcb2caaffb1f9a058836e1cda7c1 | ['be0ae92144c54f4e8cd3ba7c5b0a10b0'] | I am working on an application which contains two different portals (admin and members).
http://localhost/app/ is used for the members login and http://localhost/app/admin is used for admin's login.
When I log in into members and admins portal both works fine but if I logout from one portal another portal logged out au... |
225fdc66f03ac440be291328526eff3e4f45f598e8c99b828288b023daf1b4cd | ['be29408eaeab468fbe5cd308d2af95a4'] | I'm sorry but true anti-aliasing does not consist in getting the average color from the neighbours as commented above. This will undoubtfully soften the edges but it's not anti-aliasing but blurring. True anti-aliasing just cannot be done properly on a bitmap, since it has to be calculated at drawing time to tell which... | fa423140271e1ffb1138ee8f308114f51f2da2f47e06eccb955d282f408fdf50 | ['be29408eaeab468fbe5cd308d2af95a4'] | I guess you finally solved your question (6 years have passed...), but I just wanted to say your application seems to work actually better than Photoshop in this particular case. Although I think I know what your aim was (avoiding those pixel clusterings), the "constant thickness" is better achieved with your App (desp... |
cca614e5b9fbe2a77aa5e1e414f693cd2c8c83d78995ab754e502fbda1d6bb5d | ['be2ddd8a95eb4e5589be9199a6d8addf'] | My company is using a Parse backend for user accounts & I need to build out a password reset and other web based pages that will support our mobile apps. I've not done web dev like this in a while, so I'm wondering if anyone knows of a good tutorial?
I've found some that show me how to build out the whole system (users... | d95e1d1072eb672f0f0711a9a264f3282a8507c79ba4290957427ed72482a378 | ['be2ddd8a95eb4e5589be9199a6d8addf'] | So I have a redirect working, but it's a little janky & I'm hoping to make it less janky :)
I'm using deep linking to basically open the app only....nothing beyond that at the moment.
Below is the redirect for ios. It works ok, but it's throwing a URL error in safari that I have to tap to close before it will redirect... |
a8d555eb008be665e252a16e6de5b457b2c2cf19e73950e6755edd98c65b25e4 | ['be33b5e929c949ff8cf0ab4abdfad643'] | Maybe is obvious for you, but in the documentation talk about escaped characters:
Set up your server to handle requests for URLs that contain
The crawler escapes certain characters in the fragment during the transformation. To retrieve the original fragment, make sure to unescape all %XX characters in the fragment. Mo... | e36b9df5f91b14968a9c2be4580cc6afed3380c84a6a834b22d83ccdc1b24ccb | ['be33b5e929c949ff8cf0ab4abdfad643'] | You're trying to download a pdf as a binary content type data.
Use the response of your getObject request to get the proper mime type:
$result = S3<IP_ADDRESS>getObject($Bucketname,$uri);
header('Content-Description: File Transfer');
header('Content-Type: ' . $result['ContentType']);
header('Content-Disposition: attach... |
e1765c9fdf42a9bea5d1fde6103959051b19e28b0781417616c276368ccfedbc | ['be474841854c426c94607803303dafd0'] | I make a parser and upload the data to excel. The problem arose with uploading data to Excel. In the text itself there are emoticons that he turns into something strange. How to fix it? Or exсel does not support emoticons?
with open('data.csv', 'a', encoding='utf-8') as f:
writer = csv.writer(f, delimiter=';')
... | 87b475034c0ef93e3ce951bc992b13c87ef670d1a211a75150385cb0eaf5348a | ['be474841854c426c94607803303dafd0'] | I'm trying to open localhost:8000 but it doesn't work.
When I type docker ps it says that's container is fine
Here's my
docker-compose.yml
version: '3.7'
services:
web:
build: .
command: gunicorn app:app
volumes:
- .:/usr/src/app/
ports:
- 8000:8000
Dockerfile
FROM python:3.8.3-alpine
W... |
0b6f8e358511cf1c58535db50dcc7e2f8a15b9132a6c3a4c93e675111eaff466 | ['be4e5b3d77c6463eab36a10f70b0adab'] | I have a csv file called data.csv and this is what it contains:
8.84,17.22,13.22,3.84
3.99,11.73,19.66,1.27
16.14,18.72,7.43,11.09
What I want to do is to load all of it into a single list that looks like this:
[8.84,17.22,13.22,3.84,3.99,11.73,19.66,1.27,16.14,18.72,7.43,11.09]
The script I wrote using numpy is
impo... | cbb4d37aa669801e9eafd28f21e8a063534e05382a3da37dff9cbb0cc70fa939 | ['be4e5b3d77c6463eab36a10f70b0adab'] | So i tested a script that can be found in the scipy cookbook. I simply copied everything from the link. https://scipy-cookbook.readthedocs.io/items/CoupledSpringMassSystem.html
When I ran the script it gave me:
t, x1, xy, x2, y2 = loadtxt('two_springs2.dat', unpack=True)
ValueError: not enough values to unpack (expect... |
8262d7cf6d8423d1786d829ae45dc8b8256f01750060033b90a372f89aa17819 | ['be68280a97f94b289ff5a96724645364'] | You can add a white div that sits beneath the navbar but above the content.
http://jsfiddle.net/naLz7/
HTML
<nav id="top">
<div style="margin: 12px;">foo</div>
</nav>
<div id="bottom"></div>
<div id="content"></div>
CSS
#top {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 60px;
col... | 11a8e5271acb423af4dfe175caf97e4d40b055d55f8f017c4caab9abb72c74d0 | ['be68280a97f94b289ff5a96724645364'] | Running just "npm install" will look for dependencies listed in your package.json. The error you're getting says that you don't have a package.json file set up (or you're in the wrong directory).
If you're trying to install a specific package, you should use 'npm install {package name}'. See here for more info about th... |
257aa1ff3f2e8f6ebcb6cb7e194f6a7c6998f73c804c65b0ec732c1ac309b7dc | ['be6f007b0df740a8b8309584d3d6928a'] | I took over a Qt project using cmake on Windows platform; every time I open this project in Qt Creator IDE (by open the top level CMakeLists.txt), Qt Creator always re-run cmake for this project. Then when I run this project, even without changing anything, cmake will re-build the complete project (because cmake is re-... | f631c37d1c7b6f73dad0fe62e7ef5f7997e53d42cd3c0a1e3af28d5a260b20fc | ['be6f007b0df740a8b8309584d3d6928a'] | I have installed ARM DS-5 on my PC (Windows 10 64-bi); When launching Eclipse I got an error message:
Could not read environment file C:...\ds5\win_64\r5p0-27rel0\sw\info\env.ini": Operation not permitted
I have Full Control of this env.ini file and can open it with notepad to read/write; So not really a file permissio... |
4ef19193c9f3a1f916d5d16b6aa98cdb100549c4170eef670bd4bcbc06a774d8 | ['be6fe10ed71b4765b64928bcbe7e868d'] | After some time of meditation, I managed to reach a solution with a TcpListener & TcpClient.
Here's the code, if someone comes in handy (checking for an open copy of the application, data transfer, etc. can be changed, such methods work for me).
Startup:
Process[] processes = Process.GetProcessesByName("ProcessName");
... | 8b13d684207e0360708bd6db58754d96e245f02bf16a1ed583af8d630b09f7fe | ['be6fe10ed71b4765b64928bcbe7e868d'] | I'm making an mp3 player in C# WPF and I'm having trouble opening several files through explorer. The fact is that when you open several files through the Explorer context menu, each song opens in a separate program, I want that if the player is already open, when you reopen the application, a new song is transferred t... |
de99920e2e4491e117b1ab2c9903732ec18a55580bfb26307a8c409ad919f687 | ['be7402513a9340a98256682e9d147bd4'] | I have an ad customizer feed setup in my account and I want to change the value of one Item in that feed. I tried doing that using the "SET" operation in the 'FeedItemService'
When I run it, I get the following error:
KeyError: 'feedAttributes'
I have gone through the documentation here: https://developers.google.com... | af87e1c56735ced240fec4b7e971629bacc02161e59574d688f8984e29dd4424 | ['be7402513a9340a98256682e9d147bd4'] | I'm trying to generate combinations of elements from multiple lists where the order is very important.
For example:
list1_mand = ['x', 'y']
list2 = ['a', 'b', 'c']
list3 = ['1', '2', '3']
list4_mand = ['A', 'B', 'C']
list5 = ['X', 'Y', 'Z']
The code should be able to do the following:
Generate all possible combinatio... |
7a0b5e8e2866b1e29e8981f83604eee724ad37acccc6bdcf84fba7180e89d73c | ['be7bef58a336410bbf0336bcecbc5ddd'] | I have been having a problem with Visual Studio 2015 and C#. When adding reference to other projects in the same solution, Visual Studio is not finding all the classes. For example I created a unit testing project. I added the reference to the Communication project I created. There are 10 classes in the library but Vis... | 91e70750684f437dff7507c7e6b7a70626dbb0d01ceca8af662c1f2124ae3c5a | ['be7bef58a336410bbf0336bcecbc5ddd'] | Is it possible to configure tinyproxy to forward its traffic to another proxy so it looks like
broadcasted through wifi
/
*laptop* *laptop* / *smartphone*
... |
43a5b1b56b8135819579024acb3b28d991368784a8e5064a4d0d53f55130ce12 | ['be7df92da12a4bd687e14af2648dc471'] | I am trying to figure to figure out how and if you can send and recieve arrays over TCP socket. I am a bit of a newbie at objective C but I have been able to send and receive strings. I just want to get it to do arrays now.
(void)stream:(NSStream *)theStream handleEvent:(NSStreamEvent)streamEvent {
NSLog(@"stream ev... | 1c58ed1d9321eae1cc8a8af847496e0198b74c1819836c175db70c147ba91d95 | ['be7df92da12a4bd687e14af2648dc471'] | I can find any documentatin anywhere and would like to know what would be the best method of send multiple messages as fast as possible.
for example if I had 300 devices recieivng messages from one server would it be better to send out one big message and have the devices pick out the parts that they need or send 300 ... |
bc8a35fb47598c836d7afcbe3dd87c29ab4763067f506b9c4eba5514dc272b5e | ['be938a726d5944a681ddd43abd4da6ac'] | I know that factorials are, by definition, positive integers which means you can not have n! where n is negative. My question is can you create a factorial specifically for negative integers? I thought of this idea as a sort of opposite factorial. I used an upside down exclamation mark to denote a negative factorial. I... | 258ca0819f70311f37a31393612a444caaa8f5e3d903e7fa263de07bc2342b9c | ['be938a726d5944a681ddd43abd4da6ac'] | Sorry for this late answer.
With iptables I can actually get what vnstat (and, partially, ifconfig) does, monitoring the whole wireless traffic; if you can help me with the ipset configuration I'll be grateful, since I tried to find some howto's but unfortunally I never really understood how network and iptables exactl... |
baf8e69ef9a9756b705e1f04bb705739286953c50ecd84e2d898fbc140d041f4 | ['be994ad8886448cd9ec3ae7f9d5f4600'] | I'm trying to read sqlite database from the JS side which is created/updated by Android Activity or Service.
But when I call window.openDatabase() method the message below is appear on the LogCat, and Query returns 'no such table' error.
physical .db file is there and seems to accessible from within the Java code, but ... | 4184f0d25a9a445e8fb38b2fab428a35da60ecd84ba097540e024befeb6b9f64 | ['be994ad8886448cd9ec3ae7f9d5f4600'] | I want to run following html/JS code in PhoneGap,
but the alert dialog is not shown up and the following line is in the LogCat window;
the following warning appeared and alert did not showed.
[ERROR]
W/InputManagerService(266): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClien... |
01f1974a0101449be62efec803c34c283851ecc346f425d6cd1d05551a0d90e6 | ['bead6496f487487793e0036fd354f941'] | I am working on some iterator type that needs to wrap another iterator. For some reason, the custom iterator is not well defined. For example, it does not compile when used with std<IP_ADDRESS>all_of, complaining about a mismatching function call to std<IP_ADDRESS>iterator_category:
/opt/.../stl_algo.h:108:32: error: ... | a839ecacaa800c28e6bb44fe511a638b3c54d6a40d382e4b40ab94102cfbb01e | ['bead6496f487487793e0036fd354f941'] | Since you asked to provide answer, I'll put some additional information here, although I am not sure it will completely answer your question.
Assuming the target platform is Linux, once ipstream is destroyed in the parent process, it effectively means that the file descriptor for the associated pipe between the parent ... |
754612d18df5d78cd6a995b8be64e036ca0f42b615398916249c4337b2cf8974 | ['bec3cae246204a57a446bb3a173432e1'] | As mentioned before, CancelInvoke and a boolean flag are options.
However, I prefer/ suggest a different approach.
Change your method into a couroutine.
public class colorchange : MonoBehaviour
{
public int color;
private SpriteRenderer _mySpriteRenderer;
private float _timeBetweenChanges = 1f;
private... | 37c0c6b522cef2a1a1ee61864abd900062ab24f1dfe75f6a596eb3b95e1dda34 | ['bec3cae246204a57a446bb3a173432e1'] | Color accepts floats ranging from 0 - 1 for it's constructors.
You are setting them to 1 (anything above 1 is set to 1). And 1,1,1 = white.
this.gameObject.GetComponent<Image>().color = new Color(0.415f, 0.682f, 0.09f);
This should give you the result you are looking for.
The numbers are generated by dividing your va... |
c2f099eecb9ab6e361e82353187ab7f7443541e99d1906d090931e275d26abe7 | ['beccb03ca2874577888bfcef1c3c6628'] | public static void registerXmppProviders(){
ProviderManager providerManager = ProviderManager.getInstance();
providerManager.addIQProvider("query", "jabber:iq:private", new PrivateDataManager.PrivateDataIQProvider());
ProviderManager.getInstance().addIQProvider("query","http://jabber.org/protoco... | b681b16c17f80f2b40b8fd73c5244f30051c329976c0b84fcfeedd7ae13fecde | ['beccb03ca2874577888bfcef1c3c6628'] | For getting rosters just search for a plugin called registration properties or if it is pre installed search for it in the users section.
Then check the Enable automatically adding of new users to a group.
Also in the bottom create a new default group so that when a new user will be created it will be automatically add... |
797113de9a32de10b369c42c0546ef41c784c03b49c50070b5b01c2def2dd29c | ['becd213848544d579697a84c41703404'] | I am trying to save to Chrome's synced storage, a dynamically generated JSON object.
Essentially, I am running a query to get all the open tabs:
function getTabs(){
var activeSession = [];
//Tab query with no parameters, returns all open tabs.
chrome.tabs.query({}, function(tabs){
//For each tab push to ac... | 85c332adff4f4e7ae5a621ab3d7ec2db17db4a66cc7dfbaab433addb1b525967 | ['becd213848544d579697a84c41703404'] | Basically, I am trying to read a live feed from a webcam, split this feed into a grid of 10x10 (100 total) blocks and re-build the video frame in a random order. With this new order of blocks making up a frame I am trying to apply effects to each block depending on its position (for example: greyscale, gausian blur etc... |
edec735f8b3b5410e633117ff15df9b3417f82286b5a0bfe3d928e1b7336027c | ['becf41bf8b514593b78affcebbd44d39'] | In the end, the way that I was able to solve my problem was by removing the onleave event altogether. It was what was causing most of the issues.
So, now on onenter, I'm simply checking whether the currentTarget is different than a previously visited currentTarget. If it is, disable the previously visited currentTarget... | 8e518a1d8ea7a683a95877c58aa0441a51d72b3bcfb6eced99c70b9e6bd73ae0 | ['becf41bf8b514593b78affcebbd44d39'] | I have a table in which I want each of its td elements to have no space between each other. However, I still want borders between each td(so you can actually tell them apart). Unfortunately, when I try either or both of the following:
table {
border-collapse: collapse;
border-spacing: 0;
}
My borders disappear... |
c583786536dac7cf54e9aebffbff4c279e89a5d9bc91cfa324356de9b8b1c3d2 | ['beee552bd4774532962e127f861f972d'] | I have a grid that I have made in sprite kit for my game. The grid is made with SKSpritenodes that are images. I want to have levels of difficulty where the grid is 2x2, 3x3, 4x4, 5x5, and 6x6. Each image is approximately a static 100 in width and height. When my grid is 2x2 the grid looks good centered in the middle... | fc5c082b75dbba98bf8aa8cd1059e672cad88aab274d6bc1d1e23e46b4db5431 | ['beee552bd4774532962e127f861f972d'] | I would like to use a UISearchBar and put it towards the bottom of a screen in order to search for available names through an API call. I want to have this SearchBar as part of a sign up form. However, when I put the SearchBar on the screen where I would like through the Storyboard, it does not show up when I run the... |
9b01bc878cd2e2a3c559ecf9ccca0a6f120857d812ec48ca6fa5654918cba5e1 | ['bf0653eb5e8a4a7ba48e520eaab6957c'] | Thank you for your response. I know this question is not very particular to Ethereum itself since it doesn't suffer from this issue but it was difficult to find many authoritative technical resources on this subject. I will award you the bounty for your effort but because the answer lacks technical detail on the attack... | 15cce3e4f419c6df064289f4c86b42d121ded59a00afe21ca9403773860ee91a | ['bf0653eb5e8a4a7ba48e520eaab6957c'] | <PERSON>, I did modify that script to a cell size of 2 m and modified block stats to focal stats too, in addition I was able to reproduce the same results only using flow direction tool straight from toolbox, so the bug is in the tool itself. I send this issue to ESRI and they were also able to reproduce it with my sam... |
cf4f6a6dd35baae9e7ef4ff4d107ec53d2d8b7568207fd999f55020a4f084e04 | ['bf0874661f3c4bca859c3d1838cc5235'] | I want to grant a user read only db access to a postgres cloud sql db on GCP (google cloud). For example, I want user to able to view db tables from postico/pg admin but not be able to delete/update/insert records.
I granted the user the following roles
Cloud SQL Client (Connectivity Access to Cloud Sql Instances)
Clou... | 4e39161b258c4db4b78f5c1c7a93425943cfddd045f4f9f8d8d30050c2779434 | ['bf0874661f3c4bca859c3d1838cc5235'] | I want to zoom out on an embedded google map in a chrome webpage using selenium. I have tried the following with different location and scaling tweaks but neither works for me. I am able to zoom-out on the page but not on the map so that it reloads with new markers covering the a new map area.
browser.send_cmd('Input... |
c8fa5b84fcc97b32cc6f7b211738923b0daa8a4b3090d72227b5338a7a802591 | ['bf0903303c424175be2bf7e401fdfd64'] | It all depends on your dns settings and how easy they are to control. If you have a cPanel provided by your hosting company this is usually easy to do. The websites have to be on the same url usually but a sub domain can forward to an external website.
Contact your hosting company/domain provider about using sub doma... | 6710e5488f5a3f82fda33c4bd3e879a7ef82b74f1512d7d396b824b3751274b9 | ['bf0903303c424175be2bf7e401fdfd64'] | First a few things. Assuming a url such as `test.php?n=4':
Fix the constant errors. This immediately threw an error when I implemented the script.
function handle_request() {
if(empty($_GET["n"]))
{
return 'EMPTY';
}
elseif(!isset($_GET["n"]))
{
return 'VAR_NOT_SET';
}
els... |
92483cfb2da1c444cd660917a682767edc3336a3793d1277fc97ad24f07f431a | ['bf13b0f8df564ecc85269a6b2ac0af2b'] | The CSS overflow-y style is what you need. if you set
overflow-y:scroll;
on the div that you wish to scroll, then it will scroll vertically. In your example, I think that's the "windowContents" div, so change it to be this:
<div class="windowContents" style="overflow-y:scroll;">
You have a lot of CSS styles in the... | 07c44bd2632de82d35c2bbb8554af9518ed0fef436e57c0a2bc5fcaacc570be3 | ['bf13b0f8df564ecc85269a6b2ac0af2b'] | If a NoSql document oriented DB works for you, it's pretty easy to get MongoDB running on AWS and accessing it through pymongo.
The AWS specific quickstart is here:
https://wiki.10gen.com/display/DOCS/Amazon+EC2+Quickstart
and a general Mongodb tutorial is here:
http://docs.mongodb.org/manual/tutorial/getting-starte... |
680d9a043b00387af721b58ab5b0d26d5a625208ef440e9cd79fa5a00850e503 | ['bf18174011164b679ffdd0b7f0e63286'] | I'm trying to connect through a https proxy but an exception is always caught stating that "The ServicePointManager does not support proxies of https scheme".
The code I'm using to test the connection is the following one :
var handler = new HttpClientHandler
{
UseProxy = true,
P... | 03d1fff13bfa3071aea80a601fd615c8570f2fdc917697ce08d405c18163cf48 | ['bf18174011164b679ffdd0b7f0e63286'] | I've seen that a lot of people around here are trying to use approximation to make Sigmoid faster. However, it is important to know that Sigmoid can also be expressed using tanh, not only exp.
Calculating Sigmoid this way is around 5 times faster than with exponential, and by using this method you are not approximating... |
e622201b273fe89b2403d100759020c1a3399223e8fe5baddda85261f62e4e03 | ['bf2df01690454e76b00ddbf6f925c7e7'] | I'm learning R and I have tracked down a problem in my code to an expectation of what looping over a vector would do. Here's what I'm confused by--say I've got a numeric vector with two nonconsecutive elements in it.
x <- c(1, 3)
If I loop through the vector to do something with the values it contains, I am not gettin... | 64d4890b69ff7b62a5cf4b26b9d384d5cf209345cf603dda6fa9485ef5df28eb | ['bf2df01690454e76b00ddbf6f925c7e7'] | You JSON data and parameter looks correct. The only reason the documentation gives for returning a 403 is if permissions are insufficient. The permissions structure in D2L is so flexible that it's possible that an administrative level account doesn't have permission to update course info in the apitest tool.
One way to... |
5b7456848d838b70946f609800f7363a5b1d96c1edc56082083b6e5ebd3faa21 | ['bf392cc06cdc447f9335a7aad004bdc3'] | I'm just trying to use create_mute with Twython. But I keep getting this error and I'm not sure what I'm doing wrong. Python 2.7+ just running it locally out of my terminal to see if it works.
from twython import Twython, TwythonError
import sys
## data from account (these are filled in properly, in my file) ###
APP_... | 4838f3ceb0af4432f8b63b741bb98d85c52c9caa65b4c7857d106246ffc6f7ae | ['bf392cc06cdc447f9335a7aad004bdc3'] | I have a question that I need some opinions on. I have a small JSON file, and I'm using as a datastore.
{"stress": [1, "good"], "physical": [6, "ok"], "mood": [8, "good"], "perception": "neutral", "spoons": 74}
Basically I have a webhook running in flask on a pi for an alexa service. And throughout the day this datast... |
c591fcacf5596e088cbf1f3184950893f4391740dd9027d698097fdfc1468574 | ['bf5472cd4b7d4a6c90623e8eeb6ffedd'] | Thanks for answering. I have looked at the links you posted but they are all about Android tablets. I am referring to the page here
http://www.ubuntu.com/tablet/operators-and-oems
If it is ready for OEMs, why can't we download it for Windows PC tablets same as we can for server or desktop editions? Seems like a PC ta... | 0a5ead32ab2276ea14cb513dd401df9e7c038f93361dbdac391fb31853b5458d | ['bf5472cd4b7d4a6c90623e8eeb6ffedd'] | Thanks again <PERSON>. I thought it must be the case but the PR lies on the page I linked to made me think that the x86 version must be available somehow (not entirely unreasonable given that it actually says it is available for x86 on that page). Will wait for 14.10 I guess. Thanks for your patience and all your help. |
eb9a93b711411f540d414a15e9367cfa94ed05a3e61dafb60e59c59df7c82f02 | ['bf55bcfa34c4418ba561dd3599dd6a78'] | After studying documentation, I am familiar that redux creates a global store and for better SEO performance SSR (Server side rendering) is a good choice where I preload my data in first landing page and then I can dispatch it directly in my global store to render DOM in html page for SEO optimization.
Something like w... | f93cb9af8f037192055353c9e0dbe16bba206a9c6765a596ece89207f15e8677 | ['bf55bcfa34c4418ba561dd3599dd6a78'] | I am using bootstrap to create cards using below example link:
https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_temp_portfolio&stacked=h
I am using ajax to push cards data in a global array.
htmlCards = [];
$.ajax({
async: true,
url: 'xxx.com',
type: 'GET',
contentType: 'application/json; ... |
36b795b6b83175f9f6f5a11beb522642a29bb2e8d77562e7e287ac8b3869418b | ['bf572d92cc104ebc9d9a5363ba3394b1'] | Thanks for the useful comments.
Because both lists are already made before mapping I've done it this way:
Gets the list from the db:
List<Metadata> metadatas = _Metadataservice.GetList(_Collectionservice.Get("Koekelare").ID).ToList();
Create the mapper (thanks for pointing out my mistake):
Mapper.CreateMap<Metadata, M... | 03beb1889110664f06fdf55eee2dcbe1c0e8f1123f2d1f2835025056d8543bb1 | ['bf572d92cc104ebc9d9a5363ba3394b1'] | I'm currently working on a ASP.NET MVC 4 project as a trainee and I'm trying to implement an admin panel. The goal is to show all the users on a grid (MVC.GRID) and edit them on the same page.
I've managed to show all the users on the grid and once a user is selected it shows the info below the grid and puts it in a fo... |
c11b80823a18cf930e10fd92cfdbf0cd94c60b7bdb2df83321409ebfabe9d84d | ['bf6733a3b7524842a7ee76ce84f0a7cf'] | I am using ui-component form edit and would like to add custom button "customButton" with all post data. However, it doesn't post any data except form key.
My code
$data = [
'label' => __('Print Address'),
'class' => 'save',
'data_attribute' => [
'url' => $this->url... | fce3b3fc833bccafb46b626dd160a69ee581061316a2a8387d0e605a2e8d9269 | ['bf6733a3b7524842a7ee76ce84f0a7cf'] | Cloning also have problems with who pays the charge: do you put the original in jail or the clone? how can you be sure that you arrested the right clone and he didn't ALSO made a clone to skip sentence? or worst, he lets himself be caught and then just rejoin the original and disappears from the cell. |
f04593559f90ecb8e332d4c2fbd8da1b1e95c7312c271fdaf0a0ff2f02d178ed | ['bf879848bada4456a954066d425d2c71'] | I have a very specific question regarding indentation of blocks on Visual Studio (I currently use its 2013 iteration). If I have something like this (code in C++):
if (a)
return d;
Visual Studio indents it correctly, i.e., by adding a tab in the following line to the if clause. Now — when presented with somethin... | 382044d7c37a21a16624d3ac2490f66524f98c44e94d7eace1fb12a4980ccdbf | ['bf879848bada4456a954066d425d2c71'] | Say I have 1000 identical pods I'd like to be run eventually, but node resources only allow for 10 pods to be run in parallel.
Each pod eventually removes their RC if they exit cleanly, so given enough time, all pods should be run.
If I schedule all 1000 pods at the same time, though, 990 of them will be pending initia... |
2b98f56728b4b7201688f47ddab4861467e375f16bb564067f5f7add22d9e3d8 | ['bf918f680fef42e18ae3f29bc34fe71d'] | I have this type of data (all big letters are strings)
>A|B|C|D|E|F
test test test
test test
>A|B|C|D|E|F
test test test
test
and want to delete C, D, E:
>A|B|F
test test test
test test
>A|B|F
test test test
test
In "test" text, no | occurs. I have tried this with sed, but Im not able to replace the text which comes... | 2f266ad3ae2d9048796069461307c3d156a5e6174783869ad45131ab1e90b7b5 | ['bf918f680fef42e18ae3f29bc34fe71d'] | I have data in following format and I want to extract the first column and the column 6, if there is a column six:
ID1 Bacteria;Firmicutes;Clostridia;Clostridiales;
ID2 Bacteria;Firmicutes;Clostridia;Clostridiales;Eubacteriaceae;Eubacterium;Eubacterium hallii;
ID3 Bacteria;Firmicutes;
ID4 B... |
aa6726e00563aee191f25808146ea2c1b2b7ac458596869ffd5ab1bae36196be | ['bf9b6de0e9fa481e9f10ad1de9224306'] | I get the same error and I'm sure the path is right as well. In fact, it seems to find the file every other time it tries, with very similar code.
for r in range(0,5):
for c in range(1,4):
fn = file_name(c)
try:
photo = tk.PhotoImage(fn)
tk.Button(C, image... | e25b939b004b6c4cd87e204137cf28becaf64a89e4dc78d02c584eafe60c2e61 | ['bf9b6de0e9fa481e9f10ad1de9224306'] | <PERSON>, When you first plug in, Windows offers you some choices on how to deal with the new device; Open in File Explorer, etc...one of them is Windows Media Player. Choose that. I had similar problems and this solution worked for me and my galaxy S3...
<PERSON>, why does this work?
|
91655423b3164d252019d29d9958cd5a7e85b6b7f973ca6ed20ccc4b504d3efc | ['bf9fee64c6964fd880f44ef41a4e2fe4'] | I want to test againts multiple command line arguments in a loop
> python Read_xls_files.py group1 group2 group3
No this code tests only for the first one (group1).
hlo = []
for i in range(len(sh.col_values(8))):
if sh.cell(i, 1).value == sys.argv[1]:
hlo.append(sh.cell(i, 8).value)
How should I modify this... | 211176ab0836de74d640f80037cdf22cd7e08555684ede5aaf901913e8572228 | ['bf9fee64c6964fd880f44ef41a4e2fe4'] | Thanks so much!! I'm getting really stressed out about my electricity bill. No matter what I do I cannot get to the same amounts they are, even if I do round up... I'm $6 off and I am pretty sure I am being overcharged :(. All of their rates include taxes so it's not that. I'm clueless. |
19c337dcb8194e8b9323dba239d3d9b9d3e3f4e67dd2204fdcc824c05b3f5a07 | ['bfa4b8a797754c3eb72f50a32b2d04da'] | SELECT Terminal.NodeID, Object.ObjectID, Object.TerminalID1, Object.TerminalID2
FROM Terminal
INNER JOIN Object
ON Terminal.TerminalID=Object.TerminalID2
This should get you what your looking for.
I'm not entirely sure of how it would react with duplicates so you might want to add a Distinct but i think it's a sim... | 4ffd4fa07d8ce5322359c9fcfcceabaac2476e3ef4501ff6a11640955d936020 | ['bfa4b8a797754c3eb72f50a32b2d04da'] | I saw you already got the problem fixed but i don't have the reputation to comment yet and wanted to throw this bit of info your way
with your current firstFunction if the data is a - b. c
you'll end up with something like a--b--c
i would suggest you change it to
function firstFunction($string) {
$string = preg_re... |
9407d7137c7c3c5e2087bf27c5ce2d3374fe1be04324a1321a0d8869637903b3 | ['bfbae04a1fdd4395b059fbacc3519f85'] | Dears, I'm working with GATE && JAPE rules to walk around in my ontology,
I run the following code:
OURI uri = ontology.createOURI(cURI);
OClass nClass = ontology.getOClass(uri);
byte closure = 0;
Set<OClass> superClass = nClass.getSuperClasses(closure);// direct_closure
for (OClass temp : superClass) ... | 9898321b6ac7790bbb1e62c0c27615aa81426cc45a566335231931f1842c4616 | ['bfbae04a1fdd4395b059fbacc3519f85'] | Dears,
I use Gate Developer 8.5, and Ontology plugin, Ontology Editor :
I load my initial file "test.owl", its classes' names were written in Arabic Language, but when I try to update this file , like adding sub class and try to write its name in Arabic,
I get an error: invalid class name, so, how can I enable Arab... |
87c776d9a506eda4c8ff1d7dc177f4e0c544b67d70466da9be8c856da0461ee7 | ['bfc8118381f04a3997e9670394ada252'] | I'm trying to implement a comment section and after button-press I want to update the comment section with ajax so the page doesn't have to refresh...
In this comment section I have 1 textarea + 1 button + a couple of hidden fields for every comment so users can answer specific comments...
so if there are 50 comments t... | 4a1461384b068bd5c951a77d52bd299215329ab858e201ce9c0dddf3faeacd51 | ['bfc8118381f04a3997e9670394ada252'] | I want users on my page to be able to subscribe and unsubscribe to each other as many times as they want without having to refresh whole page between each click...
To that end I have a subscribe/unsubscribe button...
And it works fine... when user clicks it updates the database and switch to the oppsite (subscribe->uns... |
a18073287f7423f0496431c808267ced9fec04c2c4bd6c6f8c7ddabbf15da5f0 | ['bfd3d7fc9f1246269cc1c947aa8e0346'] | I need to send this table by email as an excel attachment using PhpExcel and PhpMailer. This table is a result of querying my oracle DB. I need to know how I can use PhpExcel to write this table to excel and then attach it to an email address with phpMailer and finally send it.
Thanks in advance.
<?php
$username = "xx... | 3f3a94479e73bc8573a1eb481f5d8f7cbeeb91dd3558696e242832cfc9bdbb88 | ['bfd3d7fc9f1246269cc1c947aa8e0346'] | I am using Linux Suse 13.1. I have compiled the ibm_db2 extension for PHP successfully but when I run the connection test script it returns connection failed. I do not know where I am going wrong. Are there some other steps I need to do after installing the PHP extensions? Please note that I am using Data Client Server... |
ff540b7894d0144108c7601ffe1df9591ed85d6122ced0d9674b35887fd2f2e8 | ['bfe24cd7a71c4d59b2cba71726ba6365'] | I am using PDFBox in my project. I currently save the PDF that is created before sending it to client. Instead the requirement is to send the ByteArrayStream to client side without saving file. How to do this with PDFBox?
I know this possible with iText. But I am restricted to use iText in my current project.
Below is ... | 6a3b15dbe4ddc2cd5afa6944b6c54635e904ee02bddf3466c46b79d9cac0e851 | ['bfe24cd7a71c4d59b2cba71726ba6365'] | I am trying to filter the AuthenticationException that is thrown during a user Authentication in my application. I know these cannot be filtered with @ControllerAdvice and @ExceptionHandler. So trying to figure out any Handler would work for my problem.
Already tried different approaches like AuthenticationFailureHand... |
41f5523964a71cc557886f8c3b8174b1cb8b35adffcc7332150b39a42f4575fb | ['c001a2bd8dcb40d4894ba5afb0457e3e'] | Are there any jQuery plugins available on web which displays table with re sizable columns and horizontal scrollbar. Plugin like colResizable provides resizing only in a fixed area. Also dataTables.net do not provide such table options.
i would like to have a similar kind of table as shown in this link.
Thank you.
| 7bf0fd9dbd80ddc020cd6a8f47e79399dbb277382d7a80740f5a5d96b88b52c3 | ['c001a2bd8dcb40d4894ba5afb0457e3e'] | Given a knockout foreach binding statement
<div data-bind="foreach: Tests">
<a><span data-bind="text: testName"></span></a>
<table>
<!--table contents -->
</table>
</div>
This generates multiple div elements - each containing its own tag and table. when I click on the hyperlink, its correspo... |
67e336d8ea5ad99cf3326a4674e9d0d2862610bdbeefe65d4aeff30ec9e0523c | ['c008b20f97d642c7a21bb6882d5bb0b1'] | I think a much simpler solution could take place.
According to your statement, you have 26 characters of space. However, to clarify what I understand to be character and what you understand to be character, let's do some digging.
The MD5 hash acc. to wikipedia produces 16 byte hashes.
The CRC32 algorithm prodces 4 byte... | c62e921681b53b810470beea4a5bbcc41a4f645305bea0e933092c725351a170 | ['c008b20f97d642c7a21bb6882d5bb0b1'] | In ftpsync, when I try to update my site example.com, I find ftpsync deletes everything in public_html (where example.com resides). My host specifies that other domains reside as subdirectories in public_html.
Even though I have tried telling ftpsync to ignore public_html/subdir-example1.com and the code shown below it... |
acfa02ff16a74ec936af1cf14e8a773970c85b65dd0aaf701eedd5967225646a | ['c012f134a22e4b0097f45d35e8ba0301'] | You've forgotten to prefix the id attributes. Try to do it like this:
<?xml version="1.0" encoding= "utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/my_location"
android:icon="@drawable/my_location"
android:title="Current location" />
<item andr... | f38fc159d7acfacb4a7ac9a0902aa745a7389625dfd76ca2d9365585440ef79b | ['c012f134a22e4b0097f45d35e8ba0301'] | If you're planning to curl multiple times per pageload, I would highly recommend that you instead scrape them down on beforehand and store them locally. This would mean that you don't need to open (timeconsuming) connections to other hosts, and it benefits both you and the end-user.
Short answer: The most optimal appro... |
d6a5773574dd46b6eb65630ef8e517542538fd516c7eeb3177669e030f5b24f2 | ['c0193602633947f4b83f3dae439b07fa'] | After days of searching, trying with errors using various sources with others' help, I managed to solve the problem using this solution:
Open directory
sudo nano /etc/apt/apt.conf
Enter proxy server url setting
Acquire<IP_ADDRESS>http<IP_ADDRESS>Proxy “http://username:password@proxy_url:port”;
Open directory
sudo nano... | 2e4962963160341b6c6090674a0c77443e777610ec2c291c9be1f06abe9d7fbb | ['c0193602633947f4b83f3dae439b07fa'] | I want to use ondrej ppa to upgrade php version in ubuntu server. Do I need internet connection to run this command?
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1
I had tried and produce error of ondrej/ubuntu/php, ondr... |
7e852fe0aaf1e8bb9a4c02645c6c2276e3133662cb0cebe8e443d91889f23c32 | ['c01f5332fe994550b012a11d6a6f5675'] | You can pass you information to the Activity that contains both the fragments like ((MainActivity)getActivity()).mapLocationUpdated(latlng) and create the mapLocationUpdated in your activity, then pass the information to the previous fragment by finding the fragment(with getSupportFragmentManager().findFragmentByTag(ta... | cb3425f19ecc2f833f0e4e16b1fb32add4be587f7f6e2a83e2d691bd2d08839e | ['c01f5332fe994550b012a11d6a6f5675'] | Never put any android context inside a static field (which in Kotlin goes into the companion object), it is a bad practice since you can get a memory leak that way.
If you want to access the context in a class, either pass a context to it in it's constructor or if the class is like an activity, use getApplicationContex... |
91e4b922562b61c876c7ca326443e63093766169b59640099bea6ca3a71be489 | ['c023760d476b40ac97f76e5b615bce9c'] | También puedes hacer esto que a mi me funciona.
Primero llamas al storyboard donde esta el viewController que quieres acceder:
let storyBoard = UIStoryboard(name: "Nombre del archivo storyBoard", bundle: Bundle.main)
Luego llamas al viewController del storyBoard casteandolo con la clase donde has definido vistas, var... | ccd89887ceb58eaf3bfa3e07bdc83fed20aab79798c8afde9505cefce35951c3 | ['c023760d476b40ac97f76e5b615bce9c'] | Can someone find out exactly what phone/phone number an email was sent from? Say <PERSON> used sallys phone to sign in and check his gmail account but never signed out then <PERSON> opened his gmail and sent an email using his account.. is there a way to find out that that email did infact come from sallys phone and no... |
84055d59b360e22150103aed483a9d270a90dee4880de4d5b64da7e3b6b4de4c | ['c023cdfad34c462f846f6c02859886a2'] | So about a year back I dual booted my Aspire one with a Linix OS I Liked the OS but it was a little to advanced for my undoubtedly tiny graphics card. Looking at other options I found the OS that I have Currently which is Ubuntu 0.140.1 Recently my Computer told me that I needed to upgrade to 0.140.2. My issue is that ... | a31f465023b48bec26d952eceb6c5b50a1ac5f95ccf3d3c832548c7ee9be85fd | ['c023cdfad34c462f846f6c02859886a2'] | This pertains to this RPG SE question. I have used a passage from the source book cited by another poster to answer the question in a different way, with a greater degree of concision. However, the original post has more upvotes.
Is it acceptable to select my own answer over the other, or is it poor form?
|
f82d560e6a0b9df039ea57bbba01f821eeede1582582fd6961e25f5ce53202f8 | ['c026955ef750482ab5e796d367ec4801'] | I am trying to get Qlik Sense to work using JWT auth, instead of our current header based auth. Has anyone been successful with this? Would anyone who's gotten this working be able to help me out? Even a sample working example is fine. I can try to follow through the process there to get it to work in mine.
Server Vers... | d5e504c8c1452ea4f0b161f07eecb662e5ba83233ddd303c44cdab9cb364e890 | ['c026955ef750482ab5e796d367ec4801'] | I presume you are trying to execute your program through eclipse or some editor with its own console. The issue might not be with the program, but with the font (type and size) used in console.
Try running the program in DOS prompt, and you might be able to see your desired outcome.
public class PrintPyramidStar
{
... |
e5080a79c2dff567aba3d059556f6e0b732795843bf0b2effbd1d8aafc85a765 | ['c03bbeb79b21423ead4ca37d1a697640'] | My company is a B2B Software as a Service. We have a web with 2 main functions:
Log in for my current users (hundred of thousands)
a marketing web for my potential new customers, (portfolio, blog, contact us, etc.), about hundred leads.
It is recommended to put a first landing page to asking if who is in the browse... | 8074d84a227127a2a6002e7163b2f50e2255a15e9149c69348099f9574d8d9d7 | ['c03bbeb79b21423ead4ca37d1a697640'] | So played around this morning and seen where I went wrong.
I managed to do the above and its bascially what im looking for. Is there a way to add a link to the end of each record (in Timeline Query) so that I could click and show me the record in the original table? giving me all the details or even a pretty form disp... |
865c4fe8502236ae8a6d360eab14967468f2ae8a1fb1dae269f5c9ea59d8754e | ['c04f25ff8b8f47bea9dd359798f0fda0'] | I have a data.frame with 571 observations of 156 variables. I am interested in keeping all 156 variables; however, I only need complete observations for 7 of these variables.
By using:
> nrow(na.omit(subset(finaldata, select = c("h_egfr_cystc96", "child_age96", "smoke_inside2T", "SES_3cat2T", "X_ZBFA96", "log2Tblood", ... | 34e1b52838ed015506134c82a4b34bb05343afaa6a640471ea8dd95a300a5b39 | ['c04f25ff8b8f47bea9dd359798f0fda0'] | I have a data.frame with continuous and categorical variables. For a linear regression, I type something like:
lm(a ~ b + c + d, data = df)
Where a is a continuous outcome. If I want to assess an interaction between C and D, I type something like this
lm(a ~ b + c*d, data = df)
My question is -- what do I do if D i... |
eef8a92ee1cee9feeb88ba2d1af67fffd06af4ac4f005822d447f1021d337824 | ['c05f2d9201f94a72980a25e538b8a0a2'] | Yes it’s speculation, that’s why I said “it’s likely...”, not “it definitely is...”. Other SE sites vary on standards because there is generally only one right answer to a question on maths.se or physics.se, but we are talking about fantastical and speculative fiction here and sometimes the answer is simply “that’s how... | 1b3286b4b57254a2eaa1b2421253e86d0b1a5cc00cfe4e66986badc7854109cc | ['c05f2d9201f94a72980a25e538b8a0a2'] | The following is what worked for me.
\usepackage{placeins}
...
\begin{figure}
...
\end{figure}
\FloatBarrier
The command Floatbarrier is to be included after end{figure} This forced every image to appear in the respective subsection. I know it is not in the spirit of LaTeX to use this. However it... |
52176733449fdead414e1926a3e50e7dc3252bfe91f433ae479dc15b1c6f084c | ['c067826bab3e4e66ba8dbe27cfd5e56e'] | However. note that in Slovakia (a situation quite similar to that of Norway vs. Swedish), if would be considered, well, not rude, but lame, to ask "Do you speak Czech?", and the best answer you would get would be something like "I don't, but I understand it/I speak Slovak", and then you'd be engaged in a conversation i... | 6e006d980d7128aa36a79549dfb34667c51f25cb2846f50f27e0b69912bf292d | ['c067826bab3e4e66ba8dbe27cfd5e56e'] | At the time Sky Europe folded, people (in Europe) who bought their tickets via internet generally got their money back, even if they used debit cards (payment via a debit card can still be made in a credit card mode and then most credit card rules apply, and even if not, contacting the bank and asking would be wise). P... |
b3f258de72c12110b2f3ee5dd37d80b43f7350800221d67afe30597b2e5caf82 | ['c06d092a72974bce8f2ccbb99e370720'] | I have created a following helper (below codes are just to demonstrate what I am looking for)
@helper SayHello(string text)
{
@text
}
Now from an action i want to return this Helper's Text as Html (or string) as below
public ActionResult MyAction()
{
//something like this to return just html
return Say... | 7495375c5bd51ca5b627faed453ac5b7e22671dc1c143681cb4726556b7d3f68 | ['c06d092a72974bce8f2ccbb99e370720'] | In Asp.net MVC3 when you write below code , it generates wrapping html itself
@using (Html.BeginForm()) {
@Html.ValidationMessageFor(model => model.Text)
}
It generates codes in below format,
<form method="post" action="/Feeds">
<!-- Fields Here -->
</form>
My question in @using (Html.BeginForm(... |
d3bdfc95b4f149ab1e56fd5344fe506bcc8dff365e9a04be3ccdaa9e6be16f36 | ['c06d224ceafb4cf4b0a3ea2500b02894'] | Here's how I finally got this to work: I went into the GRUB boot menu, chose Advanced Options and booted in Recovery Mode. Then I could see the boot process (no black screen) and logged in, edited /etc/default/grub and added the nomodeset param, and ran sudo update-grub and rebooted. I have no idea why modifying the GR... | 83771efb2892deb7e82e1e7e7910f3ef4b715ba82dca5d7d5a45b3885cdb83ac | ['c06d224ceafb4cf4b0a3ea2500b02894'] | Как я понял есть одинаковый формат дат и стоит найти одинаковое. Возможно просто загнать их в JSON и сравнить как строки. Например вот так
var dateFilter = JSON.stringify($('#date-filter').val());
$('.item').each(function() {
var tmp_formed = JSON.stringify($(this).attr('data-date'));
if (dateFilter.locale... |
078a6f84a23fb2d4d339940a086abede73cf6d69db3deabf8574b753bc054563 | ['c06d3e614f0142e8b83211593eee1352'] | Well I'm learning lua and I got a question, I'm trying to create a reading function bool in lua.
I have a function that disables or enables as I score true or false.
This function is called just useappenabled that I am not able to apply it on the Moon, before I used in the form of libconfig and functioned normally befo... | c1d0a6289ba8e7fbf50fcdbed55ed75fea30fd578fe59df5166b2676d0ecf3d6 | ['c06d3e614f0142e8b83211593eee1352'] | I am having a problem when trying to return my struct in C ++ I am still new to that language.
I have the following code
Header File
class Rec : public Rect {
public:
Rec();
struct xRect
{
int x;
int y;
};
struct SRect
{
int position;
xRect *mtype;
int v... |
22dbc15aee9625d766dbc14ec9c45e488746aa2093aeef80f8a73cc1b3024aa8 | ['c075bf5fc91f42cd9e31323773e12339'] | Имеется сервис, который позволяет пользователю загружать файлы.
Для этого я использую AWS S3. Файлики каждого пользователя я кладу в отдельную "папку" (то-есть названия файлов одного пользователя имеют одинаковый префикс):
/user-id-1/file1.txt
/user-id-1/file2.txt
/user-id-2/file1.txt
Вопрос у меня следующий:
Как посч... | 5e19b466b201107bb81c32431b25faaa4f769f1d2dd5348ff06c3bb61ffc4a96 | ['c075bf5fc91f42cd9e31323773e12339'] | The Problem
We want to know the amount of 8 digit passwords we can make using digits, uppercase, lowercase, and special characters. For this problem there are only 16 special characters. The rules are that the passwords must contain at least 1 uppercase, 1 digit, and 1 special character.
My Approach
After drawing a di... |
5f7591cb153a02d7610cb5c238755f91ea67f5869cd385722e1ecefc4e1d2669 | ['c0777075e1e145cab53ed31ccdcd92a1'] | You need any identifyer to do that. Maybe like your-domain/home or your-domain/about, etc.
You can use mod_rewrite tu make this to a good locking ID
.htaccess
RewriteEngine On
RewriteRule ^/?([a-zA-Z_-]+)$ index.php?p=$1 [L]
then you can use the switch function to different.
function getPage(){
if(isset($_GET['p']... | 5c0119e31d67983cad0eacee668cf6ac0068e294cdd8c74a41826499136e55cb | ['c0777075e1e145cab53ed31ccdcd92a1'] | For a readable output use this
echo '<pre>' . print_r($_COOKIE, TRUE) . '</pre>';
then use this to add it to another Array
<?php
// for save coding
if(isset($_COOKIE) && !empty($_COOKIE)){
foreach($_COOKIE AS $keyName => $valueOfKey){
echo 'Debug Output: Key:' . $keyName . '|' . $valueOfKey . '<br>';
... |
450e2b1cc0005ac0be6ee0081dd1522867aa12d66955d7e9326999e22ae7596d | ['c0780e64dbad4277a72046a893d4e54f'] | Consider the following table:
CREATE TABLE `FooAttachments` (
`AttachmentId` bigint(20) NOT NULL AUTO_INCREMENT,
`FooId` bigint(20) NOT NULL,
`AttachmentPath` varchar(100) NOT NULL,
PRIMARY KEY (`AttachmentId`),
KEY `IX_FooAttachment_FooBase` (`FooId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf16
If I i... | 24188ef1c750aad98c165b5297440659683209938e5506a5a26fcf9dff2ce873 | ['c0780e64dbad4277a72046a893d4e54f'] | I'm using PHP to return a JSON encoded associative array to a client. The array is constructed by looping through the result set of a MySQL database query. For simplicity's sake, instead of showing all the code that returns the result set, let's say that one possible output to the query produces the following associati... |
ab340f634a08e8e9946484d08d40fc3993f8900d4eaae86cd38f31309764e843 | ['c07cf78ff7154ce4bb46e8058014ca38'] | Sub duration()
Dim ws As ThisWorkbook
Set ws = ThisWorkbook
Dim wk As Workbook
lr = Sheets("COBACOBA").Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To lr
Cells(i, 29).Formula = Application.WorksheetFunction.NetworkDays_Intl(CDate(Cells(i, 16)), CDate(Cells(i, 28)), , Workbooks("Holidays.xlsx").Worksheets("Hol").Rang... | 8b209b4c826798537e838502a54e54b3cb3ef205dd089db753bbde2240250992 | ['c07cf78ff7154ce4bb46e8058014ca38'] | I have a workbook that contains about 30 worksheets.
I have to link text from one-sheets to other sheets
if I doing it manually it'll take to much time
so I want to use looping the hyperlink
Sub Macro4()
'
' Macro4 Macro
Dim i As Integer
Dim sht As Worksheet
i = 2
Set sht = Sheets("... |
4388f4ab227d80f2ca25aa7e00f81c1bc573a2a8c2ae65491893fc6874457a52 | ['c083cec05ffe47efb68ba9913e4de6d7'] | I cant understand what this happen but my datagridview each ro loop doesnt work for all my rows.
I have also a checkbox cell which i need to get its value when is selected
foreach (DataGridViewRow row in this.dataGridView1.Rows)
{
if (Convert.ToBoolean(row.Cells[0].Value) == true)
{
... | 9af3a52cc8b6b07687cf84ac05d9921da94f69ec6b478013e1846756566502a0 | ['c083cec05ffe47efb68ba9913e4de6d7'] | I'm usign mobile for insert rows into a local sqlserver.
Some times the sql server doesnt responde and i'm forced to wait for getting exception.
I have set sqlConnetion time out to 3 seconds
SqlConnection con = new SqlConnection("Data Source = " + MyIp + "; Initial Catalog = database; user id = sa; password = 1234;Co... |
fd9920e41e5c6027fe1fa951368484f3dbd4f8bdc62d77b875bcb4aaaf6a9e2f | ['c09db9f13dce43d7a5a923ad8485af99'] | If I use Canvas instead of ScatterView and ScatterViewItem and the order ist like this
<s:ScatterView>
<Canvas Name="LineCanvas2" Width="500" Height="250" Background="Aquamarine">
<Canvas Background="Transparent" Name="LineCanvas"/>
<s:ScatterView Width="500" Height="250" Background="Tr... | ba18be2923444cb45017a8543d15980630a94e3bb96edc4baf61ea0425e2f3fc | ['c09db9f13dce43d7a5a923ad8485af99'] | After adding the Support-Library ADB won't rspond and I cannot run any emulator.
I already tried the restarting thing, also the kill-commands on the terminal. Even reinstalling Android SDK. Nothing worked.
Is there anyone with an idea what else I can try or what is going wrong?
|
91a930a7d109ee84c025216d92353d2dd74e5b5fcdfb46efc960654671639ceb | ['c0a81b2fc0fa43d6ab05de221c94b821'] | <PERSON> It works! If you want to answer the question with the solution I'll be glad to accept it, otherwise I can answer my own question (but it would not be fair, since you found the solution). I found the correct syntax for the `date` field on the biblatex manual, but I'm new to biblatex and I was unaware of the exi... | e26b992fd6452e3cfaf2642fdabd93f173d5b9faee54377d05c7d64367f45973 | ['c0a81b2fc0fa43d6ab05de221c94b821'] | I'm using the BibLaTeX package with these options: backend=biber, citestyle=authoryear, maxcitenames=2, mincitenames=1, maxbibnames=99, language=italian.
If I have two documents from the same author and the same year, the command \cite{work1} and \cite{work2} will output Author A and Author B, XXXXa and Author A and Au... |
45839355df79840cd09621e43ff9f498e5378d970bd3837c5a940ba82ab5df07 | ['c0b195ad31bd4a4aa863922e5ac3f631'] | I'll give it a try myself because I think I have a slightly more formal answer than the answers provided up to now (<PERSON> and <PERSON> are going into the same direction but the answers are a little bit vague in my opinion). I'll let the voters decide on the final accepted answer later.
My try:
"Code" is a noun ("he... | 778da55d9f3e613d2d5cc091ebfe9d439dc83174f0c54a15ee2c0821bdbb684c | ['c0b195ad31bd4a4aa863922e5ac3f631'] | Alright, so I'm having this very odd problem, I've tried everything I know and just can't seem to figure out whats causing it. I'm on Xubuntu 14.04.
Randomly my usb wifi dongle will, for lack of a better word, "hang". The flashing LED on it goes stable, network manager reports that I'm still connected to the internet, ... |
ea7b4a5430f8a67498edf47d3562a8d15db49edc366cbf6ac0660577e1e5e342 | ['c0b278ec6e0d4eecb17eb78714064565'] | I'm using hibernate 4.2.4 with JPA and layz loading in a ManyToMany association.
Object A is associated with @ManyToMany(targetEntity=B.class, fetch=FetchType.LAZY) and contrariwise. To get data from database I call the following (simplified) code:
try {
session = cutSessionFactory.openSession();
session.beginTra... | 27c6273513d7eee3af27f8432fa723c17ad57c077dcf7f389221cd89d57fbd7d | ['c0b278ec6e0d4eecb17eb78714064565'] | I'm using hibernate 4.2.4 with c3p0 <IP_ADDRESS> in a JSF 2.0 application. Everything is working, but if 5 users at once doing some actions inside the application it freezes after a few minutes. Other applications (portlets) inside the same container can still be accessed, CPU and RAM usage is normal.
Perhaps all conn... |
f1eb8d9fb74a8d6b8c6280734bed7590ac38b8235409552f4f1516dc9ee61eab | ['c0b55c020f464a2998cb3e654ef40484'] | I have a function -
def add(a, b):
return a+b
Now I want it to add 100 to the result using a decorator such that -
@decorator(100)
def add(a, b):
return (a+b)
class decorator():
def __init__(self, c):
self.c = c
def __call__(self, f):
def _wrapped_f(a, b):
return self.c +... | 17b6139998717b9757513be528d4fcb57ecf89986a95616316945adf2f7eb00a | ['c0b55c020f464a2998cb3e654ef40484'] | I have to productionize a PyTorch BERT Question Answer model. The CPU inference is very slow for me as for every query the model needs to evaluate 30 samples. Out of the result of these 30 samples, I pick the answer with the maximum score. GPU would be too costly for me to use for inference.
Can I leverage multiprocess... |
a7155a46ae5af7003ba1f29204345de2be6b5f5c4673730a8cc2b2218aa957ef | ['c0b7c0c6c7234ec7b51e0d20c14d92c3'] | Есть TextView, нужно вывести отформатированный текст, как в примере, который я прикрепил ниже.
Первые строки делаю с помощью NSMutableAttributedString, NSMutableParagraphStyle, NSTextTab. Все работает, как надо.
Проблема заключается в последней строке "О направлении ...". Как сделать так чтобы с определенного расстояни... | f9d9a376fcf2a84706119bca553e2fe5ba8b362ec1bf5afd79e9cadceb67e15c | ['c0b7c0c6c7234ec7b51e0d20c14d92c3'] | finally I managed to make GUI with this complete guide(Fix catalyst driver in Ubuntu 13.04 / 13.10), but now there's another problem:
When I try to enter my password and login to Unity (normal without ctrl+alt+f1), is triyng to enter the Unity user interface but with no result(black screen) and kicks me out again to lo... |
7bbd6f63f0d0bc8a0312861d20e19f6964a60fc5988e2f18166960eead9dcaca | ['c0b85c6e91ba44afbc8df40fa7b789d5'] | please could anyone help with advice on how to do this using the API? I am looking to use some javascript to call our agent first on their SIP address and then start outbound calling the customer on their PSTN number from the agent.
The snippet below will achieve it, but in the wrong order as it sets up the customer c... | a47da6eb62182e4fc9a3283cd13842019f777bec1b041a89714a1efc3a984093 | ['c0b85c6e91ba44afbc8df40fa7b789d5'] | I'm using puppeteer to try and scrape an image off a live cctv stream at an address like: <IP_ADDRESS>/display_pic.cgi?cam=6&res=low
The issue is that the page is continuously loading as it is a live stream.
Puppeteer eventually errors as a timeout when you load the page. Is there a way to get round this, force a scree... |
48456c10747c462ac68c2ea2e286eb8a8a0ab5169c3af7bfe91ec4088f3889cd | ['c0cdc21817c349f3a471a26c672df2aa'] | I'm currently looking for a way to open an external application that's located in the userprofile folder. This is my current codes:
Dim p As New ProcessStartInfo
'program function'
p.FileName = "%userprofile%/folder/app.exe"
Process.Start(p)
I got no luck so far. If anyone knows how to do this that wo... | d9e50a8f91a98587feeefbd0c4dfe73c0edaf30019b47a829103313a24a4b1a6 | ['c0cdc21817c349f3a471a26c672df2aa'] | I have figure out a way to keep the form on top of the taskbar. To do this, you must have the form set as top most:
me.topmost = true
Next, you want to create a timer and have the interval to be 1. The timer will constantly keep the start button focused:
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handl... |
3773d33d53694e362ca5342bc95b23bb43a7eb82af23142a70f2acb019dffc31 | ['c0d06f81d8fc47089d41b5c88023e536'] | If I want to deploy on Amazon IaaS, I could deploy directly with our containerized release IIS deploying its own K8s/docker environment. However, if we wanted to lay down ICP first on Amazon IaaS, and then install DataStage (ultimately IISEE next release) - is this supported? My customer is only interested in moving II... | b8080ba0d50d0cd86881f5901268b31373556b98616efc09e20f3d42b933911d | ['c0d06f81d8fc47089d41b5c88023e536'] | We have master reference data tables that I can -
Define the table to Information Analyzer
Profile the data in the table
Define values in this table as values for a reference data table
Use these values in the project to check other table column values
What I would like to know is -
where can you see a catalogue of th... |
d9361839d33e8d3d36e4b735e0022753c45dc1bcf8551b0a8657e26a9b853e30 | ['c0d1a49efc4e4e888012938a4b2b43b9'] | Ok, here's the solution I came up with:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Versioning;
using System.Text;
namespace YourName {
// Represents a writer that makes it possible to pre-process
// XML character entity escapes without them being ... | 06c09b858f892b654de13dfa4e0a3f586d1b2b9232be7fad41999ca9d5c5c0a3 | ['c0d1a49efc4e4e888012938a4b2b43b9'] | After putting this on the back-burner for a while, the answer became apparent:
Although you can't easily override the Read() method to change the read value, you can hook the property accessor to do the same thing:
using System;
using System.Collections.Generic;
using System.Xml;
namespace blah {
class XmlCustomT... |
f19d70979e767f5454ab20d2d2d2da60ce0fe667de078f085b436f3da289df83 | ['c108fbec58864c4fbeae7ae9ebe2cc79'] | I am not sure if I know what I'm doing: I am trying to backup "Integration Services Catalogs", seen in the picture below.
But all the instructions I get is to backup the SSISDB database. All I am familiar with is the catalog, that's where I go to "execute" my packages.. I know executing is just running some commands/... | 49743cdee3c4f032ba0952ccbadb9a022fcf01160ca4b5bf2b76f2befd3c7750 | ['c108fbec58864c4fbeae7ae9ebe2cc79'] | This whole "visual C#" has caused me much unnecessary grief (including one during an interview , given I had never heard of the term 'visual C#' and apparently the interviewer didn't even know what it was and was just trying to put checkmark beside qualifications). To sum, Visual C# doesn't exist. It's just C#, we shou... |
7783bb6468308a8a1cd3015bff28dbc331e837db89c4e0c8692d084446e875ea | ['c11225fce3ad43d0a605401983c51dd0'] | Berlekamp-Massey is designed for the situation where you have observed $2n$ consecutive output bits from a $n$-bit LFSR. It doesn't work if the observed bits are scattered randomly, at random non-contiguous offsets in the stream.
Information-theoretically, a minimum of $2n$ bits of output are needed to reconstruct the... | 6fa75fac4870828d03c87cf83cb886817a72ea796f0295678b797161d89dbe79 | ['c11225fce3ad43d0a605401983c51dd0'] | The standard answer in the research literature is to use information-theoretically secure message authentication codes, typically universal hashing (aka Carter-Wegman authenticators). Of course, you could use computationally-secure message authentication codes, like CMAC or HMAC, if you wanted, though that would partl... |
fea66232c88927919b0bf394223b562050b9929cd4c259cd8e70f6cbb51260ed | ['c1235726287c4025bea68637d0d4c719'] | I have a problem with this code, the mouseleave function is firing on IE without the mouse entering first in the div.
<script type="text/javascript">
$(document).ready(function() {
$('#<?php echo 'div_'.$reload_cont; ?>').mouseenter(function() {
var el = $(this);
var timeoutId = setTimeout(function... | 6fefd465374d91b8189c82cb0b0a4ebddd9e0e9e3f9d53e628ec8ef544ed8fab | ['c1235726287c4025bea68637d0d4c719'] | I have a dynamic table with some test just before it, I am having some problems printing this (on actual paper), sometimes the table starts in the new page, so my first page is just the header test and then the table on the second. I have tried with page-break-before: always; and several possible combinations of the pa... |
c879d30bd7b84966a46c7917ccbfd4894606481ed9fabbd61c960e1ad4f7e8b4 | ['c13e4123232442af98a0afda13763812'] | Try below script:
Assuming, you have count values in A1 in both sheets, if not then change your range accordingly in getRange(1,1)
function appendName() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheets = ss.getSheets();
for (var i=0;i<sheets.length;i++){
var oldName = sheets[i].getNam... | 83fb7488d2594a4080758a40400f0a00a992974255a6c0123907dd47cf18bdfa | ['c13e4123232442af98a0afda13763812'] | I am trying to fetch this website (https://www.covidhotspots.in/?city=Mumbai&source=share) data using Importxml in Google Sheets but it gives me no data.
I am trying to apply below formula but it is giving me #NA
=IMPORTXML("https://www.covidhotspots.in/?city=Mumbai&source=share","//li/text()")
I want to fetch geocode... |
a37c43c5ba713166176183695974ce1f3f52b530b34e230b29e78073ad3d6891 | ['c14003f6bfb4442cb50ce73e16cf2e1e'] | right now i have a transparent bootstrap navbar with some content in it.
css
.navbar {
/*background-color: #0B76BC;*/
background: transparent;
background-image: none;
color: #F5F5EF;
border: 0;
z-index: -100;
}
even though my navbar is transparent the content inside is not. but now the item... | bb21ff151d1d923cf3a93373811b88b86170523fe767ac27aab6ad03d6183cef | ['c14003f6bfb4442cb50ce73e16cf2e1e'] | I am so new to NodeJS, but am trying to write a function that checks if a port to see if the port is live and running.
IF the port is running/live do nothing and check again in 3 mins.
ELSE reset the area that the NODEjs code is in.
thanks!!
|
29587d55be6f7262cb04ad874523303cf653278030878ec229c17f9a21773cd5 | ['c143161c93f94ac0885266bf68cfb985'] | In the chapter of Professional JavaScript for Web Developers on OOP, <PERSON> describes a JavaScript inheritance pattern which he refers to as combination inheritance. The basic idea is that methods are inherited via prototype chaining; whereas parent properties are passed on to descendants by calling the parent constr... | 437138752328f93e4967bd0c557af96cf049a771a874f6a798a148df4646297a | ['c143161c93f94ac0885266bf68cfb985'] | I once saw a paper written by <PERSON> and other than the fact that it was missing a bunch of modern math terms (obviously) you could almost be forgiven for thinking it was written yesterday, it was quite remarkable when you compare it with some other literature from similar times, some of which can be quite incomprehe... |
67dbaede6d1327acf9d5da154e62aa4e65b8de3ba633adb735ed4d82791f7c51 | ['c159b0c34836449390ff8bd9af4b278b'] | I tried Sketchup to sketch a home design but I find the controls a bit frustrating. I can sketch 10 times faster in The Sims 3, plus it is nicer to look at. Though the metric system may not be 1:1 ratio to reality but it's close, maybe 15%-20% off but this is a just a sketch, right?
Anyway, is there any software that d... | 5555b01726f5c10cd04d5ee78c57c26283ce46136ce85f7c4cc677a104da7a24 | ['c159b0c34836449390ff8bd9af4b278b'] | @unknowndomain: because of the number of functions in the `Preferences > Security` and `Preferences > Privacy` settings. These are functions that are usable by beginners and advanced users. To give you 2 (from my point of vue) winning settings :[return] `Privacy > ☐ Allow remote content in messages`, [return]` `Securit... |
31dd4a830d94b82d890e9d90ab6cb4cb4168334302a206f4c09f49607760f524 | ['c16a02048418469fa988a6ed110e583b'] | I have 3 vectors, A, B, C. They all have the same number of rows. What I am looking for is the all possible combination of summation of vectors. For this example, I want to have A+B, A+C, B+C, and A+B+C. Is there any command/package in R that can do that? In another words, I want all possible linear combinations of the... | 0818ba1ce1add55c91f92730bb8be9aa91d71a76c6d04ca1cc2e61bfb97c23a9 | ['c16a02048418469fa988a6ed110e583b'] | I am trying to write a file in a loop in R. I want to append the file as we go through the loop. I tried append=true but didn't work. I have explained the problem with details here. Any idea? thanks for your help:
#Initilaizing 2*2 array
Array1 <- array(0,c(2,2))
for(i in 1:5)
{
#Create 4 random numbers
Random1 <- r... |
947e54c64430a78b463e5387cf2d5f1c62a6908a377edfe35fb28a943e863a58 | ['c16bdc4e05b24021a45781d7bb2e043b'] | I have built a Phonegap Build app and run into a bit of a bug. I've created all the appropriate images and referenced them in my config.xml file.
However for some reason they are not showing in iPhone 6, 6s or 6+. All other sizes seem to show the splashscreen without any issues. here's my code...
<?xml version="1.0" en... | ba0fb509c218dba48c879fef2c6ff9cb3f35e1574abebb4ada2d0b95692e9795 | ['c16bdc4e05b24021a45781d7bb2e043b'] | I have a table items with columns item_id, lockup_id, date, archive. I need to be able to go through the lookup_id column and identify duplicates, changing the archive value to 1 on every duplicate EXCEPT the newest entry in the table.
item_id Lookup_id date archive
--------------------------------------... |
f85f807a5707bbdab9dad0b4050deec80a5d7430b84b7a6a2b54013b2b9fedf0 | ['c188976ed3f14097bff1ef3b7a731e26'] | I just don't come up with an idea how to do the following:
In my html-document i have two elements of the class "modal" (the bootstrap modal class).
The one modal must have a z-index of -5 and the other 10.
How could I achieve this?I suppose that I could use IDs,but I have no idea how exactly to write the code...
Thank... | 0de488df2c00c8d139e3c95cba257a319f63d082192eafc5407451f1d1994dfa | ['c188976ed3f14097bff1ef3b7a731e26'] | I am new to GUI programming with java and some questions occured in my head. I am learning now the MVC-pattern and I was wondering how the implementation of a JFrame with a button to create squares on click would look like .
What I want to do is : I have a Frame and a button, the button is pressed and a new square is r... |
7d4aab70ad3cfcc64fa1f9242133a9f2c33296e493790aa5e67901c02300685a | ['c189b44bd1c54124a8783cd086c575a7'] | The following text is written in my textbook and I don't really understand it:
If $A = (a_{ij}) \in$ Mat$(m x N, F)$ is a matrix in reduced row echelon form with $r$ nonzero rows and pivots in the columns numbered $j_1 < ... < j_r$, then the kernel ker$(A)$ is generated by the $n-r$ elements $ w_k = e_k - \sum\limits_... | 26572c72f7640535d74c19ca6c5cc6471d6d46530e8f2718441d695d50787823 | ['c189b44bd1c54124a8783cd086c575a7'] | You can use one of those three commands. Read the man or info pages for more information.
uptime - Tell how long the system has been running.
w - Show who is logged on and what they are doing.
top - display Linux processes
All three commands show you the load average information. top is probably the best choice as it... |
5b368a563f7b941042b5c4584ab2da9d4135b412f2c732da27d15e95bfcc3967 | ['c1a9d7e347f542f08a39db6fee8a2ca9'] | I have setup Bamboo to run JBehave tests on a remote agent (with JBehave-web plugin launching test using webdriver), and everything runs fine. Only problem is after the execution is finished Bamboo shows no test executed. I can see the option in Bamboo to select the output of the test results, but it has to be a JUnit ... | 9a800660d75c3692e069aded999cc75036dadbef0e8b629eef29b45a5d7e33ed | ['c1a9d7e347f542f08a39db6fee8a2ca9'] | The way you did it is correct, because it assumes that project B will be using the dependency of project A that will be in the artifactory, so you can develop both independently.
And anyway, for the project A, if you are using maven, don't you use maven clean install for compiling and deploying? That way you are sure y... |
9d0999045f3bb4142b2c5a6ba85f7003ff72c015a10d1806aa7c0ac502b0d0fc | ['c1b7e76f7b904117a2641d37154ac23f'] | I am trying to get the current index of the letter that typed in during OnKeyDown event.
For example, if I have a text in RichEdit Control as "MOVS,21"
I would like know the index of "(" when I change the string to "MOV(S,21" in the event "OnKeyDown".
Is there any way I can get this index? Appreciate your help.
regard... | 44ef0fdcf0cb6eb60be3b1e0e5a7dfdf45caf268ef97802be1c475c3272643b4 | ['c1b7e76f7b904117a2641d37154ac23f'] | I have a generic list of integer and it contains random numbers. How would I select the last n elements from the list using LINQ?
I know can use myList.GetRange(index, count) to get the last n elements from the list. Is there a way to do it in LINQ?
THanks
regards,
<PERSON>
|
e50038613db07877017cb0b78410d39d7e3f3d3b09a6a24847ca03274dac984b | ['c1c05346fecc4412b6a57a31bb93213d'] | Hi Am trying to keep a image and text in a div side by side with background color green am able to keep but the image is not at the right place so when am trying to match it with the text am unable to do it
Here is the code u can run code and see
<div style="background-color:#4CAF50;display:inline-table;height:20px;ma... | b5a09e2a6057573dc9ce7b780b6b09196e5eb713b6a433834154a99313e9bd58 | ['c1c05346fecc4412b6a57a31bb93213d'] | Hi am using visual code to run project here are my codes
external.js
export let keyValue=1000;
script.js
import {keyValue} from './external.js';
console.log(keyValue);
Then I have command to run file as node script
Then its showing the below error when I run node script in visual code
F:\es6-examples\modules-classes... |
b3872b76213a614be06ce9a129c1f30f6a62eb3e5b1e99f2be49b257f7df3c1c | ['c1c25398199d48778ed0afcc05e46969'] | thanks so much <PERSON>. one thing to add-- i was getting a weird error at the commandline:
ERROR: transport error 202: connect
failed: Connection refused ERROR: JDWP
Transport dt_socket failed to
initialize, TRANSPORT_INIT(510) JDWP
exit error
AGENT_ERROR_TRANSPORT_INIT(197): No
transports initialized
... | e775f57ffc3312d2268676ae0bb0126716541e1c65095cdde529ecb854cb60c6 | ['c1c25398199d48778ed0afcc05e46969'] | The lists print out backwards because as you are packing the OUTER elements into the new list FIRST. As you continue to unwrap A, you add a wrapping to C.
The cleanest way to duplicate these lists might be to do a deepcopy of A and B (we'll call them C and D), and then set the deepest element in C (found by traversing... |
031906ae1100185a655e38c0310be20726581eed66f44cd7df00d40d98623475 | ['c1c6afc97c5a44c9a8cd420438813318'] | First of all, all your types must implement a common interface that define properties like Active, Value ...
Also, for what I can tell, there must be a repository interface for all repositories independently of the MyType so that you can use a generic method like this. The GetAll() method should be defined in the IRepo... | bbf5ae2ea87a1b6a71a28c88ce5f9b7e4b5757357e5fe17450a2aa2c01a3b73f | ['c1c6afc97c5a44c9a8cd420438813318'] | Here's my implementation:
public static int commonChars(String s1, String s2) {
if (s1 == null || s1.isEmpty())
throw new IllegalArgumentException("Empty s1");
if (s2 == null || s2.isEmpty())
throw new IllegalArgumentException("Empty s2");
char[] a1 = s1.toCharArray();
char[] a2 = s2.to... |
45cfb5ff96c33eef42ddc5d4e019b3c342eac4fd9692d8afb9163d96a965f823 | ['c1d05afabb8e4c78868421e12c7b58cf'] | The first script below calculates the total based on the ACF pricing field in the WordPress dashboard and the percentage input by the user:
$(function(){
$('#percdown').on('input', function() {
calculate();
});
function calculate(){
var parcPrice = <?php the_field('parc... | 3ab9017979ac268bbd26a92737c5384c12e82129b055ac6834494e321495125f | ['c1d05afabb8e4c78868421e12c7b58cf'] | So the problem I was facing wasn't an error with the code, but it was two of the 50 post didn't have an assigned featured image, which caused the grid alignment to break.
Thank you for bearing with a Stack Overflow newbie here and I will keep your community guidelines in mind for future posts.
|
5b06ae61a8239ed853bcbf55d5c8ee56ba35f17d143190093c580bfb8f5f6fae | ['c1e1a59007ec4ec5a2aa638eecf1ec93'] | I have a dynamical system in three dimensions given by:
$\dot x = (1-x^2-y^2-z^2)x+xz-y$
$\dot y = (1-x^2-y^2-z^2)y+yz+x$
$\dot z = (1-x^2-y^2-z^2)z-x^2-y^2$
I analyzed the system by first finding the fixed points which are at (0,0,0) , (0,0,1) and (0,0,-1).
Next, I found the Jacobian of the system and for each fixed p... | 3bc892eb3e7e706c89263745bdcced981d658bdf6ff8b29b25f7883a6738128d | ['c1e1a59007ec4ec5a2aa638eecf1ec93'] |
There is no universal, or widely approved naming convention
Since there are 3 application layers where the abstraction of Person is present, you may simply distinguish them by namespaces, although this appoach may lead to confusion
In my opinion the most verbose approach would be the following:
Person - for domain/... |
50ce6ddf642394c463bda2d42cd90f20f2a1ccc84500a2d4143f61c8d905412b | ['c1e42e5ea9e345128c4cbd244ba71f7e'] | What is store in your code. After fixing this bug, it works
#!usr/bin/env/python3.6
# imports
import numpy as np
import random
# Generated random matrix of 25 spaces,
# where placed ramdom number between 0 to 255,
# and store in a variable.
matrix = np.random.randint(33,255, size=(5, 5))
# This shows the matrix of in... | 06799a7e95b647525e5a994d6bf31c71949033f558a50b2114c6070c01badba5 | ['c1e42e5ea9e345128c4cbd244ba71f7e'] | string a= "Stack Overflow";
char b[]= "Stack Overflow";
cout<<sizeof(a)<<","<<sizeof(b)<<endl;
Output of above code is 4,15
Since 'a' points to the string, it has size 4 that of a string on my machine.
'b' is also pointer to string, but why it has size of 15 (i.e. of sizeof("Stack Overflow")) ?
|
14213a5509bc178e35658684eb5446999d7ed5f7a7b2f954fb05c973deede711 | ['c1ee9c84f29d44e0ba1e1d5a7e66feb8'] | This this :
library(dplyr)
library(nycflights13)
data(flights)
flights %>%
filter(carrier =="UA")
# A tibble: 58,665 x 19
# year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time arr_delay carrier flight tailnum
# <int> <int> <int> <int> <int> <dbl> <int> <int> ... | c25d5251a4c14ac89257fda77f9818063c1eb558cb291c4976bbefd5c6d4f0c4 | ['c1ee9c84f29d44e0ba1e1d5a7e66feb8'] | I need more elements to perform perfect code but try a code like this :
data4<- na.omit(data3)
ui <- fluidPage(
sidebarLayout(
# Input(s)
sidebarPanel(
# Select variable for x-axis
selectInput(inputId = "x",
label = "Variable 1",
choices = c("Col1", "Col2", "Col3"), # You have to def... |
42ec96d3f532724ee0a060d8e0386157619effad1e031713b5236c1d19d71c01 | ['c1fca215893a4506835a47b5ab7b533a'] | We're covering spectral analysis for discrete time stationary processes in lectures, and I can't really get my head around something which seemingly should be easy.
"Because time is discrete, we only need to consider frequencies in $[\frac{-1}{2},\frac{1}{2}]$"
I have absolutely no understanding of why this is so. From... | 23fdd5c1d508b53a35c58cb8959f60ef2ecf1775f6276854dc09733b934ff1c1 | ['c1fca215893a4506835a47b5ab7b533a'] | I've got discrete data (highest education level achieved to be exact, where each level has an associated integer, from 1 to 7, with a higher number corresponding to a higher education level). The two peaks I'm expecting (for my population) is at A-levels and having completed a degree. Between them is having started but... |
8a75077ae80df0c1468d89fb5c1f8eb251e4970afa5845709ab41b6ece19af1c | ['c2009eb663fb446ab010665cc87441af'] | 802.11b - 11 Mbps (2.4GHz)
802.11a - 54 Mbps (5 GHz)
802.11g - 54 Mbps (2.4GHz)
802.11n - 600 Mbps (2.4GHz and 5 GHz) - 150Mbps typical for network adapters, 300Mbps, 450Mbps, and 600Mbps speeds when bonding channels with some routers
802.11ac - 1300+Mbps (5 GHz) - newer standard that uses wider channels, QAM and spati... | 0b94eb54c6570e70bea1c32cc153340924579897afca5d8c269f6636b0b0e15f | ['c2009eb663fb446ab010665cc87441af'] | First of all, make shure you have iOS 13.1 installed (available yesterday 24th sept 2019). iOS 13.0 was full of very annoying bugs...
After that, since most of your purchases were made from your wife's account, verify she's the Family Organiser and that Purchases Sharing is ON on every family user's account.
|
4f277ca6e9b3143fb3161681d9eb595bc6d3ad20b97d4126e2a34e2538901453 | ['c20fa190063b4c05bcd4eccfcfc281e2'] | I have an object that has an end date which is created using the callback after_create.
I'm wondering where the best place is to include the logic which would trigger an action when the object expires. (Time.now.in_time_zone > Object.end_date)
I'd like to create a method that checks whether an object has the attribute ... | 26d8a3384e4d7e6e5684ee391c1cb690b548fbcc273450ccb82e3fb259f1c2dd | ['c20fa190063b4c05bcd4eccfcfc281e2'] | I have a User table with a column total_user_xp with a has_many :goals association.
The Goal table has a column total_goal_xp which is calculated in the model with the following method:
# goal.rb
belongs_to :user
has_many :goal_activities
has_many :activities, through: :goal_activities
def total_goal_xp
sel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.