text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Swift - UIProgressView is not smooth with NSTimer So I am using an NSTimer to let the user know the app is working. The progress bar is set up to last 3 seconds, but when running, it displays in a 'ticking' motion and it is not smooth like it should be. Is there anyway I can make it more smooth - I'm sure just a cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31438305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to use variable and changing user defined functions in query I have defined some user defined function in sql server . for example :
select dbo.SumItems(1 , 2) will return 3
and
select dbo.MaxItems(5 , 3) will return 5
and some other functions may be more complicated.
also I keep variables and their formula e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41003935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to split CSV rows then duplicate that row? I have a CSV file from which I need to generate a new file with new rows. I have some experience in Bash and Python.
Example:
Source
Country A,Place1;Place2;Place3,Other info
Country B,Place4;Place5;Place6,Other stuff
Country C,Place7;Place8;Place9,Other examples
Targ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57874901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is the best way to check session in codiginator everytime make a new request i know how to use session in codiginator but i am facing the problem with session management and little bit confuse ie how can i check every time a valid session in controller.
i do this by using
<?php
defined('BASEPATH') OR exit('No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39846604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert spaces to newlines in text file using Python I have a text file which looks like this:
15.9 17.2 18.6 10.5
I want to edit this file in Python so that it looks like this:
15.9
17.2
18.6
10.5
This means that I need to replace the space strings by newline strings and save the text.
I tried this but it doesn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57387805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Return Link Addresses of Titles on Google SERP I'm trying to get all link addresses that are hyperlinked on titles for a Google Search results page. Also trying to append it to a CSV file which I think I've got pretty straight as of now.
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69019141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programming Google CardDAV in Python I want to obtain my Google contacts through the CardDAV protocol using preferably Python (open to other languages).
I've come across the pycarddav library, but it only works with SabreDAV/DAVical servers, not Google for example.
How one would go about programming an interface to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16844701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CMake: Replace a literal citation mark with an escaped one I have a string containing something like this:
Hello "there" happy face!
and I want to do a string(REPLACE ...) in CMake so that it becomes:
Hello \"there\" happy face!
How do I do this?
string(REPLACE "\"" "\\"" TARGET "${SOURCE}") does not work
A: I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24563035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone App with Activation Key I am asked by a client to build an iPhone app which works as follow:
*
*User download the App for free from iTunes
*User enter their email address when they first launch the app
*They will be emailed activation key
*User launch app and then enter this activation key to start usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8508850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I find the most recent joda DateTime in map? I have a map that is updated from Firebase Realtime Database, so I don't know the map size in advance.
In the map I have a String as key, and a Joda DateTime as value.
I don't know how to iterate through the map to return the most recent Datetime.
I'll try to expla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60218775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: getting springboot to support groovy 4.0 (apache packaging) | needed 3.0.0-M2 and more spring-boot > 2.3.1 will grab groovy-bom from codehaus instead of org.apache.groovy packaging, even if you declare org.apache.groovy dependendices
I found this means spring-boot > 2.3.1 will not build groovy 4.0
even spring initia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71888383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I insert an item into a List without bumping the item at that index to the back? I'm trying to Insert an item at the start of a list using foo.Insert(0, bar); but it seems that the item that was at index 0 before is getting bumped to the back of the list instead of moving to index 1. I've tried creating a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41428330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Throw runtime exception in Closable.close() During my studies to the OCPJP8 I've encountered one question which doesn't have very clear answer to me. Consider following code:
public class Animals
{
class Lamb implements Closeable
{
public void close()
{
throw new RuntimeException("a");
}
}
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33376813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Obscure Javascript difference between IE / Firefox / Opera Within a "cloaked" site, using obj.innerHTML = something to change the contents of a div seems to screw up the div's position in Firefox and Opera.
Best way to understand the problem is by seeing the code in action. Go to http://www.guggs.net/index_redirecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3895950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Sage Pay have a PayPal-like IPN? I'm building an events system where users can book & pay for tickets - I'm intending to use Sage Pay Form, and have all transaction data held on their servers (I would collect ticket order, customer name & address on the website, then have them POST it to Sage Pay).
The only inf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7257487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding a new and removing previously selected value using ngModelChange I have a select dropdowd on a row colomn and I'm trying to add a new row with a new select box with the previously selected value removed. I used ngModelChange to call a function that assigns the value selected to my ngModel and removes it from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45083624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Probability outputs of MATLAB LIBSVM I'm using LIBSVM toolbox for Matlab. My problem is a binary classification problem with labels of 1 (True) and 0 (False). When I train my system with this function :
svmstruct = svmtrain(TrainTargets, TrainInputs,['-t 2 ' '-g ' SIGMA ' -c ' P ' -q' ' -b 1']);
and test my test ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24825463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Grant appropriate permission to use Symmetric Key in stored proc I created a symmetric key in SQL2012 using the following code (logged in as Windows Admin user):
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '34trg45trgf546t';
CREATE CERTIFICATE SSCert01 WITH SUBJECT = 'SS Certificate 01';
CREATE SYMMETRIC KEY SSN_Key_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22254762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to add online image in epub3 file? I want to include online images in my EPUB3 file but when i validate it it shows me error "Only audio and video remote resources are permitted".when i include it using javascript it is working fine in Android e reader but images are not shown in iBooks.
A: you probably need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14978640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android ArrayList item in ListView So I have this list which uses values from an ArrayList (and I can't use String[] because the user must add items to the list, and I can't do .add to the String[]). But now I have problems with onItemClick method. I want to get the text from item selected, and my book says the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11924065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get system drives through php?
Possible Duplicate:
How to get system info in PHP?
I am building a simple file browser, I want to know as how to get the system information like the total drives and there names through php script?
thanks
A: This is gotten from the manual, and is for windows (Since you didn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8209923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AppCenter build fails with no such module My automatic iOS build on AppCenter fails with the following error (snippet):
ViewController.swift:10:8: error: no such module 'MBCircularProgressBar'
import MBCircularProgressBar
^
But I don't know what the problem might be. I'm using CocoaPods to import that framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49447433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: query with Pointer<_User> in Swift Parse SDK I have a class called Client and this class have a Pointer<_User>. I'm trying to do that the follow way:
query.whereKey("user", equalTo:currentUser)
But this way, no data returns in my query.
Someone have an idea how can I to do this query?
A: You probably need to set t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39522836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SPXERR_GSTREAMER_NOT_FOUND_ERROR when using mp3 file with Microsoft.CognitiveServices.Speech I have this piece of code throwing the wrror in the title:
using (var audioInput = AudioConfig.FromStreamInput(new PullAudioInputStream(new BinaryAudioStreamReader(new BinaryReader(File.OpenRead(audioFile))), AudioStreamForm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63358132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sequelize always timeout when row doesn't exist in database i have a get for an user with sequelize on a nodejs server :
router.get('/:id', function (req, res) {
models.user.find({
where: {
id: req.params.id
}
}).then(function (result) {
if (result === null) {
res.status(20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41057465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove maven artifcat completely from SpringSource? I have a local maven repository and installed a custom artifact. It works if i reference it in other projects. But now i want to use a server for a "own maven repository". If i delete the artifact from the local maven repository, i assumed that the project w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24785327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying To Delay the Appearance of JLabels in a JDialog Hi I've there a little problem: What I want is to delay the appearance of JLabels in a JDialog-Window, in terms of that the first line of JLabels shoud come out and then two seconds later the second line of Jlabels etc.
I've tried something with Windowlistener,t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25025666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Convert IIFE module to something importable by RollupJS I am using RollupJS as a bundler, and it can read CommonJS (via a plugin) or ES6 modules. But this module seems to be in UMD format, and I am looking for a quick way I can edit it (without replacing a lot of lines) so that it is in commonJS or ES6 format.
What... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47998882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to disable the resizing button in a tkinter gui app? So, I want to build a tkinter app and I need to disable this button...
how do I do that???
A: The following example disables the resizing of a tkinter GUI using the resizable method.
import tkinter as tk
class App(tk.Frame):
def __init__(self,master=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69044950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to effectively refresh many to many relationship Lets say I have entity A, which have many to many relationship with another entities of type A. So on entity A, I have collection of A. And lets say I have to "update" this relationships according to some external service - from time to time I receive notification... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7784778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I setup an Azure Web Farm on multiple VM's using a shared IIS config I setup a VM running Windows Server 2012 R2 (VM1) and configured it to run IIS. I then created another VM in the same region off an image I made from the first (VM2). These two are in their own availability set located in the West US data ce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24770493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twilio Call To Multiple Agents on Form Submit i am having a case where when client submit a form i want my system to call multiple agent if one agent pick call all the calls should be drop
the code i am current using call is dropping all calls after execution of twiml
$data = $req->input();
$action = $app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67021229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Way to set private variable of class having more than one member variable As we can set the private variable of class like this
I was trying to set the private member variable int for below case.
#include <iostream>
#include <string>
using namespace std;
class Test
{
private:
string s;
int data;
public:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41268827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing the Header of urllib2 to get different search results on google Can I change the header on a google query to get the results I would get for mobile?
I'm trying to get different results on google according to different headers in the library urllib2 or requests. I use beautifulsoup to parse the results.
For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65425739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where should rookie go for best SQL tutorial resources? I´m interested in both web resources and books. It´s a jungle out there, please give me a hand.
My goal is to learn the SQL language so I can query Sql Server databases within a couple of weeks.
I´ve got a programming background, and I know some basic stuff abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2895987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Sharing static classes data accross web garden/farm Scenario:
*
*ASP.NET web site
*Global static classes containing TONS of configuration data
*the static data is mostly read-only, but it can change every once in a while
*data in static classes MUST BE real time, at all times
now, this works really great in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1230320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dictionary with arrays of keys and values This question is in regards to javascript or jQuery, whichever will get the job done better.
What I want to do is create an object similar to the following:
var prodItems = [
{
"product": "prod1",
"item": ["prod1Item1", "prod1Item2"]
},
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28003198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bitwise operator in php Here is my code:
(($order['financial_status']!='partially_refunded')?$order['fulfillments'][0]['updated_at']:null)
Here, I want to check, refunded and partially_refunded by using or operator.
Can anyone help me?
Thanks.
A: If I understand you correctly, it's not bitwise you need, but a sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23844305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: predict sequence of tuples using Transformer model I am fairly new to seq2seq models and transformers.
Basically I am working on a sequence generation problem. I want to use the transformer. I am using python and pyTorch.
I know how the transformer model works for a sequence generation like given [1,2,3] it can gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65359224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: compound interest program problem in dev c++ using c I am trying to write a program to print simple interest and compound interest in dev c++ in c programming but it is not printing the correct compound interest can anybody tell why?
here is my code:
#include<stdio.h>
#include<math.h>
int main()
{
int p,r,t,si,ci;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70322098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom NSURLProtocol subclasses are not available to background sessions From NSURLSession.h...
/* An optional array of Class objects which subclass NSURLProtocol.
The Class will be sent +canInitWithRequest: when determining if
an instance of the class can be used for a given URL scheme.
You should not use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34865414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Swing: Click on a button in a frame, show another frame with different components I am developing an application which needs to pop up new JFrame B with different components, when I click on a button on JFrame A. How do I achieve that?
I don't want to use the tabs.
A: Use a JDialog , problem solved!
See this java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8185657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenTK mouse picking I have developed a small C# sample to pick the point by using OpenTK and winforms
There is a method to draw the Squares and there is another method to pick the triangle. Somehow I am not getting any hits. Is there any problem with Readpixel methods? because I just converted Tao picking sample to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16140124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# load txt file and split it to X files based on number of lines this is the code that i've written so far...
it doesnt do the job except re-write every line on the same file over and over again...
*RecordCntPerFile = 10K
*FileNumberName = 1 (file number one)
*Full File name should be something like this: 1_asci_sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46512542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display submitted values from Contact Form 7 form with var_dump() or printr() using plugin hooks I want to see what is inside "$name" variable, how can i do that?
add_action("wpcf7_before_send_mail", "wpcf7_do_something_else");
function wpcf7_do_something_else( &$WPCF7_ContactForm ) {
$name = $WPCF7_Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56468332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: getting HTML source or markdown text from the KDE clipboard with PySide I want to be able to highlight a section of a web page (which could be any web page I happen to be viewing) and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that. I'm on Kubuntu 12.04 and I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16953581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can sqlite `order by` and `where` clause use the Index together Create a table
CREATE TABLE Shares(
shareId TEXT PRIMARY KEY NOT NULL,
fromId INTEGER NOT NULL,
toId INTEGER NOT NULL,
time INTEGER NOT NULL);
And create the index
CREATE INDEX Shares_time_toId_fromId ON Shares(time, toId, fromId);
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38653204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: syntax error ternary operator in erb I have one link in view
<%= @entry.user.present? ? link_to @entry.user.nickname , account_path(:user_id=>@entry.user,:key=>"check" ) ,:"data-ajax" => false : "user" %>
I wrote the above but i am getting syntax error
Please help me solve it.
Thank you
A: You should use parenthe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38121027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Java: how to convert a List to a Map I want to construct a chapter directory. My data structure is as follow.
private Map<String, ChapterPage> chapterPageRel;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public static class ChapterPage {
@ApiModelProperty(value = "page list")
private List<Integer> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72308085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are async state machines classes (and not structs) in Roslyn? Let’s consider this very simple async method:
static async Task myMethodAsync()
{
await Task.Delay(500);
}
When I compile this with VS2013 (pre Roslyn compiler) the generated state-machine is a struct.
private struct <myMethodAsync>d__0 : IAsyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33871181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Combine multiple rows into one in SQL In sql server 2008, I have a table that has the columns [a],[b],[c],[sort] and it has 4 records:
1, NULL, NULL 0
NULL, 2, NULL 1
NULL, NULL, 3 2
10, NULL, NULL 3
I need to combine all the rows in a way that i get one row as a result, and for e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12134305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Pygame Sprite unresponsive, mac First time building a game in python, let alone pygame. When I launch the code the window with the desired BG comes up, and my Sprite loads where I want. However, the Sprite doesn't move despite all efforts. I've scoured this site and other for resolutions but to no avail.
Note: I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62597494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to remove margin on html css mobile responsive form? I created the following code, but when I try to move to the mobile version there is a margin on the right side that doesn't let the page fit on the screen, and it doesn't look good.
I don't know the exact reason why it is there, that is why I share most of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67291436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pagination on Pyrocms pages I am currently displaying a list of products on pyrocms page. Using plugin i get the products from db tables and display them as a list i want to use pagination but have no idea how to use it and where to start from. Does any one know any tutorial or have some suggstion?
A: You won't nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12086615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what's the mean of the code about btrace In the following code:
import static com.sun.btrace.BTraceUtils.*;
import com.sun.btrace.annotations.*;
import org.jboss.deployment.DeploymentInfo;
@BTrace public class Trace{
@OnMethod(
clazz="org.jboss.deployment.SARDeployer",
method="parseDocument"
)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19429895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serilog ExpressionTemplate rename log level and apply formatting I'm trying to use serilog's ExpressionTemplate and write the log level in the following way:
{ "level": "INF", ... }
I know how to alias @l to level - level: @l
and I know how to format the level to three upper-case letters - @l:u3 but I'm unable to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72167523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set an object reference I am not sure how to set an object reference to frmD.Picture1.ClientRectangle?? I am using win7 and vb.net 2008
frmD.Picture1.ClientRectangle=new frmD.Picture1.ClientRectangle???
'error object reference not set ....
xpos = frmD.Picture1.ClientRec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13328545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Slider - Moving Sliders at the same time I have three sliders as follows:-
<div class="slider" data-min="3800" data-max="30000" data-value="3848" data-step="500" data-target=".calc-deposit"></div>
<div class="slider" data-min="15400" data-max="120000" data-value="15393" data-step="2000" data-target=".calc-loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34903438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Http Post to WebApi Angular 5 I have w big problem with request from angular 5 (localhost:4200) to my .NET Core WebApi (localhost:55007). I think I tried everything and all lost..
Situation looks:
login.service.ts
import { Injectable, Inject } from '@angular/core';
import {HttpModule, Http, URLSearchParams, Headers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49592619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Php - Zend 2 lock cache file after read I am using zend 2 cache and I need modify a cache file and make sure no other process read the file while I am doing that.Is there a way to lock the cache file after read it then write and unlock ?
I am more interested if Zend 2 cache already allow you to do that and if not wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31512126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular JS view not updating I am trying start with promises and angularJS.
My backend is returning the correct values, but my html view doesn´t show my table with the data returning from backend.
What is wrong here?
Here is my HTML:
<div ng-app="clinang" ng-controller="pacientesCtrl">
<a class='btn btnprimary... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42115623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Firing the select event on click for jQuery autocomplete After playing around with jQuery's autocomplete feature a bit, I couldn't get the select event to fire onclick. Which is strange because the onfocus event fires when the mouse is dragged over each element in the list. From what I've tried so far, it doesn't lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8158246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Importing Spark avro packages into a dockerized python project to import avro file in S3 I am trying to read some avro files stored in S3 bucket with the following code. spark version is 2.4.7
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('Statistics').getOrCreate()
sc = spark.sparkContex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68320603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update Dataset Parent & Child tables with Autogenerated Identity Key? I am using ADO.NET Datasets in my VB Applications. I have a typed dataset with one Parent table and many child tables. I want to generate Identity Key when I insert data into Parent Table and then update the data in all child tables with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/931630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to write data from an AJAX request to DATA in VUE JS? Tell me please, how in DATA to write data from the AJAX response?
Example:
var example = new Vue({
el: '#example',
data:{
myArr: []
},
created: function () {
$.getJSON('data.json', function(data) {
this.myArr = dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43768333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use webchimera.js/node.js for rtsp streaming In my web application i am using VLC player to play RTSP streaming, but now chrome has completely stopped NPAPI. After this my customer couldn't stream their camera in the browser.
My manager suggested me to use webchimera.js and node.js to test streaming in browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32605370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ember's volatile and templates I have a property mood which is part of the interface for a component. Behind the scenes I have a computed property called _mood:
const { computed, typeOf } = Ember;
_mood: computed('mood','A','B','C' function() {
let mood = this.get('mood');
if (typeOf(mood) === 'function') {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30189542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EXCEL VBA Filter user input MY inputbox allow user to input a value into a cell. Therefore I wish to filter some input like =SUM(A:A) and ' which will show nothing, and other formula or possibly entry that will affect the actual value. Thanks in advance.
Private Sub testInputBox_Click()
Dim x As String
Dim y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16161939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django- CMS: Plugin position in a placeholder I was looking for a way to check the plugin's position within a placeholder in Django-CMS. I found this question Detect last plugin in a placeholder
Is "plugin" a django cms keyword? I can't find documentation about it.
My question is: How can I obtain information about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12977863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I run a program from visual studio without elevated permissions? Okay, so originally I was going to ask about dragging and dropping in Windows 7. I found the answer I was looking for here: C# Drag drop does not work on windows 7. Basically it says that since I'm running Visual Studio (and subsequently, my prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3677854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delete file with BIM360 API Issue My aim is to Upload files into a specific subfolder of the "Plans" folder. The first problem I got was that I can only upload a file with version 1, when I use the API. So I decided to copy all files from the specific folder into an archive folder. Now I can delete all files from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59036025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML page is appearing different in Mozilla Firefox and Internet Explorer Hey guys, i have recently created a HTML page but it is appearing differently in Mozilla Firefox and Internet Explorer. I have uploaded the page on ripway. Here is the URL http://h1.ripway.com/gurusmith/My%20site/Index/index.html
Please watch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5444457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: chrome filesystem - rename a directory In the new chrome filesystem api, how do I rename a directory?
moveTo() on the directory itself doesn't seem to work, and I don't want to iterate over all the files in the directory.
Is there a simple way to just rename it?
thanks!
A: This worked for me, can you give some more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32615032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js server on raspberry Pi 3B unreachable from React Native app after few succesful iterations I'm currently working on a simple React Native which sends to a Node.js server hosted on a Raspberry Pi3B an order to switch on or off a led.
React Native code :
import React from 'react';
import {StyleSheet, Text, Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53932582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Play mkv file with included srt using python-vlc When I want to start to play an mp4 file from python using python-vlc, I will do
import vlc
from time import sleep
movie = "/path/to/movie.mp4"
subs = "/path/to/subs.srt"
i = vlc.Instance()
media_player = i.media_player_new()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60855805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove special characters from excel(xlsx) file using python3? How to extract all the rows from excel file using python3 and remove special characters?
Table.xlsx
Tablle.xlsx
import xlrd
loc = ("Table.xlsx")
wb = xlrd.open_workbook(loc)
sheet = wb.sheet_by_index(0)
sheet.cell_value(0, 0)
print(shee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55494593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Violin plot of a list of arrays I have some data in the format:
[array([[0, 1, 2]], dtype=int64), array([[1, 2, 3]], dtype=int64)]
My data can be generated using:
di_DFs = {}
groups = [1,2]
for grp in groups:
di_DFs[grp] = pd.DataFrame({'A' : [grp-1],
'B' : [grp],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63884251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disable scrolling with panel animation In my navigation, the contact link slides down a panel which overlays on top of the site like so:
When the panel slides down I do not want the user to be able to scroll down below the panel. Basically, I want to disable scrolling on the page. If there is more content than avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17352352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: best practice for header.php with div? I have a page including a header, which is a div containing two sub-divs. I am wondering whether it is better to require header.php inside the header div, and have header.php create the two subdivs, or whether I should require header.php at the start of the script and have it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13372548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Login PHP Session gets cleared when chrome closes, persistent in Firefox My login script:
if (login_user($user_login, $password)){//Login check is verified
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 365);
ini_set('session.gc_maxlifetime', 60 * 60 * 24 * 365);
session_start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50172401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pyspark 2.6 How increase a value column I'm training in Pyspark using the cloudera virtual machine that is coming with Python 2.6.
I read already the file in a RDD. I need to increase the number in one of the file columns.
structure file:
student,grade
Owen,4
Andres,3.9
Leidy,4
Flor,5
Jhon,4
Paola,3.8
My code to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48414420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to optimize this array loop I have array which contains info about many flights. I want only the five lowest prices.
First I make a loop to sort array by price.
Second I print first five array
But it takes more time..How can I reduce this time?
foreach ($flights_result->json_data['response']['itineraries'] as $k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19033833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Prevent datepicker from triggering parent mouseleave I display an absolute div with a jQuery $.animate({height: 'toggle', opacity: 'toggle'}) on a jQuery $.hover().
I have a jQuery UI datepicker attached to a div within the aforementioned absolute div with changeMonth: true and changeYear: true.
When a month or year... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16195454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing React Function in Meteor I have :
addW () {
code
code
}
render () {
return (
html code
html code
<button onClick={this.addW}>Add</button>
)
}
For some reason, I get an error :
this.addW is not a function. Why is it not finding the function above?
TY!
A: Maybe you are miss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36586792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use out from Jquery as variable for php Query I have this code below which display the item that has been clicked using Jquery
<html>
<head>
<?php include('config/js.php');?>
</head>
<body>
<div id="target">
<h4>Hydraulics</h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34748634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Putting a CGImageRef on the clipboard I'm trying to copy a CGImageRef to the clipboard pasteboard. I found a function that claims it should do this by creating a destination from (zero sized), adding the image to the destination, finalizing, then PasteboardPutItemFlavor the ref into the clipboard.
However it doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/462982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I assign the result of iPython profiler %%prun -r to a variable? In the docs of the iPython magic functions it says:
Usage, in cell mode:
%%prun [options] [statement] code... code...
In cell mode, the additional code lines are appended to the (possibly
empty) statement in the first line. Cell mode al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36773106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a new MailAddress produces "The specified string is not in the form required for an e-mail address", although it is in the correct format I am trying to create a new MailAddress, the email is coming from Request Parameters, that is: Request.Params("fromEmail"). It is actually being sent from an android devi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7670787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple str_replace() making things wrong - WordPress I need some special filtering to certain text all over my website, like below:
function special_text( $content ) {
$search_for = 'specialtext';
$replace_with = '<span class="special-text"><strong>special</strong>text</span>';
return str_replace( $searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24942355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: loading styles from remote json file - React Native I am trying to use styles / colors from a JSON file that exist on a server, so I am using useEffect function to load the style variable and pass them to stylesheet. But issue is fetching data from remote file takes some time and stylesheet doesn't load styles.
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69448632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: leanModel ajax call Hi how i can render a different form using leanModel dialog box? Currently this is how the lean model works:
<a id="go" rel="privateMsg" name="signup" href="#signup">With Close Button</a>
<div id="signup" style="display: none; position: relative; opacity: 1; z-index: 11000; left: 50%; margin-lef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14189219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Q Network Access manager in pyQt Python (Segmentation Fault Core Dumped) i have developed an application using pyQt in python and using a web browser and a table to show the headers coming with the browser request.
here is my code:-
import sys
from PyQt4.QtGui import QApplication, QTableWidget, QTableWidgetItem
from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37018084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use getJSON sending data from prompt var to PHP? I Created a button that when onclick he delivering a prompt message in order
The user will enter a free text.
Now I need to use this free text and pass it as var input with GET method to external PHP in my system.
I have tried using the getJSON method to do the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31947897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do I need getPointResolution when creating circle polygons in Openlayers? So I saw an example of creating a polygon circle to scale. That is the actual distance from the point of interest to the how far the radius is.
map.on('postrender', function (event) {
const { projection, resolution, center, } = e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65887948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google genomics bigQuery difference tables data description
I would like read all the calls in a specific region of the genome. regardless of the genotype (equal to the reference genome or alternate, coding or non coding region). Assuming that all genome was sequenced. Which of the following tables should I look at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47678942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 301 redirect to a php redirect - bad for SEO? So my company has a huge website with over 7000 static pages. I have been tasked with creating a new website and attempting to account for all of the content. One way in which I've been able to do that, is by using a hash in the url to direct an AJAX call to pull content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31035904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: cuda nppiResize() for RGB images nVidia Cuda nppiResize_32f_C1R works OK on grayscale 1 x 32f, but nppiResize_32f_C3R returns garbage. Clearly, a work around would be to call this routine 3 times by first de-interleaving the data as planar R, G, B, but I was expecting to be able to run it through in a single pass. n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58159930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Start & stop a continous function with Gtk Switch I have a issue where I want a Gtk.Switch to start and stop a function. This function should work as long as the switch is active. For example it could just print "Function is on" as long as switch is active.
But unless I thread this function it will freeze GUI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45899107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF Authentication with ClientCredentials error I am trying to connect to a WCF service but when I do I get this error:
The HTTP Request is unauthorized with client authetication scheme 'Anonymous'. The authentication header received from the server was
'Basic realm="ServiceGateway"'.
I know I do authentication... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23624835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change name of the folders when copying multiple folders in PowerShell? This is my code right now:
[int]$NumberOfProfiles = Read-Host "Enter the number of Portable Firefox profiles You need"
$WhereToWrite = Read-Host "Enter the full path where You'd like to install the profiles"
$Source = Get-Location
$Fold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24282993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.