text
stringlengths
15
59.8k
meta
dict
Q: Pushing the content without it changing width when opening sidebar I have a sidebar which I open on smaller screens, When opening the sidebar, I want the content on its right to be pushed, but when I do that in the current code, the width of the div where the content is changes, making what's inside of it resize ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/47476061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing output to a single csv file in python I am new to programming. May requirement will be simple for core developer. I have 5 .log file which are log file of database. here I want to read these all files, check the error and success message in these files and write the error and success message to single csv fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/71815189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java cloneing error I have a method that tries to clone an instance of a class (B) i have writen.This method is being called in class A so this method is not in the same class as the class i'm trying to clone (B). The class i'm trying to clone impliments colneable. when i try to compile my code i get an error messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/5944607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: kill -s SIGINT ps SHELL I am using this command kill -s SIGINT ps on the command line and it works (the process is eliminated), but when I use that command on a SHELL script it doesn´t work and it shows this error message kill: SIGNIT: invalid signal specification. How can I solve this. Thanks A: Error messages ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/12826991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Option Data from google finance in Json format not parse-able in Groovy I am trying to parse Option data from google finance using JsonSlurper in Groovy. I get an error and looking at the data, it seems it is not proper Json format. (It is missing quotes around values). Is this normal. Do I have to massage this data...
{ "language": "en", "url": "https://stackoverflow.com/questions/16819382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extracting data embedded in an 8-bit array into different size array I am working on a project which receives a series of parameters condensed into an 8 bit array. These parameters can come in varying sizes, but are always sent in an 8 bit array. The goal is to extract these parameters into an array the size of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71636912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create xib based interface with Xcode 5 I am trying to create a new app with Singe View template but there is no xib or storyboard option to make my interface as xib file !!! why does Apple remove xib from iOS 7 ?!! How can I create application with xib interface files ? A: Apple removed it because they just want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19632797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Download and save static images in phone In my application when i query a http URL i get list of object, some times these object needs to be rendered on listview and sometimes in my custom view. Each of the object which i receive from server has image tag, most of the time images are always constant i.e same image U...
{ "language": "en", "url": "https://stackoverflow.com/questions/17976411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is this ignoring the where clause? Why is the where clause being ignored in this code? It seems to be ignoring the where clause on the update which means every records has been written over. How can i fix this? Any help would be greatly appreciated. namespace ResitAssignment2 { public partial class HomeCareV...
{ "language": "en", "url": "https://stackoverflow.com/questions/18319029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using pointers in Class Templates with Subclasses I have a problem with using pointers with Class templates. I can't properly access vv from the B subclass if 'vv' stores pointers to vectors; if I simply store vectors it works. But what I'm trying to do requires me to store pointers. I honestly have no idea what I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/70406647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is filter is replaceable of query in mongo queries using c#? I'm new to mongo in c# I found tow ways to find documents based on search critiria: the first using filter: var collection = _database.GetCollection<BsonDocument>("restaurants"); var filter = Builders<BsonDocument>.Filter.Eq("address.zipcode", "10075"); va...
{ "language": "en", "url": "https://stackoverflow.com/questions/35279995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java .wav get binary data I'm using the Microsoft Project Oxford Speaker Recognition API REST, in order to create an enrollment I need to send a Binary Data of a .wav file. I already have the class that records and saves the .wav file, now I have to POST it, I just dunno how do I kinda "decode" the .wav file I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36047605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How wrap every 3rd elements in to a div, xslt each I am quite newbie on XSLT. here is my XML <contact> <person> <name>Hannah</name> <phone>123-123-123</phone> <address>No.1 A St. city</address> <person> <person> <name>David</name> <phone>223-223-223</phone> <address>No.2 B BRC. city</address> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21125794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: angular 2 - kendo datepicker max and min doesnt work Kendo datepicker doesn't work. Can anyone tell me where I made mistake? Min date suppose to be today's date. Here is sample code: app.html <div [class]="datePickerClass"> <kendo-datepicker class="kendo-datepicker" id="startDate" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47154269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's wrong with my rackup file? When i attempt to start my unicorn server I've got the next stack trace: Can't understand what's wrong with rackup file? Why it is not readable? sites@bck:~/fatfreecrm$ /home/sites/.rvm/gems/ruby-1.9.2-p180@fatfreecrm/bin/unicorn_rails -E -D production -c /home/sites/fatfreecrm/conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/6451085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Subtracting value across multiple lists in Sharepoint 2010 I am attempting to perform a simple subtraction function across two lists in Sharepoint 2010. I have one list called Inventory that has part number, part name, and quantity. I have a second list called Tasks that has title, description, status, used part, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/45908360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OOP Javascript, get attribute of class not the event e In a event handler from my custom class, I want to use an attribute of my class in a private event method. Its more clearly with this simple example : class myClass { constructor() { this._customAtt = "hello"; } foo() { this._addListeners...
{ "language": "en", "url": "https://stackoverflow.com/questions/53296243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Namespace issue class not found In my root folder I have a file folder that has my common files I use between different projects. /files I have a file redis.php that has Redis class that I want to use in one of my project in /var/www/html/project/example.php The Class Redis is in /file/library/storage/redis/redis.ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/16779484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How i can create a simple search using MATCH/AGAINST? I have modified my mysql table from InnoDB to MyISAM and then i have added FULLTEXT using this sentence : ALTER TABLE personal ADD FULLTEXT(personal_name,surname,initials,email,telephone,adegree); In my application, i have 6 input fields like these: - id -person...
{ "language": "en", "url": "https://stackoverflow.com/questions/37009862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use a class library DLL hosted on an ASPX webpage I'm developing a webpage using the ASP.net Framework 4.0, C# and I got a DLL from a class Library. The function of this DLL is to activate and read information from a hardware CARD-READER (Client side) then I want to send the information to the server. How can I use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31330365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use .htaccess to restrict script access from external server i am trying to achieve this: i have a directory/folder in my primary domain example.com/scripts. the folder named script should only be accessed by websites that are subdomain of example.com which means that from any of these websites: admin.example...
{ "language": "en", "url": "https://stackoverflow.com/questions/48963252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to have not formatted text block in Asciidoc? Does it exist in Asciidoc (rendered by Asciidoctor) a way to have a block of text where asciidoc formatting is not applied, but it keeps the asciidoc paragraph format (background color, font, font color, etc...) and not preformated format ? My specific pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/69480923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Router Redirect does not render the component Here is my App.js: function App() { return ( <BrowserRouter> <AuthProvider> <Switch> <PrivateRoute path="/" component={MainPage} /> <PrivateRoute path="/admin" component={MainPage} /> <Container classNam...
{ "language": "en", "url": "https://stackoverflow.com/questions/67847161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: inserting data into table from text file with a foreign key I have two tables, people and registration. people table contains - idpeople, name and email columns registration table contains - idregistration, country, registered, people_idpeople I loaded data into the first table via text file and every thing went wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/34245335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement Queue in Java? I have a folder with 1 ThMapInfratab1-2.exe file and 3 .txt files. If you run .exe file in any way(through command prompt,just double click and through any language) one Icon will be appear on Taskbar. My .exe will be run 2-3 minutes. Know I want to run these .exe file using Java.I f...
{ "language": "en", "url": "https://stackoverflow.com/questions/17836875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pact - contract testing - verify consumer and producer against contract I have made demo application for Pact-Contract testing. Following is the link, I referred. I have change few things out of that like patternmatcher and bodytype. https://www.javacodegeeks.com/2017/03/consumer-driven-testing-pact-spring-boot.html...
{ "language": "en", "url": "https://stackoverflow.com/questions/63409498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to save the file that is being opened? I have a macro that works for one particular file. How can I make it work for all my files? Specifically how do I change the name of the file so that it saves the file that is being opened? Sub Macro1() ' ' Macro1 Macro ' ' Keyboard Shortcut: Ctrl+m ' Range("A:A,B:B").S...
{ "language": "en", "url": "https://stackoverflow.com/questions/15911284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a regular expression to search for a substring with numbers? There are lines with a title element and a value element, with a symbol --> is indicated what values I need to get: BATE Borisov BATE Borisov -0.5, -1.0 --> -0.5, -1.0 Under 2.5 --> 2.5 BATE Borisov BATE Borisov 0.0, -0.5 --> 0.0, -0.5 Over 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/61983474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use flex-wrap? I have some boxes which I want laid out 3 x 3 instead of 5 x 5. They are displayed using flex-wrap and I was was wondering if I could use adjust it somehow to alter the size and layout so that each box is the same size and in proportion-eg images all the same size etc. The following is pasted i...
{ "language": "en", "url": "https://stackoverflow.com/questions/56618954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is JavaMail not listing the emails even though mails are present in the mailbox? I'm using JavaMail API 1.5.3 version to fetch emails from a mailbox using IMAP. There are nearly 500 plus emails in the mailbox but the JavaMail API does not list any of them. I configured an outlook client and the emails are downlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/53067081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: react select - buffer onChange event I would need to pause the onChange for the react-select component until the data is loaded into options. How could that be? const handleSearch = () => { // call data to redux and add to function getOptions (THIS WORK OK - this doesn't interest me) } const handleSelect = () => {...
{ "language": "en", "url": "https://stackoverflow.com/questions/60325184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I write to Excel cells so that they are formatted correctly with hidden "tick" marks I have to replace a broken SSIS package that basically just combines the data from a number of different Excel files, and creates a single master file. My C# desktop application is putting all the data into the Excel file co...
{ "language": "en", "url": "https://stackoverflow.com/questions/46738384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting from Sqlite db using NHIbernate returns nothing when data is actually present I have a simple app that uses a sqlite db in my data layer, nothing major. I have populated a few records for UI testing, but I can't pull the data back at all. The thing is that my my unit tests are able to CRUD without fail, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6653207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do we assign value for ng-model dynamically through a template url? I am new to angular js.I have written a directive to load the template url and tried changing the ng-model value. But the value doesnt change. I tried simulating this exmaple http://tinyurl.com/hg7ehge except that I was trying to load the html f...
{ "language": "en", "url": "https://stackoverflow.com/questions/34472582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP Error 500 using CE_Image I've recently moved my working site to a staging environment, and now, some channels display an internal server error (500) while others work flawlessly. Nothing appears to have changed. Is there some setting I've missed or might this have to do with a different PHP version on the stagi...
{ "language": "en", "url": "https://stackoverflow.com/questions/12458906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# array within an object within an array Here is a simplified version of my code: class House { private string owner; private int[] roomArea = new int[10]; public string Owner { get; set; } public int[] RoomArea { get; set; } } class Program { static void Main(string[] args) { H...
{ "language": "en", "url": "https://stackoverflow.com/questions/46781497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Design decision behind entry to an API I am new to creating an API for others to use. And I was thinking about the design decisions that go behind creating the entry to an API. Like JAXB uses a class called JAXBContext as an entry point to use its framework, Mockito uses the class Mockito itself as the entry point a...
{ "language": "en", "url": "https://stackoverflow.com/questions/14623185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Measuring audio quality and appeal/aesthetic Is there any way to measure the quality and appeal/aesthetic of an audio clip? The quality quantifies how good the sound is, ie., the lower the noise the better the quality is. Whereas the appeal/aesthetic measures how appealing the sound is to the human. There exists som...
{ "language": "en", "url": "https://stackoverflow.com/questions/58887600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Accessing environment variables from client side app I want to access environment variables from my .env file, located in the root directory, and use them in my App.js React file using dotenv. However, I am not able to access them. on the client side (App.js). File Structure: The variables I want to use: root/.env T...
{ "language": "en", "url": "https://stackoverflow.com/questions/64654842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .Find not working and If statement based on results of .Find method. what expression can be passed into the .Find method? I use excel VBA to find a price in a contract saved in *.docx file. Later I assign the price into a variable and write it into the cell in a spreadsheet. The macro works fine, at least the first ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61619052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Only output to first instance of the_content() I have this WordPress function: function content_before_after($content) { return 'something goes here'; } add_filter('the_content', 'content_before_after'); ...which works fine except for one small problem: If there is more than one instance of the_content() on an...
{ "language": "en", "url": "https://stackoverflow.com/questions/50876303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to validation input type from $.ajax How to validate input type in $.ajax, iam not set tag because form always reload an action before i used validation jquery but, $.ajax is not running because loaded by from (required, maxtlength or another ni html not working, must be set form) i must set required, maxtlen...
{ "language": "en", "url": "https://stackoverflow.com/questions/34781940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proper technique for a contact form? I have a contact form at shantiyoga.ca/contact With the view def contact(request): template = 'contact.html' form = ContactForm(request.POST or None) if form.is_valid(): # All validation rules pass subject = form.cleaned_data['subject'] message ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5264044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MIPS sorting and array I have this homework problem. I'm suppose to write a program that does the following: * *Sort the letters in the sentence into the ASCII collating sequence (i.e. alphabetically). Print the results and the total number of characters in the sentence. *Next, print out a list of the number of...
{ "language": "en", "url": "https://stackoverflow.com/questions/4159237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular custom-control-input doesn't work correctly with formControlName inside loop i want to apply a custom theme style on angular but checkbox didn't work correctly. i have this part of code and worked very well : <tr *ngFor="let item of lists let i=index" [formGroupName]="i"> <td> <div class="form-gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63644681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automate a large number of txt files to be imported from Perl to a SQL Server using DBI? I have attempted to transfer one txt file into a SQL Server from Perl, but I now need to create a DB in SQL that combines hundreds of txt files. Is there an automated way of doing this to save manually transferring all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/19226451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Div class nav bar I can’t post code here because it will fill up section but if someone could add me discord it would be much appreciated and much easier. Thank you! Kam#3585 Kam#3585 add me on discord thanks A: You can use this code to create navbar <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a...
{ "language": "en", "url": "https://stackoverflow.com/questions/74651628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: DLL uses another DLL in C++ I have a complex 3rd DLL by C++. (I compiled it and have .lib both). I want to write a new my simple DLL, that using a few function in the 3rd DLL. How to import a 3rd DLL in my DLL? (Now, i got an error, When importing 3rd to my DLL, i could not load my DLL in any other application) A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33605436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Creating a URLretreive function using urllib2 in python I want to have a function which can save a page from the web into a designated path using urllib2. Problem with urllib is that it doesn't check for Error 404, but unfortunately urllib2 doesn't have such a function although it can check for http errors. How can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7132892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: insmod: ERROR: could not insert module kernel.ko: Invalid parameters - Error related to naming scheme of kernel module I'm using C to create a custom kernel module to hook into the netfilter operation on my Ubuntu box. However, I'm running into a problem revolving around the module_param argument. When inserting the...
{ "language": "en", "url": "https://stackoverflow.com/questions/49243381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: karma test on angular 2 ag grid 'exports is not defined' Hey all I'm trying to test my table component that is a wrapper on the old and good ag grid. I added the path to karma.conf.js 'node_modules/ag-grid-ng2/main.js' Also I added the ag grid component in the test file: import { RgGridComponent } from "../../sha...
{ "language": "en", "url": "https://stackoverflow.com/questions/40107115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ascx control visible false displaying issues My user control is displaying only the first ascx but when I'm navigating to other ascx the content is not displaying what am I doing wrong??! The idea is On my aspx page I have on the left hand side TreeView for each of every node in the TreeView I want to load a differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/28774046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Server side rendering using reactjs I have started to work on react server side rendering, Having some questions i.e how about routing and can i implement server side rendering for all pages in application,Please provide any example on server side rendering in reactjs,Thanks A: for plain implementation in server si...
{ "language": "en", "url": "https://stackoverflow.com/questions/61379761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android emulator access server in local network i am having difficulties to have my android app running in the emulator to connect to servers in my local network. i am getting a java.net.UnknownHostException but the servers are resolvable fine from the machine where the emulator is run. thanks for any help on this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3574365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Failing to capture process name and exit code in Exited eventhadler I have a pretty straight forward event handler on process exit that wants to log the process name and exit code. This code runs perfectly in my local machine (Windows 10 pro, 64 bit) no matter how I end the process (calling Kill(), End Task from Tas...
{ "language": "en", "url": "https://stackoverflow.com/questions/65394418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Enter text into the Chrome's address bar via Selenium is it possible to enter a text to the address bar in Chrome with Selenium? I would like to resolve domains and get the final URL. E.g. enter freshfruits.com resolves https://www.freshfruits.com. A: Selenium does not support sending keys to the browser address ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/60396807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reduce Object Array to Single Object Working with an array of objects like: const objArr = [ { k: 'row 1', v: '111' }, { k: 'row 2', v: '222' }, { k: 'row 3', v: null }, { k: 'row 4', v: null }, ]; What is the most efficient way to reduce into a single object using the value of k for the key and the value o...
{ "language": "en", "url": "https://stackoverflow.com/questions/52824983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database design for time series Approximately every 10 min I insert ~50 records with the same timestamp. It means ~600 records per hour or 7.200 records per day or 2.592.000 records per year. User wants to retrieve all records for the timestamp closest to the asked time. Design #1 - one table with index on timestam...
{ "language": "en", "url": "https://stackoverflow.com/questions/56863332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Elastic4s ngram mapping I have to create an ElasticSearch mapping like this using elastic4s: "mappings": { "properties": { "id": { "type": "keyword" }, "name": { "type": "text", "analyzer": "ngram_analyzer", "fielddata": true }, "lang": { "ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/59964776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: spark - where is spark.sql.legacy.timeParserPolicy documented? Migration Guide: SQL, Datasets and DataFram refers to spark.sql.legacy.timeParserPolicy Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the unix_timestamp, date_format, to_unix_timestamp, from_unixtime, to_date,...
{ "language": "en", "url": "https://stackoverflow.com/questions/71190476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating relative paths with Jersey UriBuilder Using UriBuilder as follows: UriBuilder.fromResource(My.class).path("resource").build().toString() generates /my/resource. I was wondering if there was a way to tell UriBuilder that I want to generate a relative path like so my/resource. This is useful in cases where...
{ "language": "en", "url": "https://stackoverflow.com/questions/19941874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: cycling Ranksum on Stata I have some data with two different groupd of patients automatically exported from a diagnostic tool. Variables are automatically nominated by the diagnostic tool (e.g. L1DensityWholeImage, L1WholeImageSHemi, L1WholeImageIHemi , L1WholeETDRS ,[...], DeepL2StartLayer, L2Startoffsetum, L2EndL...
{ "language": "en", "url": "https://stackoverflow.com/questions/49844265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Executing external programs via commandline in a Grails application I am attempting to create a Java source file which will interface with my Grails application. When a certain action is performed, I want this Java file to execute a program via commandline. I am attempting to do this via the Runtime.getRuntime().e...
{ "language": "en", "url": "https://stackoverflow.com/questions/1131469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find shortest path from s to every v with a limit on length Let G(V,E) a directed graph with weights w:E->R. Let's assume |V| is dividable by 10. Let s in V. Describe an algorithm to find a shortest path from s to every v such that it contains exactly |V|/10 edges. So at first I thought about using dynamic program...
{ "language": "en", "url": "https://stackoverflow.com/questions/39531556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How Can I Embed A Browser Window In Tkinter? I originally wondered about scraping the image from a site, however, somewhat giving up on that idea I am looking to embed a browser window into a Tkinter window, Ideally, it would be able to support multiple browsers for cross-platform support. I have looked into the usa...
{ "language": "en", "url": "https://stackoverflow.com/questions/70703630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Aligning an Image and text within a Div CSS I am trying to align an image and text within a div so it looks like the following IMAGE TEXT However when I get them aligned as such, the background colour of the div no longer appears. Can anyone suggest what I am doing wrong? HTML: <div class="introduction">...
{ "language": "en", "url": "https://stackoverflow.com/questions/17836193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create groupings on data I have input data like this: The output I require is grouping all the elements and giving distinct customers and total sales for each group. I have tried cross matrix, group by, and cube functions until now, but however, I am not getting the desired results. Output expected: Any help will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73875981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python script as linux service/daemon Hallo, I'm trying to let a python script run as service (daemon) on (ubuntu) linux. On the web there exist several solutions like: http://pypi.python.org/pypi/python-daemon/ A well-behaved Unix daemon process is tricky to get right, but the required steps are much the same for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4705564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: When to call File.Dispose() I am trying to use a text writer to write text to a file in .NET Core. The below code doesn't output anything to the file: TextWriter writer = File.CreateText(@"...txt"); writer.Write("Hello World"); However, this does: TextWriter writer = File.CreateText(@"...txt"); writer.Write("Hello...
{ "language": "en", "url": "https://stackoverflow.com/questions/54016413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gdb layout asm doesn't work on mac? $ gdb test (gdb) start Breakpoint 1 at 0x100000ec8 Starting program: /private/tmp/test Reading symbols for shared libraries +. done Breakpoint 1, 0x0000000100000ec8 in main () (gdb) layout asm Undefined command: "layout". Try "help". $ gdbtui -bash: gdbtui: command not fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/6706838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Assembly 8088 - converting to hexadecimal I am trying to write an assembly code to do a file hexdump, just like in Linux when you do "hexdump -C sample.txt" from the command line. I got as far as opening the file and reading the contents into a buffer, but I can't get beyond, trying to convert those bytes to hexadec...
{ "language": "en", "url": "https://stackoverflow.com/questions/15940164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: jQuery Add/Delete This snippet does what I want it to do with 1 exception. It works correctly if the user presses "Add" over and over again - it removes the empty row and adds the new row. If the user types something into the input field, that field is converted into table data. The only problem I have is when the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/2329883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android- handler.postDelayed how does it achieve the Delay for any task that had to be delayed I had been using: Handler.postDelayed(Runnable r,Long Delay) , but I just recently came across the documentation and it says this: Causes the Runnable r to be added to the message queue, to be run after the specified am...
{ "language": "en", "url": "https://stackoverflow.com/questions/60545934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: os.platform() Not Working Correctly In Website I'm using the built-in 'os.platform()' function in Node.js to get the home directory of a user when they sign in to a website so they can import files. In order to specify which path to look for those files in, I need to know the OS of the user's PC. When I run the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/62644715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: angularjs: if statement for displaying one image versus another i am new to angularjs. i am trying to display a table with some data read from a db. one of the pieces of data i receive from DB is called IS_LOCKED. if it's 1, i want to display an image of a locked padlock, else display an image of an unlocked padlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/27893485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: toggle class content on click from nav I have a simple page with 15 elements in the Nav bar (only 4 in the jsfiddle example to keep the code short). I have a javascript that moves the border-bottom display on click on the nav bar elements but I would also like the content of the div underneath to change based on whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/26261525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unit testing the obvious While trying to write test cases for a class whose functionality deals more with boiler plate code than business logic. I started wondering if unit testing is really worth for this class. But then again, when using TDD, we are advised to write test for any piece of logic we add. As an exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/39217084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get all the categories and sub categories in PostgreSQL? I am creating a small ecommerce demo app using .net core 5 with EF core and postgres 10. I am trying to get all the categories and sub categories on my home page. Here is my category hierarchy: Men (Parent category) * *Topwear (Sub Category) * *Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/66624127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use ContactsContract as a Table in ContentProvider While setting the table viasetTable method in the query method of my ContentProvider, I am doing something like this : queryBuilder.settable(getTable()); where my getTable() is : private String gettable(){ String table; StringBuilder sb = new Stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/24798716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django how to use distinct() How to use distinct() in django what i tried: views.py def gradescales(request): grade = gradeScalesSetting.objects.all().values_list('Rounding','Configuration').distinct() print(grade) return render(request, 'Homepage/gradescale.html',{"gradeScalesSetting":grade}) the resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59062839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Micro-Service Simulator - Dapr pubsub I am trying to create a micro-service simulator using Dapr. Currently I can publish a message to a topic and another service subscribes to it. I want to able able to simulate a process where, once the subscriber receives the message, it will make an api call to another micro-ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/72093789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Cookies not being set in Safari and IE Im using the jquery.cookie plugin to save my application data like this: $.cookie('cookieTest', 'appDataHere', { expires: 7, path: '/' }); alert( $.cookie("cookieTest") ); But for some reason the above outputs "undefined" in Safari and IE.. Any ideas? Works fine in FF a...
{ "language": "en", "url": "https://stackoverflow.com/questions/14692529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find duplicate in data frame and change identified value I am stuck with probably a stupid and easy to solve issue. I have a trigger that code 1 when the computer key is pressed (and) and 0 when the key is released. I need to identify each trigger start and stop (i.e., first and last 1) and replace the 1 in between ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62417452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error while adding Application Component in Worklight 6.1 I am trying to create and add application components to WL 6.1 project I am able to create the component from a WL Project as per steps given in http://goo.gl/eJ7Rq7 But when I am trying to add the same component back to some other WL Project as per steps giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/23948879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pushing a Specific ViewController When Tapping on a NotificationAction Programmatically in Swift 5 I want to tap approve and go to a ViewController when app is in the background and tap decline to go another. I can fetch that tap action is successfully done but cannot figure out how to open the app and push a specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/71435327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rendering a component on SelectOneMenu value - JSF PrimeFaces With PrimeFaces I'd like to render a second component if the selected value on a SelectOneMenu is equal to a given value. Possibly without sending the value of the SelecOneMenu to the server to avoid useless traffic. What do I do wrong here? I suppse shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/26855227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node JS Heroku Build Error - 'MODULE_NOT_FOUND' I hadn't made any changes to my build (all the same dependencies) and yet all of a sudden now it's crashing when I push to my staging environment. At first I was getting this - 2022-02-10T03:42:49.245470+00:00 app[web.1]: > node server.js 2022-02-10T03:42:49.245471+00:...
{ "language": "en", "url": "https://stackoverflow.com/questions/71059887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java code inspection show a null returning method as never null I found an interesting Lint inspection that I can't explain. I know Java crazy hidden stuff, so I'd like to understand what's going on here. Maybe I can impress my friends with super nerdy knowledge. Here's a snippet of the offending code: public void a...
{ "language": "en", "url": "https://stackoverflow.com/questions/27005835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Talend Cloud Studio : Issue with look up mapping Good day, I’m new with Talend Cloud Studio and I’m getting stuck with the job I’m working on. Context: My company uses an API directory (Genesys). So far, we use a .csv file to insert / update contacts. This file is generated from a database extract. We want to automa...
{ "language": "en", "url": "https://stackoverflow.com/questions/69641585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AVAssetDownloadURLSession never inited We have strange problem with background AVAssetDownloadURLSession. If you cancel downloading task and then fast close application and restart it the AVAssetDownloadURLSession will be never inited. Only restart of device will help. This problem is repeated on iOS 16.1 and 15.7, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74652542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eval-when uses? After reading a lot of documentation regarding Lisp eval-when operator I still can't understand its uses, I know with this operator I can control the evaluation time of my expressions but I can't figure out any example where this may be applicable ? Best Regards, utxeee. A: Compilation of a Lisp fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/10674650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: The code block is missing a closing "}" character. MVC razor View I need to show the data on the basis on below condition. Need to show 5 columns and then next data in next row. I am new for MVC. Please help. @{ int count = 0; @foreach (var item in Model) { if (count == 0) { @:<tr> } <td...
{ "language": "en", "url": "https://stackoverflow.com/questions/36769053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Examples for using radix parameter Last step for me when finishing a JS code is letting it run trough JSLint. I forgot a few semicolons and the radix parameters at parseInt(). Well, these issues were solved quickly. But now I'm curious: Why would we need binary, octal or hexadecimal radixes? I couldn't find anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/31201371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could one to merge resource dictionaries either dynamically or in compile time? Let's say we have a resource dictionary defined like <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources/Styles/Colors.xaml" /> <Reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/74331106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use the controller name from Javascript in the Url.Action I am retrieving controller name from a javascript function as a string, and need to pass controller name in Url.Action. Any suggestion would be helpful. var controllerName = "MyController"; var id=1; @Url.Action("LoadAction","'"+ controllerName +"'")?id=' + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57186892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to pass $scope.value inside json object in Angularjs controller? I have a var data with json object defined. I want to dynamically change json fields from html and call slightly different POST APIs. e.g: var data={ $scope.value:'25', 'speciality':$scope.speciality, 'field2':'something', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41837866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery random Background Color not working in Firefox? I need some help here. Checkout this fiddle: http://jsfiddle.net/ydNn6/5/ my Code: $('.start').each(function () { var color = (Math.floor(Math.random() * 256)); var hue = 'rgb(' + color + ',' + color + ',' + color + ')'; $(this).css(...
{ "language": "en", "url": "https://stackoverflow.com/questions/23651248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to decrease the "bounce" rate when a rigidbody hits another? I have a racket and a ball, both have rigidbodies. Ball has a physics material in it, which has bounce set to 0.8. When I hit the ball with the racket, the ball goes too high up. Setting bounce to 0.0 and "Bounce Combine" to "minimum" helps it pretty m...
{ "language": "en", "url": "https://stackoverflow.com/questions/52558346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Return plain text from a web service to Angular Typescript Please see the typescript code below: get(url: string, params?: any): Observable<Response> { let options = { }; this.setHeaders(options); return this.http.get(let url = this.configurationService.serverSettings.webservice + 'api/Product/...
{ "language": "en", "url": "https://stackoverflow.com/questions/59696771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading a message in inbox from a particular contact I want to read sms from my inbox. Here i want to read a specific message. Suppose mark has sent me a message i just want to make a query which will return the cursor indicating only Mark message .i have tried something like this but it is not working for me Curso...
{ "language": "en", "url": "https://stackoverflow.com/questions/15056419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }