id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_3500 | require(['$api/models','$api/library#Library'], function(models,Library) {
console.log("country=" + models.session.country);
});
It is 'undefined'
What am I doing wrong?
I use api :
"api": "1.38.0"
"views": "1.18.1"
A: With very few exceptions, you need to load properties for them to be available on your Spot... | |
doc_3501 | authContext.AcquireTokenAsync("https://database.windows.net/", certCred).Result;
I believe this is causing problems because the following steps result in the access token request timing out -
1). Start the application, request an access token in thread #1. Success
2). Increase my computer's time by one day, request an... | |
doc_3502 | cudaEventRecord(start, 0);
/* creates 1D FFT plan */
cufftPlan1d(&plan, NX, CUFFT_C2C, BATCH);
/* executes FFT processes */
cufftExecC2C(plan, devPtr, devPtr, CUFFT_FORWARD);
cudaEventRecord(stop, 0);
cudaEventSynchronize(stop);
measures both the time required by the cuFFT to create a plan and t... | |
doc_3503 | export async function main (event, context, callback) {
try {
let user, User
User = models.User
console.log('before insert',new Date())
user = await User.create({
name: event.request.userAttributes.name,
lastName: event.request.userAttributes.family_na... | |
doc_3504 |
*
*Per Call
*Per Session
*Singleton
I know that in the case of option 1 the instance will be disposed of as soon as the service completes the call.
My question is what about the other 2 options? When and how are service instances that were created per session or as singleton disposed?
| |
doc_3505 | select tos.source_system_order_id , tos.TOS_Date, tos.TOS_Final_Charge_Amt_Sum , oes.OES_Final_Charge_Amt_Sum
first query:
SELECT tos1.source_system_order_id,
tos1.tos_date,
SUM(tos1.tos_final_charge_amt_sum)
FROM (SELECT source_system_order_id,
source_system_cd,
To_... | |
doc_3506 | The code is
rectangle( frameSequence, Point( x-20, y+20), Point( x+20, y-20), Scalar( 0, 55, 255 ), +1, 4 );
A: frameSequence is already a type of cv::mat (presumably) that means it is already "saved" in terms of stored within your program.
If you want to "save" this to an external file (.jpg etc) then you will need... | |
doc_3507 | <head>
<meta http-equiv="Refresh" content="s" />
</head>
But it doesn't look like a good choice so I though that I can use javascript and read data from the file. Unfortunately this function works only once no matter what I change in .txt file and refresh the web, output is still the same (looks like it save previo... | |
doc_3508 | This project is using docker which python:3.9 image. I have got this error since 17,Aug.
2021-10-13 17:22:29.654 JSTGET504717 B899.9 sGoogleStackdriverMonitoring-UptimeChecks(https://cloud.google.com/monitoring) https://xxxx/
The request has been terminated because it has reached the maximum request timeout. To change ... | |
doc_3509 | <IfModule rewrite_module>
RewriteEngine On
RewriteRule ^(.*)$ /Symfony/web/app_dev.php [QSA,L]
</IfModule>
When I enter http://localhost/hello/testingonly, what will it be redirected to?
EDIT:
I am currently trying to use Symfony Framework and trying out the online tutorials.
http://localhost/Symfony/web/app_dev.p... | |
doc_3510 | std::unique_ptr<std::vector<pqxx::result::tuple>>
filteredRowsPtr = getFilteredAssignmentRowsPtr(unfilteredRows);
std::vector<pqxx::result::tuple> filteredRows = *filteredRowsPtr;
for(int i = 0; i < filteredRows.size(); i++)
{
returnMap[occurenceStudentIdStr] = returnMap[occurenceStudentIdStr] + 1;
pqxx::res... | |
doc_3511 | In theory it must be called only one time if i'm pressing the key without doing onKeyUp, but it is getting called a lot of times until I do keyUp.
What is wrong? this is the code:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
int factor = GameState.getInstance().getSpaces... | |
doc_3512 | package org.apache.camel.processor;
import org.apache.camel.AsyncCallback;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.processor.loadbalancer.LoadBalancerSupport;... | |
doc_3513 | 40+ views, and only one is able to help, isn't that question worth the upvote ? ;)
/edit
again I've some issues with socket programming in c#.
I've set up a little server with selfmade console ( richTextBox ) and it's listening for multiple connections.
well everything works fine except that if i close one of the conne... | |
doc_3514 | I tried using OneDrive API, went through http://msdn.microsoft.com/en-us/library/dn631819.aspx, also http://isdk.dev.live.com/dev/isdk/Default.aspx but found nothing related to it.
Or maybe there is any other, undocumented way? Any ideas?
A: Unfortunately, we don't expose recycle bin functionality through the OneDrive... | |
doc_3515 | UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
[alertView show];
UILabel *lbladdblock=[[UILabel alloc] initWithFrame:CGRectMake(100,25,100,30)];
[alertView addSubview:lbladdblockname];
A: 1.include your .h file : UIAlertViewDeleg... | |
doc_3516 | To give a concrete example: in our system one person, represented by an email address, can have multiple user ids that they may wish to operate under. Assume my email address is tregan@domain.com, and I have 3 user ids to choose from: treganCat, treganDog, treganMouse. When I hit a Controller action that is decorated ... | |
doc_3517 | (c) 2019 Microsoft Corporation. All rights reserved.
(base) C:\Users\tanis>conda activate tf_gpu
C:\Users\tanis>python C:\Users\tanis\anaconda3\envs\tf_gpu\etc\keras\load_config.py 1>temp.txt
C:\Users\tanis>set /p KERAS_BACKEND= 0<temp.txt
C:\Users\tanis>del temp.txt
C:\Users\tanis>python -c "import keras" 1>nul 2>&1... | |
doc_3518 | Here is the code:
expect(chrome.tabs.update).toHaveBeenCalledAfter(chrome.cookies.set);
But Typescript throws the following error:
error TS2345: Argument of type 'MockedFunction<(details: SetDetails,
callback?: (cookie: Cookie) => void) => void>' is not assignable to
parameter of type 'Mock<any, any>'.
Converting to... | |
doc_3519 |
Entity Models.Servers' has a property
'Columns' with an unsupported type
When I created a simple ASP.NET application with VS2008, added the reference to SubSonic, created the connection string, and dragged the Active Record files over into the project everything went well. I could compile. Then I added a Domain Ser... | |
doc_3520 | ||
doc_3521 |
function exe_map(){
alert(vid);
}
var timer = setTimeout(exe_map,10000);
}
this is my javascript code. i want alert(vid) to execute every 10000 milisec without using setIntrval and inner map_vehicle function.
thank you.
A:
i want alert(vid) execute every 10000 milisec without using
setIntrval... | |
doc_3522 | (note: func and func2 is not typo)
struct S
{
void func2() {}
};
class O
{
public:
inline S* operator->() const;
private:
S* ses;
};
inline S* O::operator->() const
{
return ses;
}
int main()
{
O object;
object->func();
return 0;
}
there is a compile error reported:
D:\code>g++ operatorp... | |
doc_3523 | .h file:
@interface Menu : NSObject
@property (strong) Forme *forme;
@property (strong) NSString *imageButtonName;
@property (strong) UIButton *button;
- (id) initWithClef:(int)clef hauteur:(int)hauteur largeur:(int)largeur posY:(int)posY posX:(int)posX alpha:(float)alpha imageButtonName:(NSString*)imageButtonName bu... | |
doc_3524 | I have an "HTML Form" with some fields which the user needs to fill out, there are a lot of input elements so I need a scroll bar for that. At the end of the form I have a submit button, when the user hits submit I want the complete form to scroll up and then a new div should show up which has all of the information th... | |
doc_3525 | In ViewModel:
...
private val _eventDataState = MutableStateFlow<EventDataState>(EventDataState.Loading)
val eventDataState: StateFlow<EventDataState> = _eventDataState
...
In Fragment:
...
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
... | |
doc_3526 | I thought this would output the last 8 characters but the output seems to be blank
foreach($line in $Texfile)
{
$line[-8..-1]-join ''
}
A: There's any number of ways to do this, but I opted to pipe Get-Content to ForEach-Object.
Get-Content -Path <Path\to\file.txt> | ForEach-Object {
$_.Substring($_.Length - 8)... | |
doc_3527 | Firebase Database
The user can then add more posts, of which are saved to the database then displayed on a ListView.
My Code
final DatabaseReference room = FirebaseDatabase.getInstance().getReference().getRoot();
chatRoomAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, chatList);
lvChatR... | |
doc_3528 | order
o1
o2
o3
I have orderItem collection :
OrderItem orderId
oitem1 o1
oitem2 o1
oitem3 o1
oitem4 o2
oitem5 o3
now I am selecting orders with line, but how do I skip/avoid/ignore the child collection from LINQ
I don't want orderItems with my orders .
| |
doc_3529 | And I've never used cmd other than to check my ip.
My problem is I don't know where to save the files, and how to run them from cmd with node. The tutorials I've found seem to assume I should know all this without explaining it, and jumps straight to the code.
So, how do I actually run something in node? This is what I... | |
doc_3530 | now the images that are put on this field should be able to be dragged around everywhere in the div field and I cant quite figure out how to do this while also making it so you can put more images in the div.
const insertImage = (line) => {
var container = document.getElementById("field");
... | |
doc_3531 | for i in range(1000):
df2=df.sample(n=size_of_N, replace=False,random_state=i)
treatment_group=df2.iloc[:size_of_n]
control_group=df2.iloc[size_of_n:]
significance_list=[]
for column in list_of_columns:
significance=mannwhitneyu(treatment_group[column],
control_group[column])
signi... | |
doc_3532 | A simple example like I use libtorch, the torch/torch.h header file contains all headers the package needed, and don't need specifying any other related header. Just like the pictures below:
The completion works well, but after I use space select the completion, the unwanted header torch/nn/module.h> was added automat... | |
doc_3533 | (TF31002: Unable to connect to this Team Foundation Server).
The Server's IP is working, so the server is online, I've tried things such as turning off Firewall, starting VS as Administrator and it doesn't seem to work.
It's the first time I'm working with TFS, am I missing something?
Thanks in advance.
A: Try connect... | |
doc_3534 | captcha.php
<?php
session_start();
$string = '';
for ($i = 0; $i < 5; $i++) {
$string .= chr(rand(97, 122));
}
$_SESSION['random_number'] = $string;
$dir = 'fonts/';
$image = imagecreatetruecolor(165, 50);
// random number 1 or 2
$num = rand(1,2);
if($num==1)
{
$font = "PT_SANS-BOLD_1.TTF"; // font style
... | |
doc_3535 | anywhere in video then popups open automatic or how to click on X icon to close banner ad.
.iframe{
width: 100%;
float: left;
margin-top: 5px;
}
<div class="iframe">
<iframe width="1000" height="600" src="https://www.youtube.com/embed/Sb_60g3u1LU" frameborder="0" gesture="media" allow="encrypted-media"... | |
doc_3536 | I was recently introduced to localstack and started thinking maybe a local S3 bucket would serve for this. I have a configuration where builds (yarn build) are automatically published to an s3 bucket running on localstack. But when I try to load the root config index.html from the bucket I get the following JS error:
... | |
doc_3537 | Does this make sense?
Sorry I can't provide any code because I dont know where to start.
A: in iOS6, a new UITableViewDelegate function was introduced that does just this:
- (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
You can use th... | |
doc_3538 | Here is my template:
{% extends 'base/formbase.html' %}
{% block title %}Login{% endblock title %}
{% block menuid %}menu-login{% endblock menuid %}
{% block submitname %}Login{% endblock submitname %}
{% block extra %}
<div class="alert alert-danger">
<a href="{% url 'password_reset' %}"> Forgot Your Password? ... | |
doc_3539 | how to avoid it? Or any other way to get har file from pcap file which containing https?
Thank you.
A: HTTPS is HTTP inside a TLS tunnel. If you look at the pcap all you can see is the encrypted traffic inside the TLS tunnel but you cannot extract the HTTP requests from it to create the HAR because you would need the... | |
doc_3540 | func createPhotoURL() -> URL {
let fileName = "tempImage_wb.jpg"
let documentsDirectories = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
let documentDirectory = documentsDirectories.first!
let pdfPageURL = documentDirectory.appendingPathComponent("\(fileName)")
... | |
doc_3541 | When I enter a codespace, either on the web or from VSCode the dotfiles have no effect. No error message either.
Here's what I've done
*
*Created a public dotfiles repo on GitHub, containing .zshrc and setup.sh (contents below). Added the files directly via the "add file" on github.com, then copy/paste.
*Enabled a... | |
doc_3542 | foreach (var propertyInfo in this.GetType().GetProperties()
.Where(xx => xx.GetCustomAttributes(typeof(SearchMeAttribute), false).Any()))
{
if (propertyInfo.PropertyType.GetInterfaces().Any(xx => xx == typeof(IAmSearchable)))
{
// the following doesn't work, though I hoped it would
return ((... | |
doc_3543 | Wordpress as it does in HTML. The CSS is correct (did allot of troubleshooting to root that out). This is the HTML:
<div class="navbar-wrapper">
<div class="navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-tog... | |
doc_3544 |
Average/Maximum Read/Write I/O Waits in ms per database file
for sliding time window.
That is: 4 numbers per database file: avg read wait, max read wait, avg write wait, max write wait. All in ms, and all for some sane (or even better configurable) sliding time window.
How can I do that?
PS: I have the VIEW SERVER ... | |
doc_3545 | case class CacheEntry(source: String, destination: String, hops: Int)
class CacheTable(tag: Tag) extends Table[CacheEntry](tag, "cache") {
def source = column[String]("source")
def destination = column[String]("dest")
def hops = column[Int]("hops")
def timestamp = column[LocalDateTime]("... | |
doc_3546 | import folium
map = folium.Map(location=[25.747608, 89.268044])
map.save("Map2.html")
When i add two more parameters like (tiles="Mapbox Bright") and (zoom_start=6) my code looks like this and the map does not work :
import folium
map = folium.Map(location=[25.747608, 89.268044], zoom_start=6, tiles="Mapbox Bright")
m... | |
doc_3547 | Ideally I'd like to call it direct from RPG? is that possible? or do I have to create a java program to run on the iSeries and use RMI or something to call the remote java program.
We aren't keen on calling the extenral webservice direct as it means opening path from otherside world direct to iSeries.
I'm not an RPG ... | |
doc_3548 | Input :
["Anne", "Jane", "John", "Jane", "Ivan", "Peter", "Anne"]
Output:
["Anne","Jane","John","Ivan","Peter"]
It seems no langlib function to achieve this directly.
How to remove duplicate strings in an array using Ballerina?
A: Here are two ways of removing duplicates from a string array.
Method 1: Using indexOf ... | |
doc_3549 | IronPython: https://ironpython.codeplex.com/releases/view/62475
IronLab: https://code.google.com/p/ironlab/downloads/detail?name=ironlab%201.1.2.0.zip&can=2&q=
When I run the 3 getting started commands that IronLab recommends
import numpy as np
import ironplot as ip
ip.plot(np.sin(np.arange(0, 10, 0.1)))
via IronPyth... | |
doc_3550 | The configuration is :
checkstyle {
configFile = new File("${project.projectDir}/config/checkstyle/sun_checks.xml")
showViolations = false
}
checkstyleMain {
doLast{
println("checkstyle main")
project.ext.checkType = "main"
tasks.checkstyleReport.execute()
}
}
checkstyleTest ... | |
doc_3551 |
var len = 5
var wid = 5
var g = "aaaaa" +
"aaaaa" +
"aaaaa" +
"aaaaa" +
"aaaaa";
for (var x = 0; x < len; x++) {
for (var y = 0; y < wid; y++) {
var yC = x % len
var xC = Math.floor(x / len)
console.log(x + y * xC)
}
}
this code is just a mockup of what im trying to do. current... | |
doc_3552 | The curl statement looks like this:
curl -X PUT "http://localhost:8080/EAIConfig/ri/media" --data-binary img019.png
And this is my resource implementation:
@Override
protected Representation put(Representation entity) throws ResourceException {
try {
InputStream in = entity.getStream();
OutputStrea... | |
doc_3553 | How can I store this in my database?
Let’s say the user has chosen to pay using his IBAN, assuming this picture is the current database, do I fill the fields associated with the IBAN option and set the others to Null? Or is there a more professional way to store the data without having these Null values?
UPDATE
I foun... | |
doc_3554 | This is my Java code:
@ManagedBean
public abstract class FooController {
protected <type> prop;
public void setProp(<type> prop) {
this.prop = prop;
}
public <type> getProp() {
return this.prop;
}
}
@ManagedBean
public class Foo1Controller extends FooController {
private <othe... | |
doc_3555 | I've been doing it manually for a while, pulling an IP address, then using a web based whois utility to find the range it's in, then manually adding the range to the blocked IP list for the site. It's a pain.
Now I'm parsing the logfile to find the IP address of suspicious entry attempts with a Perl script, and I want ... | |
doc_3556 |
A: I have solved the problem. I ran a troubleshooting through the control panel on my wifi and it showed that the windows was not able to identify the proxy settings, so I went to the internet explorer and in it's advanced settings unchecked the box which said Use Proxy Server. My Android studio is working fine now. T... | |
doc_3557 | I write this query:
SELECT *
FROM OPENROWSET('MSDASQL', 'Driver=Microsoft Visual FoxPro Driver;
SourceDB=D:\DB\;
SourceType=DBF',
'SELECT * FROM MyTable')
Also I installed 'VFPOLEDB' provider to run the query. But it does not run and I got this error:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSDASQ... | |
doc_3558 | Sheets("Sheet1").PivotTables("PivotTable" & pivot_counter).PivotFields( _
"[year].[year].[year]").VisibleItemList = Array("")
My questions are:
1- Why do we use PivotFields("[year].[year].[year]") when using VisibleItemList? Why do we have to repeat it and what's the meaning of it, couldn't anything about it anywhere.... | |
doc_3559 | var Employees = db.EmployeeMasterAs
.Where(x => x.SystemCode == SysCode && x.EmployeeCode == EmpCode)
.ToList();
the above query works fine if all values in the where clause are provided. If EmpCode is supplied a value, it returns the corresponding data, which works fine. However, I've no idea about how to return all ... | |
doc_3560 | I have installed postgresql, psycopg2 and Django.
my code :
settings.py :
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.path.join(BASE_DIR, 'db.psycopg3'),
'USER': 'root',
'PASSWORD': 'root',
'HOST': '127.0.0.1',
'PORT': '5... | |
doc_3561 | private void uploadVideoTwo(String filePath){
AsyncHttpClient client = new AsyncHttpClient();
File myFile = new File(filePath);
RequestParams params = new RequestParams();
try {
params.put("file", myFile);
} catch (FileNotFoundException e) {
Log.e(TA... | |
doc_3562 |
data
SYMBOL TIMESTAMP STAMP PRICE SIZE EXCHANGE BID BIDEX BIDSIZE ASK ASKEX ASKSIZE
1 SPXU 1330938005 1330938005000000 NA NA 9.99 PSE 5 10.10 PSE 6
2 SPXU 1330938221 1330938221000000 NA NA 9.99 PSE 5 10.19 PSE 1
3 ... | |
doc_3563 | cat <<EOF >> .bashrc
export JAVA_HOME=/opt/jdk
export GRADLE_HOME=/mnt/c/Zi/gradle
export GRADLE_OPTS="-Xmx2g -Xms512m -XX:MaxMetaspaceSize=384m"
export GRADLE_USER_HOME=/mnt/c/Z
export PATH="${JAVA_HOME}/bin:$PATH"
After this i get a warning:
-bash: warning: here-document at line 21 delimited by end-of-file (wanted `... | |
doc_3564 | This is my code
public class PlayThisVideo extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
mediaController=new MediaController(PlayThisVideo.this);
Uri videoURI=Uri.parse("android.resource://com.VideoAppProject/"+R.raw.baa_baaa_blacksheep);
videovi... | |
doc_3565 | I'm creating an R package. All dependencies are installed. The source code is (as far as I can tell) correctly annotated for roxygen2.
Within the package root, the following commands are successful:
Documenting the package works:
> devtools::document()
Building the package works:
> devtools::build()
Installing the p... | |
doc_3566 | try_files $uri/index.html $uri @app;
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app
}
When I create a file at foo/bar/baz.txt it works but if 'bar' is a symlink, it stops working. Anyone know how to solve... | |
doc_3567 | I'm using Eclipse as my IDE and export a runnable jar through it. Everything's worked before except now that I have a ComboBox and load it with an array (FX.Collections-thing). I run it on my Windows 7 computer where I do my development, then I move it over to my Windows 10 computer where I test to make sure things run... | |
doc_3568 | I followed 'ac3-state-management-examples' for solve this problem, but still couldn't find any problem.
This is my client-side code.
export const DELETE_ITEM_IN_CART = gql`
mutation DeleteItemInCart($cartItemId: String!) {
DeleteItemInCart(cartItemId: $cartItemId)
}
`;
export function useDeleteItemInCart() {
... | |
doc_3569 | Flat file 1 has 10 records, Flat file 2 has 5 records. I want 4 different targets :
*
*10 records from file 1
*5 records from file 2
*15 records from both the files
*50 records (like cross join)
A: I am attaching a hand-drawn picture.
*
*10 records from file 1 - Straight from SQ 1 to target 1 5 records
*5 fr... | |
doc_3570 | I put the following code in the overridden touchesBegan of the MainMenu Scene to present the GameScene:
let reveal = SKTransition.fade(withDuration: 0.5)
let NextScene = GameScene(size: self.size)
NextScene.scaleMode = SKSceneScaleMode.aspectFill
self.view?.presentScene(NextScene, transition:reveal)
But i... | |
doc_3571 |
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="{{ STATIC_URL }}/static/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox -->
<link rel="stylesheet" href="{{ STATIC_URL }}/static/fancybox/source/jquery.fancybox.css?v=2.1.7" type="text/css" media="screen" ... | |
doc_3572 | from django.db import models
class Topping(models.Model):
# ...
price = models.IntegerField()
class Pizza(models.Model):
# ...
toppings = models.ManyToManyField(Topping)
I need to get following query:
my_query = Pizza.objects.all().annotate(
topping_with_min_price="get id ... | |
doc_3573 | Possible Duplicate:
Update a list of a list of elements in a single list?
I have a list of values as shown below:
[ ["Off","Off","Off"],
["Off","Off","Off"],
["Off","Off","Off"] ]
and would like to return the following:
[ ["Off","Off","Off"],
["Off",*"On"*,"Off"],
["Off","Off","Off"] ]
I have the following ... | |
doc_3574 | class IExample { ~IExample(); //pure virtual methods ...};
a class inheriting the interface like
class CExample : public IExample { protected: CExample(); //implementation of pure virtual methods ... };
and a global function to create object of this class -
createExample( IExample *& obj ) { obj = new CExample(); } ;
... | |
doc_3575 |
.item:not(:last-child) {
margin-bottom: 12px;
}
<fieldset class="form-group">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<span class="error-messages"></span>
<span class="help-block"></span>
</fiel... | |
doc_3576 | I want to write a new function:
def some_plot(parameter):
array = []
for n in range(100):
array.append(F(parameter = n))
# make some plot using array
And then I want to make some plot by calling some_plot('par1') (or some_plot(par1)) which both split errors.
Is it possible to pass the name of the p... | |
doc_3577 | update card_order set valid_until = to_date('23/12/17,Σαβ 11:00πμ', 'YYYY-MM-DD,Day HH:MIa');
But I get the error:
ERROR: invalid value "Σαβ 11" for "Day"
DETAIL: The given value did not match any of the allowed values for this field.
I have setup my db with
*
*Encoding UTF8
*Collation Greek_Greece.1253
... | |
doc_3578 | #include <dos.h>
#include <conio.h>
void interrupt (*oldTimer)();
void interrupt (*oldKey)();
void interrupt newTimer();
void interrupt newKey();
char far *scr = (char far*) 0xB8000000;
int i, t=0, m=0;
char charscr[4000];
void main()
{
oldTimer=getvect(8);
oldKey=getvect(9);
setvect(8,newTimer);
setvect(9,newKey... | |
doc_3579 | I have a async web api which updates certain fields of a mongo document. It first retrieves the document updates the fields and then saves the document asynchronously to the database. How do I ensure that if the api is called multiple times in succession, one call will not overwrite the results of a previous call ?
pu... | |
doc_3580 | <%= link_to "Link", {:controller => "home", :action => "index", :link=> "www.google.com" }%>
when i press the link i continue to the following action
> def index
> @link = params[:link]
> if @link.present?
> return redirect_to @link
> end
> end
but the action don't redirect me to www.google.com ju... | |
doc_3581 | var filename = "settings.dat";
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + filename, function(f){
f.file(function(file){
var reader = new FileReader();
reader.onloadend = function(){
var data = this.result;
... | |
doc_3582 | If I have two columns, and I want to add them together and see if the result is more than something else, how would I do this?
What I have so far:
SELECT COUNT(id)
FROM routes
WHERE destination = :airport
AND end_time+turn_around > :start_time
AND end_time < :start_time
| |
doc_3583 | Thanks for any help.
A: It depends where you have your grails libraries. If they are part of another application WAR file you will not have issues as you can pack your own libraries in your application WAR. Each application will use it's own copy of grail libraries.
But if you have your grial libraries as a part of sy... | |
doc_3584 | What is the Gradle artifact dependency graph command?
but with a narrower scope. I'm wondering about functionality that Maven has for analyzing dependencies, and whether or not Gradle includes something similar. Specifically, Maven can scan your source code and then compare that to your declared dependencies, and det... | |
doc_3585 | textView = [[UITextView alloc] initWithFrame: CGRectMake(0, 0, 513, 1024)];
It doesn't display any text anymore... 512 works, any size below that too, but anything greater than 512 and it stops displaying any text. The full code:
- (void)loadView {
self.navigationItem.hidesBackButton = YES;
self.view = [[UIVi... | |
doc_3586 | I'm learning HTML, CSS, and JS, and I decided to try to make a digital flipbook: a simple animation that would play (ie, load frame after frame) on the user's scroll.
I figured I would add all the images to the HTML and then use CSS to "stack them" in the same position, then use JS or jQuery to fade one into the next ... | |
doc_3587 | bool OSXSpecifics::loadPNGOSX(const char *fileName, int &outWidth, int &outHeight, GLuint *outTexture) {
NSImage *image = [[NSImage alloc] initWithContentsOfFile:[NSString stringWithUTF8String: fileName]];
NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithData:[image TIFFRepresentation]];
NSArray* imageReps... | |
doc_3588 | this is my text file
INFO http-bio-80-exec-1 root - Received data;863071018134228;12.964624;77.523682;NE;23.22376;3.82;0;2013-01-06^08:41:00;
INFO http-bio-80-exec-1 root - RxTracker; IMEINO is 863071018134228
INFO http-bio-80-exec-2 root - RxTracker Invoked. Reading Parameters
INFO http-bio-80-exec-2 root - Received... | |
doc_3589 | When I receive multiple emails at the same time, it gives me a pathway error.
How do I fix this error so I don't miss emails?
Sub LSPrint(Item As Outlook.MailItem)
On Error GoTo OError
Dim oFS As FileSystemObject
Dim sTempFolder As String
Set oFS = New FileSystemObject
sTempFolder = oFS.GetSpecial... | |
doc_3590 | 0x21 0x32 0xCC 0x00 0x3A 0x98 0x02 0x12 0x03 0x21 0x33 0x01 0xC2
I initially believed that the first byte was the Magic Number and the second byte was the Key. So wouldn't that make the numbers 0xCC 0x00 0x3A 0x98 0x02 0x12 0x03 0x21 0x33 0x01 0xC2 the value that we're reading from the microcontroller which we just co... | |
doc_3591 | If I create a non TF-managed instance in a VPC (that I did create with terraform) and then do a terraform destroy TF hangs waiting.
I can then go to AWS console and manually delete the VPC and get a useful response from AWS as to why it cant be deleted and a list of the offending resources I can manually delete.
Is the... | |
doc_3592 | Can it be done?
My XML
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
a... | |
doc_3593 | I asked this question earlier this year, and I have tried using the upvoted answer to make a bucket policy, which is precisely as shown in that answer, as:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"POST",
"GET",
"PUT",
"DE... | |
doc_3594 | However, I am encountering a problem when I try to print the name of the current user above the table in the web view.
Does anyone know how to do this in MVC 5 using the razor view?
This is the code I am using to get the current user from the system:
public string getUserName()
{
displayName = System.Security.Princ... | |
doc_3595 | EDIT: I really mean String.hashCode() rather than the more general Object.hashCode(), which of course can be overridden.
A: No. From http://tecfa.unige.ch/guides/java/langspec-1.0/javalang.doc1.html:
The general contract of hashCode is as
follows:
*
*Whenever it is invoked on the same object more than once... | |
doc_3596 | for (var i = 0; i <= intNum; i++) {
getData1(url1, true).then(function() {
getData2(url2, true).then(function() {
fnc1(i);
getData3(url3, true).then(function() {
getData4(url4, true).then(function() {
fnc2(i);
})
})
... | |
doc_3597 | The queue is consumed by the application with other deferreds. The problem is I want to consume the queue elements not by order of addition but give higher priority to some elements based on the element field content.
My current (probably faulty) idea was to have a generator which executes a sql select which produces a... | |
doc_3598 | I have a .NET application which uses threads excessively. At the time of exit the process does not kill itself. Is there is any tool that can show what is causing the problem? although I have checked thoroughly but was unable to find the problem.
Abdul Khaliq
A: See: Why doesn't my process terminate even after main th... | |
doc_3599 | It's a generic implementation of System.Configuration.ConfigurationElementCollection
It's stored in our solutions', Project.Utility.dll but I've defined it as being part of the System.Configuration namespace
namespace System.Configuration
{
[ConfigurationCollection(typeof(ConfigurationElement))]
public class Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.