id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_15200 | My app works, i am trying to optimize and refactor to get performance out of the app. I have come across immutable.js and i want to change my data that is retrieved from an http request to immutable data then call it in an angular *ngFor loop.
The data returns if i do a console log, but when i try to map the data to a... | |
doc_15201 | public class FragmentA extends ListFragment {
String [] names = {"Theo","Theo","Theo","Theo","Theo"};
public FragmentA() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this ... | |
doc_15202 | Basically, the way that serialization and deserialization would work for my project normally is that I would write custom serializers and deserializers for json for each language that I'm working in, and these would covert json messages into classes that have fields from the json, but with custom methods that I write.
... | |
doc_15203 | I have noticed the the intellij process for generating pojos (Generate Persistence Mapping) also generates hbm files. However, I cannot figure out how to instruct intellij to just use the hbm files I already have.
| |
doc_15204 | i currently have this url:
http://www.example.com/speed-meetings/dine%20with%20index%20venture%20capital
and would like it to look like the below url:
http://www.example.com/speed-meetings/dine-with-index-venture-capital
my route file:
get 'speed-meetings/:title', controller: 'speed_meetings', action: 'show'
views/e... | |
doc_15205 | but these values depend on another control in my windows form in C#
Here is my code
var lstInfo = grdBreakDown.Rows.Cast<DataGridViewRow>()
.Where(x => !x.IsNewRow)
.Select(x => (tag: x.Cells["tag"].Value.ToString(), Scheme: x.Cells["Scheme"].Value.ToString(), Value: x.Cells["Value"].Value.ToString()))
.Dis... | |
doc_15206 |
A: This gives you a 5*25 matrix (each column corresponds to one sample) with numbers generated from a uniform distribution.
matrix(runif(5*25,900,1100), nrow = 5, ncol = 25)
or you can do the following if instead, you want to first generate runif(100,900,1100), then draw 25 samples from the resulting vector:
sapply(1... | |
doc_15207 | I register an effect with the callback function on MIX_CHANNEL_POST. Then, in the callback function of my effect, I make the convolution of the audio stream with the HRTF.
But I got no 3D sound. The audiostream I want to play sounds like it's double or even triple overlayed by itself and has no 3D effect.
Here's what ... | |
doc_15208 |
*
*How do I show a hidden div?
*How do I keep the tooltip visible when entering the tooltip area?
A: Tipsy supports "manual" triggering. So what you'd want to do is have the "onmouseover" event on your link call the tipsy('show') function, and then for the hiding part, well... probably do two things: when you d... | |
doc_15209 | Now, I have some problem about add event 'click' to MDC-Ripple for increased functional.
Actually, I am not sure, can it add event 'click' to MDC-Ripple or not. Because I try to search implementing Material Design Component for web with plained javascript. But I couldn't find example or usage that told me how to implem... | |
doc_15210 | Right now, my statement looks like this:
If worksheet.Cells(j, i).Text="text" or worksheet.Cells(j, i).Text = "other text"...
I figured it could be that spaces are causing the problem, but after testing, it seems arbitrary. Is there something wrong with my If statement, or is there possibly something else in the e... | |
doc_15211 | "ALMEMO";"BEREICH:";"L420";"DIGI";"DIGI";"DIGI";"DIGI";;;;;;;"DIGI";"DIGI";"DIGI";"DIGI";;;;;;;"DIGI";"DIGI";"DIGI";"DIGI";;;;;;;"DIGI";"DIGI";"DIGI";"DIGI";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"CoCo";"CoCo";"CoCo";"CoCo";"CuCo";"CoCo";"CoCo";"CoCo";"CoCo";"CoCo";;;;;;;;;;;"CoCo";"CoCo";"CoCo";"CoCo";"CoCo";"CoCo";"CoCo... | |
doc_15212 | For example, a sample regex is
(?!(\bId="\d+"\b|\b4[78][0-9]{14}\b))(\bhello\b|\b49[0-9]{14}\b)
I'm using (?!exclusion patterns)(inclusion patterns) to recreate the exclusion of matches. In this, exclusion patterns are
(\bId="\d+"\b|\b4[78][0-9]{14}\b)
And inclusion patterns are
(\bhello\b|\b49[0-9... | |
doc_15213 | Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
GasGuzzlers("carModelData_city", "carModelData_hwy")
File "<pyshell#2>", line 7, in GasGuzzlers
num+=1
TypeError: must be str, not int
This is my code:
def GasGuzzlers(list1, list2):
num = 0
num2 = 0
with open(list1, "r... | |
doc_15214 | Here is a screen shot of the page on screen:
Here is a screen shot of a PDF printed using the system print dialog:
Here's the HTML:
<!DOCTYPE html>
<html>
<head>
<link rel="Stylesheet" type="text/css" href="../css/style.css" media="all"/>
</head>
<body>
<div id="container... | |
doc_15215 | Following is the data of my csv file:
0 1.03645399076138 18.680054645644 26.8678147836078
1 2.44625498591384 18.680054645644 26.8678147836078
2 5.45509322517529 18.680054645644 26.8678147836078
3 2.36362640018202 18.680054645644 26.8678147836078
4 2.28307829582599 18.680054645644 26.86781478360... | |
doc_15216 | I am trying to initialise a null KeyStore in my custom X509TrustManager class.
In the constructor, I do the following:
public EasyX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException, IOException, CertificateException {
super();
//keystore.load(null);
TrustManagerFactory fa... | |
doc_15217 | For the string "abc" I would like to match the first appearance of any of the permutations without repetition, in this case 6: abc, acb, bac, bca, cab, cba.
For example, in this string "adesfecabefgswaswabdcbaes" it'd find a coincidence in the position 7.
Also I'd need the same for permutations without repetition like ... | |
doc_15218 | Thank you.
Added by OP: I am looking for a simple solution. The App is running on a single user, single CPU computer and does not need network (or Internet) access. There is nothing to cause a deadlock.
I think I would like to have the worker thread post (or send) a message to cause the views to update.
Everything I r... | |
doc_15219 | public class ThreadedObject
{
private Thread thread;
private ConcurrentQueue<Task> concurrentQ = new();
public ThreadedObject()
{
thread = new(() => RunThread());
thread.IsBackground = true;
thread.Name = "ThreadedObjectRunner";
thread.... | |
doc_15220 | var mouseEventArgs = (System.Windows.Input.MouseEventArgs)e.StagingItem.Input;
if (mouseEventArgs.LeftButton == MouseButtonState.Released &&
mouseEventArgs.MiddleButton == MouseButtonState.Released &&
mouseEventArgs.RightButton == MouseButtonState.Released &&
mouseEventArgs.XButton1 == MouseButtonState.Rel... | |
doc_15221 | The goal is:
*
*If the number is in Blacklist, it prevents the user for receiving / sending sms and it does not appear on his sms applications.
*If the number is in Whitelist, the user can do everything he wants.
*With some special cases, messages that have been blocked are stored in our database to be send after ... | |
doc_15222 | This is the link:
http://docs.jboss.org/hibernate/orm/3.3/reference/en-US/html/collections.html#collections-elements
An object in a collection might be handled with "value" semantics (its
life cycle fully depends on the collection owner), or it might be a
reference to another entity with its own life cycle. In the... | |
doc_15223 | Unfortunately, HR also wants to reduce the amount of logins that these users have to endure. In the worst case scenario, users have to:
*
*Log in to rate the educator/apprentice
*Log in to unlock the rating
*Log in to rate the educator/apprentice again
*And so on...
The user who fills the rating has to be user ... | |
doc_15224 | <input required="required" name="txtcellno" id="txtcellno" type="text" value="" pattern="/^+[9][2][0-9]{1,10}$/" placeholder="+92xxxxxxxxxx" />
A: + has special meaning, and should be escaped (\+).
Input patterns must match the whole string, so ^ and $ are unnecessary.
Input patterns must not be wrapped in /.../
Giv... | |
doc_15225 | Something like this:
git push ghcr.io/owner/image:tag
But since this morning I'm facing an issue with pushing image part. At first it was failing with the error denied:denied. When I tried debugging it, I created another job just for testing, and tried logging into ghcr first. It said cannot perform an interactive log... | |
doc_15226 | Essentially my problem is that the original object that's being prototyped has several tiers of properties/values:
var protoObj = {
prop1: {
first : 1,
second : 2,
third : {
a : 'foo',
b : 'bar',
c : {
'love': true,
'babies': false,
'joy': undefined
... | |
doc_15227 |
A: this is for older versions of DevExpress grid view. I also got null using standard reflection.
private GridViewInfo GetViewInfo(GridView view)
{
FieldInfo fi;
fi = typeof(GridView).GetField("fViewInfo", BindingFlags.NonPublic | BindingFlags.Instance);
GridViewInfo griInfo = fi.GetValue... | |
doc_15228 | HTML
Blocker is used to covering the full screen in a half-transparent mode in mobile devices
const sidebar = document.querySelector('.sidebar');
sidebar.querySelector('.blocker').onclick = hide;
function show() { // swipe right
sidebar.classList.add('visible');
document.body.style.overflow = 'hidden';
}
functi... | |
doc_15229 |
A: *
*Lambda@Edge is Lambda functions in response to CloudFront events.
*You still create lambda@edge function under Lambda, but Lambda@Edge function must be created in us-east-1.
*You need configure lambda@edge to the cloundfront distribution behavior on viewer request or others.
A: *
*has to be created in us-... | |
doc_15230 | {
"category": {
"gender": {
"male": "A",
"female": "B"
},
"age": {
"young": 25
},
"dob": {
"dob_list": [
"crap"
]
}
},
"sample": {
"game1": {
"title": "<arg>",
"player": "john",
},
"game2": {
"title": "<arg>"... | |
doc_15231 | Example Code:
custom_password.html
<polymer-element name="custom-password">
<template>
<div>Other things here</div>
<input id="password-field" type="password" value="{{value}}">
</template>
<script type="application/dart" src="custom_password.dart"></script>
</polymer-element>
custom_password.dart
import... | |
doc_15232 |
Source code for watch side main View is:
class InterfaceController: WKInterfaceController, WCSessionDelegate {
var session: WCSession!
var MessageData = NSMutableDictionary()
@IBOutlet var watch_displayImage: WKInterfaceImage!
@IBOutlet var watch_ticket_category: WKInterfaceLabel!
@IBOutlet v... | |
doc_15233 | I have been able to hide all rows that contain the exact value typed into a cell but need to match all partial values as well.
For a = 2 To 200
If Worksheets("Purchase Log").Cells(a, 2).Value = Cells(1, 35) Then
Worksheets("Purchase Log").Rows(a).Hidden = False
Else
Worksheets("Purchase Log").Rows(a).Hidden = True... | |
doc_15234 | I have never seen it implemented so had to take liberties with how I do it.
The mean difference function looks like this and I think it works pretty well:
/// <summary>
/// intended to loop over the 8x8 chunk and calculate the MAD
/// </summary>
/// <param name="C">Original frame</param>
/// <param name="R">New frame</... | |
doc_15235 | [1] We've found a bug for you!
[1] /Users/gt/work/real-and-open/frontend/src/domain/classroom/views/RosterLayoutHeader.re 42:10-70
[1]
[1] 40 ┆ <Classroom.Mutation.AddStudent>
[1] 41 ┆ ...{
[1] 42 ┆ (addStudent: (~id: UUID.t, ~classroomId: UUID.t, unit) => unit) =>
[1] {
[1] 43 ┆ <div>
[... | |
doc_15236 | ttsbegin and ttscommit is balanced on all levels and declared on same levels every place they are used inside code.
I find this behavior very strange as same code is working in another environment which does have same specifications.
Could it be some kernel related issue?
Same error does sometimes occur when deletin... | |
doc_15237 | This is what I have right now :
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr
wParam, IntPtr lParam);
Process[] processlist = Process.GetProcesses();
foreach (Process p in processlist)
... | |
doc_15238 | WITH cte AS
( SELECT [ID] ,[F2] ,[F3] ,[F8] ,[F14] ,[F29] ,[F31] ,[F43] ,[F44] ,[F45] ,[F46] ,[F47] ,[F48] ,[F49] ,[F50] ,[F52] ,[F53] ,[F54] ,[F55] ,[F56] ,[F57] ,[F58] ,[F59] ,[F63] , row_number()
OVER(PARTITION BY MyKey ORDER BY MyKey
)
AS [rn]
FROM [myDB].[dbo].[myTable]
)
DELETE cte WHERE [rn] > 1
"
A: W... | |
doc_15239 | How can I avoid exiting the REPL?
A: If you know upfront, that you run into such issues, you can prepare for it.
Here the steps which didn't worked, until I found a solution:
a) The naive apporach, catch Exception and exit gracefully:
object InterruptTest {
// this method takes some seconds, longer and longer, a... | |
doc_15240 |
*
*take the oldest task from Macrotask queue and run it
*render
*repeat
I'm facing inconsistency in Chrome whereas Firefox for example seems much more consistent in following the before mentioned steps.
Example
Here's the >silly< code example to demonstrate the issue:
index.html
...
<head>
<script src="index.js" ... | |
doc_15241 | Objectif: parsing JSON file using telegraf input plugin.
Input : https://wetransfer.com/downloads/0abf7c609d000a7c9300dc20ee0f565120200624164841/ab22bf ( JSON file used )
The input json file is a repetition of the same structure that starts from params and ends at it.
you find below the main part of the input file :
{
... | |
doc_15242 | The easiest method is to just read data into a temp buffer and copy that data into the unmanaged block, but after having done this, the application uses ~25% more cpu just doing memory copies.
Is there any way I can pass the unmanaged block into the Socket Read and avoid doing the extra memcopy?
| |
doc_15243 | I have used the public key for symmetric key wrapping and storing the wrapped key to a file. When I try to unwrap symmetric key using the private key, I am able to do so within that instance. Once my application is re-installed, I am unable to get the key store entry with the alias.
KeyPairGenerator kpg = KeyPairGenera... | |
doc_15244 | The way I wanted to do it was to create a simple Twisted TCP server (I'm the one who will be waiting for the initial connection) and somehow call it from a Django view whenever I would be needing it.
How should the communication look like beetwen Twisted and Django in this case?
A: Use the Twisted wsgi container to r... | |
doc_15245 | Language- Swift
Xcode 6.3
A: Short answer, yes it is possible.
Use CoreLocation to trigger a local push notification on entry to the geofence, and then in response to the local push present the pass using the PKAddPassesViewController. To cope with more than 20 locations, you can have your app poll your server on s... | |
doc_15246 | However it just has the current date/time in there no matter what you change it to. What am I missing? I want it formatted as MM / dd / yyyy too.
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
//birthday view
UIDatePicker *datePicker = [[UIDatePicker alloc] init];
UIToolbar *doneBar = [[UIToolbar alloc... | |
doc_15247 | Can i make it faster?
foreach ( $_POST['friends'] as $ids ) {
if ( $i < 199 ) {
$iZ = $facebook->api("/".$event_id."/invited/".$ids, "GET");
if ( $iZ['data'][0]['rsvp_status']):
$status = $iZ['data'][0]['rsvp_status'];
else:
$status="";
... | |
doc_15248 | As I'm working with an Access database and I should export everything, I decided to include the database file in the same folder as Main.class and SingletonConnection.class (which is the class that manages the connection with the database).
So the code is:
private SingletonConnection()throws ConnessioneException{
... | |
doc_15249 | Here's my model:
data: function () {
return {
id: null,
editor: false,
loading: false,
valid: false,
checks: [],
field: [],
form: {
name: 'asd',
description: 'asd',
data: [
{
menu_id: '',
user_type_id: '1',
},
],
},
file: ... | |
doc_15250 | With that said, I have talked to a number of people who say that reCAPTCHA is not necessary and I have noted that majority of apps that use phone as OAuth don't use reCAPTCHA. So my questions are:
*
*Can I use Firebase Auth without reCAPTCHA without having to eject my app from EXPO?
*Is there another way to implemen... | |
doc_15251 | With a calculator if I wanted to convert that to a degree, I'd simply do: arctan(0.01);
I've tried Math.Atan(0.01) and it's reporting an incorrect value. I've read that c# uses radians but not sure, based on that, how to accomplish what i need. Thanks all!
A: Yes, Math.Atan does give it's result in radians (from here)... | |
doc_15252 | Hi!
I go on toy project with React, Material-ui.
when snack bar or react-toastify pop up.
It's not harboring in screen. (RED: scroll up/down then snackbar is there)
I changed pop up position top/bottom. but, It can't cover every case.
How can it make pop up in screen. (GREEN is showing in screen)
I want to SnackBar po... | |
doc_15253 | There is a blank date field on the form, and when the user enters a date and clicks the 'Save' button, I am running this VBA:
If IsDate(Me.PaidDate) = True Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.SetWarnings False
DoCmd.OpenQuery "BeneEmployeePaidUnitsUpdateQry"
DoCmd.SetWarnings True
Else
Me.Di... | |
doc_15254 | and i tried installing but then after clicking next on the ready to install page, it took me to the page where the installation progress shows but it ended up with the error message below:
"An error occcured. Clicking retry may resolve this issue.
The Composer installer script did not run correctly [exit code 259] and ... | |
doc_15255 | I need to set height and width of the container in 80% of my screen, but thats not work (i think because body have no height and width).
thats an exemple code :
<div id="container">
<div class="box">
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
... | |
doc_15256 | Here is a screen of my datatable :
Here is the code that is supposed to process this data :
async getCanR(CanRArr) {
return fetch('http://pathtomydatatable/', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
... | |
doc_15257 | use std::collections::hash_map::HashMap;
use std::cmp::Eq;
use std::hash::Hash;
trait Set<V> {
fn set(&mut self, value: V) -> Option<V>;
}
impl<'a, K: Eq + Hash + From<&'a V>, V: 'a> Set<V> for HashMap<K, V> {
fn set(&mut self, v: V) -> Option<V> {
let k = K::from(&v);
self.insert(k, v)
}
... | |
doc_15258 | There is user data:
$ cat /tmp/user_data.sh
#!/bin/bash
touch /tmp/i_have_user_data /root/i_have_user_data
And I can launch a plain Ubuntu image:
aws ec2 run-instances --instance-type m3.medium --image-id ami-eed10e86 --user-data file:///tmp/user_data.sh
And it works:
ubuntu@ip-10-165-90-180:~$ ls /tmp/i_have_user_d... | |
doc_15259 | My client is running java 1.7.0_25 and there is no option to update it. The server doesn't require a client certificate.
| |
doc_15260 | se=2017-05-15T16%3A37%3A15Z
Here:
Year = 2017
month = 05
day = 15
What is hour, minutes and seconds here?
Hour = ?
Minutes = ?
Seconds = ?
A:
se=2017-05-15T16%3A37%3A15Z
Hour = 16 (4 PM)
Minutes = 37
Seconds = 15
Date time value is URL encoded and %3A is the URL encoded value for :.
Also, please note that this d... | |
doc_15261 | <Streams>
<DeviceStream name="Mori" uuid="001">
<ComponentStream component="Path" name="path" componentId="pth">
<Samples>
<PathFeedrate dataItemId="fd1"
timestamp="2015-04-02T13:32:17.1810014Z"
name="feedrate"
sequence="6499">0.875</... | |
doc_15262 | Thanks in advance
Ian
A: The best way to go is via System.Web.HttpContext.Current.Cache if the state does not have to be persistent.
The cache is also availeble in the context of the page.
A: My experience is use System.Web.HttpContext.Current.Cache and cache file. If the OS is lack of memory,the IIS will clear all C... | |
doc_15263 | For example:
Before selection:
<html>
<body>
<p>sample text</p>
</body>
</html>
After selecting "text" from "sample text":
<html>
<body>
<p>sample <span class="state-highlighted">text</span> </p>
</body>
</html>
JavaScript:
document.body.addEventListener("mousedown", (event) => {
doc... | |
doc_15264 | it 'is not valid without question type' do
expect(build(:question, question_type: nil)).to have(1).errors_on(:question_type)
end
it 'is not valid with a bad question type' do
expect(build(:question, question_type: :telepathy)).to have(1).errors_on(:question_type)
end
This is what my model looks like:
class Qu... | |
doc_15265 |
A: you can do it through HTTP head request
var request;
request = $.ajax({
type: "HEAD",
url: 'your image url',
success: function () {
alert("Size is " + request.getResponseHeader("Content-Length"));
alert("Type i... | |
doc_15266 | I am skinning my app and have a base window style in my app.xaml:
<Application.Resources>
<Style x:Key="WindowStyleBase" TargetType="ContentControl">
<Setter Property="Background" Value="Red" />
</Style>
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResour... | |
doc_15267 | The web app is developed in Catlayst 5.7 and the new server has the catalyst 5.9 in it.
Firstly I created a new catalyst app in the new server and after that I moved the old catalyst files from the other server to the new one inside the newly created app and then I tried to run the myapp_server.pl from scripts folder.
... | |
doc_15268 | While checking for the pip version by writing either of the code
pip -v
pip --version
this gives me error,
ubuntu@tegra-ubuntu:~$ pip3 --version
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip._internal.cli.main import main
File "/usr/local/lib/python3.4/dist-packag... | |
doc_15269 | <script id="my_template" type="text/x-handlebars-template">
<p>some HTML here</p>
<?=php_function("{{foreign_val}}")?>
<p>some HTML here</p>
</script>
A: handlebars is a JavaScript templating engine. JavaScript, not including things such as node.js, is a client-side scripting language that executes purely... | |
doc_15270 | aiReturn texFound = scene->mMaterials[m]->GetTexture(aiTextureType_DIFFUSE, texIndex, &path);
but the filename store in path is wrong. Some times it appends \ in the front of the filename. ex. \super_diffuse.tga. Actually the filename is super_diffuse.tga.
Is there a way to solve it or is it a bug?
A: How about you s... | |
doc_15271 | org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project myproject: Failed to clean project: Failed to delete /home/automation/myproject/target/generated-test-sources/test-annotations
at org.apache.maven.lifecycle... | |
doc_15272 | set autoscale noextend
set view map
set contour surface
set cntrparam levels 15
set key outside title "Contour levels"
splot 'sampleImage.png' binary filetype=png with lines nosurface title ""
The contours are plotted over the image with respect to a maximum of 255, like at 255, 250, 245 etc. How can I read these key ... | |
doc_15273 | <ClassA><!-- content --></ClassA>
or
<ClassB><!-- content --></ClassB>
or ...
At time of parsing I have no further information which class is in the file.
So, currently, I try to parse by trial and error:
try
{
ClassA result = (ClassA)new XmlSerializer(typeof(ClassA)).Deserialize(reader);
if(!(result is null)) { ... | |
doc_15274 | This is handled through four tables:
*
*post (with the id and post_title)
*postlocation (with the fields post_id and location_id - to allow a one to many relationship)
*location (with the fields id, location_title and country_id)
*country (with the fields, id and country_title)
I want to perform a simple, effec... | |
doc_15275 | The below code is just a test for later be implemented in my project:
typedef VOID* (WINAPI *_DLLPROC)(...); // it's variadic because the parameters are undefined
// I Tried to do it using variadic (like this)
// VOID* CallDllFunction(LPCWSTR dllName, LPCSTR funcName, int numArgs, ...)
VOID* CallDllFunctionA(LPCWSTR ... | |
doc_15276 | Write your code in the file Averages.java. The answers should be outputted using the IO module as previously described.
Your assignment is to calculate averages given a list of input. First ask the users how many numbers (doubles) she will enter. Then prompt for that many numbers.
Then output the following values min,... | |
doc_15277 | g2d.transform(transform);
I want to find the coordinate on my screen where my new (0, 0) is. So if I drew a rectangle at those coordinates with an untransformed g2d and one with my transformed g2d they would overlap. So how can I get this point, do I have to do some math, does AffineTransform or Graphics2D have a buil... | |
doc_15278 |
What will be the formula for counting the total number of enrollments for each insurance plan example: The total number of enrollments for "AARP MedicareComplete SecureHorizons (HMO)" is 1818. I have tried =COUNTIFS(Jan!C2:C,"AARP MedicareComplete SecureHorizons Value (HMO)",Jan!G2:G,)
A: try:
=QUERY(Jan!B2:B; "selec... | |
doc_15279 | Private Sub cmdSearch_Click()
Dim Response As Long
Dim NotFound As Integer
Dim arr As Variant
Dim i As Long
Dim str1 As String, str2 As String, str3 As String
NotFound = 0
ActiveWorkbook.Sheets("Items").Activate
Response = Val("0" & Replace(txtItemNumber.Text, "-", ""))
If Res... | |
doc_15280 | When I comment out all the middleware, it works. But I don't want that, I want the connection to be only made when the user is logged in.
here's my socketClass.js
const session = require('express-session');
const { Server } = require("socket.io");
const passport = require('passport');
class SocketManager{
constru... | |
doc_15281 | here's my string: (as you can see it has linebreaks)
Webname: [webname]
Username: [username]
IP: [IP]
i need to read out the values inside the square brackets.
here's my code:
$pattern = '/\[(.|\n)+?\]/'; // i've used the same syntax for my asp projects, always worked
preg_match($pattern, $txt, $match... | |
doc_15282 | There seems to be some discussion on it here (where it says that I need to install OS X 10.9 SDK) https://github.com/Theano/Theano/issues/6645. I'm not sure how to do that (and the instruction is not clear to me). I also don't know if it's a legit thing to do and whether it will cause some problems down the road.
I mo... | |
doc_15283 | http://www.ee.columbia.edu/~dpwe/e6820/matlab/stft.m
and the lines:
else
win = w;
w = length(w);
end
Why w has assigned length(w) if w is not used anymore in code?
A: The third input to stft.m can either be a scalar containing the window size, or the window itself. Internally, the window is represented as win, th... | |
doc_15284 | JSFIDDLE
When trying to change to image its fine. After changing to image try to change the input file into a txt file. its alerting the correct error, but the input file is also changed.
$('body').on('change','.input-preview',function(e){
var ito = $(this);
var img = ito[0].files;
var errs = [];
fo... | |
doc_15285 |
*
*eth1: Which is a the default interface and is the bridge network between all containers from a service. (Managed by pipework, but I can't change anything in that level)
*eth0: Which is a regular docker0 interface and has access to everywhere except those on eth1.
And here is the default routing table:
Kernel I... | |
doc_15286 | For example...
Input:
1 2 3 4 -10 -15
Output:
30
Below is the code I have so far:
ArrayList<Integer> numbers = new ArrayList<Integer>();
//insert into array if > 0
int x = sc.nextInt();
if(x > 0){
numbers.add(x);
}
//square numbers array
for (int i = 0; i < numbers.size(); ++i) {
... | |
doc_15287 | The idea is to use the i/o ports---VGA, ethernet, speaker jacks, etc.---on the computer to talk directly to the sensors and actuators in the experimental setup. E.g. cut open one side of an ethernet cable (with the other end attached to the computer) and send each line to a different device. I knew a postdoc who did ... | |
doc_15288 | Stucture of priters.yml you can see bellow:
--- !Station
recipients:
- &first_phone ['Max']
- &second_phone ['Anna', 'Alisa']
obj:
- &first !!python/object:__main__.Nokia
model: Nokia_8800
recipients: *first_phone
- &second !!python/object:__main__.Apple
... | |
doc_15289 |
A: You can use something like this to escape your string and then embed the result in code.
http://www.freeformatter.com/java-dotnet-escape.html
| |
doc_15290 | bin_PROGRAMS = myBin
myBin_SOURCES = src/main.cpp
The generated makefile has this target:
.cpp.o:
# $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
# $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
source='$<' object='$@' libtool=no \
DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
$(CXXCOMPILE) -... | |
doc_15291 | What is the best practice to modify text-files without changing their encoding?
Background info:
I am a bit ashamed that I fail to do this. What I actually want to do is what any texteditor does: Open, modify and save a large number of text-based files, without accidently modifying more than I want to.
string s = Sys... | |
doc_15292 | ERROR:root:failed to read config file /home/ubuntu/.config/virtualenv/virtualenv.ini because PermissionError(13, 'Permission denied')
How to properly install and configure virtualenv?
A: First check if Python3 is installed
apt list installed | grep -i python3
After that
python3 -m venv my_app/env
| |
doc_15293 |
A: You CAN build your own front-end chat application and pass inputs and outputs between Lex and the user yourself using PostText or PostContent. You would also have to parse the Lex response JSON into a user friendly output as well.
You CANNOT, however, if you are trying to "host" your entire Lex bot within your appl... | |
doc_15294 | But MATLAB cannot open this file.
Any suggestions?
| |
doc_15295 | I'm trying to attach to email the uploaded documents but can't get it to work.
My send email function expects a list of attachments and a list of attachments names as follow:
public class Email
{
public string To { get; set; }
public string From { get; set; }
public string Body { get; set; }
public stri... | |
doc_15296 | AJAX is updating query results on the HTML page, via a PHP script that queries a MySQL Database.
Everything is working fine, except when I use Internet Explorer 8.0 .
There are several php scripts, which allow for the data to be ordered according to certain criteria, and for testing purposes I have attached the mktime ... | |
doc_15297 | Now I would like to add functionality that increase the counter not only when I leave the box/square, BUT ALSO click the left mouse button outside the box/square. So the counter will be increasing only when the mouse leave the box/square and also click outside of the box/square.
var counter = 0;
function myLeaveF... | |
doc_15298 | This is my cc
<cc:interface>
<cc:attribute name="value" />
<cc:attribute name="bean" />
<cc:attribute name="myAction" />
<cc:attribute name="property" />
</cc:interface>
<cc:implementation>
<rich:dataTable value="#{cc.attrs.value}" var="galleryFile">
...
<a4j:commandLink exe... | |
doc_15299 | hEllo’ and ‘pOle’ both contain exactly 1 e and exactly 1 o. The order of the vowels and the case from the original input word does not matter.
Imagine the following example:
hEllo moose
pOle cccttt.ggg
We would end up with the following output:
:1
eo:2
eoo:1
The map code that I have so far is:
import sys
import re
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.