text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Android, BottomNavigationView, set weight for each item? I am using Bottom navigation bar in my app. It contains 3 items as in below:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43777208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenCV with XCode GUI and c++ Is it possible, using only c++ to design an opencv GUI using XCode's Cocoa Framework?
A: You can use this c++ library wxwidgets. Add the path to xcode and it should work fine.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/36532140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: counting occurrence of name in list of namedtuple (the name is in a nested tuple) As the title says, i'm trying to count the occurrence of a name in a list of namedtuples, with the name i'm looking for in a nested tuple.
It is an assignment for school, and a big part of the code is given.
The structure of the list i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26683155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CS50 Why can't my code crack a four digit password? I've encountered a problem in C that held me for the past 6 hours, and after research and studies, I decided to seek for help! Sorry, my English is not my first language and I am a beginner coder.
I am able to crack all passwords that are three digits long. Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53133629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to SPLIT cell content into sets of 50000 characters in new columns Google Sheets I have 3 columns A, B & C as shown in the image. Column A contains the search key. The second column B contains names and their respective content in the third column C.
I am filtering rows that contain the text in A1 in B:C and con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68166267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would I write a malware detection software? What are the resources I need to go through to fully understand how this works? I've looked up online but all I got are software solutions rather than how the software actually detects them.
I want to be able to detect a malware that's in my computer. Let's say there's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41392665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Salesforce - Eliminate the "Action" column in the support view The support view has the "Action" column. How do you disable it? The end users do not need this column, and it takes up so much space.
See screenshot
A: I've successfully used Adblock plus to remove elements from the view. The action column has a uniq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16699460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kendo UI Angular Upload File to Backend as Node.JS I am using Kendo Upload Control to upload files to Node.js backend which used GridFS multer.
Angular
<kendo-upload
[saveField]="file"
[withCredentials]="false"
[saveUrl]="uploadUrl"
(autoUpload)="false"
[multiple]="false"
(select)="selectProfilePic($ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57136218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UITextView is partially scrolled down when view opened I create a UITextView and add a lot of text to it. When I launch the view, the UITextView is always partially scrolled down. Of cause the user can scroll up, but it just feels weird.
What happens? Did I miss any obvious settings?
Please refer to the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29547361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using StepVerifier in a parallel testing environment I am having some trouble when using StepVerifier's withVirtualTime and create methods in a parallel testing environment.
private static final Duration DELAY = Duration.ofSeconds(1);
public void testA() {
StepVerifier.withVirtualTime(() -> Mono.just(1).delayE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57509263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# item Drag Fix I move three controls using this code on MouseMove Event :
if (inHareket)
{
GelenResimcik.Left = e.X + GelenResimcik.Left -MouseDownLocation.X;
GelenResimcik.Top = e.Y + GelenResimcik.Top - MouseDownLocation.Y;
GelenResimcik.BackColor = Color.Transparent;
ResimHareket.Left = e.X + R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40845162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert Element between each List element Is there a better way to insert an Element between each pair of elements into a List in Java than iterating through it
List<Integer> exampleInts = new ArrayList<>(Arrays.asList(1,2,3,5,8,13,21));
for (int i = 1; i < exampleInts.size(); i++) {
int delimiter = 0;
exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31160854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Displaying XML in JSF I have a method that gives back a formatted XML string. I want to show that on a JSF page in a nicely wrapped, readable way. I used this solution first.
<pre><h:outputText value="myBean.xml"/></pre>
The result is indented, but it doesn't wrap very long lines (with a lot of attributes for e.g.)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1656033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Understanding the slicing syntax in Numpy? I have an x dimensional matrix in Numpy. For this example, I will use a 2x2 array.
np.array([[2, 2], [3,3]])
How would I alternate adding a row and column of some value so the result would look like:
array([[2, x, 3, x],
[x, x, x, x].
[2, x, 3, x],
[x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54613544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a easy way to filter mulitfield in django's admin site? The Model:
class Person(Model):
(...)
fathers = models.ManyToManyField('Person', related_name="fathers_children", blank=True)
mothers = models.ManyToManyField('Person', related_name="fathers_children", blank=True)
sex = models.CharField(nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40308948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adjusting of php.ini I know that it is possible to set parameters in php.ini like this:
error_log = "%sprogdir%/userdata/logs/%phpdriver%_error.log"
How can I properly run php using command line and set these parameters? Similarly:
php -c path/to/php/ini [here something like this: %sprogdir%=path1 %phpdriver%=path2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20811313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dismatched image texture with geometry I have created a planegeometry and a texture which is made by ImageUtils with CanvasRenderer,
and then I created a mesh and finished all relative parameters'settings. The result is that a PlaneGeometry with the image
texture in the space,but a diagonal line is showed up,what'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13192741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Window in tkinter automatically closes I have some code here that I copied from the tkinter tutorials so I am sure it is 100% correct:
import tkinter as tk
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66513049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compare two files in two different folders and replace it by the newer With this VBScript code I was able to copy files. If the file exists it does nothing, if not it will copy the files needed.
Dim Photo
SourceFolder = "C:\Photo1"
DistinationFolder = "C:\Photo2"
Set ObjPhoto = CreateObject("Scripting.FileSystemObje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30530377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: using cURL to retrieve JSON data for use with jQuery I've been reading this helpful post:
http://techslides.com/hacking-the-google-trends-api
It shows how you can use cURL in command line/terminal to request data from google trends, for example;
curl --data "ajax=1&cid=actors&geo=US&date=201310" http://www.google.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36108881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prevent a click on the underlying element? How to prevent a click on the underlying element? When I hover the mouse over the board on the website https://08ce2429.my-trello-frontend.pages.dev/ - the label "Delete board" appears, when I click on it, the board is deleted, but the board page also opens. How to p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74495913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why is it possible to set a value in a slice using reflection? According to The Laws of Reflection it is not possible to set the value of an element as follows, you need to use its address.
This will not work:
var x float64 = 3.4
v := reflect.ValueOf(x)
v.SetFloat(7.1) // Error: will panic.
This will work:
var x fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24440902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Proxy error: Could not proxy request /send from localhost:3000 to http://localhost:3001/ I'm sending some data from my ReactJS front-end application to my node/express backend, however, whenever I send the data, I get the error message mentioned in the title.
https://ibb.co/KbpwqZv
contact.js
This is my react js c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65760459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to mass update in Eloquent given an array of keys and values efficiently I have a very large (millions of rows) database table where I need to add some missing data from a 3rd party to every row.
The data source has a 'reference key' which is my only way to map to the correct item in the table
Each row needs 1 n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69988880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i get the position in the Array list model class in the Observer using Live Data? Observer<ArrayList<ActionModel>> arrayListObserve=new Observer<ArrayList<ActionModel>>() {
@Override
public void onChanged(@Nullable ArrayList<ActionModel> actionModels) {
Action1.setText... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55156848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using repeat.vim for keymapping I'm trying to set a custom keymapping to do debug-stepping with gdb and pyclewn, like this:
nnoremap <leader>ds :Cstep<CR>
Now when pressing . I'd like this to be repeated, since stepping is probably something I'm going to do often. I found repeat.vim and a helpful SO answer, so I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17590186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shinydashboard 'topbar' Is it possible to place some items in the horizontal bar next to the dashboardHeader? I know you can place notificationItem on the far right like in this example. But I would like to use the same options as in dashboardSidebar like adding filters etc. I want such a filter on top:
A: Hi You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40396410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to find gzip file is empty compressed file How to find gzip file is empty using perl
a.txt.gz when i uncompress its empty
how to find the compress gz are empty ?
A: You can't directly get the size of the uncompressed file, but you can use seek for it. Create an object from the file and try to seek to the fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6153358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java Swing Window is Too Tall I am building a small application using Java Swing. The application will be used on several different computers. I am using a GridLayout. The problem is that the window is not adjustable since I show the gui like this:
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
addComponent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29292948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to open iOS app from browser? I have to open my iOS app whenever user open a link of my app in browser. I have already used a like myApp:// but i want to open my app even when user open an http link a from browser. Just like pinterest. Pinterest opens app even if i open a regular http link like this http://www.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23077411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: laravel validate conditional image field i have a field that required, and can be 2 value type : String (path) and Image file
how can write validation rule for this ?
if value is string check file_exist and if is file must be image
thanks
A: Maybe there's an easier way to do this. However, I think a custom rule as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54168048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Catch Spotify app events in the background I'm observing changes on the Player model and console.logging the currently played song.
When I switch away from the app it works fine - but only for a minute or so.
Is there a way to keep the app alive?
A: Currently, the app object only lives on for 60 seconds after the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10542621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pass id from button to modal <div class="panel panel-default">
<div id="view_query">
<div class="panel-heading">
<h3 class="panel-title">Reply Query</h3>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-hover table-bordered" id="example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35823856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to automatically setup Google Account in Android Emulator I am trying to do some Android Automation using Python/Appium on GitLab.
I have found the way to create and launch the Android Emulator using the command line options.
But when the emulator opens, it requires the Google Account Setup in order to use Play ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71892337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Click A button faster We are playing a clicker game on a website where a button will be displayed at a random time, first 7 players to click it will be shown as the winners of that round. I wrote the clicker function bellow and always use it on my Chrome console.
(function () {
setInterval(() => {
const button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75268109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: HTable.get(List) results order What is the order of the Result array returned by a call to HTable.get(List<Get>)?
I mean, is correct to assume that is the same order of the input list?
A: The order in the result array will be the same as the order of the input list. Like the batch method, the ordering of execution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12270821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change colors of solid in drawable selector I have the following drawable:
<item android:state_pressed="true" android:text="texting .....">
<shape
xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<stroke android:width="@dimen/circleStrokeThickness" android:color="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35337482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Integrating Robolectric and Cucumber I want to combine both Robolectric and Cucumber (JVM).
Currently I have two classes ActivityStepdefs where two step definitions for activity management are defined.
My second class is RoActivity Where for example an activity is created from it's class name, and where Robolectric ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16761357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What the best way to display html in the recyclerView? In the recyclerView I display comments. Comments are stored as HTML.
I tried to display the comments in webView - all displayed well (with the ability to use custom *.css) but recyclerView significantly retarding while scrolling. And I was not able to make it "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37887769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inserting Row and getting Id, get error I insert a value / new row and I need the ID, but I get an error...
SQL code:
INSERT INTO [StoneTable] ([StoneName]) VALUES (@StoneName)
SELECT SCOPE_IDENTITY()
Using this code to insert row and getting the ID:
stoneTableTableAdapter = new StoneTableTabelleTableAdapter();
int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8377589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use div's height to determine another div's padding or margin-top I am using the following jQuery to work out the width of a div (thats in %), to then tell another div to set it's height to that in pixels.
<script>
$("#top").height($("#left").width());
$("#bottom").height($("#left").width());
</script>
It's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17005933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to divide workers and aggregate results? Given a payload submitted to a parentWorker:
*
*I divide the work amongst otherWorkers and I add the taskId of the parentWorker as an additional property in the payload
*each of the otherWorkers finish what they are responsible for
What I want is to know if 5 or 10 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37865739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android list point to position I have 3 items in my listView, problem is that the pointToPosition() method is returning 1 for first item in the list and -1 for third item in the list. The rawx and rawy positions are correct as they match the dX and dY positions given by the device dev tools. I can not therefore work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29055509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Box2d: Place object besides another one precisely? I was wondering about how to place fixtures right beside another one. Btw. I have probably confused myself.
So here is what I want to do:
LIKE THIS ILLUSTRATION
Could I just accomplish this by applying the sum of something like this positionX of leftWall + sizeX/2 o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42051227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery drop down menu strange behavior My Problem (Fiddle)
My problem is that on my jquery animated dropdown menu, when you hover over the "Other" link, the sub menu does not appear. When using firefox to 'Inspect Element', I find height is animated, and the width appears to be alright, yet all I see is the left bor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12097965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem while extracting data from api in react I have created an API to access data from the database. I have fetched the api data using axios and I want to display it. I have mapped the data, but it returns empty array for the first time.
const ExpenseList = () => {
const [result, setResult] = useState([]);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75121344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: string.Format give wrong thousand seperator in html razor C# block string.Format("{0:#,0}",19091507)
string.Format give wrong thousand seperator in html razor C# block
Expected Output : 19,091,507
Current Output : 1,90,91,507
Please help me.
A: You can try following.
int @value= 19091507;
Console.Wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71436968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the position of equal elements in a matrix using Matlab Suppose I have:
m = [1,2,3;1,4,5;6,4,7]
I want to get a list containing the positions of the elements in the matrix m so that the positions of equal elements are grouped together. The output for matrix m must be:
{{1,1},{2,1}},{{2,2},{3,2}},{1,2},{1,3},{2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37602059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JAVA a reliable equivalent for php's MCRYPT_RIJNDAEL_256 I need to access some data that used PHP encryption. The PHP encryption is like this.
base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($cipher), $text, MCRYPT_MODE_ECB));
As value of $text they pass the time() function value which will be different each t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26562421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Moving back to the the previous fragment tab (KEYCODE_BACK) Moving back to the previous fragment tab (KEYCODE_BACK)
I have something like
TAB
FA – FB –FC - FD
How can I implement something that when the back button is pressed it moves to the previous fragment i.e. from FD-->FC and from FC-->FB and from FB-->... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39351659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can not install Entity Framework Power Tools Beta 4 on VS 2013 express Desktop Edition This is my first post and I hope that it meets all of the requirements!
System:
Windows 10
VS 2013 Desktop Express
I am attempting to install Entity Framework Power Tools Beta 4 but when I search through "Extensions and Upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35688958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there strict type check in TypeScript? I'm codding some library with TypeScript, and I want to protect calls my methods from incorrect meaning data. Let's see next example:
type BookId = number;
type AuthorId = number;
BooksService.getById(bookId: BookId): Book {
// ...
};
let authorId: AuthorId;
// I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55416977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XSLT transformation stripping all namespaces from soap:env I have this Input XML to which i need to apply the XSL and transform it to a another XML which is on higher version. Lets say V3. So input XML is on version V1.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:NS1="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17118699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: pandas isin needs hashable data? Does the pandas.Series.isin function require the data to be hashable? I did not find this requirement in the documentation (Series.isin or Series, though I see the index needs to be hashable, not the data).
foo = ['x', 'y']
bar = pd.Series(foo, index=['a', 'b'])
baz = pd.Series([foo[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61235207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON to Array C# Trying to get all info from a json file into an array with C# using Newtonsoft.Json only.
namespace tslife
{
partial class game
{
world[] game_intro = _read_world<world>("intro");
//** other code **//
public void update()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26689620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find duplicates of exactly two items from Array1 in Array2 using LINQ C# Say I've got an
Array1 [1,2,3]
and a List of arrays Array2 [3,2,4] Array3 [2,16,5]
I need to return only those elements of the List which contain exactly two ints from Array1. In this case, Array2 since integers 2 and 3 intersect;
Thanks
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40576550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to connect AWS redshift from AWS lambda I'm trying to connect to AWS Redshift from my AWS Lambda function:
var Redshift = require('node-redshift');
const getLOOKUP_LOV_JSON= async ()=>{
try{
var client = {
host: "redshift-host",
user: 'admin',
database: 'dev',
password: 'pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67278079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Customize/Trim/Replace Wordpress Single Category Title I want to trim the Category Name from left to right. For example the Category Name is Men | Clothing, so I want to trim Men |, that just Clothing is displayed on the page.
I just found a line for trimming at the End:
<?php echo rtrim(single_cat_title('', false),... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68544116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Changing background color of GtkEntry I have written a C language program with many GtkEntry's for data input. I have created the UI using Glade and the GtkEntrys emit an on_entry#_changed() signal when modified. My program checks the validity of the input, which has certain requirements. e.g., must be valid hexadec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74584399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DICOM and the Image Position Patient I am trying to figure out if DICOM Image Position (0020,0032) is an absolute coordinate or just the coordinates for whatever slice orientation I have?
For example, I have two planes, a sagittal and a coronal plane interleaved with respective Image Positions in mm in the form of (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30814720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: String Boolean error java Can somebody tell me what I am doing wrong over here,
(Util.parseBoolean((String)request.getAttribute("testVal"), false))
I am getting this error.
java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.String
If what value I get from the request would do this. Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12186141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Getting input into a process While talking with a friend over yahoo messenger, I told him would be really cool to make a bot to answer with generic messages when someone starts a conversation. Upon thinking about what I told him, I realized it would be quite interesting to do something like that. The problem is that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4925818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: modalPresentationStyle formSheet issues on iphone XR, XS Max I am displaying modal UIViewController with modalPresentationStyle = .formSheet but it has some issues on iphone XR and XS Max. It's displayed behind notch. Image bellow from left side iphone XR, XS, X.
UIViewController use autolayout and is presented lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54106894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Adding background color to the selected cell in Google sheets by script All,
I am trying to make a timestamp sheet. The idea is whenever a user will press a button the selected cell will get the current time and background color will change to RED.
I managed to fix the time part but not able to get it change color... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44026675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Xamarin Android 5.1.1, Leaflet, Mapbox not working in webview I have created an app that supports all Android 5.1.1, Android 9 and Android 10 rugged tablets. The application is built in Xamarin Android native (not Xamarin Forms). The application uses Leaflet to show maps in a Webview. A custom maps server feeds map ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69620225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cypress: import modules via alias in my project i am using cypress with plain javascript. i am facing the challenge of importing the modules (page objects) via aliases instead of spaghetti code like ../../../../folder/page.js.
I don't use typescript or react.js and don't have a src folder/directory.
my tests run loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74488552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to adjust nav menu based nav item name character length? My problem: if the name of a main nav item in my dropdown menu increases in character length, my dropdown menu breaks (see attached imageTwo).
I’m using relative units of measure (ems mostly) in hopes that would give some responsiveness to my design and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11675720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the minimum required configurations at sender side and receiver side in spring boot RabbitMQ? I have just started with Spring boot RabbitMQ. I would like to know how can we separately configure producer code and consumer code in case of spring boot rabbitmq (annotations config). I mean to say, if I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49477356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When is error checking too much? During the process of my PHP learning I have been trying to read up on the best practices for error reporting and handling, but statements vary person to person and I have struggled to come up with a clear concise way of handling errors in my applications. I use exceptions on things ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14500176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Android Studio - Cardview must click twice even i change android:focusableInTouchMode="false" im sorry. im begginer on android. i jus write a code with 4 cardview and the first one must click twice to work. But, the others cardview work with 1 click :(
And 3 others cardview can work without i give focusableInTouchMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49227719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .net Word Interop closing issue I'm developing an application in vb.net that use Microsoft.Office.Interop.Word for printing an output in a Word document. If I close the application I want to close the doc (with the "Save As..." dialog). If the user wants to close the doc before the application ends this should be po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13088039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Qt Widget temporarily fullscreen Consider a QWidget, normally a child in some Layout.
Supposed I want to make it fullScreen for a while, then have it return to it's old spot.
QWidget::setFullScreen() requires that the widget needs to be an independent window - any ideas how to work it out?
A: The simplest way I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12338548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to delete complete records from all tables in SQL Server I want to delete User table, Fruit table and UserFruitMapping table based on UserID.
How can I achieve this?
A: All these answers are poor and honestly none of you would be touching my databases. You are teaching him the wrong way. Tell me why should you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37987322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails / Factory Girl: Uninitialized constant FactoryGirl (NameError) I installed the factory_girl gem, and when I run my tests I get an error:
`block in ': uninitialized constant FactoryGirl (NameError)
This is my spec_helper.rb
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
config.exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27545598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to show data in FlatList in React-Native I am learning react-native and trying to fetch data from API and showing it in the flat list but I am not getting an idea of how can I do that in functional component as I have been through many tutorials on the internet but all of them uses class-based components.
Below ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67789965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to open app store with in our ipad or iphone application? Hi i want to open app store with in our application with the specific publisher search or specific application types..on clicking of button..let's say More App's...
A: To generate a link that is universal and not specific to an App Store Country do the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4437779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to generate XmlSchema from XML serializable class in C#? I have following class:
[Serializable]
public class Person
{
[XmlAttribute]
public string Name { get; set; }
[XmlAttribute]
public int Age { get; set; }
}
Now when I get an XML file from somewhere (eg. web service) I need to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21708210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unity - Why particle system gets transparent? I just created an particle system where you see a blinking add-icon. The problem is that if something gets behind the particle system, it gets transparent and I dont know why. I read that changing the shader could fix it, but it didnt work. I tried every shader in "Parti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54235331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the row number of a named Excel cell in MATLAB I'm working with a quite big Excel file in MATLAB with the xlsread function. I'm particularly interested in a named cell, let's say it's called FIRST_DATA. So in MATLAB I call:
[num, txt, raw] = xlsread(filename,sheet,'FIRST_DATA')
But I'm not interested in the data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40904270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I keep the publisher from being stripped from fpassthru exes files? I am creating a simple proxy downloader that just passes the file stream through the server. It seems to work with most files alright, but exe seems to have a problem in that the 'publisher' is some how stripped.
$url = "http://the.earth.li/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21948449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Timthumb returning 404 on remote images only I am using timthumb to present images inside a Wordpress theme. It works fine when showing images from the same server but as soon as I try to load external images (in this case youtube thumbnails) it returns a 404 as if the script itself couldn't be found. The script is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14713174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to invoke unit test a Print Event handler in c# I have below method which will get invoked when I call Print() method. I need to unit test the same. Is there any suggestions on how to do this?
internal PrintRemovalController(IApplicationContextHelper applicationContextHelper)
{
_applicationContextHelper = appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43673772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: To access the text area in the html rendered using Iframe which itself is loaded withing a cshtml page I have an iframe loaded within a Cshtml page. The Iframe contains an html form. i need to add an image in front of each text area of the form when the main page(cshtml page) is loaded. Have tried a lot of things bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45113061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get all orders data from flipkart seller api Can someone help me to get all order data from Flipkart seller API?
Currently, I am using this but it fetches the Orderitmes list of different orders. Is there any API to fetch directly all orders?
$url = "https://api.flipkart.net/sellers/v2/orders/search";
$c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73080734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is There a dict with User Provided Key Function in Python? Some objects, numpy const arrays for example, are perfectly hashable but happened not to be (due to __eq__ being repurposed as an arithmetic operator, in the numpy case). Some objects, numpy arrays again for example, have multiple defintions of equility (id-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60437302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional xpath using precompiled xpath I am using XPATH in my project and i need to traverse through the nodes conditionally
public static String getNodeContentForMultipleTag1(XPathExpression expr,Document doc) {
try {
NodeList typeResult = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43866228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache Camel message exchange does not wait for the response I have following code for publishing message to activeMQ and reading response via exchange. But code seem to be returning instantaneously and not waiting for the response. Could you please point what is wrong with the following Scala code.
def sendAndRecei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51035385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AttributeError: Movie instance has no attribute 'number_of_seasons' i'm learning to code with python and i'm stuck on a error:
AttributeError: Movie instance has no attribute 'number_of_seasons'
So the problem is clear but i'm not sure how to solve it. Basically i created some classes and i would like to display so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44844553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i split a column based on a condition in Python pandas My one of the columns consist following data -
Numbers
100 K
25.20 K
250 K
33.45 K
250
100
10
5
4
1
In the above Numbers column, I want to multiply numbers with K with 1000's and the other numbers without K, i want to leave them as it is.
How can I perf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62606121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where are api documentation and demo for JAVA OCR? I want to use the JAVA OCR : http://sourceforge.net/p/javaocr/
I can't find the api documentation and the demo. In the download file, I have only the jars.
Can somebody help me?
Thanks
A: You can find demo code at OCRScannerDemo for old api, for new api new api dem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18441791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Socks5 client and UDP support with Dante server I am writing SOCKS5 client
Ive got autorization and udp associate ready over TCP
Ive got address and port of the relay server but i am missing something with udp transmition...
clientSocket = new DatagramSocket();
IPAddress = InetAddress.getByName(serverHost... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21392412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add value to a row in MySQL if it's greater than another value I have a table, Users, that contains a unique id, an integer 'econ', and some other irrelevant data. I'm trying to create a SQL statement for a simple gambling implementation. I have access to the user id, the amount bet, and the amount they potentially ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58635625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rownum & aliasing in HQL Need help...
how to translate this SQL query to HQL :
select "row" from (select rownum as "row", globalId from globalTable where valid='T') where globalId = "g123";
globalTable :
globalId _ valid
g000 _ T
g111 _ F
g222 _ T
g123 _ T
it should return 3.
Thanks.
A: your query can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5728208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple tables, eliminate data Suppose there are three tables T1, T2 and T3.
*
*T1 has columns Ordernum and bizdate
*T2 has columns Ordernum and Orderitem
*T3 has columns Orderitem and Catid
FYI: there are multiple orderitems under each ordernum; each ordertiem has multiple catids.
I want to eliminate ordernum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25878012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Get Tables Data in out parameters of Store Procedures in mysql I was trying to get data into the Output parameters of Stored Procedure in mysql but I am not getting it back.
HERE IS THE QUERY
Creation
CREATE DEFINER=`root`@`localhost` PROCEDURE `get_initial_data`(
out usersData varchar(500),
out employeesDat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75384021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to extract text in each line of a pdf file using python I have gone through many solutions for extracting data from pdf file but could not find a solution to this particular problem
I have a pdf file that has the following data format in it
UPC Product Description Subcategory Name Pkg ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47464866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get CameraId from Camera object in android I am developing on Nexus 7 that only has a front-facing camera. Thus, most of the default camera-related retrievals fail as they try to return information for first back-facing camera. What I would like to know is whether it is possible to retrieve the camera ID from an alr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16346024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does cached-resources plugin work with Grails 1.3.7 Maybe a dumb question...? (I think only Grails 1.2.* is supported?)
Im trying to use cached-resources with grails 1.3.7 following the simple example for the jquery plugin
E.g.
JqueryResources.groovy
modules = {
'jquery' {
resource url:[plugin:'jquery',dir:'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5988763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to use fwrite properly I'm unable to figure out how to use fwrite here. I'm getting a segmentation fault. Is there any other way I can write 0x00 to rgbtRed, rgbtBlue and rgbtGreen? I've looked up online, but couldn't find the right way to do this.
#include <stdio.h>
#include <stdint.h>
#include <string.h>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50679782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to check if a string only contains chars from an array? I try to check if a word (wordToCheck) only consists of letters from an array (letters) and also contains every letter in the array only as often (or rather not more times than they are in the array) as it actually is inside of the array.
Here are examples ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41066729",
"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.