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 |
|---|---|---|---|---|---|
07ae311f1c44cb1ea7173aa786f638f52b6d8fe3f39c244c0f265a04bc103c4d | ['5d0d1a857539495db1ce477ed0afcb47'] | From Msdn :
"
This method sets a bit in the object header, which the system checks when calling finalizers. The obj parameter is required to be the caller of this method.
Objects that implement the IDisposable interface can call this method from the IDisposable.Dispose method to prevent the garbage collector from call... | 3d1e331f45e98f544b799e1023409d99dcae286a53e6dc752c818c7d3bcbd731 | ['5d0d1a857539495db1ce477ed0afcb47'] | Ended up with same issue. Run my own benchmarks to find out if you can place everything in the same folder vs. having multiple folders. It appears you can and it's faster!
Ref: https://medium.com/@hartator/benchmark-deep-directory-structure-vs-flat-directory-structure-to-store-millions-of-files-on-ext4-cac1000ca28
|
f29b82b2c8b80a9de99b85cd2ccd56903bf689d853550a399d0617705088cfe9 | ['5d2f5e51689c4d96b97552ce67810baa'] | So when I turn on my computer now the windows booting sound is all distorted almost like it's stretched or crackling, when I log in the mouse lags, and everything seems to load a bit longer. It can see all wifi connections but it says only limited connectivity when i try one, which really just means no connectivity. Th... | 37cc2554953b5d123264dc038388b729a306d650b4394f01be933b12b216ce83 | ['5d2f5e51689c4d96b97552ce67810baa'] | Thanks for the advice. I have tried removing the old ram but it didn't help, I also ran a memtest but it couldn't find any problem. The only things left I can think of is that it's either being caused by a program, a driver, or my processor is getting buggy. |
ec996054fa32aaf7a73105dc012be8f42fcfcaa9c9fdbb7487ffeb7f36f0a426 | ['5d47bc4989a048ca80ef913c8ec252b5'] | Case 1)
machine: kinit
machine: <EMAIL_ADDRESS>'s password: (inputted my password)
machine: ssh machineB
production.xxx.com
Successfully sshd.
Case 2)
machine: ssh machineB
production.xxx.com
password: (input the same pw)
password not right. ssh failed. logs says AM: authentication error for xxx from x.x.x.x
what... | e4a1b9bc8a6c4890b2f214d10b8aaac3601e62fadf1bd5a5b1ac122d232a4d93 | ['5d47bc4989a048ca80ef913c8ec252b5'] | I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'test-fb-swift4' do
pod "FBSDKCoreKit"
... |
2a60c5c6eba82de532b749e8605b4501cc6de269b7a808ccb60cc88de364fe31 | ['5d51c04f75eb4905b25462096e3a0d96'] | what if you modeled each key/value pair as first class objects? e.g. :
class MyKeyValue {
static mapping={
id generator:'assigned'
}
String id
String value //i guess this could be an object of some sort, as long as it is a valid property (like Date)
def getKey = {
return id;
}
}
class Us... | 05f8a46ccf0ca28856b1c5405539796a9524ced6f11351608a130403d68b21cf | ['5d51c04f75eb4905b25462096e3a0d96'] | you cannot access a java method or property from javascript. Javascript is purely client side.
one way you can do this is to print the property into a block, and then you can access it from javascript, e.g.:
<script>
var selectedProdLineAssociationKey = '<%= SelectProdLineAssociationForm.selectProdLineAssociationForm... |
2cb5f7c8f6265aec3a5c3cf5958dae0470f719b82347a22a5deb9e6e422a3b74 | ['5d576fa7d40c4c7280c5a1107c5566b2'] | I'm using Polymer 1.0 to make an API request using iron-ajax based on the user's location.
In app.js I have the following block.
app.addEventListener('dom-change', function() {
console.log('Our app is ready to rock!');
var working = Polymer.dom(document).querySelector('#refresh-button');
var locationToast = Polymer.d... | 1598cac5e68741ec485b4258557d9c05ea158fbce61fc73b7c702aa9beb8c25c | ['5d576fa7d40c4c7280c5a1107c5566b2'] | Very late reply but I have a similar problem with an Ionic 5 app.
I had some limited success in minimizing the issue by reloading the HTML on a change event.
You could try adding <div class="audio-area" hidden> and using (ionSlideDidChange)="tryThis()" on ion-slides.
tryThis() {
setTimeout(() => {
let elems... |
b8218c28e313b5dfe4f297dd9afe437d8992b14f37d8ec420906f22cfa8bbebf | ['5d5972d0aae0487f95363a1fab178f13'] | I work on the Google Consumer Surveys API -- the current version of the API does not offer the ability to pull publisher stats & there are no plans to add this functionality at this time. Your request has been noted and if we have enough demand for this feature we'll consider it in the future.
| 2c2e630a778382f8eae70a8984c61aeb016a5641107165eb2f3eda186a18f0e4 | ['5d5972d0aae0487f95363a1fab178f13'] | This issue has been resolved. We'll new return the UK 'country' in the 'audience.countrySubdivision' for those surveys.
The cause was that for a few countries (US, CA, UK) the GCS UI allows surveys to be targeted by macro-region (e.g. US-WEST, CA-PRAIRIES, UK-ENGLAND) in addition to state (US), province(CA), or Nuts-1 ... |
43897bd1ddd20dbd1346dc645d0bb7a7492ae92f692681dcdf8865634ed54301 | ['5d6771bdd4d345d4998b41a74430ae41'] | If you could live with a JSON result, the following should work:
public class ServicesController : Controller
{
public ActionResult GetFoo(int id)
{
var dbResult = SomeDbUtil.GetFoo(id);
return this.Json(dbResult);
}
}
This would give you pretty a basic JSON query result. However, if you wa... | b20e62e9e1e31ccafdc10df76d724350cedf43e237ea23d8c87f0219974655a2 | ['5d6771bdd4d345d4998b41a74430ae41'] | Have you tried setting the SystemTime to exactly the scheduled time or a bit after that? Your SystemTime value does not change and if Quartz.Net tries to check whether the job should be run using that delegate, it will actually never be the right time to run it in your test.
|
66b489127ee8af9155adae200329dff1171a0b61ab8cc4132a14aa699bb78890 | ['5d69511b8fdd4f78877900ff1411badf'] | i read some Stackoverflow posts about my htaccess problem but i didn't resolve anything.
I have this:
RewriteEngine On
RewriteRule ^(.+?)/(.+?)/(.+?)/$ /index.php?page=$1&p1=$2&p2=$3 [L]
RewriteRule ^(.+?)/(.+?)/$ /index.php?page=$1&p1=$2 [L]
RewriteRule ^(.+?)/$ /index.php?page=$1
Every my site path needs the last sl... | 7250f806e8146fdd0d2cabd63d3630b44d262da9599d5631bdcac12ab54326d7 | ['5d69511b8fdd4f78877900ff1411badf'] |
Hi everybody,
i have some problem with phpunit coverage html component.
I installed correctly components and launch command:
vendor/bin/phpunit --coverage-html tests
Tests works correctly, but no html reports generated. Attached the terminal result.
The classic "Generating code coverage report in HTML format ... done"... |
b74c14f4f47334003fc66ec27b7fe9c60ddf3758fa70daec82c51ca352866813 | ['5d7ba5d15a5b452c87a7b85caaf588fa'] | We have an API platform which allows user to create and manage a certain type resource.
Client is expected to provide a callback url where our server will send notification to when the resource is updated.
So far all our notification types don't require any response from client. However, we plan to have a new type of n... | 146a11e2f0f5040bb6255fd6406ccd19745ed09362f20e5be364b9caa1c4e934 | ['5d7ba5d15a5b452c87a7b85caaf588fa'] | * a client can hold connection open no matter if we require a response or just 202
* client goes down is similar for 202
* the use case demand immediate response anyway, shouldn't have human involved
* this one is a good point, server won't have a chance to validate response and notify client on any error
I see your po... |
67ea089b46fc41f51faf1331d701fc513a61767d3a691e3d9dba1643715f8640 | ['5d87cf71916446dc9be292dc6a29d52c'] | I ended up doing it this way
$('.web-icon-container > a > .search-icon').parent().on('click',function() {
$('.web-icon-container').find('.search-box').toggleClass('is-active');
$(document).mouseup(function(e){
if(!$(e.target).is('.web-icon-container > a > .search-icon') &&
$('.web-icon-container').find('.search-bo... | cf0500978b6b33383b9ef41cb3a23951224c932b26ef0d47bf3ab77e9ba1bfbf | ['5d87cf71916446dc9be292dc6a29d52c'] | Try this
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
html {
min-height: 100%;
}
.nav {
margin-bottom: 20px;
margin-left: 0;
background-color: #fff;
height: 60px;
width: 100%;
position: fixed;
box-shadow: 0px 5px 5px #696969;
z-index: 1;
}
.n... |
99ede1629af093a06d35cd95c971682c088d2c66fe30c038566c5ab6b6bedd70 | ['5da883ed821746838a783b5b0730b15f'] | I am working on a simulation model, part of which requires having a point queue model that implements following equation:
dl1(t)/dt=max{q1(t)+q3(t)-C1,-l1(t)/Delta_T}
dl2(t)/dt=max{q2(t)-q3(t)-C2,-l2(t)/Delta_T}
I know to implement it I need having a function that takes q(t)'s as input and outputs into two separate st... | cb762894e54abee11bb1f1df280444ef7e04c711e37a7aa8fbf71bf75fcd68a1 | ['5da883ed821746838a783b5b0730b15f'] | I have coded a transport assignment problem using Non-liner complementary modeling in GAMS. The code runs perfect for single OD (Origin-Destination), and multi-O Single-D cases. However, when I switch to solve a Grid network with Multiple OD pairs, something goes wrong.
I have tried fixing some of the variables, but s... |
3cc60d8ce86b65f86d6b533c8f7fd025c9d31a447fa6b57a1064cb544c031607 | ['5dc43581a390494197a31175151e3ad4'] | I am trying to display a formatted string directly from a breakpoint action in eclipse-cdt (when programming in C).
I have configured a conditional breakpoint and associated 2 actions to it :
- a log action (I have checked the "evaluate as expression" checkbox)
- a resume action to prevent the debugger from actually ... | 0f0c2bab05057eb2534e0870f94ba3ab0127413a00dfa259fc98b00d6d9ff78b | ['5dc43581a390494197a31175151e3ad4'] | I am trying to compute the number of occurrences of pairs of values. When running the following code the numpy version (pairs_frequency2) is more than 50% slower than the version relying on collections.Counter (it gets worse when the number of points increases). Could someone please explain the reason why.
Is there a p... |
04befc3d77bd0f97801cbc26864012b3ee4900d98caef2d846816cfb44f8e303 | ['5dc452a8c63d42f094b210d1e23443fd'] | If your struggling for inspiration try one of the name generators: http://www.seventhsanctum.com/index-name.php
They generate names for people, places and things that come out logical. They have different generators and you can customize to an extent. Even if you don't use them, they may inspire you.
| e8f907390661bdd45c0c88f6add970e22ba820ee05f487eb4cf48a01813216c8 | ['5dc452a8c63d42f094b210d1e23443fd'] | Pelo seu exemplo temos a seguinte estrutura:
O objeto $data onde o mesmo tem um atributo chamado return que é um array de objetos. Para acessar o atributo return utilizamos $data->return.
Pelo fato do return ser um array podemos percorre-lo dinamicamente utilizando o foreach($data->return, $veiculo) onde o primeiro par... |
42ea8d8113b2e06990a4f27ac53c40f8b23d2f925025a1eff77fa7430ec54bde | ['5dcbd7bd270646629a737b359a3ebdfd'] | pip install multiprocessing
import multiprocessing
import time
def random_stuff_to_do():
time.sleep(1)
print("Slept 1 second")
task1 = multiprocessing.Process(target = random_stuff_to_do)
task2 = multiprocessing.Process(target = random_stuff_to_do)
task1.start()
task2.start()
task1.join() #This part is usef... | c6f289c76639b058d3562a760f8e0cffc70427d153242cf71d329bcc4d1a524e | ['5dcbd7bd270646629a737b359a3ebdfd'] | """Import these modules"""
import gspread
from oauth2client.service_account import ServiceAccountCredentials
"""Import the sheet"""
scope = [
'https://www.googleapis.com/auth/spreadsheets',
'https://www.googleapis.com/auth/drive'
]
creds = ServiceAccountCredentials.from_json_keyfile_name("Path to your
credentials.js... |
08ebfb00cf50ac9aed1ff28e9a41ea452008aa6c0ce969b87b6b2560a81b620a | ['5de67eae63e74e33b7371a82b7b41a8b'] | I would recommend this process (I guess you do this with root, right?):
Step 1: check whether the executable exists on your filesystem. Use updatedb to update the location database, then execute locate mbr
Step 2: After you found it, try starting it by using its full path. If you get denied, the error will show you wha... | 74609768068ec5a52e9f4dce1c09ff16b9b284b5628aa87353cdf83f5946511a | ['5de67eae63e74e33b7371a82b7b41a8b'] | What I sometimes found was that the OS was making some large downloads from the vendor's sites and this simply blocked other traffic due to bandwidth limitations.
To diagnose you could try to monitor connections on your router - given that it has that function. This way you could see that some traffic is actually happe... |
7bceacb46cfc7a6f7208d2d2b3325c220ca87112a7af6f450f7b0df778e504ee | ['5deac1e2a7c941129dca87e44219943d'] | How does app like Uber do real time tracking of Cabs? Let me put it across in detail:-
Cabs Position to the server.
Server then communicates that positionto the another user app which is trying to book a Cab.
I have gone through many blogs, after that I could think of the solution below to solve the 2 issues:
Cabs w... | 7db0e446b180e766b3324f211c5e61b7505cf16d328896cd0189e7ea0a804be3 | ['5deac1e2a7c941129dca87e44219943d'] | You can use ListPopupWindow to get what you want to achieve. You can set the more option icon or menu icon as anchor for the popup window.
ListPopupWindow mListPopupWindow;
mListPopupWindow = new ListPopupWindow(this, null);
mListPopupWindow.setWidth(300);
mListPopupWindow.setAnchorView(menuIcon);
mListPopupWindow.setH... |
9b66db56197fbca5d9743ea1e646cf24987dc47d591d8807dccb215162bb7db2 | ['5e25940c642648729a7968e6cf605a03'] | So after a fair amount of googling I managed to piece this one together. The data I was looking at was space separated so I used the fixed file width read method in pandas, following that I looked at the indices of a few known elements in the list and used them to break up the data into two dataframes that I could merg... | 04e97511471c216f2b4e047b044185088e98629196a51c1ecfa4fd7ab35d8add | ['5e25940c642648729a7968e6cf605a03'] | I have a txt file that is an output from another modelling program where it is looking at parameters of a modeled node at a time. The data output is similar to the following below. My problem is the data is coming as a single column and is broken occasionally by a new header and then the first section of the column rep... |
9910177f407b08aae72e02eb57705c50be587bf19dc279dcc246dd19a0597d98 | ['5e286ed22fe4407a8b1186a8dbe0ec3d'] | I've been using playing around with jUnit previously. Now I want to use Mockito for learning purposes.
I have a REST WS that looks like this:
@Path("postservice")
public class PostWebService {
private static final Logger logger = Logger.getLogger(PostWebService.class);
//Inject of the stateless post session bean for ... | 230306af61557b4afb402b7fe1d048f674498cc60c17b18bddbdfdbd06636f59 | ['5e286ed22fe4407a8b1186a8dbe0ec3d'] | I'm doing a school project where we are supposed to tap into an existing database using web services. I'm trying to figure out what best practice is when calling a web service from back end. I've been working with Servlets before and I know them pretty well.
This is my web service that front end uses and I need to know... |
30c794335a082c7d2b6df4b14bfc5896bf648ca468808b2c884d1921c83c1507 | ['5e31a1c70de04a36ae55d469ebff6f3a'] | извините за метку "wget" ничего другого я не нашёл и у меня нет достаточного количество репутации чтобы сделать свои метки. Я использую программу HTTrack Website Copier и там я не нашёл способ как узнать размер сайта перед скачиванием и хотелось бы узнать есть ли какой нибудь другая программа или что нибудь ещё чтоб уз... | 7ed43bee3ef3643456b1d7f42e6b4f7b1e68ed19462a241cddb21d46ec605ed8 | ['5e31a1c70de04a36ae55d469ebff6f3a'] | I have a PDE question that I am struggling to get started on. Suppose we have a function $u\in \mathcal{C}^2\Big(U\times(0,\infty)\Big)\cap \mathcal{C}\Big(\overline{U}\times[0,\infty)\Big)$ which solves
$$\begin{cases}
u_t-\Delta u=\sin(u)& U\times(0,\infty)\\
u=0& \partial U\times (0,\infty)\\
u=g& \partial U\times\{... |
1961f902b7a54e738c11a3aad66f0a19c0eec77c6c807b25da5ad7c53ff8908f | ['5e372038451f479b834b668563686e5b'] | I accidentally entered the pattern on my android phone wrong too many times. It now wants a backup pin to unlock. I remember the pattern and can get into my google account, but have forgotten my backup pin. I then locked it with Android Device Manager, and can see that lock screen, but it doesn't seem to give me a pass... | 58a59ddd9c37d9b9bd94efbee8218842523e401c030426caaf366cf0ab1e466a | ['5e372038451f479b834b668563686e5b'] | Let V=$P_5$(R) = all the polynomials with real coefficients of degree at most 5.
Let U={rx+rx^4|rϵR}
(1) Prove that U is a subspace.
(2) Find a subspace W such that V=U⊕W
For the first proof, I know that I have to show how this polynomial satisfies the 3 conditions in order to be a subspace but I don't know how to sho... |
c400ca80dbb2e5ec46f972565d3b2393edc665f7e4b78195d4f00e04180fe7c0 | ['5e3e09d599ce42b5b6215c0ddea94faf'] | I found the answer i started working with different ways to open i went through the ipynb file type on more time i understand that it is an html file written in json format so we can use html method to read it.
import codecs
f=codecs.open("DTR IMEI - VAS.ipynb", 'r')
print(f.read())
| 3be752add2eb53d20c255625533a7074943499a12eb4682e31f6749b4bac8a6c | ['5e3e09d599ce42b5b6215c0ddea94faf'] |
def request_sender(i):
request to the database with api calls
dict1 = {"file1":"id1,id2,id3",
"file2":"id4,id5,id6"}
for i in dict1.keys():
for j in dict1[i]:
request_sender(i)
currently my script automatically run when all the ids of a single file are updated and each file is an ipynb f... |
b15d9d411c8d3f24b5ae2eb9fc2599f3d714515428b945b98ccb1e88d04582f5 | ['5e3e940b49bb4dd0a50a878a45c8c866'] | I have been using the code here - https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/ - to create a custom taxonomy. But now I want that custom taxonomy info to be included in the site's default RSS feed. I dont want to create a new feed for the custom taxonomy, but merely include the custom tax... | 6241cd1c08d185dc2724f3b0d4da6f0dd0d8c4c177c950ee70ec4ab995a06897 | ['5e3e940b49bb4dd0a50a878a45c8c866'] | Essentially: Probably not.
<PERSON> actually comes directly from Latin, and comes from the same root as father.
<PERSON> comes from Latin, but from Patina instead. It's sometimes also referred to as "Patine", and in Italian it refers to the plural of patina. It's also akin to French Patene.
Either way, they both seemin... |
a8369bc24e91af0fe8dbc437e0d01a1576bf429f867df313a6c3491189fb6b07 | ['5e422d3dceb54124a259e9b6592e61c6'] | I'm trying to route messages from AWS SQS to AWS Dynamo DB using Apache Camel using the following route definition:
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="aws-sqs://my_queue?accessKey=${aKey}&secretKey=RAW(${sKey})&maxMessagesPerPoll=10&deleteA... | 6adbfb6644bfe5d1b20faa571339b87cb099b52ce760421e861c54af14379bdb | ['5e422d3dceb54124a259e9b6592e61c6'] | It's an old enough question, but I'll add my answer for those who like me google this issue.
You must inherit your filter from GenericFilterBean and mark it as a Spring @Component
@Component
public class MyFilter extends GenericFilterBean {
@Autowired
private MyComponent myComponent;
//implementation
}
An... |
b2c580bacc8be39f6bd9d933cb5d2ca3a3590cfdfb6854f0f43a928ad1d92009 | ['5e4b64e69fe54368ade8294e20efbc3e'] | @Joshua Witter
SELECT DISTINCT doc.id, c_user.contractor_name, c_user.company_id,doc.status,
doc.date_submission, dim.name div_name, gt.grade_name, dept.name dept_name
FROM contractor_user_master_ipms c_user, document_metadata dmd,
division_master dim, document doc
LEFT OUTER JOIN selected_grade_map sgm ON doc.id =... | a89505773706726a6c23a38405c3eaa0b31535ef10fea017e926a6b5e7ff9ba8 | ['5e4b64e69fe54368ade8294e20efbc3e'] | I need to prove that:
$$\left|\frac{d}{dt}\left\langle \varphi(t) , \varphi(t)\right\rangle\right| \le 2L \left\|\varphi(t)\right\|^2$$
and
$$\left\|x_0\right\|e^{-L(t-t_0)} \leq \left\|\varphi(t)\right\| \le \left\|x_0\right\|e^{L(t-t_0)}.$$
Where $\varphi(t)$ is solution of $x'=f(t,x),$ $x(t_0)=x_0,$ $f:[t_0,\infty)... |
34fa1e6988c0c060401250db8483a56b56d14114e6c8815bb916380f9c0dca3a | ['5e58d4c8334b4a7ab4512742b8bb9188'] | I'm renting a house in Washington DC but the house is going to be empty all of December since I am going home for Christmas. I'm very concerned about the pipes bursting. I would just leave the house at 55 degrees, but the thermostat doesn't work. I can turn on the heat, but it won't go to any specific temperature, it j... | e543b9e94a04b4c21bb6b492bc9d14eb9d276a148a73f722a0f1c4eb420f7465 | ['5e58d4c8334b4a7ab4512742b8bb9188'] | I would just make it lightweight and fast loading as possible, with prominent links to a site map and the home page. As soon as I realize I've hit a 404, I usually dive for the back button, or just try to hit the home page of the site if I'm interested enough in whatever it is I was looking for. I almost never actually... |
baf665735272c3c72f6ac8e2bcd8cee999ef7a7c5cdf6b0d59df81488ec3267d | ['5e803b9731424ea9a1c1feb41147fcf0'] | I believe that IP address is dynamic on Heroku.
When we first deployed our project there, we pinged the hostname that Heroku gave to us and used this IP in DNS record. Very quickly (in about a week) it became outdated and our project went down until we realized where's the problem.
So, you should use hostname that hero... | f28e94f3fa2866aca7eaa65854932a1b3fbcd25148ad3805b9fd4f8c9c6d50f2 | ['5e803b9731424ea9a1c1feb41147fcf0'] | You should use git reset HEAD~1 (without --hard option)
It will do exactly what you want and HEAD~1 means here that you'd like to reset one commit, counting from the head (top) of the history.
This will not touch any files on the file system, so git will now see your edited files as changed but not committed.
|
7bf760fc5cc4ed153735112d35b12752fe079ac5b80aa10a2b33736af50631f3 | ['5e89499027244ae3a29371a5ab7f2f6d'] | Ex. Set of Coins - {1,2,5,10} ; MaxSum -20
We have to find a set of coins with minimum coins which can make any number up to 20.
I came up with a greedy approach depending on division of the max sum by largest coin gives remainder 0 or 1.
20/10 = 2 -- remainder =0 ; In case of zero remainder, reduce the quo... | a4e0f080c422d75d4276fea53f087e956b20cfdd0edfb5e0bb552b03c8fdc320 | ['5e89499027244ae3a29371a5ab7f2f6d'] | Think how can Network Flow can be applied to this problem.
It should be something like that a flow passes from head of the crab to its feet. And flow coming to the head should be having a value equivalent to number of feet and each edge from head to feet of crab should have capacity one.
How can we achieve that?
It is... |
f080164e35a50c5facb34fb65c55ef9fad446b8b01e219d1b02fe95bddb70840 | ['5ea9ce2d1d14440998caee1927ceb936'] | I would store the value in an array and add and remove values from it and then write the array to the output instead of trying to parse the text each time:
var estadosS = [];
$(".checkboxEstados").live("click", function(){
var index;
if($(this).is(":checked")){
// append the id to the list
est... | f4f025d6434492a888287a717f0e6cb91d3c474c09210446ae9a7d4d1048f0bf | ['5ea9ce2d1d14440998caee1927ceb936'] | Ha, you posted the answer below before I could submit this one. I'm going to leave it hear anyway :)
original post -->
are you trying to store multiple form elements in the object, or are you trying to store multiple values from the same list box in object?
you can add properties to selectBoxChanges the same way you're... |
651ec124aaa316710dd66dcbac58663749876592cdf92f23b596535cae4a353f | ['5eaed672205b459894f2c96dd17a55b2'] | This happened to me with a custom component for Wear, but is a generic piece of advice. If you're using a Stub (such as I was using WatchViewStub), you can't just put the call to findViewById() anywhere. Everything inside the stub must be inflated first, which doesn't just happen after setContentView(). Thus, you sh... | e5f08c67caf7a7419363658880d6063de1ccda5273b4e34176db80615c6ada67 | ['5eaed672205b459894f2c96dd17a55b2'] | Try this:
/^(([A-Za-z]+[\-\']?)*([A-Za-z]+)?\s)+([A-Za-z]+[\-\']?)*([A-Za-z]+)?$/
It expects optionally [at least 1 alphabetical character followed by a ' or -] an indefinite number of times. There must be at least one alphabetical character before a required space to ensure we are getting at least the first and last... |
794687480a18ea73359f4bf1c8938547c2fd8f95368f8de1b180b01337ef10c6 | ['5ec0e96ecdd44c0eaaac9c44a330ab8c'] | If you do not want to use a library, one solution to showing 'written' months would be to create an array containing all month names:
var monthName = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
From there, you can use this array to display the month name in a ... | 6e9d014def985a9927a7ed6087ff7ae73eca12c422299859173972bd0ddb555d | ['5ec0e96ecdd44c0eaaac9c44a330ab8c'] | The best way to achieve this would be to have your horizontal nav bar behave as a table by using display: table on your ul; and display: table-cell on your li.
I would be able to give you some better instructions if you posted some code; but here's an example:
nav {
width: 500px; /* This would be set to t... |
22225ae7257d94c497a406d89bb85a9e569abc3cf7d193e77983b012dacddb53 | ['5ecd3d8ecf6345418333c0e185d1a948'] | In documentation I have seen, To add multiple events they used:
$('#calendar').fullCalendar({
events: [
{
title : 'event1',
start : '2010-01-01'
},
{
title : 'event2',
start : '2010-01-05',
end : '2010-01-07'
},
... | 76aa7659e2fe2c9ca51e886b235b3050cb928cebf78c68efc33527af120bdb3e | ['5ecd3d8ecf6345418333c0e185d1a948'] | I need some help to show multiple data by clicking a radio button.
My code: html
<input type="radio" ng-model="opportunity" name="buy" value="buy">Buy
<input type="radio" ng-model="opportunity" name="services" value="services">Services
<input type="radio" ng-model="opportunity" name="social" value="social">Social
<div... |
0cb81d7eae6b85c9b235b19ef308d3a9a38c457d95e7b9cec123ea199ef59b60 | ['5ecd6fd49d2e41a6a595f1ae7d03e508'] | I was having a similar issue to you, and I found that modifying my headers and including RobustFactory() to deal with 'bad' HTML solved the problem.
`br = mechanize.Browser(factory=mechanize.RobustFactory())
br.set_handle_robots(False)
br.addheaders = [('User-agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:... | 5016100aab1ec326f593fabc6cf848a00790271b99888bf69699380ea621f020 | ['5ecd6fd49d2e41a6a595f1ae7d03e508'] | I find that this is easier to do with the method below:
private String getXPath(String xml) throws XPathExpressionException {
String xPathResult= "";
InputSource source = new InputSource(new StringReader(xml));
XPath xpath = XPathFactory.newInstance().newXPath();
Object jaxBObject = xpath.evaluate("/c... |
fcfa00aa9d1c9d2d0ba91b0066ed0868156dac76e25512f188eaf90dce50933a | ['5ece6e3acbe24bb2a794e4abe0137faa'] | HTML, this is a short piece of the list
<div id="navigation"><div id="navHorizCont">
<ul>
<li><a href="#">CAMP</a>
<ul class="listhieght">
<li><table width="200" cellpadding="2">
<tr>
<td><a href="link">Tents</a></td>
<td><a href="link">Books</a></td>
</tr>
</table>
</li>
... | ecae37d7c6c95ab274b7a95082405869f9e60eaa2ae8e5150bed62c520695a5e | ['5ece6e3acbe24bb2a794e4abe0137faa'] | I have been working on the Eric Meyer CSS Reset. I have a site that is text heavy. The reset works for the margins. But it hasn't been working for font and font size. Firefox seems to make all text smaller even though I have a reset in place. Is there any way to fix this in the CSS code?
Or are there any Firefox hacks ... |
e2844b4dd2b8ebf7c0992bbfc64b757b65692125e1eed9ea420f0583a9779111 | ['5ed424ab802345fe867f571ed02d575e'] | ela representa a medida semanal de uma substancia em plantas ao longo de um ano e quero encontrar os intervalos iguais para saber em que semanas ocorreram. não sei como refazer essa logica de outra forma e pensei em Excel(VBA) pois os dados estão nesse formato. se tiver alguma sugestao ficarei agradecida! | ef70aca0430ef9121d03e69e896b2e6d8b446702c3a01f1fab7637aa769b2a39 | ['5ed424ab802345fe867f571ed02d575e'] | Final code(this works OK):
rankall <- function(outcome, num = "best"){
if (outcome == "heart attack"){
col <- 11
}else if(outcome == "heart failure"){
col <- 17
}else if(outcome == "pneumonia"){
col <- 23
}else{
stop("invalid outcome")
}
data <- read.csv("outcome-of-care-measures.csv", colClasses = "character... |
4da9521a76b564bc241f9807552eea57bbf2546d4b461a3402787e5779ebe6db | ['5edb44b6e8c541c8bff6cba42026d31a'] | I am running a mixed-effects model with the lme4 package. The model specifications are: log(dv) ~ 1 + A*B*C + (1+A*B|random1) + (1+A|random2), where A and B are within-group conditions and C is a between-group condition.
The first problem is that the coefficients for fixed effects are on the log scale and only the inte... | 55a8c2662401eb4cb2d8e93e67c4390b02e3c9e865c67b28def1934d7076a454 | ['5edb44b6e8c541c8bff6cba42026d31a'] | Thanks. This seems to work. I do the following:
`> exp(6.533079) #Intercept
<PHONE_NUMBER>
> exp(6.533079+0.152238) #intercept + coefficient for C
<PHONE_NUMBER> #this seems to large
> 800-687 #need to subtract
[1] 113 #this looks close to the expected effect size`
I think my contrast coding is wrong here, so I get ... |
2e214f6f7571207b8cfd397617a093900890f392a724339ce0e6619bf35e0735 | ['5ede51dcde4640fe834ec7b94b038194'] | My question was really twofold:
can you pull off having more than one style of layout (for instance, a bubble graph inside a force-directed graph) in a sensible way with D3, or is D3 the wrong tool for such a thing, and
Can you use D3 layouts for each of these layouts, or do you have to do everything custom.
In the ... | de9b1896863e34f11cc0ffa14248e82d817cdc0cd38e744a64dc1db981cdd49a | ['5ede51dcde4640fe834ec7b94b038194'] | I'm trying to build a force-directed layout, wherein the connected nodes have their own internal layout that is not simply a recursive force-directed layout (which, I believe, would be possible with the hierarchy layout). The "inner" layout would be custom, but, for illustration let's say I wanted the nodes, internally... |
7ac1e2455bdaebd9c20da59acdcd2931cea385218de5cb3b8fc4f484a21f28b6 | ['5edf83e15613427ca42751f0961a9256'] | I decided problem. I need to destroy object which I deleted from array because it is used in rendering.
I add
this.movieclip.destroy();
this.movieclip = null;
in Monster.prototype.updatePosition
So I have
Monster.prototype.updatePosition = function () {
if (this.movieclip.x > Position.END_X - this.movieclip.widt... | 8c04d6e603c2879e5335a9c4df3e5f32cb7a6fcbf556673155a95d8f349a2f82 | ['5edf83e15613427ca42751f0961a9256'] | I'm writing a game on PIXI.js. The bottom line is that everything works as intended. But at some point in the console pops up a warning "WebGL: INVALID_ENUM: activeTexture: texture unit is out of range" and textures in the game a little flash.
This error appears in a strange time and at the same time lost
There is a cl... |
6df183f163c04603f498d261ca941225240d361a2c86b20123a3de5f2156a8cd | ['5ee3058e76c8492a8b747408a6418700'] | Hi <PERSON>, I recently installed the Ubuntu on my laptop on Lenovo T440 Thinkpad laptop. Wifi on Windows 10 works fine but on Ubuntu 18.04.2 it's not working despite providing id/password.
output of commands you shared are stated below
nmcli d=
Device Type State Connection
wlp... | b631df88e01a26b9ec44abda7805f5b549c5dec5a7a440547695f742b9d90d2b | ['5ee3058e76c8492a8b747408a6418700'] | I'm fairly new with creating a web application and would like to seek help regarding dojo and zend framework. I'm having problems with validation on form submission and also need to create dynamic element when a button inside the form (add new moderator button) is clicked.
What I need is:
A dialog that pops up which... |
676089be0ab62542a109df52d35ce5b530f8276042ed14084dd976f3008e44f6 | ['5efd5c832b2b4d8480875e5a9deba2dc'] | I am new to WordPress and I'm wondering if anyone could help me understand how I should go for rendering the output of a plugin when a form of a widget is submitted in the front-end.
I'm developing a plugin that has two "views" and one widget. The widget is just a form with a dropdown menu to select a value from a list... | 83219575bcc6fd66bf5fb8987112358d24e82fe81b7abdb42a801dcb5a4bb1c9 | ['5efd5c832b2b4d8480875e5a9deba2dc'] | I am using Sublime Text 3, build 3114. It should be the latest version available today. Before installing this update, the JavaScript code was highlighted correctly when using PHP in this context. Now I am losing all the syntax highlight functions for JavaScript unless I close and re-open the tag <script>in the flow.
H... |
5d75ccdc680be8b67c4c4dce1ceeee596210c2fec8ee376a5078ebf16b9393e7 | ['5f0ba4c05bcd4887902b5a0dd0e31c97'] | you could try placing all the contents of the text file in a list, and iterate through that list to delete that particular file.
import os
file_list = [x.strip("\n") for x in open("file_containing_pys.txt","r")]
for file in file_list:
os.system("sudo kill $(ps aux | grep 'python %s.py' | awk '{ print $2 }')"%file... | fad9d0797388d13c6da58a006dfa1c1c0ae53e3061e5235bad61dc7459c6faee | ['5f0ba4c05bcd4887902b5a0dd0e31c97'] | You could try saving your data as a list and dump it into a json file, given that you already imported json.
z = [x for x in data1]
with open('your_data.json', 'w') as out:
json.dump(z,out)
alternatively, you could write z = [x for x in data1] as:
z = list()
for x in data1:
z.append(x)
/ogs
|
47eecc6e0b64d33aaf76aa0cab1197ce09b33aa650fefc3f4b54ab4a3a88c599 | ['5f0bc31efd9d4a6897b755989aa1a068'] | When I try to run that code, that error appears: 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 '' at line 1
And I have no idea of what is the problem, someone can help me?
CODE:
<?php include_once("includes/head.php"); ?>
<?php req... | ff4eb26e5c8d78f248f00b7585097af7a5982006b4a312e8cc8b43b42f1468b6 | ['5f0bc31efd9d4a6897b755989aa1a068'] | So what is happening is a little bit weird and I have no clue what is causing it.
After some minutes after I login into my account on my website and I refresh the page it changes to the last user that logged in so I have full access to that user account just by refreshing it, because it changes to that user.
So if I'm ... |
9c6d79683d77c7d609a75e3db908ddf7f5efb21581ec670873ef632ae6338efa | ['5f0e29712ba244a98dde9b0c87ba39a9'] | It is another way :
public static void main(String[] args) {
System.out.println("Enter the three letter name of triangle:");
Scanner in = new Scanner(System.in);
String threeName = in.nextLine();
String firstName = threeName.trim().substring(0, 1);
String secondName = threeName.trim().subst... | e1e3b0936997623a62693b2f59d59fab3e0fd16eee5bbf55c711ae5925b48066 | ['5f0e29712ba244a98dde9b0c87ba39a9'] | Maybe it can help you :
http://zetcode.com/tutorials/javaswingtutorial/resizablecomponent/
Disadvantage of code
In this code we do not layout manager. So if we have a component in center of jframe when this jframe is re-sizing this component maybe display in corner of jframe. You can solve this problem but it is a li... |
d181a6081ab3ed37d7d7a8f6cb0d115dc0ad1af2e88afcac896833031be5a250 | ['5f1139ad9eac4735bad6d4ab54e77287'] | Yes, I could recover that document. Here are the steps:
a) Open the recycle bin, find the .asd file with the right title and modification date, and restore it. Write down its file path (or copy it into a text file). (This worked for me.)
b) Search your user directory for any .asd files with the right title and modific... | 4a69debee237bbccb79d05177eb3a0febbe27c13e99760f44375487597c78682 | ['5f1139ad9eac4735bad6d4ab54e77287'] | Many ASUS laptops have a suffix added to their model number. I'm wondering what this stands for and what the differences between machines with different suffixes can be?
For instance on my laptop, it says BU401LA-FA273G. According to the ASUS website, BU401LA is the model number. Then what does the FA273G mean? In gene... |
0d1df53818d5bf02eb62d31824608fc8c4be46e4a82a564c44af80e9b1333e08 | ['5f194b2854e7474c844e3a1d6cf3d859'] | I'm using a UITableViewDiffableDataSource with my UITableView and it works as expected. However I'm having trouble updating an item in the snapshot. I have a simple sample where;
enum Section {
case one
}
struct Item: Hashable {
let identifier: Int
let text: String
public func hash(into hasher: inout ... | dde0a1b58e4bf4fae029d177a19a4cd0af815dda250fecbce0f1785fb0d3b098 | ['5f194b2854e7474c844e3a1d6cf3d859'] | I have a need to specify different value and display values in an option row (PushRow and MultipleSelectorRow). By display values I mean the values that are displayed in the option selection view controller (not the concatenated list of selected values displayed in the form).
I know this can be done by using a custom ... |
90888d3a96c0727d36b1060d83df0aa92ca59db80543c5c1de048a85d258ed1e | ['5f2b5c0560874fb9811b590ce30b8372'] | Is there a version of poolmon available for Windows Server 2008 64-bit? This KB article says it only applies to versions up to Server 2003. Is this tool (or something equivalent) available for Server 2008?
(I'm new to the Windows Server world, and looking for tools to help track down an apparent kernel-space memory lea... | d0b08c1d52cae599d810ea4e5479b0d88f126b6730f8e0b264bfb7b7046b4c27 | ['5f2b5c0560874fb9811b590ce30b8372'] | I'm trying to gauge the progress on a 4gb truecrypt volume I'm putting on my idisk. The progress indicator only has one item and perpetually stays at 0%. Is there any way to know how much of the file I've uploaded?
Is iDisk capable of resuming this upload? I move between the office and because of the size of the file I... |
042075165db27a1bd533ac03e743f881983650e89a4213a8040da4e43d11064b | ['5f4234cc06ca44d3bf757e2e18d2d46f'] | I added a field to a view model for a Document that should allow the user to associate it with a Tenant. It works fine if the user does assign a tenant, but if they select the null option from the dropdown, then the validation tells me that "The ItemID field is required.", where ItemID is a field on TenantViewModel.
It... | 1f5de05ad724d1ad91282892c0ecb657952ece556df96b4760eef51649e856ae | ['5f4234cc06ca44d3bf757e2e18d2d46f'] | I have site where editors may use a [display_phone] shortcode to insert a phone number into text. The number varies based on cookies the viewer may have; we make an AJAX call to get the desired number.
I'm trying to replicate this on an AMP page. I've done it successfully with an amp-list element, however, that's a blo... |
61f7793c303d8760b2cd1a584d539fd4e897d47c6bf8966160d5d3454496d7bc | ['5f47395469c5467c8b398ac9f99c4b58'] | нужно по заданному пользователем N вывести N членов этой последовательности.
на данный момент реализована сумма такой последовательности. но увы, не знаю, как вывести элементы должным образом.
сперва была идея в сумму записывать каждый раз +1, потом делать вложенный цикл, который бы мог по числу определить, сколько раз... | e87d9ab4625164f5d516d86c7d6e172687c029eb62c0f837872f89797273c8d7 | ['5f47395469c5467c8b398ac9f99c4b58'] | сперва я решила определять, каким днем недели является 1 ноября
воспользовававшись формулой Зеллера для расчета дня недели для любой даты получила, что после первого же високосного года сбивается вся нумерация на -2(то есть вместо выведения вторника (1 ноября 2005), он выводит воскресение
нужно как-то написать кусок, к... |
eb99098efda4254d7f955f3472697972d6bc06f14f6d8b2ee7b3acc2c86a7537 | ['5f481def1cac4e61a31b042205f1eb84'] | How can I consolidate these 3 event handlers into 1? There is only one property in my action which is different.
clickHandler1 () {
this.props.dispatch({type: 'updateMenuFave', current: '1' });
}
clickHandler2 () {
this.props.dispatch({type: 'updateMenuFave', current: '280' });
}
clickHandler3 () {
... | 6f37edcca64b70baf30f3a06c80db0b2d6ee084b14dbbcf701448cde6b4a282b | ['5f481def1cac4e61a31b042205f1eb84'] | or better, is this good practice?
I would like to store bookmarks, each bookmark a row. I want a tag column that is an array in string format that hold the hierarchy of tags that define it. For example:
url | tag
'stackoverflow.com', '[faves, internet, QandA]'
My current table is below, and I just want to modify the... |
7d3ab8202fa85691a687751e16bdbd808445c0b283b2ee5db005d1f5d125b3bc | ['5f4c072a63e64664afd5eabe14c2cf5c'] | It looks like you're creating a brand new HttpRequest to "currentPageUrl". This is essentially the same thing as opening a new browser and requesting that URL: it is a brand new request, with no viewstate. That is why it returns you a brand new response, with no values filled in.
Sure, you're firing the request from ... | 4b9ae92bfcf9bbb5dbab864a17f6ef1dd475a77c12d879fb82d9a2e7e1e1f249 | ['5f4c072a63e64664afd5eabe14c2cf5c'] | Using RegisterAsyncTask makes the asp.net page lifecycle asynchronous, but from the browser's perspective, the HttpRequest is still synchronous. Essentially, when you use AsyncTasks in your asp.net page, it behaves exactly as any other asp.net page, except that during those async operations, the thread is returned to ... |
920fd797e9da8ad05b81169d4f1b5c5806319c44b75745b60271280dda0efafa | ['5f4c1c5345d3456bb0a69096c36345fa'] | I have a question concerning the derivatives of approximate matrix inverses. I have a system, $$Ax = b$$ which I solve approximately (and with an iterative method) with: $$\Delta x = x - \tilde{A}^{-1}b$$ I would like to take the derivative of this process, i.e. find $$\frac{d\Delta x}{dD} = \frac{dx}{dD} - \frac{d... | d0cbc5db804beff4c861a2468fd432fd0d7f5bb6100baabf13ed084d90a2a838 | ['5f4c1c5345d3456bb0a69096c36345fa'] | I have two curves, $f_1(x)$ and $f_2(x)$ in $R^2$. I want to define an $f_c(x)$ such that if I travel orthogonal to the curve at each point the other two curves are equidistant. I.e. if i travel in the orthogonal direction in the direction of the center of curvature its a distance of d to $f_1(x)$ and if I travel away ... |
71a11b3b1e3399ba290ebaf64c0231f484c822bd597d5c98a346826792bc6216 | ['5f4e8e5af60a41c18f081a531de053e9'] | <PERSON> Thank you very much for the great answer. I am so excited to learn it from you. I can step forward to understand my system better. I expected from this pilot test to get a mixture of methane-hydrogen-carbon dioxide and monoxide, but never oxygen. It was quite surprising to me. I thought I got a false result. I... | 34650e93135841cd25923755d0c807888a5881759af542b21da02a0f50ad9abd | ['5f4e8e5af60a41c18f081a531de053e9'] | <PERSON> I actually tried to measure them at the second round running. I asked for an institute to analyze the syn gases after it cooled down (~300 degree Celsius). They failed to analyze them. Their GC couldn't read the gases. They said that the GC coould read the standard samples but not my gas samples. They made e... |
4c6af18af90be53e225afd86a48c61843aa71dfb7ad66be34b456d08077f2c54 | ['5f59344ae2d9408ab80c8375e235bca7'] | Need to import following in app.module.ts file:
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
formGroup is a selector for the directive named FormGroupDirective which is part of ReactiveFormsModule, is used to bind FormGroup data to a component element.
Then add it in imports array of the module l... | 5e55a1b6dbd718a272e2f3a7dd74b8e91471c907f00ca200682fc4bc23d8b17f | ['5f59344ae2d9408ab80c8375e235bca7'] | Any changes in Database packages and procedure does require datasource reset to take effect of the change.
Changing the initial capacity and minimum capacity to 0, does it require to reset the Weblogic Datasource.
Please share your thoughts.
I want to avoid reset process in Weblogic and share your views.
|
f7fd32caefd77d34893b8e454be1e27b7508cbd7282e3c0cdd6de2c4348e5c92 | ['5f6fbe243576413ba5f58ad1f6e634cb'] | I'm been research on SendToKindle function, currently I'm using the Chrome SendToKindle Plugin. I want to implement this kind of function by using a web-service.
From what I see, the "SendToKindle" is analyzing the webpage by send the page to the amazon server, and then it will return a new url which will only contain ... | c6c112f6d0f48923f3b392030cedfd61f857a960b426a12766ee24ba7dd6cba9 | ['5f6fbe243576413ba5f58ad1f6e634cb'] | I found out the issue and I was able to get it resolved.
Majority comment pointed out the setFirstResult(int firstResult) is the wrong version of class it been using. they are correct.
Bascially, the GlobalMessageLogProvider was been changed, but the latest verison of jar has never been pushed to the Nexus sever(our ... |
decead1e7653f5bf0ca67280fc93c572504f2247166b47f4142310f907130394 | ['5f75467d27844698b01dde5639d26fa2'] | Normally to post form data to a server without refreshing you need to use JavaScript. In JavaScript you catch the "submit" event and use AJAX to send the data to the server. This is easy with jQuery.
<script>
$( "#contact-form" ).submit(function( event ) {
var data = {
name: $('#name').val(),
... | c8e70f3a2f4398097aef9390bd2dc5449608414367bd8bc000aecdf7aedcd9b5 | ['5f75467d27844698b01dde5639d26fa2'] | I am new to Aurelia and Typescript. I am trying to use a the aurelia-dialog plugin inside of my project. I have follow all the necessary steps and am getting an error "cannot find module "aurelia-dialog". The offending line is
import {DialogService, DialogController} from "aurelia-dialog";
I am pretty sure all of the ... |
810ab67ac124469497f520ce0db78f409e3c0c9b7d91d3e713a11cabb403b3f1 | ['5f7eeb1fe7cb407f8989c058858362b4'] | I'm new to Ember.js and I'm trying to update a status variable in a model, but the view doesn't update when I do change it.
This is the javascript code for what I'm trying to do:
App = Ember.Application.create({});
App.EventBus = Ember.Object.extend({
eventBus: null,
connect: function() {
Ember.run.lat... | f0f94fa675ed1a56917a5062df2d71587121fe3b71fad5b7e51fe504253e25ca | ['5f7eeb1fe7cb407f8989c058858362b4'] | Until recently I always used Gulp to compile/uglify/minify my Ember.js code and it worked great.
This was up to Ember 1.11
Now I wanted to upgrade to Ember 1.12 and noticed that Ember-cli is now the preferred and recommended way to install/upgrade Ember.js
Does this mean it's not recommended anymore to download the ind... |
1525f6d7b0ada5b55c21a313f209815fa086bec49b1f0c5b7e6ae7093530c4b4 | ['5f8dd61d8a19480cae7bc52955818573'] | I don't understand the following differential equation which has the argument t in the numerator as well as in the denominator:
$$
R*C*(dv_2(t)/dt)+v_2(t)=v_1(t)
$$
How do you rewrite it to the form underneath so that I can find the general solution?
$$
y'+P(t)*y(t)=Q(t)
$$
It has to satisfy $$t\geq0$$
R and C are mean... | a4b48d83f1c487b13e7df258e40a9eca60c88af7f5e77481abe6ed5efa364dc5 | ['5f8dd61d8a19480cae7bc52955818573'] | @user247327
Ohh yeeahh. Hmm, is there in some way a method to do the gcd of two numbers and already being sure before doing the calculation that it equals 1? Or is it just something you have to try a couple of times on different numbers knowing that odd numbers often have a GCD of 1 until you find gcd=1? |
13e2d4837757050b338ff9e0d5d837d03cc28c43cdb364989bfd254379a49033 | ['5f909d95c9464a64805a7313df8a7e8a'] | Error Identified and solved
You said that content does not load in app.blade.php but you have extends the home page.
Update your script like this->
@extends('layouts.app')
@section('content')
Test text
@endsection
I think you got where you made the wrong. Let me know about the updates
| 2e726f739116898a7ae3bfd389a34eca80831cca8f3f78c3ab629f65c3f2bdf4 | ['5f909d95c9464a64805a7313df8a7e8a'] | //Write a program to check the number whether it is palindrome or not
#include <stdio.h>
int
main(void){
//Put variables for the further proceed
int number, quotient=1, remainder,i=0;
//To declare a character array
char text[100];
//To show the message to the user
printf("Enter an integer number :");
//Taking inpu... |
15b63010734a7ffb51099c0a8c8389c9b75c849a9f77a030fc36883462b6d04c | ['5f9c416f06ef462785dda6995369d797'] | what im trying to accomplish is to add a marker on a location in which i clicked and if i clicked on a location that isnt marked that it will be marked, in addition i would like to add a mark from a text box which gets input from the user on the map , the map will open automatically on the location from the text box an... | 8244935e274610be99d58f309dd93def594a04e3083b08fd81713ce7a54765ad | ['5f9c416f06ef462785dda6995369d797'] | this is my code i don't understand how i can add this code in my code ?
<p><button class="w3-btn w3-blue" onclick="getLocation()">Try It</button></p>
<div id="mapholder"></div>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script>
var x=document.getElementById("demo");
function getLo... |
6fdab253857e6c4eacaff7e249dff46f367e46009ddec6772985f843f4ea788b | ['5fb743dd794542fea1001a7843ba3e92'] | Recently I made an Audio Visualizer in Processing. From there I wanted to render the animation created in Processing into a mp4 file. I am on a windows computer, and am using ffmpeg to convert my TIF files produced in Processing into mp4.
When I do this I am able to render the images into an mp4 file, but when I playb... | badb1560a5505ac110d2b57dfd225ae386eb3f3d097038b202b1de704ab96e03 | ['5fb743dd794542fea1001a7843ba3e92'] | #include <stdio.h>
//needed so we can use the built in function strcpy
#include <string.h>
int main()
{
char* foo()
{
char* test="Hello";
printf("value of test: %p\n",test);
return test;
}
//why does this work? is test off the stack, but Hello in mem is still there?
work=foo()... |
9d3e503a964035c2643b531bf195909b503af1c7673a9641c0e8237ae3a4c757 | ['5fbe0cafd0734da4a30a1cccc318b41d'] | I'm trying to figure out where the exception is and I can't really figure it out in my program. What the program list does is find nodes and delete them. Here is my header file:
#ifndef DOUBLYLIST_H
#define DOUBLYLIST_H
#include <string>
#include <iostream>
using namespace std;
class Node
{
public:
Node() : data(... | 3a3b9a87890f475f99daac8af54fcd849f126d3a4b6b1020ff3ba862b3cb45d9 | ['5fbe0cafd0734da4a30a1cccc318b41d'] | I am doing a Java exercise for my class and encountered an error. It says "incompatible types: unexpected return value". It would also be nice if someone could check if I am doing this code right. My instructions were to create a varaiable maxValue that is to be intialized to the first element. Then I have to compare t... |
da1c52c3e5fd6bd7af5d5ef85acf66e87269c5000523eab531f529dc6210f701 | ['5fc7c77277b64a3b9b08357ace17fd62'] | Im using a select box with the multiple attribute to give me a box options where i can choose many of them. It works but not in the way i want it. As in, i can ctrl click multiple choices, but i want to have it that i can just click (without ctrl) and have multiple choices remain selected. As of now normal clicks only ... | 392b49f89fa68ca0e0764d2f376d6d10025b558acf4fa9da1139f4d4c223496f | ['5fc7c77277b64a3b9b08357ace17fd62'] | I am trying to pull changes into a repo. The repo's origin was originally located on a different git server, now the origin has moved to another server. On the new server we have a generic user called 'app', on other machines we have added the app user private key and a config file like so:
# in /root/.ssh/config
Host ... |
a23d8e7cd001b138bdea85a112f841860540a71ee5bf9e197784b8ea3f906df1 | ['5fd24b566d234161a5d1867efa6e41fe'] | Following the this web site,
it seems that apart from has two meanings which contradict each other
Except for.
In addition to; as well as.
When it is used as the 1st meaning, it includes the object that follows the apart from
But it does not include the object when it comes to being used as 2nd meaning.
How can I di... | 744a56ef24d5e9f401205b9d30e203641aa0afc15cd781c984463cb27c31b54b | ['5fd24b566d234161a5d1867efa6e41fe'] | Update/clarification: I can gain access to the booting portion of the disk, and I can unlock the encrypted drive with my password. Once I do, however, the mount option for the encrypted portion disappears and I'm left with only the 255 MB boot section mounted. Under disk utility, all partitions of the 320 GB drive are ... |
d05bd8aa527fdbd90c95c54c4e6e8f5a9d3f366ec70f7d22cbb243f15edc1671 | ['5fd800ab834044a48c9780737be74ac2'] | What do you mean by this is just filler?
Anyhow since turning on `Debug Mode` I started seeing the same errors that you are seeing and they are being related to SF components. Just like you the errors and the stack trace have nothing to do with my components. I just ignore those errors. If you turn off the Debug Mode... | 83d259a70ca44900f5225f8c2c253a22a330b43c3bc2e7d8405c38d960be0bca | ['5fd800ab834044a48c9780737be74ac2'] | I am not sure if this will matter but try changing the src to `src: url('resource/FontAwesome/fontawesome-free-5.13.0-web/fonts/font-awesome-webfont.woff') format('woff');`
See in the original example I had `resource/fontAwesome`, camelcase. Try to change that to `FontAwesome` like the name you gave your static resour... |
fc1de0b3595d5786155412347c3761137ebf86b13b74a704eaad01eb58804e26 | ['5ffbcfacaa854b38b15ec0d3a7134622'] | I have followed the steps for my Debian machine to run Emulator
Open Bios option, Mostly its by pressing f1 key or f1+delete or Alt + f4 (At the time of machine boot up) all it depends on which company's desktop or laptop you are using.
Go to Advance option
CPU setup
Enable two option there
intel(R) virtualisation ... | 7c2bbed3b61aae54889495904ed2cbe2a2eb46e36942fa09bfb60b42f9e733e6 | ['5ffbcfacaa854b38b15ec0d3a7134622'] | I have create ViewPager where one tab has QR code reader one tab show the result of scanned qr code. by default result of qr code screen will pop up so when i tab on scan qr code tab I only see the layout of that fragment but the scanner screen doesn't show up.
When I make default tab to scanner then only it show the s... |
5c98b0fc5c3afa305e2cb78007c91d277b93e8a6a971e874e84d19d43512fc95 | ['60127f0886c14e1cacab2835379bbc6b'] | The square saturation-brightness picker has two gradients:
White to black from top to bottom
Transparent to opaque hue from left to right
I'm trying to make this as a circular picker which should look like this:
Ref: https://paletton.com/
I tried to draw the circular picker like the square one but I lose the colors... | 4fafdaf91c6463fe44ba7b58d3a63ff0675205c542c4f17d24a4c1d0f762372a | ['60127f0886c14e1cacab2835379bbc6b'] | I'm trying to load a pre trained torch (.t7) model in OpenCV. The model is a CycleGAN which converts horse images into zebra images. The model can be found here: https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/models/
I've used both horse2zebra.t7 and horse2zebra_cpu.t7 models but they both return a tiled black... |
b6ac4259a2b595f964f2e7936f660720e5abe7e4ad5bdc534c08ee7adf7df244 | ['601ac22f23a64713a6ef8ee42eed4a58'] | I am trying to replace users description with a substring of his description. I want it to be just the first 10 letters. I try like this:
Get-ADUser abc -Properties description | Set-ADUser -Description "($($PSItem.Description).substring(0,10))"
Can you give me a hint how to make it work?
| e3ee51325e10ee6340f83fd42aad084e54b18f8cb612b7ddd6528b91e4d3b43e | ['601ac22f23a64713a6ef8ee42eed4a58'] | this one gives good output:
Get-ADUser abc -Properties Description | foreach { Write-Output "$($PSItem.Description.SubString(0,10))" }
But this one not:
Get-ADUser abc -Properties Description | Set-ADUser -Description "$($PSItem.Description.SubString(0,10))"
it is giving error like this:
You cannot call a method on ... |
c45415de99d191d9122e275f889a6d80ab8075bc907c4cd86eec32872ec4df2b | ['601f594fb863400383fa6445bb517454'] | If you want quick and easy solution (why else would you want to use Perl?), then just use
my $find = qr|<book name=""\s+author="">|s;
my $replace = '<magazine>';
And as you want to replace something across multiple lines, you cannot read line by line, instead you should slurp file in scalar (if your file is small enou... | 3e825334f24dd51d6f77ee4caad38dba26fdb8a2244744ff6702e53ba0abdda8 | ['601f594fb863400383fa6445bb517454'] | Say, your string is stored in $str. You can do the following to extract stuff from it:
my ($cond, $set, $then, $else) = ($str =~ /^If (.*) Then (.*?=\s+)(.*) else \2(.*);$/);
Now you have your condition in $cond, a = in $set and what should be in that variable in $then and $else.
Replace "or" and "and" in your conditi... |
bf9f6bdbb6ee858beeab6adf5482b34eb86bd3f6852c7348b97a64e1381b230f | ['60288a6691234c77902d45d7c7b472a0'] | During an experiment I had to measure the speed of light $c$ (it's an indirect measurement, because i had $c(x,y,z)$ as a function of some quantities $x,y,z$ I could measure).
I took several measures $c_1,c_2, \dots , c_n$ and I calculated the mean value $c_{mean}$.
Now i would like to find the error associated with $... | ef7c5fc9f3f790d7db0b0383ffbd349dc00dc9963d680b0a9b40a71144bd4d0d | ['60288a6691234c77902d45d7c7b472a0'] | There are two extensions which should help you.
There is the Extension:MultiUpload. If you upload files directly to the server using FTP or SCP or whatever, you have to import them into MediaWiki to make them work wiki-style, by using the maintenance/importImages.php file but it requires shell access.
There is also the... |
8588cd4e884c881ead8f769f92a3874a19e8e2275000a0b75cb5d7c0faac8486 | ['60369822a58b4db3ad1217c8d5d68010'] | If we look at the equation for national Savings = S(priv) + S(pub) = [Y-C+Tran-T] + [T-G-Tran] = Y - C - G . We see that Tax falls out of the equation. Therefore, does that mean changes in taxation policy don't directly affect the Supply of Loanable funds? If this is the case, and we assume consumption isn't constant,... | bc4f0dc265cd173138fb19cc85dd3460ea27de35ff04ee643c4c53fbeb250501 | ['60369822a58b4db3ad1217c8d5d68010'] | At first, I nearly posted `function(x)[0,-1,5,-1,-1,2,9,-1,8,6][x]`, also thanks to Firefox. I wasn't going to win anyway, so I decided I'd just stick with the highest-compatibility answer. If I start switching languages for brevity, then I'll eventually start defining my own language for every challenge I do. But I'll... |
01919275fabde7d40379b2b4669e1a05887682fc1962d5d4b62b9b2dcde0f2ea | ['60391bc5217e47d4b0df823b13892fd7'] | I am using CKEditor to get HTML from the user. The user will use HTML tags and it will be saved in the database. I need a functionality for the user to see how the page will be displayed when open as .html before saving in the database.
Is it possible to do that using CKEditor and if yes.....then how?
Thanks-in-Advance... | 2575e66dd726bf8dce3dfe75906e1f9a6187eed661b91322f999bc221310bdbe | ['60391bc5217e47d4b0df823b13892fd7'] | I am new to Facebook APIs. I am using Graph Search API and want to get public post such as comments, status updates who are having conversation about an object (could be a thing, location, personality etc).
I have valid access token with me.
Is it possible? How?
Any solution is welcome.
Thanks in Advance
|
9da7cbb337ce1a16975e841adb065cc010e3772b620e173449a45cf697e0f28c | ['6041cb60992446229debb99dfeec216b'] | The solution marked as right is good and right to the point. My only concern is that nextUid is a var that any other method in the class can update. If you want more secure (and even reusable) solution, you can do something like this:
class HashableIdGenerator {
private var nextId = 0
func generate() -> Int {... | 29735f22c8498b7bb98c4ca9cd30034527bfd4a49538664a075ec6880fd051b7 | ['6041cb60992446229debb99dfeec216b'] | I've faced these problems some time ago and it ended up that I had done 2 mistakes:
Never, ever, copy a MCPeerID object: Once I was storing MCPeerID objects that I received in MCNearbyServiceBrowserDelegate's foundPeer calls as the key of a Dictionary, which copied the object. Then when later I used that peer ID to in... |
fce8bebafef0d1295e956480e328cd02d07c48d207fed2ca683d38a103758ac7 | ['604aaef3bac44081b0dfc6282ee9a724'] | I am trying to run some PowerShell commands and my script is failing on the following line:
$ipsr = New-Object Microsoft.Azure.IpSecurityRestriction
The error is:
Cannot find type [Microsoft.Azure.IpSecurityRestriction]: verify that the assembly containing this type is loaded
I am trying to run this “inline” in an Az... | 784a360c14fdc3b9839d092fa87fe8949472455eadcd7cabc889f70e0079c476 | ['604aaef3bac44081b0dfc6282ee9a724'] | I am looking to use Azure B2C with a classic asp.net web application. This doesn’t use any OWN middleware so I was hoping to use the Global.asax to inject the relevant tenant, client and policy info via the Application_PreSendRequestHeaders method. Can anyone tell me if this would work and if so, what names should be u... |
0369d2843b95c9af8b5d14ffe907e281af4ad49e506eaf8ff67ca78fc879d8a8 | ['604cec97ee9e4ae19ded0ed56098e80e'] |
This is one LinearLayout. I set this layout alpha to 0.6.
I want to set transparency only background, But it set inner values too.. Is there any solution to solve this problem?
<LinearLayout
android:alpha="0.6"
android:background="@mipmap/ic_launcher"
android:layout_width="match_parent"
... | 6f0177ee77fb553b8814e9a784a56b118d23b34ab9249f42efcf2e57caa42406 | ['604cec97ee9e4ae19ded0ed56098e80e'] | I want to change textView(in mainActivity)'s property like textSize, or textColor.
Then I tried to use it at setting activity.
View view = getLayoutInflater().inflate(R.layout.activity_main, null);
readTextView = view.findViewById(R.id.textView);
And It doesn't work.
Also, I tried to How to update a TextView of an ac... |
73167ccadc9c5e06a7481f235b952b16361f00a1e91b7ca34d362584a520e175 | ['60503479c14e418da18ed1fb14322ba7'] | Maybe this will help someone.
The player from Sharepoint 2013 supports only certain formats(for HTML5 : asf, avi, mpg, mp3, mp4, ogg, ogv, webm, wma, wmv ; classic Silverlight Media Web Part supports: asf, mp3, mp4, wma, wmv).
I had to support swf files so I searched for other options. I found this one https://code.goo... | 55a383b5bbf0d99ff934c59bb1122af7e1a22be580f918d624afd4cc874b3b50 | ['60503479c14e418da18ed1fb14322ba7'] | I'm evaluating OpenTok for a text and video chat app.
The Xamarin.OpenTok.iOS library works for the video chat, but I have an issuee with the text functionality.
I'm trying to send a message from an iPhone to another.
For sending messages from the first iphone I use:
Session.SignalWithType("signal", message, Session.Co... |
1dda293e1cf4cf551119bb8d17993428cdc87c1e2410846fa1089b4fae048ef2 | ['6056c83f3d5a40d889994f91016dde6e'] | I have a problem while making my skype resolver, when it resolves an ip the text comes out like this ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SERVER 1: <IP_ADDRESS> - Skype4Resolver.com" (btw the "," are spaces... stackoverflow doesn't show them.) when this happeneds it makes the text go unseen and out of the textbox. c... | 5073249e883749a9f7f2b5c03b4cd7eea3d2f0e06d90fbb3bd55cb6781472d4b | ['6056c83f3d5a40d889994f91016dde6e'] | So I'm doing an assignment for school and am having troubles using an API in java script. When I use XMLHttpRequest I receive the status code "0". After being frustrated from trying with XML I tried using fetch, I now get the error "Fetch failed loading: OPTIONS 'https://api-us.faceplusplus.com/facepp/v3/detect'"
To pu... |
dc22b56ec0e7d390980bc90102bbbdb19b58adb35ddf60e4c015806e1fea2cec | ['605baac1146d47958b04706d8c773ae0'] | You can accomplish this using a nested for loops and do something simial to:
count = 0;
String results = "";
for(int i=0;i<userString.length();){
char begin = userString.charAt(i);
//System.out.println("begin is: "+begin);
for(int j=i+1; j<userString.length();j++... | d0c26f26e81b19d40b763bde7aa1b6651b568c8b7fbd8d744576c897f61347b0 | ['605baac1146d47958b04706d8c773ae0'] | So first thing that i noticed was that you have an infinate loop. You leave dontStop allways == 1 so your code will never exit the while loop. Second System.arraycopy(anArray, difSymbols, patternArray, 0, symbolsPerLine);
will get an out of bound error when you use an number that is greater than anArray.length, so you ... |
f23de7c5596713c2ce5a82cb2e80ac7b4857236187965a614f290a74bf43fd80 | ['605c95a2f1894dd2bb25fcfda441ec20'] | Thanks, teecee. It does seem like someone's accessing computers methodically, immediately checking PayPal to see if you happen to be signed in to that.
My password was NOT used anywhere else, like many other users reported, which makes it very plausible that TV's database was hacked. However, I've since enabled 2FA, w... | 1191c121f9bcba08d025ca04649b92aab8bb4fc8e50cb2436a1863d65b026f65 | ['605c95a2f1894dd2bb25fcfda441ec20'] | Thanks. I own a multimeter, and I know how to set it to AC mode, and even know how to adjust the range. However, I'm not sure where and why to place the contacts in order to figure out out to identify the C vs. Load side. If I had to guess, I'd test the upper wire (supposedly a C wire) against a red thermostat wire, wh... |
071f563e8ef084113a52451bf7173076b4959a897b07114c172862fbc54f1c66 | ['605fb8040b89488ebd1e3495ee7a5ee0'] | I am doing a mobile app which use the slider function in Jssor.
There are 4 pages and I would like to stop the page flow while it is the end of the page.
i.e. After keep swipe to left, from page1 to page4, while page4 reached, it won't go back to page1.
Thanks for your help.
| 172fe2ce8f9dcf389791c6c444c01ef956c0b7f832a56107a500989764075f40 | ['605fb8040b89488ebd1e3495ee7a5ee0'] | I would like to perform a xml data exchange as below:
The incoming xml data have some tags i don't know about the tag name.
Can i read those tag without knowing the tag name?
Also how can i get the tag name as the data attribute?
For example:
i want to read different patients record. Every patient have different disea... |
63f04b9694d0c64d5942ba72186b3963a545ebb5a0295d4266bc3c5cdeca74ce | ['606131862585489bbe6e2a1d6305e847'] | I used the sudo service lightdm stop to install a driver, (it was unsuccessfull, but it doesn't mather), then a rebooted, and since than, I'm unabel to chamnge the resolution of my laptop. I've tried so many ways, but all of them were seless.
Thanks a lot
<PERSON>
| d0abc3d28aed31e541f4844e05042b2756b8f682fed132ee9a5454a1c5c4f9e4 | ['606131862585489bbe6e2a1d6305e847'] | <PERSON> a programar en Java(nivel novato) y estoy haciendo una clase que se llama Persona; pero al compilar me arroja el siguiente error:
Persona.java:31: error: illegal start of expression
if (sexo != 'H') && (sexo != 'M'); s = "Desconocido";
Como lo puedo corregir ?, este es <PERSON>:
class <PERSON> {
p... |
20c29fcd78bf68adc73146994daa8a8ff2aedd48f9d2f3b97cca40ca6d017566 | ['609b9bade3e24a7c80a930fdb3265fc7'] | I noticed you're using ASPNET, if you're using the ASPNETCORE version, since 2.x, you can have background services that you could run every X hours to resubscribe (update) the subscriptions. That's what we're using (and we're on Azure). I would guess webjobs could do the trick, but I have not used them yet. You could a... | e6ea7eb8d021d2ae94b4f2c1554472c3535aceb0f8bbe6fd92390a10d444d291 | ['609b9bade3e24a7c80a930fdb3265fc7'] | I also found no easy way around this.
The following might make it simpler...
public static void Reset(this DbContext context)
{
var entries = context.ChangeTracker
.Entries()
.Where(e => e.State != EntityState.Unchanged)
.T... |
ac1ac4185af8c1133a2b892ae8ff55a9abf7bbc14ce0e1f2f2e182e1ddb0c002 | ['609c19a6e31848a395f84b87ed8d01df'] | during my Camel routes, I query a server (a HTTP GET) and as a result, I receive a 200 OK with a XML body looking similar like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userProfiles xmlns="http://www.mycompany.com/AEContext/xmldata">
<userProfile name="guest">
<userProfileAttributes>
<u... | 4bf38c667373c7d1ce388159b766da84662ce11546fa7468797116ce41b9bc28 | ['609c19a6e31848a395f84b87ed8d01df'] | We are using Apache Camel as an orchestration engine. Typically, the following scenario:
client sends HTTP request <-> CAMEL code <-> external server(s)
The ball starts to roll when our client sends a HTTP request to our CAMEL code.
The Camel code will trigger external servers via REST HTTP calls.
Eventually, the Camel... |
9c79f03394d2b5b606d2b6b97ce5f2fd1e2b83c9667bff019626b2e99480722d | ['60a08297ca664d28bb0451e5d7d765de'] | I'm getting the following communication exception for my wcf service making cal to another wcf service:
"The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
I resolved this by increasing the... | 695ff9e23f81021c63d79690f6e7ff91ab0cc22815b327996ba5496d7fd3a1c6 | ['60a08297ca664d28bb0451e5d7d765de'] | We are getting the below exception while reading data using JsonTextReader
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
JsonTextReader jsonReader - parameter
while (hasRecords(jsonReader, JsonToken.StartObject, null, null)) //Row
{
... |
abaa72a2819f6103583e25d20fb57554dc74e23f391258f05a9e387c86df4d8e | ['60b22a37fbb9486b84d068dc11965ac7'] | The simplest way to achieve what you want is to create an instance of the data module for each form, and pass it to the form so it can be freed when the form is closed:
var
Data: TDataModule;
begin
Data := T<YourDataModule>.Create(Self);
try
Form := T<YourForm>.Create(Self);
Form.DataModule := Data;
D... | cc4fe0f858d3646fa2b1d1d1749b8b875a83ab7165920e3545565045971e8ddc | ['60b22a37fbb9486b84d068dc11965ac7'] | Three component sets I am aware of that will take care of the nitty gritty technical aspects of client server applications for you:
kbmMW: http://components4developers.com/
Asta: http://www.astatech.com/index.asp
RemObjects: http://www.remobjects.com/
You may have to rework your applications to take advantage of the ... |
533e38296d9cfd95f11552375f7a30af3aea25f9cc226ecdf1f826888d1d1a9e | ['60b76d2ea0bd406da36237137b93b2b5'] | I'm saving the Zoom and Location of the Google Map API setting in cookies as the user adjusts his map. When they come back the map is at the same place. The function works most of the time:
var h = JSON.stringify(map.getCenter(), null, 2);
jQuery.cookies.set("YD44635center",h,cookieOptions);
On the decode side u... | 7d47b9badfc709de8f709fa826155eb55fc141c4ecb0a6049a2cbbcc8b17976a | ['60b76d2ea0bd406da36237137b93b2b5'] | I'm using phpMailer on a Linode server. The DNS records are set to allow sending through the gmail mail server which is hosing my mail account <EMAIL_ADDRESS>. I just added DKIM to try to get the SPF rating up. The DKIM apparently is fine but I still get SPF Neutral.
The sender set up is:
$mail = new PHPMailer... |
e0fa0dcaa52b63fd1b9e45334048c8d4f592cab6ca5fc6d00fe61e7e1ab7ecb6 | ['60b94caf45864dddb67fcc25894f83bb'] | I'm creating an asp.net web api. Many of the routes all do the same thing, just with different node objects. I'd like to create a base model from a BaseRepository class and simply have the child class cast and return the object(s).
For example. GET api/{controller}
The only thing that changes in this cypher query is... | 23922d41acec5bccf774eb27440686c0c82637b183ae053544352e0e4d2e247a | ['60b94caf45864dddb67fcc25894f83bb'] | Server side I'm using WCF returning properly formatted json. I'm able to receive the expected data when I use a jquery $.ajax function, so let's assume (unless there's a nuance with jqWidgets) that the WCF side is correct.
What I can't get to work is loading a jqx dataAdapter with the same data. I've tried a dozen di... |
d188a535e9edd38157a9c86bb56040f45439a1047cb81784f3172bd6d37b2614 | ['60c4e732194149f3a972ded9d090af32'] | Un archivo parcelable sólo puede tener un 1MB de tamaño, por lo que si quieres pasar datos entre activities, una solución recurrente es usar un Repositorio singleton.
Si estás trabajando con Kotlin puedes emplear object y si usas Java pues el patrón de diseño Singleton. Si estás usando un inyector de dependencias o ... | 2b99d1eb9b61bdd1ad5a1de536db3536e3ddd961a30ea0464a159cd9f3e2c1b8 | ['60c4e732194149f3a972ded9d090af32'] | Si estás usando "unas imágenes que son círculos" probablemente te interese ver el componente TabLayout ya que son marcadores de las páginas del ViewPager y cambian automáticamente cuando el usuario lo hace.
Si no es el caso, ViewPager dispone de un listener llamado addOnPageChangeListener que captura el cambio de tab:
... |
ef07e90282dba1ee9597abe5e46a2c3df512d4fda7bebf1d6447c2558f9eed73 | ['60c9d12ab74442d6a94c99e9f1772bdf'] | Let's say, I have many spheres drawn with surf/mesh function in MATLAB.
I want to display customize data values rather than x,y,z. All values will be different for different spheres and clicking on any point on a particular sphere should display the same data. Refer figure. How do I achieve it?
So far, I'm thinking of ... | 9abe82744ef1456faaf79e47fcfced2dd5c09447db69c86ee6dca0a6fd7c2643 | ['60c9d12ab74442d6a94c99e9f1772bdf'] | In the CMakeLists.txt, if I define the .lib (static library) file path as absolute path, it's working correctly. But if I define the same as relative path, an error is thrown. How do I solve it without hard coded ?
File structure:
|--D
| |--Rohit
| | |--Sandbox
| | | |--demo
| | | | |--src
| | | | | |--a... |
b50ef446a46f612331a4365abaa00bf38aaa627db45011f97bb3aa1550d1381f | ['60e29c3613e24c29811ac76098d0203a'] | I am currently displaying an RSS feed and I am grabbing the title, link and date for each article. I would also like to grab the media:thumbnail for each article. Here is the PHP code I am using to retrieve the RSS feed.
<?php
$rss = new DOMDocument();
$rss->load('http://www.avfc.co.uk/r... | fbeb5c6b4985503a0929b5de57fe13a39c26204b17185a2451c383849f610ce5 | ['60e29c3613e24c29811ac76098d0203a'] | I posted a similar question last week when having a problem and wasn't sure if I could re-ask in the same question or not so I have created a new one just incase.
I've got two columns, one floated left and one floated right, and I am using clear:both to clear the floats but it is not working. I have checked to make sur... |
d9d5d0fc7ac3e70fe448b9231218b8a86511356fe62159eb6cb2fac53d2b4d5a | ['60ea78c5b5894874bc8880a0bcc2e152'] | Hey I'm trying to create a incremental game and am stuck.
You press one button and get a currency which is called "Evos". With these "Evos" you can buy a storyteller who will start to generate "Evos" on his own.
this is the code:
$(document).ready(function() {
"use strict";
var evoAmount = 0;
var storytellerAmou... | 32dba33c4255b84b717bfd173d19710857010572d885281b165cde0a7845ad03 | ['60ea78c5b5894874bc8880a0bcc2e152'] | im trying to figure out how to call something from a json file without using for loops.
% for projekte in liste:
<tr>
<td>${projekte['id']}</td>
<td>${projekte['projektnummer']}</td>
<td>${projekte['bezeichnung']}</td>
<td>${projekte['beschreibung']}</td>
... |
e3e40d04de29f74192a9f071f929de7a081250f2be8f6ca2b6afe2f8eccf908d | ['6104f951129d4043997a817b75306583'] | My code:
Box = (function() {
function Box(options) {
this.id = options.id;
$('#box-reload-' + this.id).click(function() {
this.reload();
});
}
Box.prototype.reload = function() {
alert('test');
};
return Box;
})();
b = new Box({'id': '0'})
The click event is correctly registered, but ... | 63d39f192c691d866d6bc2f99f0fb576676d9380497852aa7e2dc816929aa6c2 | ['6104f951129d4043997a817b75306583'] | After installing Ruby + Rails on Windows with RailsInstaller, i couldn't install any gems that required to build native extensions. Error:
C:\Users\Admin>gem install rdiscount
Building native extensions. This could take a while...
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extensio... |
b54c7c03fbea129971b486a2f40e1dcd726c74826d23e4fb58a9dc56b5576ab3 | ['6105d827440643b59806b48cc95873a8'] | the rule is
"//Reference[matches(@literal, \"^\$[^!]+\") and ./preceding-sibling<IP_ADDRESS>Text and ./following-sibling<IP_ADDRESS>Text]"
for your convenient I will provide the project and you can mvn-test it.
the whole project is at https://github.com/XenoAmess/p3c/tree/1605f4d1b9c6a505074be5328953af26f578e190/p3c-pm... | 6fd8a3e863c0af485dde81f9e158a737c7f9b10ccd376d128dcc92f40cef8e00 | ['6105d827440643b59806b48cc95873a8'] | Finally I just abandoned jdk 9.
I don't want to figure out which part of jdk 9 have bug or how to let maven put some useless files into jars just for pushing jdk9 to build it, no any more.
Maybe I shall make this decision earlier, thus I can enjoy a good night with some good movies or board games with friends...
Anyway... |
58ea00d73d9716181f90e83c54aa7cc1c63e7ed2526905e449620deeb3ba0964 | ['610c284127524312a78821a2ed5c4634'] | Хочу написать проверку на три одинаковых переменных. При этом если встречается две одинаковые переменные все равно выдает истину. Написал для примера только для одной переменной.
a = 3
b = 2
c = 4
d = 1
e = 3
if (a == (b and c) or (c and d) or (d and e) or (b and d) or (b and e) or (c and e)):
print ('Good!')
else:... | 21ea6b15efa35812ed8b0928b368309e05679c439ebc8c4b9a37bf73fe604acf | ['610c284127524312a78821a2ed5c4634'] | i want to buy a new laptop and my budget allows me to buy one with an i3 processor and 4gb of RAM. i will install win8 on it. what i'll be doing is mostly work with visual studio 2013, doing WPF desktop apps and maybe i'll get into Win8 apps and Windows mobile apps. i would also like to be able to do some android devel... |
55a19b53d86af14a12314c352123683f5a4e75e1a6d3ea0cb40c4c977a8ce82f | ['610cfb9e31574cbc8c0ddd5b8c27e670'] | I know very little about html programing. I am running a Minecraft server with my friends, and I found a neat program that renders out the entire map in a overview style. This application creates a bunch of files, and then to open the map, you open a file called "index.html". All I want to do, is to open this file with... | 5d6b79fa91da58578d6fad902edf58b88f891c41940336e90e3b6f9a7f7f926a | ['610cfb9e31574cbc8c0ddd5b8c27e670'] | I am learning C# in school, and I am already used to coding in Python.
Trying to take what I have learned in Python and apply it in C# has worked pretty well so far, but I have ran into an issue. I just CANT wrap my head around how lists work in C#
Say I'm working on a simple game, Tic Tac Toe.
In python, I would make ... |
04012585a235be6f15cb56c4d5605aac269d93e3ac44148c9ed67b17dbe8eec5 | ['611ea73cc44e4ada9c0d18b089a7baab'] | If I have user object and user has one basicinfo. In user show action I have:
def show
@user = User.find params[:id]
authorize @user
end
And in show.html.erb I must show user's basicinfo, such as:
User name is: <%= @user.basicinfo.name %>
In this case should I also authorize basicinfo in user show action?
def sho... | eb34312b39b04432838ff6b687d4987035fd6a3204658ae5bcf9b6e342a7624b | ['611ea73cc44e4ada9c0d18b089a7baab'] | I implemented a flash(message) view inside application template, it use application's msg attribute to show site wide message:
<div class='application-main container'>
{{#if msg}}
{{view Yu.FlashView}}
{{/if}}
{{outlet}}
</div>
Part of my router:
Yu.Router.map ->
@resource 'user', { path: '/users/:user_id... |
6c1231a05f3ba512114e20aba29effacf09973a3eef7cbeab73dd9ffa2e027b4 | ['612c70c2162f47ee8852cbf4cad1c619'] | I have generated a Nuxt.js and checked the BootstrapVue option in the CLI. When I run npm run build and then npm start, when I check the source code there is a huge junk of <style> code which is for BootstrapVue. How can I put it in a separate CSS file?
| 675e27bc3c07fc76055165899af2e9a65c56d197adfbfdb0d14dac6c03988616 | ['612c70c2162f47ee8852cbf4cad1c619'] | I have a CustomPainter that looks like this:
class MyPainter extends CustomPainter {
Offset left, top, right, bottom;
MyPainter({this.left, this.top, this.right, this.bottom});
@override
void paint(Canvas canvas, Size size) {
Paint pp = Paint()
..color = Colors.blue
..strokeCap = StrokeCap.rou... |
78f9fbf9848c9068444dca967aefa66254a6a95f1ab059c41e07e202408d0fa2 | ['61373b94011a476ab32cece8505c7a57'] | I have a pipeline with a copy activity to move data from csv file stored in the Data lake store to Azure SQL database.
The user needs to specify which file to move then execute the copy activity and this to be done from our web application. So to be done programmatically I used the Azure Rest API to update the pipelin... | 4e47eaa381444df49c2bd8b7430e373b8adbc0944e5287459a044a4f758478b4 | ['61373b94011a476ab32cece8505c7a57'] | When trying to call my azure data lake store space and list all directories , It fails to return any results during to missing CORS .The problem that I can't find any way to give the Azure DatalakeStore the CORS policy ( Not the same as Azure Storage )
Any workaround or solution for this ?
|
09da90b9f5ef28cfe9f61bcc3a50ee6a1f2824caf181b413b10bc658e07e3d8e | ['61373d0ad1e44728b212ecf1b6870392'] | She's deaf, and doesn't realize that her 'voice' is excessively loud. She probably screamed a few times just by chance because she couldn't hear herself, and then by understandably rushing to do whatever seemed to make the annoying noise stop, your family has inadvertently taught her "the more and louder I do this, th... | 952205fbc47252792457aae7ed70d6b6c2e883f398aa6a2dfaf874798478bf2f | ['61373d0ad1e44728b212ecf1b6870392'] | Your best simple bet is to ask your uncle what the cat was eating before it was given to you and buy some of that. Many cats have a hard time with change, and the change to a new home and new food at the same time is likely too much for her to process all at once. Besides, changing foods or feeding schedule suddenly ... |
95e08d4a8640a358a14db75e8722c0f22ea2429deae0ea9fa22e625fbbe7007e | ['6149ee6a28084e5a9cd49904f662c03c'] | I successfully installed the "actionssdk-smart-home-nodejs" and it works well if i launch it using the command "node index.js" within the folder "...actionssdk-smart-home-nodejs\smart-home-provider".
I need now to debug some part of the code, thus i tried to debug it using VS Code as editor and with the launch.json con... | 785b9048dace6dd8882a42a7f2f76ff1b359e984406a83052e9d529ad80f7edc | ['6149ee6a28084e5a9cd49904f662c03c'] | After long digging i found my issue. The config file for debugging was missing a config line.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations... |
0980b6a86d769c7171c661e28718c28737f8fc040087d99fed4031d9f03c02bb | ['6156617b0797422bade4c7f74c1dca42'] | Can someone tell me what is the use of last 'Y' in the " end = 'Y') "
( case
when a = 'STAGE PAYMENT' then
'Y'
when b not IN ('To be Received', 'Received') then
'N'
when c != (d - NVL(e, 0) - NVL(f, 0) - NVL(g, 0)) then
'Y'
when NVL(h, 0) + NVL(i, 0) + NVL(j, 0) <> 0 then
case
when c != k then
'Y'
... | 90845f2feb47c9fd7dc62441616195f22f40d0c4be8af0626bafe9b270c381e1 | ['6156617b0797422bade4c7f74c1dca42'] | I am quite new to PL/SQL.
I am using the following nested CASE statement in a SELECT query. This follows the WHERE clause.
However, the query takes about 6 minutes to complete because of this nesting. If at least one CASE block is removed the query only takes about 1 minute to complete.
Is there any way to optimize th... |
e81904d3c5c5ddd419fe0de82ac4f16b1c65412c6690e047641479a9a2be3833 | ['6156f616e3dc4e3f89f88abc6f613461'] | I'm trying to create a tooltip inside a scrollable div-element:
.tooltip {
display: none;
position: absolute;
background-color: #000;
color: #fff;
}
.parent:hover .tooltip {
display: block
}
#list {
height: 40px;
overflow: auto;
width: 80px
}
<div id="list">
<div class="parent">
Element1<span ... | 91f530fdb933e95e424680c74410ff8ce0835fd49b8e88d210b18be578df2ab1 | ['6156f616e3dc4e3f89f88abc6f613461'] | I'm not quite sure what parameter it is, that you want to be expandable, so I recreated your code with two parameters N=2 is the number of vectors you want in the end, M=4 is the size of the chunks you want copied together:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define N 2 // split in N=2 arrays
#d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.