text
stringlengths
15
59.8k
meta
dict
Q: Comparing two text files is not working in Powershell I am trying to compare the contents of two text files and have only the differences be outputted to the console. The first text file is based on the file names in a folder. $AsyFolder = Get-ChildItem -Path .\asy-data -Name I then remove the prefix of the file n...
{ "language": "en", "url": "https://stackoverflow.com/questions/61647849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I configure logback to use xz compression for my logs automatically? How do I configure logback to use xz compression for my logs automatically? Is xz even supported or only gz and zip? A: No, logback doesn't support xz. You can see it in source for RollingPolicyBase.java and source for Comressor.java
{ "language": "en", "url": "https://stackoverflow.com/questions/40163934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to generate a UI for a ListView Adapter for FaceBook like Feed how to creat a Arraylist adapter which will change the view based on a flag in the LISTVIEW, Flag can be IMAGE , IMAGETEXT, VIDEO , VIDEOTEXT, TEXT e.g like in facebook post , 1. if a friend posts a text, list row will only contain a text with his ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22401253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting an Array from Return statement, deduce a string from that I have a 'Case' conditional code snippet wherein I am returning two objects. The psuedocode is - case name when 'a' object1 = - SQL Logic - when 'b' object1 = - SQL Logic - when 'c' object2 = - SQL Logic - when 'd' object2 = - SQL Logic - end retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/30243090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Contentful with Gatsby: rendering RichText field by accessing json not possible (raw instead) I am following a documentation on how to implement Contentful's RichText field type with Gatsby. My GraphQL query only returns a field raw on my RichText field called synopsis: query MyQuery { allContentfulCountry { e...
{ "language": "en", "url": "https://stackoverflow.com/questions/64960708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extension SNMP Agent C# I am a complete newbie to SNMP. Recently, I am trying to write a simple program that is supposed to monitor and modify a data file in a remote machine. The file itself could just be a plain-text file or whatsoever. I was introduced to the SNMP, and tried to figure out a way to make SNMP do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/4340067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Possible exception(s) thrown by CloudBlockBlob.UploadFromFile(...) Which exception(s) can be raised by Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.UploadFromFile(...)? The C# metadata and online documentation page lists no exceptions for this method. Several examples on StackOverflow and elsewhere catch the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/55837064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: getting data using Importxml into a spread sheet I tried to import xml data from a website to a spreadsheet, but most of the xpaths work except this one, it keeps throwing errors This is my full syntax: =IMPORTXML("http://egypt.souq.com/eg-en/2724304505488/s/","//*[@id="content-body"]/header/div[2]/div[1]/div[1]/div...
{ "language": "en", "url": "https://stackoverflow.com/questions/32121337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a nested list from an object? I have an tags object from treetagger's python wrapper that apparently is list: In: print type (tags) Out: <type 'list'> When I print the content of tags as follows, I get the following lists: In: def postag_directory(input_directory, output_directory): import codecs...
{ "language": "en", "url": "https://stackoverflow.com/questions/36805437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Searching for one-word string occupying a line of a text with Python 2.7 I have (very) long document (in .txt) that has this format: Title text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text t...
{ "language": "en", "url": "https://stackoverflow.com/questions/35988293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android gradle monkeyTalk build issue I'm using monkeyTalk in order to get write test by this demo. I`m using AndroidAnnotations 2.7.1 and i faced an issue like this. Note: Generating source file:com.activity.SaveFileDialogActivity_ Note: Time measurements: [Whole Processing = 517 ms], [Generate Sources = 185 ms],...
{ "language": "en", "url": "https://stackoverflow.com/questions/31676760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Datascroller issue - When dataTable and dataScroller is nested inside loop DataScroller pagination issue - The requested page #2 isn't found in the model containing 1 pages. Paging is reset to page #1 I have used a4j:repeat to iterate rich:dataTable and rich:datascroller. The problem with rich:datascroller is that p...
{ "language": "en", "url": "https://stackoverflow.com/questions/41484992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simple while loop excercise im learning java and currently im stuck on one exercise in which i cannot comprehend why is code behaving this way. Im tracing my steps on paper, but i would expect different answer than program actually does. If anyone could please explain why it does what it does CODE: System.out.print(...
{ "language": "en", "url": "https://stackoverflow.com/questions/21945481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nothing is being returned? Can I not assign a two-dimensional array all the values of a pre-existing one? I am trying to return an array of points by looping through an existing two-dimensional point array. findMatches(b) contains an array of arrays of points from a board. If I could just access and alter these poin...
{ "language": "en", "url": "https://stackoverflow.com/questions/27175418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if function will result in error before executing I have this discord bot I have been playing around with. Since I constantly am trying things, I decided to do a command-command, which I would call by doing !cmd (message.channel or whatever). However, due me being bad at typing and forgetting to do things like...
{ "language": "en", "url": "https://stackoverflow.com/questions/61552366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to store Array of objects into redis cache using php I Have an array of objects that I need to store into redis cache and use it later. $obj = array( 'request_id' => $request_id, 'request_start_dttm' => $start_time, 'client_id' => $clientId, ); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69624784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pandas DataFrame Replace every value by 1 except 0 I'm having a pandas DataFrame like following. 3,0,1,0,0 11,0,0,0,0 1,0,0,0,0 0,0,0,0,4 13,1,1,5,0 I need to replace every other value to '1' except '0'. So my expected output. 1,0,1,0,0 1,0,0,0,0 1,0,0,0,0 0,0,0,0,1 1,1,1,1,0 A: Just use something like df[df != 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/25028944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android - Python communication using zeroMQ With zeroMQ, is it possible to send ('Hello' message) from an Android app I created to a commandline running .recv() in python? I made an android app with a button, once pressed it sends "hello" to the tcp://machine2:5555. An extract of the button listener: settingsButton....
{ "language": "en", "url": "https://stackoverflow.com/questions/26697702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I fire event only when user finishes modifying Text widget? I have an SWT Text control. I am trying to figure out how to listen for when the user is finished modifying the control, ie it is modified and then tabbed out of. I don't want my listener to be called every time a character changes in the textbox, and I...
{ "language": "en", "url": "https://stackoverflow.com/questions/25691419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fit Cos function to a list of integers without shrinking the X or Y axis in Python? I have a list of numbers called img which has 400 numbers in it. Once I plot it, I can clearly see the cos pattern in it. Once I try to fit using optimize.curve_fit, the function is not able to fit correctly, unless I divide i...
{ "language": "en", "url": "https://stackoverflow.com/questions/61247169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to search a field name in the design view of Table or Query? I heave a table with about 100 fields, when I want to edit a field I found a difficulty to visual search among such No. of fields. The work around is copying one field to Excel then search on Excel for the specific field name, but if the lay...
{ "language": "en", "url": "https://stackoverflow.com/questions/53644879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authenticating guest/anonymous users using JWT I'm building an SPA that a user can upload some files. The front-end is written in AngularJS while the back-end is using an API in Laravel 5.7. The authentication is implemented using the jwt-auth library. So far I have implemented this for registered users where each u...
{ "language": "en", "url": "https://stackoverflow.com/questions/52664910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Assigning to an array which is a member of struct This question may be a duplicate. But I am asking it again because the solution provided there dint help me compile the code error free. I have a following code snippet #include<stdlib.h> using namespace std; void initgrid(); struct gridblock {...
{ "language": "en", "url": "https://stackoverflow.com/questions/22215660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why my error in subscirbe(()=>{},err=>{here}) is different from the error in browser console This is loadSize() function and it calls a getTotalNumberCampaigns() function in my campaignsService class. loadSize() { this.campaignsService.getTotalNumberCampaigns().subscribe(value => {//async call this.camp...
{ "language": "en", "url": "https://stackoverflow.com/questions/35718175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Long-polling amazon sqs with android and ios sdk How would someone achieve this with not using http requests (rest). Is this possible with the native sdks? On android I am running a "every-2-second" iteration of a intent service call: scheduleTaskExecutor= Executors.newScheduledThreadPool(10); scheduleTaskExecutor.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/31195333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex error c#? How i can use "/show_name=(.?)&show_name_exact=true\">(.?) Match m = Regex.Match(input, "/show_name=(.*?)&amp;show_name_exact=true\">(.*?)</i", RegexOptions.IgnoreCase); // Check Match instance if (m.Success) { // Get Group value string key = m.Groups[1].Value; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/575359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Longest Common Subsequence of Three Sequences I've implemented my version of Longest Common Subsequence of Three Sequences and cannot find a mistake. But Coursera grader says that I fail last test case. It means that the algorithm is almost corrects but outputs a wrong answer in a specific case. But what case is it?...
{ "language": "en", "url": "https://stackoverflow.com/questions/36119853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF DataGrid Last column not resizing properly I am using a DataGrid control to display some data and the last comun of the grid does not resize appropriately when the grid receives new data. When the grid loads is completely empty and data gets inserted after some user input. All other columns of the Grid behave as...
{ "language": "en", "url": "https://stackoverflow.com/questions/35454278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining dictionary inside a class in python I am creating an empty dictionary inside a class and then I am trying to give the variables inside the dictionary some value. As shown in the code below. In the end, I am trying to print the dictionary values in the console but I receiving errors In the editor: import num...
{ "language": "en", "url": "https://stackoverflow.com/questions/56527907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separate Socket.io into app.js I'm working on my Express project right, currently I have app.js, socket folder where are my sockets , but all my logic is in bin/www since Im using sockets in my routes like this: req.io.emit('dataUpdated', { id: client }); but I would like to seperate it into app.js how could I do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51053199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the same date result from Model.objects.create and Model.objects.get in Django? Given the following Django model: from django.db import models class SomeModel(models.Model): date = models.DateField() When I create an object with following code, type of date field is unicode obj = SomeModel.objects.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/30296796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue Initializing select2 dynamically Select2 initializes for the first item generated with on click and then on generating new div item with on click the select2 property is removed from the first item and initializes on the 2nd. $(document).ready(function(){ $("#packages #add_package").on("click", function(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74288361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio / Properties / Debug / Working Directory want it permanent but don't want to check in the *.user file The project setting Debugging / Working Directory in Visual Studio 20015 will be saved by default in the *.user file wich I don't check in in to my repo because it's user specific. Still, I would like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35036410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving the last record in each group - MongoDB There is a collection of items with the following fields: id item_id quantity last_update ------------------------------------------- 1 111 10 2020-02-10 09:00:00 2 222 10 2020-02-10 09:00:00 2 222 15 2020-...
{ "language": "en", "url": "https://stackoverflow.com/questions/60154484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fastest and efficient way to update mysql data I have 2 db tables: Tbl1: * *user_id *item_id *qty *date_purchase Tbl2 (summary of table 1): * *user_id *item_id *number_of_qty_purchased *last_purchase For now I have only a few thousands of Tbl1. My concern is the scalability of my current approach (retrie...
{ "language": "en", "url": "https://stackoverflow.com/questions/45389717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am trying to get json data from bitbns.com but getting an error I am very new to javascript and I am trying to get json data from bitbns but getting error - "(Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://www.bitbns.com’)." I searched a lot on internet but could not find any solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/48599173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to filter data using Linq in List I am calling stored procedure to get data from database using Linq. This stored procedure is using more than one table to return result using join : public static List<classname> GetMediaTemp() { var medialist = (from m in Context.sp_Temp() select new classname ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19396781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IPhone SDK - How to serialize ABRecord? I'm new in iPhone development, can you advice me how to serialize AdressBook records? I have read stackoverflow - How do I serialize a simple object in iPhone sdk, but I still have questions: should I extend ABRecordRef? Is it possible? Or should I implement own class NSObjec...
{ "language": "en", "url": "https://stackoverflow.com/questions/3204712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Platform Migration: Error when compiling project A few weeks ago I started a Firebase course with flutter, and I was programming on a Windows computer, and now I've been using a Mac for a few days, to learn how to make firebase with iOS too. However, I have received these errors, and I do not know if I am missing a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64822466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Three.js particles vs particle system and picking I have an app that uses a Three.js ParticleSystem to render on the order of 50,000 points. I have spent a lot of time searching for efficient ways to do picking (ray-casting) so as to be able to interact with individual points but have not found a good solution. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24565368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: findViewById returns null for EditText passing values from one class to another class Here is my code. public void HandleSearchButtonValue(int START_INDEX,int places,String featurea) { try { EditText locationEdit=(EditText)findViewById(places); InputMethodManager imm = (I...
{ "language": "en", "url": "https://stackoverflow.com/questions/31959121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aggregate root references another aggregate root by ID, how to maintain integrity using RavenDB? Say I have X as an aggregate root, and Y as another aggregate root. Using a NoSql document database, X holds a reference to Y by Y's Id. If Y is deleted (independently outside of X's context), then X holds a reference to...
{ "language": "en", "url": "https://stackoverflow.com/questions/22303668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can a Java application be informed on receipt of a [FIN,ACK] on a TCP connection? I have 2 connections established from a JMeter instance to an Apache Server, and from the Apache server to a Java application deployed in Jonas. When I kill the JMeter process, the connection to Apache is closed with a [RST]. Then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29006747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java JVM Default Garbage Collector: is it configured the same across different applications? Simply as specified in the title. I ran a test and recorded its memory heap usage pattern over time using JMX. Then I reran my jar file later and studied its memory behavior again. The result was a slightly different memory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54884503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Manage token life duration with SimpleCookie in Python Already got token working correctly, which is set this way: session_cookie = SimpleCookie() session_cookie['key'] = any_string_value session_cookie['key']["Path"] = '/' headers = [] headers.extend(("set-cookie", morsel.OutputString()) for morsel in sess...
{ "language": "en", "url": "https://stackoverflow.com/questions/14141373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Push a set of values to an array based on another unique value in the same array Question background Hello, I have the following array of movie crew members: array:7 [▼ 0 => array:6 [▼ "credit_id" => "52fe49dd9251416c750d5e9d" "department" => "Directing" "id" => 139098 "job" => "Director" "name...
{ "language": "en", "url": "https://stackoverflow.com/questions/40821900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding text from custom script to Kodi Home page via XML I'm guessing this is fairly easy for someone who knows what they are doing. Unfortunately I don't and as much as I would like to spend the next three days googling stuff my 4 year old got a lot of new presents for Christmas and I really should play with him so...
{ "language": "en", "url": "https://stackoverflow.com/questions/41383151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using multiple Perl regular expressions to find and replace I'm a Perl and regex newcomer in need of your expertise. I need to process text files that include placeholder lines like Foo Bar1.jpg and replace those with with corresponding URLs like https:/baz/qux/Foo_Bar1.jpg. As you may have guessed, I'm working w...
{ "language": "en", "url": "https://stackoverflow.com/questions/38056507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I am getting an error when transforming datetime javascript I'm using date.toISOString() to use DateTime format "yyyy-MM-dd'T'HH: mm: ss'Z '", I must use ISO 8601 format. At the time of transformation, the time is showing it 5 hours in advance, that is, I am receiving for example this hour 2020-12-03 16:28:20 and at...
{ "language": "en", "url": "https://stackoverflow.com/questions/65183502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: occasionally i get Server Error (500) Missing staticfiles manifest entry Before you mark it as duplicate, i did search and go throw many questions https://stackoverflow.com/search?q=[django]+Missing+staticfiles+manifest+entry my site works, but sometimes i get Server Error (500), And in logs i get: ValueError: Missi...
{ "language": "en", "url": "https://stackoverflow.com/questions/72653856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Record video with AVAssetWriter: first frames are black I am recording video (the user also can switch to audio only) with AVAssetWriter. I start the recording when the app is launched. But the first frames are black (or very dark). This also happens when I switch from audio to video. It feels like the AVAssetWrite...
{ "language": "en", "url": "https://stackoverflow.com/questions/44135223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to support (on win7) GDI, D3D11 interoperability? I created a D3D11 device and can perform operations such as rendering pictures smoothly, but in order to also support GDI, I tried several methods: * *Through swapchain -> GetBuffer(ID3D11Texture2D) -> CreateDxgiSurfaceRenderTarget -> ID2D1GdiInteropRenderTarge...
{ "language": "en", "url": "https://stackoverflow.com/questions/64370272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between old and new state I am developing a SOAP server that should send state changes to clients. The server communicate with other systems to update its internal state. I am searching for a solution (pattern o whatever) that let me track the state changes after an update. I watched to memento pattern bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/42158633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity framework 6.1.3 large models I am using Entity framework 6.1.3 and i am getting limitation in adding/updating models when exceed to its limits and getting below error. Unable to generate the model because of the following exception: 'System.Data.Entity.Core.EntityCommandExecutionException: An error occurred w...
{ "language": "en", "url": "https://stackoverflow.com/questions/36468402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: checking if characters are equal to a word do { System.out.println("Word: " + secretWord.getWordMask()); //System.out.print("Guesses: " + guesses); System.out.print("Enter your guess: "); Scanner keyboard = new Scanner(System.in); String guess ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15711697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you inherit a generic factory method? Say you have a class Person, and create a collection class for it by extending e.g. ArrayBuffer: class Persons extends ArrayBuffer[Person] { // methods operation on the collection } Now, with ArrayBuffer, can create a collection with the apply() method on the companion ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3374923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I upgrade from Ruby 1.8.6 to 1.8.7 on Windows? On one machine I seemed to have upgrade to 1.8.7 -- mostly because of the TLS support for sending via Gmail -- but I don't remember how I did it, or what to do and have a laptop on Windows 7. How do I upgrade for the 1.8.6 from OneClick? A: Install RubyInstaller...
{ "language": "en", "url": "https://stackoverflow.com/questions/2741180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ADFS Powershell script to add additional SamlEndpoints to existing This question likely doesn't require actual knowledge of ADFS, but I'm providing that for context. The command "Set-AdfsRelyingPartyTrust -Name X -SamlEndpoint Y" overwrites all SAML endpoints with what you specify. What I'd like to do is create a sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/51410010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Given a user's latitude and longitude, I want to retrieve other users around me from the database. Possible Duplicate: How to call user defined function in LINQ in my visual C# web service for my android application? I am currently developing an application on Android that will make use of the user location. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9789943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Setting headers in websphere portal I am new to websphere portal. How to set headers in websphere portlet 8? A: You can do this by enabling two-phase rendering: https://www.ibm.com/support/knowledgecenter/en/SSHRKX_8.5.0/mp/dev-portlet/jsr2phase_overview.html. Enable two-phase rendering in the portlet.xml like this...
{ "language": "en", "url": "https://stackoverflow.com/questions/44862811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Rmagick custom text width/padding using annotate method As per the documentation on Rmagick we can set the width of the rectangle within which our text is placed. http://www.simplesystems.org/RMagick/doc/draw.html#annotate Below is the code that we are using but we are unable to set the padding or a custom width for...
{ "language": "en", "url": "https://stackoverflow.com/questions/45013464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirect to a specific screen from React Native Firebase Push Notifications based on a Deeplink I got a problem, 1 ) I'm using Firebase to send remote Push Notifications, i test by sending from FCM tester. 2 ) I've activated Deep-Linking in my project and started to use it. 3 ) In FCM tester i pass this key value in...
{ "language": "en", "url": "https://stackoverflow.com/questions/70987037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Static functions I'm wondering how I can access the return statement with a static function. I have a static function with Async and I want to then get the return statement in another class - I know it sounds complex but, I'm sure it's an easy solution. Login.class public class LogIn extends Activity { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10883383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: postgresql creating rules on columns? I need to format my SELECT queries on a text column. How may I do it without expliciting inserting it together with the query? Do i use a rule in this case? I have tried creating a rule on the tables' column but apparently it won't work. create or replace rule t_format AS ON SEL...
{ "language": "en", "url": "https://stackoverflow.com/questions/3394105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gradle ignores private Nexus repository when searching for dependencies I am trying to pull some internal dependencies from a private Nexus repository. But when I build the project, gradle does not search for the dependency in the private repo but looks for it in the maven repos. I did some investigations and found ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57703356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detect if browser supports "@supports"? I realize this may be a dumb question because I am returning to web dev after some time anyway, so please don't be shy to enlighten me! To me it seems that the art of css hacks (like back in the day to sniff out old IE browsers) could be used to fill the gap between the new-is...
{ "language": "en", "url": "https://stackoverflow.com/questions/50116732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where does the connection to database need to be made? I am creating a twitter bot that searches twitter for ticker symbols. I am then sending them to a database. The problem that I have here is that the list that is getting sent is not changing. Maybe I have to keep connecting to the database, but I can not figure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65082692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't even make the Bootstrap carousel example code work. Specifically the prev and next buttons I was exploring the basics of Bootstrap and everything seemed to worked fine(the very basic stuff, tables, col, etc.). However, I tried to make a carousel by following the example on the bootstrap website and it didn't w...
{ "language": "en", "url": "https://stackoverflow.com/questions/71956048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using a web service with cascading drop downs Below is my code - <asp:DropDownList ID="ddlCategories" runat="server" /> <asp:CascadingDropDown ID="cddCategory" runat="server" ServicePath="~\Categories.asmx" ServiceMethod="GetCategories" TargetControlID="ddlCategories" Category="Category" PromptText="Please sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/6058372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get assembly of code that instantiated object (with inheritance) I have an abstract class that will need to be able to load files contained in the assembly that made an object of the class. What I could use is FileAssembly = Assembly.GetCallingAssembly() for every child of my class, but since it is a library that pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/29061017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applescript: Repeat until reCaptcha occurs I am pretty new in coding, especially with applescript. I managed to make the following code work: tell application "Safari" repeat delay 7.5 set the URL of document 1 to "https://url.com" delay 2 tell document 1 do JavaScri...
{ "language": "en", "url": "https://stackoverflow.com/questions/36234919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not enough replicas available for query at consistency LOCAL_ONE (1 required but only 0 alive) I am running spark-cassandra-connector and hitting a weird issue: I run the spark-shell as: bin/spark-shell --packages datastax:spark-cassandra-connector:2.0.0-M2-s_2.1 Then I run the following commands: import com.datast...
{ "language": "en", "url": "https://stackoverflow.com/questions/42446887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ActiveTab setting in javascript When i am setting the tabcontainer first tab as active tab through javascript with the following code : var tc = document.getElementById('<%= tabContainer.ClientID %>'); tc.firstChild.lastChild.style.visibility = "hidden"; tc.set_activeTabIndex(0); i am getting the exception like:...
{ "language": "en", "url": "https://stackoverflow.com/questions/3316631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Peculiar Map/Reduce result from CouchDB I have been using CouchDB for quite sometime without any issues. That is up until now. I recently saw something in my map/reduce results which I had overlooked! This is before performing a sum on the "avgs" variable. I'm basically trying to find the average of all values perta...
{ "language": "en", "url": "https://stackoverflow.com/questions/6468637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: KSQL db - UDF look up a ksqldb table Is it possible to create a UDF to receive/look up a ksqldb table? For example: Creating UDF which receives Int UserId as a parameter and retrieves from User Table the user name by the received UserId? I know it can be done by scalar functions with join, but I need to do it by UDF...
{ "language": "en", "url": "https://stackoverflow.com/questions/74029505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: await resp.prepare(request) AttributeError: 'NoneType' object has no attribute 'prepare' async def index(request): async with aiohttp.ClientSession() as client: data=await(email_verification(client)) await client.post('http://127.0.0.1:8000/acc/signup',data=data) async def email_verification...
{ "language": "en", "url": "https://stackoverflow.com/questions/53833244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the key attribute in child component when using v-for in VueJS According to the VueJS documentation I have to pass a :key attribute which is a unique identifier for the component. I have the following component iterator. <line-reactive v-for="(chart, index) in chartcfg" :index="index" :key="chart.id"></line-reac...
{ "language": "en", "url": "https://stackoverflow.com/questions/46408034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Passing Table Valued Parameter to SqlCommand not Working I'm trying to run a test case, and this won't even work... What am I doing wrong here? Here's the SQL: CREATE TABLE Playground.Test (saved DateTime) GO CREATE TYPE Playground.DateTimeTable AS TABLE ([time] DATETIME); GO CREATE PROCEDURE Pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/30600117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where Clsid comes from when registering COM When I register COM dll by running regsvr32 MyCOMdll.dll in CMD I see several entries created in registry, one of them is: [HKEY_CLASSES_ROOT\MyCOMdll.MyClass\Clsid] @="{DB402D5A-5584-4F68-A750-45D3E8133121}" I'd like to understand where DB402D5A-5584-4F68-A750-45D3E81331...
{ "language": "en", "url": "https://stackoverflow.com/questions/34808767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Move data from Google Cloud-SQL to Cloud Datastore I am trying to move my data from Cloud SQL to Cloud Datastore. There are a bit under 5 million entries in the SQL database. It seems like I can only move over 100,000 entities per day before I get a quota error. I can't figure out which exact quota I'm e...
{ "language": "en", "url": "https://stackoverflow.com/questions/43332598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why HTTP/2 on a specific site works in FF, but doesn't work in Chrome, IE and Edge on the same Windows 10 computer? I have a site, that runs on a Nginx 1.10.0 on Ubuntu 16.04 server (OpenSSL 1.0.2h). I want to serve this site over HTTP/2, so I configured Nginx accordingly: listen 443 ssl http2 default_server; listen...
{ "language": "en", "url": "https://stackoverflow.com/questions/38368099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Please tell me how to write nuxt plugins 'printd' During development, we implemented the page to print using Printd. create plugins / printd.ts import Vue from "vue"; import { Printd } from "printd"; Vue.use(Printd); The 'plugins' part of nuxt.conifg.ts. plugins: [ ... , { src: "~/plugins/printd", ssr: false }] b...
{ "language": "en", "url": "https://stackoverflow.com/questions/60071580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I call a Java method that takes a Non-null Void parameter from Kotlin? Primary Question Is it possible to call a Java method with a signature like this (from a third-party library, so the method signature cannot be changed) from Kotlin? If so, how? class Uncallable { void myMethod(@NonNull Void a) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70343009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OSQP failed to find solution for max sharpe ratio I have provided my code. I have also provided the error it is throwing. And I have provided sample data. My actual data is too large to post but this gives you an idea of the data. I am trying to use the pypfopt module to calculate the efficient frontier maximum ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65461301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authenticate desktop application with web application (mvc web app) I have an MVC application where users can authenticate and I developed a small desktop application that needs to authenticate to the web app at startup. I don't need to call APIs from my desktop application, I just need to authenticate. Any code sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/42379419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java BeanUtils Unknown property with underscore (_) I cannot get the property with underscore (ex: User_Name) from a class using BeanUtils.getProperty(bean, property), it always throw error: "Unknown property 'User_Name' on class 'User'". But when I debug the bean, it has User_Name property. BeanUtils.getProperty...
{ "language": "en", "url": "https://stackoverflow.com/questions/57068584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why we need to use get method inside a java file @RequestMapping(method = RequestMethod.GET) In generally while sending form data from the ui pages we are using method="GET" or method="POST" in the form tag then what is the use of these methods in the server side programs. I am using these methods in spring while ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/27147520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Group By dynamic list with Count I'm using a simple case statement to count the occurrences of breakcode in my data and grouping by Seller and SaleDate. However it seems like an inelegant solution. The breakcode could and quite possibly will expand and I would need to update my code when it does. How can this be do...
{ "language": "en", "url": "https://stackoverflow.com/questions/26185905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Printing variables with incrementing suffixes What I'm trying to do would be a lot easier to understand by looking at the code: suffix = 1 prefix1="success" prefix2="success" prefix3="success" prefix4="success" while suffix<5: temp = "prefix"+str(suffix) print temp suffix+=1 So what I'm trying to do is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17714130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Copying text from RichTextBox to WebBrowser I am trying to copy text from a RichTextBox and paste it into a WebBrowser. I use this code: WebBrowser wb = new WebBrowser(); wb.Navigate("about:blank"); richTextBox1.SelectAll(); richTextBox1.Copy(); wb.Document.ExecCommand("Paste", false, null); wb.Document always sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/16317613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i determine color my drawn line and my drawn image? I have the following code: private void DrawImage(PaintEventArgs e) { newImage = Image.FromFile(bmpPath); e.Graphics.DrawImage(newImage, new Rectangle(0, 0, 200, 200)); e.Graphics.DrawLine(new Pen(Color.Yellow, 20), 20, 20, 200, 200);...
{ "language": "en", "url": "https://stackoverflow.com/questions/58527839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: local variable 'final_result' referenced before assignment I am making an django calculator web app and i got stuck with this error Currently, I am building a django powered UI Caculator app and I got stuck with this error.. I can't able to debug it. Whatever I'm to trying is not working at all. I mean i don't wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/65380251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Pseudo-streaming in Flash - Apache and httpd.conf Setup? I installed and setup JW Player 6 plugin to my wordpress. I am using licensed mod. Anyway If I choose rendering mode:"Flash" i can't skip to time. I installed and activated Apache module h264_streaming and restart apache server, but nothing changed. Render Mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/22884772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: three.js: How to get multiple materials working for one mesh I have a big problem with three.js: I want a simple cube with a different color on each face. I have tried this way: // set the scene size var WIDTH = jQuery('#showcase').width() - 20, HEIGHT = jQuery('#showcase').height(); // set some camera attr...
{ "language": "en", "url": "https://stackoverflow.com/questions/15759447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Anchor Imageview at view bottom on scrollview layout I have a scrollview layout with several linear layouts inside. The last view of the scrollview is an ImageView which I need to appear always at the bottom of the screen. The content of the view is dynamic, and sometimes the screen does need to be scrolled and some...
{ "language": "en", "url": "https://stackoverflow.com/questions/27300523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C retain counts clarification I kind of understand what's retain counts for. But not totally. I looked on google a lot to try to understand but still I don't. And now I'm in a bit of code (I'm doing iPhone development) that I think I should use them but don't know totally how. Could someone give me a quick...
{ "language": "en", "url": "https://stackoverflow.com/questions/2881880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error on setting "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentDateTime I am new on Grails (2.4.1). I am trying to use joda time (1.5). When I put the script below to my Config.groovy an error occurrs. grails.gorm.default.mapping = { "user-type" type: org.jadira.usertype.dateandtime.joda.Persi...
{ "language": "en", "url": "https://stackoverflow.com/questions/24719178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing a value from Server.R into .js file I think's it's quite an easy one but I can't find a way to solve it myself. I'd like to access the value of a variable in my Server.R file (I'm using Shiny) in my javascript file. My var "i" in myFile.js should take the value of my R variable "number". How should I proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/24657590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL JOB Output File - Remove Header I am trying to create a job that outputs the data into a file for manipulation later. I can easily output the file In the Job Type I have it set up for T-SQL for my query and this is the advanced tab for the Job step. It's working fine, except for the data that is being exported ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64543039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use 'strict' mode in Chrome 'JavaScript Console' I am practicing JavaScript on Chrome's 'JavaScript Console' ( version: 35.0) and I am unable to use the 'use strict' clause as expected. For the following code snippet : var obj={x:1,y:2} //Define new property with 'writable' flag as false. Object.defineProper...
{ "language": "en", "url": "https://stackoverflow.com/questions/24369328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }