id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23508500 |
*
*the first column represents the sale number (1-30)
*the second column shows the item which must be selected at random
*the third column shows the corresponding price for said item
How can I achieve this given that the item is selected at random?
I had thought of using a switch statement but that this might g... | |
doc_23508501 | I wanted the element (when clicked) to expand for 6seconds from its original position but notice that when you click the red card (or any card), it doesn't start expanding from the originals position it used to be, but rather from the middle, I assume that its because transition of 6s to top and left is not being appli... | |
doc_23508502 | template <typename T,typename K>
class Ring
{
typedef struct Node
{
T data;
K key;
Node * next;
Node * prev;
};
Node * head;
public:
class iterator
{
private:
Node * ptr;
friend class Ring;
}
And I want to get by iterator class to Node*ptr... | |
doc_23508503 |
A: Maybe this answers your question: Jetty webserver security
| |
doc_23508504 | $page['footer'][] = array(
'#weight' => 10,
'#theme' => 'special_theme',
'#theme_wrappers' => array('block'),
'#region' => 'footer',
);
The template is defined at hook_theme. The block is inserted into the footer region as I expected, but I need to define its block id or delta. Drupal automa... | |
doc_23508505 |
<div id="one">Heading one</div>
<div id="two">Heading two</div>
<div id="three">Heading three</div>
<div id="four">Heading four</div>
:
:
</div>
I want to select the divs with respect to their DOM positions.
For Eg: I want to select all divs after div with id = two ... | |
doc_23508506 | My question is about this section:
Private Sub ComboBox1_Change()
If ComboBox1.Text = Sheet1.Cells(3, 1) Then
oHousing.Text = Sheet1.Cells(3, 2)
oMeal.Text = Sheet1.Cells(3, 3)
End If
End Sub
Here is what the pseudocode would do:
*
*User selects item in combobox
*combobox will search A1:A9... | |
doc_23508507 |
.zip -> .gz -> .txt(data needs to be parsed)
My second choice it unzip and parse the .txt file data. Any thoughts?
A: You can unzip the file and write it to an io.BytesIO object, which is essentially an in memory file.
https://docs.python.org/2/library/io.html#buffered-streams
You can then use any function that wor... | |
doc_23508508 | However, when I'm running, I get an error and the program stops
error:
QObject::setParent: Cannot set parent, new parent is in a different thread
this is the code:
from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox
from PyQt5 import QtCore
from PyQt5 import uic
import threading
class TheThread(thread... | |
doc_23508509 | I have a list of lists of anything that extends a list of any type of object:
List<List<? extends List<?>>> veryNestedList;
I was thinking whether I the first nested List could actually accept any implementation of ArrayList.
In my thinking:
List<? extends ArrayList<?>>
should be subType of:
List<? extends List<?>>
... | |
doc_23508510 | $(document).ready(function() {
var latLon = {
lat: 38.736946,
lng: -9.142685
};
var numero = 10;
var clicked = 1;
$("#sq").click(function() {
clicked = 1;
});
$("#lg-sq").click(function() {
clicked = 2;
});
$("#thumb").click(function() {
click... | |
doc_23508511 | SELECT DISTINCT *
FROM product p
INNER JOIN product_to_vendor pv
ON pv.product_id = p.product_id
WHERE pv.vendor_id = @vendorId AND p.site_id = @siteId AND
IF (@productStatus < 4)
BEGIN
p.[rank] = @productStatus
END
thanks
A: SELECT DISTINCT *
FROM product p... | |
doc_23508512 | I have the following example code for a question.
> exdata <- data.frame(a = rep(1:4, each = 3),
+ b = c(1, 1, 2, 4, 5, 3, 3, 2, 3, 9, 9, 9))
> exdata
a b
1 1 1
2 1 1
3 1 2
4 2 4
5 2 5
6 2 3
7 3 3
8 3 2
9 3 3
10 4 9
11 4 9
12 4 9
> exdata[duplicated(exdata), ]
a b
2 1 1
9 3 3
11 4... | |
doc_23508513 | Thx
A: This is an old question but it just popped up on my radar because it was modified today to have the wai-aria tag.
This problem was a real bug in iOS VoiceOver. See https://bugs.webkit.org/show_bug.cgi?id=162578, but it was subsequently fixed in a couple .dot versions later. It's working fine today with 12.1.4... | |
doc_23508514 | int factorial(int number) {
int temp;
if(number <= 1) return 1;
temp = number * __FUNCTION__(number - 1);
return temp;
}
It gives:
error: '__FUNCTION__' cannot be used as a function
The idea is using this constant instead of function name so if I change the name of the function it wouldn't be needed to look i... | |
doc_23508515 | I thought of using assign as below, But size of b1 is reduced to 7(to size of a1) after b1.assign(). How can I keep the b1 size 20 (fixed size) even after assign().
Any suggestions, I am using memcpy() now.
std::vector<int> a1{1,2,3,4,5,6,7};
std::vector<int> a2{ 10,11,12,13,14,15,16,17 };
std::vector<int> b1(20);
b1.... | |
doc_23508516 | <td><label for="startClientFromWebEnabled">Client Launch From Web:</label></td>
<td><input type="checkbox" id="startClientFromWebEnabled" name="startClientFromWebEnabled" data-bind="checked: StartClientFromWebEnabled, enable: IsEditable" onchange="startClientFromWebToggleRequiredAttribute()" /></td>
How can I prevent ... | |
doc_23508517 | They give this code in obj c, but my app is in swift and this looks like gibberish to me:
- (void)applicationDidBecomeActive:(UIApplication *)application {
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]){ // iOS 8 (User notifications)
[application registerUserNotificat... | |
doc_23508518 | Eg. I have an app with 3 menu options, 1 and 2 do certain tasks as part of this parent app, menu option 3 launches another app that's installed on the phone. I'm not sure if this is possible?
A: No you can not do that. Besides the documented URL handlers, there's no way to communicate with/launch another app.
This is ... | |
doc_23508519 | For example.
From:
This is a very large sentence.
To:
This is a ve...
It may be done using PHP's wordwrap on server side but at that time it is difficult to get the rendered size, so is there a better, standard way to do it on client side using JavaScript, HTML or CSS ?
Here I have included a picture just in case you... | |
doc_23508520 | This is what comes into the serial port, after I send a request for Position info. - Other times it may be Velocity I am trying to read. Which would be anywhere from 100 to 33000.
Here is what I am trying to read:
Hex Ascii
FF 2F 30 60 33 30 30 30 30 03 ÿ/0`30000.
Sometimes this:... | |
doc_23508521 | ...
respond_to :json
def show
@post = Post.find(params[:id])
respond_with @post
end
...
So elegant, but back to the real world...Our views in the main site have some amount of conditional logic for showing copy/messages that the consumers of the API want access to. It seems like a reasonable requirement, they don... | |
doc_23508522 | Currently, my image looks like this:
But I would like it to be like this:
As shown, the whole color settings look darker and blur.
I've tried many cmap settings but seems didn't work out.
Can anyone give me some advice? Or can someone suggest better combinations for spectrogram plotting?
About interpolation paramet... | |
doc_23508523 | the controller called Add_employee
public function addemp()
{
//id like to add this to 'employees'
$data1 = array(
'emp_no' => $this->input->post('emp_no'),
'birth_date' => $this->input->post('birth_date'),
'first_name' => $this->input->post('first_name'),
'last_name' => $this->input->post(... | |
doc_23508524 | char test[] = "today=Monday;tomorrow=Tuesday";
char test1[20];
char test2[20];
sscanf(test, "today=%s;tomorrow=%s", test1, test2);
When I print out today, I get Monday but also the rest of the string. I want test1 to be Monday and I want test2 to be Tuesday. How do I use sscanf correctly?
A: The key is to tell sscan... | |
doc_23508525 | When I click "number1" button, I thought "number2" and "drag-zone" box is removed at once
But It's not happened. I have to click "number1" to three time to remove "the number2" and "drag-zone"
I want to remove that at once. What's my problem in my code?
I don't know How could I remove NodeList at once
let list = do... | |
doc_23508526 | I think there could be a problem in the code, since I made this code without fully comprehend the concept behind it.
Basically, I am trying to do a "search engine" to look for all the matching name if a word is given and matches one of the word in the names. Can someone tell me what is wrong?
import re
searchlist=[ *in... | |
doc_23508527 | public class MyService implements IMyService {
private final WebClient webClient;
private final String url;
MyService(@Qualifier("web-client") WebClient webClient,
String url) {
this.webClient = webClient;
this.url = url;
}
@SneakyThrows
@Override
public void execute(Long jobId) {
M... | |
doc_23508528 |
A: Given an example library called fred, I ended up creating a local file in a location like this:
typings-ours/fred/fred.d.ts
and then ran
typings install "file:typings-ours/fred/fred.d.ts" --save --global
This resulted in the change to typings.json below:
{
"globalDependencies": {
"body-parser": "registry:dt... | |
doc_23508529 | Here is the code
<div id="holder4" class="holder" style="height: 450px; width: 1210px;">
<ul id="place18" class="place ui-selectable">
<li data-toggle="popover" data-trigger="hover" data-placement="top" data-original-title="Row" data-content="Seat No:B3 Price: 100 GBP" class="seat ui-selectee" style="top:0px;left... | |
doc_23508530 | My ideas are totally blank
orders = {
"54VwKBJiUOT9T6tkZBIB": {
"created_at": {
"seconds": 1564894948,
"nanoseconds": 819000000
},
"customer": {
"address": "fasdfsdf",
"fname": "ualala",
"lname": "oLLx",
"registered_on":... | |
doc_23508531 | Edit: i use Eclipse 3.5 and im running Win7 in 4 Gig of ram ,i read the info about the known bug with Eclipse and JDK 6 update 21 and try what they suggest but i think thats not the problem.
some of the problem that i had ,XML editor for Android also sometime the disable of the Auto-complete (i made new Workspaces now... | |
doc_23508532 | //
// Hello World server in C++
// Binds REP socket to tcp://*:5555
// Expects "Hello" from client, replies with "World"
//
#include <zmq.hpp>
#include <string>
#include <iostream>
#include <unistd.h>
int main () {
// Prepare our context and socket
zmq::context_t context (1);
zmq::socket_t socket (context,... | |
doc_23508533 | Currently I'm developing for Android, but this app should be also on iOS and WP7 (that's why I've chosen PhoneGap).
The form I'm using has <input type="file"> tag and I should pass image itself through it because I haven't access to the server part.
What I've tried:
*
*To use <input type="file"> tag as it was on fo... | |
doc_23508534 | I allow users to create topics, then when I click into a topic I want to open a new page, where we will discuss the subject. How do I create that new page for each idTopic?
I'm trying to do this on topics page (page2 is the new page):
<a href='page2.php?id=".$row['idMessage']."'></a>
But how do I do it? I need to crea... | |
doc_23508535 | The input file has this in it:
1 ; Visitante ; 10 ; 19 ; 2 ; 3
2 ; 1 ; Funcionario ; 8 ; 0 ; 2
3 ; 2 ; Diretor ; 12 ; 19 ; 4
4 ; Visitante ; 8 ; 0 ; 3 ; 2
The code:
#include <stdio.h>
#include <stdlib.h>
void readInput() {
FILE * fp;
int id = 0, acompanhantes = 0, entrada = 0, saida = 0, servico = 0;
char t... | |
doc_23508536 |
.flex-container {
display:flex;
flex-direction:column;
}
.one, .two, .three {
flex: 0 0 auto;
}
.one {
order:0;
}
.two {
order:1;
}
.three {
order:2;
}
<div class="flex-container">
<div class="three">
<div class="one">One</div>
<div>Three</div>
</div>
<div class="... | |
doc_23508537 |
A: Under All Properties on the field you are writing the names to, set the multipleSeparator to use commas and semi-colons. Also set the multipleTrim to True to remove leadng and trailing white space. In the picker, users can select one name at a time, and as they add them they are appended to the list. Pressing OK wr... | |
doc_23508538 | Summary:
I've fixed the source of the PGP file corruption by text-armoring all of my PGP encrypted files; however, I have a bunch of PGP binary files that were encrypted and uploaded to my FTP server prior to implementing this fix. Knowing the code used to upload the files to the FTP server and the software used to ma... | |
doc_23508539 | I have solved the problem without the constraint that the subset has to be of size k and this is my code (nums is the array where I save my n numbers):
// clear the dp array
int dp[n+1][m+1];
for(int i = 0; i < n+1; i++)
for(int j = 0; j < m+1; j++)
dp[i][j] = 0;
for(int j = 1; j <= n; j++)
{
for(int w... | |
doc_23508540 | But I'm not seeing a way to do so. I'm using the Image component, which supports additions for ComponentLinks, which are for internal links only.
Does anyone know of a workaround? It seems like only Text components support external links (via LinkAdditions), so I'm not sure if it's just not feasible with an image or if... | |
doc_23508541 | String currentPath = System.getProperty("user.dir");
When I run this statement For Example from E:\. I get E:\
but when I run from desktop I get C:\users\zavarghadim\desktop. The last slash (\) missed. Why this happen? In both type I need last slash c:\users\zavargadim\desktop\
Can anyone help me to solve this pro... | |
doc_23508542 | This is what I am doing: http://jsfiddle.net/krECX/15/
What I don't understand is why the variable $asdf is undefined when I call the $asdf.length in this function:
function func() {
var $asdf = $('#inp').value;
$('#divOfDoom').hide().html("" + $asdf.length).fadeIn('fast');
}
I'm sure I'm doing something stupid ... | |
doc_23508543 | The problem is, these endpoints do not require the user to be logged in.
So, my problem is, I can use JWT, but I have no way of verifying the token on the server side -- I have no logged in user I can match it to.
Is there any way JWT can be used in such cases?
A: CSRF is only a problem for requests where the browser... | |
doc_23508544 | 2021-05-17T00:37:50.169199+00:00 app[web.1]: > server@1.0.0 start /app
2021-05-17T00:37:50.169199+00:00 app[web.1]: > node index.js
2021-05-17T00:37:50.169200+00:00 app[web.1]:
2021-05-17T00:37:50.367405+00:00 app[web.1]: /app/node_modules/firebase-admin/lib/credential/credential-internal.js:142
2021-05-17T00:37:50.36... | |
doc_23508545 | I have macro to send multiple emails from Excel via Lotus Notes 6.5
The code of my macro is:
Public Function SendNotesMail()
'This public sub will send a mail and attachment if neccessary to the recipient including the body text.
'Requires that notes client is installed on the system.
'Set up the objects required for ... | |
doc_23508546 | internal class Decoder {
func decode<T: Decodable>(_ type: T.Type, from data: Data) throws -> T {
let decoder = try _Decoder(data: data)
return try T(from: decoder)
}
}
A: Not really. An overload with a special runtime error is the best you've got.
extension Decoder {
struct Error: Swift.E... | |
doc_23508547 | For context, the "matrix" is my dataset and I need to extract all the values where the second column is equal to 1,2,3...20, and sum the last four columns of those (resulting in a 20x4 matrice with the summed values)
But I need to write it using a loop, I would guess a for-loop.
I've tried the following:
M=np.zeros([20... | |
doc_23508548 | The table is Stock_details with columns id,stock_id, stock_name, stock_quantity, supplier_id, company_price,selling_price, category, serial_no, bar_code, po_number, location, user_name, do_number, status, date, kerry_barcode.
When I submit a new purchase, it'll update the database with the values on the add_purchase fo... | |
doc_23508549 | public class User {
public User(Context context) {
}
public User() {
}
public void getUserId(){
}
public void getUserName(){
}
}
If I create an object of user class then I can reach to all methods such as getUserId and getUserName
User user_1 = new User(... | |
doc_23508550 | It seems my only option is to iterate over the collection, casting one element at time, creating a new collection. This seems like an utter waste of resources given type erasure makes this completely unnecessary at run-time.
A: You can cast through the untyped List interface:
List<A> a = new ArrayList<A>();
List<B> b ... | |
doc_23508551 | #! /usr/bin/python3
import sys
import boto3
client = boto3.client('sns')
if __name__ == '__main__':
if len(sys.argv) < 2:
print('Missing argument for stage.')
exit()
stage = sys.argv[1]
name = f'scheduler-test-{stage}'
print(f'Creating topic {name}')
create_response = client.create_topic(Name=name... | |
doc_23508552 | and mypackage is in WEB-INF/classes folder.
<%@ page import="mypackage.Ps123" %>
here ps123 is my class name. and when i following code
Ps123 p = new Ps123();
i got error
Only a type can be imported.mypackage.ps123 resolves to a package
ps123 cannot be resolved to a type
Tell me whats wrong... | |
doc_23508553 |
image
user
answer
img_01
1
1
img_01
2
0
img_01
2
1
img_01
2
0
img_01
3
1
img_01
4
1
img_02
1
1
img_02
...
...
As you can see, user 2 gave 3 answers in total for img_01, but not always the same. This happens throughout the dataset with different images and users. I know I can acquire the (image... | |
doc_23508554 | data_result = Search.objects.raw(search_sql)
The problem is that when I try to put it into a Pandas data frame, I'm left with a data frame as a single column full of objects, instead of having them unpacked for every property:
0 Search object (167157)
1 Search object (167159)
2 Search object (167160)
3 Search obje... | |
doc_23508555 | I've tried:
DecimalFormat df = new DecimalFormat("#");
df.setMaximumFractionDigits(8);
double n = Double.parseDouble(df.format(z));
However, this still produces a double in scientific notation.
A: A format is not a property of a double, the data type. This defines just a set of values.
Printing always requires a con... | |
doc_23508556 | Other languages like Chinese and Urdu .. etc will show the correct character. But Sinhala characters are not displaying correctly. It will display as little boxes both in the code and the output. though here in SO it show as "සිංහල" . How can I fix it ?
I can do this without a problem in eclipse environment.
Stri... | |
doc_23508557 | Why is this happening?
Is there a programmatic way to fix this so that the data populates as intended, with 1 value per column?
A: It is likely because the initial data structure is not detected correctly. This can happen if the first rows of your dataset have a different structure than the remaining rows.
To solve t... | |
doc_23508558 | api_hash = “your_api_hash”
bot_token = “your_bot_token”
from pyrogram import Client, filters
# create a new Pyrogram client
app = Client(
"k",
api_id=api_id, api_hash=api_hash,
bot_token=bot_token
)
# define a function to handle incoming messages
@app.on_message(filters.private)
def handle_message(client, message)... | |
doc_23508559 | - (IBAction)getuserlocation:(id) sender{
//Getting Location
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
NSLog(address);
}
#pragma mark - CLLocationManagerDelegate
- (void)locationManager:(CLLocationManager *)m... | |
doc_23508560 | I just want to stop/kill that bokeh server that was initiated by .show()
import numpy as np
import pandas as pd
import hvplot.pandas
import holoviews as hv
import panel as pn
df = pd.DataFrame(np.random.normal(size=[50, 2]))
hv_plot = df.hvplot()
pn.panel(hv_plot).show(port=12345)
A: Maybe it's just best to declare... | |
doc_23508561 | If I test something like this:
protocol protocol1
{
func testOne()
}
protocol protocol2 : protocol1
{
func testTwo()
}
class class1
{
var toto : protocol1?
init()
{
}
}
class class2 : class1
{
override var toto : protocol2?
}
let test = class2()
I've got an error in this line: overrid... | |
doc_23508562 | if(!empty($_POST['username']) && !empty($_POST['email']) && !empty($_POST['password']) && !empty($_POST['passwordagain'])) {
$fmsg = null;
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['password'];
$passwordRepeat = $_POST['passwordagain'];
if(strlen($username) < 2) {
$fmsg = 'empty ... | |
doc_23508563 | public class Userinfo
{
public Userinfo()
{
}
public static async Task<List<Information>> Login(string Username, string Password)
{
string str = "https://somesite.com/log.php";
string[] cID = new string[] { "act=qwjFpPXuGexZBHDJEreZrAUH&CID=", "&username=", Username, "&password=", ... | |
doc_23508564 | template<typename T, size_t size_ = 256>
struct InlineVector{
T content[size_];
size_t num;
T() : num(0) {}
~T() { for(size_t s = 0; s < num; s++){ content[s]->~T(); } }
template<typename _Up, typename... _Args>
void emplace_back(_Args&&... __args) { new (&content[num++]) T(__args); }
T&... | |
doc_23508565 | Is there a way to direct the browser which size to use?
<picture>
<source srcset="~/images/300px.png 300w,
~/images/600px.png 600w,
~/images/800px.png 800w"
sizes="(min-width: 60rem) 80vw,
(min-width: 40rem) 90vw,
100vw">
<img src="~/images/300px.png" alt="Imag... | |
doc_23508566 |
How can get it done using NSMutableString or UILabel's attributedText property? Help Appreciated.
Note: The Name 'John Doe' is a user account name derived from API.
A: Refer this example, add your appropriate Attribute.
let text = NSMutableAttributedString(string: "Welcome John Doe")
text.addAttribute(NSFontAttribu... | |
doc_23508567 |
A: Classification algorithms and evolutionary computing are different approaches. However, they are related in some ways.
Classification algorithms aim to identify the class label of new instances. They are trained with some labeled instances. For example, recognition of digits is a classification algorithm.
Evolution... | |
doc_23508568 | @property (nonatomic, strong) SomeViewController *someViewController;
...
self.someViewController = [[SomeViewController alloc] initWithView:imgView];
[self addChildViewController:self.someViewController];
self.someViewController.view.frame = self.view.bounds;
[self.mainView addSubview:self.someViewController.view];... | |
doc_23508569 | I've searched on many blogs/forums and many stackoverflow posts, trying to come up with the best security options/features.
I want to implement the following security options.
*
*Secure traffic by using HTTPS (http +ssl)
*[server side] User agent checks.
*Do CRC checks on the phonegap JS file and send the result a... | |
doc_23508570 |
A: It is not very commonly necessary. The purpose of creating a CoroutineScope is to manage the lifecycle of multiple coroutines. If for some reason you have some coroutines you want to launch in a ViewModel, and you want to possibly cancel all of them at some time other than when the ViewModel is destroyed, then it w... | |
doc_23508571 |
A: Javascript is a string of text. Databases can store strings of text. Hence, databases can store Javascript.
Unless you have some specific idea I'm missing though, I wholly agree with @Aircule's sentiment.
Wow, I don't think I've seen a worse idea in ages.
A: Yes, it seems like you've got a grasp of what is requi... | |
doc_23508572 | ||
doc_23508573 | - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
{
if (section < self.practiceLessonSet.lessons.count) {
if ([[self.practiceLessonSet.lessons objectAtIndex:section] words].count == 1) {
return @"No replies yet. Try the share button?";
}
}
... | |
doc_23508574 | Its runs great.
Now I add a simple insert in the startup function.
its is now giving me exceptions.
Here is my app.js code:
Book = new Meteor.Collection("book");
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to app_01.";
};
Template.hello.events({
'click input' : functio... | |
doc_23508575 | I'm heard about XEP-0184, but it's only the message delivery (received or not).
A: XEP-0184 (Delivery Receipt) used to ensure that message reached to the end user (user is online). For display notification you can use XEP-0085 (ChatStateEvent) or XEP-0022 (MessageEvent). Though XEP-0022 is deprecated and XEP-0085 is r... | |
doc_23508576 | try{
String value1 = txt_depID.getText();
String value2 = txt_depName.getText();
String sql = "Update tblDepartment set depID = '"+value1+"' , depName = '"+value2+"' where depID = '"+value1+"'";
String sql1 = "Select depID, depName from tblDepartment";
Class.forName(driv... | |
doc_23508577 | I have to manage all the clients with live tunnels of each of the client.
My Tunnel class is having many properties and functions, I am showing only useful properties As :
public class Tunnel : IEquatable<Tunnel>
{
public Guid UID { get; private set; }
public Tunnel(){
this.UID = Guid.NewG... | |
doc_23508578 | But the result is same. Only showing the total figure to sum all quarters. Please help me to find out the way to resolve the issue.
=IF (
FIRSTNONBLANK (
'10QuarterlyReportProgressPC'[Quarter], 1 ) = "Q1",
SUM ('10QuarterlyReportProgressPC'[Progress] ),
SUM( '10QuarterlyReport... | |
doc_23508579 | Adding as child to main product in cart
The product is being add to the cart, but as an additional product rather than a child to the main product that was added. I've tried various methods with no luck, here is the current code:
$product = $event->getProduct();
$product_gift = $this->_initProduct($gift); // function ... | |
doc_23508580 | I dont know why particles is taking the whole screen, I cant put that hello text right under the navbar. Here's code for this:
App.js
class App extends Component{
render(){
return (
<div className="App">
<Particles className='particles' params={particlesOptions} />
<NavigationBar />
<... | |
doc_23508581 | The simplest example of such a function is:
Public Function getSomething(webAddress As String)
Dim html As HTMLObjectElement
Set html = getWebContents(webAddress)
Set elems = html.body.getElementsByTagName(tagName)
...
End Function
The function for acquire data from websites is:
Public Function getWebC... | |
doc_23508582 | http://zamboni.readthedocs.org/en/latest/topics/install-zamboni/installation.html
and connect to my marketplace url in firefox phone,
so Install app to my app.
part of the manifest.webapp
"type": "privileged",
"permissions" : {
"systemXHR": {
"description" : ""
},
"contacts": {
"access": "re... | |
doc_23508583 | @Component({
selector: 'app-device',
templateUrl: './device.page.html',
styleUrls: ['./device.page.scss'],
})
export class DevicePage implements OnInit {
private device: Device; // beacon used in the HTML template to display info
constructor(private activatedRoute: ActivatedRoute, private adapter: Servic... | |
doc_23508584 | Is it possible to configure the connections API to allow requests from all our internal applications eg *.our-company.com? We're running Connections v5.0.
A: Yes it's possible. You simply have to configure this in the IHS! This config snippet might be useful for you:
RewriteCond %{HTTP:Origin} (.+\.<yourdomain>\.com) ... | |
doc_23508585 | 1) Use JS to create form
var myId = document.createElement("input");
myId.setAttribute("type", "hidden");
myId.setAttribute("name", "myId" + index);
myForm.appendChild(myId);
and so on..
2) Use innerHTML and writing valid HTML code:
document.getElementById("myForm").innerHTML +=
'<input type="hidden" nam... | |
doc_23508586 | SELECT
DISTINCT (a.changelog_Histories_created) AS DateOfStatusChange,
a.Issue_Key AS IssueKey,
a.Changelog_Histories_author_displayName AS ChangeLogUserName,
b.Items_fromString AS StatusChangedFrom,
b.Items_toString AS StatusChangedTo
FROM
[Jira].[Platform.Api_Issue_Changelog_Histories] a
J... | |
doc_23508587 | var s = jQuery.noConflict();
s(document).ready(function () {
s(".zipmask").mask('99999-9999');
});
It accepts the numbers like 12345-1111 and works fine.
Now I want that it should support five digits like if we enter "12345" only, It should accept it.
A: You must use it like this way: Anything after the '?' ... | |
doc_23508588 | In version 1.0.0-alpha9-00152 I could use:
Image<Rgba32> image = Image.Load(GetBytesFromBlobStorage());
IImageFormat format = image.CurrentImageFormat;
but .CurrentImageFormat() doesn't seen to be able in beta version 1.0.0-beta0001.
I want to know if the image is .png, .bmp or .jpeg.
A: Yeah, we moved your cheese a ... | |
doc_23508589 | I want it to look like this:
Please enter one of the listed letters!
a.
b.
c.
d.
I wasn't able to find any helpful information on how to do it. I've messed around a bit but nothing seems to work. I've seem some things about (Chr(13)) and stuff but have no idea how to use it in syntax.
A: result = InputBox... | |
doc_23508590 | this.proFrame = proFrame;
_painter = painter;
setModel(model);
_mouseHandler = new GraphMouseHandler(this);
_verticalScroll = new JScrollBar(JScrollBar.VERTICAL);
this.add(_verticalScroll, BorderLayout.EAST);
_verticalScroll.addAdjustmentListener(this);
_verticalScroll.setVisible(tr... | |
doc_23508591 | I created access token in Open Graph page with all available permission and I use it.
I can fetch one event, but I can't see another, which I care. I noticed that event is "invite only", but it's settings are beyond my control.
It doesn't show in my events/maybe (when I clicked "maybe"), and when I try to access it by ... | |
doc_23508592 | Wouldn't it be great if people need to fill out one field less? Example:
*
*100 visitors use the form each day
*They spend 5 seconds on the ZIP code field
So 5 * 100 * 365 = 182500 seconds or 50 hours a year. And that's just for one form on one website. Multiply that by all websites that ask such information and ... | |
doc_23508593 | When I use the autofill on iphone to auto fill login and password input in my login page (ios 11.3), the login and the password are visible but when i click in my submit button, the application not detected value in input login and input password...
If I add any caracter in the login or the password input and I click o... | |
doc_23508594 | val label = TextView(context)
label.text = i.label
val value = TextView(context)
value.text = i.valueFormatted
value.textSize = 48f
label.textSize = 36f
TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(value, 1, 48, 1, TypedValue.COMPLEX_UNIT_DIP)
TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(la... | |
doc_23508595 | So when reading the GDocs on Machine Image (https://cloud.google.com/compute/docs/machine-images) there is a section named Differential Backups. The MI page under Compute Engine shows the number of Images created and little else about the image itself. I need to find the size of these differential backups and a metho... | |
doc_23508596 | I have declaration like this:
typedef struct
{
quint8 mark1;
quint16 content1;
quint16 content2;
quint8 mark2;
}FrameHead;
and in function,I defined a buffer,and valued it:
quint8 buf[40];
FrameHead *frame = (FrameHead *)buf;
frame->mark1 = 0x68;
frame->content1 = 0x3A;
frame->content1 = 0x3A;
f... | |
doc_23508597 | string constructSignature(string timestamp, string UID, string secretKey) {
// Construct a "base string" for signing
baseString = timestamp + "_" + UID;
// Convert the base string into a binary array
binaryBaseString = ConvertUTF8ToBytes(baseString);
// Convert secretKey from BASE64 to a binary arra... | |
doc_23508598 | I want to apply a 2D grid boxes on each frame so that I can count the number of particles in each box. I have done that, but I feel I can speed it up.
The code below works fine on 1 frame, but I have to do it for all frames and for different files, which makes things slow.
#Lx,Ly are my box dimensions, all particles po... | |
doc_23508599 | <?php
$email = $_POST["email"];
@mysql_connect("localhost","root","root") or die(@mysql_error());
@mysql_select_db("dtbse") or die(@mysql_error());
$x = mysql_query("select * from dtbse where email = '$email' ") or die(@mysql_error());
$result = array();
while ($y=mysql_fetch_array($x)) {
echo $y["unam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.