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 |
|---|---|---|---|---|---|
7ac612d11262242a87648a5a60325478bc555fc9535e653b4b2385818caf1e44 | ['e453c815b7ce4febb21a861381dd441e'] | I have a problem with my site: https://dolphin-healthcare.dk/kontakt/
When you load the page here it starts 1/5 down and then goes up. Do anyone know why it acts like this? I don't think it is a good user experience. I have tried to add a preloader but I don't think that is good user experience either.
Do anyone know a... | 6bb07f21941215ff9c12748289eaa5b88bf4ce9ca755a91058b3a0a5e2bb0a55 | ['e453c815b7ce4febb21a861381dd441e'] | I am trying to put a back button to the single product page by adding
<button type="button" onclick="history.back();"> Back </button>
The problem is that if I put this code in the inspect panel I can easily get it to work but I have no idea where I should put it in my real folder?
Can anyone give me a hint abou... |
bfab7fbc132b3cd76a32e210ec43bea39640469203b1054abd70161d4c6a3895 | ['e45543791cf94c23a26caed91a178ceb'] | I couldn't solve a proof by induction and looking at the result (at the proof) on the book, they used this equivalence: $1+5+9+...+[4(k+1)-3]=[1+5+9+...+(4k-3)]+4(k+1)-3$
How are these equal? The part $1+5+9+...$ is the same on both, so we should have $[4(k+1)-3]=(4k-3)+4(k+1)-3$ but how is this true?
$[4(k+1)-3]=4k+4... | 91327a7169191a67cb23694233f9c8436a0dfe9b72665fb7af6b7f17acea8ccd | ['e45543791cf94c23a26caed91a178ceb'] | I've been thinking about it for a pretty long time but I can't really figure it out.
I'm used to writing sentences of the form "there are exactly $n$ $\alpha$" where $\alpha$ is a noun, but this sentence is different, and it confuses me a lot.
I would be tempted to write something like $\forall a,b,c((¬Oab \wedge ¬Oac)... |
6bbe9f147c99c48d08817c668750197f36d88a6428102dec7b4fb96f33b34917 | ['e463557d7482455395203dce72e553cd'] | You can also in your dbContext inside the OnModelCreating use before mentioned AfterSaveBehavior like this:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<someobject>(builder =>
{
builder.Property(i => i.CreatedAt).Metadata.AfterSaveBehavior = PropertySaveBehavior.Ignore;
... | ac4423ca7952273e2c078ccd287c9635ab32f81f989d3b81fe6b4551d86656dd | ['e463557d7482455395203dce72e553cd'] | If you are using CloudFormation then you should be cautious deleting the table, since other things may be dependent on its existence.
My solution would be to delete all row in that table. Following code will delete all rows in the table:
public async Task DeleteAllReadModelEntitiesInTable()
{
List<ReadModelEntity... |
8eabda5a5cdac5a917f91e5664a887632441b9ed0ccef98d631cead7350f52f8 | ['e4643121366c4ea1b01bab18fe6b9a87'] | I'm trying to upload a file via Google Puppeteer on a page with multiple (three) Dropzone instances.
The first instance accepts video files, while the other two accept image types.
To upload a file to the video Dropzone I'm using this code which is working fine:
const fileSelector = '.dz-hidden-input[type=file][accept*... | 021d926a99302f9454072153445be4c42a7458a22f3f04656665403711f64896 | ['e4643121366c4ea1b01bab18fe6b9a87'] | try this
<?php
$profpic = "darkbg.jpg";
?>
<html>
<style type="text/css">
body {
background-image: url('<?php echo $profpic;?>');
}
</style>
<body>
<img src="headergiflong.gif" style="width:100%;height:30%;"><br>
<div style="width: 100%; max-width: 960px;">
<div style="width: 50%; float: left; b... |
c2daf59d2d41a8362683c8c72dd717017e329e2b0165e2c7cadf5e70e29d79d2 | ['e470be7a40a4458a8fc8009962dc55c0'] | Trying to do if statements and getting the error "Y cannot be resolved to a variable"
System.out.println("Hotel Tax System");
System.out.println("Custom Tax Rate Y/N");
Answer = S.nextLine();
if (Answer = Y); { //getting issue with this line
System.out.println("Specify customer tax rate:");
... | 767cb52f92a0201cd0ccda89b546f4493575faecd0cf99000d400aa0941c86dc | ['e470be7a40a4458a8fc8009962dc55c0'] | I am doing an assignment and part of it I need to loop through a text file and output information depending on certain search terms which I have done, but after that I need to edit the document on one of the lines that the user would accept, my code to edit the document is:
int y = null;
PrintWriter write = new PrintWr... |
96f92c2b18a3c634d2fe5c22f3d7ae8928eca6981c929702e5ede2755ce14c17 | ['e4729a6b3db64031b5d71bc4a9656261'] |
OpenCV Error: Assertion failed (scn == 1 && dcn == 1) in cv<IP_ADDRESS>demosaicing, file D:\Build\OpenCV\opencv-3.1.0\modules\imgproc\src\demosaicing.cpp, line 1630
Traceback (most recent call last):
File "C:/Users/hedon/PycharmProjects/deneme_1.1/ilk.py", line 11, in
gray = cv.cvtColor(img, cv.COLOR_BAYE... | c74e7a99e6519b7d8b72931a3ff3489d2d7f320e2c837dadf7b9f7240010c873 | ['e4729a6b3db64031b5d71bc4a9656261'] | Download numpy+mkl wheel from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy.
Use the version that is the same as your python version (check using python --version or python -V). Eg. if your python is 3.5.2, download the wheel which shows cp35
Open command prompt and navigate to the folder where you downloaded the w... |
5a2f5e62856d0a2ca78907138f5f69d9ad12a16a430c2b9f08a340dde6280efd | ['e47404566777437aafc2d79c13526a2c'] | This is a runtime linking problem. The runtime environment is not able to find the library libFRead.so, which is required by libAppARMTest.so
This problem does not arise at the time you execute ndk-build, because you have explicitly stated the path to libFRead.so in your makefile, so the compilation works fine.
Try to... | a8b6917f9d31d49dc6291632449c180352baf1206578427cb6bc5e62c247ae66 | ['e47404566777437aafc2d79c13526a2c'] | My setup is as follows:
I have an android project A, and a java project B. Project A uses some files from Project B.
My development environment is eclipse, and I have included Project B in the build path,
as well as marked it for 'Order and export'.
The project builds fine, but at runtime I get a
java.lang.NoClassDefF... |
145885b88eac23efb586a643c3522cbe5f4d85be6d9395208449fac754071e95 | ['e47643d03bda4fd19c856cff3278d870'] | On my servers I have log rotation and a backup script which, besides all, backs up the entire log directory.
For log rotation I use logroatate on Linux and newsyslog is used on BSD. For log backup I simply cp -Rf /var/log/ /backups/
From time to time the backup script fails because of a race condition occurring when l... | 0bdc0bfa7eb29612fb15e998f141c910b3ee32967a1d61fc836a7c24d4321ea4 | ['e47643d03bda4fd19c856cff3278d870'] | I would like to know how to calculate the probability of finding an alphabetically ordered subset of at least K elements in a set of N alphabetical elements.
For example, for a set of N letters from A to from A to E ordered randomly, what is the probability that I will find a subset of at least 2 alphabetically order l... |
6ccc792410c5ec9406e9b9a064cd1c95004424e81f64a4b07d959c67e97ba72e | ['e47fe9378ede4dc882d885e994188fdb'] | I have come across an article that seems to have been published in a book that is only available online with restricted access, and the paper is not reproduced e.g. on the arXiv. I am writing on a related topic, and wanted to refer to this paper in a sentence: "the [hidden/elusive/difficult to find/ etc] paper ... by .... | ce713f528a1076d751c8e25293801aaec11624a6f38b39995b2b922fb04b843e | ['e47fe9378ede4dc882d885e994188fdb'] | I am unable to reach one of my faculty member through email, phone call or even in person, who have agreed on providing me with a recommendation letter. He is not replying to my email, phone number is unavailable and even not coming to the office. I do not know what is wrong or what is the matter, I might miss a deadli... |
0c564954052d6a881c777ade81bce9c0d9544ba78112b9eb13517739a729f7a9 | ['e481b6710dcc407ca9876f9beadfb8ac'] | Hello I would like what is the x value that would give me an specific numeric integral.
So far I am using scipy.integrate and works ok, but given a integral value is there a way to know what is the x that gave that result?
let say I have a function f(x) = |2-x| 1<=x<=3
I would like to know what is the x value that giv... | 498e8f7d80bea72be260547d791a34265fd9bb007c2aaefd7e3dd6dbc0badb40 | ['e481b6710dcc407ca9876f9beadfb8ac'] | I am trying to draw a frequency bar plot and a cumulative "ogive" in the same plot. If I draw them separately both are shown OK, but when shown in the same figure, the cumulative graphic is shown shifted. Below the code used.
df = pd.DataFrame({'Correctas': [4,6,5,4,7,2,8,3,5,6,9,6,6,7,5,5,8,10,4,8,3,6,9,5,11,5,12,7,7,... |
66952fb383ea581633edd9863c32797d563b1c4931b2b0e7c856bc52f7662831 | ['e48f4458867c4a5e9a3dc2d245e61ca8'] | I ran a random forest classification using the randomForest package. When it is finished, I typed summary() on my classifier and it appeared that the ntree parameter was left equal to 1, when I was told that the default value was 500, and it could be changed manually in the argument of randomForest, which I tried unsuc... | 65a52ca2a0fdf9b3d394fd5d7552a0ca9fb4249403570873949ab922f2b16ea2 | ['e48f4458867c4a5e9a3dc2d245e61ca8'] | In Form Recognizer documentation, it is said that " You should have a minimum of five filled-in forms (PDF documents and/or images) of the same type/structure as your main input data ". My data is mostly tabular, but some differ in number of columns and what is inside of them. For instance, some are like this -- but wi... |
bcfafc30eca0704e1a9961d627e83860de53782bd83f274627b0d23d1b4f11a2 | ['e49678ccbab24f7596e14812a4ed8dee'] | The problem is in the gradle configuration. Your project is trying to compile the espresso jar twice.
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile files('libs/espresso-1.1-bundled.jar')
}
With this configuration, the espresso jar is compiled both by your main project and ... | 5b3c5c8b5317ceaec60544a4240ba398fbdba29dc081598e47daf2d06eb6a59a | ['e49678ccbab24f7596e14812a4ed8dee'] | The problem is in the cast of the Presentable to TextAndImagePresentable. The guard let succeed, but creates an invalid value (I don't know exactly why).
One way to check it, is look to the console on the execution of the commands:
print(textAndImagePresentable.text)
print(textAndImagePresentable.image)
print(textAndIm... |
2adf7904eed9df948769297b3e3a8ff4371d2fae5ee2f1ffd22f3eb8c87c614a | ['e4b1a41c77a94e6abe1611166fa13f27'] | Let's assume this:
I have activity1,activity2,activity3. The app will start with activity 2.What I want is that when the user makes that fling gesture to right activity 3 is shown,when to left activity 1 is shown and so on.
I have a code from the web but I failed to implement it.Mostly because is incomplete,and I have ... | 603f70c7ddac62e25d590fbcc00d2b92d12357f1686304cf6c90a811f4478782 | ['e4b1a41c77a94e6abe1611166fa13f27'] | Ok this got me really mad. Is there a restriction for services with countdowns?
I tried so many methods to make a countdown timer work in a service,but it always fails. It just never gets to the finish() part!
So is there a restriction with services and countdowns or what? Please help me...
Here is the service:
public ... |
a615c4d15883bd9205a8a0e27cfd8669ef769ec02b92e7187b499b4b63205970 | ['e4b4d3c3c4824b18a27edc6be865c348'] | Can you explain me ,why this code:
from django.http import JsonResponse
from django.core import serializers
def getData(request):
arr = []
with open('test1.txt') as test1:
arr.append( test1.read() )
with open('test2.txt') as test2:
arr.append( test2.read() )
serializedData = serialize... | 31fd8f16865db4df3ef904a257b1e640b4b585ae0ad26934856ab73dd9606aec | ['e4b4d3c3c4824b18a27edc6be865c348'] | I have one question, namely, what is the best way to run any function on each python application in the project?
For example, I have 1 project - bbCms which contains 2 apps - articles and board.
And I would like to run function doSomething on each page of these apps.
On PHP I can create file, e.g. functions.php, type... |
1f73b259c3132468c9e8e05a41add693dafba87965622a203ac9234e48eedf91 | ['e4b6edda12844b41a90dd95953962ed7'] | I'm doing it in my app, but more complex. I have a web services in Java to get last terms for locale in database. In android app I'm creating a sqlite table for terms with terms_id, terms_description and locale. terms_id in order desc define my last terms. I get default locale on android with Locale.getDefault().toStri... | 9e36d25050a725b9265497e40ddfa9f25f752216d238e5857dd77df249d15997 | ['e4b6edda12844b41a90dd95953962ed7'] | I think that you can upload the image to server, then show it in the browser, then the user will be resize it using javascript, but not real resize, only capture the coordenate of it, then you can use the coordeante to resize the image in the server and save the new image (thumb) and discard the original.
|
ea6940cdfc66b0c3789a8c8c605ed7f3e02be61eaabcb67bc5d53e8265d2049e | ['e4bccf636d6542c5b3cf47ea4703193b'] | Suppose I am trying to build an app which returns synonyms via Wordnet based on Lucent.net
A customized Synonym Analyzer and WordNet Synonym Engine built completed and it does work.
A synonym dictionay that downloaded from http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz is currently I am using,
but unfortunate... | 5c676653e5d447a6a3785961846a3e4cb7133c6ed65820b5ee9f22fcd855f7a2 | ['e4bccf636d6542c5b3cf47ea4703193b'] | public class Test{
public string name{get;set}
public short age{get;set;}
}
....
var type = typeof(Test);
var ins = Activator.CreateInstance(type);
type.InvokeMember("name", BindingFlags.DeclaredOnly |
BindingFlags.Public | BindingFlags.NonPublic |
BindingFlags.Instanc... |
a066c391ff9f0bca5b5e2ec79658f4cb8c6e71adf2fe4ae4009aec1aa1e29d36 | ['e4c2af5057934f94a014a04d54b97327'] | When I try to map String in a source to Integer in Destination via Enum. ModelMapper fails.
Source
public class Request {
private String classification;
}
Destination
public class DTO {
private Integer classification;
}
Mapping between String and Integer is defined in ENUM
public enum Classification {
POWER(... | 50ae92bfd7fbe0098beba722902b6e3d0cb7d38a696de6e98fdab5cb8bcb1fe9 | ['e4c2af5057934f94a014a04d54b97327'] | I'm having a REST API (POST Method) that produces MediaType.APPLICATION_OCTET_STREAM and the response header is also set with the following code.
@Path("/file")
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_OCTET_STREAM)
public Response getFile() throws IOException {
.
.
.
ResponseBuilder... |
28b95a3d866983d65b76b5a9a39d61343701398c2b17490b199ca777cb943953 | ['e4cbd686a57f4dcaac444659aaed3d1f'] | I know this has been asked multiple times but the solution that everyone reaches (and the documentation) doesn't seem to be working for me...
Trying to remove first character
Code is {{ picture.picture_path|slice:"1:" }}
but it still comes out as ./DOF_mrD5T49.jpg. Trying to get of the leading dot. Is it possible that ... | b1018c17d19ecc6ff1c9a18bc2dfd3063c5dc8f89081abd7be960857ac00d544 | ['e4cbd686a57f4dcaac444659aaed3d1f'] | On my Wordpress site using the Genesis framework and magazine pro theme I'm trying to add a widget at the top of the homepage within the content so it's not above the sidebar. I've tried the following:
add_action( 'genesis_before_content', 'before_home_top' );
gives
<div class="content-sidebar-wrap">
<div class="befor... |
000323228bee2ff64c816482b8ef1122590b1800504f772581f86d32559b407c | ['e4e1a1dfaed440e3b3006a437fa1cc15'] | The computer comes with an AMD Radeon HD 6770M 512 MB discrete graphics card. According to this, the earliest iMac to support 4k is Late 2013. By then, I believe iMacs were using GeForce cards and I'm also not sure they're actually physically discrete, so I'm not sure I could just swap out the card for one in a later M... | b681a96a68cecd828c1942a750556b72c7004432d1c0296a8ee98b2efe36a3ad | ['e4e1a1dfaed440e3b3006a437fa1cc15'] | Saw a short video; what <PERSON> does is NOT great; [here is the docs](https://www.godaddy.com/help/manually-forwarding-or-masking-your-domain-or-subdomain-422). Now, [Here is an article that explains some the cons of using this](https://www.easyredir.com/blog/why-you-should-not-use-url-masking-forwarding-cloaking/). I... |
d45a7233ed2d982642a6cdb7964f7c030a9a262c75b7e7c18ddba4e0c6f56d5e | ['e4e1e8cd811848ebb8a482801f3e6d0c'] | There's no issue and your code works fine.
package com.stackoverflow;
public class MainClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
String input = "<PERSON> eching trägt <PERSON> das volksfestmadl stadt freising dürfen begeistern für tanzsport ";
//does not work
... | 76b07c7c8fd8725dab9ebe909ace29f476c5b8fdf8d034bf880be91fc5e9e2c2 | ['e4e1e8cd811848ebb8a482801f3e6d0c'] | There are multiple ways to achieve this.
Use a callable, instead of runnable, as callable's call method can return result
Stick to your approach, but before returning the result, call thread.join()
thread.start();
thread.join();
return b.get();
Drawbacks
If there are thousands of SMS to be sent, it will create those ... |
13997e81202c2c4c0fd576bb3efd0e5672741d4592106fc1036d2a75903657e3 | ['e50203a605f94c62941df3941232f135'] | I didn't entirely get your code but here are some observations.
You can change the dataframe values by using:
df.astype(str)
They will become 'object' type, but that's fine for assignment/comparison with strings.
To iterate over a dataframe you can use:
for index, row in df.iterrows():
That will return the index of t... | b4caeb510b8a92f541d8d62c77340d2db097b381a534467f7986765fa8145c70 | ['e50203a605f94c62941df3941232f135'] | Probably the elements you're trying to find were not found.
You can check that by commenting
name = name_box.text.strip(0)
price = price_box.text
And verifying the values of name and price
Also, make sure you check the HTML in soup so you make sure the request was successful and the elements you want are available.
|
2de3fdde839374c8983fb01dd02080d0bb91a3f5cc53872a72124ebebc2e7d48 | ['e502db2b37344a90b4519ee37a94abd1'] | transform-origin:[x][y]
replace x and y with percentage values like 50% for mid, 0% for start and 100% for ending positions respectively. I’ve made a pen for helping you to understand this once and for all.
I wrote a complete article here: https://medium.com/@RajaRaghav/understanding-css-transform-origin-property-2ef5f... | e6d6a61e10441a874054cfdb74b63f6437e8e5a7828b9fd40f38f1aaa92c4dac | ['e502db2b37344a90b4519ee37a94abd1'] | transform-origin property compliments the transform property. It allows us to tell the browser exactly at what coordinates we want the transformation to happen, using just CSS. Here’s how:
transform-origin:[x][y]
replace x and y with percentage values like 50% for mid, 0% for start and 100% for ending positions respect... |
7902eb3450ec6329af8b590d59674997305b7a3dbaa08e5c49f9fe50909a7fbc | ['e506ab21cf594c379d288b8780ddf73c'] | Upon more testing I found that it can be read using the framework. I increased the AVCaptureSession resolution settings and increased the AVCaptureDevice videoZoomFactor and it was able to pick up the DL PDF417 code consistently when properly lit. Still a difficult in some situations but I will play with built in set... | 8a4fd80ca433201353345fc2af8aaab2a90cd2519194328e2060af5cf419be24 | ['e506ab21cf594c379d288b8780ddf73c'] | I'm trying to authenticate the user. Authentication through PrincipalContext works fine with the correct username and password, but when testing with incorrect credentials, ValidateCredentials throws a System.Exception rather than returning false. The exception simply states that 'The user name or password is incorre... |
e5c7676cc8d91b291c69ec17b7e702110e454ae43cda644eaa5be58caaa9d9df | ['e50be064157f4b2d8a7691c802d5090e'] | I am just getting started with the Fluent registration for Castle Windsor and cant figure out how I can reference properties I have defined in the properties section of my XML configuration file when registering. So I have this code to register a component.
RegisterComponent(componentId, Component.For<ConnectionConfig>... | f4af19169965758edfbf5aab579e46df6398c174e04175e0cb506617f73a8830 | ['e50be064157f4b2d8a7691c802d5090e'] | Wow.. a particularly modern issue, then! 1929... That description seems to match pretty much perfectly. The floor has been down for at least 15 years, probably a lot longer, and this only started this year. I guess preventative removal of the shards, sanding (glueing?) and then re staining might be the way forward? |
dd73c0a95123e8403fee5709710ac5222861d984b7b698df15738e23065a89a6 | ['e522b86a8d45412fab7e59b591d12b88'] | I am new in R programming. I need to solve 1 problem in R. I need to simulate the following experiment in R.
A poker hand consists of 5 cards dealt from a conventional pack of 52 cards, the order of the cards not being important. Find the probability that a given hand has at least one king and at least one queen.
I k... | 325574ebd0df75016099369f564622729bd06d97f67843915f9525a070f8e0f0 | ['e522b86a8d45412fab7e59b591d12b88'] | I am using oracle 10g to create a database with STUDENT as table. now i am inserting data into STUDENT table with following code.
I have used following query to create table STUDENT
create table STUDENT ( Student_id number(6) primary key,Name varchar(20),Last_name varchar(20), Ssn number(10), Phone varchar(15),Address ... |
764c43a70ca0e973033121485db6739fca4195e054401fc38ad7b89277e3110c | ['e5369fc8b06e4cef920249adf57a9ff2'] | I'm working on a regular expression that validates the pattern from A01 to A99.
I came out to this solution:
^A(?(?=0)0[1-9]|[0-9][0-9])$
Then, when I'm trying to implement it into JS I get an error that says
Uncaught SyntaxError: Invalid regular expression: /^A(?(?=0)0[1-9]|[0-9][0-9])$/: Invalid group
at new RegEx... | a73652e3659a2bfe945bcb284019a23fd5edce8d03f6cfc740fb9029d84ab82e | ['e5369fc8b06e4cef920249adf57a9ff2'] | I'm working on a model in MySql Workbench 8.0, when I click on forward engineering and try to generate the script of my model I get
Executing SQL script in server
ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIS... |
3de15742cdc3d5e935eb0044eb5d6eaa8b0c4ba025c4ef43a009310ba091d6bb | ['e5479e6bdd16492085a6379513216b35'] | Actually, I have a posteo-account and so I just wrote the support team an email. They told me that the emails wouldn't be deleted if IMAP was used.
(Note that if you set up a posteo-account, it is probably better to just delete your old mail account, just as I did.)
| 9eedc88b095d0a103e387b5f3c2f31191ec5221ded508aae790b27f112e6122e | ['e5479e6bdd16492085a6379513216b35'] | In the answer of another question of mine, I was told that the official version for creating a bootable USB flash drive for Ubuntu is Rufus:
https://ubuntu.com/tutorials/tutorial-create-a-usb-stick-on-windows#1-overview
Now, I was just wondering, would the data be lost after every reboot?
Also, I read about the terms... |
7d40cfe1f78d1ba99d1936aeed1a6ee02cd5105eb6b4f981e1e6954be5c15fae | ['e54bce66adf24ee0bd3ab629bbfd211c'] | My react-native project has been working well until I upgraded react-native from 0.17 to 0.18 and then 0.19.
Ever since the upgrade any module (e.g. app-module-path) that I:
successfully install using npm - npm install --save app-module-path
add require('app-module-path').addPath(__dirname); in my code
give the follo... | 2cffd0db261ba2ba0e7e2bc38f4988ece1a3206938b743be5318570c64fc5a1a | ['e54bce66adf24ee0bd3ab629bbfd211c'] | I had tackled the same exact problem with Rails and WP for quite some time.
My configuration and result:
Rails app is hosted on heroku (www.sexycrets.com)
WP Blog is hosted on another server (blog.sexycrets.com)
When the browser requests www.sexycrets.com/blog he receives the same html page that he would have received... |
9577a7ab5bccf4400cdf31b56f0166beda8f41cc24855644ed374bc5e0c0960a | ['e55313264e9f440da0de7883b766a0f4'] | Is it possible to run one Create Item action regardless of which path the preceding actions take?
The image below shows what I'm trying to accomplish. Basically, the 'Last Substring of Rank'action turns a variable into an integer. If it fails, it takes the left fork. If it succeeds, it takes the right. Both forks t... | b7a026ab74e01056859f3424e8571df6f81fd17901d2d8064f4ed7040138d40c | ['e55313264e9f440da0de7883b766a0f4'] | I have a PowerApps gallery that lists data from 3 different tables and have it normally sorted by the following:
SortByColumns(Filter(Personnel, !Dismissed, txtMSSearchBox.Text in MemberName), "MemberName", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))
One of the fields is displayed from the below:
L... |
d5bfcda539214791a4d7ed4d9dbb558ead20b0917ae04bf143a6f33ae4355d3d | ['e5640a9f49f7478ba17c38fa365964e6'] | DATA test;
INPUT name$ group_no$;
CARDS;
<PERSON> 1
<PERSON> 1
<PERSON> 1
<PERSON> 2
<PERSON> 2
<PERSON> 2
<PERSON> 2
<PERSON> 3
<PERSON> 3
run;
How do I find the percentage of people within each group. i.e 33.3% in group 1. 44.4% in group 2 etc....
I tried using the code below but it was not sufficient in answerin... | 1ac1b6050fdd2a78eb129ba3514b499ade51a32e5b7ff239904f16c281a96dd7 | ['e5640a9f49f7478ba17c38fa365964e6'] | How do I delete multiple column variables in SAS which just state "Null" but are not blank? I have created the following table;
DATA test;
INPUT name$ favourite_food$ occupation$ favourite_sport$;
CARDS;
<PERSON> Nurse Null
<PERSON> Lawyer Null
<PERSON> Teacher Null
<PERSON> Doctor Null
run;
Since the columns with ... |
0502f35e3d1645ee5430dae94f21007e4961694c6fde254c41211edef483732c | ['e5715e5f9c6a41c5b52221620b41d7bd'] | I am using BitVector in Python. I have to perform division over two bit vectors.
I have used the code below:
from BitVector import*
mod = BitVector( bitstring='1011011' )
n = 6
a = BitVector( intVal = 9223372036854775809 )
quotient, remainder = a.gf_divide(mod, n)
print(quotient)
print(remainder)
The output that I am... | 3e88652784b1b5482d66d12c3f5695a4af62950b8f1a2dcda4f91579e1398770 | ['e5715e5f9c6a41c5b52221620b41d7bd'] | I am new to python programming. I am using spyder to run my code. I have generated a very big data in python after 3 hours of computation. Now I want to save my data. One way of doing this is calling the pickle.dump() function, but in order to do this I have to run my program again and this will take another 3 hours. I... |
936742a647e79ccb41c079103fdd2cc5cc8ea43cc0261c52d57af5925ab6b48e | ['e57683514e334df3a15d3c19b24f3672'] | I am trying to import 'multiprocessing' and using python 3.5.3 but its gives error
Traceback (most recent call last):
File "ssser.py", line 7, in <module>
import mutiprocessing
ImportError: No module named 'mutiprocessing'
when i try to install multiprocessing module then i again error occure
i am using followi... | c5ef7f1a9bdf389c259bfdf685d5e6f5545b5153ee57cadc17b6cd8cb951ca29 | ['e57683514e334df3a15d3c19b24f3672'] | I am new in python and socket programming. I am trying to send data to the client, and the length of data is unknown. After receiving all the data on client side, the program is not terminating because of a while loop (See below code). I also use the command (if not message: break) but it is also not working.
The secon... |
38776bfd73c6ce52519c33dcc49dab466f244f2c0cd13773151f9a3a8c2a719c | ['e578c24190ad459687c1c7a67d044e55'] | I have also faced similar timeout scenario. Issue was not doing connection.end() after connection.connect(). Connection.end() should be done before callback.
Working Code:
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'host_name',
user : 'root',
pa... | 2362830d29faf0277ede396340a1e852eb0263b2eb815fe9fb976163aec8472d | ['e578c24190ad459687c1c7a67d044e55'] |
In the console, I see that sbt is trying to pull two versions of sbt-eclipse. Please make sure you are using only version, check:
plugins/plugin.sbt
plugins/project/plugin.sbt
PROJECT_DIR/plugin.sbt
For simplicity you can just use only one plugin.sbt (../plugins/plugin.sbt) and delete others.
com.typesafe.sbteclip... |
fa8f9e14bca0476991b12ff5ceba87e98be663e921036614285b0c1e9a9fd43f | ['e579284795d94599a5089f7a5ad39ed8'] | Generally said, I am conviced that the SSD is OK and healthy and is worth to try. Only its partitions are somehow locked by ASUS to prevent a user from scewing up the bootability and F11 - windows self repair/recovery ability etc. HDD Sentinel that I used to read S.M.A.R.T. data said the SSD is 100% and performing well... | b093531d3fee0c4af1042a812baa6d484e34a795e089e9ed600b060b1a254da7 | ['e579284795d94599a5089f7a5ad39ed8'] | I'm working with another developer to develop a sort of social networking site, where people can make Friend Requests similar to that in Facebook. However, he's storing each user's friend as comma-separated values:
user_id | user_friends
101 | 102,103,105
I'm convinced that this is very inefficient and error-prone... |
c509b873d00e9c1cea81aa8fd250fcfba84d445608c5a24d2330d4b778243515 | ['e581d7663adc4a9a853b5d1c9a88a7a9'] | I don't quite understand the purpose of the third constructor in LongOpt. The overview describes it as follows:
If the flag field in the LongOpt object representing the long option is non-null, then the integer value field is stored there and an integer 0 is returned to the caller.
Excerpt from the above example to ... | 3e6c76ccb40cdfb85b7ef5c38d3330f86da66304557f970d915f0c9320422803 | ['e581d7663adc4a9a853b5d1c9a88a7a9'] | I'd like to preserve the expected indentation in my source file when using a heredoc but, at the same time, have the contents of the here document not indented when rendered. E.g. the following
// myscript.groovy
if ( someCondition ) {
println """
some multi-line
content
"""
}
will print an indented output e.g... |
f0df2ac97232cb81993b5e719fdff4ad6169b4effb80c594ac02802666e722c4 | ['e58ab10abab54430b4d3d25abaabbcc6'] | Error - *** error for object 0x7ffeefbff360: pointer being freed was not allocated.
I understand its better to use vectors, but our prof wants us to use it this way.
My unwrap function is giving me errors where I want to release the memory, also when I want to print the pattern using the for loop in the display functio... | 74e5a54c50bab70fc01feafe1674ecbc6041a5d5227ab8c475f29b880dbf6037 | ['e58ab10abab54430b4d3d25abaabbcc6'] | void sortraceTime(struct RiderInfo *riders, int size){
struct RiderInfo swap;
int i = 0, j = 0, n = size;
//Sorting using the Bubble sort technique
for (i = 0; i < n; ++i){
for (j = i + 1; j < n; ++j){
if (riders[i].raceTime > riders[j].raceTime){
swap = riders[i];
riders[... |
b8d1182670ed955bf3d932a330daba61491215faa4e582ed1b00136f31c59ed7 | ['e58acc63fb5c40fba11570b9ba8fb49d'] | Is there a performant way to assemble a JTS Polygon directly from an array of doubles?
Currently, I am
Looping through array of points to create an array of Coordinate instances
Creating a CoordinateSequence from the array of Coordinates
Creating a LinearRing from the CoordinateSequence
Creating a Polygon from the Lin... | 99248a60fab69073450c371bd4ce9cae3a67e451259aefe2cc9de28f5c08e6b8 | ['e58acc63fb5c40fba11570b9ba8fb49d'] | Instead of obfuscating the package as suggested by @user2443532, I have found it easier to "shade" the conflicting package instead of obfuscating it - unless you actually need obfuscation. One easy way to do this is to build your package using Maven and use the maven-shade-plugin. Internal calls are modified automatica... |
eadee204998acae5182dc00e8588d5d3b6b96dd42f99712a479fc467a42cd81c | ['e58b0b804aca4e9fbeaea356e5e94088'] | I use this online tool http://iiistudio.com/convert2svg/
It works the best and save the result in SVG format you can directly open with Adobe Illustrator, and it's made in flash application. You can download the swf file and it could work locally without server backend anyway as I guessed it has php or js!
As I tried ... | a3b88d6d2bb6fe921731cf0fb326cfdaf1cb02867c6f772bf6530f419be18aa2 | ['e58b0b804aca4e9fbeaea356e5e94088'] | #coding=utf-8
import os
#Function to create a file list in the folder
import os
s = os.sep
path = r"F:\folder_mp4_files\temp"
def create_file_list(path):
return_list = []
for filenames in os.walk(path):
for file_list in filenames:
for file_name in file_list:
if file_name.end... |
f06967ecc33d931d608a4f16723a245e060c392d73c5e84460f26535b317136d | ['e58e4c52438f4c2da0158b39842f1026'] | There appear to be some magic numbers in the code. Do you mean `base` everywhere you use `10`? Would you please comment your variables so that we know what they are supposed to represent and please comment your code so that we know what you are trying to do? The code makes no attempt "to collect them in an array", no a... | c495ed10176798b41c9127f88bc2eb974d60ce210ee554a5fb69772add8f666c | ['e58e4c52438f4c2da0158b39842f1026'] | Agreed that the C library `rand` function is cryptographically weak, but this isn't cryptography. Even knowing the exact random algorithm used it wouldn't help you crack the password, particularly as you don't know any of it. Taking the remainder of the generated number mod the length of the character set would further... |
6f86369b7f15aab5640a7c2d0ad818edfebd8ea9fe0b459365b9386af789042e | ['e5991fd9906c4895bca9285cf5ea3bc0'] | I have found a way to do this.
The trick is to think of the URL as a search engine.
Then you can use an extension called "Context Menu Search" to configure it as a right-click context menu item.
There are actually two Chrome extensions with this name and both seem to work.
They use a separate list of search engines... | 14d422095618646250059c19e3867ff9fa5178280bead7588ae39ee9070b07e2 | ['e5991fd9906c4895bca9285cf5ea3bc0'] | hi I am looking for a way, using Chrome, to jump to a URL based on the text that is selected. e.g:
I select some text from a web page with mouse (e.g. the word "item")
I then want to go to a configurable URL based on this, e.g. www.preconfiguredurl.com/search?item
thanks for any advice.
(this reworded to be function or... |
51693d44a54242bea7c9ab2eba980d727c4626250f1e710ace8d9c9428eda4c9 | ['e5a7ba44c59443fabbd757f3a462067a'] | We've just set up one of our projects in TeamCity (7.0 (21241)) to label our VCS when the build is successful.
This works fine in that we get Mercurial updated with the appropriate tag. But, as this creates a new Mercurial revision, it's also causing the build to start again as TeamCity is detecting a change.
Any id... | d650036988958d217dcc76f0f4ebfd7978caeb4da124708971fcc7f90b0bfadd | ['e5a7ba44c59443fabbd757f3a462067a'] | I currently use Visual Studio as my development environment and would like to be able to navigate through my angular code in a better way.
For example, being able to ctrl-click on an ng-controller to automatically take me to the defined controller would be great - something like 'go to definition' as you can do in C#. ... |
7fd6d022da72bde48f4e08b57ccf19214fd6c75cfe93b3c2e2ce6c45450d2cac | ['e5aad7f54e714f30b889a3906fde68d7'] | I have a aspx.vb program that checks a table to see if a session exists and if not connects to our ECM software, consumes a license, and updates a table with sessions information. If the user tries to log in again it should find the existing session and still only consume one license.
This works 99% of the time except ... | 94b5e52572ab82093831f60d07c6fd3affd8670578888d7563a279ef92279f6c | ['e5aad7f54e714f30b889a3906fde68d7'] | I have a javascript function that is executed onClick via jquery. Within this function I am calling a Web Service "getTestConnection" which returns a True or False and I have confirmed it is working but keeps returning variable undefined.
$("#btnNext2").click(function() {
var postData = {}; {
... |
02843a96032285ad0bbf041de6d676502746bd58a0a8cd561858917ce4ba155d | ['e5b7e49d7fcd4943b4ff66ff6664881d'] | Consider,
A query is taking more than a minute to retrieve the data (Due to larger volume of data) from the database.
I know that, we can set "timeout" attribute in the select tag (For a single query alone) or "defaultStatementTimeout" attribute in settings tag (SqlMapConfig.xml - For all the query) to forcibly termina... | 6ac8b522745fdddaf9ee5bc529eb5ead88e65fab296ec3cfb24b6dc5ff250035 | ['e5b7e49d7fcd4943b4ff66ff6664881d'] | Folks,
I am able to resolve the issue.
This problem occurs when my RAD JRE System library set to jdk7 and so it is resolved by setting RAD 'JRE System library' to 'JavaSE-1.6' (Properties --> Libraries tab --> JRE System library --> Click edit & set JavaSE-1.6).
The reason might be jar conflict between sun jdk7, IBM(xm... |
e2aad366bfec17709dd7a6a00d2e7fb44b7eb50be7fcfe409aa9dd67bb9ea1eb | ['e5bc21c73c4242cea76269d7198a0450'] | в общем когда то работал freegeoipDOTnet, при заходе на сайт определяло страну и выдавало на их языке контент, было так:
<?php
require_once 'maincore.php';
require_once 'countries.php';
$tpl->assign("current","home");
$tpl->assign("title","Home");
$geo = json_decode(file_get_contents("http://freegeoip.net/json... | 9b78cc199102ef47153ddd92c8752681561b6d382627f4ac1422ad8a4f1cb2a6 | ['e5bc21c73c4242cea76269d7198a0450'] | I don't understand why this hasn't been addressed before, can't seem to find much info on this on the interwebs.
I am sometimes listening to something on my computer and I want to play it to my XBOX 360 or Sonos (Multi-Room Music Manager) and I can't do that in a simple one-click way. I would want to simply be able to... |
394ccfcf40e152422905df29a5e7ed91099d66b9832286959670a5626b039e67 | ['e5bcf6ba1dbb496991c81771e6922cfe'] | I am getting execption when i am running cruise control by iis or cctray and below is ccnet.config.i wanted to run my scrip through cruise control .please let me know how to relove this issue
<project name="Visteon">
<webURL>http://localhost/ccnet/</webURL>
<triggers>
<intervalTrigger sec... | ef0822d69d876b7ff57dc74cbeaed6cc7ca371f202d189261fde528007f13f4d | ['e5bcf6ba1dbb496991c81771e6922cfe'] | How to customize my CCNet UI ?.At present I am reading my msbuild scripts through ccnet.config. revision no and all target is already set in scripts.but i dont want to specify revision no in scripts, it should be mentioned in ccnet UI.so when user enter any revision no in UI ,based on Reviosion it should create the bu... |
e7b52acac71d65cf2a5a20d85aa0bc4ce9d0e3b13a91c18f5b74c3d8031c5f05 | ['e5d697ee24454483a3d31ef10b12ec84'] | I'm trying to setup a 3 node GlusterFS cluster using Ansible and have run into some issues trying to setup the backend storage.
My current setup consists of 3 nodes, each of which has a 10G disk attached (/dev/vdb) in addition to the primary storage (/dev/vda).
I'm trying to use the official gluster-ansible-role (http... | 9f9326d4a545ec271ecb70d3f50e24cea27e145f2787f6847c7f2c79cb0f4d81 | ['e5d697ee24454483a3d31ef10b12ec84'] | Details of how this was resolved can be seen here: https://github.com/gluster/gluster-ansible-infra/issues/70
A few changes had to be done to get this to work.
There was a suggestion by the developers to use the 1.0.4 branch instead of the default branch.
The size variable needs to be set under gluster_infra_thick_lv... |
038272d1fedb70aa25d90eb1c64845f4f089f1f7f9efc6d47dce61811f86b174 | ['e5dd646cac824e58a4db69a8df8f1cda'] | Sorry I dont understand your question fully what is the code you have for importing this jar in the POM?
If the Jar you wish to import is called that in the repository and you are importing the correct file in your POM then you shouldn't have to worry about naming conventions of the JAR file.
What i believe you may ha... | 161ad73e700025f1b525c25eff179829fba492c5ab0f39f3c11ae97c755add97 | ['e5dd646cac824e58a4db69a8df8f1cda'] | I need some help here after a few days of trying to learn spring I have given up trying to find a decent resource.
I am making a Web Application and this is my first full application and I want to use Jersey to make it and also use Spring . I am Using eclipse IDE and Maven as a build tool.
With these settings how is ... |
f167cb4aa8031772de46f9038d2c83fc8b98c670702ceeda9f8485bac716e26a | ['e5dee7e6e8bf48bb84ac4a7a3d3ad78d'] | Our development team is pretty new to the scrum process, so I would like to help refine our methods to make better use of it. In particular, I noticed that the correlation between story points and task hours is not very good. That is, we often have stories of lesser points decomposed into a total task hours greater tha... | 9a15ca866d9a3cd45b5fbe2fdc9b996ef4955430b2315b43a7f60bdfe3aa71e3 | ['e5dee7e6e8bf48bb84ac4a7a3d3ad78d'] | In the "network" literature there are always explanations of this two reference models: OSI and TCP/IP.
The TCP/IP conceptual model is indeed a "fact" in terms of implementation. Anyone can find the implementation of several TCP/IP protocols such as <PERSON> IPV4 implementation.
My question is... is a specific protocol... |
db7024febfa138f2068652e17adfddffa427534624298f9f4e65e0e1a27ab71d | ['e5dfa8c490b24cea98ce9e799394a185'] | Why BindableObject.didChange must be a Subject?
Why cannot it be simple combination of other publishers?
I'm trying to implement BindableObject protocol.
I have two publishers: my model (movies) and latest error. I want didChange to emit new element when any of those do.
This is what I have with Publisher:
@Published ... | 316d1bac0361604b0464b2a967ebc8168d9be2a5064089ded8075a3a2f543689 | ['e5dfa8c490b24cea98ce9e799394a185'] | The thing is that each time you write a string in output file you write exactly 256 bytes, because sizeof(firstName) equals 256 (see your declaration, 1 byte per character * 256).
Correct solution is to use strlen function (length of string) instead of sizeof when you write strings. But strings in C must end with \0 ch... |
b9832edcc18ce7a163f54d4b19db5ebb20cf91e9416b3a13e8ddea7f55ff1d54 | ['e603612fb99e40c3b065b63294127eee'] | I had the zsh script
printf '%s\0' www/scripts6/lib/* | xargs -0 -I{} -P 50 babel {} > {}
and it worked (i think.). But I needed to actually copy the files to the scripts directory instead of scripts6. Also, I needed to add an extra path to the list of paths manually, so I tried doing this:
paths=$(printf '%s\0' www... | c16fb3990b0d28b04bf496945dc98bab70516ee5f1053e576755b4107c0968ad | ['e603612fb99e40c3b065b63294127eee'] | I am trying to install Linux Compatability on my FreeBSD 11.0-RELEASE-p9 #0.
I followed the guide at freebsd docs.
In particular, I successfully installed pkg install emulators/linux_base-c6.
However, the directory /usr/ports/emulators/linux_base-c6 simply doesn't exist on my system (and neither does the parent directo... |
326d1612eea641985dde7bc650dd3037c1b96a196c833dbdcf8519c1c4e88615 | ['e60ce4c8ea9c4077b1d9618b8c546b9e'] | I am attempting to build my own version of service discovery within ECS, since the services that I wish to scale up and down are not HTTP servers and so cannot be managed by ELB. Also, ECS doesn't yet support the user-defined networks feature of docker which would be another way of doing service discovery. As mentione... | 8c1d540ccc87e7b44dd2ccda9f98b609fb712fd92c77d9b0ff49ef87b7b1bd0d | ['e60ce4c8ea9c4077b1d9618b8c546b9e'] | Thanks for the idea, I ended up going a different route (detailed in my own answer). I do worry about having an ELB as a go-between for my clients and the servers - could it really handle any TCP socket connection, without interference? Also I don't like the idea of paying extra for each service - I plan on using sever... |
f81477d94149b6de7ef94372361cef0540c20c3b9946c8a98acb97f92736b00b | ['e614775b688a43f0b4239e46bc567c51'] | I'm doing my first project using in-app billing on Android but there one thing I don't get:
We need to keep the purchaseToken whenever the purchase was succesfull in order to consume it later on. But there is no way to recover it if we don't save it on the first time we receive it. So if for instance Android crashed o... | f88cd8b0ad476b8a11095e0f58dcacf71d7672ef713c88b5900e10bfaae8f639 | ['e614775b688a43f0b4239e46bc567c51'] | To deal properly for how long you want to have your button stay in your other color I would advise this version:
button.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch(event.getAction()) {
ca... |
30938996529c00830569fe1aaacd714a81100b09532dec78aee993c2341e2907 | ['e626fb71b9d54ca098e917270f7f3514'] | In c# :
private string StripHTML(string source)
{
try
{
string result;
// Remove HTML Development formatting
// Replace line breaks with space
// because browsers inserts space
result = source.Replace("\r", " ");
// Replace line breaks with space
// becau... | 11e6c2b1000e8653308574fe10208ab87925102256bcdd1a356680367f678766 | ['e626fb71b9d54ca098e917270f7f3514'] | To provide the header and footer property during printing, we usually handle the PrintPage event and provide these features in this event handler. Here is a sample for your reference. Although this sample is a printer class for DataGridView, you can take the logic of add the header and footer features.
· http://www.... |
d26498d080384f9d18ac472ef7f27cc12e1a9b0a8d43bf43974f6605a947f4cf | ['e62958eeacf94e7ca474320cc916a9f7'] | I'd like to make a grid that looks like this:
Dgrid with custom header cells
I achieved the above picture by defining a renderHeaderCell: function within my grid's column definition.
// Customize header cells
this._columns.slice(1).forEach(
function(column){
column.renderHead... | 20127eda33a98e5f35b2015cc1e7be8abc6e6265763c7437f40938ceafb6b7a2 | ['e62958eeacf94e7ca474320cc916a9f7'] | I'm following the guide to build spring-framework (including the guide to import into IDEA) with the hopes of building & contributing a patch to spring.
I'm able to build & test the spring-core module but I'm failing to build the spring-context module because IntelliJ isn't able to find certain symbols. But if I navi... |
998cbab256ec0313269b7b6c302ef0de59b8011c081599511d451f4fadc9e051 | ['e62dc4541ab64b8b99abbd8c26a4d969'] | Iam trying to parse rss feed from particular url...
here is my php file
<?php
//define ('XMLFILE', dirname(__FILE__) . '/editorial.rss');
$file = 'https://omni642stitches:<EMAIL_ADDRESS>/cms/mrss/feed/editorial.rss';
$items = array ();
$i = 0;
//$xmlReader = new XMLReader();
$xmlReader=simplexml_load_file($file);
$is... | fba09b6d574ac739d39bd41cc991202cfb239146af09bf0a6e093caf86e1c2b5 | ['e62dc4541ab64b8b99abbd8c26a4d969'] | Here iam getting this error if i don't use "before_filter :authenticate, :only => [:edit]"
Failure/Error: response.should redirect_to(signin_path)
if i add "before_filter :authenticate, :only => [:edit]" iam getting some other error like
1) UsersController GET 'edit' should be successfull
Failure/Error: response.s... |
0b3a8b40c540278c3066907c4d88ae21323bddf5a450aa023f17f0e6692521f1 | ['e6401195a3454f81972304fa74edf592'] | I don't have access to a real piano or even a reasonably authentic weighted keyboard. I'm doing the best I can for now on a cheap Yamaha E323 synth until I can afford a P105 and some lessons. I'm primarily a bassist so I'm making do with what I have. | 13ae4961741033598bef9810b235f54f385e2f5b6083d44813a582a9921a2b98 | ['e6401195a3454f81972304fa74edf592'] | Do you have a reference for your initial comment about 2AFC necessarily involving two-stimuli? Is it just because a binary decision task with two stimuli is called a discrimination task? Now that I think of it, I'm also curious about why the phrase 'forced-choice' is specifically used also... |
f5a1c126bfc353beddd8e503a0839fe1a6c4f9a57525bec011a556e7af8873f7 | ['e64aaa7a1d3a406f94fac57a42e7fdbf'] | If you have the JRE installad on your machine, then go to Properties of my computer > Advanced tab > Select Environment Variables
Then in the section of System variables, look for the variable "Path" and edit that, and add you JRE path there with a semicolon.
like
";C:\Program Files\Java\jre7\bin"
| 14178d3e2d3de7ace5a56d5769fa20157cdfbf3752a149c9e11e6ffd696e8041 | ['e64aaa7a1d3a406f94fac57a42e7fdbf'] | I also had this exception and tried almost everything i found. But then i copied the facebook sdk project to my workspace folder and then referenced it from there in my project and it worked.
Don't know why this happened, this made no sense to me as i was providing it the path while adding reference but anyways, It sol... |
c5d33082827539abb140a3d01b75cab43a2bfec3c32dc46668819af407f75ec0 | ['e674c746f89d487681d2f13c3b2190d0'] | I have similar problem. Ubuntu Trusty used to detect & be able to use this scanner. However, since sometime this year, it cannot even detect it. lsusb shows it's connected OK. One point is that you must correct it directly to computer. It does not like going through a usb hub. | f96c57a09d69d18a2d1133cb6bcdef398634b43b41070013b04a1faa3800a6ef | ['e674c746f89d487681d2f13c3b2190d0'] | From https://help.ubuntu.com/community/UEFI , Ubuntu on NUC's SSD is UEFI & EFI:
john@John:~$ [ -d /sys/firmware/efi ] && echo "Installed in UEFI mode" || echo "Installed in Legacy mode"
Installed in UEFI mode
john@John:~$ [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
EFI boot on HDD
... |
3621323e0470d44982e4869de7f9e99039f256874b4326b35d206d40086b5f48 | ['e68596b054154f78803dd4c8860b6d32'] | First of all, the x3d snippet you posted was malformed:
<IndexedFaceSet coordIndex='0 1 2 3' solid='false', convex='false'>
^
Second, your IndexedFaceSet only uses the first 4 coordinates of the Coordinate node:
coordIndex='0 1 2 3'
And the first 4 point only make a s... | 925b72d0e21074eac9741e55cce29d84a8724f34bf23fc81ee68cfd35008bc65 | ['e68596b054154f78803dd4c8860b6d32'] | I have a fairly large project built using Qt 4.8.7.
Up until recently I have ben using Visual Studio 2010 for development and debuging (using the qt add-in).
I have upgraded to Visual Studio 2017 now and am not able to properly, for example, inspect the value of a QString (only partially, like the first letter of the ... |
788477443a0ad07aeebb628af0348f7cd23b4a342ae6edc88c621deb6b09fc5c | ['e68ac7c12a88426fbcf94fdb7bcd631b'] | Ok... after MUCH research through Google, I was able to find that even with the corrections in V3 of PS, and even with the -LiteralPath operator, it was still interpreting the filenames with wildcards within the copy. Through much trial an error on my own, I found that the operator within the IF statement was causing ... | 188ab678ac17fabb27508eebb3af3a225e84b62583f4fe2897e4a1503db4be50 | ['e68ac7c12a88426fbcf94fdb7bcd631b'] | $Basically what I'm trying to do is:
I'm pulling information from a .csv spreadsheet that contains a list of files that I need. The problem is, the directory they are in contains 16,000+ files! I only need around 4600 of them (as the spreadsheet column only contains that many). I've actually gotten all that part of ... |
af2dba42768acf9dee5d74543293bc8958cb3392b808e1a793bb06c5d9b16443 | ['e6ba0cd4e6eb40e6b095ad210404cf5a'] | I have a NFS server at nfs.example.com:/users. I have a normal server at client.example.com. When I do su - user, I want it not only to automount /users/user, but I also want to create /users/user if it is not created already.
If I allows autofs to mount the home directory, I get the response: Unable to create and init... | c424bf3cafaaf92d44f4b053846b7ddc8eff016acf829e4e616e328a5eb6c81c | ['e6ba0cd4e6eb40e6b095ad210404cf5a'] | I am a C# developer. Coming from OO side of the world, I start with thinking in terms of interfaces, classes and type hierarchies. Because of lack of OO in Haskell, sometimes I find myself stuck and I cannot think of a way to model certain problems with Haskell.
How to model, in Haskell, real world situations involvin... |
ffb85e462d98f8665684041bea954ee12115576bc90d23c7095125aee7416261 | ['e6bfb755b56a47e5ada4973c9804039b'] | @Tpofofn - yes, all the coordinate systems are of a common origin. The third axis in each system is orthogonal to the other two - so in the example where **X** = 1,0,0, **Y** = 0,1,0, then **Z** would equal 0,0,1.
The code I'm afraid would be more confusing than it's worth. It's caught up with the six orbital elemen... | afb8d9191bb86978718073f04e7ff6ad537e40883985fd33720b8c3b9243ddb5 | ['e6bfb755b56a47e5ada4973c9804039b'] | I have a coordinate system defined by the unit vectors X = (1,0,0) and Y = (0,1,0).
I then have a reference frame defined by the orthogonal unit vectors P and Q. PQ describes a plane that is offset from the XY coordinate system (The plane is rotated and inclined).
Then, I have another reference frame, I and J. IJ des... |
e87ebee12656d68d8a4e80968f9bd5137863f47f1ea8b809958b4701854b4c91 | ['e6c5c5cea59341a19d501b0bb05d01e2'] | Ok so this has been bothering me for a while and I've sort of just hit a wall. So say you have a square grid represented as a two dimensional array and each cell can be in one of two states. How would you go about building a list of every possible combination that could exist in said grid? I realize that this is imprac... | 65e4bab11fea97cc79b23f817bc419e752da9899d24692c265572522bab82ba7 | ['e6c5c5cea59341a19d501b0bb05d01e2'] | Backbone's save and fetch methods just make calls to the Backbone.sync method, which in turn is just a wrapper for an ajax call. you can pass in ajax parameters using the save function without having to actually extend it. basically ends up being something like this:
game.save({attributes you want to save}, {type:'POST... |
b06d1220432ed85f59f8154fb362e56640340e34c2808a0378642d5404adcf61 | ['e6d33e3e9a7d41a09b40bb02177e0d96'] | The file /home/sean/.minecraft/launcher.jar is not marked as executable.
I get this error whenever I try to load the launcher.jar in my .minecraft folder but then when I right-click, properties, permissions and tick Allow executing file as program it doesn't do anything, doesn't load anything or say anything:
If thi... | 272bbc877736b71e243b91406fa33b9eb30c65a77872a99163838b1600c8bc63 | ['e6d33e3e9a7d41a09b40bb02177e0d96'] | The following articles present an algorithm for describing the integer solutions of any system of linear equations and inequalities
https://link.springer.com/chapter/10.1007/978-3-319-66320-3_17
https://link.springer.com/chapter/10.1007/978-3-319-66320-3_18
This algorithm is implemented in Maple and the code can be
obt... |
23e9260c070fc2406d6f34abd52108945c7b47e89d62597980fbed9bc20329ea | ['e6d741bb82394b4c9767ead5f2d77a2e'] | Swift 5:
The accepted answer no longer compiles for various reasons, so here is my updated version:
let image1 = UIImage(named: "img1.jpg")
if let myImage1 = image1 {
let imageview = UIImageView(image: myImage1)
self.view.addSubview(imageview)
} else {
print ("img1 not loaded")
}... | fc552dfd0c2241afcdfb76f40b4a2734a1b2b5f901742443ec7dbc5bcf384c5e | ['e6d741bb82394b4c9767ead5f2d77a2e'] | I want to use Javascript to open an HTML page which is in a sub-folder, but continue to have the path relative to my top level files. I have the code below and the HTML link works before the page is changed but not afterwards, because everything is then relative to the sub-page. If I click on the link after the page ha... |
08416a82dd41fb45c3b3ef8b1a7e64f9094283b642afbe19159e2f63e7994a90 | ['e6e43b4461f549c78ef49f8ea3b791af'] | This is a bit convoluted but it seems to work: http://jsfiddle.net/3hrNp/2/
However, it would probably be better to use a background image - much simpler.
<div class="container">
<div class="parent">
<input type="textbox" value="Username or email" />
<div class="inner"></div>
</div>
<... | a910dfb11280cfc8a701f59f9e591f49b2ca803218aa03481d2fe976adad4093 | ['e6e43b4461f549c78ef49f8ea3b791af'] | I would say because it reads the query as:
WHERE (story = '1') OR (barebones = '1' AND members_only = '1')
since story = '1', the condition is satisfied
OR clauses can be tricky - you often need to explicitly tell the query where it belongs. I assume, you want this:
WHERE (story = '1' OR barebones = '1') AND members_o... |
5e3dcc914a2621453694ee2a5c1cbcbcfe457308bd16a0f956276f4f52d2706b | ['e6f38ddf61c14ce7a73ef61955e7c63d'] | Based on the quantity of given array of objects structure, how can I set if else conditional to display the specific budget payload? For example, if quantity is equal to 10 then I need to output to the user the budget data that belongs in the first object in json payload structure, and if the quantity is equal to 50 th... | cd869157206d5026d3af4db8bd46e2cbf224984fe6cfb895bb40828976e38c6d | ['e6f38ddf61c14ce7a73ef61955e7c63d'] | I have this programs array of object which returns me the category id and the category name:
{
categoryId: 101
categoryName: "category name 1"
},
{
categoryId: 102
categoryName: "category name 2"
}
Using the below logic I was only storing category name into my categories array, but now I also only want to stor... |
a0cd3d24b0b2e381f1badeb6cefaac28114b1be36fea03b05fbc774e93f8c0d3 | ['e712b88fd663407b9bbf8e621b2a2b7a'] | Wow! after like 20 minutes of struggle, I have found the error.
It's because you're using the same xAxis and yAxis for both your LineChart and AreaChart.
Simply use another two different NumberAxis rather than xAxis and yAxis objects and your error will be gone.
Just comment the line
final AreaChart<Number,Number> are... | 9af45637cfb8f031bf6016165ede6abfdd40f6868712ff177b39a5cca93d631d | ['e712b88fd663407b9bbf8e621b2a2b7a'] | No you cannot set the text of your button using css. But hey! In the other hand, you can still display an icon in your button using css!
You only need to add this to your css :
-fx-graphic : url("relative path to your icon");
In case your icon is repeated in the button, then add this as well :
-fx-background-repeat ... |
5d3bc4945acfb9dcc961b1110dc8690db33851d63916d5d2b6e5b80d321daad8 | ['e739fb8ebd074b908af5b32ab974e8bd'] | The questions express a concern about small error values (but does not explicitly express why this is a concern). If your concern is interpretation then I agree use a relative measure. If your concern is that (y-y_pred)^2 is very small which might lead to rounding errors, then this answer is perfectly fine. Although I ... | 9447a9bfbc069e5fe5bc31018e671b71cc43abcd6b6526ce40adcd29596dfe86 | ['e739fb8ebd074b908af5b32ab974e8bd'] | I ALWAYS partition my windows systems with at least 3 partitions. A cdrv containing all operating system stuff. A ddrv containing all user-installed software. And a edrv for general storage and BLOBs.
Even on old DOS systems, this schema provides exceptional control of software and provides great security (hackers usua... |
09eba8a6802fb4f5a88b657c1646f85c13e33b6a5a968323991afe568659a75e | ['e73a1fd67d904f58ae4122aba7cfa95c'] | A good results is also given in: https://es.mathworks.com/matlabcentral/answers/143643-fzero-function-calculating-all-zeros-within-interval
The solution is composed in 3 steps:
step: multiply function with itself shifted by 1 element to get zero crossings and get negative values
fun =@(x) exp(-0.2.*x).*sin(x+2) - 0.1;... | f4fed298b304fbca1132a6b199f8a160baaa85ccbb5bb868a036e03bc9d49e03 | ['e73a1fd67d904f58ae4122aba7cfa95c'] | whether you set up the integration scheme yourself with something like:
calculate a x and f(x) vector
calculate dx by using the diff function
multiply it with f(x) and take the sum of all Elements
Or you use Matlab's build-in functions q = integral(fun,xmin,xmax,Name,Value).
Best regards
|
bce468e23cb67f98a79609a3eda2d0d61f0891f14f38e96530288edf1234444f | ['e752c7f974b341c5b833b3a0f797e1b6'] | I have a form (named mainForm.cs) with a datagridview on it.
I must to show a picture (with opacity) over a datagrdiview. To achieve this, I made another form (frmPicture) with a picturebox, and apply the opacity property to the form. It also set the opacity = 100 when the mouse get inside the form (frmPicture) and opa... | 4961a065e13677c283297ccfa8c6c4de2a808dc3f78852dc460e4cd9a4616328 | ['e752c7f974b341c5b833b3a0f797e1b6'] | You can work with Linq extension method's Subtract and Insersect, same as you do with math set.
A = Original.
B = After.
A - (A Intersect B) = removed from original
B - (A insersect B) = new
var intersect = A.Intersect(B);
var removed = A.Substract(intersect);
var new = B.Substract(intersect)
Hope this works for you.
|
fe752dc2113045ff9121c84a232622a3861a8d7b4cbf8fc3e242b766f3ffdf41 | ['e781a473ce584193aa0eeed1cf7c59c4'] | In order to save as much as white space as I can, I would like to place the legend entry at the same height as the horizontal axis label. Can this be done and if so, how?
Here's a plot illustrating what I am hoping to achieve, with current and hoped-for legend position illustrated using a (manually added) green box.
I... | 54af8ae254a87a30e9bed2b4f60d138c653100ea2613f2ec135f5a85fe98e8ae | ['e781a473ce584193aa0eeed1cf7c59c4'] | For what it's worth, here's a very slight variation on <PERSON> answer, which indeed does the trick. The ISOdate() function outputs a date-time object. Following code uses as.Date() which outputs date only. Following code also takes a brief shortcut in the calculation of the number of days in a calendar year - which yo... |
a0364137f05ffcc41b9c127a952927b10a036537a55b2c85ccb155bbc08d7887 | ['e79f62b6c527461aa0b2773395ad6f4b'] | Had same problem. Latest Chrome version is buggy. Disabling chrome on my android phone was the only thing that worked for me. Your phone will instead use the webview version it shipped with (58 in my case). Sure problem will be resolved soon at which point you can reinstall chrome
| a3dc5f5769b18ff8d3d63e00c51bb19ad123d75030acb5b5275a5974698f03c6 | ['e79f62b6c527461aa0b2773395ad6f4b'] | Had the same problem. What worked for me was removing the plugin, setting the facebook android sdk version to 4.35.0:
cordova plugin add cordova-plugin-facebook4 --variable APP_ID="whateverid" --variable APP_NAME="Appy222" --variable ANDROID_SDK_VERSION="4.35.0"
Then removing and readding the android platform:
cordov... |
3ca1b43e94911170be9b3ae712ddfe4406c2b53ca415984a4d1fc21a94eb8507 | ['e7a1c1f45d3a4bc0bf7389fe8813f91b'] | If you are using formik in your project it has some easy way to handle this stuff. Here is the most easiest way to do with formik.
First set your initial values inside the formik initivalues attribute or in the react. state
Here, the initial values is define in react state
state = {
data: {
fy: {
... | bd782edeba697339cc90c2b705ef0be210182a25fd39e9c72ad79f9ed6020ba4 | ['e7a1c1f45d3a4bc0bf7389fe8813f91b'] | Just you need make some minor changes. This is for if you need to switch between two different language.
import en from '../../../assets/img/en.png';
import de from '../../../assets/img/de.png';
1. set the current flag in your state
state = {
currLangFlag: 'en'
}
2. Replace your current event handler with this on... |
743285c3991f53ad37d6bce64b8ed8807f5d437587c6eab64ab592ede104a904 | ['e7ab16c9e40848e7b937e676eb9e8c78'] | I'm trying to remove previously generated .dtb files on the BeagleBone-ai the name of my old file is "am5729-beagleboneai-custom.dtb"
I did
1) sudo rm /boot/dtbs/am5729-beagleboneai-custom.dtb
2) copied my new generated .dtb file "am5729-custom.dtb" to /boot/dtbs
3) ls /boot/dtbs to check if my new file is existed and... | bf257ff12dca94ffaca9d3951b293f9027fa2317f75f9a62a8c8ab9a19b3e2d6 | ['e7ab16c9e40848e7b937e676eb9e8c78'] | I'm trying to create flipflops to do the shift operations then a mux to select the proper behavior that I wanted. However, SystemVerilog does not allow me to switch from sequential logic(flipflops) to combinational. Do you have any recommendations? Thanks
/*
Problem 3: Consider the following design Model_1:
a) ... |
40aef8e7cf2b82e45fa2be785d5baf8b60f28170f4fd2cb9a6fd2eeffe63f03c | ['e7abdf1b5cdc4cc6aa084182ba0f4374'] | I am wondering how efficiently to calculate the distribution of words on array based on the words from another array.
We are given the array of words test the task is to aggregate the occurrences of words from test in new array s
for word in test:
if word not in s:
mydict[s.count(word)] = 0
else: ... | 568f654e6476545ea30654d0af5991ea4511f2e20f9ab09b7b65ecb2b31c3956 | ['e7abdf1b5cdc4cc6aa084182ba0f4374'] | I am using mocha for testing in nodejs.
The problem is I don't know how to deal with matching nth decimal point precision. For example the following code
value.should.equal((0.8+0.4+1/3)/3)
fails with error message
AssertionError: expected 0.5111111111111111 to equal 0.5111111111111112
+ expected - actual
... |
3df34ea249ff3447019ff24f79c730c8c111513eab8df8e20878f99242371f79 | ['e7c15e92e94c4d63a3a180b54cb3ab38'] | I am trying to get this line to work in JS:
document.cookie = cname+ "=" +cvalue+ ";" +expires+ " ;path=/; Secure; SameSite=strict";
When I try this, I get the following console output:
Cookie “cookieName” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “sec... | 8dfdf557aede5db881889ae94e44eaf623c0493c752778d1baa17a54aeb063a0 | ['e7c15e92e94c4d63a3a180b54cb3ab38'] | I am currently trying to use scriptlets to enter the current year or locale date into page title and description like below. On the console, I get the error that is mentioned in the titles, causing the "org.apache.jasper.JasperException: Unable to compile class for JSP" error.
<tiles:param name="pageTitle">something so... |
49605752824b614dabcd35592d74bb816fff1d1b5865d71e25ff1507fcc5ea9c | ['e7c572c732c047199fd22eded4ed32ee'] | I am working on a menu, using bootstrap.
The menu has 3 levels.
Main > first submenu > second submenu
The menu items in the first submenu which has the second submenu needs to be clickable also. That's already working. The submenus are shown on desktop by hovering but on mobile you need to click on the menu item to ... | b0f83b3e1f81571093a3ebffd5a8f52d99e43a07d9d0dfc500b6e1c1e54d2f9e | ['e7c572c732c047199fd22eded4ed32ee'] | I already had this working for most phone but for some reason iPhones will not work.
I've create a button and changes the meta tag with jquery:
$( document ).ready(function() {
$("#desktopversion").click(function(){
$('meta[name="viewport"]').prop('content', 'width=1380, initial-scale=0');
});
$("... |
622c9f1df1ef47f149faee2901a7e1b08c68f8b2120a41f43e2d75e20e4cf431 | ['e7e498528b814817a4ae645bd5c6da78'] | I have an alert dialog that I'm calling when the user clicks the button with the correct answer for my game. The first time it is called the alert appears fine on the screen, however if the user gets the answer right a second time the app will crash and tell me "java.lang.IllegalStateException: The specified child alre... | dedacda8f1d0c8f98530ab3ed173bb0939c0af3fb39bbe6716244bc73a647581 | ['e7e498528b814817a4ae645bd5c6da78'] | This is the library I have used in the past for iOS
https://cocoapods.org/pods/ProgressHUD
I would like to find something similar to it for android studio
I have tried using some libraries on github. the ones I have tried did not work, or i'm just not importing them properly. I haven't actually used a third party libr... |
37b8905fa759ce35668a6e122b5c9cc1362d6a5a211c657751b6f62985c9c4ad | ['e7f3f0d906fb4c458bfcc9353be5d9fb'] | i have a simple question, let's imagine we have a system with 3 states, room 1, room 2 and corridor. Thanks to some bluetooth receiver i'm able to understand if somebody is in the room 1 or 2, not in the corridor. So i built an hidden markov models where i have 3 states (2 rooms and 1 corridor) and 2 observations (2 ro... | f6ab7113077b44f43d132dfc363cac41ec6fb9c42d23382c3aaf95aaeefd5371 | ['e7f3f0d906fb4c458bfcc9353be5d9fb'] | I program I was using to out put some files apparently did not understand the short cut "~" (directory) very well and has done some trickery that has me confused.
Rather than put the files where I would expect them (/home/me) it has a made a folder in it's subdirectory called "~". (someprogram/~)
drwxr-xr-x 3 me user... |
72fa78d9317a30429dff3089983affbebdd4c219b1b3c24bf011dd6a686dc257 | ['e810093f34be41bea47d373b2bfe88f6'] | @Bohemian That's not something we're currently set up to do. I suppose it would be possible, with a bunch of work, but it's not the project's focus and I would think long and hard before doing it. It would also require all users to install a userscript, unless Stack Exchange were willing to do some work on their end to... | f863a33074b1da98d5371ec5c65831e2e59f0dd921a8e412d3c9eeb88c4276b1 | ['e810093f34be41bea47d373b2bfe88f6'] | TL;DR: Suspension lengths are up to moderators.
Is a shorter follow-up suspension possible? Sure. If there's a user who did something bad in their past, has gone a while without any more black marks on their record and has generally been awesome, and then steps out of line again briefly, a shorter suspension would be a... |
b4ba4dca848064964bf998d341596404a3e9f20ce21ffe76590441d281305fab | ['e8130fa0a76f401caf41d7a322922fe7'] | I am writing an optical character recognition project. I need to be able to search through a large array (can be any size really) of what is a field of nothing but ones and zeroes to find which 13x13 number template their layout most accurately reflects, in a very, very primitive OCR. It needs to move through each poss... | 81487c392f0a10ce5f36700db02ebf934c1e795c3ebafedaa087847eb31b44fa | ['e8130fa0a76f401caf41d7a322922fe7'] | I have a class called NumFiles which is made up of arrays of matrices:
public class NumFiles {
private int[][] one = makeMatrix("one.txt");
private int[][] two= makeMatrix("two.txt");
private int[][] three= makeMatrix("three.txt");
private int[][] four= makeMatrix("four.txt");
private int[][] five=... |
73f1e56392c4a64e0bc2b25d8eceb160ddd40ac706664950e9e78d7642b81b57 | ['e816940ad4674971b664b03809d9f723'] | First of all, I apologize for the none mathematical notations. I've only ever hanged around Stackoverflow, and never learnt how to type Mathmatical notations. It would be great if someone could teach me. The good news is my question isn't too long.
I'm a beginner learning <PERSON> and <PERSON> series. I know how to fin... | fd8f3374744afe090eff9e1f52d9c98cf45fe04d093f6f180832ec3ee6696bc1 | ['e816940ad4674971b664b03809d9f723'] | What about my plan to generate a series of pulses 40mz transducer and wait for replies?I can program a PIC to make one complete sine wave, then two, then three.
For each pulse I would wait long enough for the reflections to die down.I have a 10cm long cylinder of brass that I have put transducers on each end.I know th... |
6b874055a58c2a9cd30a227c40ae390e9ce191972c6ea105fbd94c1d989861c1 | ['e8210ed5df334bd58ab4b0d3b9cf94dc'] | I've been trying to calculate word frequencies with the tidytext package.
v <- "Everybody dance now! Give me the music Everybody dance now! Give me the music Everybody dance now! Everybody dance now! Yeah! Yeah! Yeah!"
v <- as.character(v)
v %>% count(words)
but I've been getting this error: Error in UseMethod("as.qu... | 3add53d2bc1e4dd101d69160e69cf79b027008f669a85299f3f12bb729ca02dc | ['e8210ed5df334bd58ab4b0d3b9cf94dc'] | I am trying to run a <PERSON> transformation with the following code:
urban1 <- subset(ski,urban <= 4,na.rm=TRUE)
ski$gender <- as.numeric((as.character(ski$gender)),na.rm=TRUE)
urban1 <- as.numeric((as.character(urban1)))
x <- (ski$gender*urban1)
y <- ski$EPSI.
bc <- boxcox(y ~ x)
(trans <- bc$x[which.max(bc$y)])
mo... |
c1d6c08eca84d6ab4ce334845946be24ed2f33d80fec86a077181da495cd0f5b | ['e83519225ea6436c995adb2c00bcd36e'] | View :-
`<tbody data-bind="foreach: itemArray">
<tr>
<td>
<input type="checkbox" data-bind="checked: status" />
</td>
<td>
<span data-bind="text: name , style : { color: status()==true ? 'red' : 'black' }"> </span... | c34deae2b5c1194687108279baf9e45780c47a57d80a446c70e19a2029336a3d | ['e83519225ea6436c995adb2c00bcd36e'] | Is it possible to define authorization at control level ? If so what is the best practice ?
Consider I have input control named daily wages (text box). userRoleOne is an user role who supposed to see this field, other user roles should not see this field . what is the best practice to do this ?
|
b6c2cf7aff18fad359c579d2393a48f0e13ff20369584404a6e8640cd92a333f | ['e84e13b9c4ca47c1b06731e66e2dbf06'] | I'm Trying to make a list display in HTML of the stored details i put in my object using Javascript.
which should look like this
name: <PERSON> , age: 1
name: <PERSON> , age: 2
name: <PERSON> , age: 3
I used for in loop to display all the inputted objects, but it this happened
Actual:
name: <PERSON> , age: 1name: <PER... | aad1c6e6cbf810a4cea4cd851475939a8b65677314281c6a5768771cd4beb220 | ['e84e13b9c4ca47c1b06731e66e2dbf06'] | I'm new to Java programmning and currenlty making a mini-parking system.
I'm trying to get the (carSlotLeft, motorSlotLeft, vanSlotLeft) - variables that contains the current slots left. I will be using these variables for class "SQLConnections" and then use it on a different class "Park"
What I did is I merged the SQL... |
37b9c3d857271ffa4b572fd0bf331f72233015723b9689466218f4e1fa41e888 | ['e84fe92152024a4eb8fb4416e05d8433'] | I have a model that does some basic aggregation of some values on a m2m field. I can achieve this by doing the calculation in a Model method, in which case the results would be stored in a model attribute.
Or I can do the calculation in a pre_save signal function, and then the result would be stored in a model field.
I... | 622c077003df906529092601c932adb390c14a121a90a90c6ad2a0dce2303e39 | ['e84fe92152024a4eb8fb4416e05d8433'] | Is there a way to override the Django DATA_UPLOAD_MAX_MEMORY_SIZE default (2.5mb) on one model field only? I would like to keep the that max value the same everywhere except for one particular field, where it needs to allow for uploading of a much larger file size.
I have implemented this solution which works well but ... |
3b6f64331fb317acf6fcdd738d327fb8d1ebfc3facf1c7623fd64e512cd74fce | ['e85599a29bf147a5a65ebdea33a1d527'] | If you are not planning to have a defined start/end on the left/right of your floors, you can use the world x position in your shader for the uv.x coordinate with a texture which will loop. keep in mind that ths method won't work for floor if you intend to rotate them at any point and that will be much more involved.
C... | 813009493322bb4586e99f96b361c7092ce87494dfd9a6f11a30dd4d23a23fc6 | ['e85599a29bf147a5a65ebdea33a1d527'] | In unity, make sure the default editor for script files is VS and not just your default program which is most likely VS anyway. You can find this option under edit > preferences > external tools from memory, not at my pc to double check.
For some reason unity doesn't fully bind to VS unless this option is set.
|
2cb8772b09a1d07c5d729c053904a23a8df35ba45090e3a3a94e9ed10cc5a019 | ['e86825051bd843ecb520c376a53c9480'] | I want to re-produce the following figure I did on excel + MS.pptx. I am doing this because I want a most sophisticated figure. However, I am struggling a lot.
I am using ggplot2 in R but struggling with facet
data %>%
ggplot(aes(x = year,
y = metric )) +
geom_bar(stat = "identity") +
theme_bw() ... | f4672d4f45f673cbd563fafd069bf27b1409412980560a077f6069c2a9bc9058 | ['e86825051bd843ecb520c376a53c9480'] | Hi ggplot2 warriors!
I am struggling with a stacked graph that contains about 1200 stacking values.
I have a df with 4 variables
'data.frame': 4935 obs. of 4 variables:
$ ISO3 : Factor w/ 133 levels "AGO","ALB","ARE",..: 23 105...
$ band : int 1 1 1 2 1 1 1 2 1 1 ...
$ upbound: num 1000 1000 1000 2000 100... |
74e07664f06c951a11a6320e8e84adb7a1ffc8bc68f9ebe10489291ddce2c968 | ['e86f28f25cb049d08878c298e30383a4'] | I am trying to iterate over a query, returning various dicts to which I will eventually code to insert into an array.
My problem at the moment is that my code works in the shell, but it does not work in the script.
Here is my code:
cursor = db.model.find({'time': {'$gte': start, '$lt': end}}).sort('time')
for result i... | 366547b2dede09b96a7d6cd98f0b7792dfe6c28635565189fe8a0562dd2c9078 | ['e86f28f25cb049d08878c298e30383a4'] | I am interested in printing a range of query. I have the following code.
start = datetime.datetime(2012, 2, 2, 6, 35, 6, 764)
end = datetime.datetime(2012, 2, 2, 6, 55, 3, 381)
for doc in db.model.find({'time': {'$gte': start, '$lt': end}}):
print doc
It does the job, printing out basically how I inserted th... |
b906f0193d936d94561e0c239928e6a53ba0d91ccdb2159992a6fe65dacebda4 | ['e872000d0796461691403cb50b0c0bbd'] | I have a machine in our development network which doesn't have access to internet. I'm trying to install .NET Core 1.0 Visual Studio Tools Preview 2 from the executable available at Microsoft download store, however, it seems to be trying to download additional packages from the internet which of course fails. Microsof... | 35ec6b93d768b8c8109b155b0b7c8e40c0b3109f34504143d49be99c38eb2304 | ['e872000d0796461691403cb50b0c0bbd'] | I'm getting time series data from the server including data for events which need to be marked as plotlines on the chart. Now if the event data contains points as close as 5 seconds apart, the plotlines almost overlap. I will never get event data closer than 5 seconds. What I want is to have some padding between plotli... |
96ab5e45221df44ecbaaf89c3be482a0b38bda698195f6663ae21e8b1b2e18c0 | ['e8880b54d49c40dea8d788580dede434'] | I have a JSON like this:
{
"baseStrings": [
"test1",
"test2",
"test3"
],
"object" : {
"name" : "example",
"string" : "test4",
"object2" : {
"name" : "example",
"object3" : {
"name" : "example",
"string" : "test5"
}
}
}
}
As you can see there is a li... | 742bdde75f0201f52d9661e684a85bc55b941c9e33ca170ec1407c29dcfab0f6 | ['e8880b54d49c40dea8d788580dede434'] | I have a situation that I must get some data from the database with a button click in Recyclerview item and fill the Recyclerview adapter again with new data.
Should I put the database fetch code in button onClickListener in the adapter or it is better to do it in another way? For example with help of Callback in activ... |
f56449e59f60d4cbb6da4bdd661c42c252729ba3b73939520825ae852ba0d4d5 | ['e88d468e070047fc8c2fa720ccff29db'] | Alpha and Omega always mean opposites: beginning-end, first-last, nothing-everything, etc. These terms are used in biblical related publications, mathematical terms, and even have scientific use, such as in biology and chemistry. "Zoe" and "bio" both mean life in Greek, but "bio" may have been the more poetic way of sa... | 7e719c129157fea3c68054ce4d78bb2058add8c845cfd1918efba6014c41b3b0 | ['e88d468e070047fc8c2fa720ccff29db'] | I was encountering the same issue with 4.2.4-4393 on Linux Mint (binary compatible with Ubuntu). I couldn't find anything to get a grip on why it was happening. It was working fine and then suddenly just stopped. CLI invocations, clicking the icon, etc. all died. CLI gave roughly the same output as you had.
My solution... |
a59cf0a7c7f9a7acaccada1b0258db510df24778838be193689183a08004f91b | ['e88fd8ddb3cb412caee756822d2bc19f'] | Aside from using sleep() in my test, I'm wondering if anyone knows of a better strategy to explicitly wait for a form submission (POST) to complete before continuing with my assertions. Here's a very condensed version of what my test looks like, using phpunit together php-webdriver from Facebook).
function test_form_su... | df3e672eea9147398c5a9f6b9445dcf4b91ffcad7b9cce8e1218f68091267389 | ['e88fd8ddb3cb412caee756822d2bc19f'] | I can't figure out why traceback.format_exc() is returning "None" in the following example:
#!/usr/bin/env python
import sys
import traceback
def my_excepthook(type, value, tb):
print type.__name__
print value
# the problem: why does this return "None"?
print traceback.format_exc(tb) # see http://docs... |
ddb7e129478cf1d0e5b47e5d0b09f31cac4bf48c0eea3cea2452fbc981342849 | ['e890c379bb4f43dd9e41ce9e14dfe52e'] | Check if currentUser is not null:
if (currentUser != null) name.setText("hi, " + currentUser.getDisplayName());
But also, in your code, you ask for getDisplayName before you initialise it from firebase so it will allways be null:
firebaseAuth = FirebaseAuth.getInstance();
currentUser = firebaseAuth.getCurrentUser();
d... | 7f7545b41ceea9217a6c4f59a055d7e35775de68969ef94a3ed692125e64efbb | ['e890c379bb4f43dd9e41ce9e14dfe52e'] | Querying room database with List of Enums as an argument yields results only when a single Enum is provided in the list and returns no results when multiple Enums in list. Given a list of a single Enum in the query the resuls returned will only be those that match exactly that Enum and no results that consist of that E... |
ad64be471cf34f9f2b08fba1c8dce4cbde12df757eff93e51b3b428c82ce7459 | ['e8929fef835b4c95b5726f556b925d93'] | In my case, I experienced the same thing. SnipMate autocomplete does not work. One of the reasons is the is used by other plugin. Typing :verbose imap <Tab> will show you which plugin that utilizes the key and cause the conflict. You can either comment out the plugin in .vimrc or you can change it to use another key... | 610b6e7685959a583721e522d09e1e17b6f154e36ff18b35a0bce4543c822f88 | ['e8929fef835b4c95b5726f556b925d93'] | Initially, I had tmux working in bash shell. Then, I installed the zsh shell and changed the default shell to zsh with the following line:
#set shell
set-option -g default-shell /usr/bin/zsh
Then, I noticed that tmux would not work. For instance, after getting into tmux, pressing ctrl+b+" displayed a yellow bar at th... |
d3878cf27ca5132465d8cc639747055b28b96c16060c615b70d9240b9045eac7 | ['e896c1b0b7b04feeb02a8fb7326832e3'] | We'd like to open 3 sockets via Bluetooth to one external accessory. To do this, I assume I should create 3 separate EASessions with the same openSessionForProtocol: method using the same protocol.
Now the issue I have is that in stream:handleEvent: I'd like to know which EASession the current NSStream belongs to, but ... | 20f08a5ce0f2391e3378c135d93fa3e49b3efd808de900f4074a843762c93e3a | ['e896c1b0b7b04feeb02a8fb7326832e3'] | Copyright (C) 2002-19, <PERSON>, <PERSON>, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MQ01ABF...
Device Model: TOSHIBA MQ01ABF050
Serial Number: 563TT0VST
LU WWN Device Id: 5 000039 701e00efc
Firmware Version: AM0P2D
User Capacity: 500,107,862,016 bytes [500... |
532c80b4abd397d8e35f5228584ef3cff8c9bb067f0df4eb8a5c74e404b1f734 | ['e89e6ad355fe49c2a55a17ce033e72fb'] | I am using UIWebView. I have 4 links I know shouldStartLoadWithRequest function gets called when a link is clicked. But I need to differentiate, may be send some argument value when these links are clicked (different values). when i dubug the request holds the url of the page the webview is rendering.
I need to do dof... | 1f14a8a412076f7b27c82f708becabc91b5c182304ddff6f0cf3e6268e3ecdd1 | ['e89e6ad355fe49c2a55a17ce033e72fb'] | I am trying to detect double tap in a uiwebview. following is the code. when i debug, debugger comes to initwithcoder but never to touchesbegan nor to selector function. why so ?
I am putting a UIWebView in my xib file and setting identity inspector class to MyWebView
#import "MyWebView.h"
@implementation MyWebView
... |
480a902019abee7fd569a9867f46a60b09fe4ca3e22423e6079637b74aa554df | ['e8a62e62a5f64a5ba3d42622a364ce0e'] | Requests is a pretty fantastic library, don't waste time with anything else, unless there is a really good reason:
import requests
import zlib
def download(url, username, password):
r = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, password))
r.raise_for_status()
return zlib.decompress(r.con... | 60e5bb5ff7686220131de5cfa2389db030a31f703c2865dc9c4cac7843f8d92f | ['e8a62e62a5f64a5ba3d42622a364ce0e'] | I think that the issue might be in the context_manager or the with statement.
async def __async_send_recieve(self, jdata):
async with self.aws:
await self.aws.send(json.dumps(jdata))
return await self.aws.receive()
When you invoke 'with' the context should play out as following (with better excepti... |
98a504342c674dee975158f4bced88b3667cd6d164e22013e612a78a247b44cc | ['e8aac468fbae407a85f01fef1b60a199'] | <PERSON> i have Created a checkbox dynamically,,But the Size is very small so i decided to add image .Here i cannot append the div to add the image.
is any way to resize the Checkbox?or any other way.
My Code
$optionInput = $('<input />');
$optionInput.attr({
'name' : 'ckbox_'+results.rows.item(i... | 027e1cfc4b31422e5ed8012292a0998df58e551652d840d914d3664aa5ca8985 | ['e8aac468fbae407a85f01fef1b60a199'] | <PERSON> i have a list(dynamically i created the html),in that list i added many hyperlinks .Now i want to add that link in center how to do this?kindly help me
"<FONT SIZE=5;face=Droid Sans>"+"<p style=text-align:center>"+"<a id='"+i+"' href='#' >" +value + "</a>"+"</p>"+"<hr style='border:1px solid #EBEBEB'/>"+"</... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.