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 |
|---|---|---|---|---|---|
826e38cfff175ae8539045b1ad037052524c028ef27308cb00d8d8f534b20bdb | ['54793383d74d4dc5b04d031859eaeee7'] | You need to provide a user name and a password if you want to connect to a Windows server through VPN using PPTP. Has the provided user name any function?
Let's say you use the user name "<PERSON>" to connect to the network using PPTP VPN. <PERSON> doesn't have the rights to acces the folder "B" on the network. Does th... | a80a7f43de35926ee3e497c25b00d117f65d61aa3abef74b8e1e66e2c5e82867 | ['54793383d74d4dc5b04d031859eaeee7'] | The resolution of animations on my device look good in blender, but after rendering them the video quality drops greatly, even when increasing the sample rate. The first few frames, mostly of the still image also do not show any flaws, however, a few seconds in there's a great resolution drop. How can I fix this please... |
df5fda4c529bf051e7c7a77699be8e9d0564be2f20b42b8ce0a631ed4bdbb0be | ['54b2934577d4447f81d2983f7a4ba273'] | Activity A:
pass data to activity B
Intent i = new Intent(getApplicationContext,ActivityB.class);
i.putExtra("DataA",dataA);
i.startActivity(i);
retrive data in ActvityB
String a;
Intent i = getIntent();
a= i.getStringExtra("DataA");
pass data in actvityc from ActivityB
Intent i = new Intent(getApplicationContext,... | ecce42912d7d8c4083889d5ec2a5a890f9eb4a35ef4a465d58cc8223a1d2be2d | ['54b2934577d4447f81d2983f7a4ba273'] | try this convert bitmap to string and pass this string to c# server
if(fileUri1 != null) {
bitmap1 = BitmapFactory.decodeFile(fileUri1.getPath(),
options);
ByteArrayOutputStream baos1 = new ByteArrayOutputStream();
if(bitmap1 != null) {
... |
ded6abccf68bf41dffc2308594638b35e3b3d4706a3d4a00ce2175d39c7dd6ab | ['54b3ae2272594f119227bdfb61ac3311'] | TL;DR:
decide whether or not you need to conjoin/compress the files at all
don't implement something like this yourself
use .NET's ZipFile class
When you re-open the file as a stream, you could use the stream's Seek method to go to the desired position (which you'd have to remember somewhere), and then read out the d... | 2161294714ae34b49e0d26c9f9006b6d20093bc3767aec22416e82fa3d8168a2 | ['54b3ae2272594f119227bdfb61ac3311'] | Thank you for clarifying. If this is so, is it possible this entire passage says "Then commanded <PERSON> over the man, saying, Of every tree of the garden food *shall* you eat. Of the tree of knowledge of good and evil, you *should* not eat from, because in the day that you eat thereof, by death you shall perish"? |
47bcf50d51a2e1437951fb6bae21e94c86b3b604cd225c1fb96a859fbf106060 | ['54bd0af52b204b959177b3405b87d2f1'] | Im working in and Ember App that use a API build with Express js, for development i just run my express api and then run ember server --proxy http://localhost:8000
for example i could be whatever port, so now i have to deploy that to a production environment that im working on, i planing to use nginx, but what i do no... | 1e813d670d9ae547d774befcd7c08ac74b1f61710668eb5638e97d0c7d0dba30 | ['54bd0af52b204b959177b3405b87d2f1'] | im validating a form with form validation io, what happends if that im cloning de entire form before submiting via ajax, if i got a error in the back, a load a error msg with a button where if clicked load the form again, but the validator not loger working once is loaded.
Here is a part of my code, if someone could he... |
ee33479ea580a35beddb730c59bb749a63c70c9b69adfae85d64a54ab8fc8273 | ['54c2cffa31834da8842eb7a8686bc008'] | I have a column in database of length 512.
It is going to contain multiple email address separated by ";".
How can I validate its respective variable in the entity so that all the email address are valid.
List will not work as I need to persist it in the column. Here is the data:
@Basic
@Column(name = "CC_EMAIL_ADDRESS... | e59cadf945350bd97b7d74e5eaf604a237903695362988fac471b2e30a5997be | ['54c2cffa31834da8842eb7a8686bc008'] | I have two processes and one queue.
First item is already picked from the queue by one process but it is not completed or in exception.
Can we directly pick second item from the queue by another process?
What is going to happen to the first item. Will it be in exception.
|
b3923c2acc83b793f58a31960a96056403cdc929a427332b43facb7c66d045a2 | ['54c707a9d0794da4ba234fc4af3295b9'] | Ok, so it's not looking like there is a way to do this with just HTML. So instead, I decided to use JavaScript to handle the issue.
I removed the <a> tag from around the W3 logo and added an onclick JavaScript function validatePage(). So here is basically a template for an XHTML Strict page that still allows you to inc... | 29e8dffe7f5370e4109e942c35c5e8cce6e612315cce22b0a72f4548e06502db | ['54c707a9d0794da4ba234fc4af3295b9'] | I agree with <PERSON>. I don't see any issue in having all of the information in the same table.
The benefit to having it all in one table is that you won't have to do joins, etc when running database queries. Which means your application would run faster.
|
c9bdaaee9ddc56dd91c55456d9c207382a1794b5c9ee2818c293b470c8aaf9fd | ['54c8991ecfa5450282adee7eecfe5c8d'] | I building a react native app in typescript. I am using a drawerItems component from react navigation.
<DrawerItems
{...this.props}
items={items}
itemStyle={styles.drawerItem}
labelStyle={material.body1}
activeBackgroundColor="transparent"
/>
I have set my lint on very strict for learning purposes. And now ... | 02e013aa32423b78719ee21144d71aa4eaa17633a3828875621fa9fa12ec8631 | ['54c8991ecfa5450282adee7eecfe5c8d'] | I figured this out. I debugged the props and put all the childs in the seperately.
The finished code looks like this:
<DrawerNavigatorItems
items={items}
itemStyle={styles.drawerItem}
labelStyle={material.body1Object}
activeBackgroundColor="transparen... |
2eefdbd4e28befafe459b50cbe186573fd8abce8ab3839e6460a98dfb07fdf08 | ['54ce4ef81d044a57b455dc8a6069f145'] | The rateand total variables you defined are arrays of objets, not objects. So you cannot write:
total[d.id] = d.total;
I think what you want to do is:
total.push({id: d.id, value: d.total});
One simple option might be to only the data structure, and to switch between between using total
| 8113487c5d2a4fbe3efbc678f52e84a7c21ca76bbf2ab386e8c0082f5f087413 | ['54ce4ef81d044a57b455dc8a6069f145'] | What exactly are you trying to achieve?
It doesn't really makes sense to add an attribute to store the isListedIn list on your nodes just to retrieve it later, as d3 already does that for you. If you want to get the data for a DOM element, you can use either d3.select('#el').data()[0]['isListedIn'] or d3.select('#el')... |
20118db862798bdccebe098c3942b39f8940a0ece50b3a7ec768ae5d79080661 | ['54d28de5348f47e3bbd8bfbc3e964341'] | How does an x86 CPU knows which Interrupt Service Routine to run based on a hardware interrupt? I mean, is their some kind of mapping between a hardware interrupt number and a particular Interrupt Service Routine. If so, what is this mapping called and who or what loads it into memory?
| 2eab408dfbac214a861260cac0b47a586b4c81a146fb9411aba9755d6f5a5e87 | ['54d28de5348f47e3bbd8bfbc3e964341'] | For example, a key on a keyboard is press causing a hardware interrupt to be generated to the CPU, the CPU sends an acknowledgement to the interrupt controller. At the stage of the interrupt process, how does the CPU knows which interrupt service routine to run based on a key press on the keyboard?
|
c1663e0cae1be2fd4ded0752d484d8c7eecc98b820370658511dfd493a5437d1 | ['54e434e117c24662803bf010fc682607'] | i have a really simple question what is one of the ways to only fill a DB with data that is not already in the Table ?
I am currently trying to implement a Project which gets data from a SharePoint List and stores it in a Table on my DataWarehouse, and i had to realise that if run more than once, it keeps filling the t... | b79a4f3f654022dbf25d87e419253b459dbb387fbd29d891cb2d39b96eaa3a3a | ['54e434e117c24662803bf010fc682607'] | Hi there i currently have a text like the following being put out on a Report Table:
Done:16 of 16 Processed; 7 Errors.
Now i want every row that has anynumber of Errors higher than 0 to be Red (Coral)
the simple idea would be something in the lines of:
=iif(Fields!LastStatus.Value like "*1 Errors*","Coral","White")
... |
a05cb5d4f6c77c0f51d1667a8b0512f78f8862329ed6ea13130d69904611e9b1 | ['54f95329e41d42adb3bd838579e686b2'] | I'm developing NodeJS app using typescript and tslint and i'm using an external library for Google Places API that doesnt have any DefinitelyTyped so i wrote it myself but i ran into some situation that on a callback there is error and response properties and the error property sometimes return an object or string.
i t... | d62d97d9dda092e14b5ce969cdfb302e905b8f3e6774a144d818e9fb73a6be8f | ['54f95329e41d42adb3bd838579e686b2'] | I'm trying to get a list of tasks that running on my ECS environment from AWS API, but I'm getting the same error all the time:
User: arn:aws:iam<IP_ADDRESS>[my_id]:user/[username] is not authorized to perform: ecs:ListTasks on resource: *
{
"Version": "2012-10-17",
"Statement": [
{
"Sid":... |
b19f88b56bf3d107607a0e2102a3582fd73f0a7c9b58f97981f026daab705861 | ['5507f4a356594b139756403aecc05376'] | El detalle es que no le das medidas en concreto a .bg-registro. Si se entiende que deseas que ocupe el 100% de alto (aunque así como lo configuras no va a darte el resultado que esperas), pero de que? mmm, no sé, pudiera ser de otro elemento anterior o de la ventana o el body, etc. No especificas. Tampoco le estás dand... | 65627826b835b82a599cc36446809703f11b4d2b307d94b9b371706a39be12fe | ['5507f4a356594b139756403aecc05376'] | En efecto, el fastidio y el cansancio puede impedir ver las más sencillas de las soluciones, basta con tomar un descanso y volver al paso...
El problema está al definir el directorio del archivo de conexión, al nivel del archivo donde se realiza la consulta ajax si es "inc/conexión.php", pero al nivel del archivo "img_... |
9aaf56fb70d3815d491ce78270a367ae6b8b080f5e85727a97b4959d9c912f4d | ['550c37379787451d85cff65075d7ceac'] | Kendall tau rank distance is a metric only if you compare ranking of the elements.
If you perform <PERSON> function comparing elements you will find cases where the triangular inequality does not work.
Example:
0 0 0 10 10 10
and
5 5 5 0 0 0
scores 9 (using <PERSON> comparing elements)
While
0 ... | d0547556e434421c03113273e7b2243dc418f4f2599eb9a9fde8a61b38e12835 | ['550c37379787451d85cff65075d7ceac'] | So I'm almost done an assignment involving Win32 programming and sockets, but I have to generate and analyze some statistics about the transfers. The only part I'm having trouble with is how to figure out the number of packets that were sent to the server from the client.
The data sent can be variable-length, so I can'... |
214ed9f754528f40a60af8bbc69dbbcdbd1a901e1ce8b31e2914647f82319ad0 | ['553ec8501b23469b9d8637329a767126'] | I have a spider that works perfectly fine, but now I want to add another value to the item. The problem is the value stamp I need to pass is in parse. stamp value correlates to the link I pass to get_details, but stamp is on original page only. How can i modify code to add stamp value to every time I generate. Thank yo... | ea806c16e4f25bec8f32e972566fe36cfd778a60cebbcc461fc8f12528453539 | ['553ec8501b23469b9d8637329a767126'] | At this moment I collect a timestamp directly from the website I parse but I noticed they don't differentiate am/pm. Is there a way to make DynamoDB or the script to put a timestamp with proper time (am/pm)? The only thing I could find was creation_time (boto3) but that's for the table. Any suggestions? Thank you.
My p... |
5b93a8ba9c7bec5a61c23cf10fdcec3118690c5f20259671bfa17bc51ce793d6 | ['554f97395c4844e9a93fd44970898747'] | You might wrap your Read and Check routine into another while-loop:
bool validAreacode = false;
while(!validAreacode)
{
// start of actual code //
Write("Enter in the area code you want to call: ");
areaCode = Convert.ToInt32(ReadLine());
x = 0;
while (x < phoneAreacode.Length && areaCode != phoneA... | 35838abc79324912de87f206f6f49e831bbe54d91d8a1bd09c72d5157d2e4d9f | ['554f97395c4844e9a93fd44970898747'] | I see different solutions:
Using
JsonIgnoreAttribute
on Id property like this:
using System.Text.Json.Serialization;
public class ProductResDto
{
[JsonIgnore]
public int Id { get; set; }
public string Product { get; set; }
}
Create Contract-layer for your application that will contain all
the OutCount... |
6d6d6b6ec694d83dbe7a5c6ddfa5233ee3cc693f024f53fa801a1b94d6d36d17 | ['5557730b33e54de6baa7beba7b140ced'] | i'm trying to make a void with a Void as an argument in libgdx,
how do i make it work?
this is what i have:
public class ReleaseDetector{
boolean Touched = false;
//
// --- Simple void for touch release detection, when looped. ---
// --- and the argument void, or how i imagine it..
... | d3983f438d37adcb278a67c2c62dfccffd259096dac008ddc5da1ad6fffce0e7 | ['5557730b33e54de6baa7beba7b140ced'] | Just a month ago all the code bellow worked fine for me. i could simply signup/login and use the real time database, until today..
i did everything as usually, created a new Unity Project,
Switched the platform to android, imported relevant Firebase SDKs for unity, and copied the code bellow which i used before withou... |
791124837f97d74a21bafb8164c9a4602f8936ff7b5cb2e7c8a1ee472ccdf026 | ['555e44e123c944b7949ec97535673b53'] | It's me again. So, I try to find another faster way and maybe the solution could be use multiprocessing. I try it today but I found some little problems that a I post it to somebody can help us.
BTW. Meanwhile searching, I found another faster way, so if you are interested you can us this code
from pmdarima.arima impor... | fab91eeb8914b2c1c5c5d08ee0b89ddf3e986a7ab46fb2709b8690460d8def5f | ['555e44e123c944b7949ec97535673b53'] | I have a service for alerts that comunicates work components whit an alert component that displays a pop-up.
I work that whit EventEmitters like that:
alert.service.ts
export class AlertService {
@Output() alert: EventEmitter<any> = new EventEmitter()
sendAlertCont(data: any) {
this.getAlert.emit(data)
... |
c59c19350306e3b340307cc9899520b392e6e172635fb079caf58875dce236ee | ['5564b0342a95490ea01a9d521b63d486'] | I build a CNN model based on this tutorial:
https://www.tensorflow.org/tutorials/layers
However, I suspect that my model is sensitive to initialization of weights, because sometimes the model can run, but sometimes it gives NAN error. Hence, I'd like to initialize weights of my choice. How can I initialize weights in t... | eba79a6b38cfab5b1c496b948fc0542a1c9a2008ab8970cfa4dc602eb1f1dc14 | ['5564b0342a95490ea01a9d521b63d486'] | I am training a Deep Neural Nets using Pearson Correlation as my loss function. To compute the pearson correlation (p) between predictions and labels (per batch), I have two methods:
Compute p row by row and sum them up, and divide them by the batch size to get the avg p.
Compute p in one step: flatten all predictions... |
a9ebd84e92a4487918ebea6ed988d111547ace9ce097b9921850efddd6872a85 | ['5565a614b52c48c193295c0996939499'] | [Installing Indy for Delphi XE]
Yes, the install process is tedious, but it's worth it to get it done right.
This is for all Indy components except SSL. (I haven't tried any of the SSL stuff yet.)
A.) Seek and destroy all Indy files that come with Delphi. These are
no good as the Indy project is updated every singl... | cd6dab4ff5a742656dfe1e145ca4240d922eda813c2a42d77f8a2853134618f6 | ['5565a614b52c48c193295c0996939499'] | I am using Penalized spline to smooth noisy data. Those splines are non parametric regression models which only rely on a smoothing parameter $\lambda \geq 0$ (which has to be chosen).
I would like to find the "best" parameter that would describe well data without overfiting it or underfiting.
Let $(x_i,y_i)_{i\in[1,n]... |
eb9775c1c8faa3a26dd0f5d4efbc0ee22aaa550f7760fd5375b8e08327b650ca | ['5579c456c66441cb875361c1f356a28e'] | The solution depends on circumstances.
If you don't have much data then go with a Set Set<T> unique = new HashSet<>(yourList); (use LinkedHashSet if you care about the order. It creates a new collection, but usually it's not a problem.
When you want to modify existing list and don't want to/can't create a new collectio... | 695e267518dbc1b8f02cacd445f7e257a51366ae0674b44dab000bb27ab4f6f6 | ['5579c456c66441cb875361c1f356a28e'] | In Java 8 atomic classes have been extended with two interesting functions:
int getAndUpdate(IntUnaryOperator updateFunction)
int updateAndGet(IntUnaryOperator updateFunction)
Both are using the updateFunction to perform update of the atomic value. The difference is that the first one returns old value and the second... |
9876363337781b5be3aee82baac94525f0f490d7c9b9ec2af323143a5f895ef6 | ['5585b3a3334041f7a4b047b6527a3750'] | I'm trying to put together some javascript that will output an answer in milliseconds.
It's a script that calculates how long it will take to travel a certain distance.
At the moment it takes the numbers to be divided from text boxes on my page. It seems to do the division but the result isn't correct.
For example...
v... | 378d675e268c0518e838bb11d70435e7ea2854ad152846626821ad758f7230e6 | ['5585b3a3334041f7a4b047b6527a3750'] | I'm putting together a small site for a friend (I'm not really that much of an expert as you can probably tell!).
We're experimenting with some design ideas and have come to a bit of a block.
The page in question is: http://westleemusic.co.uk/concept/epdownload.php
Basically when the window is resized so that the botto... |
a83c589dc8658fb55ec08ef1fe454538ca4bb9b7734bb3a8faa982e2099c3654 | ['5588833286e84369a5651b7be428b29d'] | For headless servers where there's no X and management is via ssh or whatever, a command-line solution is necessary. If resolv.conf is not overwritten, then that's the correct place to change nameservers.
If resolv.conf does get overwritten then, on 14.04LTS at least, the files to edit are:
/etc/resolvconf/resolv.con... | 6fa8d2480f2dc2046d5ad9bc0009b6ff01b739b6094511fd6d5f0c1bc500ae88 | ['5588833286e84369a5651b7be428b29d'] | Firewire support has changed in the recent past. My system used to use ffado and now uses a derivative in alsa, of which I think firewire_ohci is a part. I've been trying to find out how to swap back to ffado to check or verify some odd behaviour on my external device. Sadly I'm still trying to find it. |
9018e85d6139a88fff1fe8be0290906abbf2a336f2d17c1029225eea7d9ca35e | ['558a74767d304c03b5387d040c6541d9'] | I'm having trouble with the data.table package after installing a package from github using devtools. My custom function (which uses data.table functionality) works when I load the function locally, however when I create a custom package on github and install the package from github, the function no longer works.
Load ... | d309ee2bf0f93a880ccaabcf7df7e0560e2401b81f1e0008d1576cba1e395386 | ['558a74767d304c03b5387d040c6541d9'] | require(dplyr)
require(tidyr)
x<-data.frame(dt=c('0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0',
'0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0',
'0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0',
'0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0',
'0, 0, 0, 1, 0, 1, 0, 0, 0, 0, ... |
3e930e72e8100764729c99e990b4c4ff55819b1b00ef2194752130cefcbc180a | ['55a32c693b03480786b2a4f84b745b0f'] | Develop an algorithm for converting an HSV colour value into RGB colour and explain how and why it works correctly. Then consider the two HSV colours h1 = (156, 0.625, 0.8) and h2 = (300, 0.6, 0.5) and convert them into RGB (giving r1 and r2), CMY (c1, c2), and CMYK (k1, k2). Finally, compute the linearly interpolated ... | 7001be63d31b5ba5c08bec5b5766a7ffb508c642e41c4b6cf3482dde80154489 | ['55a32c693b03480786b2a4f84b745b0f'] | I have a div with text and I want when I select (mouseover from letter to letter) a particular piece of the text to be highlighted simultaneously with background and underline.
Also I want to draw random stuff in the div with the pointer like in paint.
Any ideas on how to achieve this? At least for the first one.
|
fa996b1b3b49404f07e7e3a7e849d9ac0da0cffdcd8d168d0ef8ae91c1dead5b | ['55b6f3f58e544cee878b136554af7f00'] | I am compiling a library with Microsoft C++ compiler and build tools. My build environment sets the compile flag /GL, but for a specific library I need to turn that flag off. I can do so with /GL-, but I get a warning D9025, which simply tells me I am overriding the previous setting.
I want to suppress this warning. ... | e2be683629cdb89607634a569b108e1131441b666abf9e9e903acacb443c0ec5 | ['55b6f3f58e544cee878b136554af7f00'] | The following program fails in the zip step.
x = sc.parallelize([1, 2, 3, 1, 2, 3])
y = sc.parallelize([1, 2, 3])
z = x.distinct()
print x.zip(y).collect()
The error that is produced depends on whether multiple partitions have been specified or not.
I understand that
the two RDDs [must] have the same number of par... |
1857568a5eb2229ac49dee5bebaf62393c061a5b7c8d995db346dfe7508d1a2f | ['55c246fa85514908ba9bafb2fd63fbbc'] |
I want to implement for getting or loading 10 contacts at a time from address book.Any possibility to retrieve all contacts from address book but display them 10-10 contacts at a time.I am retrieving image,first name,last name of all iphone contacts.I want to implement this to email retrive email contacts also like 10... | 86e50abe8aed7b519d97629e9e054807683f97d218f1710c21aef13af8c2d85b | ['55c246fa85514908ba9bafb2fd63fbbc'] | I have used the following code for your task.I used SDWebimage for assigning image.You can use without SDWebimage also.Its working try this
if(indexPath.section==0)
{
if ([self.array count]>0)
{
if ([self.array count]>indexPath.row*3)
{
LooksObject *looksObjectRef1 = [self.array ... |
c278d465c4b08d99d3318eeb6398dcc0a477fa0c0cc1246255f379a25b077a61 | ['55c447daa7c149fca2c85cf350df517d'] | I am working with RecyclerView which support pagination with Firestore database.I want to showing into 10 items recylcerview an Ads,i try serveral times without succes,help me please to find the right code.
Here is my code of pagination.
//Initialize FirebasePagingOptions
DatabasePagingOptions<Pubs> options = ... | bb0eb4f1512981866a34563eaaa2e3defaadb721785ca5950e81cc10f767a431 | ['55c447daa7c149fca2c85cf350df517d'] | Create Database in your application and make one class which save data in your database
.when the user went to save data in firebase,checking connection if no save data in firebase and the first time that user open app with connection try to save it in firebase and delete data from data base
look more information at th... |
2371beb687c038ae731991bd6cd5ecc03d3f47eb843365a06af1ca0ba5ab3a6d | ['55c940e90a2646349db4d1db2af6d15b'] | I think this is a bug. I came across the same issue. With the latest docker image I get the same issue when i run that command. If you raise a bug on https://github.com/ckan/ckan/issues that will have a look in to what is causing the issue
/usr/local/bin/ckan-paster --plugin=ckan color "#0066aa"
Traceback (most recent... | 14b3ebc02aa592dae2172054a9d41951235a021366934b16f9445bdf93392801 | ['55c940e90a2646349db4d1db2af6d15b'] | currently in the paho c++ in the git project it is not building correctly for new users. it creates an empty c++ library when you do a make so any code you link against that will fail with undefined method. you can check by running this command to see what is available in your library.
nm -g lib/linmqttpp.so.0.1
You w... |
243764a33cb129a62cb92cef51be6f4af6b63941fffebec6726af452a06f6a1c | ['55cb1507f178445d8d395be591ea96b3'] | IHello!
I'm trying to code a lexer and parser for computer algebric system.
When I'm compiling the code with my makefile, I have problems on the value of some functions.
Here is the code of function.ml :
(****************************************
* Type definitions
****************************************)
... | e1365229029f5e1c101494ec02f29f61b6abda3766ea2e02149e076baca7d6af | ['55cb1507f178445d8d395be591ea96b3'] | IHello! I'm currently trying to code in ocaml a programm to draw a function which was write by the user.
To do that, I'm parsing the input, I'm tranforming the input into a data structure.
I'm currently trying to create an ocaml function to simplify at maximum this input.
For example, x*x - x*x will simplify in 0
Here ... |
69693384eea4be996e713348e5d24238175d4e15a9edad7ad37b481156334342 | ['55cc9ddb8d6f4790b760ac90ce6d8706'] | So I solved the problem using the 'ComplexEigenSolver' from the Eigen library.
//create a multichannel matrix
Mat a_com = Mat<IP_ADDRESS>zeros(4,4,CV_32FC2);
for(int i = 0; i<4; i++)
{
for(int j = 0; j<4; j++)
{
a_com.at<Vec2f>(i,j)[0] = a.at<double>(i,j);
a_com.at<Vec2f>(i,j)[1] = 0;
}
}
... | 19b934b51d4b2a5320eadeaff166a045f2db79540bb884290b627f03ed8c46bb | ['55cc9ddb8d6f4790b760ac90ce6d8706'] | I decided to look at the project with fresh eyes. I got rid of most of the code and got it to work now. It is not pretty, but at least it runs for now. For example: I had to set my sample rate to 4000, otherwise it would play to fast and I still have performance issues. Anyway this is what I came up with:
#define BUFFE... |
d961a36c499ecf04c5201da21b7d735f13484389a9cc51873ab6df4238581add | ['55cdf55f7e2e41d9a5a5afffd0633db6'] | Suppose I have some classifier which is reasonably good at discriminating classes. I have a new dataset which I know has a very unbalanced class distribution, but I don’t know anything about this distribution, so I use a uniform prior distribution for my classifier. Because my classifier is a good discriminator, the ou... | 517888748a8908bf9a803d3ae58fa240cc939f650f73f1e302a9e6eb620f2376 | ['55cdf55f7e2e41d9a5a5afffd0633db6'] | follow the instructions given on this page:
https://support.apple.com/en-gb/HT201478
Find the section "Organise your library" then scroll through to the sub-category called "Create, view, and organize collections."
The following is the part that will sort it out:
"To automatically sync your Collections with your other ... |
fcb0c9eaa1741d27d67be0b4ab6ffba553b7c52d336e9f28c422648eeee8446e | ['55d2292c718748459480a137fdf3b706'] | I had the same dilemma and solved it just by using the proxy option in the webpack dev server config:
module.exports = {
devServer: {
contentBase: './dist', /* output folder */
proxy: {
'/api': { /* I had only to track calls to api, change path to one you ... | 334595e9eb4aa4dd0998af07ab39d6befdd43f7192760eae4e897bf424fae104 | ['55d2292c718748459480a137fdf3b706'] | It works for me just using setFrameOrigin e.g.:
if let screen = NSScreen.screens()?[1] {
window.setFrameOrigin(screen.visibleFrame.origin)
}
Ref:
https://developer.apple.com/documentation/appkit/nsview/1483283-setframeorigin
Regarding setting window in fullscreen mode. If you are doing it from view (as I thi... |
02411b6b59688e58cc933653b981998d6b52bc37088d422dd4dc42c8165275a9 | ['55d2ad27ab204dba96c6dc8c20df4fb8'] | I have an issue while sending an email using JMS when the content has accented characters.
The message is pushed on to the queue and placed as an object message. The listener listens to the message and delivers it to the mail server.
Everything works fine on my local server. However when I run the same on Solaris produ... | 185006ca532eb13b48180ac8914b50a8b71b39ff4e876fb02b6f7fa7b60c4aa6 | ['55d2ad27ab204dba96c6dc8c20df4fb8'] | Is there a way to modify the row selection color for a specific table?
Right now I have a standard row selection style defined in the style-sheet and applies to all the tables throughout the application.
.table-row-cell:selected {
-fx-background-color: #777777;
}
However, I have a requirement for one of the tables ... |
1abbd376460467168d78ca0875ac72ffaa22e670672d8607945fd1cff90ba9ef | ['55d2da2d62954771834b0a4ad125431c'] | I'm writing a program which needs a user input for an polynomial function of x. I'm using Tkinter and python 2.5.
I have a parser method which so far takes the inputted equation and splits it into terms without dropping the signs.
I want to take each term and parse it to get a tuple of the (coefficient, degree). For e... | 1b109e22b2d4b860a048accb09c1e0be992e912539de68791231734e287da219 | ['55d2da2d62954771834b0a4ad125431c'] | I have a dataframe with the following format
Position data
48575185 1
48575150 3
48604751 5
48604673 c(3,5)
48591918 2
48591919 8
Some data in the data column is a numerical and some are vectors of numbers. I want to create a new dataframe that makes a new copy of the row with each value in t... |
ee7dc4ed331e9378a8572cb68eacf337c908e81f8e2343130c07e34b8f40edff | ['55ea8ea54c054576a230f07cb00ffecc'] | HI I am going through SQL null values and there is a query
select sysdate, 1+5, 'ABC', 'ABC'||null from dual
which returns value
SYSDATE 1+5 'AB 'AB
--------- ---- --- ---
10-OCT-15 6 ABC ABC
Please let me know why the heading column is getting trimmed to just 'AB and why null colum... | e9f95c2746d15c44589b5bb6799d59b2aaa902fe36f17e3ec2508418838bf310 | ['55ea8ea54c054576a230f07cb00ffecc'] | I am trying to print the contents of an array. For example I have defined an int array of size 10. But the user entered only 8 numbers. So the last two positions in an array have an value of zero. When I am printing the array I get all ten positions. Is it possible to print only up till the user entered.Also the user ... |
834fbda3851524cffe476597333d9c48e8fb08b489fe4052457bfb14e8a35708 | ['55eeb2fded6f454689ca773dde1bef82'] | If the signals applied at J and K(to change the state of the flip flop) in above diagram are longer than propagation delay of latch-1, then output of latch-2 will become indeterminate in case J=K=1. Otherwise it will be determinate and the outputs will toggle in case J=K=1. | 8281431cbe848e8f2c4491a921a7051f07dbad6eac623c5e0cc9aa40c3ae1672 | ['55eeb2fded6f454689ca773dde1bef82'] | I installed MacTex (the full 4.4gb package) as well as dvipng and received the following error when I opened one of the flash cards downloaded from a GitHub. I also followed that GitHub instructions which are listed here:
Machine Learning Flash Cards
Error executing latex.
Generated file: /var/folders/lg/_7xvtj1946... |
c39fb94d2c72dbf529ca9e39a26047d0efebb51f53eb959b7185e8699ac3cab4 | ['55f8ed25b5134acbbc69f8d86430336a'] | Thanks for your insight. SISOtool and MATLAB responses are matching (same solver?),but the Simulink output is the one which is different. I dont get the chattering when changing the gain to 1.03 but do get a similar resposne when I move the complex pole from `-200 +/- 1i` to `-10 +/- 1i`. | 812a8e88b40867f2b0e81c5cf9c70d7ec70908cf0971386fcc8b326b775e17cd | ['55f8ed25b5134acbbc69f8d86430336a'] | 2.5V going to R55 is not coming from R1 and R2 voltage divider biasing the cmoparator, but from a separate divider. I'm not sure what you mean by "Use a better source Z(f) with 0.1 Ohm impedance @100kHz and < x ohms otherwise.". How can I implement this in my design? |
6dcbca93c9202a2e7f7f9c7e24d19ae94220b914ea35e015e8bcbd8cdfc90b4a | ['56065a41414d4097bc34add3145b6b76'] | I've done quite a bit of reading on this topic and it seems like the simple answer is, it is a problem. ARIN assigns IP addresses and AS numbers to organizations, but doesn't assign assign IP addresses to AS numbers. It seems as though the organization is free to do whatever they want, even allow another organization u... | 1c0a8ddf762e1403c1f4e73d52a2ddaf81d1fe1c6c05083007fd264874d16ca9 | ['56065a41414d4097bc34add3145b6b76'] | I think the reality is, even if the "internet core" routers would accept a route from me, it probably wouldn't ever work because the first hop, and any following hops in that route (all the way up to my router) that are not part of the "internet core" would not know about/understand the route, and would immediately jus... |
8715ad1b054656e3c5faccc25bb5fb69b8811fcebde373226e48abc4207ca8c7 | ['561cca08f68d40e0b0fef17e28d4842e'] | Solved. Turns out the config.xml settings were incorrect. Config.xml > Common > Package name needs to be in reverse domain name notation for android to deploy to the device.
I hadn't noticed this however because I had only been using the Cordova Tools project to compile for Windows 8.1 / 10 devices and in these build c... | 7a7e75bc7c7397c0b1f1e04dd17da14686df952e9668f4eecdfa3955190b7299 | ['561cca08f68d40e0b0fef17e28d4842e'] | I'm trying to build / deploy and debug by pressing F5 on my Cordova Tools javascript project with a variety of android targets but the apk does not want to deploy.
It appears that the build completes and deploys successfully and the ADB console windows appears but remains blank. No app is deployed to a device or emulat... |
fa0de4b124ea3065575b5cba8a7f1ca3c1d0a50cd9f33a851f2c4cda5c5901eb | ['561d763285c347d48dbc9841cf994345'] | I'm looking to create a global gradient mixin. My question is pretty much in the title, or example below. I couldn't find anything on it in the docs or through google.
@mixin gradient($fallback, $color-stops..., $dir: "") {
@if $dir != "" {
background-color: $fallback; //fallback for older browsers
background: -... | 2d26316cbcaf0a7ae61930b241687f8654b1101ac2df629fb3c2b51ab791775b | ['561d763285c347d48dbc9841cf994345'] | I have a mysql database with a user generated date from the html5 form element "date"(or 2013-01-06 if their browser doesn't support html5). I'm looking to select and output dates only after 3 days have passed.
I've looked around stack overflow and found a few threads that looked promising and came up with(table = fil... |
add8d2ce33b5ad0181439ac1b7e787325f671be386b301fb69fd59ddd91c91ca | ['561eca8b50c14087b7b1db6e07c4c7d2'] | To update database on another Db server you could make this way:
Configure connection string to use new server
Run Update-database command from package manager console, in some cases you will need to use -force flag. But be careful this could delete some your data. Also this command has - ConnectionStringName paramet... | 6a83ebbb4140bcd203c0292f0df236d4d9926c75198d5796e1b879affd2a13fe | ['561eca8b50c14087b7b1db6e07c4c7d2'] | You could create a contract for your settings:
public IApplicationSettings
{
string ConnectionString { get; }
// any other setting variable
}
And than use this abstraction in your code
public class MyRepository
{
private string conncetionString;
public MyRepository(IApplicationSettings settings)
... |
cf59f0a1764c6a84324451ce0688f9283391ce2d15b781fd84c3b7920bca586d | ['5620790c811f40c58babfb8417919404'] | I am trying to create an archive display of database information. I would like the end result to look something like this..
2018
January
item1
item2
April
item 1
The problem I am having is that my month and item values are not clearing and end up nesting themselves back into the previous month ... | 3bcdf287e5951460f07a58bea37e9f39e9b3b80cfaf6fdbe9ca7f1c00de01c11 | ['5620790c811f40c58babfb8417919404'] | instead of:
document.addEventListener("click", function(evt) {
if (evt.currentTarget !== myImg) {
alert("click on image");
} else {
alert("click outside of image");
}
});
Try:
myImg.addEventListener("click", function(evt) {
alert("click on image");
});
EDIT: This assumes that you only nee... |
9459bf64afbb9a099e3fde82c87226356de6606f045537bbf08b8e7b695e62bf | ['5624113702174bb58385c3b0416c7e23'] | When $\Delta$ is finite $\prod_{i \in \Delta}F$ is a finite dimensional vector space over $F$, its dimension is $|\Delta|$, and a finite dimensional vector space is always isomorphic to its dual space, in this case $Hom(\prod_{i \in \Delta} F,F)$, thus both sets have the same cardinality. | 0513542a3ebd8b273a0a1dc383913846e23f1212e3bc48431a361e9d83890340 | ['5624113702174bb58385c3b0416c7e23'] | The arrow $0 \rightarrow X$ is a homomorphism from the group with one element $0$ (the set $\{0\}$ with the obvios product) to the group $X$ (not necessarily an abelian group, although "Zero group" or $0$ is additive notation, mostly used for abelian groups and $1,e,\{e\}$ for multiplicative notation and groups in gene... |
80974afd1dec9e98174c4421c36141c3ef3c007999a290f46e50b61afbb674f0 | ['562c841ab7fc4505890c66a6b93aba24'] | Add the following line to your my.cnf or my.ini and restart the mysql server:
skip-grant-tables
Then change the password in mysql.user table
update user set password = password('newpassword') where user = 'root'
Remove the skip line and restart the server. You will be able to login with the new password.
| 8fc323410ceb2315dffbf17f382fdb87c85f938f046ece4281f6fb44389f5de0 | ['562c841ab7fc4505890c66a6b93aba24'] | You need to dump the old repo into a file and then import the file into the new repo:
svnadmin dump /home/username/Desktop/SVN > svn.dump
svnadmin load /home/username/Desktop/SVN/prj < svn.dump
You can also keep your dump file as a backup is something goes wrong. You can also just copy the directory if you will use t... |
a86e02a72e0fde6130f8a3b976ed245295bcdfa59872f3b023721fc3dee24405 | ['56393f582e324182837267df76235876'] | I have a table (price_history) that shows the price history for a given product. I'd like to make a query that shows the current price (for the most recent date) and the price right before (for the date right before the most recent) so essentially, the old and new price. Here's an example table:
| historyid | productco... | 3160bdab088a8baa574af0ae291f6786639397dac0026b6ef7aaa59d8357a5bd | ['56393f582e324182837267df76235876'] | I have a spreadsheet I use to track supplies inventory and estimate usages for ordering purposes. I’ll check all the inventory levels some days and maybe just one item on a certain day so I end up with a table that has a lot of blank cells. I’d like a formula that looks at the last 2 entries in a column and figures our... |
ed353317fda656eb20a4d0f967bcb553dadeb27a1fabf15b34fa3407bf6ab7b2 | ['563ae79d44e1479d9286148564e4af86'] | I'm using VirtualBox on a Mac. I have a virtual machine running Linux on which I'm developing a website. Its hosts file has:
<IP_ADDRESS> localhost
<IP_ADDRESS> my-test-site.gyford.com
I can then access http//my-test-site.gyford.com on my Mac's browser.
But I also have some Windows virtual machines from https://moder... | 53b029def2e52af409d71ebb86f4e50c9f8688adeaf319017392954357432450 | ['563ae79d44e1479d9286148564e4af86'] | Hi. I've edited the question. It's known that my DVI to HDMI cable can't produce audio. I'm using 3.5 mm stereo cable for audio. The audio is working by default in Windows 8.1. But it's not working in Ubuntu., Maybe in Ubuntu the default audio is set to HDMI? Can we force the operating system to use 3.55 cable for audi... |
83ff27b7a2ae974937945ee14fbf4ce4762f2da7992d6f6b2e2f84c5302284ef | ['564bbf64f9084866ac789840225af671'] | Use a memory stream to return the image as a base64 string
private string GenerateBannerTitle()
{
var bitmap = new Bitmap(PhysicalBannerPath);
RectangleF rectf = new RectangleF(430, 50, 650, 50);
using (var g = Graphics.FromImage(bitmap))
{
using (var arialFont = new Fon... | 0726e1e6104bcf7dca0825548e681776fda51cf558ecbbb4bf959feeeb9793b0 | ['564bbf64f9084866ac789840225af671'] | You can extend the datetime
Date.prototype.Format = function() {
var weekday = new Array(7);
weekday[0]= "Sunday ";
weekday[1] = "Monday ";
weekday[2] = "Tuesday ";
weekday[3] = "Wednesday ";
weekday[4] = "Thursday ";
weekday[5] = "Friday ";
weekday[6] = "Saturday ";
var weekday = weekday[t... |
bdae112a00aaf24da211d6f0fdbfd45f7ec258877feddd3021353693021cfb59 | ['564f52209e3a4b8c97dd15d962ffdda2'] | I've got a wee bit of experience with Pascal, as I've used it to create mods via TES5Edit for Skyrim, and I've hit a wee snag with modding Dark Souls, and I figured flexin' me Pascalerrific muscles would be a good exercise.
But, uh, it's all buggered right from the get go. Lazarus supposedly has this "Form Window" feat... | b5a9d247b7de6090a268e77d11db1233d74b3ae74590d1a676e95c5d9fa20bcc | ['564f52209e3a4b8c97dd15d962ffdda2'] | I've been working on getting TrinityCore up and running, battling with the horror that is Ubuntu in order to get things working. Finally got the workflow down, finished two related projects, and I was going to start tinkering with the code. But I found AzerothCore, and I'm very intrigued. Got a few questions about the ... |
2430371f7b62558137749bda2e5c2422c0704b2e76a57f018bb26604ceaa820a | ['565607282af243b69c42c583750caf49'] | I'm pretty new to threads and just trying to get a grip on the basics.So, I tried the following code to print odd and even numbers one after the other.
But I'm getting a null pointer.
public class P {
public static void main(String[] args) throws InterruptedException {
Print print = new Print(false);
Even e ... | 9db612fd260c816bd390dfb467cb5b338b0a8f5a92026af82840fd2f2fe3a5e4 | ['565607282af243b69c42c583750caf49'] | I was reading about ConcurrentModificationException. I found this piece of code for the iterator.Can anybody explain what actually leads to this exception.I just want some justification for the logic written below.
public boolean hasNext() {
return cursor != size;
}
@SuppressWarnings("unchecked")
public E next() {... |
ae8ef5e46fa71c5ae99570d79cedc8c9c1129d96b97cfefe2915a528bde01dcf | ['565b114ac2c84180b80b8aae00ace68d'] | Needed to add y as an argument to the function and pass it on.
integrand_inner <- function(x,y, a, b) {(a * x^2 + b * y *x)*y}
integrand_outer <- Vectorize(
function(y, a, b){
integrate(integrand_inner,
(bo - b)*y/(a-ao),
1,
a=a,
b=b,
y=y)$val... | a04c848b702b0c6fdb4c62a3f094e40918a215e45d192090fb081c2468113ab1 | ['565b114ac2c84180b80b8aae00ace68d'] | I'm trying to put 3 divs that fill the width of the window, and their width changes according to the dimensions of the window. However javascript seems to be giving a window width larger than it actually is causing the objects to flow out of the window causing scroll. You can see my full code here: http://jsbin.com/vif... |
3befbedb2c232d98c03d6d01d09a24835a6b17730df04d79b1719fa6c385e62d | ['5661df143aab415e968a83218bb8103e'] | If the perimeters of $E$ and $F$ are the same:
$x + y + 20 = x + 13 + (21-y)$
Solving this, you get $y = 7$.
Use <PERSON>'s formula to find the Area of the entire triangle:
$S = \frac{A+B+C}{2}$, $A = \sqrt{S(S-A)(S-B)(S-C)}$:
$S= \frac{20+13+21}{2}=27$, $A=\sqrt{27(27-20)(27-13)(27-21)}=126$
Now use $A=\frac12bh$.
$h ... | 77165bd3a8f73b0b121c2ad00dd9976ce6241d7f65600a92398767620878931f | ['5661df143aab415e968a83218bb8103e'] | $\Delta OBC$ and $\Delta OBD$ are not similar triangles. $\Delta OBC$ is not a right triangle.
Also, by "$\theta$", I assume you mean $x$? If so, $\tan\theta\neq\frac{CA}{OC}$, it is $\tan\theta=\frac{CA}{OA}$. Because $OC = 1$, the trig functions simplify to $$\sin \theta = CA $$ $$\cos \theta = OA$$
$$A_{OBC}= \fr... |
507aacc9ec892d9ef99830c5330eb0f552ab6c1754030bf9e4d4e50ea3299842 | ['56673f9ee9ed44d2bf46ae07c67067fb'] | PHP is automatically escaping my quotes before writing to a file using fwrite. I am trying to make a test code page. Here is the code I have:
<?php
if ($_GET['test'] == 'true') {
$code = $_POST['code'];
$file = fopen('testcode.inc.php', 'w+');
fwrite($file, $code);
fclose($file);
require_once('testcode.inc.php');
}
els... | 44fb809c7475d6bf2d39fbc354d67888a697f846d55af103838033a4bad7b006 | ['56673f9ee9ed44d2bf46ae07c67067fb'] | I am getting the error Warning: openssl_get_publickey() [function.openssl-get-publickey]: Don't know how to get public key from this private key on line 5 When trying to get a public key from a private key. Here is my PHP code:
<?php
$privatekeyorig = openssl_pkey_new();
openssl_pkey_export($privatekeyorig,$privatekey)... |
1e1a7e95d4cd020b89fd57e4b56c8a2522a42b7be5383d7939126a82fecef3cf | ['568120aed7e446658d22bde635112daf'] | I've seen a score of questions/answers on how to hide poi.business icons/labels from google maps, but what I need is for them to show up persistently across zoom levels. For example, even when I have featureType poi.business styler visibility set to "on", the icon shows up in ROADMAP type but not on the same HYBRID ma... | 14bf87beda58d3c2e269515c67358017d6c724ad1aebfde828219f13e3308b7d | ['568120aed7e446658d22bde635112daf'] | Looks like PILlow may have changed tostring() to tobytes(). When trying to extract RGBA pixels to get them into an OpenGL texture, the following worked for me (within the glTexImage2D call which I omit for brevity).
from PIL import Image
img = Image.open("mandrill.png").rotate(180).transpose(Image.FLIP_LEFT_RIGHT)
# ... |
1f31971e95713dbaf4f5e11feb2f6f4642d53c36e39a01661a5b22193ebef3a8 | ['56b9b9c121514236bad94cc9b97831ca'] | How do we confirm or disprove that? And is there a name for this kind of function? $$f(x)=c(x-a)+\frac{d}{x-a}+b$$
If we restrict that $x-a>0$ and $c,d>0$, an observation is that the minimum $2\sqrt{cd}+b$ is reached when $$x=\frac{d}{\sqrt{cd}}+a.$$ This can be confirmed by differentiation. However, noticing that's al... | 7823c1f3896d3b7e8caa3a68a840d466d20ef0e4241789714c52d856f43856ca | ['56b9b9c121514236bad94cc9b97831ca'] | The way I make injera is simple.
Make a batter teff and water.
Once your batter or dough is done take half a liter of water and pour it over your batter or dough. Let it seat for 5 days.
After 5 days, REMOVE the separated water and keep it aside. You will need it to cover the batter again once you done cooking. Mix... |
f25fae62b2662ab3c1a90ecd593a97898d0a327d81e57ef67cb8f9891a0dc4ff | ['56b9d0342e7f4f258d16a42e971ddb21'] | I want to replace 12 values at a time with the same number, but this doesn't seem to work.
ReturnsC <- matrix(NA,N,1)
x = 1
y = 12
for (i in 1:N/12){
ReturnsC[x:y,1] <- rnorm(1,.01,N*.1)
x = x+12
y = y+12
}
thank you
| 11c687cf34d81b354bd29e9cee37d7996cc4efa993fff2970846d0591b8d8c6d | ['56b9d0342e7f4f258d16a42e971ddb21'] | changed my view to:
def submission(request):
"""View and maybe? edit application"""
model = Application
application = Application.objects.get(owner=request.user)
if request.method != 'POST':
form = ApplicationForm(instance=application)
else:
form = ApplicationForm(instance=applicati... |
4c8215de8e00d082db9b951354bde89a7457e239003626baa1af58fecbf98291 | ['56c1bc427785476b964d62bf0acb3fb9'] | ipmitool is really meant to be used outside of the BMC to control it. So in most use cases you install the ipmitool package on your computer (sudo apt install ipmitool), and then use it to talk to the server.
i.e.:
ipmitool -I lanplus -U root -H <server> -P <password> chassis power status
If you're using QEMU, then I ... | 9a4ca30438a327be4bd435eebfd1d87800e84b8e47e9e19ef8237239c02f92f5 | ['56c1bc427785476b964d62bf0acb3fb9'] | The code commits have stalled out a bit but the code behind this tag has been shown to work with getting OpenBMC to work on Rasberry Pi
https://gerrit.openbmc-project.xyz/q/topic:%22raspberrypi%22+(status:open%20OR%20status:merged)
Multiple people have pulled it down and built an OpenBMC image that works on Rasberry.
|
44ec6bfdfac679da2aa8ef821f15657a041c8442f106655ebc09abea8cf967e4 | ['56c62f66b39745c9b8a33fa84a777dee'] | I would try to extract some of the common functionality into reusable components as follows. The NumericButton and OperatorButton components could either receive selectNumber and selectOperator as props or the components could be connected components with the select* props coming from mapDispatchToProps. The connected ... | 0419034705d40afc1352375790158c7953396005a1d2e01c56b2e4856de04e12 | ['56c62f66b39745c9b8a33fa84a777dee'] | I want to implement RAID in one system. I have 4 hard disks of 2TB capacity. I want to implement RAID1. My primary aim is to copy the content of one hard disk to another hard disk. here, 2 hard disks are main disks and 2 are mirrors to main hard disks. Is this possible by RAID1?
If possible please suggest the mother bo... |
28cccb35f33c40c1aa95e0c89873f831f31d145d550c5c6f0fb9617c26a53d1b | ['56c721b97e414dc88e1a8e6da878061d'] | I think you're running into trouble with your str* function calls because you're assuming the buffer is null-terminated. You could receive BUFFER_SIZE - 1 bytes and then set buffer[bytes_recvd] = '\0' before doing your tests.
Also, as others have pointed out, you need to look for "\r\n\r\n" instead of "\n\n" as the te... | e7925c4ab8608e5d60086e8ebc7c7a0d18c728182dc0c04e448de27e756f7f8e | ['56c721b97e414dc88e1a8e6da878061d'] | To clarify: I was referring to <PERSON>'s comments. Further breaking down what they said; unless the current of the DC signal surpasses the current of the AC signal, the ONLY difference in coil heating would be the time during each quarter of the AC cycle that the signal is not at full amplitude. However, all but the ... |
b6d49eda6e5edbb6f99fb605b127f43f992bfd468df0679f61fee288c434b59f | ['56f16b9fa7694df2b4c4dc3d8f5a9a22'] | It could be various things. Is the remote server Linux or windows host ? Is database running and listening to port 3306 on remove server ? What does telnet to port 3306 on remote server say ? Lot of times its firewalls that block access to that port. Check firewall (hardware and software).
Also did you intentionally m... | 9ade61c199baf302efae5c42c9e5fcc0b848022c36f440fed62622a19afb835e | ['56f16b9fa7694df2b4c4dc3d8f5a9a22'] | mysqlcheck -q doesn't scan through rows. It only goes through indexes. If there are any incorrect links in rows it doesn't check them. I would avoid using -q unless you know there are no incorrect links in rows.
mysqlcheck -r simply repairs the tables. Please check mysqlcheck utility man page for more details.
|
2df0b606e6808df9c4b87e0957f04ccaeb1a2783c95a044930f005bd54b8a89d | ['56f3d24d222d4856b7e2934b7414784b'] | Your making a mistake with your structure here. You should have the Users and there names and username in one variable so you can foreach this result.
@foreach($users as $user)
<tr>
<td>{{ $user->name }}</td>
<td>{{ $user->user }}</td>
</tr>
@endforeach
If you want to add numbers to the list just add a counter with cs... | 30e7f7218bf0b4ab62a9f4b4ee791ab7948307703c3eb49a9e05bc8dd2f950d6 | ['56f3d24d222d4856b7e2934b7414784b'] | Currently we are using Mandrill to send our emails, when ever Mandrill detects a bounce we get the original headers along with the bounce or a subaccount where the email was send from.
In Amazon SES we are getting the notifications through SNS thats no problem but besides the email from the user we get no original info... |
00963db60e07a791624b574592b108f48396503cedb4042a242849a18e17c363 | ['56f4af7b193b4738baee5fe7d0538956'] | There are several issues:
Your examples are somewhat biased, since you've selected researchers who were not only brilliant but also prodigies. By contrast, <PERSON> finished his Ph.D. dissertation at the somewhat older age of 25, and <PERSON> didn't start his research career until he was 39 or so. Brilliant research... | 73cdc0a097af7fce59da8f3fe8c5566f34240ba2e68b537a60562b5f4bfc7164 | ['56f4af7b193b4738baee5fe7d0538956'] | I agree with <PERSON> (although I'd describe formal publication as more than just "play the status game"). It's worth separating the issues of gamification and reputation systems from post-publication review. The latter is certainly possible, if you're open-minded about what counts as post-publication review, while t... |
a38c4ab8ce808cb4bf5b0c6b57ce90cd96dd7f4769d039a886d126d368be3005 | ['56fab70a27fc42d386b5af0008be2733'] | <PERSON>, I've found this topic when I was searching Google for "Error in rsync protocol data stream". The reason was: after updating Debian from 9 to 10, rsync was gone in new system, so this exact answer really helped me. Missing rsync in target system may be a reason of similar errors — when rsync exits with code 12... | f5e98488d6e6cb7f9f89dbee2751d6d834991b724eba8c59e6698c406447f484 | ['56fab70a27fc42d386b5af0008be2733'] | I have a MS Word merge document (not of my own making). To get the data for the merge, the file accesses a query in an Access database. How can I discover exactly what that query is? I know I can run a macro that will point to the database in which the query resides, but how do I drill down to the actual query(ies)?... |
4fe3b38f41f44b051c85d47dedb43d7be593f1633cdd630431d47eef141e7c05 | ['56fb05826ade459f849f049f5475a4a8'] | I'm just writing a very simple function in javascript to calculate a factorial. I understand that in javascript you can assign a function to a variable.
So I have tried this on an online compiler (https://repl.it/languages/javascript) and this is what my code looks like
var mynum = prompt("Enter a number", "<enter a nu... | 47d5eaa9fb803442b6b087b7353ae83b3cd399ccf6ea92181181c48da90cc2f6 | ['56fb05826ade459f849f049f5475a4a8'] | I am trying to run a very simple test with pybot using the xpath but for some reason it keeps saying that my xpath is not a valid, even though I am following the documentation straight from http://robotframework.org/Selenium2Library/Selenium2Library.html
This is all I have in my test:
Temp test
Set Selenium Timeout... |
e4fd8bc9723a72174f12e49d16c170d6f4f08cf4398d56face6371a8efa4c776 | ['56fd25d453d04ab8a0faa4f5c6152a8d'] | I am working on a booking system for parking spots using rails. Here are the interesting tables and columns of my database schema for this problem.(I did not include the user table, as the only relevant column is the id column).
`ActiveRecord<IP_ADDRESS>Schema.define(version: 20140430100754) do
create_table "booking... | 64a8c40af595b97724f33d8d3fb01b182e014c0f454ef87f5ac39c5fce105d83 | ['56fd25d453d04ab8a0faa4f5c6152a8d'] | I assume you have access to a sampleBuffer in a delegate method such as captureOutput(captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, fromConnection connection: AVCaptureConnection!)
I've already struggled with the CMSampleBuffer methods, and I agree it is not obvious how to make t... |
6040e8b27e0159996b4bab4cfa77bad7ad47580bdc362474eac0613c6f2c539d | ['571815fd483347e88ab31ad83a9a5d21'] | #1 in your list is the most important IMO, i'd add two more things to it:
-Lots of big changes can be made in a short timeframe (for example 'lets switch the communication protocol!'), that wont break stuff in the short term, but many of these make the project very hard to manage in the long term.
- The changes in t... | 2727866a5c7e58470e64f2ac14a44136a72b350c81d32c7aa005429a41c38001 | ['571815fd483347e88ab31ad83a9a5d21'] | I doubt he intends to use database split to create data marts or else he misunderstands them. Our entire database is fed into a 3rd party BI software using OLAP cubes. This BI software essentially does a select/ data read on all our fact/ dimensions tables once per night at midnight. Splitting the database would achiev... |
7cee0579a3bf87d62efd03dc19eeb77fc10a2295793d6b295c517d4388a56081 | ['571c7bca6ebf4dbb8835238828183bc6'] | I disabled it with `sudo systemctl set-default multi-user.target`
Do you want me to enable it with `sudo systemctl set-default graphical.target`
The laptop hasn't used a gui from the beginning. Its desktop install with gui autostart disabled.
I have recently tweaked the blank and powerdown values with setterm and a... | 8cbe7f352b804aac3a50991903afb168a981763aacbc2011395a69a3021b25f7 | ['571c7bca6ebf4dbb8835238828183bc6'] | I have logind.conf set with handlelidswitch=ignore etc..., this is working great. But the screen stays on permenantly as the system never sleeps.
How do i switch off the built in laptop monitor after x minutes or when the lid closes (or both).
cat /sys/module/kernel/parameters/consoleblank returns 0 as expected.
I thi... |
5d3994099ec37e952d1c3a8a794ebd602fcb0a76de28826f6183b8ee8930afbc | ['573178ceffb146bb9d57df4031b61fc9'] | For example, I first increment from 1 to 2 by n=1, then from 2 to 4 by n=2, then from 4 to 7 by n=3, then from 7 to 11 by n=4, etc. How do I set up my code for an increment such as the one I just prescribed?
I've tried i=1; i+=i, but that just increases by an increasing sequence of positive even integers
| 7801a1e4dbf00893ee7701092c5516f193130d99f7320a4ea3c4c3fc6d107196 | ['573178ceffb146bb9d57df4031b61fc9'] | For example, I've already created a function that will create a nested dictionary. However, I'm trying to create a new function that will modify an existing dictionary by changing certain values within it. Here is my shot at it
myclasses={}
def addcourse(myclasses,department,course_number,term,grade,units):
myclass... |
abd2b9cc37b541021819225d7fbe73134a51f13b2e8e07ad04a9a5f16227966d | ['573337bd50d749fda93047dbffb901fe'] | Why the volume of a $n$-dimensional parallelepiped with sides given by the row vectors of a matrix $A$ can be seen as the product of the singular values of this matrix $A$?
I only know in 3-dimensinal vector space, the volume of a parallelepiped is equal to the determinant of the corresponding matrix.
| 97f35883b16f0708f8249ad64dcf78c17fddf14fba78ceaa032ee9c581bf457b | ['573337bd50d749fda93047dbffb901fe'] | If $X_1, X_2, ...$ are i.i.d.standard normal random variables and for real constants $a_1, a_2, ...$, given $\sum \limits_{i=1}^\infty a_i^{2} $ is finite, then $Y_n =\sum\limits_{i=1}^n a_iX_i$ converges (to $Y=\sum a_iX_i$) in $L^{2}(\Omega, P)$ and Y is also a normal random variable.
I don't know how to show Y conve... |
e79db4f6b48a3df86bc0860a131e84e00db52c657e2eb79966ae7dc7be4d051e | ['57432ada79794e77b7ed6afb48264c55'] | Writing clean() and clean_fieldname() methods covers two very different needs.
The former lets you validate the value of a given field data, independently from others. The later allows you to validate your form by taking into account several fields value. So it's normal that the outcome of writing your "validation code... | 4193290bee1dc204e2080834d31283f76217940dda734c3d18d0cb21178d9da0 | ['57432ada79794e77b7ed6afb48264c55'] | I'm using Python 3.6 with Django 1.11.9 and rest_framework 3.6.2.
I have a view (APIView) which can only be accessed by some users who successfully pass a given HasUnlimitedAccesPermission check. In case of failure to pass the latter, I raise a PermissionDenied with a detailed message of my choice about the error to pa... |
19a62635364070bb05618faf21dcd5678bf5f8d73aef10bf3acde8c6b82d65d2 | ['574a3714e4ed4f62ad2c6dc3b63c247f'] | SAS provides a handy tool for handling panel models with a large number of groups by 'absorbing' those groups (PROC GLM; ABSORB). My understanding is that it factors the effect of the absorbed parameters out of the data before estimating the remaining parameters. It seems like this may invalidate the standard errors of... | 7bfd8acfdc6a6be21eaf52f640e72056e95d2fb339531c695d360fe4423f17ad | ['574a3714e4ed4f62ad2c6dc3b63c247f'] | I talked to the student advocate attorney, who said technically I'm in the wrong even if I had no intent to cheat. Another attorney I talked to said this charge was a stretch. Even the case officer handling this said I had a compelling case, but later after consulting his boss, the case officer deferred to the professo... |
6ff243acb30bda1fe603a323701ec799f65becc1d217609f7752b6242bfe2abf | ['57918cc2cb4e4a43a6b33275ef4a6880'] | I need to convert an SVG to EPS and currently use inkscape to do this.
To convert the SVG using the Inkscape GUI version, I simply open the svg, and "Save As" '1.eps', unselecting the "EPS+Latex: Omit text in EPS and create Latex File" and "Rasterize filter effects" option.
How can I achieve this using inkscape command... | 2af22a8be2ad7df801f8520c32201031033297b65c35539bb0edad9580d5c17e | ['57918cc2cb4e4a43a6b33275ef4a6880'] | I am trying to save imageData as pdf file on server directory. Html5Canvas imageData was sent to server and after conversion in bytes array, tried to save as PDF file. File generated successfully on specified path but the generated file doesn't open correctly in most of the PDF readers(i.e. Adobe Reader, Foxit reader e... |
804e2e8d53bcdfd1232f5bdc4aca94461feda542d7eeddbd4ff390a9108d138a | ['57996b4d17814690bab25f3f4ef81faa'] | I've received this strange error after implementing method that converts image to grayscale:
public Bitmap toGrayscale(Bitmap bmpOriginal)
{
int width, height;
height = bmpOriginal.getHeight();
width = bmpOriginal.getWidth();
Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565... | 72ee9439c43a8c4cf1293417451da38cda428c89392e6fe15031fd4ea3c0c8da | ['57996b4d17814690bab25f3f4ef81faa'] | It might sound strange, but I need to have IF sentence inside bar plot line.
My part of code:
for col in columns[2:32:2]:
plt.bar([p + width*n for p in pos], df[col], width, color=colors[n], hatch='x')
I have DataFrame df. I need to plot every second value of its column in grouped bars (grouped according to row) a... |
8e547c6810402de9d89fbffa7dc6f223feb80291dc26fef0e25e3a5e56f810b7 | ['5799c422f3654f55b4cad29e4662f7ae'] | if you want to display view header or footer in twig template, look at core views-view.html.twig and all the available variables. In your case :
header: The optional header.
footer: The optional footer.
In your twig views-view--[view-name].html.twig, you can display your variable like this :
<p>{{ header }}</p>
| 058703da407fe62ff4ea733f8d795bb2936fab99558815cedf3035d8f2bd740c | ['5799c422f3654f55b4cad29e4662f7ae'] | @4k4 In view mode "Related Content", we have the field "Related Articles" and not title, image, summary, etc. Since the "Related Articles" field is repeatable, i have `{{ content.field_suggestion_articles }}` in `node--article--related-content.html.twig`. In `field--node--field-suggestion-articles--article.html.twig`, ... |
f7c307e68de6a4772e9feed9b7e1f42ec7fb8272434400396575969cc1066bb1 | ['579ab094c6ac4711a3507e92ff6fded1'] | use following php code:
<?php
$name = $_POST['name'];
$subject = $_POST['subject'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "<EMAIL_ADDRESS>";
$subject = "Hello World";
$message = "Name: $name \n Subject: $subject \n Email: $email \n Message: $message \n";
$headers = 'MIME-Version: 1.0' . "\r\... | 0564aee39a1cd6fbe67af726012ff8648c2b9603e9143b2880f4c3dd5190c2f4 | ['579ab094c6ac4711a3507e92ff6fded1'] | Use following:
char capSentStart(char paragraph[], char newParagraph[])
{
for(int i = 0,j = 0; i < 301; ++i,++j)
{
if(paragraph[i] == '.' && paragraph[i + 1] == ' ')
{
newParagraph[j] = '.';
newParagraph[j + 1] = ' ';
newParagraph[j + 2] = ' ';
... |
fa63881f77a5e8bf980c504fcbbb1c67ad995cc212c55e032ba41116113d3759 | ['57b51b6cac9243f4b3b32ca8514fa28d'] | You shouldn't use AnyEvent<IP_ADDRESS>Worker<IP_ADDRESS>Poll for this task.
And I'll recommend you do not use loop specific features like EV<IP_ADDRESS>loop EV<IP_ADDRESS>unloop. This makes your code incompatible with other loops implementation.
Your code may be rewrited like this
use strict;
use AnyEvent;
use AnyEvent... | 85530062893037cae384433354cd8fde0de4dc6e91d4ad5f825d84aad78f5fc0 | ['57b51b6cac9243f4b3b32ca8514fa28d'] | After fast look at source code of this module I can suggest to use it like in example below. Because any method may raise exception. On http error this will be HTTP<IP_ADDRESS>Response object
eval {
my $response = $py->plot($x0, $y0, $x1, $y1);
};
if (my $err = $@) {
if (!ref $err) {
die "Plotly error: ... |
b10ca2e80b07823be359a7131fe5dedbbafd7b323337729a71320888d3ee6b00 | ['57bdbd8c3cbd4b57b4c9c8cc3230837a'] | Your IP Address doesn't/can never give you the correct location of where you are it. The location can from the internet can only be used to get the country and MAYBE the state of the user.
The location given is usually where the Sub-Station of your ISP is located.
| 1fce54497d168f06286211916ab9b22ccb01a41b722b92141695b4f2711d6834 | ['57bdbd8c3cbd4b57b4c9c8cc3230837a'] | So I currently have a database with the user information and what defines the user is the user_id.
Then I have table named token, that has a token_id and user_id as the primary key and the rest of the information, making this a one to many database.
@Entity
@Table(name = "user")
public class User implements Serializa... |
31fe979f98ca5c91ffe1c5d396a76500d1a7ca3928cec0250b2fbef84a2e8ea5 | ['57c5d8f75e0e4fc3b233d656b1015120'] | After insert elements into the array, when I reset, it does not go to the initialStateOfList that is to [1,2,3,4,5].
For example, If I insert 6 and 7, then press on clear and then reset button, it goes to [1,2,3,4,5,6,7] and not [1,2,3,4,5].
What should I do to make it go back to the original state?
import React , {Co... | 78cba6005ac74cc3aa0f898411ec73fb21704bf2910c39c4a491d19a76060b79 | ['57c5d8f75e0e4fc3b233d656b1015120'] | I want to write a http POST/PUT request that would need to update two fields in two different tables.
For example, I want to write a http request that would reset the marks obtained by a student in various exams like math, science, literature with each record being in different tables.
Is it a good practise to write a ... |
4ee47147f831be22388426cde8b0f85e2c808a47ffb76fdc7e0e285e84e3d2a2 | ['57df9229d9c040e196db19d193e88f16'] | Yes you can do it. If you want to save the image into device's gallery you might use saveToPhotoGallery method:
https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media-method-saveToPhotoGallery
If you want to save the file inside the device, have a look at this code snippet:
https://gist.github.com/timoa/37... | 13f1da86bb0cfefbb3e9b22f7606b07f8ae628ff20ec0db66af7abf5241c5894 | ['57df9229d9c040e196db19d193e88f16'] | To animate something, you will indeed need to use the animate method.
Here is an example for you:
var view = Ti.UI.createView({
backgroundColor:'yellow',
width:'76%',
right:-Ti.Platform.displayCaps.getPlatformWidth(),
onScreen:false
});
win.tiview.add(view);
win.tiview.addEventListener('click',function... |
c1fecff24b7da328fea63d71f0afa068380db811f226c607adc3a06557866644 | ['57fe96390cad455bb5bbb4898c35d882'] | I only added targetapi and it worked. Also, I used requestPermissions in this fragment.
@TargetApi(Build.VERSION_CODES.M)
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED)
... | f6f07abe40e21ea0804add6b368ab28ccc4552122a7b0962c89148bbb8211964 | ['57fe96390cad455bb5bbb4898c35d882'] | I see Here3 and Here4 True True on logcat but commands(alertdialog, mediaPlayerStop and VibrateStop) doesn't work in run() method. Any suggestion?
Thanks in advance.
if(check == 1)
{
Log.i("XXX", "Here3");
runOnUiThread(new Runnable()
{
@Override
public void run()... |
89eb86e6be6868e0e32c26a398e84ee6faaea7209b8036dc2d0e766934f72ab9 | ['5801579494ee4f289e87758fe15aefcb'] | Well, that require some python at least IMHO.
Basically you can achieve this by setting a remote server that waits for N connections to be done (you can do a basic user/password login for this), then once all required users are connected you can create an account on some webmail server that has his own exposed API (i g... | 86af38e304b9f9da113ca3d7338d25d491a52049e9d269aacb59436c4ef48054 | ['5801579494ee4f289e87758fe15aefcb'] | let me explain well..
I'm trying to write a program that "listen" the keys pressed by keyboard WHILE I'm into a full-screen game..
I've used DirectInput yet, but it seems don't look into it..
E.g i'm pressing spacebar into game and my char jumps, but my program won't listen to my keys.. it won't record ANYTHING. Just w... |
f6079e5d2309a347e18dff031ab4521889b1059285f3cdf50757820d1980a7c8 | ['581bcfcdc6164b90a46f8668d4275abb'] | Thank you @brunch875! Your comment helped me out a lot in places that I had trouble with before. One issue that I am coming across, however, is the problem that although I am running the server on my computer, and localhost works, other computers on the same network are not able to see what I see. What I tried is:
*... | 6405c3d65f159b8f8c6392072078702c3edb24d633df79a0b64226f5ab77ff85 | ['581bcfcdc6164b90a46f8668d4275abb'] | I am an almost absolute beginner to the world of servers. I have no knowledge of setting up a server aside from running apachectl -k start and seeing "it works!" in localhost. I've tried dabbling in "port forwarding" and tried to get something to work in no-ip.com, but after a while I had no idea what I was doing. If i... |
da270ff719774f2f322e6956471de777c8b27fbdc8d1f9782b4b6bc00bcbf4b4 | ['581e95ad002e4899b350b92fa1c2dda2'] | So, wOxxOm answer helped me understand the issue, but since I'm not going to use Mozilla's WebExtension Polyfill, I worked around the problem by creating a separate async function to await for the Promise and return the data fetched. This was due to me having problems with having async functions inside the message list... | b09cae813a46fb974a096e3fc6013df6b8abaf0c348ae17b50137144a2bd4518 | ['581e95ad002e4899b350b92fa1c2dda2'] | I need to access data from my API from inside a contentscript, however since they are HTTP requests (and not HTTPS) they are blocked from inside a contentscript.
Due to that, I am doing all the requests from inside a background script, and trying to communicate between the backgroundscript and contentscript using the m... |
ad149e9c84f47bd6225f3da7c1b522ca2c4f1c85ebcf47a59b0ffac4d2e83fc1 | ['5834637069a748b8b4afe86bf62cf38c'] | The top voted answers fail if no results were returned by a grep.
<PERSON>
<PERSON>
<PERSON>
<PERSON>
<PERSON>
<PERSON>
<PERSON>
<PERSON>
This is the wrong way to do it:
wiggums=$(grep -iF "Wiggum" characters.txt);
num_wiggums=$(echo "$wiggums" | wc -l);
echo "There are ${num_wiggums} here!";
There will tell us, ther... | 4fa007867ba2835611425a3b2bc65a12272f5a953c39c9ccacfba86f331f9d5f | ['5834637069a748b8b4afe86bf62cf38c'] | For some reason, the following regular expression match doesn't seem to be working.
string="#Hello world";
[[ "$string" =~ 'ello' ]] && echo "matches";
[[ "$string" =~ 'el.o' ]] && echo "matches";
The first command succeeds (as expected), but the second one does not.
Shouldn't that period be treated by the regular exp... |
8150d05b2fb3ee654a152246e57e1ab55f0b5149d4d23cf4a2b22c5b3da756e9 | ['5834a52e525841c19c3fa7e7744f9e3e'] | I found that the built in region monitoring wasn't accurate enough for my needs. If you need higher accuracy, first set your accuracy appropriately, and then you can use something like this:
(Uses the same method as @coolcool1994, but a little more in-depth and using Swift 2.1. Remember to set up CLLocationManager an... | fd81173314abab9d0519bbeb9166ec28c3081d9c98df522120cd21188d676757 | ['5834a52e525841c19c3fa7e7744f9e3e'] | I have a traditional REST API, that returns data like so:
User list - GET /users.json
users: [
{id: 0, name: "<PERSON>"},
...
]
Users by Id - GET /users/0.json
user: {
id: 0,
name: "<PERSON>"
}
As you can see, if you first request the data from the list (/users.json), and then click on a user, even th... |
824dd8fdc23db0a5a731fd25b805c6e4cf37ee2f204431c5561949298cab9e6f | ['584419cf4b8a4986a2eae99e1b02229a'] | Let $W$ be a symmetric $\alpha$-stable process with its generator
$-(-\Delta)^{\alpha/2}$ for some $\alpha \in (0, 2]$ under $\mathbb P$. Let $\mathbb P^x$ be the probability measure induced by a process
$$X(t) = x + t + W(t)$$
starting from $x$, and we set
$$\hat \zeta = \inf\{t>0: X(t) \notin (-1, 1)\}, \quad
\zet... | bdea4ce3f86ade18c788a70e88f4904fa0b82082278847f884e3d65e32b8e41f | ['584419cf4b8a4986a2eae99e1b02229a'] | Quote from the link "Technically, that last scenario in which funds are transferred from an employer plan to a Roth IRA is called a "qualified rollover contribution". It's often referred to as a conversion but a conversion is limited to a non Roth IRA to Roth IRA rollover or transfer, ie. involves IRAs only. The new "i... |
f33780dd1c55b4b75d06be6fe0b0fb1363f0e93faac8fef1c9159c2634499cd4 | ['584aa6233cdc4cdfb4227d40ace0ed36'] | The error tells you everything you need to know about what is going wrong, which is that you cannot call the get() function on a list. In Python, the get() function can only be used with dictionaries, which are different from lists. Instead of using the get() function, call a specific index of the list and your program... | bf8babb1ad4e845f64c97ab7a89ca25df533d4810a0894ddbdf769fc8b49690f | ['584aa6233cdc4cdfb4227d40ace0ed36'] | I'm trying to train a Tensorflow Convolutional Neural Network on my RaspberryPi 3B. I get the following error:
2018-08-19 18:57:07.720022: F./tensorflow/core/util/bcast.h:111] Check failed:
vec.size() == NDIMS (1 vs. 2)
Aborted
Not sure what's going wrong, but here's the code:
import tensorflow as tf
import numpy as n... |
d2467359166686a3794f6da0d1da77add37665708104c698fb65513e7f1be11c | ['585a7173a153480b80c6d03a11c59c74'] | I am using OpenTok for video chat but default audio and video controls are not appearing, simple publisher and subscriber video appears with no options to turn off video or mute audio.
Meanwhile, Audio and video controls are appearing in react web application.
<View style={{ flex: 1, flexDirection: 'row' }}>
<OTSe... | 604251ec4ce229b732145b76174b2eb9e68c56b352a5bf2aa2bed4eb36710a70 | ['585a7173a153480b80c6d03a11c59c74'] | I have a file with 3 columns like this
Col1 Col2 Col3
A B <-
C D ->
E F ->
I want to swap the entries of the Col1 and Col2 whenever there is
<-
in the third column. I want my output file to be like
Col1 Col2 ... |
c9a810905055beafe4ebc09302bdd3eac0c5766309be6d3a9d5c95479f0041ae | ['5888ae1c02574601bf7f235d835e2c92'] | I know this as been answered but wanted to give my CSS example.
Because when I was searching for a solution, how to style a input field so it looked like it was disabled, I always ended up with an input field looking like this.
With the border- left & top having a darker color etc.
So a solved it using this CSS code.... | 4c0deec2956c22e9ef64115419989218407b41274d9b5df6fac06acea31ae16f | ['5888ae1c02574601bf7f235d835e2c92'] | I know this as been answered but wanted to give my CSS example.
Because when I was searching for a solution, how to style a input field so it looked like it was disabled, I always ended up with an input field looking like this.
With the border- left & top having a darker color etc. So a solved it using this CSS code.
... |
a467a397dbfcc3d09267f0edaff625183c17d2e851449f14f22746ae528c3851 | ['588a3924d2a24f22816b97060d824309'] | Using Load_File() imports the xml data into a local variable, while ExtractValue() then queries the XML data using XPath. For instance, in the code below, it retrieves a count of students from the xml_content variable:
declare xml_content text;
declare v_row_count int unsigned;
set xml_content = load_file(path);
... | b31ce0c065aa92e8c857c38d662e21e955b196164cc1f89cf70c5be3f20c79c2 | ['588a3924d2a24f22816b97060d824309'] | At the command line, type the following command, replacing USERNAME with your username:
mysql -u USERNAME -p
At the Enter Password prompt, type your password. When you type the correct password, the mysql> prompt appears.
To display a list of databases, type the following command at the mysql> prompt:
show databases;
T... |
0701028a482bb47caa80dee2d0c3722cbec06b9e1d764797f86e8274790b4a3d | ['5897e62f5786494892854f4d8782921c'] | I would be grateful if anyone could tell me how to create pivot table in R like python pandas with selected aggregation function and more then one level in column.
I would like to receive in R something like this in python:
Iris.pivot_table(index='Sepal.Length',columns=['Sepal.Width','Species'],values='Petal.Length',ag... | 27fc549c8d9ec38f14769700867a49cd22af011ecea40ba7422e178f451841a2 | ['5897e62f5786494892854f4d8782921c'] | Could anyone please help me to find a way to exporting oracle dump file to NAS server,
I know how to export to the same server where oracle is working but not how to deal with exporting to remote NAS linux server.
Code for exporting schema from db.
DECLARE
handle NUMBER;
status VARCHAR2(20);
BEGIN
handle := dbms... |
20be1d8d0ee889466ef77157c07d70470ef23c54a0e17c48abca0a9b0c1e4c65 | ['589e1e1d8e704c2b94d8d34d17a0e301'] | Complementing the answer of <PERSON>, I personally would add the parameter as a Java8 Optional type to make it explicit in the signature of the method the semantics that is an optional filter.
@Query("select foo from Foo foo where foo.bar = :bar and "
+ "(:goo is null or foo.goo = :goo)")
public List<Foo> findByBarA... | 42e4d892a462913fffbdf735683ad80943be0dfb9a39b2a1d6af0b902e49438f | ['589e1e1d8e704c2b94d8d34d17a0e301'] | This is a common problem of conflicting gradle dependencies with different versions, a common way to solve is to exclude the conflicting version of a project and forcing your own version.
compile(project(':react-native-device-info')) {
exclude group: 'com.google.android.gms' // <-- exclude offending dependency
}
c... |
c59c492b3cc0f92acbe7ff7286a9f97c9d68d068e13b2ed25aa05400a6ea823d | ['58a1f5863dc84a06a3c6a8f199365332'] | This post is a bit older but I want to add the following:
If you want to understand how the different content elements are wrapped, you may have a look into the css_styled_content extension. I assume that you have included the "Static Template (from extension)" in your main Typoscript template.
You can find the setup.t... | 557faa5286c072755a751a060df0b3450a9112fe33456abeec9edacd8b90d6be | ['58a1f5863dc84a06a3c6a8f199365332'] | As you can see in www/vendor/typo3/cms/typo3/sysext/css_styled_content/Configuration/TypoScript/setup.txt the file StylesContent.txt from folder "Helper" is not included automatically anymore.
So I guess you must include
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/Helper/StylesCont... |
160d39a186a271941d2958baace916492d06ea45bd8f649b75f9ae385b1a9d88 | ['58a870305ad64f18a7d48fc40b14c896'] | After installing multiple tools such as Hardinfo and Usbview investigating to no avail, I resorted to opening up my chassis and check the motherboard. It seems the USB 3.0 ports are broken(since they won't even power up a USB fan) leaving only the eSATA USB active. A motherboard replacement seems to be most likely if I... | 75ccceb03a76da15662fff9d4dc5dd936b033f390083e7ee54673f0eda4165a7 | ['58a870305ad64f18a7d48fc40b14c896'] | Recently the issue has occurred where launching Foxit Reader does not open an active window on the desktop. Launching it from its .desktop file shows the icon appearing on the Unity bar with an orange dot (I assume indicating the application is running), but clicking on it does not bring up it's window. The Foxit Reade... |
f4097e1f6d5021a4e234b53c394129097a3ab589ded036935e9e6c64d14d97c5 | ['58b04746a743418f99b8b3e30dd92237'] | I just noticed two other questions closely related, so this one might be a duplicate. They are [How do I know a software does what the author claims ?](https://security.stackexchange.com/questions/30410/how-do-i-know-a-piece-of-software-only-does-what-the-author-claims) and [How to decide “I'll trust this software” for... | a4720fdb2df125b90ffafcf0247128e7af60656537d0c5379992548592998ee9 | ['58b04746a743418f99b8b3e30dd92237'] | I wished to comment, but it is my first post, so I had to sumbit an answer. (not enogh reputation points) 1. Actually I checked in http://tools.glowingmines.eu/ and it seems capital letters DO matter in UUID generation.
2. We still do not know why adding to whitelist on offline servers changes letters case. It seems th... |
015166c4d4c049517eaeeac2fb86c9cba59cb53b013736ee711c5ca0cb074b21 | ['58b1b5049f32415ea0ecd9720317bcda'] | You running builtin server right ? Then you can make a simple plugin :
from bottle import request, response, route, install, run
from datetime import datetime
def logger(func):
def wrapper(*args, **kwargs):
log = open('log.txt', 'a')
log.write('%s %s %s %s %s \n' % (request.remote_addr, datetime.n... | 17975efca22c44295545fdecea6b8751b5496ee1b2019feaef618f32dff87fe2 | ['58b1b5049f32415ea0ecd9720317bcda'] | You trying to serve your css file from /name/ directory. But there's nothing to serve. Solution :
1.Name your route wich serving css file
@route('<filename:re:.*\.css>', name='static')
2.Render your template with get_url function
%rebase('base.tpl',something=something, get_url=bottle.Bottle().get_url)
3.Call it in yo... |
9a345c7277347e1dd8901c3be135187b1f2f4b9131af2f8c974473d79222e50f | ['58c99add0d3a4fe1861a8ecca37ba5db'] | i am using the Media class to record from device mic, is sucessful recorded but i can't find the audio file(myrecording.amr) on my android device.
function recordAudio() {
var src = "myrecording.amr";
var mediaRec = new Media(src, onSuccess, onError);
// Record audio
mediaRec.startRecord();
// Stop ... | e679444de0dec241263866a4fbc6a0ef8319b11a0b3e2a324706162d23515182 | ['58c99add0d3a4fe1861a8ecca37ba5db'] | If you are using some module to implement bootbox, 'cos $bootbox must injected
If not then, you can simple use without $:
OrderService.get(function(response) {
$scope.newOrder = response;
}, function(error) {
bootbox.alert(error.statusText);
});
from bootboxjs page:
Once you’ve got your dependencies sorted, ... |
c797a28f2aa2f8f3b775a94929de0829762b82b1c682baf7ec02350a27624c84 | ['58cc0c55db3643909d6916246691d7a4'] | Thank you guys and sorry, i'm new to this. I just got about 450 rep... you have about 290k ._. so sorry for this "dumb" question. Now i'm a bit smarter and i'll reduce my answers to the absolutly essential! I love stackoverflow and the only thing i want is: Help other users and get help from users who have more experie... | b209dfa96ee8a3f5c880187e166c4adef3ea7924773f698adbe3c88c34fb939a | ['58cc0c55db3643909d6916246691d7a4'] | i solved this one by myself by editing the mobiscroll.js
There are two classes:
dww (which is the container high)
dwwwol (which is the position of the lines which show what you selected)
Just replace the two classes with variables and set the width you want at the top of your .js. Do not use % for dww, this will not wo... |
26e3e230edcd156b18a2318aa18b878d10fc6ec11eabef2506243250082656b9 | ['58d142272b0b4715a32c88bd672ae76a'] | You didn't read the question or I failed at explaining, having to call UVList.ToArray() creates GC because when the list is applied to mesh.uv, it creates a copy of the array and the UVList.ToArray() then has no pointer and goes to GC. This happens because Unity when moving the list onto GPU creates copy rather than ke... | 436e031fbd14c97ffc8c8f32f90c65439df11a793d9cbd087e38ae2dd426a1f9 | ['58d142272b0b4715a32c88bd672ae76a'] | Aside from vocabulary, an analysis of the quote evokes a number of literary conventions, which find their source in traditional Japanese culture.
This seems to be a standard manga or dorama style declaration of the speaker's feelings for another person お慕い申しております (the sentiment) and 気持ちをお伝えしたくて (the confirmation of th... |
2ad63291202f67d8d24dc4e79419fc3a2f15846b8ba986f14d25e6858c3b3889 | ['58d6a51e4155482ab0d1505d6dc5b8e0'] | I have table with 3 columns: lat,lon,day (376 days).
The process is: create the map -> save the map as HTML -> save the map as PNG -> import the pic -> plot it (with plot + ggimage)
All this process, will be in a loop
library(leaflet)
library(animation)
library(png)
library(htmlwidgets)
library(webshot)
library(ggmap)... | 32e53fbb94f73af7503277c0303dcf8a6c9871f352f75b4433144e2c2537a861 | ['58d6a51e4155482ab0d1505d6dc5b8e0'] | I have list of hundreds of email subject lines. For each of the subject line, I have the email open rate (opened email/delivered email) value.
For example:
list of subject lines
I want to understand if there is influence for some words on the average open rate.
For example, maybe if I’ll write in the email subject line... |
c04efa10eff0eec6cd9464c65a4981554b5f26930d4fac844307662bd05cfe44 | ['58dc0ee6cf7643c797f313fe7bc828c2'] | import tkinter as tk
import smtplib
from word_length import find_word_length
class Email_app(tk.Frame):
def __init__(self, master = None):
tk.Frame.__init__(self, master)
self.create_widget()
def create_widget(self):
self.myLabel = tk.Label(root, text = "Email app", width = 50).grid()... | afe348f4e77e2de7c09769f4cef38a005edaafac6af370007c068a849a5e7291 | ['58dc0ee6cf7643c797f313fe7bc828c2'] | I am just beginning to learn the sklearn module and faced my first roadblocks. First I created a number recognition logistic regression model and it seem to work fine. But then I decided to test a random image myself, so I used OpenCV module to opened a picture that I randomly select from online (Shown below). The shap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.