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 |
|---|---|---|---|---|---|
6cb228e8e5f0659e38ecff4d4a78c8a0e224e144589e67b3281464113f452b2c | ['6add4d4e7bb54aaaa1edfd0321d3e7a4'] | My guess is that the packages are loaded before \draftver is read in main. The simplest solution is to just load geometry using variables, and then add a switch for \newgeometry just under the draftver that users can comment or uncomment to see the boxes. I ended up using this.
Class file:
\newcommand\leftMargin{1.2in}... | dbd637cd21ba698328a39eb406e1ce9c7d85bbe9b31e8552f7057c1221ba8711 | ['6add4d4e7bb54aaaa1edfd0321d3e7a4'] | I'm trying to make the horizontal scrollbar appear when the table width is less that the total column widths.
I have set the width for each column, but somehow it treats the numbers like ratios. If I define 2 columns with the same width value, the columns will have 50% width.
For example,
columns.Bound(p => p.column1)... |
8fa6f4662f96a7692872eef7eacd3323aa1db96761e8addda2d94f2c4d4634c8 | ['6ae236ca1045435da52520863d3818e8'] | Check your @drawable/icon path. Every app should have app_name stored into strings resource and their own icon which should be stored into drawable folder. Check if it exist. Probably you are using standard icon which can be not required and you should to add your own icon to project.
Anyway I recommend to read about ... | 44c48bc2c76c18258651add1bad745beda3c6e331ab05a1ec0a7b06a3276c67c | ['6ae236ca1045435da52520863d3818e8'] | For my 12 grade folio task I need to find alternate ways of finding the bonding angles in a methane molecule (regular tetrahedron). I have already done it through vector methods, co-ordinate geometry and triangle theorems.
I was wondering if anyone knows of, or can explain to me, any advanced maths that can find the bo... |
338bb221ceea8b3a1b8729fec9bebea6b26dce023b93a27342c91bd908728b15 | ['6b0319ec99dc44ba977b2902e424def0'] | you should reinitialize Scanner reference before scanning input
public static void main(String args[]) {
Scanner scanner = null;
boolean isRunning = true;
int input;
while (isRunning) {
System.out.println("insert a number:");
try {
scanner = new Scanner(System.in);
... | d6f62b63a7a18bfb9d1c25e3b1e0954e7f5070c308c04d54e93b66abd5254ff2 | ['6b0319ec99dc44ba977b2902e424def0'] | Try with this (i've used a string as input):
String original = "Bangalore is a city";
System.out.println("Original : "+original);
StringBuilder inverted = new StringBuilder();
StringBuilder output = new StringBuilder();
String temp = "";
String[] split = original.split("\\s+");
for (int i... |
e161efa1eae6456ad1f23f24deec919ed1b8905eb67ee1606a69df40e4b601ea | ['6b03dd77dde74c62bb0728b21037dc02'] | Thank you! This made me realize that I applied *the limit rule* for *limit of a quotient* when I wasn't supposed to, for the denominator is zero and you cannot separately apply the quotient rule if the denominator is zero. (see property #4: http://tutorial.math.lamar.edu/Classes/CalcI/LimitsProperties.aspx) | 588c353643f90247207b84b99ccfa5f06995657354e591fb497956cb811a2ff0 | ['6b03dd77dde74c62bb0728b21037dc02'] | Is there a easing function that animates slower in the middle, and faster at the beginning and end?
The easing functions I've seen so far are: ease, ease-in, ease-out, ease-in-out.
ease seems pretty similar to ease-in-out, which slows the animation at the beginning and end. I kind of want the opposite of that.
I'm crea... |
607c073e63313d5f28825fe910ad22cb22fa302613ccb764cbc84f6338116210 | ['6b08510451b64a82aa616c083d7f23b8'] | I have the following code sample in VB .net 2008
Public Function CheckPathFunction(ByVal path As String) As Boolean
Return System.IO.File.Exists(path)
End Function
Public Function PathExists(ByVal path As String, ByVal timeout As Integer) As Boolean
Dim exists As Boolean = True
Dim t As New Thread(DirectCa... | b70d792836dffa345c982483ff0e0bc4e054de8fde6323889c6f08c8a23ba1ac | ['6b08510451b64a82aa616c083d7f23b8'] |
I finally achieved the desired functionality adding a new field/column to the Datatable and instead keeping just one value for the entire row in that field, I store string representing the state/style for each cell like ",,E,,,E" so this sample string would indicate that the cell at index 2 and 5 should have an edited... |
34090a11998f6e8ff2298362d7a87056d8cf0c6fb0b5c2534f996a5154f9b9d9 | ['6b091e55f9004027bb26e3c364596854'] | I am developing a feature that needs a variant of read/write lock that can allow concurrent multiple writers.
Standard read/write lock allows either multiple readers or single writer to run concurrently. I need a variant that can allow multiple readers or multiple writers concurrently. So, it should never allow a reade... | a96129ff6b3c3ebf3a0d5358879efae53e88f6775300479daee37156b42dc883 | ['6b091e55f9004027bb26e3c364596854'] | At first glance, my question might look bit trivial. Please bear with me and read completely.
I have identified a busy loop in my Linux kernel module. Due to this, other processes (e.g. sshd) are not getting CPU time for long spans of time (like 20 seconds). This is understandable as my machine has only single CPU and ... |
899db750dd4022e6acd050827473da082e88dc25bfcea9af3b9416bc49bf57f2 | ['6b14a3bc58b94d9e813809761dc33cc3'] | const
expect = require('chai').expect,
// extarnal js files | files to test ..
demoJs = require("../src/JS/demo.js"),
//jsdom stuff
jsdom = require('jsdom'),
{ JSDOM } = jsdom,
doc = new JSDOM(),
//jquery stuff
jquery = require('jquery')
;
// setting $ to global
$ = global.jQuery = require('jquery... | 4c7e02d614d07c39f6b3ea98a304349a2ee0456efeaeccf9e7e0dde188ca5a6d | ['6b14a3bc58b94d9e813809761dc33cc3'] | ok ,
first off all [ $('entry-link > ul li') ] this is not valid selector.
you must use a css identifier.
like [for class (.)] etc..
so use the selector as
$('.entry-link > ul li');
the (.) is important
and test the demo i post . it may sold the problem easily [ use hover ].
visit the DEMO
|
53945dac2d3ddea5736d85802af702802e1589e6b24644379e13126853287c83 | ['6b1999b475ab45bab2d5fca3f3f7a538'] | I am trying to get each frame from the replaykit using startCaptureWithHandler.
startCaptureWithHandler returns a CMSampleBufferRef which i need to convert to an image.
Im using this method to convert to UIImage but its always white.
- (UIImage *) imageFromSampleBuffer3:(CMSampleBufferRef) sampleBuffer
{
CVImageBuf... | f0c6ca859817979475e3d69e4aed935d510ccc6a5c4fcc531380ee6a82e59f5f | ['6b1999b475ab45bab2d5fca3f3f7a538'] | I created an objc project which has the broadcast upload extension added to it. My aim is to send the CMSampleBufferRef which is returned in the extension to the main app.
I want to be able to change and modify the CMSampleBufferRefs in the main app. I cannot do much changes to the sample buffers in the extension as th... |
74b4fb967a0cb4847996f490bc1877a440f92cc0f463a196346eacaa6384e536 | ['6b239d2a1da44b90b00838cd2e49e3be'] | My users need to upload large amounts of files to a site (only HTTP access). Also, no matter how much I tell them to shoot the pictures in low resolutions they keep coming back with Massively sized images. Obviously, they complain that it takes them to long to upload all the files thru a simple HTML form - I'm planning... | 29807fee41eb96bd1c81e5c7cb1803b77aab6d20134fb8eaecf923b091995948 | ['6b239d2a1da44b90b00838cd2e49e3be'] | Creating a page with multiple "like" buttons on it. I'm using their XFBML syntax so when someone "likes" one of the items on the page they can post a message on their wall (default behaviour w/ XFMBL). Sometimes the pop-up shows up but sometimes it flashes away - can't seem to find a pattern why. I have tried this in O... |
dc471214e9bb1c7392b0dd9472a1b7d137b85cd8b279c3938582d5a11c9fa4b2 | ['6b29a18928924a6ca1cb34c41a868791'] | im new to the express and react
Trying to make my first app but i have a problem with operating on my data from express.
Express
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const port = process.env.PORT || 5000;
app.use(bodyParser.json());
app.use(bodyParser.u... | 2b5653844341d893f574514fc2a39374e05a8cc394d5c21c6e9f3fc9cd5ed75e | ['6b29a18928924a6ca1cb34c41a868791'] | What is the easiest way to launch a node.js script from a react-app by using a button?
I've a simple app with two buttons - using Material.io
export default function ButtonsMenu() {
const classes = useStyles();
return (
<Grid>
<Grid item xs={12}>
<Paper style={styles.Paper}>
... |
96ef09cecafdef4949d9af973d517e4fa8134a251007dd3d37f3e13adb1786c8 | ['6b2fd513012d4371853d77e8f3347e6a'] | What are the conditions about the equality between a function and his Fourier series?
In case of pointewise convergence of the series, I know that the series converges pointewise at the value $$\frac{f(x_+) + f(x_-)}{2}$$
But in the points of discontinuity, the function may not assume exactly that medium value, for exa... | 650433e3da6d1f85fd810119ac03ed0c135121a691c7e5ded58d442a332b3820 | ['6b2fd513012d4371853d77e8f3347e6a'] | I have a network topology that looks like so:
Internet--------------------Firewall-------------------------Server
0.0.0.0/0-----172.8.45.140 & 192.168.1.1-----192.168.1.2
I need to configure the Firewall using iptables to port forward incoming ssh connections from my remote client (on the Internet) to the server (on 19... |
5802c949fe352f68629e91ce68c9fcd9dfa60889d79793d3485c298eaa76fad1 | ['6b304dd3534f481088f28d0ff7c33bb1'] | I keep getting this error when trying to use my form to submit data into mysql
"Insertion Failed:Column count doesn't match value count at row 1"
<?php
include 'dbc.php';
$rank = $_POST['rank'];
$lname = $_POST['lname'];
$fname = $_POST['fname'];
$platoon = $_POST['platoon'];
$squad = $_POST['squad'];
$justsuta =$_P... | c66c439dbed0ed1e6cc186cdb4720262a056de08f34047e50a63732f4caf16ce | ['6b304dd3534f481088f28d0ff7c33bb1'] | I am trying to produce an outcome if both rows in two different tables match, but I am having a hard time trying to make it work. Can someone please tell me if I am missing something.. Thank you in advance
**Note: my connections are in an included file and both tables are in the same database
<html>
<p>Pending Do... |
facd67745a7083570feb86bac67fb2475fddd64fa011572b01c186eb9cc2060a | ['6b388306a3dc4db59cba15af2bab01f8'] | Using Dagger in raw Java and have this issue when I try running my code:
java.lang.NoClassDefFoundError: dagger/internal/Preconditions
I am using ANT for compiling (have no other choice). Here is my dependencies I setup for Dagger:
<pathelement location="${lib}/dagger-compiler-2.24.jar"/>
<pathelement l... | cba104bc5f2d994325023c564e2e670cfe8611275c05194de276ed5e935acbaa | ['6b388306a3dc4db59cba15af2bab01f8'] | For an app I am making I track the users location on a map. When outdoors, I am able to get the coordinates of the users position almost instantly and the app works great. Indoors, as expected, does not have GPS signal so I cannot get the location. That said, iOS uses Wifi and various other techniques to show my approx... |
62a6617e5d8773b7b1f73c7bec603342ef67f6832a911d5978f38528b819a6a9 | ['6b3ff8d200a541669d2963d1979039a5'] | If you've started the web server correctly using defaults, your browser would point to x.x.x.x:3000 using the ip of the webserver. Mojolicious comes with a landing page and you can add .html files under public that will be served also. So if your angular app is already built out, that whole structure will need to go un... | c9a9d20fe3fa38afa9aeb86a03c70bd0eb25feb916c864b5a62a9023d8d8b724 | ['6b3ff8d200a541669d2963d1979039a5'] | Here's a couple of functions that may help
space() {
local user=$1
local space=0
local tmp=`mktemp`
find . -user $user -exec stat --printf="%s\n" {} \; 2>/dev/null >> $tmp
for size in `cat $tmp`; do ((space=space + size)); done
local humanized=`mb $space`
echo "`pwd` $user $humanized"
rm... |
3cc9785fc2e0b9ecdceac28ecf34affb46555c799cf170991b414cc0f3d91f71 | ['6b46f121c62d4a4f9823170ca21916de'] | My bad; you are correct. I should have frased it differently; "currently I do say 'I do not want to update all the DNS-records'"; I am fully prepared to set my NS-records. This is easier however as most registrars offer the ability to set default nameservers for all registered domains. | 0ec58a792968649170f2c4d5380e434c4e99200f0b5b8e0409ecb5673ef5a809 | ['6b46f121c62d4a4f9823170ca21916de'] | a hd case seems useless on linux , that happened with me too ; a better solution IF you have an old desktop , you can open iit , unplug its hd and cd/dvd player , and you'll have 2 ports empty , put your both HDs and boot from the old one , and then do your stuff |
19ae70cf78d830322bddd11f6de9ec6871df207d488d7b97e910616001a3e002 | ['6b54c3528be046b3bd2b0c01f54f0202'] | there is one difference in behavior between [] and list() as example below shows. we need to use list() if we want to have the list of numbers returned, otherwise we get a map object! No sure how to explain it though.
sth = [(1,2), (3,4),(5,6)]
sth2 = map(lambda x: x[1], sth)
print(sth2) # print returns object <map ob... | aa62d04c53dddd601bcccd3616ee981d7d99b21b4b261fa938c784d7040ef7fd | ['6b54c3528be046b3bd2b0c01f54f0202'] | i made it work by modifying the print statement to the following:
print("Epoch", epoch, "Batch_Index", batch_index, "MSE:", mse.eval(feed_dict={X: scaled_housing_data_plus_bias, y: housing_target}))
moreover by referencing complete data set (not batches) i was able to test the generalization of the current batch-based... |
b4a3fa3b68e99adbaf1815db9fbfdb435fc33fe8ed39d568bb9435c77b4f2eaa | ['6b5ec82f8b2a4426bc4dad913ff4d62e'] | So, I have a "Open Project" menu item, and I want to set mnemonic to it. I prefer it to be 'e' character from Project word. But when I set it with
openProjectMenuItem.setMnemonic('e');
it sets 'e' character from Open word as mnemonic. Is there a way to achieve what I want?
| cb2931a495932a105031b439326152f6e83e722fabef8f0890ac51481a1dd477 | ['6b5ec82f8b2a4426bc4dad913ff4d62e'] | Hi <PERSON>, Yes the host machine is Linux(CentOS) and on that two windows virtual machines are running. i just want to take my all traffic from first virtual machine which is on left side and in br0 bridge to second virtual machine which is on right side and in br1 bridge. My linux firewall should work as router so th... |
6fc25cafd983e01cd8d190eda895bdfacd2fc06847b1f6e7435ffe9d19ffdc85 | ['6b5fb399c3af4aafaee186a57b41335e'] | First you need to separate what are the most important functionalities of your room booking website. Create a list with each one and classify it.
After you do that, create prototypes of screen or create forms for your users asking what are the best features to include in the app.
I recommended you take a look in the An... | f5242efaaac035a9d81d08ef2328d29369eafbff03b03673a1881d75aabc4df4 | ['6b5fb399c3af4aafaee186a57b41335e'] | To parse your JSON, that starts with "[" use the JSONArray class.
JSONArray jsonArray = new JSONArray (response)
Iterate in the array object to get item by item.
for (int i = 0; i < array.length(); i++) {
JSONObject row = jsonArray.getJSONObject(i);
value = row.getString(TAG);
}
This is a very complete tutori... |
4620ab57db3959da64dd932eb34c86cb8271edb4c95d3762be3ff20f72ecdad4 | ['6b6319b6250545dcad91d5597469d975'] | I need to find the Spherical Distance of two coordinates using Javascript. I am using Wolfram a lot for this project and found this formula d=cos^(-1)(P·Q) [reference: http://mathworld.wolfram.com/SphericalDistance.html]. So I know that P·Q is the dot product of the two coordinates in question. This leads to finding th... | 51cae9982e8dbd18e80525fbd563057628c00bb7d67622ca3abf109dba710365 | ['6b6319b6250545dcad91d5597469d975'] | I finally upgraded my OS to Windows 8.1 and now my XBOX Kinect app that I built doesn't work. Also, none of the example project that come with the SDK and Development tools works either. I have the latest downloads and everything. Windows 8.1 is completely updated too. All the apps run, but it seems none of the sensors... |
66fdcc7d17f1b638e4a466fda33a9a14ccaf58c4bb1ae56a66918a8c3d02f3ad | ['6b635b4151264e6b8d73a93510a02362'] | I need help with the below code for a WPF .net core 3.1 app which uses Refit for handing REST APIs. I am trying to get the value of the AuthToken from the response header. But I can't find a property holds the value of the AuthorizationHeaderValueGetter.
I do see some bugs related to this issue - https://github.com/re... | 3b26bc675e1b754500c7534efdd84f1b9fb915da185173457c4baf4fc7dcdd8a | ['6b635b4151264e6b8d73a93510a02362'] | I managed to get the response header. The return type of the service has to be changed to System.Net.Http.HttpResponseMessage.
[Headers("Content-Type: application/json")]
public interface IService
{
[Post("/v1/Authtoken/")]
public Task<HttpResponseMessage> Authenticate([Body] Authenticate paylo... |
16ef4bf1d642087a0f011615ddc997b33910d91846c9f79c23574870a514b5c2 | ['6b643b535209464f9f1001a244f5c464'] | it looks like something (most likely pg) is loading libxml before nokogiri loads.
try moving nokogiri to the top of your gemfile and bundling again.
if not, as suggested here you can use the libxml version that's shipped with pg (it should not have an adverse effect on nokogiri).
| 8366080da2513f0ebd7bf6a9d7faddce141a7c05476dd46361116d975de87885 | ['6b643b535209464f9f1001a244f5c464'] | You need to connect your resque queues to remote instances of redis.
In order to connect to remote instances of redis with you should add the below in your resque conf:
Resque.redis = "redis://[host]:[port]"
you can take a look at the resque/redis connection relationship here (on github)
Also, it's most likely nec... |
674e5807170763dd3b01901d80a577084a964c14d57469c1a336496e35991343 | ['6b6a61d85bff4727a99d2e847a984cbb'] | I'd appreciate any hint for this problem. I've been thinking a lot about it and I don't see how to proceed. Let $X_n$ a sequence of independent positive random variables. Is it true that $$\sum_{k=1}^{\infty}E(X_i)<\infty$$ when $\sum_{k=1}^{\infty}X_i<\infty$ almost surely? I reviwed many questions in the forum but no... | a537c251d4aa07834bfbbefb5ed8113e6a6a9632c4b41eb7fad372072818936f | ['6b6a61d85bff4727a99d2e847a984cbb'] | @AreaMan what open set you refer exactly? One assures the triviality of the topology because of the density. In fact one can find a representant of every equivalence class (by the relation $a\sim b$ whenever $a-b\in\mathbb{Q}$) in any open interval $(x,y)$ so topology must be trivial on the quotient. |
e13f928315729cc9b478bbee49dfe12e7889c9a09657318e23a75adbd2e45962 | ['6b6f8ddac07c48b7b274ee691bf44323'] | One possibility I have come up with is this one:
.state('A', {
url: "/A",
templateUrl: 'templates/A.html',
controller: 'ACtrl',
resolve: {
transitions: function($state){
return{
nextState: function(){
$state.go('B');
}
};
}
}
})
.controller('ACtrl', function($scope, transitions... | 8cd2dbc1c5c91b11a7670b2c2c93bd39ad7ab7991b0a9e2bcd9800df09f4fcb5 | ['6b6f8ddac07c48b7b274ee691bf44323'] | I've found the problem. It had to do with the activity that was passed to the enableAutoManage(). The activity that was passed was then destroyed, so the client got lost somewhere.
It's a pity that the client has to be bound to an activity, because one cannot go through different activities with the same client, but th... |
5158921e0d84c7bae326357fdfb6f8a86703a9197c62f3a63cc6ca2d70089eb8 | ['6b76d5f355be4615b6e2969757d4ecd2'] | Do not use UI sequence, use only `InstallExecuteSequence`. Otherwise you'll get in troubles with silent installation.
And why you're using `StringData` instead of `IntegerData`? As far as I can see, `Display` column is integer type.
According to the log, something is wrong with this line `viewlist.Modify 6 , reclist`.... | a32f769e0779fe30270677e2a887ee81f0995faa5aec87c8ce890198a40247da | ['6b76d5f355be4615b6e2969757d4ecd2'] | It depends on what you are considering as an "internet connection". If you want to check that you can reach some remote site then you should have some address of it. If you just want to check that the connection is exist then you could check a WAN interface status. |
83ba78c75d798908ec198a41284fcc24f066ea18cb91ad0840221e5ad24720b0 | ['6b794a21e83743cb9c50d477875b86ad'] | I would likwe to replace different combinations of whitespaces, tabs and carriage returns with a single white space.
So far i got a solution that works:
String stringValue="";
stringValue = stringValue.replaceAll(";", ",");
stringValue = stringValue.replaceAll("\\\\n+", " ");
stringValue = stringValue.replaceAll("\\\\r... | 44f9b8c39a466799fda77372517836cd3caa374d4b12ba4d9d9fc45e4b7f874f | ['6b794a21e83743cb9c50d477875b86ad'] | I had the same issue. Maybe you were missing the registry-Attribute. At least this (https://stackoverflow.com/a/13056141/5449497) configuration worked for me:
<webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry">
<webflow:flow-execution-listeners>
<webflow:listener ref="facesContextListener" />
... |
3de50948b611e2588af81c46a5295c5c2954cf7637e2add29689360ec28112bd | ['6b7a882fcde94cf6b71e744451866b18'] | I have domain name xyzabc.com and I am hosting few sample apps at my local machine
Since My ISP blocks port 80, So I have to forward my domain name to Port 81; So I Defined the Forwarding (http://xx.xx.xx.xx:81) in godaddy and I configured 2 subdomains foo.xyzabc.com and bar.xyzabc.com and Used forwarding as (xx.xx.xx.... | a31365cb6d20db160d66f349cfbb2083d5d82a1d51ad52670ef61eac03b52e42 | ['6b7a882fcde94cf6b71e744451866b18'] | Так в том и проблема, что когда я всё это выполняю, то при вставлении на место названия картинки переменной, содержащей ровно такое же название этой картинки, мне попросту выдаёт следующую ошибку expected str, bytes or os.PathLike object, not list. И происходит это независимо от того, как бы я не шаманил с кодом, всё р... |
f450ec2165e44c8884cd7b4badc11683866167566048ce560334fd1dc6f28db6 | ['6b7eb0a35a36438491b380be43ca5985'] | Vale perfecto, soy nuevo en StackOverflow así que estoy cogiendole el tranquillo aún. Es verdad que he planteado dos preguntas en una, pero así es como me lo pide el ejercicio entonces yo la publiqué tal cual. En cuanto a qué línea imprimiría si el número resultante está entre los 4 últimos, esto ya no lo sé, pues no l... | 0a653e60aabc53e97da884c2e4572c10c100f5d9235958280ffd6f1d3c654a70 | ['6b7eb0a35a36438491b380be43ca5985'] | Muchas gracias abulafia! Al hacer lo que me dices consigo que se ejecute el script y veo como el gráfico aparece un instante y desaparece enseguida. Es decir, se abre y se cierra la ventana del gráfico en un instantte. ¿Eso puede ser problema del paquete gnuplot que tengo instalado? |
89995cf619f64de75e90fd2c3a91a48a233ddf7f9f454417d3be9028c3f6e4f7 | ['6b7fc3d4e6414a70952be0f0e0bc1f38'] | Are you working on a local server/localhost?
/errors.php will refer to your base url, e.g. http://localhost/errors.php. If you are working with a project directory (e.g. http://localhost/project_dir/), the path to the errors.php-file should be /project_dir/errors.php.
With this change, the code works fine on my system.... | b100018160a332cf67e05a3a548f3c94d29113205d39f4e09c74ce9a9ff239da | ['6b7fc3d4e6414a70952be0f0e0bc1f38'] | Your data to the post request is not formatted in the right way. Use {'property1': 'value1', etc}.
First try to display the data with PHP, make it more complex when you're sure the connection between jQuery and PHP is working well.
Use Firebug or developer tools to see if there errors occur.
|
97273b4c561d191812456c6ad4f9c125171eac421a3b52f6ad22befb1abb8eb1 | ['6b88e368b852439caa9251a302588378'] | I am trying to implement jwt-authentication using nodejs and React by following https://www.youtube.com/playlist?list=PLvTjg4siRgU0HS3cANo7KZ52Wkud083TL.Here they have used react hooks but I want to implement it in class and without redux.But I don't know how to recieve the cookie in the front end by using axios my cur... | 4cbb124f5d68296a2bc9f34eb70e6def2ecf07624c5f9ee7aa1bb185d12d067a | ['6b88e368b852439caa9251a302588378'] | I think the problem is in the branch. Take the following steps:-
Check if there is the creation of .git file after doing git init.
Check the branch using git branch and a look if you are at
the master branch.
Then check the status of the files using git status it will show if any file is changed.
Then do git add indi... |
6891386799b7b5f25654fdd7ee9c010989c6bce1ee4b83ed40581792ce597387 | ['6b8925bce7214228994839a0eb1130a5'] | I have an iPhone 5s, I have had this phone since 2014. It is pretty beaten up... But it still works. My question is;
If I accidentally restore an older back up on my phone, will I be able to go back into iTunes and restore the most recent back up to get all my current information back on my phone?
| 2404b918e033aebf363dcc3f6f4fb23171905658f2d8fccbfbd8ed5cc676205a | ['6b8925bce7214228994839a0eb1130a5'] | I have made few edits to my question. It's not definitely XY problem, as I really need to drop one packet (I'm developing something that could be called "testing environment" and testing "what happens when a packet is dropped" is one of testing scenarios. The source and destination devices of stream can be considered a... |
150667b425a2a9ad77b942208e17451c875183f00d2764d923380a03a1eab9bb | ['6b9aedfa867d4121815043ddbe51ef4b'] | I'm currently making a calculator with HTML, CSS and Javascript, for practice. I found out that the "built in" eval function did the math from a string. But it doesn't work properly.
I don't know what the problem is. But when i for example do: 11+11/2 which should be 11. Becomes 16.5 for some reason. I have no idea wh... | f2ac2bd8b6dd1740e91dd3017060cf531aeb46ebb6b0566ba8495b1e50a07645 | ['6b9aedfa867d4121815043ddbe51ef4b'] | How would I get the value between two floats. I have two drop downs. Each option has its own value (price). And I want to find the price of all of the options added together from the option from the first drop down to the second dropdown. For example I choose “Gold 1”, to “Gold 3”, i want to plus all of the values of e... |
042bbf8041f549f3948257dc5281a7f4866031c347d192017fb6e957c72ed679 | ['6b9e356a00574756a31cebbb23e290b4'] | Try this:
public class flatten {
public static int[] flatten1(int[][] a) {
int c = 0;
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a[i].length; j++) {
c++;
}
}
int[] x = new int[c];
int k = 0;
for (int i = 0; i < ... | 698ddb94439474c117624142f0b5ff1858800f49bfa7d6e835e50aa601f7fd9d | ['6b9e356a00574756a31cebbb23e290b4'] | Exceptions here would be overkill IMO. Just using if else clauses would work equally well. Like this:
if(input == 1) {
// add
}
else if(input == 2) {
// multiply
}
else {
System.out.println("Operation failed. You need to enter 1 or 2.");
}
Also if you want the program to keep prompting you can just wrap ... |
a78fa6b5f325b6b69a6df19c5f3829b85b8b28137364bf4addb15c6057f3ea0f | ['6ba8d015a294442db0195827e804a6e4'] | How can I create a filter in Ext JS 4 without sorting feature and menu, need just "search" text field. For example with this code:
var gridGroups = Ext.create('Ext.grid.Panel', {
columns: [
{dataIndex: 'name', flex: 1},
],
features: [{
ftype: 'filters',
... | 17442010f7f05490227dbb63afc40d383b3c967869d6a4ca5df8deb03c8053cc | ['6ba8d015a294442db0195827e804a6e4'] | I am using embedded (H2) database with Hibernate and Apache Tomcat, but if I configure relative path in hibernate.cfg.xml like this:
<property name="connection.url">jdbc:h2:file:.\MyDataBase</property>
this path will be like %Tomcat_directory%\bin\MyDataBase
But I need to specify project directory to store data in pr... |
8f1302aca69e8a371f6f81a9fd9bc4f445fd104d353c57e0580a431620efcd12 | ['6bb1ba06e1df4ecd8d40a8ce020bf3ab'] | Lets say I have a word, and I only want to display the first three letters of the word. But the remaining last letters need to show a dash or an asterisk, etc.
For example, if we have the word javascript, then the output should display jav-------, pebbles should display as peb----, or instead of python, the output shou... | 2dc5923e6759eca64955e1186787f976708d5639413d61d321040a263fdf6e31 | ['6bb1ba06e1df4ecd8d40a8ce020bf3ab'] | Why isn't this error trap working well? I wanted to make it where if someone types a word or a number over 1, it error traps and repeats the question until you type in the correct corresponding input. Any suggestions??
valid = 0
while valid ==0:
x = input('Enter 4 digits for X(0 or 1): ')
while ... |
5b59c505402228d4f5e498aff4290335cc0b398480c75e711df3f2ed94d506cb | ['6bc76554f3c1442a9a1fdbbdafd666d4'] | Sure, but by the time the first hash reaches its 5000th iteration, the second hash is in its 4999th, the third hash in its 4998th, etc. In the 5001st iteration, the second hash is in its 5000th iteration and I have its correct output, in addition to the first hash's. Right? | 503b80d3158a5a42cd17e000fa69f2d8a6704283523dc37fd7dbcdec90eb10c8 | ['6bc76554f3c1442a9a1fdbbdafd666d4'] | I have created a teaser based on views but don't know how to add a previous/next navigation. I have tried Views Navigation but it is for node only. The one that I am looking for is similar to the previous/next navigation with numbers in the front page.
Any help is greatly appreciated.
|
6433f446bd22be57671ae620aeae10b0c383d0a947451426baf67dcf485b4c38 | ['6bcd0685af3443f1a0ad2a18a410a5b4'] | I had a simmilar leak with animations. In my case I used
scaleY.setRepeatCount(1);
scaleY.setRepeatMode(ValueAnimator.REVERSE);
for setRepeatCount I used INFINITY before, which also never endet the animation, even not after call explicit cancle() or end(). I just changed it to 1 (its not infinit anymore but I can liv... | 45fec0a61ac2aa6ef9fd6de6db351e2ff29158431cdbf5547d32394c0564391f | ['6bcd0685af3443f1a0ad2a18a410a5b4'] | I found a line of code:
FileOutputStream fileOutputStream = new FileOutputStream(mDownloadedFile, true);
The second parameter is append and means:
If append is true and the file already exists, it will be appended to; otherwise it will be truncated.
In worst case this happend endless because of a retry feature. Nor... |
966904d8b28dc6a5aea5abc29b8be92aba4938dbdd6ca27cc3b9b9929cccc115 | ['6beeb07f43d7417fa3ab7400e77788ab'] | se que no estoy aportando ningún código ni nada de referencia, pero ya que he buscado en internet y no he encontrado una respuesta he decidido preguntar por aquí. Básicamente estoy desarrollando un proyecto muy simple en Android Studio con Java, lo que pasa es que he hecho un layout con cardview y estas cardview tienen... | 591e6c30e8e7078a4d725ca460417a838d2f9549ad7563c4aaf58ebfa8f93d8f | ['6beeb07f43d7417fa3ab7400e77788ab'] | lo que quiero hacer es añadir un label que es un contador, lo que pasa es que quiero centrarlo en el centro del panel independientemente de las medidas que tenga el panel siempre que este este en el centro, he probado en calcular de varias maneras en la posición Y me lo centra bien, pero en la X no, siempre me lo pone ... |
e03fb3b225093ba64e9c5db39172b4086ccf0d0d831e76303092e4ec79f73c98 | ['6c0f577ef6c9467494a51970ab3f9e22'] | I've been trying to create a pyramid command in twitch chat for about 2 weeks now however I'm struggling on how to repeat a word after a specific keyword for example if someone types +pyramid (emote) in chat I want to be able to repeat that specific message after they type +pyramid, im not sure how i can start to do th... | a4f779b0081cef8d323218c83566dd8747d1a0be3106484251e6231682cb1a55 | ['6c0f577ef6c9467494a51970ab3f9e22'] | So I know js2py is a thing but I'm not entirely sure if you can convert an entire folder? I only know how to use python and being able to convert the language would be extremely helpful for me, I'm trying to make a twitch chat bot however moderation commands and configuration is difficult for me and the destinygg chat ... |
13c4ee7d36a5ec6160307fe33bbeeb63c02fb3eda7f655ed6a24aae8fe20c601 | ['6c1109ae2daa4126abcbeabd740abb4a'] | i got the answer,
actually i was missing the concept of timeSwapBuff:
so here is the corrected code for stopwatch
public class StopwatchFragment extends Fragment implements View.OnClickListener {
public static StopwatchFragment newInstance() {
StopwatchFragment fragment = new StopwatchFragment();
return fragmen... | 494e70e713641e6969aa7b9d46ec940f8e837c40b08c5101dacbb2c2e81bfbe2 | ['6c1109ae2daa4126abcbeabd740abb4a'] | i have successfully written and executed code for text to speech.
the code is able to speak out the text written in edittext.
but now i dont know how to convert it into .wav file and save it into directory.
as i am writing this code for api 15+, plz suggest me something.
my code:
@Override
public void onInit(int st... |
1deb47f3eb7cdd621a0afbf1525ec03cba66829adc09c2f92fa0a3aaf12fc814 | ['6c1c8a7bee58463c9bc2e7e42739a7b3'] | I 'm having issues adding in a search widget to a shortlist application. I have included the code below. The search bar shows up, but is not functional.
I am needing to have this to where it can search business names that are included within the application.
<html>
<head>
<title>ChahtaPreneur</title>
<meta ... | fb9d1e3a00801ddc83a4ca13dfc2f5374c4774113d2d83a85bc1885f99ff367d | ['6c1c8a7bee58463c9bc2e7e42739a7b3'] | Does anyone know of a way of possibly making a side panel in a webapp for ArcGIS Online that would allow images to be displayed that are either attached to point location data, or have a URL in the table. I would like to images to appear based on the current extent of the map and disappear when no longer in view on the... |
15324d7750210fe2448e02106dd11b2e1af414c383b6238858b382aec947131b | ['6c1c8bd2e1c141e5a6d90ad461b4c5b5'] | Yeah, what you're describing would be just a virtualized block storage device. That's all a generic Virtual Hard Disk (VHD) is, regardless of format Microsoft VHD[X], VMDK, VDI, et al. But yeah, what I want to do is decouple the idea of a VM running on a hypervisor with the underlying block storage device containing a ... | 5576a89e6b34bc7e76d6fa052a842907cbc0cd6dc21ddbfe05a1f6d2e32ad7ea | ['6c1c8bd2e1c141e5a6d90ad461b4c5b5'] | I don't have a supervisor right now, but I have found Gradiner's Handbook of Stochastic Method in our library and read part of it. I have read review of some stochastic processes textbook on Amazon, Goodreads and some other forum. After reading these, I was not satisfied with the information I found and didn't know whi... |
2de91618ba265d4b262a4643982acaa0bb7c908f50739c9a923923d4b22f8936 | ['6c20c3f9bdb64292b47ab3de17a131a6'] | For reference, a beeswarm plot with variable radius looks like this:
<PERSON> created an example of a beeswarm plot with d3 version 5. However, the radius of all the data points must be the same:
Is it easy to make a beeswarm plot with variable point radius in d3 v5? I did this years ago in d3 version 3 and curious i... | ef1990411c21912fdf30eefdd68b3a8d98b59898eb17520c3d342979dab07aab | ['6c20c3f9bdb64292b47ab3de17a131a6'] | I'd like to make an Archimedean spiral in SVG.
I created a spiral with four quadratic bezier points, but I'm not sure where I should put the control points for each to get a perfect Archimedean spiral:
<path class="spiral"
d="M100 50
C 100 116 12.5 99.5 12.5 50
C 12.5 0.5 75 9 75 50
C 75 83 37.5 74... |
cfb57877badda486d88bc1813daa8f7cd2990eb5d15c216667e2d7fe011153db | ['6c3e95662f1744098ee9ba439f0de69c'] | Consider a countably infinite vector, where each component is a rational number between 0 and 1 (inclusive). We say that an ordering $\preceq$ is Pareto if it obeys the following rule: If there is some index $i$ such that $x_i\leq y_i$, and for all other $j\not = i$, $x_j = y_j$, then $x\preceq y$.
I was wondering if ... | 4301589054fbd7d10a343adbc7f23f49f467ccc9feac6438910457fc42c68749 | ['6c3e95662f1744098ee9ba439f0de69c'] | As you allude to in your question, it might be more useful to consider the equivalence classes of your set, rather than the set itself. $S/f$ has a lot of nice properties: it's totally ordered, etc.
By the way, you tagged this as lattice-orders; if this was intentional, you can prove the following little theorem:
Theo... |
0a312883102d51d292acbf32da6180eaf5ccaeb23a09162ea2c1663522f1fbc0 | ['6c4f56beff7144edbe95f23af756696e'] | Yes, your plugin is awesome. Just what you need to improve and finalize your plugin is that in newer WordPress versions, there are two different tables that contain user data. They are wp_user and wp_usermeta. And in the plugin, it is provided only one table to authenticate. So if this feature goes right, definitely yo... | 4a7e1c57118be4765e0e87f6a8f37e5908c1ed6402f220e6066152b894c93c8e | ['6c4f56beff7144edbe95f23af756696e'] | Thank you <PERSON> I edited the question by adding the link where I got the template. In the .bib file if I add the above mentioned reference where there are no volume, number and pages information, in the reference list it will be added without the year as I mentioned before |
5f9bf5f66d06acde007ca105124b9755a05cf9c1bc6542eb62f81c87e9f791be | ['6c541dd291574e5da6d37d0680c2bd5a'] | Using VMWare ESXi 6.7.0 with Essentials licensing, I would like to backup my VMs to a plugged External HD. Previously we did it with Veeam because we were using a Windows Server, but now with their Hypervisor we couldn't find some way to do it.
What I've already seen:
Veeam - Couldn't find an apropriate solution for w... | 3b2bfe60dcb85685f10158fc090729d601785c595702a41cffa40d973051c4fe | ['6c541dd291574e5da6d37d0680c2bd5a'] | Is it possible credentials from Azure AD to configure a Service on Windows? This account would also access a SQL Server instance on another machine and run commands.
Assuming there's no on-premises Active Directory installed on this environment, but there should be clients consuming this application.
Is this strange s... |
f91aec87634dadde9c65667f5fa9ae40b775cd978119c9bd69d63e8cf97a6eb2 | ['6c59b492b2cd42369706857be5ba7a11'] | I'm looking at new OkHttpClient.Builder() to see whether there's a setting that would allow me to do 'raw' GETs of resources and then get the compressed bytes for that resource in the response. As far as I can see OkHttp transparently ungzips payloads. I can't see a way of initializing OkHttpClient to not do that. I've... | 55407b3cb4e0cc09a895067fcd9641feb18c1ddb5bab79354f9d0fd1a97fe22c | ['6c59b492b2cd42369706857be5ba7a11'] | I have a clone. I want to reduce the history on it, without cloning from scratch with a reduced depth. Worked example:
$ git clone <EMAIL_ADDRESS>:apache/spark.git
# ...
$ cd spark/
$ du -hs .git
193M .git
OK, so that's not so but, but it'll serve for this discussion. If I try gc it gets smaller:
$ git gc --aggre... |
7d9328cbd6415951187ea19be9e520f1c6882171f966e43c4a8c66b9293fa593 | ['6c5e4058deb942afa69842309cf78377'] | Okay, I figured it out myself. I had already created a WCF Client (Service Reference) that worked, and by looking closely at the generated code, I figured out what is happening. It has to do with way WCF wrappes all classes used in the DECLARATION of Webservice methods (so the classes used in properties of the method-m... | 82c1d576a84ee246559b03438e93e78bec9ac6e72bbcb7f0b82de0158cdeb68c | ['6c5e4058deb942afa69842309cf78377'] | I've recently tried to add a 2nd PC to my router, so that i can use RDP on this PC too. The 1st one already works, as it's using the standard methods (default RDP port 3389, etc.)
So, currently the 1st PC is open for any connection, i can just connect to it with the external IP address. No problem.
The second PC howeve... |
ccd58ff10dfbfeca146010559e29345a2f0d397ca43c010e6e4a6f068282936e | ['6c715373a6ea447baa81d41efc2da27e'] | I think that the Combobox data binding process also reduce the performance.
If it possible for you, you should use other control instead of the Combobox to handle a big data.
I assume that your users should know which madicine they want to select, so they could put a part of medicine name in search box. This just a cho... | de74b58b8f090cc9b9c39ead154a1e64c01b04e045956cb4ff33655458f8b5ed | ['6c715373a6ea447baa81d41efc2da27e'] | To bind xml data with GridView, I suggest you to use XmlDataSource and modify your xml file a little bit.
This is modified sample xml file named "XMLFile.xml", added <data> as root element.
<?xml version="1.0" encoding="utf-8" ?>
<data>
<PublisherProperty>
<Name>Channel</Name>
<Value>943</Value>
<Publishe... |
8ed08eb9ae6e4e67503c107e0b4fac7be951f081bac5d9bc915710024e654ba1 | ['6c777cda274246839163a3d1bd7b764b'] | If you want to fix your windows 10 OS, follow This Answer.
Also, you can do this above, and repair the partition. after that, open the Command prompt and type powercfg -h off. it will delete the hiberfile.sys and won't hibernate.
probably it can't be fixed, because it's hibernated.
Edit: i already tried this answer on ... | 1737c6c8eabeb429584bf42a128ee07cba5592a1121cc9444ab2d95c97f328b2 | ['6c777cda274246839163a3d1bd7b764b'] | you can't resize/move the root partition when booted from the partition itself.
if you see a key icon on the Linux partition, boot from the Ubuntu LiveCD and resize the root partition.
also can you tell what partition is the root one? i can't see "Mount Point" on the screenshot.
|
fcc6ddd2a19abc5bb79405eecbde356fc1d30b1be25c2c5babd96b80c66d9fc9 | ['6c7a0c5f0add4ce3a92876ef7744e9f0'] | I am using Angular and TypeScript.
I have used try catch construct for error handling in case of API call.
If any error occurs in try block it is simply NOT going to catch block.
App terminates there only.
I have tried using throw as well.
Here is a sample code snippet,
try {
this.api.getAPI(Id).subscribe( // this.... | 30072b2a9d273f16f7d218d467603d2027106fe9363656107c057f3e46dfd117 | ['6c7a0c5f0add4ce3a92876ef7744e9f0'] | I am using VS 2010 and I want to use MVC 3 Architecture since i need Razor C# and it is not possible in my Visual studio. Currently it is availing me only MVC 2 so C# Razor is not possible
So how do i upgrade my VS so as to use MVC 3 with Razor C# ?
|
954b5207c0fda037a5786a4b3cd485e06be9b0c5cfd7e4a793494283757b9f9f | ['6c7b00d1dcea456dad9e97513f728087'] | This is the code which opens gallery and pick an image to crop it. The change I need is I don't want to open the gallery to pick image. I have already image in my imageview. How can I pass uri of image with intent to use direct crop feature of gallery. what modification I need to do this in below code. Thanks!
Intent i... | a32a65189ba30e48b4b0c909f26388889aa6aaee3d4cfaf5205949beb06c0201 | ['6c7b00d1dcea456dad9e97513f728087'] | This is the code which I use to change contrast and brightness of image. I can increase and decrease brightness of image with that because it takes -255 to 255 value for brightness and I can increase contrast with 0 to 10 value of it but I can't decrease contrast as in this code it does not take -ve value for contrast.... |
c9e94fa213b76a485b5a6452980a41e818a61c1665b7d0caa30d36f95d0a424e | ['6c9369f469ae48ac956d1baf6fcb13ab'] | You could use this to Run WWW on the main thread after your async stuff is done. Or you could use webclient in the system.net to download on a background thread. Dont forget you can yield the download with WWW on the main thread to make it not lockup your frames while downloading.
webclient example
WebClient webClien... | 3df4ab71484ac19b0ec576ae104c9f8b484606aa2b00ae5b197f7073d830fa9d | ['6c9369f469ae48ac956d1baf6fcb13ab'] | A quick google search found this witch may work if you dont want to use WWW. There is also the webclient in the system.net that I have used before but not inside unity, but I know that has a async download, I used it here
webclient example:
WebClient webClient = new WebClient();
webClient.DownloadProgressChanged += O... |
d4d2f3611e0c323b436cf8f67bfe6d90974c3414a2c88ee350c3375d7b04c83c | ['6ca9048312424bc19faf4a4df836a552'] | I'm trying to hook IDirect3DDevice9<IP_ADDRESS>Present or <IP_ADDRESS>EndScene and render my own overlay (which, for now, is just a simple rectangle) on top of everything else in a D3D9 application, but my overlay seems to be appearing and disappearing quite randomly. The drawing code I'm currently using is:
typedef st... | 41ce9be56eb016662a8f51d4585b7b715f73e17149882cd6f0e3e1b163347031 | ['6ca9048312424bc19faf4a4df836a552'] | I'm trying to figure out a way to convert from a string of type wchar_t* to char, but for some reason having trouble making it work. I have successfully done the opposite (from char to wchar_t*) with mbsrtowcs(), but this defeats me. The return value section inman 3 wcsrtombs has this:
The wcsrtombs() function returns... |
6be0fee3ccb4b8ac380430ff4fe3422b7e0009d27ccc1ece895f6eaf5c88d47a | ['6cc1b3cfec68477fba5bcf77917228b7'] | I used NMDS axes of an ecological community as proxys for the community similarity in the different samples. I would like to "quantify" the importance of the different NMDS axis according to the stressreduction.
Now my question is: If I calculate an NMDS with one dimension would the NMDS axis of that be the same as the... | 6f4c31f0d75ead0b576f284128e8395ccf645bddcceea5039af0c44318b55e6f | ['6cc1b3cfec68477fba5bcf77917228b7'] | So I know this must be a filter of some sort, just like you place caps in on power supplies as close as possible to the IC's that you're working with. But I'd like to know a bit more in detail about the function of an inductor between Vin and the AVDD pin of a IC (such as the STM32F303RET6).
In another stack this examp... |
cbb791ea982d5f625dcd992467ec0c1ce5ad9980c81999fd22326966bd538419 | ['6cc8156406d3469182ffe74b83b98898'] | I think it might just be a matter of fixing the case statement...unless I didn't understand the problem correctly:
update my_table
set priority = case when priority = 1 then 3
when priority = 2 then 4
when priority = 3 then 5
when priority = 4 then... | 13c48115219a40fbf5964c5df5de0c8f9d9202da0f88d7c829ce544da70f30c5 | ['6cc8156406d3469182ffe74b83b98898'] | Your problem here is the auto_increment ID field. This is a primary key, since any auto_increment field must be defined as the table's primary key and therefore cannot have duplicate records.
What you could do is create and additional field for your "ID" field that you want to duplicate and then you can insert normall... |
e153379c45ad1c6681458606ea2a7d3973f811d47b36ab97f0c35ad614a69a44 | ['6ceed9ed89084475aeeec297d81b1f8c'] | This problem has been introduced with version 1.4.4 of this library. I did not have time to dig deeper yet, but I suspect this particular commit: https://github.com/loopj/android-async-http/commit/9f73dc722fdf8b564bf1487eef395d0b7e4ae862 to be responsible for this issue.
As a workaround, use version 1.4.3 for now. It s... | b021bb7783a98561ba9c0206a992c621b806c73dbe7fcf45f58c3347837fe10d | ['6ceed9ed89084475aeeec297d81b1f8c'] | After you have created the icon, you should first generate an id for it:
icon.setId(View.generateViewId());
Then, remove the setMargins line and add these lines below layout.addView(icon):
ConstraintSet set = new ConstraintSet();
set.clone(layout);
set.constrainWidth(icon.getId(), (int)(90*scale));
set.constrainHeigh... |
db817e25aaea3a7fb56fdbc85cfddab9fec7488a091765bb39d7086c487a793a | ['6cf34b0306ae4b60adafe4e8ac2db904'] | I'm trying to scrape player data off of https://sofifa.com using BeautifulSoup. Every page displays 60 players and so I use offset query param(for example https://sofifa.com/players?offset=60 shows 2nd page) to access all player's info.
One thing I noticed is that the offset value never ends(i.e. no matter how large th... | eff7da3614e0b95c459c8c831a09500642e5f5d64bbacc9736113739f092f634 | ['6cf34b0306ae4b60adafe4e8ac2db904'] | I'm digging into pandas aggregator function while working with a wine reviews dataset. To aggregate points given by wine reviewers, I noticed that, when I used mean as a standalone function in agg():
reviewer_mean_ratings = reviews.groupby('taster_name').points.agg('mean')
The output looks like this:
Noticed that the... |
aa7eb189b2c8ec47233fc52cea6951e0ff562c8eb586232c47c930f35fd9966a | ['6d03a40c2fd943d6a8168a920c85a5a1'] | While 2.0 projects are generally upgradable to 4.5.x with no code changes, there are breaking-differences between .NET versions that you may run into. Given the scale and complexity of your project I must advise against blindly changing the TargetFramework property and hoping for the best.
While 4.0 executables can loa... | 45b8e19df5aa4a15087cb6abbf462ccb7de7207f4e0b77029c78dbf84b5d6a1f | ['6d03a40c2fd943d6a8168a920c85a5a1'] | Correct. It seems to be building a SQL statement by string concatenation without performing any sanitation. This might be acceptable if all input can be trusted, but given it's a public function I don't think that's the case.
The return true seems superfluous as it never returns anything else - the author might have in... |
e3ca58e4dbc9803f37c50dfec60118e40d7d9239f5498459ec34ab1d871b07d7 | ['6d087944520b443a8534de6935a2cf72'] | I need to sample from multivariate normal distribution with mean vector $\mu$ and covariance matrix $\Sigma_1$.
For that I want to use the decomposition of $\Sigma_1$ into $UΛ{U}^T$ and samle as $\mu + Lz$ with $L=U\sqrtΛ$ and $z$ being vector of independent standard normal variates.
However, I do not know decomposi... | ff0fd06ff4301cf8f44518bbde805984b8c3697a4bc89f7640ab55929fc54516 | ['6d087944520b443a8534de6935a2cf72'] | I've got a problem on my Solaris servers. When I launch a Sun Java process with restricted memory it takes more than twice the ressources.
For example, I have 64 Go of memory on my servers. 1 is on Linux, the others are on Solaris. I ran the same softwares on all servers (only java).
When servers starts they took betwe... |
b286fd222b5499ce0793ababb727b123870ae2cb2482dda4d45e3d11e5a27569 | ['6d0db39134d4410bb5ea7fd0f6f2ec9c'] | I'd like to build a DIY macro-studio at home for shooting flowers and other objects. I'd like to have an option to shoot with multiple light sources - at least 4. My other priorities are low cost and also correctness of color rendering.
I'm puzzled whether should I choose LED lighting or flashes for that purpose. What ... | 011dece4f5c0a42c93b59f1cf56bfffbf53d0956ba0eb9de21431b207c37434b | ['6d0db39134d4410bb5ea7fd0f6f2ec9c'] | Maybe a bit late, but in general it is unsafe to run any serious machine with root as the only user. In this way anyone administering the machine could destroy it with an unintended command. This is why you should always create one or more less privileged (read: ordinary) users.
If needed these less privileged users c... |
d3975557185ce1655a3a3f18536610080b0c7ab770ece8e02041a3d78b51e7aa | ['6d1484ed27d94386a1ad1f6d6d3c8835'] | I am currently going through SICP and I am having a hard time understanding the difference between the two expressions below. Assume we have a list, called lst, What is the difference between:
(null? lst) and (null? (cdr lst))
I know that the first expression checks if the list is empty. But doesn't the second express... | cb66d6b7686f9ec323c5c1bc1316b77137c42bc5f62f904145695cefb553cc8a | ['6d1484ed27d94386a1ad1f6d6d3c8835'] | Assume we have a file called 'teams.csv'. We want to do the operation below to all the rows in the file 'teams.csv' and return a file with the same name but now with only 3 columns instead of 5. And we also need to name our new column 'sport'. In the file '***' indicate that a person does not play that particular spor... |
8eaedda8c7dc208348fb13aa438ea2948fe0d2ed035311ea8cdf7631be568a22 | ['6d2f57314e1040d287f3f8c6b4415277'] | I have a bunch of files that are causing me problems. I am working locally on my Mac and I have files called something.ini.php and they are being shown as text, while my something.php files are coming up fine.
How can I get my something.ini.php to be processed as PHP?
My PHP part
<IfModule php5_module>
AddHandler p... | 541543f4e82d0a5d1c6eb314f9f590f4c9ea5c5a6b6b77c79dd29ddf25a649f3 | ['6d2f57314e1040d287f3f8c6b4415277'] | The reason for the discrepancy is the inter-character spacing (obj.data.space_character, where obj is the long text object). There are 5 additional inter-character spaces in the long text object, and if I add them to the short string length x 6 then the lengths almost match. There is still a small discrepancy (of 0.06 ... |
72ef764af809a748cfabfccb23717c342d50cfe9c2fb68781be89aa9b78e44d5 | ['6d34ca78be4f470490cf694824635097'] | I have an app build for iOS 5.0 and works fine running the same app on iOS 6 crashed on launch.
It seems to be crashing before calling didFinishLaunchingWithOptions method.
It's crashing as bad_excess on
0x00480848 <+0024> ldr r0, [pc, #240] (0x48093c <_ZN6google8protobuf18InsertIfNotPresentISt3mapISsSt4pairIPKvi... | 08a8c40168c7aadc38be8fc58dd318419c2b6f2f5f3fbcd5dede2ff42235036f | ['6d34ca78be4f470490cf694824635097'] | What are the best practices to add sensitive data to the iOS application?
For sensitive data I mean a key or token to communicate with some external server.
Can we compile a certificate in the app, and iOS can remove it on installation?
I feel like we can not really 100% guarantee security of it, but what is the best ... |
94f9a6a79f5d59765b4574cee7f093a935c13ded42634576701dbf4aca21ad52 | ['6d3e3ec3e9344440aa2ba941ebd53e8e'] | The short answer to your question is that Fluent can't handle that situation yet, and you should map it with a .hbm.xml file.
The long answer is that Fluent CAN actually do it if the composite keys of your 2 parent tables are instead made up of foreign keys to 4 separate grandparent tables (GPA1,GPA2,GPB1,GPB2 - in the... | e2b96cb459fc6d0b3aa83556e78ad3aaf90cf70986645d8ee5013dc0db008b33 | ['6d3e3ec3e9344440aa2ba941ebd53e8e'] | A little back-story:
When testing an installer for our C# (.NET 4.0) software recently, we installed on 7 or 8 different machines with success. But, one of our QA members installed and was able to get the application to consistently crash on his machine.
The first thing our application does - before anything else - is ... |
b17651f925223588bdd7af5058b55250bdf0214df764ed32e5036b6b762cb5ba | ['6d4cfaa24262489fbb85a249376feca9'] | I followed some tutorial on how to detect the GPS location and to display it in a Toast message. The problem was that the toast message kept showing even after the application was exited. (It was running in the background). I have tried to stop it by using close(), within overriden method onStop(), onResume() and onPau... | fe09ccadaed4da6d98575c78aa46c09e0849773820781ec60cbbb9ba73540a99 | ['6d4cfaa24262489fbb85a249376feca9'] | I wonder if it is possible to have an EditText on a Bitmap, in Android. I want that the user shall be able to enter some text in the EditText, which shall appear at the bottom of the screen, but also be able to see and click on the Bitmap. I saw similar questions, but I couldn't find any answer to them. Anyone solved t... |
251e4fd87d7d5d532e34ab59fac00fc15f2713432e38dffde3f44a16ff1f4ca7 | ['6d4f2ebb5fcc40c39ba4aa4ab892e417'] | In Kendo NumericTextBox if the value is updated on the component for e.x. in the Plunkr I have a interval trigger to increase value every 2 seconds, the updated value is visible on NumericTextBox only when the textbox is in focus. As per Angular2 data-binding any expression like [value]="numberValue" should hook for ch... | 7a628aeb28cff4c528909b013914f49e267f93a1bda739488c969fe7b95ca060 | ['6d4f2ebb5fcc40c39ba4aa4ab892e417'] | I have taken latest RC0 of Kendo UI for Angular2. It's docs mentions use of Internationalization service. I have created custom IntlService and configured it's provider in my App Module. In the component if I use the IntlService dependency then my custom service is invoked, but the NumericTextBox is not calling my serv... |
ef9ccbae72b5568577e5811a1b0a5ea2b02f71a574b6c1bf40a7e5bde456e007 | ['6d693473a2ad44b1973ba38c729784d2'] | I'm trying to write a simple hello world program in visual c++ using visual studio 2010 prof.
Im getting the following error after successful build.
System Error:
Application couldn't start because stlport.5.2.dll is missing
When I searched about it it is an open source project. So what is the link between these two?... | c283fa86815e72e105c2ffa2d5f68fd4d7bc2fcba67a516bae03cbcb58967858 | ['6d693473a2ad44b1973ba38c729784d2'] | I never did native android programming but as Android uses Linux kernel, the executable format used will most likely be "ELF". As far as ELF is concerned, there is no version information of Shared object stored in the file. So unless the file name itself is saying something like "libXXX.VERSION.so", there is no other w... |
875fef9151e906925f74a7c84fb1fb5360582916bdfd16654264e0093163c335 | ['6d69fa7455c84558878a9b9f00eca32d'] | If it is important that there is an opening bracket you might consider using a lookbehind.
The RegEx to select the position would be something like this:
String s = "{Hi This Is My String}, I Want To Add New Line Here";
String replace = s.replaceAll("(?<=\\{.*)\\},", "\\},\n");
System.out.print... | 8061f46fc8b80d6001e001a73fe54cba4a578b50f6f4c1aa618d459659a0e243 | ['6d69fa7455c84558878a9b9f00eca32d'] | I want to put a non generic class into a List with the type of a generic base class. However the code wont combile with the error that a conversion is not possible. I am pretty new to C# so I might just miss something very basic here or my approch to use generics that way is just no good idea? My code looks something l... |
2c54071e609e38823b39ae6408d6f7802f00640bb67feed2b9403d7c8b0ff889 | ['6d94c2dcaec44856bd1ae659c319ed77'] | I've found a number of questions about how to stop the python-requests package from decoding gzip responses but in my case I would like it to but it doesn't.
The headers from the response are below and I imagine there is something missing that means requests believes that the data is not gzipped - is there a way that I... | 44b8580c74d347d60a562ae0b82c8b0093dd3f13506d76034ae4fbcafddc80d3 | ['6d94c2dcaec44856bd1ae659c319ed77'] | I have a Java application and would like to store off 'the logs as they were when the application later terminated' in order to debug possible shutdown issues. The logic I have in mind is:
Create my own logger class based on log4j
Override activateOptions() to save off the files before logging starts
Leave everything... |
11e90979cabc00e624a2a93fec5fc4e1fa0c24b453ef60be654b480f30327cc1 | ['6da20f3a68e54f04be099cee449052dd'] | Is this the output you're looking for? (your data is stored as factors, which may be causing you trouble).
require(ggplot2)
mydata <- as.data.frame(mydata)
d1 <- as.data.frame(apply(mydata[,2:7], 2, function(x) as.numeric(as.character(x))))
d2 <- data.frame(IB_value = c(d1$IB_value1, d1$IB_value2, d1$IB_value3), size =... | acc9b886cd9e339b0a04a5276f21ade88a47709fc89e7503723c27d6f15656bb | ['6da20f3a68e54f04be099cee449052dd'] | If you try to convert a factor into a number, it'll give you the number of the level in the factor. To convert into numbers, you can first run as.character, which will safely turn it into a format that you can run as.numeric on.
test <- as.factor(c(0, 1))
as.numeric(test)
# [1] 1 2
as.numeric(as.character(test))
# [1] ... |
41f269685fcf434b6b71db45a16dbd520ddb0a62fd47506931bb1939e8262591 | ['6db0cb694a784545be755d1f7ca72120'] | i used
$('.slick-track li:nth-child(3) a img').css("background-color", "yellow");
$('.slick-track li:nth-child(3) a').css("background-color", "yellow");
$('.slick-track li:nth-child(3)').css("background-color", "yellow");
its work but when i try click event nothing happen !
$('.slick-track li:nth-child(3) a img').cli... | 8706bddab342384da1daecc195c52f044215a9b9f4e262d8665fbc3e008b9c34 | ['6db0cb694a784545be755d1f7ca72120'] | i have two type of image upload :
first high resolution :
$specialImages = count($_FILES['specialImg']['name']);
$specialMinwidth = 3000;
$specialMinheight = 2500;
$urlSpecialImages = array();
if ($specialImages) {
for ($i=1; $i<=$specialImages; $i++) {
... |
c2e732246d6409c8840ed84e403301166bc18e8aa5956b749f8a1e8d47bc4e9e | ['6dbbf132dbc846c09eb29045946405ea'] | I got the same issue and I solved it by downgrading the C# version from 7.2 to 7.1 from the project file
which shows an error.
I remembered that I applied some VS code hints which upgraded the C# version. the code hint was to add the paramaters name in the methods calls like
later I tried to add a view and it showe... | 5f3c87066b7ed602429a0d8c9862f9c080e798004e9cac04598b866a61631d2d | ['6dbbf132dbc846c09eb29045946405ea'] | Yes, there is away to figure out each stream content. there is a signature for each file on this planet in addition to extension which is not reliable. it might be removed or falsely added.
So what is the signature?
In computing, a file signature is data used to identify or verify the
contents of a file. In particu... |
370bd7b0d5f106b2ad40540fcdd3f6873b28ea74a83332bb8f532315184a6627 | ['6dc2d65b46cd4eb2863a63a2e9533565'] | Thank you for your answer. My code gets data from the server in json format and creates a loggedUser object. Then I open the tabbed view controler with the correct application.
I would like you to evaluate my code and make any modifications to my code. I would like to learn to write a nice code on this basis | fc8a7959ea267a862c8342c4c0156405370b78504e2bba610ea989e15dee30af | ['6dc2d65b46cd4eb2863a63a2e9533565'] | Desde mi frontend con ReactJS , me llevo un archivo PDF, con base64 , ejemplo , en el body de la peticion , estoy pasando un objeto con la propiedad
{ file1: "data:application/pdf;base64,JVBERi0xLjMKM ->> es mas largo' },
, en el Backend de laravel quiero procesar este archivo , decodificarlo de base64 y guardarlo en e... |
4579fbaaed8e148c69371e0a79b8634b9f4156247fd4e8ad45d58c7c1177fa02 | ['6dc44fa388a545c6bec949a99a3dd3b9'] | I guess I screwed up with a screw's head. This is not unusual and the question answered all over the place, but all existing answers I found were for wood screws.
Mine's a small (diam ~1/12th inch, length ~1/6th inch?) brazen round-headed slot screw that holds the name tag of a brazen bell system, similar to this one. ... | a028b720aa3d9b19d0cb3b053f5b83c9958625e76cee060625a9e6d935505c00 | ['6dc44fa388a545c6bec949a99a3dd3b9'] | You can serve almost any protein medium rare. I wouldn't want to eat poultry at that temperature, mind you.
Cooking the protein to high temperature is not the only way to cook it safely. The high temperature kills almost all of the bacteria in seconds. But a lower temperature for a longer period of time does just as w... |
f8ae6530233a8fab6afd1ebe8cb1dd50009db95df5b598d61d727c9ce9e1d40a | ['6dcbaa7b75c74943adaf1e9635e4ddb0'] | In my WPF application I am trying to open cmd.exe through System.Diagnostics.Process but every time it hits process.Start() it closes immediately and I cannot write anything else to it. However if I call the static Process.Start() it will stay open but then I am unsure how to write to it. See below.
var proces... | e6e51fabeb788080bd418c81ae8c08dc28e6d14efac9d2b0df40720e38d8d4c0 | ['6dcbaa7b75c74943adaf1e9635e4ddb0'] | You can use C#'s delegates instead of defining your own.
For delegates that point to void functions such as in your case, you can use Action.
Instead of declaring and instantiating a delegate (or in this case an Action delegate) you can stick it directly in your SetWinEventHook method like this.
The compiler will ta... |
be2813d8e93d30c112615da55cce8eb34fddacbbb8ffe8c2f51ff455a7f23ab8 | ['6dd299b672f04a4cbbb537a222fa3010'] | Why is there a need of a different function for a simple task. Use if..else.
Assuming that if input1 has value equals value1, then only you have to set the required validation rule for the other input which is say input2.
View:
<form action="/controller_name/function_name/" method="POST">
<input type="text" name="... | 915c173934e34f4b15bef0b25a6b927c6008f4f181ca5dd96d7c88393cd7e31f | ['6dd299b672f04a4cbbb537a222fa3010'] | user574632 gave you a nice alternative. Still even want to use JavaScript you can try below.
Use the jQuery onclick method having the id attribute of the link as selector.
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("#submit_link... |
2fadf8a653595d18166dc1c8a13fd875bb41b4d7bcd151fb38668a2d04ccccb5 | ['6de0c96caea64fde8c693750fcd17195'] | Using a loop and catching user input, it can be achieved:
#!/bin/bash
# Store all list of files you want with extension png
arr=(./*.png)
for ((i=0; i<${#arr[@]};))
do
# -s: do not echo input character
# -n 1: read only 1 character (separate with space)
read -s -n 1 key
for ((j=0; j<10; j++, i++))
... | 24c4845e999c5096e0bdd05673ec8df33aac86772e3bb2a4f7968a5fa3d0b92c | ['6de0c96caea64fde8c693750fcd17195'] | First we can show that $$\binom{n}{k} = \frac{n}{k}\binom{n-1}{k-1}$$
We can see this easily if we're working with factorials. For the combinatorial proof the left hand side is simply choosing $k$ objects from $n$ objects.
We can do the same on the rhs by first fixing one of the $n$ objects and then picking the rest o... |
d7ebdcc2b15b6af59a6752a153968b24766ae654c6d7e3e1fb5fda77d9215366 | ['6de3740ffd7a4bb697c0b3fc56e90eb6'] | psh. O(n) solutions are way better.
Think of it by building a tree:
iterate along the string
if the character is '1', add a node to the the root of the tree.
if the character is '2', add a child to each first level node.
if the character is '3', add a child to each second level node.
return the number of third layer no... | 6389d85989ea81c6ac10ee16aecc8bc73e0e4b8a35c4349ea19538762c9841f3 | ['6de3740ffd7a4bb697c0b3fc56e90eb6'] | if(temp != NULL)
{
struct node* namebox = root;
while (namebox!=NULL)
{
if(strcmp(namebox->Name,temp->Name) > 0) // if temp comes before this
{
temp->nextName = namebox->nextName;
namebox->nextName = temp;
//printf("here"); I'm guessing this is debugging s... |
ba65bf26419c7c31513b51727ac8c190877b779cbdd30d6ab3548021f3ee0c59 | ['6de75d9798d14c6d98953fbb17bc051a'] | The form here show input if a value is verified by the user, therefore a dynamic form field is required:
<form class="form-horizontal" method="POST" action="ajouterProduit4" name="formulaire">
<div class="panel panel-default tabs">
<ul class="nav nav-tabs" role="tablist"... | d938bbe1bd7e235ca9d41d3c9e416956227d040d4c11f71a18b992d54f316824 | ['6de75d9798d14c6d98953fbb17bc051a'] | I need to use a view-based authorization and when i do the following, i get Server error in the application
@if (User.Identity.IsAuthenticated)
{
if (User.IsInRole("Admin"))
{
<h4>Create a new document</h4>
@using(Html.BeginForm("Create", "Document", null, FormMethod... |
e8a23958efc1adc923b6fbb70c0ad07ac0801a6b91cc079378ad8187c730dc20 | ['6dfc8548281f475bbe03c70b3d84d783'] | Well, you have to use the input function of auto-complete called displayWith.
you can find the solution to your problem in this link here
plus I 've made a stackblitz example for you to simplify it more.
Example
to describe the solution:
you have to add to your autocomplete component an input called displayWith
<mat... | c574ab6e97189c00b8f2f0b5bf15e5138ed6a6bb67cb5ffab4da79a6e832663b | ['6dfc8548281f475bbe03c70b3d84d783'] | I'm using Primefaces 3.5 with the jquery bundled inside of it. And i want to apply this small jquery code , it is a simple code , i added the behavior of the tab button to the enter button in the keyboard.
Here it is my code:
//<![CDATA[
$(document).ready(function(){
$(":input").keyup(function (event) {
... |
843d09f6631a02e79ac6523b11d85918ab6ba036c6d71b4df12097ab620317cc | ['6dfd090e59444e39922a8106f1ebabef'] | Now I see where was my mistake. I feel a bit silly asking, but I really didn't quite understand - when you add rows 2,3...n to column 1, I understand why the first number at the first column is n+1. But why do the other numbers at column 1 become n+1?
The second number at the 1st column is 1, so you add the numbers of... | 234f5928e8033b11ce099ef75cc7bab0b4e07d831b101d7c414dc898c00cfb65 | ['6dfd090e59444e39922a8106f1ebabef'] | I see, thanks for clearing it up!
Just to make sure I understand the way to prove this-
If A=0 then everything is possible in the kernel, which means B is also possible, and therefore B is in the kernel.
If B=0 and A is not zero, can I say that the kernel is only zero, which equals to B (both are zeros...)? |
a7dbd79b2e260bfb1a9a92107bbbd3356a16a50615d826118297245cbd73b4c0 | ['6e02692b0ec74eb2883ebcecd97ad721'] | This sounds more like a vue issue than a Umbraco one. You should be able to do it. After a quick google there is a working project here:
https://github.com/ionic-team/ionic-vue-conference-app
Have you tried explicitly installing packages with version numbers that work, e.g.
npm install @ionic/vue@0.0.4
| 2b2ccaae3ff14723bd3be72369c40240507969e2bdaa096c03043dfc5d3d8cf9 | ['6e02692b0ec74eb2883ebcecd97ad721'] | You can also see where the cache is with yarn cache dir.
yarn cache dir
Running yarn cache dir will print out the path where yarn’s global cache is currently stored. When you do a
yarn cache clean
You can check the folder actually cleans. If that fails you can manually delete it. yarn cache documentation
|
2a4474d9b8a427967ef2c9a26effa223032bb24d1c1d5456e7d4fcba32c18870 | ['6e36c898e9784885bebfcf2cf157db9b'] | Do you have selenium drivers installed for the browser you want to test with?
Try with
webdriver-manager update
It will take care of installing the drivers for you. You just need to run it once, if you call it again it will see that the drivers are already installed and will not procede.
| 4fad7974b53f07ab3911f0794d1713ea3697c115a550b4a1c1590e0e1e45a10c | ['6e36c898e9784885bebfcf2cf157db9b'] | I can see two possible issues here:
Are you sure you are sharing the $scope of your controller with the dialog?
If the div creating your dialog is not accessible by your controller, which means it's not a DOM node in the subtree of children of your controller root element, it will not display the properties (and wil... |
f680a05de065e3987bdd75b1f24b3534f4d710537869254242bb31d2d26cd8cf | ['6e3771844b504801b092c3a7790b9b16'] | There's a bunch of questions that are phrased similarly, but I was unable to find one that actually mapped to my intended semantics.
There are two lists, A and B, and I want to rearrange B so that it is in the same relative order as A - the maximum element of B is in the same position as the current position of the max... | 80c405dd6141c21ce805c7be2a4886415ebcf2e55724fca532b14db90facb4ec | ['6e3771844b504801b092c3a7790b9b16'] | I've used lsl and lsr a bit in THUMB (an instruction set for ARM), and the way they worked was tied to the number of bits in the registers.
In my particular case, it happened to be 16bit registers, but that's not overly important, and for the purposes of example, I'm going to pretend that they were only 4bit.
Basically... |
28fd93ea7fbeb58d1b35c7f482bd5af1742006fbf3675e5d791fa1f595c333f3 | ['6e3ce907e1ff4c50b70d7aa508aa90a6'] | The question is fairly simple. There is a set {2,4,6}. The expected answer is all possible permutations to get the number 6. So, the answer will be:-
{ 2,2,2} , {2,4} , {4,2} , {6}
What I've tried:-
I'm trying to approach this problem using the popular "coin change" question. But in coin change permutations are not the... | d5fbaf6fc54057a33ef6568bff29581ec3f0280ca57601e1f74b08351447b9f5 | ['6e3ce907e1ff4c50b70d7aa508aa90a6'] | I got the solution. It's pretty straightforward. The code is commented. It might require a little bit of tracing.
#include <bits/stdc++.h>
using namespace std;
// Function to find the total number of ways to get change of N from
// unlimited supply of coins in set S
int count(int S[], int n, int N)
{
// if total ... |
40dd76ea6a216e3bafc985802dca7eb52576da47a697c6b7361152e099dd97ad | ['6e3fa99e9de241abb89ab4ff6f577b04'] | Lets imagine this architecture:
model: get record and joined records
controller: iterating through all the records, and doing some calculations, statistics calculations even formatting dates etc
view: show it
is it good? I guess not. But model only may deal with data retrieving - not formatting. Controller cant do tha... | 7e1d960ac8d37ff70de99e6b4133276d5ac048474f79368edfdd4813bd04389b | ['6e3fa99e9de241abb89ab4ff6f577b04'] | so, I want to do a "mobile" friend view of my site. Its liquid designed already, but mobiles need definitely different look. Now, how to detect if I visited it with mobile (iphone, ipad, android)? More specifically, I imagine it as if the screen width is smaller than a value (dunno that value), then thats considered a ... |
cf0efc6a6f715ee183df6fd38074949d616ca877c275ffab7fb780b2ef893340 | ['6e452657a0db4fbf93cf352c1f227edc'] | i would like to add a recaptcha to my web form and have been following the instructions on the web but i just can't get the image to display.
i followed these steps:
- downloaded and unzipped the recaptcha folder
- uploaded recaptchalib onto my root folder (server side)
- made an account on recaptcha site
- copied the ... | 2cb9b10822f0738c7f1c6e011ed3dc35dafc2a34a45fe0d9f67db1b1473df7e5 | ['6e452657a0db4fbf93cf352c1f227edc'] | i'm looking to resize my images in my image slider automatically to fit the browser window while keeping my image size as low as possible. The images itself have a fixed width of 800px but when the browser window scales to more than that the images don't scale along. They stay a fixed 800px. Is there a way to resolve t... |
af3395a22be5dd043c35357c6f969df3fad6879eb4b8891dc0a12c4af3d1948e | ['6e60f0624e3b4f90894655029b9da8a6'] | <PERSON> vou passar um exemplo bem simples de como disparar e ouvir eventos de diferentes contextos, será descrito o que fazer em cada contexto.
CONTEXTO - Serviço do componente do botão verde:
import { EventEmitter } from '@angular/core'; //import necessario
public eventoEmit = new EventEmitter<boolean>(); // seu emi... | a3f686ef0fa08930f3d3173bfd45228fe1c68f0ba92544243a36bcfb14fea750 | ['6e60f0624e3b4f90894655029b9da8a6'] | Para isso você deve instalar um pacote de extensão que faz esse tratamento do CORS.
No console do NUGET digite o seguinte comando:
Install-Package Microsoft.AspNet.WebApi.Cors
Em seu arquivo WebApiConfig coloque o código config.EnableCors(); :
public static class WebApiConfig
{
public static void Regis... |
eccf4079942fac0d3ec0fc5e1d5b28bcabff9da8389614ca7af6da62b17d647b | ['6e70435aa22e46ec8adc5087527ef17b'] | Maybe you are not setting the correct security domain "quark"? This can be done using a jboss-web.xml or using the org.jboss.ejb3.annotation.SecurityDomain annotation.
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst... | ee8d5979bd9c4ba7cd1c1f4ba25a72dd2167e7ceed13a140913e9246e020e14c | ['6e70435aa22e46ec8adc5087527ef17b'] | In sitelets it's rather easy to create links to other endpoints with parameters. For example ctx.Link(EndPoint.ShowUser user.id)) creates a link to the ShowUser endpoint with a specific ID.
Now I'm migrating some code to the client side to dynamically update a table once a new item is created; the table has action link... |
f5775d70f770e55a0aab49143bcd01895d098c8a08fe5b85a232aac10f088cdf | ['6e75212dcb094b5fafcc567c27709348'] | The idea is to partition the nodes into groups of 2 or 3, so that any two nodes within a group are connected by an edge. For example, try grouping the nodes like the following (the nodes with same color are in the same group):
Can you argue from here that every group can have at most 1 node colored black?
| 673407381a1fd341ceccb7bd6da265b66a213aab34afbf1618e82c4f61b7725a | ['6e75212dcb094b5fafcc567c27709348'] | Direct element-chasing:
If $x \in \cup_{n=1}^\infty A_n \setminus \cup_{n=1}^\infty E_n$, then $x \in \cup_{n=1}^\infty A_n$ and $x \notin \cup_{n=1}^\infty E_n$. So there is $N$ such that $x \in A_N$ and then of course $x \notin E_N$. Thus $x \in A_N \setminus E_N \subset \cup_{n=1}^\infty \left( A_n \setminus E_n \ri... |
68cab65e887728cd1b19d1656de7223e684d5389ac0f5b8ab6be18d91e5a702d | ['6e91934459244313a4f37b80e7fd9545'] | Each project in Visual Studio has a "treat warnings as errors" option. Go through each of your projects and change that setting:
Right-click on your project, select "Properties".
Click "Build".
Switch "Treat warnings as errors" from "All" to "Specific warnings" or "None".
The location of this switch varies, dependin... | 2acc0f7545b3f9b6a964f8f3d6cb0b57f9096a3631e4e7e5011c718e6ce26bb4 | ['6e91934459244313a4f37b80e7fd9545'] |
RESTORE cannot process database 'StoreDataBase' because it is in use by this session. It is recommended that the master database be used when performing this operation.
This tells you what you need to know. You cannot perform a restore on a database when you're using it in your session. Use another database - master,... |
8d795553e74f51ac3e39479bf855ec65b316914f71103effcd7978533d02e89e | ['6e9a7ebb346f4952bf42c1fae18b2066'] | I'm trying to write a jQuery function to take the visible h3 tags' text and append them to a side menu. I've got the text appearing in the menu correctly, but I cannot strip, then wrap them in the tags I want.
I have included the code below, can anyone see why the wrapping is not working?
function populateRightMenu(... | 3c805249c4dfb114376544f46d7b6bf1fb1dd3d1c8978203c1bcfa2376f5f3b4 | ['6e9a7ebb346f4952bf42c1fae18b2066'] | Hi I have a navbar as follows:
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top back-to-top">
<div class="container-fluid">
<a href="https://www.google.com"><img class="logo" alt="logo" src="assets/Logos/ntc_white_basic.svg"></a>
<a class="navbar-brand" href="index.html">Test Navbar... |
4c737ad5a68e301ca58ed851e8638610ceb622755f592ab9a772f5140e4227d6 | ['6e9ab858c474425fa47925c72828cdf4'] | Hello guys I am having problem when I try to run my discord.js code its not showing any out put it just shows this when I run code(I am using VS Code)
On running on vs code (with the Code Runner package)
[Running] node "d:\Red\Bot Devlopment Javascript\Src\index.js"
[Done] exited with code=0 in 0.085 seconds
On runn... | b00feec2e27b054404c79759876e26863edafd762efd162baaffdcf16c95827e | ['6e9ab858c474425fa47925c72828cdf4'] | Hello everyone I am making a discord bot in discord.py using python 3.8. I have make some cogs and its not showing any issue bot whenever I type the load cog command or unload cog command its shows command not found. Only one of my cog is working another is not working please help me.
My Bot.py(main file)
import discor... |
19cb13bc9f1cf568529f88ee62a714fc8a153be54950b75317d8dbb36d71a70c | ['6ebc63b38a814771a05ed684b0483f13'] | you must using Uri.parse(namepath.getAbsoultePath);
this is my code and actually working
File root = Environment.getExternalStorageDirectory();
String location = "/" +textTitle.getText().toString()+random+"mycarta.png";
String path = root.toString() + location;
File imageDir = new File(root,location);
and use imageDi... | 3c1cb6beac3423d418a7a5c2c50cfc65a1104cd8f4b647fc21c250ed1e4641df | ['6ebc63b38a814771a05ed684b0483f13'] | im trying to set hidden widget ListTile if SharedPreferences Getting Null Data , i have try to using Visibility and i getting error like this
type 'Future' is not a subtype of type 'Widget'
My Widget build(BuildContext context)
Widget build(BuildContext context) {
return new Drawer(
child: new ListView(
... |
b8ef69f2e69625aa8190d0cf103b31aa959a4c2d9cc6a2246acdac9da5200388 | ['6ee26401976942daa0747a41c83bb929'] | In case anyone lands on this (like I did) because it isn't working with LESS, here's what I had to do:
.field_with_errors .form-control {
&:extend(.has-error .form-control);
}
.field_with_errors .form-control:focus {
&:extend(.has-error .form-control:focus);
}
When I tried it with:
.field_with_errors {
&:extend... | 61e447cb97ea872248ab44938275189ab1a33d4925a9dfed5d82ee698f4071d3 | ['6ee26401976942daa0747a41c83bb929'] | If you are only getting this problem in the simulator, then it may be that you need to restart the simulator. I've noticed lately that the simulator will sometimes cause all HTTP requests to error out with that for no reason and only restarting it clears the issue.
Also, I have found that some HTTP errors can end up wi... |
15d0f39d1f1090b6df16a871c9fd4fc461d8dec6fac610460e941a4f9ccc74c5 | ['6eed158d99ff4a6fbc38a96fe0de0686'] | The answer is no, since the code was signed using a certificate that sooner or later will expire.
Using a CA code signing cert (example: DigiCert.com) will maintain the signed files valid for life when adding "timestamp" to sign the jar file(s). Any OS or browser will automatically trust the source (your organization)... | f50f734235ad227231fe8b36990ad612bdb824dc9965c05683b74153c836ab5f | ['6eed158d99ff4a6fbc38a96fe0de0686'] | A self signed cert and a CA certificate are basically the same thing. They all need the a CSR and a private key in order for them to function.
Replacing the cert on Apache is very simple. Just go to your httpd config file and point to the new Private key, Domain Cert, and Intermediate Cert. Restart the service and fin... |
e451a5bccb1526fe25d718049b2b7cb79f30c1ccd95e7fd9302515582d48d7a7 | ['6f0aed970288482284a29276523c68e6'] | i am writing a programme to access the array list of form 1 in form 2.in following programme i am able to access it but in form 2 the array list (of form 1)that i am accessing is showing blank.what can be the reason for this?
The programme for form1 is as follows:
public partial class Form1 : Form
{
public ... | 214073dd05b7299e320a0d2277ecf29c7bee234cf735050b8f1e9f77b19b11d0 | ['6f0aed970288482284a29276523c68e6'] | I am working on a GSM based tracking device . i have successfully able to plot the approximate location on google maps using Gmap.net library for windows application and google maps api for android application.I want to mainly do the tracking of the Rail coach .with my current device i gets the approximate location nea... |
db8a48f9fc93dfa20aea352900b26b39fb18d7cf7b5c3f6b884750367d07ec25 | ['6f0af1b4a93347418bfad76dd004bcef'] | I have an ASP.NET web form application using 4.5.2 framework. Chrome's latest update seems to eliminated the ability for my application to clear the cookies. I know the SameSite attribute can be added to framework versions 4.7.2 and greater but I am not having any luck finding anything that works for older versions. Do... | 50266a200e85719eb1c9575d597bec1c532256dc08194e7cf41574567125da12 | ['6f0af1b4a93347418bfad76dd004bcef'] | I have a panel on a windows form. A form is loaded into the panel based off what button they click. One of these forms that's loaded into the panel has a tab control. The background of the form is an image and every time i switch between tabs, the form flickers. When I set the background image to nothing or a solid col... |
f46df1178b7303e6e44a3059789af17c9a0ad22540ea41ea501b33596cf31a91 | ['6f18e2b52bae44998af531f4f6f4c9f8'] | I guess my main beef is that someone quickly scanning my resume will assume I’m a student with no work experience. Of course reading further will correct that assumption, but I’d hate for them to not read further. What about something like, ‘staff research assistant? Not sure that sounds any better from a professiona... | 819462fee54323059769381005b0b5845cad32aaa957dc78b139bf83809c8729 | ['6f18e2b52bae44998af531f4f6f4c9f8'] | I had a problem at one point with finalizers going off sooner than expected, because I didn't fully understand the interplay between finalizers, the garbage collector, and when a local object is considered collectible (hint: it's not at the closing curly brace of the block). If your code uses finalizers, you may wish t... |
dbc0a9ff3d0bf1bc54fc066dac1d4ca2267d0bb8da44c3eab1891be4b3d59ded | ['6f444d60410949d79d6d11bfb4a52926'] | This was a theme issue.
The user had changed his Windows 7 theme and broke those images. I noticed that an MSE popup was not the color that it should have been and the sticky notes that he had on his desktop were white in the middle when they should have been yellow all the way through.
I set the theme back to Windows... | cbe6737dd26573b75df9afb7d93873e5a86bb15249bd90cb6ec856ec75f5d433 | ['6f444d60410949d79d6d11bfb4a52926'] | I can send a bunch of documents as attachments and have Amazon convert these documents and send them to my Kindle. I do it all the time for .doc and .pdf files.
But what if there's a long email or article I want to read on my Kindle? I don't want to have to open up Word, copy the article text to the document, save it... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.