text
stringlengths
15
59.8k
meta
dict
Q: Convert time data into human readable time using PHP I have a time value in the following data format: "2020-08-05T11:45:10.3159677Z" How do I convert it to something human readable, like as follows, using PHP? Wednesday, August 5, 2020, 11:45 AM A: Try this: echo date("H:i A, F jS, Y", strtotime("2020-08-05T11:4...
{ "language": "en", "url": "https://stackoverflow.com/questions/63271755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spinner with on Click Listener I am using spinner that shows error when i am trying to extract the item id of the selected spinner item. My Code goes here: public void dispspi() { spinner = (Spinner) findViewById(R.id.spinner1); ArrayAdapter <String> adap= new ArrayAdapter(this, android.R.layout.simple_spi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7402818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Order by data as per supplied Id in sql Query: SELECT * FROM [MemberBackup].[dbo].[OriginalBackup] where ration_card_id in ( 1247881,174772, 808454,2326154 ) Right now the data is ordered by the auto id or whatever clause I'm passing in order by. But I want the data to come in sequential format as per id's I have p...
{ "language": "en", "url": "https://stackoverflow.com/questions/41799973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting error while POST request with JSON This is my server.js file code . I am trying to push the JSON content in the user object , but i am getting following error. Please tell me where i am going wrong. const express = require('express') const app = express() const bcrypt = require('bcrypt') const bodyParser = r...
{ "language": "en", "url": "https://stackoverflow.com/questions/61974192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the mantissa of an 80-bit long double as an int on x86-64 frexpl won't work because it keeps the mantissa as part of a long double. Can I use type punning, or would that be dangerous? Is there another way? A: x86's float and integer endianness is little-endian, so the significand (aka mantissa) is the lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/57499986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Draw with canvas Javascript Maybe you can advice me, I need to draw with canvas using the coordinates of images as vertex, but I have the images into a table(html table) so I don't know how to do that, how to do the draw inside the table or over the table. For example you have an image on coordinates(60,90) another ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30016224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Install self signed Certificates via ADB I'm trying to install self-signed Certificates(created by Charles) via ADB I've pushed it to /sdcard/xxx.pem , And then failed to open it with Browsers that I could find, And Since the device removes the Setting Application, I could not install cert under the Setting App. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/59626101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: New custom action in Alfresco I want to do a custom action associated to rule. I have used a guide http://wiki.alfresco.com/wiki/Custom_Action_UI but I don't get I need. I'm really newby using Alfresco... My problem: I have created my custom action. I select it in Alfresco UI and when I press the button "Set Values ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8093154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get data from many tables I am building a patient profile that has many tables such as medicines, treatments, x-ray, patient info, etc. all of them shared a patient ID, but I feel like it will have a big load on the service and take time, I searched a lot but I don't know if this approach is good or it could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69748213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Fix DecodeError when receiving data I've searched other post but from what I can tell they all have control of the data being sent to them. In this case I have no control over the data being sent to me. I'm receiving data from an IRC server that I cannot encode specifically to UTF-8 before it is sent. I was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43867445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clojure Spec on a vararg function I am trying to write a spec for a merge function which takes a function and maps as an input and uses function to resolve the conflicts. However the spec i wrote for the function fails. I am trying to figure out how to write spec for such functions. Below is the code snippet. (requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/38253196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with chromedriver in RobotFramework I started with python and Robot Framework. I'm having this strange exception while trying to run a test case in Robot Framework. WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -1073741819 I tried changing the chromedriver versions...
{ "language": "en", "url": "https://stackoverflow.com/questions/51925243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass Object from one Aspx to another from Javascript Correct me if I am doing wrong. I have a Login page which uses a Webservice to process login. In my Login page I use Jquery with JSon to consume the webservice. After the login is processed I recieve an object and I want to redirect the recieved object to home pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/8340774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create Up and Down Methods using migrations? I am new to Code first, can you tell me how i can have all Up and Down methods for all tables in the database like below(given for one table) public partial class abc: DbMigration { public override void Up() { AddColumn("dbo.UserTask...
{ "language": "en", "url": "https://stackoverflow.com/questions/33430217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way of reading/writing structured binary data in C# Like in C we could use structure pointers to read or write structured binary data like file headers etc, is there a similar way to do this in C#? A: Using BinaryReader and BinaryWriter over a MemoryStream tends to be the best way in my opinion. Pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/13963508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I skip methods using @AfterMethod in TestNG I have a set of tests as follows. @Test public void testX(){ } @Test public void testY(){ } @Test public void testZ(){ } I have another test which I should run after each of the test is executed. I hope I could do that with @AfterMethod public void testA(){ } No...
{ "language": "en", "url": "https://stackoverflow.com/questions/33431870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get two item from a List<> in every get request in ASP.NET Core MVC How can I get two value per get request from a List<>, For example, I have a Person List<> with six Person Ordered by ID in that List<> now in every get request using JQuery ajax() I want to get only two item from the list<>, first request wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/47821238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a NSDictionary take in NSSet as key? I know you can use any object as key for NSDictionary but the problem is will it be able to retrieve the correct value? Support I have an entry where the key = {1,3,5} and value = { @"hello" }. Will I be able to retrieve from this dictionary entry by passing in the set {3,5,1...
{ "language": "en", "url": "https://stackoverflow.com/questions/1863061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to return var parameter in Delphi ASM I'm far from having knowledge about ASM, so forgive me if this is a stupid question. I have this function: function SwapDWord(const AValue: DWORD): DWORD; asm BSWAP EAX end; How would I convert it to a procedure in ASM: procedure SwapDWordVar(var AValue: DWORD); asm // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47748565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to run custom mysql script for Laravel app in test pipeline in CodeShip Basic? Relative newbie to PhpUnit and testing in general. We do not use migrations in our project, but have a couple of scripts that I need to run in order to set up the database for testing. How can I run mysql scripts from the project in...
{ "language": "en", "url": "https://stackoverflow.com/questions/57261297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replace 0 into dash in Fast Report Is it Possible to replace 0 value and turn it into dash in fast report? like: No. turns to 1 1 2 2 0 - 3 3 0 - 0 - A: Yes. Use a built-in script engine. Assuming you have a dataset DS and a field FIELD_NAME then instead of [DS."F...
{ "language": "en", "url": "https://stackoverflow.com/questions/26030030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: databricks init script to mount dbfs on adls I am using a python notebook to mount dbfs on adls , now I want to add this to the init scrip so this can be done during the job cluster start this is the python code I am using how to make this run as the init script please: environment = "development" scopeCredentials =...
{ "language": "en", "url": "https://stackoverflow.com/questions/72029642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring Reactive MVC vs @EnableAsync I'm a newbie to Spring Reactive Modules. What I got is basically, at its core it enable reactive programming and we can develop end to end reactive service. But, suppose I just want to make my controller as Async, so that I can do work on multiple threads and send a reply like "Ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/48107287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why search in .Net Dictionary is slower than in .Net List I tried to solve this task: We have an array, eg. [1, 1, 2, 3, 5, 2, 7, 8, 1], find and output duplicates. For this array the result is 1, 2. I wrote code to try "slow" and "fast" solutions. "Slow" solution with inner loop and searching via list public uin...
{ "language": "en", "url": "https://stackoverflow.com/questions/64368414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: angularJs directive to format date I want to have a functionality in angular which help to enter date and show it in proper format and don't allow invalid values in it. also able to show server returned '20140314T00:00:00Z' json string for date. Can anyone help me ? A: Angular.js already have date filter {{20140314...
{ "language": "en", "url": "https://stackoverflow.com/questions/22414788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I solve my foreign key constraint error when I know I created the relationships right? -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITI...
{ "language": "en", "url": "https://stackoverflow.com/questions/43190655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Swagger-play2 - hiding internal parameters I have configured swagger-play2 library version 1.7.1 (for play framework version 2.7) and have it up and running successfully. Our controller methods have an additional input: Http.Request request which is passed across the application for some logging and monitoring purpo...
{ "language": "en", "url": "https://stackoverflow.com/questions/56661513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flutter - AndroidManifest.xml corrupted after Flutter Upgrade I've just upgraded to Flutter 2 and upgraded an application along with it. I followed all the steps to upgrade the application, but now I can't seem to run the app because my AndroidManifest.xml file seems corrupted. Here is the xml file (I've also added ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67221631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regarding GetProcAddress I have got MyDll.dll and its function defined as below void pascal Myfunction(BOOL); when I'm trying to use the function in another project i am unable get the address of the function with GetProcAddress(). Here is my code: void callMyDll() { HINSTANCE hDll; hDll=LoadLibrary(_T("MyDll.dl...
{ "language": "en", "url": "https://stackoverflow.com/questions/9001619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i am dumping a piped data , but when i try to read using pickle.loads i get an error this code works fine thats piping out allWriteNodes=nuke.allNodes("Write") test = nuke.allNodes() for index,each in enumerate(test): wrtNodelst.insert(index,each.name()) print index, each.name() sys.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/13838903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Decimal/double to integer - round up (not just to nearest) How would you round up a decimal or float to an integer. For instance... 0.0 => 0 0.1 => 1 1.1 => 2 1.7 => 2 2.1 => 3 Etc. A: Simple, use Math.Ceiling: var wholeNumber = (int)Math.Ceiling(fractionalNumber); A: Something like this? int myInt = (int)Math.C...
{ "language": "en", "url": "https://stackoverflow.com/questions/8666069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Node.js bindings for a Digital Asset Ledger Project I am working through Digital Asset Getting Started with Node.js bindings. Running npm install @da/daml-ledger causes the following error message npm ERR! code E401 npm ERR! 401 Unauthorized: @da/daml-ledger@latest npm ERR! A complete log of this run can be found ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54832864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vue.js - Is there any way to render elements in two different divs using one v-for loop? The goal is to make the output look like this: <div id="tabs"> <div id="first"> <a>tab 1</a> <a>tab 2</a> </div> <div id="second"> <a>tab 3</a> </div> </div> Currently I'm using this solu...
{ "language": "en", "url": "https://stackoverflow.com/questions/72913124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing Activity to Fragment with sqlite db I have recently tried to change a working sqlite populated listview activity into a fragment. I have made the changes needed but I continue to get errors that i dont understand. If any of you could help it would relieve serious frustration. Here is my main activity public...
{ "language": "en", "url": "https://stackoverflow.com/questions/22535619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rollback not happening for ForEach container in SSIS I have the following use case: I am trying to move the files in one folder to another folder. If any file is corrupt then whole process should be rolled back and no files should be moved. For achieving this I am making use of one data flow task and one file system...
{ "language": "en", "url": "https://stackoverflow.com/questions/27773823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check type a variable I'm making a call to os/Create function and want to make sure in one of my test cases that the response is indeed of type *os.File. Below is my code snippet. Though I made a lot of iterations but the motivation for these lines was this post. //somevar -- gets *os.File from a function var varTyp...
{ "language": "en", "url": "https://stackoverflow.com/questions/64093530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python django ORM error/bug?: ...Cannot resolve keyword 'id' into field. Choices are: id, i found the answer! this happened if i named a script exactly like the app name! this is a corrected (simplified) version of the post. i'm trying to run this standalone script (or even located in the app directory): #!/usr/loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/5771965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: visual c++ 2005 dll project and prerequisites needs to be installed on target machine i wrote a simple dll and i included below header files: #include <windows.h> #include <sddl.h> #include <winsock.h> #include <stdio.h> #include <stdlib.h> #include <mprapi.h> #include <raserror.h> #include <mprerror.h> #include <st...
{ "language": "en", "url": "https://stackoverflow.com/questions/15203463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to ensure that gid in /etc/passwd also exist in /etc/group Background: The Unclassified RHEL 6 Security Technical Implementation Guide (STIG), a DoD guide, specifies in (STID-ID) RHEL-06-000294 that all user primary GIDs appearing in /etc/passwd must exist in /etc/group. Instead of running the recommended 'pwck ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27237269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access object in Typescript/Javascript class ResistorColor { private colors: string[] public colorValues = { black: 0, brown: 1, red: 2, orange: 3, yellow: 4, green: 5, blue: 6, violet: 7, grey: 8, white: 9 } constructor(colors: string[]) { if( colors.le...
{ "language": "en", "url": "https://stackoverflow.com/questions/66758615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS Keychain data after renewing distribution certificate My distribution certificate is about to expire & I am planning to submit a new update of app to AppStore. My question is what happens to my app's keychain data after updating the distribution certificate ? I have read this questionwhich describes that On iPh...
{ "language": "en", "url": "https://stackoverflow.com/questions/26136021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: loosing pointers on vector of struct instances, with pointers in the struct Not sure if the title is right or not, but here it goes: If I have for example the following structure: struct strA{ int x; strA(int x); } strA::strA(int x){ this->x = x; } And another structure that uses a pointer to the prev...
{ "language": "en", "url": "https://stackoverflow.com/questions/6105057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: performSelector unable to run while UITableView is dragged? I have a UITableViewController with its default UITableView. I begin slowly dragging the table with my finger to scroll, i.e. not flicking it with my finger. Every time the table moves on-screen the scrollViewDidScroll method of the controller is called; wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/4230361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java get each digit from 2 strings and calculate it The task is asking me to insert 2 strings of a very huge number and sum them from right to left like the way we studied in primary school like: 23 + 28 = (2 + 2 + <1> (this is the left 1 >>> keep reading ))(3 + 8 (give the left <1> from 11 sum with the two front n...
{ "language": "en", "url": "https://stackoverflow.com/questions/49571219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Deserialize ISO 8601 date time string to C# DateTime I'm trying to use: JsonConvert.DeserializeObject<DateTime>( "2009-02-15T00:00:00Z", new IsoDateTimeConverter() ) But it gives me a FormatException: Input string was not in a correct format. What am I doing wrong? A: If you're parsing a single value, the simplest...
{ "language": "en", "url": "https://stackoverflow.com/questions/17301229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jquery ajax return value and done function I found this little example on jquery documentation page. I always tried returning value from ajax function and I was always told that there is some problem of sync and async thing and I can't return value out of $.ajax function without making it async. $.ajax({ url: "te...
{ "language": "en", "url": "https://stackoverflow.com/questions/12869127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Making Python Logging work async with Celery I have logging setup. In particular, I have SMTPHandler. I would like to have it happen async. I'd like to use celery to make that happen. Is that possible? import logging logger = logging.getLogger("logger") mail_handler = STMPHandler(...) mail_handler.setLevel(logging....
{ "language": "en", "url": "https://stackoverflow.com/questions/12718840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Record Screen's Happenings(Audio+Video) i am new baby in WebRTC and want to implement system like video conferencing , live streaming or you can skype using WebRTC and NodeJS. i am confused with one thing , as its our one of client's requirement , suppose on page whatever is happening it may be video conferencing s...
{ "language": "en", "url": "https://stackoverflow.com/questions/24037528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with CKEditor inside a ColorBox modal popup Please can anyone help me out. I have an html page in which I have added a modal popup from ColorBox. In the ColorBox popup, I have added a CKEditor. The problem is as follows: In IE, the CKEditor works fine, but in FF & Chrome, I get the CKEditor like in readonly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5376836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JPA: relation manyToMany on the same entity I have an Entity that has two relation manyToMany with itself and I don't want to use Cascade.MERGE because I need to do some data checks to validate the data: @Entity("device") public class Device { ... @ManyToMany(mappedBy = "parents", targetEntity = Device.class, fetch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41225598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Google.GoogleApiException 'File not found: [404]' when trying to list files in a non-root Google Drive folder I'm trying to access files in Google Drive. I picked up code to create a Google Drive service from the Google docs... private static DriveService GetDriveService() { UserCredential credential; using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69903008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get values from NSDictionaries I have the following code: NSDictionary *dict = @[@{@"Country" : @"Afghanistan", @"Capital" : @"Kabul"}, @{@"Country" : @"Albania", @"Capital" : @"Tirana"}]; I want to list many countries and capitals, and then randomize i.e a country and put it on the screen, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/14740911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net Razor v3 jquery ajax post returns 404 not found I recently started a Asp.net Razor v3 project. It's the first time I use this (before I only used MVC and Web Forms) I am struggling to get a code behind that gets called by a jquery ajax function to work. When debugging on Chrome I see that the script returns ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47753186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python 3 hex conversion I'm trying to convert some code from 2 to 3. I have val = str(''.join(map(chr, list(range(0, 256, 8))))) and I need to translate x = str(val).encode('hex') and x.decode('hex') Thanks A: In python2, your code produces: In [4]: val = str(''.join(map(chr, list(range(0, 256, 8))))) ; val O...
{ "language": "en", "url": "https://stackoverflow.com/questions/22419361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MonoDevelop and XCode I'm using MonoDevelop 2.8.5 and XCode 4.2.1. Every time I'm switching to monodevelop window from anything else, it starts to update XCode project file and pops XCode window. More over, when I switch from XCode back to monotouch, it updates the project and switches back to XCode. Thats's really ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8826835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I cannot seem to run this properly... It stucks and does not display an output Here's my script: while [[ $startTime -le $endTime ]] do thisfile=$(find * -type f | xargs grep -l $startDate | xargs grep -l $startTime) fordestination=`cut -d$ -f2 $thisfile | xargs cut -d ~ -f4` echo $fordestination startTime=$(( $s...
{ "language": "en", "url": "https://stackoverflow.com/questions/12658050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to set a threshold value from signal to be processed in wavelet thresholding in python I'm trying to denoise my signal using discrete wavelet transform in python using pywt package. But i cannot define what is threshold value that i should set in pywt.threshold() function I have no idea what the best threshold v...
{ "language": "en", "url": "https://stackoverflow.com/questions/58725295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Convert c# date to Javascript This is how I convert .Net Datetime to Javascript. I found the code somewhere a long time ago and use it for Highcharts. Now the chart sometimes looks strange with the lines messed up. I suspect it has to do with the date. Datetime curDate = "11/14/2013"; string jsDate = "Date.UTC(" + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19985581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: two forms conflict with each other I have placed two forms on one page. Bothe forms work fine separately but when they are placed on one page at the same time they conflict with each other. Here are both forms: Contact Form: <form name="contactform" id="contactform" method="post" action="#targetAnchorPage2"> <table>...
{ "language": "en", "url": "https://stackoverflow.com/questions/14341904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading a whole mySQL table into a PHP array I have a table with 4 columns and 23 rows. I need all 92 values in the the table as PHP variables (whether that be one array, 4 arrays, 92 individual variables, or whatever). The rows are: ID Category Summary Text I need to build a series of select boxes where the ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/8570059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trouble scraping data from an html table I'm trying to scrape data, in the form of a table, and the hrefs from within that table from a town assessor website using the R package rvest. Despite having luck scraping tables from other websites (e.g. wikipedia), I'm unable to get anything from the town assessor. I am us...
{ "language": "en", "url": "https://stackoverflow.com/questions/56160153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate EntityManager is getting closed, in wildfly 10 I use container managed JPA where inject the EntityManager instance. With the injected entitymanager instance, when I use find() method it says entity manager is closed. I use wildfly 10. How can I overcome this issue? What I do wrong here? I create entity ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/40274703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Allow only numeric value in textbox using Javascript I want to allow only numeric values to be entered into the text and if user enters alphabetic character it should warn the user. Any suggestion for optimized and short javascript code? A: function isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7454591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring Data JPA Self Join with Nullable foreign key I have problem with Spring Data JPA. I want to create a category that have parent category with the same table. Some categories don't need to have parent category, so parent category can be null. but when I do that, and save it, it shown error as below: org.hiberna...
{ "language": "en", "url": "https://stackoverflow.com/questions/51362944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to import one column to a new worksheet? I have a workbook which has individual worksheets detailing client stock trading data, and a master worksheet which has month to date and week to date totals for the clients. I would like to set up a new worksheet titled week to date which will import the week to date col...
{ "language": "en", "url": "https://stackoverflow.com/questions/53009916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Overloading functions not compiling I am following the book C++ Cookbook from O'Reilly and I try one of the examples, here is the code: #include <string> #include <iostream> #include <cctype> #include <cwctype> using namespace std; template<typename T, typename F> void rtrimws(basic_string<T>& s, F f){ if(s.em...
{ "language": "en", "url": "https://stackoverflow.com/questions/3679801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to remove child(html elements) of div Id using jQuery I have <div id="myId"> <div>aa</div> <h3>hellow</h3> <a href="#"></a> </div> So how to remove all content of Id "myId" Using jQuery? The result must be this: <div id="myId"></div> A: * *Use .empty() Description: Remove all child nodes of the set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45561971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: jQuery status indication by file on web server I have a web server. On the web server there is a process running that is doing something. While the process (or program) is running it will post updates on the status of the task it is doing that should indicate more or less when it will be finished. (Like a status bar...
{ "language": "en", "url": "https://stackoverflow.com/questions/39705831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Use Regular Expressions to find a date in a String I am trying to use regular Expressions to extract the dates from a string using VBA in Excel. The string is: Previous Month: 9/1/2015 - 9/30/2015 Or it can be : Custom: 9/1/2015 - 9/30/2015 Do you have any idea how can I achieve that? I have never used Regular Exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/33277932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image create using gd I am creating image using GD library all the functions are working fine. But the main problem where i stucked that i want to merge png image over an other image but after overlapping it cannot merge properly and looking like jpg or other instead of png. I cannot upload my image here due to low ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16979100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 404 Response with Retrofit POST request with Headers parameters I am new to Retrofit Library. When I sending post request with headers parameters using hashMap using @HeaderMap annotation. Below is my code @POST(Constants.UrlPath.POST_CLOSE_EVENT) Call<ResponseBody> callDeleteEventRequest(@HeaderMap Map <String, St...
{ "language": "en", "url": "https://stackoverflow.com/questions/56269368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Harmonic Average Yields incorrect Result As a homework assignment we are required to calculate the harmonic mean using an assembly program being driven by a C program. We are using 64-bit linux machines and are required to use 64-bit floating point numbers. I am new to Assembly. I apologize for any bad coding practi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27282898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call d3 pie chart on button click in angularjs? I am trying to display pie chart using d3.js charts in angularjs . As far as the examples i have seen so far implements pie chart on load . But here i want to display pie chart based on the response from service which is called on a button click . Need some guid...
{ "language": "en", "url": "https://stackoverflow.com/questions/58526693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding 2D points reachable with short intermediate hops I have a list allNodes of around 60,000 nodes that correspond to 2D points. I'm constructing an adjacency list like for(i in allNodes) for(j in allNodes) if(distance(i, j) <= 10) addEdge between i and j and then performing a depth-first search from a se...
{ "language": "en", "url": "https://stackoverflow.com/questions/42121913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java auto-update jar files- Eclipse I have designed a Desktop based GUI on Eclipse using Windows Builder and I have added few external jar files. Now, I am looking to implement a mechanism which checks the updated version of those external jar files and download automatically. Replacement of these .jar files will be...
{ "language": "en", "url": "https://stackoverflow.com/questions/64205857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DNA micro satelite counter I wrote a code to run over the letters in a variable fragile_x_test and count the number of "CGG". as long as the while loop encounter "CGG" it will add it into the counter variable repeat, otherwise, it will break from the while loop and go for the "if" loop below. After the if loop, I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/63834469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically Update Work Item Status within Visual Studio (From 'New' to 'Active') Is there a way to automatically update the status of a Work Item within Azure DevOps from 'New' to 'Active' when the item is added to my 'In Progress Work' from within the 'Available Work Items' section of Visual Studio? Brief contex...
{ "language": "en", "url": "https://stackoverflow.com/questions/56201813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Replace Quoted Values In External SQL Query I use the simple query below to select from a table based on the date: select * from tbl where date = '2019-10-01' The simple query is part of a much larger query that extracts information from many tables on the same server. I don't have execute access on the serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/58714891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom tabs with duplicate tab label name not getting filled in According to: Custom tag in documents uploaded using API, multiple tabs with the same tab label should all be getting filled in with the same value, however, for me, only the first instance is getting that value. I have multiple text tabs with the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/25789380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PhpMyAdmin Create Database No Privileges issue on Mac I have just installed the PhpMyAdmin on my Mac (Yosomite 10.10.5), Everything looks fine, But when I log in to PhoMyAdmin as root and try to create a new database, It shows No Privileges Screenshot here: https://i.stack.imgur.com/YNfSs.png Thanks in Advance A: L...
{ "language": "en", "url": "https://stackoverflow.com/questions/44306838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use EF4 as a DAL I am currently using EF 4 with my ASP.NET Website to access a MySql database. This works fine. However I now want another Web Site project to access the same entities. How do I set this up? I can't just reference the original website as it's a Web Site, not a Web Application. So presumably, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/5662104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Store app submission is non-compliant (not accepting applications submitted through the DreamSpark developer program) I submitted my app updates for certification, but the certification process failed: Thanks for your interest in Windows Store. Unfortunately, at this time, we are not accepting application...
{ "language": "en", "url": "https://stackoverflow.com/questions/35382208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Doc: swagger-ui.html giving Whitelabel Error Page 404 I am using springdoc-open api for swagger integration in my springboot project. I have added below property in application.yml spring: mvc: pathmatch: matching-strategy: ant_path_mathcher and added below dependency in build.gralde file implem...
{ "language": "en", "url": "https://stackoverflow.com/questions/72885697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to update(refresh) JTable with data from a database I'm trying to update a JTable after I add or remove a record from the database (MS Access), but it doesn't seem to work. Also, I don't understand why my column names do not show up. Here's my code: package Administrator13_03_13; public class Arsti2 { JFrame m...
{ "language": "en", "url": "https://stackoverflow.com/questions/15459823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How To Create JPanels at runtime and show its name when user click on it I am creating Chess game , for this i am creating 64 JPanels using Loop. and changing background color, here is the example code that i am using to create panel and changing its background color. for(int i=0;i<8;i++) { for( int j=0;...
{ "language": "en", "url": "https://stackoverflow.com/questions/27172668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inserting a string between certain characters in another string Say I have a string, say String stringy = "<Monkey><Banana><Raffle/>" and another string String stringier = <Cool stuff to add/> How can I insert stringier between the closing > of <Banana> and the opening < of <Raffle/>? I can't use the index of the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/17370055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas Create Percentages from Category Sums I have a dataset of website traffic, for about 2000 websites over a period of a month, tabulated by the type of device from which the traffic originated: In [12]: df.sample(10) Out[12]: date device nb_uniq_visitors site_id 11 2017-10-31 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47205492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Array item completion in a UITextView I'm trying to accomplish an autocomplete of my own for matching array items while typing. So, I already have the logic done for matching what's being typed with what's in the array, but my question is related to displaying the proposed correction in the UITextView like this scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/48370339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String Replacement Combinations So I have a string '1xxx1' and I want to replace a certain number (maybe all maybe none) of x's with a character, let's say '5'. I want all possible combinations (...maybe permutations) of the string where x is either substituted or left as x. I would like those results stored in a li...
{ "language": "en", "url": "https://stackoverflow.com/questions/14841652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Firestore returns empty list I have 3 entries in my firestore database. I need to query the data and fetch it, then input it into an ArrayList. The problem is my query is always returning empty hence the list does not get populated. I have tried pointer debugging this but to no avail. The following is the code in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/72221768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I send nested json POST request in java using jersey? I am using a document converter api called cloudconvert. They don't have an official java library, but a third party java option. I needed a little customization so I cloned the github project and added it to my project. I am sending cloudconvert a .epub...
{ "language": "en", "url": "https://stackoverflow.com/questions/43856634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stack-Based Buffer Overflow Vulnerabilities I am reading a book titled Hacking: The Art of Exploitation, and I have a problem with the section Stack-Based Buffer Overflow Vulnerabilities. I am following the instructions given by the author, but I don't get the expected results. First, here is the program auth_overfl...
{ "language": "en", "url": "https://stackoverflow.com/questions/31320531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Multiple login prompts from azure application gateway V2 I have configured an application behind my application gateway V2 and it is providing multiple logins prompts. I Have enabled cookie-based affinity on my HTTP settings as outlined in the Azure Application Gateway Documentation, Application Gateway supports coo...
{ "language": "en", "url": "https://stackoverflow.com/questions/60900680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Initialize variables in one line? Is it possible do the following initializations in one line? As I am quite curious whether a shorter code is possible. X = [] Y = [] A: You can initialize them using sequence unpacking (tuple unpacking in this case) X, Y = [], [] because it's equivalent to (X, Y) = ([], []) You...
{ "language": "en", "url": "https://stackoverflow.com/questions/26282217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ajax uploadProgress function not working I have this ajax code for uploading an image. Everything is working fine but the uploadProgress: function is not working. $('#imageuploadform').on('submit',(function(e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23025327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting rows with similar column value depending on max value of other column I have data set like following FC RC aa F93 GT 16 F92 GT 1 F90 OT 48 F94 AP 2 F93 EU 2 F90 NA 13 F92 OT 1 F92 SA 1 I would like the result to be: FC RC aa F93 GT 16 F90 OT 48 F94 AP 2 F93 EU 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/37756077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why typedef doesn't work with pthread? I'm trying to send a typedef through a function. However, it seems I can't. #define MAX 2 typedef struct { unsigned long myPid; unsigned long parentPid; unsigned long myTid; } myProperties; void* funcproperties(void* arg); void createthread(myProperties (*propertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/40065627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Position middle container right after the one before, but docked to bottom I have a web page that consists of a header, slider menu content and footer. I need the content to start from the menu (menu size and location is based on the elements above that depends on device), and it should always be 25px from the botto...
{ "language": "en", "url": "https://stackoverflow.com/questions/18820949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails4 Youtube uploader 401 error i'am developing a rails4 application that uploads videos to youtube using the user's Google account credentials. I succeeded contacting the YoutubeDataApi to check user's credentials but when i try to push the Video to youtube servers it respond to with a 401 error : Token Invalid. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29448850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XPATH expression with negating condition in SAP PI XSLT Mapping I have to maintain conditions in Interface Determination of ICO in SAP PI. I have several invoice types like L1, S1, G1, F1, etc. I have two separate mappings as per requirement. When the Invoice type is L1, S1 or G1, and LAND1 = IND, PARW= W and QUALF...
{ "language": "en", "url": "https://stackoverflow.com/questions/59559238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }