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 |
|---|---|---|---|---|---|
64e667a3a5258e891a0a638f423a94f3cf1b450a4cf3fe03df6e2d9ed089e1ae | ['b417086b50b84e3293783883d2d4b55a'] | import random
import time
from datetime import datetime
dates = []
def randomDate(start, end):
frmt = '%d-%m-%Y %H:%M:%S'
stime = time.mktime(time.strptime(start, frmt))
etime = time.mktime(time.strptime(end, frmt))
ptime = stime + random.random() * (etime - stime)
dt = datetime.fromtimestamp(time... | 15506df01d8b97071a461618d45ba970c5b976be9a16d3800018e8c32276a5b5 | ['b417086b50b84e3293783883d2d4b55a'] | I am trying to make a watchlist for stocks for my website. The data i.e name of the Company and the stock price is already being displayed on the webpage. I want that the user should just click on a button on the same webpage and it adds the data to the watchlist of the user.
This is for a website for stock analysis. I... |
f0c3e6a286a620dfdb1c51da3e42fc591a677544a90389de1db72afc520dc5ab | ['b42c3e9575f141fcae3fe2c2f3902467'] | So if the clients are connecting to the AP in the same VLAN and getting DHCP from the switch, the AP is not actually communicating with the switch? I have tried Angry IP scanner to the block of IPs allotted to the WLAN's VLAN but did not see the Mac address anywhere. It's also possible that the AP is in a completely di... | 9b5445ec607eeef06d04bcceca2175560faeb29c2a107354a12e5357532c60fb | ['b42c3e9575f141fcae3fe2c2f3902467'] | Have you has a looked at the $locationChangeStart event? It will get called when ever the url get changed:
$rootScope.$on('$locationChangeStart',function(){
console.log('$locationChangeStart called');
})
It may not be a good solution since it gets called when ever the URL changes which probably isn't w... |
0bdea53734e85d522a2cea3395ce049d293176c8461408d2e1bfb9136ce7504b | ['b431a369082543219a5d7e34a6e133ff'] | I know this has been asked last year but I have searched for several days now and I still cannot seem to be able to resolve the following issue:
txt_outputDataFile <- gedit(initial.msg="desired output file", container=row2)
generates the following error:
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) ... | b8a0a52d7be5ef4b02e7862d535589c1a12b6f37618fc7b6e6d789d3efe2166d | ['b431a369082543219a5d7e34a6e133ff'] | Suppose I have the following custom attribute decorated class that implements a TypeConverter. I would like to create a combobox in the Wpf.PropertyGrid such that the values in the combobox are taken from the string array specified in the custom attribute. The issue I am having is that although I can iterate through al... |
74f32cd62b392556b0269eff2666e6c377d80f97ee3a691ece92672ae346aad3 | ['b438e2fb211249df8456029ebc5a3e67'] | In CSS, when a browser does not recognize part of a selector (or thinks there is an error in a selector), it completely ignores the entire rule.
Here's the section in the CSS3 spec outlining this behavior
The prelude of the qualified rule is parsed as a selector list. If this results in an invalid selector list, the e... | 9b3ad549489d4413f0ebbd3e86e35396097f46f765e300414859ce92f9b6ef73 | ['b438e2fb211249df8456029ebc5a3e67'] | You need to put the content which should be in front of the image in the same <div> where the background image is applied. Also, lose the position: absolute property and I have added display: flex to center the text vertically and horizontally.
html,
body {
height: 100%;
}
#parent-container {
height: 100%;... |
aa7f5a03d61da11dbb6f83c8427b66b2f6c7981701d4948ee7d96cb6f02cac95 | ['b44cedcd945f48c7a927564aaaf1276f'] | In sklearn.linear_model.LogisticRegression, there is a parameter C according to docs
Cfloat, default=1.0
Inverse of regularization strength; must be a positive float. Like in support vector machines, smaller values specify stronger regularization.
I can not understand it? What does this mean? Is it λ we multiply when... | 8b9b3e6d35e95b7a66452d950dda32bb523fd97be7800621797e2859c5677172 | ['b44cedcd945f48c7a927564aaaf1276f'] | i mean i think that mg passes through the centre of mass of the object and so does its components,and even the normal reaction passes through the centre. so,none of them should produce a torque right. Theta is the angle based on which the components are taken. i'm sorry that i am unable to add an image. |
460529f212c90d5e7c41d0c698ffbe7cff443879b01ccc6259c29908e7c62d0f | ['b46fe1124cd24a9baf599eb6cd9d7331'] | I am trying estimates the space derivatives of solution of heat equation in infinity norm with bounded initial data in $\mathbb{R^3}$
Here is the equation
$u_t=\Delta u$ in $ B(0,1)\times (0,T) $
$u=0$ in $(0,T]\times \partial B(0,1)$
$u(x,0)=f$ in $B(0,1)$.
Where $f\in l^{\infty}(B(0,1))$ and $B(0,1)$ is unit... | 1c5d93018e7a5b5f94da3404d59cdc3214dbad75a2358bc5ee64bdb3c1242ed0 | ['b46fe1124cd24a9baf599eb6cd9d7331'] | <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<button type="button" class="navbar-toggler" data-toggle="collapse"
data-target="#
navbar"
aria-controls="navbar"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
... |
99943f3eb3d5725146c8d8628d3214528a9fce7026e8eef1b7e3b36bc0e4938d | ['b471b28eb39b4d559c823ef897c3782e'] | I'm trying to type something a the 'Url' object that is described within the NodeJS definition. But the 'Url' object is described under the 'url' module. Because it's under the module its not recognised by the compiler as a valid type.
///<reference path='../../../Definitions/node.d.ts' />
///<reference path='../../../... | cbf106854015ee0440cc75f364ea716916122b6210b7936885e521c5fc9f2f36 | ['b471b28eb39b4d559c823ef897c3782e'] | I'm trying to dynamically add a style sheet to an Angular Element. I'm doing this by adding a to the template. This works fine if I do it through JavaScript. E.g.
newLinkElement.setAttribute('href', '//mystyles.css')
But if I try to do this with a binding:
<link rel="stylesheet" type="text/css" id="backgroundImageSt... |
428c3d33badabd75f4ac790d90f26f5f54ceef05922cb44fbdf221254323c22f | ['b4750fbdbedd4380801765066beb2185'] | Try this
ALTER PROCEDURE [dbo].[sp_GDE_QA]
@oks_ids varchar(100),
@Operation varchar(50)
AS BEGIN
declare @Execute as varchar(100)
set @Execute = 'select oks_id, path from tb_gde_qc where status=''QC Completed'' and oks_id in '''+@oks_ids+'''';
sp_ExecuteSQL @Execute
END
sp_ExecuteSQL should be able to han... | b69be2b8d2a3df18adae0db86ef0f1d23d353b32be569e3a8c134dfb226f590e | ['b4750fbdbedd4380801765066beb2185'] | You could try:
SELECT
Location,
SUM(CASE WHEN SaleDate = '2012-11-12' THEN DollarSales ELSE 0 END)'Sale on 11/12'
SUM(CASE WHEN SaleDate = '2012-11-19' THEN DollarSales ELSE 0 END)'Sale on 11/19'
FROM [TableName]
GROUP BY Location
ORDER BY Location
This would only work if columns were static, you would have to change ... |
34c2fea1bf3a71784a0e2519bd6b2971c9c7752bfd28e0ad2982f1cf8952fa67 | ['b4765eacec194df085a840da1f86c990'] | While I make write code with Typescript + React, I found some error.
When I make type/value in <a> tag attribute, I get compile Error.
<a value='Hello' type='button'>Search</a>
This code get occur error
TS2339:Property 'value' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchor... | f3f7f93775b024cb9341f7add2a4b6f68ff1512c931e37764daa6ef93ff7afd5 | ['b4765eacec194df085a840da1f86c990'] | I'm first in SwiftUI and IOS. I want to use SimpleCheckBox in my SwiftUI.
But I only get
Error:(14, 18) static method 'buildBlock' requires that 'Checkbox' conform to 'View'
This is my code.
var body: some View {
HStack {
Checkbox(frame: CGRect(x: 50, y: 50, width: 25, height: 25))
Text("HelloWorld!")
}
... |
f598d0903e46eda804449ea4ff76fbdb9b186b8a947409c866e143f1c38706ed | ['b4776ecc285f4074805d3a3bb31c5b2b'] | I can test on the simulators, but both my iPhone and iPad show old versions of my app. I've tried deleting derived data, deleting the apps from the devices, and cleaning the project. My phone is on 8.3 and my iPad is on 8.1.2, and I have the problem on both devices. Xcode is on 6.1.1. I'm running 10.10.2 Yosemite. ... | af0f11a9f055ea8626af9bf5ee344a833a32ea3efd753f199f1ef18bf3c87368 | ['b4776ecc285f4074805d3a3bb31c5b2b'] | Are the paths in the apple-app-site-association file relative to the root or the directory that it's in. If my file is in the .well-known directory, should my path be ../mypath or just /mypath
Also, does it matter if I'm using teamID or appID if I'm trying to test it in the dev environment?
|
c23551a082561bc412bd3a68828ed824ea387c805957db9754c38e2bf0592885 | ['b47df05a23e0416d8c2b8c9bb7b67a03'] | I'm trying to make a Q3BSP map information debugger.
I'm stuck at texture debugger part, this is the code used in that part:
for( i = 0; i < nTextures; i++ ) {
printf( "Texture id %d\n", i );
printf( "\tTexture name %s\n", Texture[i].name );
printf( "\tTexture flags %d\n", Texture[i].flags );
printf( "\... | 49eaec55c33c992f74979d3cd6180f7eb03fbe46430ebead6fab7c65a4ff81b5 | ['b47df05a23e0416d8c2b8c9bb7b67a03'] | Following webglacademy 5th tutorial at creating textures (http://www.webglacademy.com/#5), the point is to load the texture on the cube object which works, kinda.
Look at the result -
Can anyone tell me why the texture looks like this while it should be fit perfectly on cube side?
Demo here - http://kgpk.esy.es/WebGL/... |
0a3e9ea15b359e08b77ec1b17c147c93f866a5ab9c41f9bae52de87790948d46 | ['b47f927596494d2c8ac6ced3b0de1ccb'] | Unfortunately, there is no set answer - you have to try what works (start with whatever's easiest) for your given problem. What works can also vary by topic.
My favorite example of this <PERSON> 98
They are comparing algorithms and average across several feature solutions, but my point is if you look at Figure 2, Nai... | a78f5e6b567fcb74732b9a7374616b029e58058845fd3cdb67a7003e230c75de | ['b47f927596494d2c8ac6ced3b0de1ccb'] | I want to understand (and report the bug) which app is showing the "Network Error" toast notifications in the middle of the screen each time when I unlock the device. Any tips or ideas?
I'm a JS developer, so can utilise any developer tools if necessary.
Device is stock oneplus 5, Android 7.1.1 if that matters.
|
552c7be7746cd15d68586c349b4b9aaaf861b0341e11a9abb34b6c2a823fd69a | ['b48602d421784449909c375940427f19'] | You can use CSS Variables:
<svg id="plus" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 8H15" stroke="var(--icon-color, #fff)"/>
<path d="M8 1L8 15" stroke="var(--icon-color, #fff)"/>
</svg>
CSS:
.icon {
--icon-color: red;
}
Works with <mat-icon> and SV... | b2aee041beb0332db626eb74875e163919cf82d98d858aa2ed93b64920a64007 | ['b48602d421784449909c375940427f19'] | I'm using Hazelcast (v3.5.4) Topics for a really simple chat application running on two Azure VMs (Standard D3).
When publishing messages sometimes it takes up to 15 seconds to be received by the other member.
I logged publish and onMessage methods to be clear that hazelcast is causing the delay.
There is no network d... |
11128a2b77fbcc14396d9a3c694503a9b9d3149d3e60b6e4b38df8525019065b | ['b493d9b4264348bf9679bf579c3e582f'] | You can use this;
@IBAction func downloadButton(_ sender: Any) {
let imageRepresentation = UIImagePNGRepresentation(photoView.image!)
let imageData = UIImage(data: imageRepresentation!)
UIImageWriteToSavedPhotosAlbum(imageData!, nil, nil, nil)
let alert = UIAlertController(title: "Completed", message: ... | e7eb3b3dcf55294046c282b89ab7005c69148aee40349efd14df81a9542c81f0 | ['b493d9b4264348bf9679bf579c3e582f'] | For Swift 3
func textFieldDidBeginEditing(_ textField: UITextField) { // became first responder
//move textfields up
let myScreenRect: CGRect = UIScreen.main.bounds
let keyboardHeight : CGFloat = 216
UIView.beginAnimations( "animateView", context: nil)
var movementDuration:TimeInterval = 0.35
... |
38b6a0832826259dcc19f740b314535dee0370e8e47db5473b6f85e5c0a78ae8 | ['b49e98c390074aefb4a3deb4b5716cd5'] | I solved the problem. Problem is in layoutinflater inside onClick method. So i put that layoutinflater codes to new method call getQuestion(). And call getQuestion() method in my getTextA() method. its solved.
I use layoutinflater because this method still in a fragment. Using a new fragment causes Nestedfragments. Tha... | bea9d84faa53c2aebf7c1d31b67d36f34e12b2d784fe16ae25c50b1784f88f74 | ['b49e98c390074aefb4a3deb4b5716cd5'] | i have 2 spinners one for Province and other for City. But they dependent to each other.if i select Gauteng in Province spinner the second spinner must show Johannesburg,Pretoria,Centurion and if i select KZN in province i want the second spinner to show Petermaritsburg,Durban,Ulundi.
Here is my code. i can populate s... |
219dd7338495ed0299e00fb87f3f605ef647202e0c2aa7ed0f398e4f9bad004b | ['b4a7c858057a4b5c8855350554fe290d'] | By using subquery also we can achieve your expected output
SELECT DISTINCT
O.ID,
O.Ref,
O.[Type],
O.LogTime,
(SELECT TOP 1 I.LogTime FROM LoginLogout I
WHERE I.Ref = O.Ref
AND I.[Type] = 3
AND I.LogTime > O.LogTime) AS LogTime_Type3
FROM LoginLogout O
WHERE O.[Type] = 1
| c7718eaf0b5024bd71af8f4c2fdcc0098d19ffa0cfe2ea2e86c8ce71fb669565 | ['b4a7c858057a4b5c8855350554fe290d'] | We can achieve the using dynamically with PIVOT concept, but whatever [Type] field data should not actual field name, it should be different
CREATE TABLE PivotTable (Id INT,Value VARCHAR(100),[Type] VARCHAR(100))
INSERT INTO PivotTable VALUES
(1,'ABC Bank','Bank')
,(1,'User','Name')
,(1,'123','IDs') ... |
052f2c05e8b3edcc3a8947027510cce6158254b7198dc3c5e1f3021afc7c715f | ['b4b19cbcf32142758d114cd8ae3e8e62'] | yes, [execute](https://github.com/paulirish/dotfiles/blob/master/symlink-setup.sh#L62) runs command and calls [print_result](https://github.com/paulirish/dotfiles/blob/master/symlink-setup.sh#L121). [execute](https://github.com/alrra/dotfiles/blob/dea7081cfbe0ce022185de2b95f696e3ef01e7b1/os/utils.sh#L40) from [utils.h]... | 9e00a035f138619f4d9b175e1e9b0e6ed9340791f1a370b1e0ff96149c5eedc7 | ['b4b19cbcf32142758d114cd8ae3e8e62'] | thank you for this useful information. I thought about doing a search pattern like this, sadly this would be rather confusing as my AI will prioritize searching a house as soon as it finds one, and thus pausing the search algorithm, potentially putting it in a weird spot to continue that same pattern. Someone came up w... |
8e99f6c7aa46d2a5b38663ec365f3b6028ad06deb260d123160a0da04cdea852 | ['b4b2eb1f2c2f4fc1ac25c40f24d76c2b'] | I hope this is not ridiculous to ask (and I will try to focus on a question, rather than discussion) but have I missed something regarding the use of the word women to refer to a single person? I have noted of late in reading news articles on respectable sites (like bbc news of all places, where one might expect them t... | 4be82ec3c82bf5cafd6c0a803b78da04191176563e9f43671e34c0f427a203ee | ['b4b2eb1f2c2f4fc1ac25c40f24d76c2b'] | I have a confirmed booking from A to C via B.
In airport A I am checked-in and my luggage is tagged all the way to C. But I get only one boarding pass for the flight from A to B. The staff in airport A confirms that I will get my 2nd boarding pass in airport B at the gate of the flight B to C.
When I arrive to airport ... |
791ab9f59d72a5b91ef1e114057f6ea054b6fe3f6baf34f7dd76b6c04baa2573 | ['b4b83d1210f74b0797627dbaf2c602ac'] | I also needed to have different colored markers, and making separate series for each color really the way to go for me, so i made this pointRenderer:
$.jqplot.PointRenderer = function(){
$.jqplot.LineRenderer.call(this);
};
$.jqplot.PointRenderer.prototype = Object.create($.jqplot.LineRenderer.prototype... | f9d4b311bf534c3eec3188b784052646c64dcc376af667b9f059d44274b0fe2a | ['b4b83d1210f74b0797627dbaf2c602ac'] | There are at least 3 ways to do this.
With validation groups, you define which set of rules to use for the validation. So as default you want to use all the rules, but in this action you indicate that only the contact info should be validated.
Create a new FormType and use this as a parent class for the TeacherType. In... |
451e3481b49b257432fe846ddc885edf35f8bbfb3f1ac05b0b3f29e1bbc1a964 | ['b4bdbebd4c3f487893096a46db384bfd'] | What is the default value of count? if count = -1;
int count = -1;
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.next:
count++;
image1.setImageResource(firstArray[count]);
image2.setImageResource(secondArray[coun... | 7db41071db08e40ed76aaf7340b097749d13d5f9a63262d4e3da685a8437f911 | ['b4bdbebd4c3f487893096a46db384bfd'] | You can Make a Single String and write it. Also, use a different separator. You can use StringBuffer for it.
StringBuffer s=new StringBuffer();
s.append(editname.getText().toString());
s.append("##@@##@@##");
s.append(editmarque.getText().toString());
s.append("##@@##@@##");
s.append(editlongueur.getText().toString());... |
e3846603994b4f7a11111d20ab1fc0cc52704ce64b081e6ef16e7f52ee3f58c5 | ['b4c1eff026a24147bd50da5d965bf067'] | I am getting "not null constraint failed" exception for password field in my custom user model while registering a user through the browser(ModelForm) but I can add that user through django shell successfully. I've tried deleting database and migrations and re-doing it. Any idea why this is happening? I'd be really tha... | da9219b26c3e04853d28058f763f4eaa36b7486985c5fe6728c6ebd52419ee63 | ['b4c1eff026a24147bd50da5d965bf067'] | I have a one to many and many to many relationship in my models. I'm using wtforms_alchemy ModelForm to create the forms, but the ForeignKey field is not showing up as a drop down field, also it's showing the integers as values in them. I tried referencing similar questions and tried the answers, like, I put __str__() ... |
2ff73b8c5ee78ce225b6593748bc14fd39b3af9e622578c80e6434ee29248ee5 | ['b4d9cdc120dc4d14ad1486bb95ea18ff'] | Let's look this code:
class customException extends Exception{}
$a;
try{
if(!$a)
throw new customException("Variable not initialize");
echo $a;
}
catch(customException $e){
echo $e->getMessage();
}
Catch block work and we get the error text on the screen, but if i change this catch(customException ... | 554cef97763826ebc3c63ac670f5ab932721d1cdd59894570cc124ce780dc516 | ['b4d9cdc120dc4d14ad1486bb95ea18ff'] | The problem is that the first element to which I want to set its base length (which conditionally should be 100px) is somehow reduced.
.main{
display:flex;
flex-flow:row nowrap;
}
.item1{
flex:1 1 100px;
background:#979797;
}
.item2{
flex:1 1 auto;
background:#373737;
}
<div class="main">
<di... |
92ee257e05c7854f9d960a5b1567d51cbf2ecb7c0894b30a71568c0675e7eef3 | ['b4da96e0d07c4dcfbc2ede8659c2e805'] | I was fretting over this particular question which I found answered in the following link : https://math.stackexchange.com/a/1628972/817522 However now I have this notion that any sequence $T(x_n)$ will have the convergent 0(zero) subsequence. Then by characterization of compact operators should T be compact?
| d394f1570186d062adab05e72d75cef63b3eaecdb14a77ba82dfb04cef8d3677 | ['b4da96e0d07c4dcfbc2ede8659c2e805'] | I'm using apache commons exec for creating an external java process, which returns an exit code 1 occasionally. When I looked into the code of commons exec the issues doesn't seem to be related to apache commons exec rather to do with Runtime exec on java.
Here, I'm running a multithreading program which creates these ... |
e556156929044688a4be68434ce0327328d93356546e33c1aea8afb575f5739d | ['b4dd61e0a01048aeade35d9a1e712012'] | Thanks <PERSON>: re-installing did the trick! Probably it was because I had accidentally installed the 32 Bit instead of the 64 Bit version? Anyway, now with the 64 Bit the shortcuts are back.
And since I had just installed the system some days ago, I did not try to re-install. | aaec650bf5db484b1549bdcfc53b74db15a1141f5bef7ea21de75f0cf4311e78 | ['b4dd61e0a01048aeade35d9a1e712012'] | Пытаюсь в ручную собрать строку подключения для контекста используя известный пример:
var Builder = new SqlConnectionStringBuilder();
// Set the properties for the data source.
Builder.DataSource = "localhost";
Builder.InitialCatalog = "CustomerManager";
Builder.IntegratedSecurity = true... |
620c6f2e23c2e4a87ed6d44da14c92c3d70d6475faa425cbf66e2b699fb15d0c | ['b4f8bfed3fb34e20ab8b30fe79594acc'] | You just have to place the function on keyup event of your query box
$(function() {
function numHits(n, h) {
var c, re = new RegExp(n, "g");
c = (h.match(re) || []).length;
return c;
}
$("#keyword-input").keyup(function(e) {
e.preventDefault();
$("#keyword-count").html(numHits($("#keyword-inpu... | 7cb69265757fce29662ca8c2ced777da3cd709f85bf5e6420bbbf52ec6ed2a3f | ['b4f8bfed3fb34e20ab8b30fe79594acc'] | If you are open to put in some code here is a link which can convert an image, in your case the marker to a desired colour.
Codepen Link
'use strict';
class Color {
constructor(r, g, b) {
this.set(r, g, b);
}
toString() {
return `rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`;... |
f7733380d57106ef36eb9f5a39b3260b8c49b7aa59e8b083afa9907dd042cc67 | ['b505166f841247178bdf5e6d958b83b9'] | As the start date is a DateTime object, yes it is a reference and modifying it will change the value of the highseason's start date as well (since they are the same object).
In order to do what you are asking for, you need to clone the DateTime object:
$tempDate = clone $HSDate;
and increment the new date object inste... | 80c8a2a9dc4a406410c2bfbc8fd045b0cf61f0e139074e8566b47ede7e29afcc | ['b505166f841247178bdf5e6d958b83b9'] | You need to escape the single quotes around property-gallery.
If you add a slash before each quote, it should work. e.g. data-uk-lightbox="{group:\'property-gallery\'}"
You also have two double quotes at the end of the <a> tag, so you should remove one of those as well.
|
70b7009d107c55daf126fff6eaa44d6abeb84b725650e54fe8046b733e1dc6d7 | ['b5107af7b789440d990c8c1ceed8784b'] | Yeah I find that in BusyBox there is a "rpm" command kind of package manager.I get gcc files with "wget" command then rpm them but Actually problem is executable gcc doesnt compile.For example I tried to laod OpenSSH , "./configure" finds gcc but doesnt compile. If I can work with gcc I can easily install make command ... | 765b1f1bc009964a87be72fa68dcaaf6768cc746219013845697922f81ee8269 | ['b5107af7b789440d990c8c1ceed8784b'] | I am using Samsung ARM Cortex A9 Exynos4412 board.I boot "linux + Qt" img on the board. But there is no package manager on the board and no make , gcc commands.In /bin file there is file BusyBox I searched it they say swiss army knife of embedded linux but there is no opkg , apt-get , make, gcc or g++ commands on the b... |
9d8ea5a322ada199952ba492a04a7264137f2aba22ead9c72265848f9b707ad5 | ['b5233c68315e40dc9028dad237458b74'] | Actually counting an empty array does not raise any exception. I think the problem is here:
- (void)add {
if(![field.text isEqualToString:@""])
{
[messages addObject:field.text];
[tbl reloadData];
NSUInteger index = [messages count] - 1;
[tbl scrollToRowAtIndexPath:[NSIndexPath ... | d839b5b393a9c19649caf05c06086970f2de358ab58ec947e42a83318e84647c | ['b5233c68315e40dc9028dad237458b74'] | I would just make a block comment with the name of all possible constants, and follow it with a single define. Who wants to compile just writes what he wants. First time he will check the comment to see the list, then he will just write.
Or even better, keep this list in a comment (for reference) and use the -D option... |
a435f3efe958b2402d5512eb047ba569c183a9a0a4619fb159d1f7b00ec3a913 | ['b524c5683b7e431da08972890e82b08f'] | I am building a android application with two Activities utilizing the Action Bar (https://github.com/johannilsson/android-actionbar as i am targeting Android 2.2).
It has a number of activities. There is a "Home" Activity, called Feed, and another activity called "Settings".
The problem i am having is that using the c... | a21eb09494b9a0adea39f373be9ecce95f8ef1230f18a25340c3b863ff54e211 | ['b524c5683b7e431da08972890e82b08f'] | I have a custom TabItem with a close button(denoted by X) on it so it can be closed easily. In this tab i want to put a Image or Border Item, that is centered with the close button in the top left corner
The Control Template for this is
<ControlTemplate TargetType="{x:Type local:CloseableTabItem}">
<Grid SnapsTo... |
4cde9c1c7d665534f66abf21f2b74c119058c05c53f2d93387152577f6f25861 | ['b5276a14b79b4de488d85fb7269e8f29'] | Write exponents in LHS of ${3}^{x} {8}^{\frac{x}{x+1}} = 36$ in terms of a common base:
$${3}^{x} {8}^{\frac{x}{x+1}} = {e}^{\ln{3^x}} e^{\ln{{8}^{\frac{x}{x+1}}}} = {e}^{x \ln{3}} {e}^{\frac{{x} \ln{8}}{x+1}} = {e}^{x \ln{3}+\frac{x \ln{8}}{x+1}} = 36$$
Taking the natural log of both sides gives $x\ln{3} + \frac{x\ln{... | 26e5fcccb1b0b7805fcf7c0c16beec2bb61c435507da89ee2e48cfb264b06698 | ['b5276a14b79b4de488d85fb7269e8f29'] | It looks like the entirely expected result of voltage transients to me which ultimately are entirely expected observations given the physics of electrical circuits with varying loads. A detailed discussion of why this is an intrinsic property of electrical circuits would be more suited to https://physics.stackexchange.... |
ff4f89e97994c4c110ad33388ba78bba5dec06a73b8f1b8bd5770bc14eddb5e9 | ['b53067e106db471693f42818e81c2df6'] | I am using MAX144 ADC and in the Datasheet there is no information given about the control register to read the ADC values. I am using STM32L452RE micro-controller and using SPI to get data from ADC. Datasheet of the ADC is:
https://datasheets.maximintegrated.com/en/ds/MAX144-MAX145.pdf
anyone who encountered the same... | 5c8f205cc9bdcecea564e01afb1f000abe227d66904209cc0d6c51d3cde16f82 | ['b53067e106db471693f42818e81c2df6'] | I have designed a circuit in which I am using STM32L452RETx micro-Controller on PCB. This is basically a current sensor. I am using JTAG-20 connector for debugging. I am using Atollic TrueStudio IDE.
The issue is when I debugg program in TrueStudio by selecting JTAG option in debug configuration then it gives error sa... |
0733265f39f904c2e848b3873bf2f1a466c1f38ff2734b632ae5aa14e5de7a0b | ['b536ddd18a244039a7d446c50276cb6b'] | I'm struggling with this query in where I want to get values from 3 tables
SELECT
table1.cedtra as <PERSON>,
table1.priape as <PERSON>,
table1.segape as <PERSON>,
table1.prinom as <PERSON>,
table1.segnom as <PERSON>,
table2.cedcon as <PERSON>,
table2.ben as <PERSON>,
table3.priape as <PERSON>,
tab... | 587a5c335d48d0338203c2b3b7ba28c79a1214e3953ec24f4ec39055a46882c1 | ['b536ddd18a244039a7d446c50276cb6b'] | You should create the ErrorConsole and passing result in the constructor and not in the function, so that way you can print object attributes:
error: (result) => {
console.log(result) //===> there is object
const err = new ErrorConsole(result)
addNewMessage("error", "Error");
err.erro... |
20b58843494b8024375026b25399b6b353684ab43752aafe882f0e43d1c247e0 | ['b540e42e27d94a0ba20c87f12f8b727d'] | It's definitely clearer and I think I have got the idea now. It's a really good answer and serves me like an appendix to the paper :p. To put everything together I have tried to make my own example based on one in the paper. It's just to re-think through what I have read and see if I'm still OK :) I have edited quest... | c7450da98d87058605572cdda804bacfd16064cfb7756aab490d6c53bff88bb9 | ['b540e42e27d94a0ba20c87f12f8b727d'] | Si lo que dices que tienes en la vista es una lista de objetos para pintarlos por <PERSON> habrás usado un array.
Yo actualmente en mi aplicación lo que hago es volver a llamar al servicio y pintar los datos actualizados.
Para ello es necesario que primero establezcas la longitud del array en el que almacenas la respue... |
4d664d7008aa4d7bb2e66eaab36e19699a8d24dfaeae338e3f118a64ba589da8 | ['b5433ae10c874e9db19b5a83d7c8a9f2'] | I am working with Opengl es to create a stickman and this might seem like a stupid question but when using quaternions to represent rotation what should I do if want the rotation to be around another point than the origin and should I use a unit quaternion or not.
my guess is I can rotate and then translate too change ... | 8800905f6149b5ba7b1b8ad6dea936d25407280ed8e172e87dbf71abe6b11f65 | ['b5433ae10c874e9db19b5a83d7c8a9f2'] | Thanks for the answers everyone, I've just bought an external disk to move the files that are most important to me and for Christmas I'll get a new hard drive. I think it's the optimal choice for now, as I figured I should act quickly.
I chose this method over creating a backup because I feel like I didn't take proper... |
f26bd501174db463615c20771edfd4187588d66f5dd93dfafa1257fc6cc056e3 | ['b558f416dbc241a4a81c328921eeee17'] | just to give the non-re approach (which should be much faster):
a = """585
00:59:59,237 --> 01:00:01,105
- It's all right. - He saw us!
586
01:00:01,139 --> 01:00:03,408
I heard you the first time."""
for i, x in enumerate(a.split('\n')):
m = i % 4
if m == 0:
continue
elif m == 3:
continue... | 55915fc0fd55a5eb306a14ca2cdfe9e2baabc98cd014daee933090cfef97bf76 | ['b558f416dbc241a4a81c328921eeee17'] | It's not the perfect solution, but I don't have time to refine it now- just wanted to get you started with easy approach:
s = "I can do waaaaaaaaaaaaay better :DDDD!!!! I am sooooooooo exicted about it :))) Good !!"
re.sub(r'(.)(\1{2,})',r'\1/LNG',s)
>> 'I can do wa/LNGy better :D/LNG!/LNG I am so/LNG exicted about it ... |
d4dc2f793e4216e6aac124e1841be5a44e3a78429b6a447495fcd1344612e779 | ['b55d40198c7a450f90a2038a407fa3ce'] | I agree with <PERSON>, shove a live ubuntu CD into the windows box and test the exact same file downloads. Do them several times and make sure you delete the cache each time so your not using a cached version. That way hardware is the same and only OS is different | 864f1dda0e3abe821b1a372dc9d23e10f89f9d8431a51d986a70fcfde1c74f31 | ['b55d40198c7a450f90a2038a407fa3ce'] | Found the article, thanks for the info mate, I'll up vote you, and for the person asking the question, in case u want to risk an upgrade right now here is the computerworld post I found thanks to <PERSON>: http://www.computerworld.com/article/2948999/microsoft-windows/windows-10-final-download-now-before-release-date-r... |
696090ca8baa7f488f84b59279654845ae74ff1f5fd3b34c971b2edf79a1611a | ['b5653efb155d41c8ae3e8a6639c176c1'] | I upgraded my phone to Android 9/Pie and I can't stand the 'new improved' recent apps list which takes ages to scroll through.
My phone is Motorola G6.
What is the easiest and surefire way to get the old style (or some other style, e.g grid) back?
From what I've searched, it seems pretty complicated.
Either uninstallin... | 556f56b35831a7f1b1d494d66086531befa3fa28c540b86c646d48bbdd4acb1e | ['b5653efb155d41c8ae3e8a6639c176c1'] | This seems to work. I am still, however, seeing a repeat of output start after the last ip address in the file. Somewhere in the mid of the file there is an ip address of <IP_ADDRESS>. The repeart starts with that ip address and goes to the bottom again. Weird. |
059007642ec22ef3d7aeafcedfa130c722bf0b5a23a091b6050c586320af1b88 | ['b587f576f8914e6aa4b269f7f203134e'] | I am new to the esp32 and LoRa messaging.
I am following the two examples in the heltect esp32 lora library.
The two modules I am using to send and receive data have an oled display... and I print their values to the serial monitor. The data values appear on the oled display but they are random characters in the serial... | 327375d3f0bb1c1434bab9d833bc428571ee30d1857466e9812435d80df65718 | ['b587f576f8914e6aa4b269f7f203134e'] | I am new to react and am trying to update the state/context of a component from a child component.
From the AuthProvider() below I can access the user state across the entire application.
If user is null, I am shown an auth page. Here I can login and call loginUser() which logs a user in on the server and returns with ... |
928fff54320e91285ca8735597d3d4fcd27b4467abadd63be5ae48c51df51afd | ['b593cf3a1ef2446cac70e4daa40e16a7'] | Using the example route defined below how can a link be defined to /post/123/comments?
Router.map(function() {
this.route('post', { path: '/post/:post_id' }, function() {
this.route('edit');
this.route('comments', { resetNamespace: true }, function() {
this.route('new');
});
});
});
Since resetNa... | 2637ec6fcc3a15b2c1c0b355f1aa20e75d896d8c70498113d7d506d59cef900f | ['b593cf3a1ef2446cac70e4daa40e16a7'] | Thanks to locks for pointing me in the direction. The specific issue is how to reuse as much of the route and template as possible for different paths.
router.js:
Router.map(function() {
this.route('post', { path: '/post/:post_id' }, function() {
this.route('edit');
this.route('comments', function() {
... |
e913903e8a6054cacb66a7e852e0358e1269f8ea692463b663741cf686669aa2 | ['b59810c8275d4846b6c4d5fb1e7b594d'] | Abre a janela de exceção apontando para o método db.SaveChanges(); Na ActionResult Create() , quando vou cadastrar os dados da classe Curso com a seguinte mensagem: DbUpdateException was unhandled by user codeAn exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but ... | b543effe045f8927936e9483b3d9c2ca6d43540ba12d887da7011a3bd44a0ef6 | ['b59810c8275d4846b6c4d5fb1e7b594d'] | @SGR "By only having two, one to have power and one to crave it, the Sith would be stronger against the Jedi as they are **less vulnerable to being wiped out** " How so? If there are only two of them, they could be wiped out by a mundane engine malfunction while on the same ship, let alone a small group of competent j... |
19bc33359d8df2f42c71c925db6fbc4ecc5dbc66bbb7ae30d070103eb70685ba | ['b59b33602e3b43f0b6881e4cb6c9ab42'] | <PERSON> I am not an economist either but I know that this is not necesarily true. It depends on several factors. Two important ones are cost pr unit - Due to economy of scale this will tend to go up as volume goes down, and consumer response - while demand can be expected to go down with rising price this needs not ... | 87d2e75251e0426a979dc7800d126903d55d4461058a5fc6f3c3ff088083e968 | ['b59b33602e3b43f0b6881e4cb6c9ab42'] | @l0b0 "You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permissi... |
e4481d34921d1284e53e19e1fd96761ecdbcf61e00c1c6f647fd7e022fcce695 | ['b5a1f1e17aca49a593839f68be84d395'] | You can load the class with the GroovyShell classloader:
GroovyShell gs = new GroovyShell()
gs.loader.loadClass('groovy.runtime.metaclass.java.lang.IntegerMetaClass')
gs.evaluate("10.minutes")
Note: I got a java.lang.IncompatibleClassChangeError when IntegerMetaClass was a groovy file but no issues when it... | 915074e5890387469e4f541f9526c5a3d1b43ee4895398a2ceac756eb6eddc9d | ['b5a1f1e17aca49a593839f68be84d395'] | There is a good example here that shows how to implement a custom user details mapper. I used that method on an LDAP login Grails 2.0 app successfully. Basically you have a CustomUserDetailsContextMapper that implements the UserDetailsContextMapper interface which you then use to override the default implementation by ... |
917bfbd3e34ff29069550e24ae9b474e9cbf6470025094a38739ece21d9e2c93 | ['b5b1c143ad1943908a58e44aee4046f5'] | I am currently trying to program a small app, now I am trying to use a Navigation Drawer in my app. This does not work with the reason that I get a NPE at drawer.addDrawerListener(toggle);. Everything else seems to be fine as far as I can say and the app worked correctly till adding the drawer. Thx in advance.
import a... | 5e0090ef23dc6764730d5d0e998a65b06d02cf65cc41374920b04ca1f22e185e | ['b5b1c143ad1943908a58e44aee4046f5'] | I need an answer for work, so the software will not ever go into a public environment. It will be located in a seperate intranet without any access to the internet. I wrote this to address your security concerns.
I have a C# programm which has a custom protocol. This results in a clickable link on a website with this p... |
c7c452e55c0d95693bcabe9161ff3ef3444284ff58a5185d71af58a7e36af299 | ['b5c9b8510e4040ae929a01f00421b383'] |
Layout 0 shows how I can achieve this layout with a simplified view of the css.
I need help / suggestions / ideas on how to created layouts 1 and 2.
The blocks can be rendered in any order and they are fixed width (either 25% or 50% respectively - as in layout 0)...spanner in the works is they dont have a predefined h... | 297a98d75ac2e41c759b64c70d88bc4eeef0a7459ac379ff0066089a5db68814 | ['b5c9b8510e4040ae929a01f00421b383'] | If you are using "border-radius" - which is a css3 property, then you could also use "background-clip" which effectively sets the background clipping.
There are three available values for this property are:
border-box, content-box or padding-box
I think you will find the one you are looking to use content-box (as below... |
f9f1cbba4623ecfaa5636ebcd925d8d870413aa3a550d5f8056f866e7fc1aa15 | ['b5dd1740631e4122acbb16cc4c3f5fb9'] | Authentication problem are never fun...
First check which account the two failing jobb are running as. (SQL
Server Manager studio => SQL Server Agent => properties on the job
Backup BizTalk Server (BizTalkMgmtDb))
Verify that the credentials that the service account is using are correct.
If the service account is a do... | 9baa6454a4672d44ba472ea4e6cb52783cf591cf4273c4b80cc4e31cb71dd971 | ['b5dd1740631e4122acbb16cc4c3f5fb9'] | The easy way is to use the BizTalk WCF Service Consuming Wizard to generate schema and binding information for the port (that you asked for). This is done from a locally saved wsdl or directly if there is a MEX point exposed.
A guide can be found at:
http://msdn.microsoft.com/en-us/library/bb226552.aspx
For detailed in... |
06fc03b5aaeb1340671b966a55d1b3e7595bcd7761b8f330d86cdd5684b35c8d | ['b5fc4f1b75684e0fb9579f325b338a3b'] | Problem:
I'd like to create regular backups of a docker volume used by a running docker container.
Partial solutions:
If I shut down the container using the volume, I found these solutions:
Save to .tar like:
docker run --rm -v some_volume:/volume -v /tmp:/backup alpine tar -cjf
/backup/some_archive.tar.bz2 -C /volum... | 7891eda20965e25c736d0ebebc639753854572e1c2b072bea40e5d5f8ff7dea2 | ['b5fc4f1b75684e0fb9579f325b338a3b'] | I'm not quite sure if I understand your goal correctly.
If it's about merging the two data frames you can do something like:
df_one.merge(df_two, on=['name'], how='outer')
If it is about initiating an object by e.g. the name only you could pass that into def __init__(self, name): and then collect the rest from the exi... |
abb0a667085290dacc7cd1f24c3657d2ea6a5aaf1446abb4b9a85d58655362b1 | ['b607a70efa8e42a0b810f7fa079c97a2'] | I have an overlay view to segregate content, I'm checking for authentication in viewWillAppear() and I have a Notification subscribed to my Auth method. If I authenticate before any of my other views appear the overlay does not show up, however it does on the first view and will not go away even after calling removeFro... | 0e54655db86dd4c4bb6a16827e1ade706efe218ffc13bb8dcd90f08f2818e824 | ['b607a70efa8e42a0b810f7fa079c97a2'] | I am pulling down a json stream? From a phant server I can pull the data down parse it and print it in xcode. I need to pull out specific values but the json does not have a title and I can not seem to figure it out.
My JSON Data
(
{
lat = "36.123450";
long = "-97.123459";
timestamp = "2017-04-26T05:55... |
f2d6282988792b5af122fa59a30877aba67506244c7741af7f5926acb05141ea | ['b60ec4eb8ee143e3bbdf8134113c0690'] | I have setup my test Exchange server on Azure VM, but now I want to use it for my production and want to move it to a different Azure account.
I cannot generalize my VM as it contains Active Directory which doesn't support generalizing.(I have tried generalizing but VM didn't boot up).
So I migrated without generalizin... | 70c4732a5fec2c809a2eff876102424165c9277d4da446ff9b867d72de814911 | ['b60ec4eb8ee143e3bbdf8134113c0690'] | Following the below link, I was able to create an Azure VMSS with customs VHD which supported load balancing and autoscaling.
Updating VHD of Azure VM ScaleSet
But using the above link, I had to create a new VM in the same VNET in order to RDP into VM inside VMSS.
Are there any way where I can RDP into VM inside VMSS d... |
caba0cdec05fffe400f941cee4406cd6644827dc3c3d52bef7abd67277a5ce80 | ['b6113bf88ae74ab6938fbffc54ebbcec'] | am working on a c# project in vs 2010 ultimate, that requires one to filter results of a report. My challange is getting a report to filter based on a value in a textbox or combobox on a form. And if the value is null or empty then the report should return all the results.
I have tried to use parameters but looks like ... | 25b1e2b17abbaa23835558d759e1743e5b3c2cc4d5c152b9f0dbb548dce5e827 | ['b6113bf88ae74ab6938fbffc54ebbcec'] | I had the same problem while using vs 2010 Professional. But I managed to find the answer to that problem. It's simple vs checks to which report to assign the parameter and finds none so it throws the error. what you need to do is to load the report and then set the parameters.
Use the order as follows;
List<ReportPara... |
3218b0d59f56556a304f1629497ca6ba8666f0708bf70e1cf4f12ec55eb63fd2 | ['b6207d8c1ec84d748c7b7df24ca9c458'] | One question. Earth being massive barely moves under the gravitational influence of the particle. The field is radial and static. What if I have two identical particles? Their motion will be significant and we will have moving gravitational fields. For this isolated two-particle system, how will we go about calculating... | f0fa672117d95cdc3d09894b9f3ba618b655364585736a3773d5cdc40b44656b | ['b6207d8c1ec84d748c7b7df24ca9c458'] | Let us consider the equation, $\vec{a} = \vec{v}\frac{d\vec{v}}{d\vec{x}} \tag{3}$. Here, why have you not considered any rules of vector multiplication between $\vec{v}$ and $\frac{d\vec{v}}{d\vec{x}} \tag{3}$? Also, the ratio of the two differentials suggests division of two vectors, does it not? |
7203096a9f5a620c8bc8239f0e1f1d84ba81233cf0b8ed8b811ac93fa8b012f9 | ['b665d3d8493e4692b37e5533660ee2e9'] | I am building a log-log least squares dummy variable model to estimate product demand elasticities based on a kMeans clustering mechanism (5 total clusters). The model also has other independent variables but aren't relevant to the question. The clusters are based on groups of similar prices. When I have worked with du... | ec4eb9d6067f3d3750f223973b32011ddd42b242cb6994a9b54bc88c6055d02a | ['b665d3d8493e4692b37e5533660ee2e9'] | I'm trying to retrieve stock prices with the following code using quantmod. The code below allows me to retrieve what I need. However, when I export the CSV file, the date column (first column) appears only as a sequence of numbers. To be clear, it's fine in R when I open a data frame, but changes when exported.
from.... |
c555abe213e658284e3137bb4c137456db84885cc8c3895464c92d18119ccf3b | ['b66c2fdfec5541c68e8f73b0bdd5d740'] | how to develop a crop selection control like photoshop's in c# 4.0 in widows form application.
I have a windows form application in c# 4.0 that can crop images. At first you have to draw a rectangle using mouse to select the cropped region.
private Point _pt;
private Point _pt2;
private void picBoxImageProcessin... | 1e88bf506a24cf81d0dc4f127b5f7ad482e3afb9f3d382c70508290929f2a3b8 | ['b66c2fdfec5541c68e8f73b0bdd5d740'] | I want to save and show an image into blob field in oracle 10g using grails. If i use Long raw field in database then it works. But in case of blob field
it saves but doesn't show in the view page.
Here is the code:
//Domain
class Hotel{
byte [] pic_
static mapping={}
static constraint... |
855643b1257fa26d6a97c7373c14d494015e3d04d850fead91f0f5d0e76652c7 | ['b67bf12c4f804f539c2b8c63c6a97eb5'] | class Player {
final String playerName;
final int playerValue;
Player({this.playerName, this.playerValue});
static List<Player> pairPlayers() {
final List<Player> playersList = [
Player(playerName: '<PERSON>', playerValue: 20),
Player(playerName: '<PERSON>', playerValue: 20),
Player(playerName: '<PERSON>', play... | 7349b621d21dbb16f35f4fb1ed9eb818dbff20377cfe1a1c33132019fc46507b | ['b67bf12c4f804f539c2b8c63c6a97eb5'] | class Player{
final String playerName;
final int playerValue;
Player({this.playerName,this.playerValue});
final List <Player> playersList = [
Player(playerName: 'player1', playerValue: 20),
Player(playerName: 'player2', playerValue: 20),
Player(playerName: 'player1', playerValue: 30),
Player(playerName: 'player3'... |
9945b7ac3cb6e15f04f0c52dbbc61a1658c44906cf892d8099811d6ceab636c9 | ['b6846900d51a4251b129ec471bcada78'] | I'm a robotics' student from Instituto Superior Técnico and I'm having trouble using an external library in my project.
I use a Robotics simulator called Simox http://simox.sourceforge.net/. This is a library that I have been working for a while. I have been using a cmake template file provided with the simulator (with... | 4bee25f85ad879e6bb93c5d34d4d3809b590241fe4ade2975dbfdf13103cb918 | ['b6846900d51a4251b129ec471bcada78'] | I'm currently running Bayesian Optimization, written in c++. I use a toolbox call Bayesopt from <PERSON> (http://rmcantin.bitbucket.org/html/). I'm doing my thesis about Bayesian Optimization (https://en.wikipedia.org/wiki/Bayesian_optimization).
I had previously experimented with this toolbox and I have noticed this w... |
c97fc0b2d901b90ebf986be4f468b6b33f7a9968e25393e356cca71a89d47fd4 | ['b6872da06c6c4d24ae0884b4f542ef2b'] | I've the follow documents:
{"id":1 , "user_id":1234, "tags":["b"]}
{"id":2 , "user_id":1234, "tags":["a"]}
{"id":3 , "user_id":1236, "tags":["b"]}
{"id":4 , "user_id":1237, "tags":["b"]}
{"id":5 , "user_id":1238, "tags":["a"]}
{"id":6 , "user_id":1239, "tags":["b"]}
And i want get all users_id that haven't "a" in "tag... | f54160540f3bb81a6a47bdf8da0dfc34633d72d84c511e7f33e935ad77018207 | ['b6872da06c6c4d24ae0884b4f542ef2b'] | I'm a bit of newbie on MPI programming ( mpich2 fedora ).
I'm writing be cause, i got Dead lock when use MPI_Barrier with another comunicator different to MPI_COMM_WORLD.
I make 2 communicators like this:
MPI_Comm_split (MPI_COMM_WORLD, color, rank, &split_comm);
If i put a MPI_Barrier where all colors can pass, it'll... |
7a7153e6c59f31df1dcefb6eb5fba5affd895e63301f516622cb050061fe650b | ['b69236da3ad448dba87c246e2dd1e233'] | with the commands
$>squeue -u mnyber004
I can visualize all the submitted jobs on my cluster account (slurm)
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
<PHONE_NUMBER> ada CPUeq6 mnyber00 R 1-01:26:17 1 srvcnthpc105
<PHONE_NUMBER> ada CPUeq4... | 7390665db46409564dbebd09851db04ff8be34570beff553a31068ba9fc73111 | ['b69236da3ad448dba87c246e2dd1e233'] | I am creating a 2D plot from several data files (snapshot_XXXX.dat) using the following snippet
set terminal pngcairo
n=1000 # Number of snapshots
load 'color.pal'
# cbrange[-6:-2]
unset key
set style fill solid
set ylabel "Snapshot/Time"
# set yrange [0.5:n+0.5]
# set ytics 1 # manage it well in order to avoid b... |
72b5fc072a298993b3c256f66d5ff0a9fb571851e64120f9b76dfe8596786d10 | ['b6979edf521e46568cc2de95737d4fc3'] | To use your term_run_time you can use File Trigger (FT) instead of FW.
Are you only getting 1 file a day or sometimes not at all, you can do term_run_time for 360 minutes which would terminate it 15:00 and then start over again next day at 9:00 and pick it up if file was recived later.
| 8175f6642cd66ccc7d08af75982649603f1435c91a41878fabaea8450ee54235 | ['b6979edf521e46568cc2de95737d4fc3'] | In Autosys there is no easy way through using autosys native cmd's
However you can get all this information from the DB it is in the WCC DB and the table is dbo.MON_JOB query would be to get you started:
SELECT [NAME]
,[NEXT_TIME]
FROM [CAAutosys11_3_5_WCC_PRD].[dbo].[MON_JOB]
WHERE [NEXT_TIME] > '1970'
... |
778f4a8e7ffe116646e96e8f95fb89ce71f24c2cd5a6097f3c2889d250cf7df8 | ['b698495cf0bf45ee9eb744023c152649'] | After having experienced the same issue (not being able to login to the Flickr app via iOS7 using my Google/Gmail account) I found that it is required to create a Yahoo account as mentioned.
Once I completed that, I was then provided with the additional sign-in options when launching the Flickr app (enabling me to sig... | d8b21b5136227e1a858803f48ed2cb64980bd6fe8275989a3234c53d0a157a91 | ['b698495cf0bf45ee9eb744023c152649'] | I have a page with around 12 ListView Webparts.There is one Master ListView Webpart which provides filter connections to the other webparts, so that it displays the filtered results.
Keeping in mind for performance and to use best approach should this approach be continued or should i create a single content editor web... |
e13830720a0b04d99c34abc8644657ffdd4009c4c8c6b6b25cb9551087d97708 | ['b69ff7de328044e98f04adfa8de6ecb0'] | I am trying to add a new command to my own shell such as:
alarm 7.15 music.wav
I want to create a cron job so it can schedule alarm daily at given time.
So, I create a file for each call of alarm, named musicFile.txt
Here is my bash file to run: (musicFile.txt)
#!/bin/bash
15 7 * * * XDG_RUNTIME_DIR=/run/user/$(id -u... | b958eb4398bb1fd5bc54d2ef4ea718aad614af63a78158a790c6f7ef66405cc8 | ['b69ff7de328044e98f04adfa8de6ecb0'] | You can easily sort out this problem.
In "CDVHandleOpenURL.m" file you need to change code as below
NSString* jsString = [NSString stringWithFormat:@"document.addEventListener('deviceready',function(){if (typeof handleOpenURL === 'function') { handleOpenURL(\"%@\");}});", url];
To
NSString* jsString = [NSString stringW... |
6cbfcdfb66deb8aa1f092426a3d63e6e41948a3e8ce873111083a28feb2d5c4a | ['b6a00743b452473585d34b73cef2bc80'] | I'm writing a simulation demo, using d3. I'd like to show the evolution of the solution state.
If I embed the d3 rendering in the simulation loop, then the browser doesn't show anything until the end. It's busy, I suppose.
What I'd like to achieve is to do some calculating, some d3 updating, and then wait for all the... | 9f0528701db8b031d40760604fe7e0cdfd772cded427e9cbdc93d8802ec8e21b | ['b6a00743b452473585d34b73cef2bc80'] | so I have this (VB, sorry) object:
Class Foo
Private ReadOnly foo as Integer
Public Overridable ReadOnly Property Foo() as Integer
Get
Return foo
End Get
End Property
Public Overridable Overloads Function Equals(ByVal other as Foo) as Boolean
Return Me.foo.Equals(other.foo)
End Function
... |
a04e48193caca0d0776cc45df3e4c2c243c418d383684a542e75fb2fd7aad2f1 | ['b6a2a1cc066e4f19904aefb97b9fca04'] | We are attempting to save a URL stored in a string to a text file, but we can't seem to get it to work. It will not save into the file, although our testing shows that the function is actually running when it should be.
The code for this is here:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<but... | 5bb34417f3e9882b390356f5e5a5cbb38c30dca61168bbab2001407aa5ca5d61 | ['b6a2a1cc066e4f19904aefb97b9fca04'] | We are attempting to pull a user's twitter feed using javascript as JSON, and currently are just trying to save the url containing the JSON data to local storage. However, the url gives us the following error each time we attempt to access it:
{"errors":[{"code":215,"message":"Bad Authentication data."}]}
As far as we ... |
14b6f0196c119937e678dc96046716ee60eb45da3d6a452cc2255879d3e29fb5 | ['b6b03d6447bd401c947da9ec7305723d'] | I create an adapter and pass a class with an empty list:
@Provides
@Singleton
Posts providesItemsList() {
Posts posts = new Posts();
posts.items = new ArrayList<>();
return posts;
}
After this, I do some network work and call adapter's method:
public void setItems(Posts newPosts) {
Log.i("mytag", "NewP... | eccb97106be68d041691b38b334e94c2e1579509ca4bfa48976c2a8fd5694650 | ['b6b03d6447bd401c947da9ec7305723d'] | I have JSON response which looks like that:
{
"response":[
"Some number (for example 8091)",
{
"Bunch of primitives inside the first JSONObject"
},
{
"Bunch of primitives inside the second JSONObject"
},
{
"Bunch of primitives inside the third JSONObject... |
dcbe87aa33bca689590254ab485e5dae8da2cc54d4382757adc67a7cdd25843d | ['b6bd0e0b487840769afd6dabc9ba43dc'] | Using Xcode 8 new memory debugger I found out there was a ViewController in memory that shouldn't be there and the strong reference that was pointing to it was coming from this mysterious _statusBarTintColorLockingControllers array in UIApplication. Does anybody know where it comes from? And more importantly, how to ta... | 080db9342c984cd7a8ec16acbd0d4a7c88e1c6cd1bf34fbf61844aa6e6cbe60a | ['b6bd0e0b487840769afd6dabc9ba43dc'] | You have different types of event listeners. So if you observe with FIRDataEventType.value, you will be notified on every change that happens in the node specified (or its descendants) - in your example, it would be the 2nd and 3rd updates.
But you can choose to be notified only when a child is added, or when it is re... |
b1db43e55a29beef3cd1b23acc758dcba4e46e00c9959ee4fd3c02b028718b32 | ['b6c89320814747389c191ca7c3ed715b'] | I understand that approximately 3,000 souls were added to [the church.] However, I am trying to prove whether it is correct to say that we do not know how many gladly received the word and were baptized. That we only know approximately that 3,000 of those were added to the church. I've found not one remark that dire... | 5e1d4fb60a983381fe94c2e81f34c0e9363b15377386024e37881dab838ae644 | ['b6c89320814747389c191ca7c3ed715b'] | Here are the basics of getting i2c working under linux and python:
http://www.instructables.com/id/Raspberry-Pi-I2C-Python/
As far as your module, here is a post I saw about the i2c address:
http://forum.arduino.cc/index.php?topic=142255.0
Finally I think you can get away without a levelshifter, but it's not guaranteed... |
757c61904c8014060bfc5801f3aaa1f416ffb6bf9f357a0bd3552ac95bde08e5 | ['b6e52ce7e5c24389b39e7c3c7313839f'] | I have to send a packet that has packet structure of:
1 byte padding (0x0)
2 byte (uint16) opcode
1 byte padding (0x0)
x bytes raw struct
So I need a way to put a uint16 into my byte array.
byte[] rawData = new byte[x+4];
rawData[0] = 0;
rawData[1] = (uint16-highbyte?) opcode;
rawData[2] = (uint16-lowbyte?) opcode;
| 0f428ce6a3e7517dcd97115ebda76cc5891f7f7d41a233a03d7dfc7e9df2b3ba | ['b6e52ce7e5c24389b39e7c3c7313839f'] | I'm writing a http server and I just had question about how to implement a PUT request.
I am reading a client socket one byte at a time, until I reach a CRLF "\r\n" new line, where I send the line to a parser to be tokenized. When I get two line breaks in a row, I send a response (as it is the http standard to symboli... |
48bf880c409e47d2e89d62ca46bf9c5442a2f7a4aa6677fc71261f81cdecc90b | ['b712a5ec43674f41bbf60d2e9f55775f'] | I've setup a secondary project module to symlink from the source folder to a shared resources folder. This shared resource folder is where I store all of the content for several components.
I realize there is a built-in 'include folder' functionality that would make sense, but the linkages behave differently - specifi... | 473bd886653901b50376390bc4d1973d151094263374077845a8283a8916c99d | ['b712a5ec43674f41bbf60d2e9f55775f'] | I know I'm not the first, but I'm an audio pack rat who keeps their collection meticulously organized. Having tried a range of tools, there are holes and time sucks that bug me. I've started in on the project to build the software that I wish existed.
My question centres around a feature that I hope will cut down on ... |
785a52fa84809313cc83e1d6b18ada554a9afe8f5451cd664f29e39a415a4c00 | ['b7161c22052c4719b6ff605fbde60c46'] | So I am attempting to write a program in Python that builds a list of students and eventually prints them out to the screen. For each student the user chooses to add, the input of first name, last name, and ID number are taken.
My issue is that although I am attempting to append each new person created onto a list call... | 2d63cf9d97586b52373730aa9e35e1aeb7b23a569c730db6daa6e462986c9691 | ['b7161c22052c4719b6ff605fbde60c46'] | I am trying to create an HTML/JavaScript program that reads external JSON files (via URL), and then outputs them to the webpage in a nice listed order.
I have been working on this for days, and I can't seem to get past an error that pops up in the console of Internet Explorer. The error is:
SEC7120: Origin (my azure w... |
3a43cf2b5363c53c606bc2931108cadcf8b9f6f2f2cfd62db918baeacfdddf13 | ['b7288ab1cb794282bfcb673b47d5ca4c'] | I am trying to create a program for my project in school, and I have come across a problem. I am using LinqPad premium and when I launch the program it starts fine. However, when I try and start it for the second or third time it throws the exception:
"ObjectDisposedException: Cannot access a disposed object."
"Object ... | c32d53ee2c9f2fe568c040c7686d62cf706dd045976d56e947ec0aa8694b6303 | ['b7288ab1cb794282bfcb673b47d5ca4c'] | I have a piece of code that throws an exception and error after running for a second time. Here it is:
static Form Window = new Form();
static public void Configuration()
{
Window.Height = 800;
Window.Width = 800;
Window.Text = "Homework";
Window.Paint += Window_Paint;
Window.Show();
}
This code... |
39f8f4f98b32c8f62b08955ce496bd49800cd2a897917023b9a21c9788a6c865 | ['b7296cf25beb44fe9c254f39d7c036f8'] | I've two radio buttons, on active each radio buttton will span to two text boxes.
Now when I select first radio button, other radio buttion's two textboxes should be disabled and vice versa
can someone help me on this, I'm new to JS
Below is the HTML
<div class=radio_section>
<br></br>
<input type="... | 87c8c0b8a95294d894c01e4b6f61affbf625430fe6bf21ea8a645bc89e9a63e4 | ['b7296cf25beb44fe9c254f39d7c036f8'] | I'm trying to send a mail with from cgi web console using email input field but it fails with below error in apache logs
Traceback (most recent call last):
File "/opt/apache-dba/cgi-bin/main.py", line 132, in <module>
mail()
File "/opt/apache-dba/cgi-bin/main.py", line 129, in mail
s.sendmail(me, you, msg.a... |
aa4c5efb3eb35e82154dbf717ea6f5f518656d04f44bd91a81fd754868d9b155 | ['b72f09bf05164d7095a517a502935021'] | I am having a problem with vlc on xubuntu 15.04, which is vlc sometimes does not exit after I pressed the close button on the window. Still after closing the window, the vlc icon is still on the toolbar and I have to enter task manager and kill it. Why is this happening and what can I do to fix it?
| b8e42bc6c9bc35e89781b753f59af1fcbee86013e5e34c2f9ecf770e4624794f | ['b72f09bf05164d7095a517a502935021'] | How do I get the source from a previous version like a release version at github, when the master is updated daily? Sometimes later versions contain bugs I can't solve and I want to testrun an earlier version instead. But I'm not sure how to get to it?
|
4867c6d3b7dc7db14da2bde129a4cd37ac27df994cc4c2d5a6bfcb4445dd5760 | ['b7347baca8c147f88eb0bb4fb9fb5c1f'] | Worklight <IP_ADDRESS> (Enterprise edition)
I have a Worklight hybrid app running on Android 4.4.2. It uses Adapter-based authentication for end-user login/logout and the user is subscribed to push notifications automatically after successful login and unsubscribed on successful logout. Additionally, I use the Workligh... | 42d534eeb865a98b58d2c131b3e528a3d0ff79d1a9dd314d476e170da2527d79 | ['b7347baca8c147f88eb0bb4fb9fb5c1f'] | In Eclipse I am receiving the following error when trying to check-in some local changes.
RTC - 4.0.6 (RTC Client Plugin for Eclipse)
Errors encountered during Check-in
Parent '/WLSample/apps/wlapp/ipad/css' has multiple children with the name 'main.css'.
Parent '/WLSample/apps/wlapp/ipad/css' has multiple children wit... |
5d24ca7da665bba376702413b0f34f9fcfc169d04f814852d09a893dd516bc32 | ['b7526261026244c095cab1e1c012856d'] |
This is the case you are using Julia:
The analogue of IPython's %matplotlib in Julia is to use the PyPlot package, which gives a Julia interface to Matplotlib including inline plots in IJulia notebooks. (The equivalent of numpy is already loaded by default in Julia.)
Given PyPlot, the analogue of %matplotlib inline i... | 2e5271ae2a1b92a2da0a0945ae451702f358c27da9678561e7b8afe29951548e | ['b7526261026244c095cab1e1c012856d'] | For a project, I need to extract multiple posts from specific subreddits using PRAW. The approach that I want to do requires having posts from multiple months
With the below, I only got all the mixed dates...
#! usr/bin/env python3
import praw
import pandas as pd
import datetime as dt
reddit = praw.Reddit(client_id='P... |
e7107cf6294cccd4acc71927ad1b1032d4eb87fc8243ed1197675107e1e15ede | ['b778a04851f44beaa49ac92b6f51aead'] | I have an example of a google search and display markers. I am trying to have google display a map of markers and then a search bar for the user to input city or zip and display that area long with the markers.
I followed, Store Locator in google maps, input zip code and display markers on map and sidebar
Everything w... | d23c726ee4f375c90bc73ac07f3f028b3b11afe47ff407a70dd25761559470e9 | ['b778a04851f44beaa49ac92b6f51aead'] | Im trying a simple request to get data from a webserver, but running into an error on the console.
fetch('http://tcokchallenge.com/admin_cp/test2.json', {mode: 'no-cors'})
.then(function(response) {
return response.json();
})
.then(function(text) {
console.log('Request successful');
})
.catch(functi... |
4c19741288b67e2f1007701f5f7a1467bdcfece31e09927221834ac61cc109b7 | ['b78dc23bd24447a9a70d735a77be1d7c'] | Yes basically this is what virtualenv do , and this is what the activate command is for, from the doc here:
activate script
In a newly created virtualenv there
will be a bin/activate shell script,
or a Scripts/activate.bat batch file
on Windows.
This will change your $PATH to
point to the virtualenv bin/
di... | d27ebad34f91799f0b7fd7e7421df507e090902d58e0453db6837855b3a9d1ff | ['b78dc23bd24447a9a70d735a77be1d7c'] | You should change your form's action to your django view and in your view you can re-post to https://me.s3.amazonaws.com/:
In your template
<form action="http://mywebsite/upload" method="post" ...
In your view.py:
def upload(request):
# Your treatment here.
# Post the data to amazon S3.
urllib2.urlopen("ht... |
e7b88a99fcdb91ff96817ecba51289028be54869ca136e5ff27f88fd47b3a9fa | ['b7924e4de78e40bd8345f91f5280dff4'] | Currently my threads in mutt are sorted by descending order of date, but emails on the same date are sorted in ascending order of time.
This is what I have in my .muttrc:
set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"'
set sort_aux = reverse-last-date-received # like gmail
set date_format = "%m/%d/%t"
Do you gu... | 921447eba8007d26bbc64c74625c57b35317c6a4ae593f3341d97535fe45664a | ['b7924e4de78e40bd8345f91f5280dff4'] | This works but it is clunky. First, to select all the messages requires scrolling through them 100 at a time. I tried moving only 600 of my spam from November and got an error message, though most were moved. I was able to search what I moved for specific keywords, but then I worried that all the moved messages had bee... |
318e68d83bef534eac6f6a95820ef843dfe296a8e5decbbf4f6d5714a26bc56b | ['b794f7b567974c5cbd32712d20ce91a2'] | It's possible the difference is in the CORS support, or misconfigured CORS support.
In WebSphere Liberty the support is configured in the server.xml using the cors tag.
In WebSphere Traditional 8.5 you may need some JAR file additions as described here along with the relevant app configuration.
| 7a487bf2b75f53673f97b4fafe9f98fb7a449f39cd9b67fcb5a635c1fa152ff7 | ['b794f7b567974c5cbd32712d20ce91a2'] | There are some resources for speeding up application deployment, but they don't revolve around parallel deployment. For many reasons, I don't see parallel deployment being advised. Deploying two EARs at the same time would likely make both take twice as long.
You could automate the deployment into a wsadmin script or l... |
831897fb49cf7159f6fc46405ecbae69c9886553a0afb01576fc14d93442fc4b | ['b7965331655f42d282201bf82121a432'] | `iperf` shows 907 Mbit connection. I disabled `UAS` it was still the same, then I added a dedicated power supply to the adapter (it has a socket for it) and still I only get 32 MBytes/s. Not sure what is left. Btw its a HDD / Gen 1 SATA I believe not an SSD | 8cc68447b300347c73d861501c319713f0f0bee3b800910e9e10edd7bed26f62 | ['b7965331655f42d282201bf82121a432'] | I have a web app which can be accessed from http://example.com
I'm developing locally another web app which I want to access it from the same domain but different path. Let's say I want all traffic from http://example.com/my-local-app/* go to my web app served from localhost:8080. All other requests should go to remote... |
0280c269ebe0b2c3ddd93dd028608e13a144ca85004aacf3dfef9b7e52f24da2 | ['b7ad5611868c43bc85c7610a8c614040'] | You have asked to get photos from Facebook account.After searching many hours Facebook Developers pages,I got solution for your question, I have provided link to get Facebook user photos, follow that.
Link:
https://developers.facebook.com/docs/graph-api/reference/photo/#Reading
/* make the API call */
Bundle params =... | cfdda22e98988858472deb50775845f55af36260b10cb8cf71fe7fa007deca7a | ['b7ad5611868c43bc85c7610a8c614040'] | If you see your image URL, every time you update new Image, the server would provide same URL(having no changes),but it may be different.That means first upload one image and get first image URL next upload second image and then get second URL, just compare both URL's. If both were same , Picasso doesn't update it,inst... |
3e92725c4dfebf261a9af32353ba2c14983db3538b07733ffcf15c4586bd400f | ['b7ae3e2943bb4796afa28c9b3ebdec74'] | Adding to what <PERSON> answered :
you can use something like this also :
PreparedStatement pstmt = con.prepareStatement("INSERT INTO `table`
(pid,tid,rid,tspend,description) VALUE
(?,?,?,?,?)");
pstmt.setString(1, pid );
pstmt.setString(2, tid);
pstmt.setString(3, rid);
pstmt.setInt(4, tspent);
pstmt.... | aae9a12799a41d66901afdecd2d70412a88838f5fe98aa943ede86d4a3865e46 | ['b7ae3e2943bb4796afa28c9b3ebdec74'] | Today again after long I caught in this issue. Every-time I fix this problem and move on but this time I tried understanding the root cause and get it fixed and since the fix which worked for me is not in the answers to this question, thus adding part with details :
I am using EGit plugin in eclipse, and the problem wa... |
1f6500cd407724ff59568bdd7e3e6c34ab221fe23e00c3cc9b7a025c008f3a16 | ['b7b1b17db581477abc77d2f5d5f4b785'] | I read this book. For graphics I installed FLTK on my compiler, MS visual studio 2012. The machine I'm using is MS Windows 7.
I have read that book until chapter 17 and I haven't studied any method for waiting. By waiting I mean executing a statement, making the system to wait for a while, and executing second statemen... | aada810a78aa9b78dcf26b0834faf8b201ee7eb4c1b697f9e77a9c7e98ca9f4a | ['b7b1b17db581477abc77d2f5d5f4b785'] | This is my simple code:
#include "C:\Users\Myname\Desktop\Documents\std_lib_facilities.h"
using namespace std;
//**************************************************
int main()
try {
ifstream ifs("C:\Users\Myname\Desktop\raw_temps.txt");
if(!ifs) error("can't open file raw_temps.txt");
keep_window_open("~~");
re... |
5411aa3a02e65e78b323248fcb625aef9b764dd4cba9308b3178cd6b763bb59d | ['b7b33f9c1dbe47d492b61f193c196195'] | It's a tricky example, but the $S_N1$ process is favored because the solvent is protic and the resulting 6-member ring is more stable than a 5-member ring.
If ring expansion weren't possible, I believe your intuition is correct that the $S_N2$ mechanism would dominate. See this discussion. You're not alone!
| e802bc4f915dc25d7b28768a5da67f1863aba4288e6e87dba636e59ab4d263b4 | ['b7b33f9c1dbe47d492b61f193c196195'] | $\newcommand{\Ket}[1]{\left|#1\right>}$
$\newcommand{\Bra}[1]{\left<#1\right|}$
$\newcommand{\BraKet}[2] { {\left<#1} \left|#2 \right>}$
It turns out the trick is not a matter of exploiting symmetry or alternate derivations, but rather a simple bookkeeping trick!
$E^{(2)}= \sum_{ijab}^{SF}
\frac {\Bra{ij}\left.ab\righ... |
60c3176c26224a2425f004fdbe09d98800c89996057d081bc1d193d64d4e509b | ['b7c62fb3dfa9405ea753f98bc5a0c853'] | <div class="row align-middle">
<div class="small-4 columns">
<div></div>
</div>
<div class="small-4 columns">
<div></div>
</div>
<div class="small-4 columns">
<div>I want to be on the right edge of the parent .row</div>
</div>
</d... | 42b14f9874e52c049edada0731a2ef4c8fc19f55f04720611512469b043e3f51 | ['b7c62fb3dfa9405ea753f98bc5a0c853'] | I have WordPress installed on example.com.
I am making a multi-lingual site, with English on the main root domain and french on a sub domain:
fr.example.com
The way i'm setting it up involves just the one WP installation (on the main domain), and have the sub domain point at the root of the main domain.
So, in cPanel,... |
545975e73a8af2b66702d11c595b9b86abca9a40228c342b3d424034094327f7 | ['b7d4fce16d8143879054fbc265875617'] | As far as I see, while loop does not enforce any restrictions. Well my suggestion would be something like this:
$i = 1;
$cssClass = 'item';
$columns = 4;
while ($row = @ mysql_fetch_array($results))
{
$class = $cssClass;
if (($i % $columns) == 0) {
$class .= ' clear';
}
print "<div id='{$class}'... | 3edd83982be0d8570a388c01a4e1a49a399fc92915669ce2ed9ee892ca6e6d12 | ['b7d4fce16d8143879054fbc265875617'] | First look at example of using php session-based flash messages http://mikeeverhart.net/php/session-based-flash-messages/
Usual flow:
User fills in the form
Presses submit
Your php script sendmail.php validates the form
If there were some validation errors [set error message]
If there were some mail sending errors [se... |
2be9ec056433e0df790988362604689802f3a4cda21424b1fb052c2c21862530 | ['b7f1c0cbc8e84d7391758e7bc463ce59'] | OK, the problem turns out to be 'azure' calling execve() with the string "/usr/bin/node\r".
A workaround is to do this:
% cd /usr/bin
% sudo ln -s ./nodejs ./node^V^M
Yes, sticking a DOS carriage return (that's Ctrl-V Ctrl-M) at the end of the filename gets you past this problem, but who knows what's going to crop up ... | bbfd2aaad1ad5290363feff9b4a802cf11a5eab85c9b56081169ce5ba7a13228 | ['b7f1c0cbc8e84d7391758e7bc463ce59'] | Just installed node.JS so I could install the Azure cmd line tools on a CentOS 6.3 machine.
According to this, there's a problem with 'azure' invoking 'node' (per strace). Since MSFT doesn't support Azure at all, apparently, I'm wondering who gets bug reports like this, and does anyone else have a solution?
[murphstei... |
56826218103a470a0fbf50895a1af01980ae5db916339be06bace969c789c4ba | ['b7f61c0670a94c8184e2294c66607e40'] | I have a set of elements inside a container with menu items arranged alphabetically. I have set width of each element and floated them left, thus creating columns. My problem is that the alphabetically order then is set horizontal.
Can I break the row of divs in vertical columns somehow? It's bout 150 elements, and I ... | df4403e2c06d76430de105b46cefefa8f0c6a89605864443496078374fb3ef41 | ['b7f61c0670a94c8184e2294c66607e40'] | I have a string inside an div and I want to target this div if the number is 0 - and if its the only character. The currency symbol changes so I can't use that.
As soon as the string is €1, €10 etc and don't want to target it - only if its 0 and one number in the string.
I want to use a if variable or something simil... |
8cba6585666591599405bc8403b8282ce1c8355f9f63d4993057b697e9aeb2c5 | ['b7fd5c9c9f6c4410806806b9e287676a'] | I have been searching online to find a simple basic chat application example, i find a lot of them with PHP (index.php) with mysql and ajax. However that is not what i need, i need a simple Peer to Peer and Peer to Group chat source or tutorial links using the below.. index.HTML, PHP on server side, authentication usin... | 6f9b89ad838237e8e20d91fb858daf791741ce7ae113e2df9ac6ffa7b4504b84 | ['b7fd5c9c9f6c4410806806b9e287676a'] | I am trying to archive the below,
All the heading should be aligned Center
"The values of 1st Column=Align Left" and
"All Values of 2nd, 3rd, and 4th Column=Align Center"
how to archive this, when i have auto-incrementing values in my table
HTML:
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid ... |
217a9ab36997921974bc71ce991162a198535355ff97b02fd282ada68764db05 | ['b80c2f8f39ce4ab88ac087c7c96651ef'] | I know this is an old thread, but it was one of the first results I got on Google
"Kana" shows a special keyboard with hiragana characters instead of the English letters. The iPad keyboard will show a grid with all the characters. The iPhone keyboard groups them by consonant to have less on-screen keys, and sets a dire... | e86b0ce3fc3584423b985d67cf94eb4c11fd03d2998704d8c5c6971057c9d185 | ['b80c2f8f39ce4ab88ac087c7c96651ef'] | I'm reading a book in Design Patterns, and below is some code example used by the author. The author tries to build a html builder as (code in C#):
public class HtmlElement
{
public string Name, Text;
public List<HtmlElement> Elements = new List<HtmlElement>();
public HtmlElement() { }
public HtmlEleme... |
6f8bb16ad233d9b31abff31f05b0b65c841198fbef4d27253d03b5b3a064c2ef | ['b813677f32b8415695cb82cf67a060a2'] | I'd like to have a script for npm that did the following:
Gets a list of files inside a folder (and subfolders)
Write it into a JS file, with the following format:
module.exports = [
"folder/filename.png",
"folder/subfolder/filename.png"
];
I'm currently doing it like this using the cli in Linux:
echo 'module.ex... | 2377dfcc3fe23cccadf2ee4e6cd322a1b9889f6427cc6e39cf2f9385fb849093 | ['b813677f32b8415695cb82cf67a060a2'] | I'm a game developer and I have been trying different structures to see what would give me the best results but it seems that JavaScript is mostly unaffected by data locality, meaning that processing times are within margin of error and memory usage is mostly as expected.
Does data locality matter at all in JavaScript ... |
838e452f2ef59f6f3bfd321deaa2a45f23dd4a6e131e97a85e6f499b66307f20 | ['b8263fdc8d634892943b949f8ec111e6'] | If you are yielding as tuple then you should be using tuple as param in your sortBy and map as following:
def getIDsSortedByFinishDate()(implicit session: Session): List[String] = {
(for {
(p, t) <- Projects leftJoin ProjectData on (_.id === _.project_id)
} yield (p,t)).sortBy{ case(p, t) => t.project_finish_dat... | ae770b7dccd303ab5872f6c6525d7a0571b102b8e59717cabcfb44d0beed94d1 | ['b8263fdc8d634892943b949f8ec111e6'] | You can use simple boolean as a flag value to show alert. You may need to save your boolean flag somewhere, perhaps in Shared Preferences and upon init you can implement something like following
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences();
Boolean isShown = prefs.getBoolean("isShown", fals... |
1b74735edda2222d8bdd65e776f21f014caaa89e4cc60bfedb94a63fc3bf8da5 | ['b82bc98478664a29b5ea0ee219f2e8c7'] | Challenge Not yet complete... here's what's wrong:
The '<PERSON>' contact role for 'Greendot Media' could not be found.
Relate a Contact to Multiple Accounts. Then add Yourself to an Account Team.
Your VP just connected you to a new contact, but the contact works with two different companies. To pass this challenge, r... | 425b5153502e16ef5ebf1d80414d3b1019aaa9343df9153e46d8e3128c6293f5 | ['b82bc98478664a29b5ea0ee219f2e8c7'] | Face recognition drones
You can already find some pretty crazy simulations of swarms of bird sized drones, air dropped, that will just run to your head and detonate a directional explosive charge. add some bigger drones for door or window breaking, and you get a perfectly plausible mass killing weapon. Crazy expensive,... |
b2fb3d5881d1b2b479684197904323cb9b5ad5d55f80ac0ca4e1511e81d0fb88 | ['b85cc06239a04328b4943652be852553'] | My maths teacher at high school used to tell the class that he really would've wanted to become a dentist. He didn't say why, I suspect because it's better payed and because it was supposed to be a funny thing to say. Reality is that I agree that he should've become a dentist! | f97f87982e5bf14610eae1fe632defcbd29bf2cfcda25946230c88096fa56274 | ['b85cc06239a04328b4943652be852553'] | Closing this question goes against the grain of the desire to make Stack Overflow and the entire Stack Exchange network [a more welcoming place](https://stackoverflow.blog/2018/04/26/stack-overflow-isnt-very-welcoming-its-time-for-that-to-change/). Marking as a duplicate of a question asking for books is downright insu... |
744ce2f3dfb011e595699b3639918612bf998ba682c3d061d100a5009a5d4c7a | ['b85f9b5ca6f143c3930fbe6ee3f1e402'] | I'm working out a solution to a complicated file copying workflow in a laboratory environment. One solution hinges on normal users (who must not have administrator privileges) running a script that will share a directory owned by them on the network. Is this possible?
(I don't have access to any Windows 7 machines - ot... | b908372bbd57f463f1c52bc467abb9e51b86fc3ba10de1091710dd142fa51b3b | ['b85f9b5ca6f143c3930fbe6ee3f1e402'] | I frequently move my laptop (OSX) between different wifi areas, but my home base has an ethernet connection and relies on my organisation's proxy.pac file. When reconnecting after a stint on the road, I often get a problem where pages simply don't load in Chrome or Firefox. They just eventually time out. I think this i... |
19e4b73d0bfa937a4aa43ee09be02b41de840f00b3bc7fc263f98c61368d22c7 | ['b86bfba1c6ec4c58881527953930fade'] | Yes, this works - thank you for your time and showing a simpler path to the target! I am still not sure why the original worked when all the ids *were* present (regardless of the argument reference name) but raised an exception when there were ids that didn't exist in the target. | d1c984960a3a20cba598383d2c839a20247f4c932143152f216ee7d42f147582 | ['b86bfba1c6ec4c58881527953930fade'] | In earlier versions of Outlook, adding a signature to an email made that signature the default (a hihgly useful feature!) until it was changed by selecting a different signature. For example, on new emails I use a complete signature with name, phone, email, company, etc; on replies, only a three line, name, company an... |
483c8297cf7f77db92796d4cc623990a87dbd2b781522d2e31540a02b1a1ef61 | ['b876fe18116c4eeb934b589e6356acdf'] | I currently using this code:
!E::WinMove,A,,0,0,1920,1080
My current screen resolution is 1920x1080, and this script works just fine. But with this script it won't:
!<IP_ADDRESS><IP_ADDRESS>WinMove,A,,0,0,1920,1080
My current screen resolution is 1920x1080, and this script works just fine. But with this script it w... | 0f3f66113be29fb38bbe1364f04f68ccdc9e9ec22ff1685cb0ff674e7ef55e48 | ['b876fe18116c4eeb934b589e6356acdf'] | To demonstrate my question, here's my version of HTML:
<body>
<a href="google.com">
<div>
<h2>Hello</h2>
<h4>Venus</h4>
</div>
</a>
</body>
Then I use 'onclick' for the body in Javascript:
document.body.onclick = function(event) {
console.log(event.path)
}
When I click on the 'h2' tag, the c... |
57e4419edd5372eb2726c24300a44c7f4b921de2f9a36e16eeb96b08af7a0317 | ['b879b3f5716b44c99b6113f1f4169f5e'] | $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.example.com/api-api-ng/v1/function?lat=50&lon=8&radius=500&statement=2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = array();
$headers[] = "Accept: application/json";
$headers[] = "Authorization... | f607fb9bb77038c8ae62021dd67a96156f1bebd4c8ade3e0a4b34e3d785fde9b | ['b879b3f5716b44c99b6113f1f4169f5e'] | I have two tables
Table 'Teams' has two columns
teamID,
teamName
Table 'Match' has three columns
matchID,
teamID_1,
teamID_2
... like in image bellow:
How would I construct a select statement which will pull through the Teams.teamName to both the Match.teamID_1 and the Match.teamID_2 based on their respective IDs?
... |
93a80b263bb6473f9dcfa7854a7c01eddcc94ff104083b64f01628aa2ed85e0d | ['b88b66373202433abfe9579b82dc61da'] | I am trying find solution to get direct video URL for youtube videos. But i am not able to find any solution.
I am currenlty using Youtubedownloader
.When i click on download video it generates link to video but its not actually recognized as download link in my web application. I am trying to upload remote video wit... | 80c7946b621e609ed8a7a8d6700506e17f17d5851cc0ba7af5279d13ae1b7717 | ['b88b66373202433abfe9579b82dc61da'] | Hey guys I'm new to coding. And I've made a blog. Now with help of online tutorials I'm able to create android webview app in Android studio. But issue is my blog has popups, so those same popups open on app as well, which is annoying as the back button and 50% of popups hangs app.
Is there any way to disable those ext... |
f839d31d0657cbdc7fb13327917dc677527d9270e7b0f7e90ffc6ebe20855242 | ['b895622a09204626a17f4e26bc921473'] | Create Class DataBindingAdapter
and paste
@BindingAdapter("android:onClick")
public static void setOnClickListener(View view, final Runnable runnable) {
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
runnable.run();
... | 6a0f88641448247d6cdbfc6c3ec9d24b2acb4f7ad34a3285f08e6387652271d8 | ['b895622a09204626a17f4e26bc921473'] | if you have lower version and getting problem importing project with high gradle version and want to run the project without updating gradle than
open your gradle file(Project) and do the small change
dependencies {
/*Higher Gradle version*/
// classpath 'com.android.tools.build:gradle:3.0.0-alpha4'... |
50d568fbd86d196dd2ea71ef42b71e4605d5c407fd44337d9d6d8e1b109d9ca3 | ['b8c541770e154f0e82b591f8efb9c920'] | Following <PERSON>'s hint I ended up using stack.gl which "is an open software ecosystem for WebGL, built on top of browserify and npm".
Its glslify provides a browserify transform which can be used in conjunction with gl-shader in order to load shaders. The Javascript would look something like this:
var glslify ... | 28e97c4875df174e2567036ff65d4cc6b763ff6f12b535c29c8fbffa58afec2e | ['b8c541770e154f0e82b591f8efb9c920'] | While working on a website I had a similar problem. The carousel contains an animation and some additional information as static slides. The duration of the animation exceeds by far the time needed to read the content of the other slides, so I wanted to set a different timeout for the animation.
The solution is somewha... |
2d5cddb35f86042b459dfb3ed9797946548e22c56454ed56f7f9914c72f482e1 | ['b8c92f73ee4b41a2bfa5279506866cf5'] | My aim is to setup Matlab properly for distributed computing on many physical nodes.
What have I done?
I have installed Windows Server 2012 r2 on my local network server, installed Failover Cluster tools. Also I have installed Windows Server 2012 r2 on two connected computers in our local network. I have joined them in... | 3438fb801bf239b760afbe2ac6573fba3e3b85b8095cc96b236674eedc4e1954 | ['b8c92f73ee4b41a2bfa5279506866cf5'] | Altium is driving me crazy right now. I Annotate my schematic, but I do not know why Altium wants to always switch / exchange U109 sub-parts. RC4558 op-amp. I put them in one order and Altium changes it. WHY?
I have tried everything that comes to my mind. Many times removed the part, updated the PCB. Saved and closed ... |
563679c5be00ff50fafb79e69dff3a0ece2a5789c050e87c1c8f742d65508ee9 | ['b8da08ad697948b6a047db61b70413d2'] | I am using Ubuntu behind a (Windows) proxy. I would like to use the cabal utility.
jem@Respect:~$ cabal update
Config file path source is default config file.
Config file /home/jem/.cabal/config not found.
Writing default configuration to /home/jem/.cabal/config
Downloading the latest package list from hackage.haskell.... | 03fb0de34fc7553f624a59426040d7f621ff02916fa594c4276bd8801fea558b | ['b8da08ad697948b6a047db61b70413d2'] | I think I figured a way to do it. The `Sort` function comes in handy to do `DeleteDuplicates[
Sort[Flatten[StringPosition[sentence, #] & /@ words, 1]]]`. This gives us the desired result `{{1, 3}, {5, 10}, {12, 14}, {16, 18}, {20, 21}, {23, 25}, {27,
29}, {31, 40}}`, where the position of each substring (i.e. word)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.