text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Bytes Accessor in Wireshark in c
I've to access 4 bytes of data from tvb (tvbuff_t *) passed in
dissect-protocolname() function.
I used 2 functions:
1. data = tvb_get_bits32(tvb, offset, 32, ENC_BIG_ENDIAN);
2. proto_tree_add_item(foo_tree, hf_foo_data, tvb, offset, 4, ENC_BIG_ENDIAN);
the returned value from the f... | common-pile/stackexchange_filtered |
Google Admob Doesn't Display
When ı test my app on emulator or real device (Android only) when I set admob isTesting = false not display ads but when ı set isTesting = true display test ads what is the problem ?
private options: AdOptions = {
adId: 'adID',
adSize:AdSize.BANNER,
position: AdPosition.BOTTOM_... | common-pile/stackexchange_filtered |
Could this insert statement insert duplicates?
insert items (ean)
select ean
from books
where ean not in (select ean from mrs..items)
Assume there are duplicates in books. Will sql determine which records to insert upfront and then continue to insert duplicates; or will it prevent itself from inserting duplicates by ... | common-pile/stackexchange_filtered |
How to fix missing libraries?
Just tried to uninstall bitcoind and install bitcoin-qt but now it says
error while loading shared libraries : libminiupnpc.so.16 cannot open shared object file : no such file or directory
pacman -Fs libminiupnpc.so.16 returns nothing
Any idea how to fix ?
Are you sure you have your sy... | common-pile/stackexchange_filtered |
prestashop - custom image size defined by theme
It is any option/code to define/change image sizes by theme so it will be in the list in back-office when the theme is applied?
I'm creating new theme for which i need to add/modify some image sizes and will be much easier if that can be defined inside the theme instead o... | common-pile/stackexchange_filtered |
Merge two Outlook.com accounts (using aliases) without disrupting email?
Is such a thing possible?
As in, if you have two accounts<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and you want to close account A and make A an alias for account B, then is it possible to do this without making emails sent to A undeliverable for some peri... | common-pile/stackexchange_filtered |
ActiveMQ(MQTT) crash when subscribe
I Download ActiveMQ Broker v5.11.1 And Run It
(Use MQTT).
I Can Publish And Subscribe With Websocket & PHP For Publish And Broker Work Well.
But When Use PHP for subscribe Broker Console Give Me This ERROR And Dont Subscribe Topic
WARN : Transport Connection to :tcp://<IP_ADDRE... | common-pile/stackexchange_filtered |
How to fix GPIO pin number for sysfs on Raspberry Pi 5 new Linux kernel debian bookworm?
When I control GPIO pin on Raspberry Pi 5 debian bookworm, it doesn't work unless I add GPIOCHIP base address number to the pin number.
For example, if I want to export pin 20, I need to use
sudo sh -c "echo 591 > export"
adding GP... | common-pile/stackexchange_filtered |
User Mode Linux on ARM
I usually use UML but seems ARM architecture doesn't support it.
Can I use UML on ARM? Before this I shared tiny servers with my friends.
Now, I bought ARM based server.
Anybody knows how to use UML on ARM based PC?
Do you know if ARM is supported yet?
UML is only supported on x86/x86_64:
http:... | common-pile/stackexchange_filtered |
how to run concurrent task with asyncio when task is common function
I have two tasks, I want to run them with asyncio concurrently (not in a thread).
But if the tasks are a common function, they will be run one by one. I'm having a hard time making the function async.
I see many samples about asyncio that use the asyn... | common-pile/stackexchange_filtered |
Tensorflow: While importing it is showing libcublas.so.9.0 (No such file or directory)but I have cuda 9.2
I have recently installed CUDA-9.2, CuDnn and GPU version of tensorflow on CentOS 7. While importing it is showing
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
But As I ... | common-pile/stackexchange_filtered |
How to add resource folder to the my EJB jar by maven
We have a resources folder in our EAR, this folder contains some image,xml and text files.
I need to add this folder to our EJBs manifest classpath.
myEAR
|-> resources
| |-> myXml.xml
| |-> mytext.txt
|->lib
| |-> pojo1.jar
| |-> pojo2.jar
|->ejb.jar... | common-pile/stackexchange_filtered |
Create a record with custom class and simple_form
I have this model :
class User < ActiveRecord::Base
# abstract
end
class Company < User
end
class Person < User
end
How can i create form with the selection of type ?
<%= simple_form_for(@user) do |f| %>
<%# I would like to have a selector of classes ["Compan... | common-pile/stackexchange_filtered |
Color Recognition of real color
I'd like to find out the "real" color of an object in an image automtacially.
For example: If I take a photo from a wall, I would like to reproduce the color of the wall so that I can paint another wall with the same color.
The image taken will include a reference object from which the p... | common-pile/stackexchange_filtered |
Is exposing the API Key from Firebase at url/firebase-messaging-sw.js a security risk?
I've noticed that the API Key of Firebase can be easily accessed on the website I'm managing through url + firebase-messaging-sw.js. I've got mixed answers online when searching for this issue. Is this a security issue I should be co... | common-pile/stackexchange_filtered |
Can I use per unit method for true, reactive, and apparent Power
I would like to show apparent power (S) in Cartesian coordinate system with a circle of radius 1, where x axis represents reactive power (Q), and y axis represents true power (P). There's the formula:
P^2+Q^2=S^2
Can I use these formulas to transform it... | common-pile/stackexchange_filtered |
Creating Joomla Accounts outside of a web interface
Is it possible to create a Joomla account outside the web interface. I want to create one from my Java application. If so can you give me an idea about the best way to do this?
These are my thoughts so far:
1. Create a php page that inserts the data directly into t... | common-pile/stackexchange_filtered |
meson can't build systemd from source: "getent" not found
I'm compiling systemd version 237 from source in a cross compiling environment (yocto sumo).
By the bitbake recipe, systemd is built by meson.
I upgraded meson version to 0.49.2 (copied from warrior) since my other recipes require that version.
when I do bitbake... | common-pile/stackexchange_filtered |
How to use ExternalTaskSensor in Airflow using for loop?
I am trying to use multiple ExternalTaskSensor with different task_id using for loop.
I tried with the code below, and the result I expected is:
wait_for_task_0 -> poking 2023-07-09
wait_for_task_1 -> poking 2023-07-10
wait_for_task_2 -> poking 2023-07-11
...
wai... | common-pile/stackexchange_filtered |
Notify all EC2 instances running in ASG
I've a microservice application that has multiple instances running in ASG. All these applications maintains some internal state. This application exposes Actuator endpoints to refresh it's state. I've some applications which are running on-prem. The scenario is, On some event, I... | common-pile/stackexchange_filtered |
Efficiently retrieve data (all in one batch ideally) with mongengine in Python 3
Let's say I have class User which inherits from the Document class (I am using Mongoengine). Now, I want to retrieve all users signed up after some timestamp. Here is the method I am using:
def get_users(cls, start_timestamp):
return c... | common-pile/stackexchange_filtered |
How to change gfortran version
I am using Bellhop ray tracing algorithm for MacOS. I have downloaded the source code for MacOS without the binaries.
I want to change my gfortran version from 9.2.0 to 8.3.0.
I installed it using homebrew. I have version 9.2.0 installed. I have it installed at /usr/bin/
I cannot seem ... | common-pile/stackexchange_filtered |
SQL update statement with select from own table with multiple rows in oracle
I want to select rows multiple rows from a table with a WHERE clause, afterwords I want to format the date and overwrite the column. I created the following SQL statement:
UPDATE aufgabenliste.aufgabendefinition
SET tagesauswahl = (SELECT TO_C... | common-pile/stackexchange_filtered |
Why/how can model.forward() succeed both on input being mini-batch vs single item?
Why and how does this work?
When I run the forward phase on input
being mini-batch tensor
or alternatively being a single input item
model.__call__() (which AFAIK is calling forward() ) swallows that and spills out adequate output (i... | common-pile/stackexchange_filtered |
Run application as user
I want to give user to run citix workspace application only and rest everything deny permission for any changes to system.
I had installed app and running in startup and able to run application properley.
But i want to give user to run this app only not anything else he can modify in operating ... | common-pile/stackexchange_filtered |
Individual macros function but combined macros do not
I am trying to brute-force the Caesar shift cipher in vim. I have recorded three macros f, a, and d where f copies the line and a applies a Caesar shift to all elements on the line by calling macro d which Caesar shifts a char. Both macros work fine individually, an... | common-pile/stackexchange_filtered |
Can I use Laravel Mix on a project that already uses Gulp?
Bit of a "first steps" question this one.
I am working on a project that uses gulp, and have found a nice vue component that I would like to incorporate.
I have been recommended to use Laravel mix, but will installing mix mess up the current installation ?
Is t... | common-pile/stackexchange_filtered |
How to check if WIFI button is enabled (iOS)
I want to be able to check to see if the user is connected to WiFi, but not connected to a network. So basically I want to check the state of the WiFi button on the device setting page to check if button is enabled or disabled.
At the moment I can check to see if the Wifi is... | common-pile/stackexchange_filtered |
Stored procedure with MVC with input parameter and get output with Entity Framework
This is an ASP.NET MVC project to execute stored procedure with input value, once we give input values, results will be shown in nested view. And the table doesn't have a primary key. So, while adding to Entity Framework, I am getting a... | common-pile/stackexchange_filtered |
How to List all the Git Repos under Organization, using Groovy?
Hi I'm new to Groovy and I'm trying to list GitHub repos in my github organization using groovy, but I was able to do it in shell command as given below.
Anyone there to help me to covert this in to groovy ?
curl -i -u <user_name>:<tokenID> https://api.gi... | common-pile/stackexchange_filtered |
Avoid UserControl to catch mouse wheel scrolling
We have a UserControl showing all possible values of an enum represented as RadioButton in a ListBox to choose one of them. When this control is inside a ScrollViewer with other controls like textboxes or whatever and you try to scroll by mouse wheel it won't scroll the ... | common-pile/stackexchange_filtered |
Excel: how to deal with multiple "if" conditions in one cell
I know how to test one condition with =if.
But how can I test more than one condition in one cell.
Exemple:
if the number in a cell A1 = 0 we write null
else if the number is > 10 we write "number > 10"
else if the number is >15 and <20 we write "number >15 a... | common-pile/stackexchange_filtered |
Grouping column values in pandas and making other column values into a list
I have a pandas dataframe:
col1 col2 col3
a NaN NaN
b 1 2
b 3 4
c 5 6
I would like to change it to a dataframe like this:
col1 col2 col3
a NaN NaN
b [1,3] [2,4]
... | common-pile/stackexchange_filtered |
How to deploy a Tomcat application with Manager URL API when using custom context XML
My application context is defined as an XML file located in my/path/to/Tomcat/conf/Catalina/localhost/my-app.xml.
<Context docBase='/my/path/to/myApp/myAppWarFile.war'>
<Environment name='my_config_dir' value='/my/path/to/myApp' ty... | common-pile/stackexchange_filtered |
Ubuntu 12.04 Installed, monitor turns off after the BIOS screen
After a little struggling, I managed to install Ubuntu 12.04. I can hear the computer running while the screen is off, and it turns off directly after the BIOS screen.
Specs:
Case: Thermaltake V4 Mid Tower Case with 500W PSU - USB 3.0 - Transparent Window... | common-pile/stackexchange_filtered |
WP Database Error (Windows Server 2008 & SQL Server)
I have a WP site up and running for my wife and she attempted to install a text widget that linked to her Twitter account (she says HTML was taken from Twitter.com). I am not sure exactly what she did or what was going on, but now she gets the following error when g... | common-pile/stackexchange_filtered |
Stubbing Custom TagLib method in Controller Unit Test
I have a method in a custom taglib like so:
def deleteAction = {attrs ->
def id = attrs['id']
def type = attrs['type']
def clazz = attrs['class']
def html = new MarkupBuilder(out)
html.span(class: "${clazz} ui-icon ui-icon-trash {id:'${id}'}")
}
... | common-pile/stackexchange_filtered |
SQL- Iterate through a list of WHERE clause values
I have a table like so:
item_id order_date order_qty
1 '1-01-2019' 10
1 '2-05-2019' 20
1 '10-05-2019' 30
2 '5-10-2020' 40
2 '10-02-2018' 10
3 '10-21-2018' 15
4 '10-20-2018' 20
I want to find the total orde... | common-pile/stackexchange_filtered |
Append two elements in svg at the same level
I'm using d3.js
Hi, I'm having an issue finding how to append two elements (path and image) to the same g (inside my svg) from the same data. I know how to do this, but the tricky thing is I need to get the BBox values of the "path" elements in order to place the "image" ele... | common-pile/stackexchange_filtered |
GUI Java Netbeans multiple classes
This is pretty elementary but I do not even know how to search anything for what I need.
I have created a system that has a few classes and two projects that communicate with each other via sockets.
Now I am aiming to create a GUI for the system using a designer Netbeans has but I am ... | common-pile/stackexchange_filtered |
How to know original class name if wrapped into proxy by Spring?
I am trying to obtain some classes name by getClass().getSimpleName() under Spring and it returns something like
MyClass$$EnhancerBySpringCGLIB$$SOMEHEX
This is probably because Spring wraps the class into proxy.
Is there any portable way to obtain orig... | common-pile/stackexchange_filtered |
energy computation for BVP with Dirichlet boundary conditions
I am solving quadratic minimization problem
\begin{align}
\min_{x}\ \frac{1}{2} x^T A x -b^T x,
\end{align}
where matrix A results from discretization of Laplacian by FEM method, subjected to Dirichlet BC.
I am having concerns about computing energy.
Shoul... | common-pile/stackexchange_filtered |
T-SQL formatting Date arithmetic results in a friendlier format
I have some dates ...
1900-01-01 00:06:11.847
1900-01-01 00:09:12.097
1900-01-01 01:16:08.533
1900-01-12 20:08:04.453
1900-01-12 20:08:04.517
1902-12-30 04:58:52.500
1902-12-30 05:04:08.840
1903-08-30 21:03:07.187
1904-01-31 20:18:10.063
1904-04-02 06:05:5... | common-pile/stackexchange_filtered |
installing Rcpp on R compiled with intel composer on OSX Yosemite
Inspite of succeeding with the compilation of R-3.1.2 using the intel suite of compilers ver.2015.0.077 including MKL on my late 2014 MacBook Pro running Yosemite (outlined here), I am unable to install the excellent Rcpp package that I have been thoroug... | common-pile/stackexchange_filtered |
Do Android Automotive OS support OpenCV OpenGL and multiple screen
I am trying to convert the desktop app to Android Automotive OS (AAOS). I am using OpenCV DNN for object tracking. Also, I am using OpenGL to render the contents. Rendering outputs (2 full HD) must be displayed on two monitors (must be full screen). Als... | common-pile/stackexchange_filtered |
MacOS Solarized Color-scheme not working in Terminal VIM
I followed Ethan's Guides for configuring solarized. In particular I:
Downloaded and set his Solarized Dark ansi profile for OS X Terminal
Downloaded and moved solarized theme to vim/colors
I then added the two lines set background=dark and colorscheme solarized... | common-pile/stackexchange_filtered |
Cannot resolve the errors with returning an array using pointer from a function in C?
I am trying to receive a number of float variables through a function and then pass them to the main and store them in another array in the main. The size of the array is specified by the user, so I am using a variable-length array.
I... | common-pile/stackexchange_filtered |
Mortgage: Floating rate loan tenure extension on rate increase
I am trying to figure out how my bank has implemented re-pricing on my floating rate home loan.
The original home loan was for an amount of ₹ 48 lakhs (₹ 4.8 Mn) at an annual rate of interest (RoI) of 9.25% for a tenure of 4 years (48 months/repayments). Th... | common-pile/stackexchange_filtered |
Pass requests for specified hosts throw VM
I have VPN that restrict all internet except inner resources. I don't like it and i want to install VM, connect it to VPN and redirect all requests for specified hosts to VM and get back answer.
Is it possible with nginx or something?
I need to use windows as main OS because... | common-pile/stackexchange_filtered |
Wrong Value after type casting in 32 bit process
Please see the following code in C#.
float a = 10.0f;
float b = 0.1f;
float c = a / b;
int indirect = (int)(c);
// Value of indirect is 100 always
int direct = (int)(a / b);
// Value of direct is 99 in 32 bit proc... | common-pile/stackexchange_filtered |
How can i customize UILabel for image display?
I want to customize UILabel control.
For example,
lblName.text = @"Zotiger";
then label shows Zotiger normally.
And if i set its text with some special characters (in my case, * is a special character for replacing with image)
lblName.text = @"***";
lblPhone.text = @"*... | common-pile/stackexchange_filtered |
Inserting multiple items with Web.Config transforms
I've got a C# project that references a lot of WCF services. For local testing, I want to replace the contents of the identity tags so that it will accept anything running on localhost.
The following transformation works, but only inserts the dns element in the first ... | common-pile/stackexchange_filtered |
Valgrind - many allocated bytes
Installed valgrind on my WSL and I was a bit confused.
Problem: I get a lot of allocated bytes even though my program doesn't do anything.
main.cpp:
#include <iostream>
using namespace std;
int main() {
cout << "I'm testing valgrind!" << endl;
return 0;
}
The result of call... | common-pile/stackexchange_filtered |
Event booking form for wordpress
Cannot find plugin which will allow me to do this:
I want to accept event bookings on my website like on the screenshot.
Below text fields event list will be presented and green will show events with available seats, red will show sold out. I want to set event list and free/sold out sta... | common-pile/stackexchange_filtered |
Creating a css class with a Javascript object or var
Is it possible to create a css class based on a javascript object or variable?
An example would be if you had an input where you can enter a hex code. I can extract the value using javascript and set it to a var.
I can then use this var to set inline styles with java... | common-pile/stackexchange_filtered |
Convert PDF to CSV or xlsx with python
I'm trying to convert the whole extension of a PDF into a CSV or an xlsx with python and I've hit a wall.
I know that there is an API called PDFTables that works perfectly but the number of documents that I would like to convert (over 400) and the fact that its use involves an eco... | common-pile/stackexchange_filtered |
Push object into array causes permission denied in IE
From a child window, I was calling a function in the parent window that pushed an object i.e. {a:0,b:1,c:2} into an array. All works fine in Firefox, but in IE it was pushing the following into the array.
[{<Permission denied>}]
Rather than:
[{a:0,b:1,c:2}]
Can y... | common-pile/stackexchange_filtered |
Converting Non Linear Numeric PHP Array Indexes to Array Values
I have an array comprising months (keys) and values See shortened example below. It is being generated by a legacy client system so I can only manipulate what I am presented with (not ideal).
$cost_data= array
(
[9] => 1110
... | common-pile/stackexchange_filtered |
How to make the image inside an iframe fit to the size of the iframe? (angular)
I'm wondering how to make the img content inside of my iframe fit to the size of my frame. When i display a pdf inside of the iframe it scales perfectly but displaying a png looks bad because the image returned doesn't scale to its contain... | common-pile/stackexchange_filtered |
Chrome on startup to continue where I left off and one more page
Whenever I open chrome, I want:
All my previous pages are there
Another page, with a custom URL, is there. (With the possibility of me setting it to be chrome://newtab.)
Is this possible?
Is there a way that on open specific set of pages, I can add prev... | common-pile/stackexchange_filtered |
Classify Singularities
So, I'm trying to classify the singular points of the following function:
$$ f(z)=e^{\cot(\frac {1}{z})} $$
Obviously, when z is zero, the function tends to approach infinity, so that must be a singularity. To characterize the singularity, I think that I must expand it out into a Laurent series ... | common-pile/stackexchange_filtered |
Passing a lambda to a template function on VC10
I wrote the following code on VC10. Calling f1 is okay, but on calling f2 the compiler showed an error. The difference between the two functions is only "template ", but the template type is actually not used. Why does the error occur?
#include <functional>
void f1( std:... | common-pile/stackexchange_filtered |
Handle variables not in datatype
What I wish to accomplish is to pass strings and booleans into a list. The 'switch' operator switches the first two elements of type input, the 'and' operator ands the first two elements.
However, how would I add an error string to the list ("error") if I wanted to 'and' a boolean and ... | common-pile/stackexchange_filtered |
What is the range of $g(x)=\cos^{2n+1}(x)+\sin^{2n+1}(x)?$
We have that the range of $f(x)=\cos^{2n}(x)+\sin^{2n}(x),\; n\in \mathbb{N},\; n\geq 2,\;x\in \mathbb{R}$ is
$$f(x)\in[2^{1-n},1]$$
since with $t=\cos^2(x)$ such that $0\le t\le 1$, then
$$t^n+(1-t)^n.$$
The stationary points are the roots of
$$t^{n-1}-(1-t)^{... | common-pile/stackexchange_filtered |
what does the comma mean in g = filter(lambda x: x in a, b)
I'm not sure what the comma means in the following syntax:
a = [1,2,3,5,7,9]
b = [2,3,5,6,7,8]
g = filter(lambda x: x in a, b)
Would that be equivalent to:
if x in a and x in b
because that's what happens. Also, is this comma only legit in lambda function... | common-pile/stackexchange_filtered |
Passing variable arguments from python using ctypes function call to C++ function
I have a problem when I pass variable arguments to ctypes function from HTML/JS->python in pyramid f/w -->C++
For example, my HTTP GET call wil be as below:
type: "GET", async: false,
url: "/web/NewModel/getValues?count=... | common-pile/stackexchange_filtered |
Elasticsearch 1.x add field copy of timestamp
I am working in ES 1.5.2. I have an index with documents, with stored timestamp values. I want to add a regular field to it, which will assume the value of the _timestamp field for that document. How can I do this? I could do
PUT twitter/_mapping/new_timestamp
{
"properti... | common-pile/stackexchange_filtered |
Magento 2 Price of configurable is zero on store front
We make an import of CSV with products programmatically and getting prices $0.00 on the storefront for the first time. After some minutes it's getting normal. I am using Magento 2.2.9 Community Edition. I believe it's some issue with reindex or something..there are... | common-pile/stackexchange_filtered |
JSON, Key-Value-Pairs in Groups to "flat" key-value-pair
Each key of a json should be combinded with _ (or any valid json symbol). To have a simple key-value list.
I have the following structure. A few json groups (no arrays), in side the groups there are key-value pairs. I need to flat them to a single key-value-list.... | common-pile/stackexchange_filtered |
Are scrapy definitions (self, response) limited or require special function in order to parse multiple URLs in a loop?
I am parsing two lists of URLs with the latter being populated from the first. I am able to get all the needed URLs, but having trouble pulling data from the last list of URLs. I am only able to get on... | common-pile/stackexchange_filtered |
How did the apples fell for threads to be conceived
I was going through the following lecture notes on OS :
http://williamstallings.com/Extras/OS-Notes/h2.html
What I could draw is that "A process is a stream of execution ,i.e.basically a sequence of statements and so is a thread .However , the register states of one ... | common-pile/stackexchange_filtered |
Haskell 'Couldn't match expected type with actual type'
I have been going through the Seven Languages in Seven Weeks book and I'm working with Haskell.
I am struggling with the problem:
Write a sort that takes a list and a function that compares its two arguments and then returns a sorted list.
I searched online for ... | common-pile/stackexchange_filtered |
Purple screen of death: can't get into ubuntu desktop or grub menu
I bought a new laptop with ubuntu pre-installed on it. I have only had it for about a week and have already broke it! When I boot, only see a purple screen. When this first happened I restarted and was able to get into the grub menu by pressing shift. H... | common-pile/stackexchange_filtered |
Can I safely wrap the current request in a static instance?
I'm working on a multi-tenant web application. At the beginning of each request, the web application will use either the URL or a cookie to determine the tenant ID of the current request. I want to make this available to my data layer so that it can automatica... | common-pile/stackexchange_filtered |
REST Call with list of headers
I have the following code snippet for invoking rest call. I have around 8 headers to pass on for this rest call. But the problem is that it is difficult to manage. If in case the list of headers are increased in future, I need to change evaluateChange method signature to include the addit... | common-pile/stackexchange_filtered |
linked list segmentation fault. I'm guessing I'm doing something wrong with pointers here
EDIT: Heres the updated insert code. I'll try asserting it, but see if I'm still making a mistake
bool SortedList::insert(Student *s){
bool inList = false;
// create an iterator for the list
ListNode *c... | common-pile/stackexchange_filtered |
Symfony - List of form fields in event
Is possible to get some list of fields in FormEvents::PRE_SET_DATA?
I need edit entity which I put to Form by Event. Entity contains PersistCollection which I need transform to ArrayObject.
I would like created on automatic for many entities. I need list of fields (names) for data... | common-pile/stackexchange_filtered |
How can I set the code to become an Auto Filter instead of creating a command button?
I would like to convert this code into an autofilter instead of having a command button. Any help is appreciated, thank you!
Private Sub CommandButton1_Click()
Dim ws1 As Worksheet
Set ws1 = Worksheets("Sign-ons")
Dim ws2 As... | common-pile/stackexchange_filtered |
Passing values for method
I beginner for programming. So can you please show me how to pass values for your compile() method.
class CL
{
private const string clexe = @"cl.exe";
private const string exe = "Test.exe", file = "test.cpp";
private string args;
public CL(String[] args)
{
this.ar... | common-pile/stackexchange_filtered |
How to get a masked rgba array from a ScalarMappable object
The docs for to_rgba state:
Note: this method assumes the input is well-behaved; it does not check
for anomalies such as x being a masked rgba array, or being an integer
type other than uint8, or being a floating point rgba array with
values outside the... | common-pile/stackexchange_filtered |
Generate random number with quantity
I have questions how can I set the quantity of numbers in the result box based on the selected value in dropdown
This is my code
if (!string.IsNullOrEmpty(TextBox1.Text) && !string.IsNullOrEmpty(TextBox2.Text))
{
string totalListNumber = "";
for (double x = Convert.ToDoubl... | common-pile/stackexchange_filtered |
Disable mouse drag on slider
In my WPF window, I have a button and a slider.
Fist of all, I drag the slider to a value say 5. Once I click the button, a parallel processes runs, which means 5 tasks are running. When a task is done then the value of the slider is decremented. When all tasks finishes, the valus of the s... | common-pile/stackexchange_filtered |
style/Base.AlertDialog.AppCompat not found
I had a power cut, and after opening the android studio, I get this error every time I open android studio, my files- all of them are affected by this.how to fix it?
Error:resource style/Base.AlertDialog.AppCompat (akacom.example.patta.avoid:style/Base.AlertDialog.AppCompat) n... | common-pile/stackexchange_filtered |
How to make declared statements from form1_load available in private functions?
In my form1_load I declare:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim name As Integer
'Lave boardet med to forloops
For j = 0 To 7
For i = 0 To 7
'Definerer boa... | common-pile/stackexchange_filtered |
Getting user email from Google Plus authentication, without GET_ACCOUNTS permission
Is it possible to retrieve the user's email address after the user authenticate with their G+ account (Using G+ Android SDK)?
I know you can do that if you ask for GET_ACCOUNTS permission, but then I wouldn't need the G+ login...
If a... | common-pile/stackexchange_filtered |
How to run sql query for each row value using set based approach
I have following code placed inside a cursor and have to remove cursor due to performance issue. I am trying to use set based approach, with this I have to replace @OriginalValue and @Per_Month variable with SQL query as per set based approach but at the ... | common-pile/stackexchange_filtered |
Converting a json object to a table in reactjs
Hello I have the following JSON stored with redux. This json includes assessment criteria (i.e., rubricItems), and per each criterion, the scores assigned by different users.
rubricItems: {
'1': {
id: 1,
title: 'The code properly uses the loops to minimize hard... | common-pile/stackexchange_filtered |
UserControl that works with its own data
I have a user control with a TextBox (Y) and a Button, in my MainWindow(Y) there is another TextBox. When you press the Button a message pops-up and shows us the product X*Y.
Right now if I just simply insert via XAML another as it's bound to some data both UserControl, the ori... | common-pile/stackexchange_filtered |
If |a-b| < and |c-d| < , is it possible to say anything about |ac - bd|?
I'm trying to prove that $|ac - bd| < \varepsilon$ and I can show that $|a-b|$ and $|c-d|$ are arbitrarily small.
Additional note: $b$ and $d$ are constants while $a$ and $c$ are not.
Consider $ac-bd=c(a-b)+b(c-d)$
That helps a lot with the pro... | common-pile/stackexchange_filtered |
Attempting to INSERT multiple rows into MySQL table
Currently I'm trying to insert multiple rows into a MySQL database with the following code, however I keep receiving error 500 (Internal Server Error)...I'm I doing something in correctly here? I'm relatively new to PHP. Thanks
for ($i = 0; $i < $numberOfOptions; $i++... | common-pile/stackexchange_filtered |
Validation loss fluctuating while training the neural network in tensorflow
While training my convolutional neural network to predict emotions, I displayed at the same time the training and the validation data loss. The training loss appear to decrease over time, while on the other hand, the validation data loss has so... | common-pile/stackexchange_filtered |
Close Opened Hibernation sessions if exist
When a Hibernate session is opened (sessionFactory.openSession()) it might be closed. It is ok. In case it is missed to close an opened session which is used to retrieve data (not to save or update or delete) any where in the application, how to close opened sessions if exists... | common-pile/stackexchange_filtered |
Newbie question about Edimax EW-7811UN
I recently installed elementary 0.4 and I haven't downloaded os updates yet.
The Edimax EW-7811UN wi-fi usb dongle works right off the bat with elementary.
Problem is, it also used to work with ubuntu, but after a recent kernel update ubuntu would freeze the moment the dongle wou... | common-pile/stackexchange_filtered |
What is best practice for reading all bytes from tcp socket in windows phone?
Windows Phone SDK does not have NetworkStream and all operations for communicating with servers should be asynchronously.
So in normal .net application I can use something like that^
var stream = socket.GetStream();
while ((read = stream.Read... | common-pile/stackexchange_filtered |
How to create an overlapping circle shape with the same gradient
Basically, is there a way to do this in Illustrator using a single stroke (or shape)?
I could replicate it using two strokes, and the result was almost the same, but is there some command or technique I'm missing that allows to do it with a single stroke?... | common-pile/stackexchange_filtered |
Am I Talking CRUD, or Something Else?
I've been developing PHP sites with more complexity lately. Registered users need to be able to interact with the site and submit materials to it via forms, and have control of their own submissions.
In summary:
Present forms to users,
Form submissions are transformed into pages ... | common-pile/stackexchange_filtered |
Unable to connect to broker using TLS librdkafka
I'm quite new at using this library in conjunction with confluent kafka python. I have an envrioment in JAVA KAFKA - in which i'm able to successfuly connect to the broker and I want to do the same thing on the python client. For JAVA KAFKA i created a .csr and have a .k... | common-pile/stackexchange_filtered |
Why does r-value reference to object generator call require copy constructor?
I'm getting trouble with the following code with Visual Studio 2010 C++.
makeA() is just an object generator idiom in C++ (like std::make_pair)
#include <stdio.h>
struct A{ // 7th line
A() {}
A(A &&) {printf("move\n");}
~A() {pri... | common-pile/stackexchange_filtered |
What is the specific advantage of a blade server for virtualisation?
We are planning to implement a VDI Solution. We had some discussions about Blade vs Rack. As we are only planning to implement 75-100 Clients, we calculated, that we would need 2 Servers with Dual 8C Processors - and a shared storage server. This calc... | common-pile/stackexchange_filtered |
Linking to brew openssl via python virtualenvwrapper
Running openssl version returns the standard openssl on OS El Capitan, OpenSSL 0.9.8zh in /usr/bin/openssl.
I've installed the latest via brew brew install openssl. Various post/articles recommended manually symlinking to /usr/local/bin/openssl or running brew link -... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.