text
stringlengths
15
59.8k
meta
dict
Q: Json file to Room Db I am a newbie on Android Development.I have a json file formatted like this: "users": [{ "id": "1", "name": "Vanessa", "profilepic": "https://.." },... ] I am creating room database but how can I record this user json file into it. I heard about gson but I could not find any solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/75137960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NiFi ListenHTTP processor: Uses an unsupported protocol I have configured a ListenHTTP 1.7.0 processor in NiFi 1.7.0-RC1. It is listening on a custom port behind a reverse proxy. I have configured a StandardRestrictedSSLContextService with a JKS keystore and have added the keystore password. We have not configured t...
{ "language": "en", "url": "https://stackoverflow.com/questions/64646057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to clear facebook stream cache I am using facebook publish_stream method to post feed on facebook user timeline. The post is containing the image URL and title with some description. However the posted image could be change later but that change couldn't reflect on facebook side as they had cached the image. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/12178497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: custom dialog border is always white <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/yellow" android:orientation="vertical" > <LinearL...
{ "language": "en", "url": "https://stackoverflow.com/questions/8239161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ : Reading file and store data in multi-vector I am trying to read data file with the this format T1: I1,I2,I5 T2: I2,I4 T3: I2,I3 T4: I1,I2,I4 T5: I1,I3 T6: I2,I3 T7: I1,I3 T8: I1,I2,I3,I5 T9: I1,I2,I3 I don't want to read the first column T1,T2,T3 ...... , but each line will be a dataset I want to sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/32834518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System has not been booted with systemd ERROR when updating Postgresql in Ubuntu I've been following this link to update Postgresql on my Ubuntu-18.04 (VM running on Windows 10) https://computingforgeeks.com/install-postgresql-12-on-ubuntu/ However, Im getting the below error, so I cannot proceed. .../desktop/my_app...
{ "language": "en", "url": "https://stackoverflow.com/questions/69663496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: broken pipe when installing NodeJS 16 on Ubuntu 22.04 Trying to install NodeJS 16 on ubuntu 22.04. Ran the official installation instructions: sudo apt-get install -y nodejs Got the following error: The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73698505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java modulus operator and PreIncrement - SCJA Im revising for my SCJA exam at the minute and im confused by this question and answer. The question is what is the result of running and compiling the code. public class Test{ public static void main(String args[]){ int counter = 0; for(in...
{ "language": "en", "url": "https://stackoverflow.com/questions/14912487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java scanner hasNextLine returns null after an object is constructed only once(?) first post. I have a list file with user information I'm trying to create objects out of, to then put into an array list. When it has read the first 4 lines it constructs the object once, and when it loops to continue reading the file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66136686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel VBA - CountIfs - Moving from one spreadsheet to another I'm working on a CountIfs formula for a project and am having a little trouble. I'm pulling data from worksheet HR Data Detail and pasting it onto worksheet HR Data Summary. At the end of my CountIfs formula I have the range Z2:Z, which contains the years...
{ "language": "en", "url": "https://stackoverflow.com/questions/53157003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implement monkey patch in C++? Is it possible to implement monkey patching in C++? Or any other similar approach to that? Thanks. A: To add to other answers, consider that any function exposed through a shared object or DLL (depending on platform) can be overridden at run-time. Linux provides the LD_PRELOAD...
{ "language": "en", "url": "https://stackoverflow.com/questions/1584907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to calculate the rank of a list without pandas and numpy? i've written the following code: s = [2,1,-99,100,45,-2] li=[] for i in range(len(s)): li.append([s[i],i]) li.sort() sort_index = [] for x in li: sort_index.append(x[1]) print(sort_index) this g...
{ "language": "en", "url": "https://stackoverflow.com/questions/66412446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: something wrong with this jquery? There is a debugging syntax error, but I can’t see it! im a bit of a newbie, so excuse my code!! $(document).ready(function(){ /* fetch elements and stop form event */ $("form.follow-form").submit(function (e) { /* stop event */ e.preventDefault(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3769649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Perl - How to change every $variable occurrence of ";" in a string Very new here so be gentle. :) Here is the jist of what I want to do: I want to take a string that is made up of numbers separated by semi-colons (ex. 6;7;8;9;1;17;4;5;90) and replace every "X" number of semicolons with a "\n" instead. The "X" number...
{ "language": "en", "url": "https://stackoverflow.com/questions/5032927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set button and textView weight programmatically I'm creating a basic to-do app, when the event addRow is called, I want to programmatically add the XML layout below (a new row containing a text and button) How can I create the following layout programmatically? <TableLayout android:layout_width="matc...
{ "language": "en", "url": "https://stackoverflow.com/questions/61432562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which Thread will a Service run in? I have an Activity A that starts a service S via startService method. Now as per the documentation Service S will run on main thread or the UI thread Now my question is when activity A is destroyed will the UI thread still exist? What will happen if I reopen the Activity A thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/55226363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CMake subdirectory install/uninstall targets I've got a project with two subdirectory projects (added with add_subdirectory), each with their own libraries, binaries and install/uninstall targets. So: main_project | |--CMakeLists.txt |--src/ |--CMakeLists.txt (with binary target, install() | |--project_a |--C...
{ "language": "en", "url": "https://stackoverflow.com/questions/39361089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting distance from Google Direction API in Android http://maps.googleapis.com/maps/api/directions/json?origin=-20.291825,57.448668&destination=-20.179724,57.613463&sensor=false&mode=%22DRIVING%22 For example this link generate the following: "routes" : [ { "bounds" : { "northeast" : { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20979853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: what is difference between TDF and PCEF? In the PCC architecture there is is TDF and PCEF that they are same. What is difference between TDF and PCEF? HowTDF and PCEF work with together? A: Firstly it is worth also mentioning the PCRF, the Policy and Charging Rules Function, which is the entity that defines and m...
{ "language": "en", "url": "https://stackoverflow.com/questions/54059134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SonarQube giving unused private method issue for lambda usage I have the following logic; .. if(list.stream() .filter(MyClass::isEnabled) .filter(this::isActive) .count() > 0) { //do smth } .. private boolean isActive(MyClass obj) { return bool; } As you see, isActive method is being us...
{ "language": "en", "url": "https://stackoverflow.com/questions/35643062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Material UI Typography & Media Queries in below in the typography component, i wanted to make the variant prop dynamic in accordance to the different screen widths , how it can be done?? appreciate your feedback import { useTheme, useMediaQuery } from "@material-ui/core"; const Home = () => { const classes = use...
{ "language": "en", "url": "https://stackoverflow.com/questions/71394111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AttributeError: 'module' object has no attribute 'point' When I try to run this code: import arcpy, os arcpy.env.overwriteOutput = True def polylineArea(x, y): # this is your function definition count=len(xlist) area=0 j=count-1 for i in range (0, count): area+=((x[j]+x[i])*(y[j]-y[i])) j=i...
{ "language": "en", "url": "https://stackoverflow.com/questions/49736368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: CBCharacteristic value in swift3 I am beginner in swift development. I was working on BLE based application. Today I updated Xcode 8, iOS 10 and convert my code to swift3. Then some of my syntax are need to convert. After fixing this , I found one issue on CBCharacteristic. Issue Inside didUpdateValueforCharacterist...
{ "language": "en", "url": "https://stackoverflow.com/questions/39487553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Construct .htaccess file to cover set of cases This is what I need to do: I need to write an .htaccess file that: * *Redirect all http requests to https *Redirect all https://example.com to https://www.example.com *Block bad bots *Prevent access to .htaccess *Add compression to ALL file types on the site T...
{ "language": "en", "url": "https://stackoverflow.com/questions/34366389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LEFT JOIN doesn't work with count I have a problem with my query: SELECT table1.Name, COUNT(*) FROM table1 LEFT JOIN table2 ON table2.Name_all = table1.Name GROUP BY table1.Name It shows and counts a names from table1. I want to join all names from table2 which do not exist in table1. Maybe someone knows w...
{ "language": "en", "url": "https://stackoverflow.com/questions/12578436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: when i call str.replace() in javascript it goes to error ir is not defined See my code for (var i = 0; i < allTextLines.length; i++) { var row_data = allTextLines[i]; console.log(row_data); row_data = row_data.replace(/ /g,''); try { ir(row_data == "")...
{ "language": "en", "url": "https://stackoverflow.com/questions/27744072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: ASP.NET MVC3 Using Areas I'm having some troubles setting up two Areas in my project, I created both Areas by right clicking my project -> Add -> Area using VS 2010 Professional, The code it generated in the *AreaRegistration.cs files is exactly as I'd expect it. Both my areas have multiple controllers. I've checked...
{ "language": "en", "url": "https://stackoverflow.com/questions/7745228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using sed (or other command line programs) to delete every other X lines I have a huge text file that has several iterations of the same thing at different times, with a basic structure of: Header (5 lines) Data (thousands of lines) Header (5 lines) Data (thousands of lines) Header (5 lines) Data (thousands of lines...
{ "language": "en", "url": "https://stackoverflow.com/questions/50705049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I merge the multiple If Else using decode in PL/SQL? The code goes like- If X=x1 then select a,b from tab where zz=yy; elsif X=x2 or X=x3 then select a,b from tab where zz=yy and yy= 123; elsif X=x4 then select a,b from tab where zz=yy and yy= 456; end if; The code in select is being...
{ "language": "en", "url": "https://stackoverflow.com/questions/39685158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting last occurrence of a certain string from each row in a pandas series from each row i want to extract the last occurrence of the word "user" + the number that follow right after it from a pandas series. everything else can be discarded. how would you perform this action? thanks!!! here's an example of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70881436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Read from named piped I have to write a program which monitors two named pipes and prints the information sent through either. When the write end of one of the pipes is closed, the program will detect this and close and open the pipe again. This is what I have written so far: #include <stdio.h> #include <stdlib.h> #...
{ "language": "en", "url": "https://stackoverflow.com/questions/54098904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert String to its resource ID (Android Studio) I have an xml string in my values/strings.xml file <string name="pokemon_d">150</string> And I have the String "150" in my controller MainActivity.java. In my MainActivity, how can I convert that String to the resource ID of the pokemon_d String in the x...
{ "language": "en", "url": "https://stackoverflow.com/questions/34957155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Print narrow strings using swprintf in C++Builder The following lines both "work as intended": wchar_t u[50], v[50]; swprintf(u, 50, L"%s", L"hello"); swprintf(v, 50, L"%ls", L"goodbye"); MessageBoxW(NULL, u, v, MB_OK); // output: MessageBox showing "hello" and "goodbye" Is there any way to print a narrow strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/27920229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Imagemagick transparency not working in 6.9 but works in 7.0 I'm running this command to crop an image and retain (alpha?) transparency: convert bigger.png -crop 2048x2048 -gravity northwest \ -extent 2048x2048 -transparent white \ -set 'filename:tile' '%[fx:page.x/2048]_%[fx:page.y/2048]' 'tile_%[filename:tile].pn...
{ "language": "en", "url": "https://stackoverflow.com/questions/56049530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UnknownHostException with HTTPConnection in Android An UnknownHostException arises when I attempt to execute the following code... String line; String url = "http://mywebsite.com"; URL theURL = new URL(url); HttpURLConnection conn = (HttpURLConnection) theURL.openConnection(); BufferedReader rd = new BufferedReader(...
{ "language": "en", "url": "https://stackoverflow.com/questions/16954053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to calculate sum of dynamically named model names in a ng-repeat I have a dynamic table with dynamic inputs. Each input has an unique number added to the end of the model name. There are 10 inputs per table with the last being the total. I need to watch the first 9 inputs and calculate the sum. Here is what the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34729065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xpages get a handle on next rowData or Doc in a repeat In my repeat control I want to be able to get a handle on data in the next row in order to modify what data is displayed in my current row (I have move up and down actions, and I don't want to display them if the move is not possible). It seems I should be able...
{ "language": "en", "url": "https://stackoverflow.com/questions/29905981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does my program loop without receiving any new input? I am trying to make is so that my program will start over once the answer is given. It just won't function again once I run it once. I want to make it functional to where the user doesn't have to start the program up again. Thanks! #include <stdio.h> #incl...
{ "language": "en", "url": "https://stackoverflow.com/questions/14993841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is there an error about headers and authorization in a Stripe dependency? Stripe HTTP request dependency returns an error about headers, but these are not configurable. Using a GET request seems fine, but a post route fails with the error: error [err_invalid_char]: invalid character in header content ["authoriza...
{ "language": "en", "url": "https://stackoverflow.com/questions/54728437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Server.MapPath behaves differently with IIS Server and ASP.Net Development Server? Why does Server.MapPath("~") return different results with IIS Express and ASP.Net Development server? When I run my application with ASP.Net Development Server, my path returns like "D:\\MyProject\\Web\\WWWRoot\\ISuite5" but when i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37545861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Arrays inside of Object JavaScript I want to create an array inside of an object with values that refer to properties of the same object containing the array. The only problem I am having is that the results inside of the array are undefined instead of what they are supposed to be. Am I even referring to the propert...
{ "language": "en", "url": "https://stackoverflow.com/questions/34459484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to use Oraclize in solidity to pass arguments to the data source? My aim is to pass some string to the data source and then process there and get back the result. Below given code works in solidity oraclize_query("URL", "json(https://clever-ape-38.localtunnel.me).a","sfdg"); But when i try to fetch some value f...
{ "language": "en", "url": "https://stackoverflow.com/questions/56337630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to write Java program to play mp3 file I am trying to write a program that plays an mp3 file. For some reason, I am getting the error "package.javafx.scene.media does not exist." How can I fix this? A: You need e(fx)clipse or you need to add the jfxrt.jar to your classpath. It comes with your JDK. How do I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/21837050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JAX-RS @Path() custom format I'm Regex newbie. What I trying to do here is, I have 2 @PathParam so the user can either type in "/session" or "/requester" or anything but these two. If the user type "/session" or "/requester" this input will go to pathparam 1 else the pathparam 2. Here is my regex. @Path("/generateot...
{ "language": "en", "url": "https://stackoverflow.com/questions/44645081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What service can be used to limit the number of IoT device connections to a database? I have an IoT system with about 2000 devices. I would like each of the devices to upload data to a MongoDB instance. Each device connects every 8-12 seconds and makes a single entry. The actual entry writing takes about 50ms. My Mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/54659949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resize an image before uploading it to firebase Firebase storage looks very cool and easy to use, but I'm wondering if there's a way to resize an image before uploading it to Firebase Storage, e.g., run a proccess using ImageMagick in a server and then run the uploading process using Firebase SDK but I notice there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37557343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: varnish - regexp to edit x-forward-for header inbound / outbound I am curious if anyone knows, is it possible to build a varnish config which * *looks at inbound headers from clients *and does regexp match, to build a certain header - that is passed on to backed web server? Context: -- Varnish server deployed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20684576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to restrict user to use 1 email id or phone number in only 1 device I'm developing an Android app with Android studio and firebase authentication and I want to restrict user to use 1 email id or 1 phone number in only 1 device .any suggestion how can I archive this functionality. A: Firebase Authentication was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61823002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding Items onto Observable Collection I'm trying to add ontop of a Observable COlleciton. But When I do it doesnt add 2 distinct records, Instead it just adds 2 duplicates of the latest Records. using (var ctx = DB.Get()) { var Indepth = from z in ctx.Interactions where z.ActivityDate >= s...
{ "language": "en", "url": "https://stackoverflow.com/questions/21999273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encryption and decryption with PHP I'm trying to implement encryption and decryption functions in PHP but it is not just working right. Here is the algorithm: * *Encryption key is a master code: 1234567890. *Encryption alphabet is a-z, A-Z, 0-9, = *Encrypt each symbol after the signature that belongs to the enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/12572986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to connect php code to database table I am editing a laravel project and I would like to add a signature feature. I have this code down below that is mobile responsive. But I couldn't figure out how to connect it to an existing Lets say for example that server name: localhost. username: db_test. password:db123. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72341948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to match columns which starts with particular string and ends with other particular string? I have code: import pandas as pd data = {'spike_starts': [1,2,3], 'ends_spike_starts': [4,5,6], 'ends_spike': [7,8,9], 'not': [10,11,12], 'castle': [13,14,15]} df = pd.DataFrame(data) print("\n") print("------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/61281390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Cycle - randomizing multiple elements in sync I am trying to cycle the content of two elements on a page in random order but synced to each other. I have two div containers with a set of nested divs: (div class=text (.textA, .textB, .textC)), (div class=image (.imageA, .imageB, .imageC)) I am using this to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/8226755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dropping floats-- basic CSS layout issue I'm wrestling with a frustrating-- and profoundly basic-- CSS issue that's illustrated by the diagram below, and a js fiddle here. I'm trying to achieve a fluid grid layout with floated block elements defined by percentage widths and varying heights, that will linearize-- i.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/30489317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django Read png image from url then pass it to HttpResponse I want to to read png image from private url then write it to HttpResponse. I have this view that will get a layer from geoServer as a png image then open it and read it then return it as HttpResponse: def get_layer(request): #this url will return png im...
{ "language": "en", "url": "https://stackoverflow.com/questions/48512892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get user Seesion id from SugarCRM using Email ID/User Id I have one sugarCRM installation. When I pass the email id/user id, is it possible to9 get the user session id in sugarCRM? Please suggest.Because based on user identity I need to create Leads, campaigns etc using REST API A: Logged in user details are stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/30618205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FutureBuilder, The getter 'variable' isn't defined for the type 'Object' Im trying to get the values from the Future object, but vsc always says The getter 'wetter' isn't defined for the type 'Object'. Try importing the library that defines 'wetter', correcting the name to the name of an existing getter, or defining...
{ "language": "en", "url": "https://stackoverflow.com/questions/68184617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error executing "docker ps --format". Error: flag provided but not defined: --format I have install docker using following command: sudo apt-get install docker.io for testing purpose, I run a Ubuntu image in detached mode using sudo docker run -d -it Ubuntu But when I tried to execute docker ps command like sudo...
{ "language": "en", "url": "https://stackoverflow.com/questions/40550258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My logged in user gets logged out every time I refresh the page. -JS, REACT, JWT, socket.io I'm a student and I'm trying to create a chat app with login/registration with React, but I cannot seem to keep the user logged on whenever I refresh the page. Can anyone please help me out? Thank you in advance. Login.jsx ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75523973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can two or more lists be traversed in O(N) I have a question that doesn't seem possible to me. I have 2+ arrays which I have to compare for common values. I am supposed to do this in O(N) comparisons but can't think of a way. Specifically (k-1)N comparisons where k is the number of arrays. I've narrowed down how...
{ "language": "en", "url": "https://stackoverflow.com/questions/32772071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auth0 is failing localauthsetup 3 times and later i am able to route to the home page When I login through auth0 - the localauthsetup is failing 3 times and next it is returning true to login, can you please help me with this? localauthsetup and handleAuthCallback are called in the appcomponent which is similar call...
{ "language": "en", "url": "https://stackoverflow.com/questions/59386132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get black screen after popScene I just started learning Cocos2dx, and use the basic HelloWorld project. I added a SecondScene and and a button in it to change scene. But once the popScene method executed, screen became black and it didn't pop to first scene. I don't have any idea what's wrong. Here's the code I modi...
{ "language": "en", "url": "https://stackoverflow.com/questions/21285166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ListView scroll position not maintained after loading content using CWAC Endless Adapter update Basically, bbrakenhoff has answered my question but there is just one more thing left to fix. How can I update the contents of my EndlessFeedAdapter (mEndlsFidAdptr)? I need to clear the item and then reload. I'm using...
{ "language": "en", "url": "https://stackoverflow.com/questions/25363372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic data on chart (Charts pod) I started to work with Charts pod (swift 4 language) and I'm going to create a very simple app that uses the line chart. In the examples I downloaded from the Charts web page, a list of random entries is created and then they call a method to display everything in the chart in a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/52303408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use python pandas to find a specific string in various rows I am trying to do my taxes. I have over 2,000 rows of data in a CSV of orders. I am trying to just count and print the rows that contain "CA" so I know the ones I need to pay sales tax on. I understand I can do this with python using the pandas libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/70794940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do I obtain the ASCII code of a character? I have a char variable, declared for example as: char a = 's'; How can I get the ASCII code of this symbol? Thank you. A: a holds the ascii value of 's' (115). Think of a char as just a small integer. If you want it in an integer for whatever reason, just cast it. cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/2447760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery post and get methods not working on remote server the following jquery code works fine on local server but doesn't work on remote server. FYI remote server is recognizing jquery. I got that working through My Stackoverflow Q Please checkout the problem page at Merry Flowers Admission Page. When I enter banan...
{ "language": "en", "url": "https://stackoverflow.com/questions/10214383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Edit HTML in text edit field in C# I have a text string with basic HTML tags like <b> <i> <ul> <ol> tags. Now I want to display it parsed in a editable text box and allow user to edit in a WYSIWYG way. How can I do it in C#? Right now I have a RichTextBox but it uses RTF tags under the hood not HTML, so instead of f...
{ "language": "en", "url": "https://stackoverflow.com/questions/32444953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: cast function is extremely memory consuming, how to handle it? I have a table looks like: date item_id store_id sale_num 1/1/15 33 1 10 1/1/15 33 2 12 1/1/15 33 3 15 1/1/15 44 1 54 1/1/15 44 3 66 1/2/15 33...
{ "language": "en", "url": "https://stackoverflow.com/questions/36075880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: javascript - show match item onkeyup this one already works, but I have a problem on changing the content of the array. I wanted to query on my database and use that data as an element of my array. how can I do that guys? <script type="text/javascript" language="javascript"> function ShowMe(obj) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12746524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting associative array with variable keys in PHP i have the following associative array word => count where word is an english word ('more', 'creme', 'car' and so on), while count is the number of times that word appeared in a given string. I want to sort by count. Thx. Ps. I tried usort but didn't work A: <?php...
{ "language": "en", "url": "https://stackoverflow.com/questions/7952744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dismiss current modal view controller curl effect and open MFMailComposeViewController I have a menu loaded from a tableview using the modal curl page effect. So once the user hit's a certain button, this effect will show up. When the user hits the contact us button, an email compose will show up, but since it's a m...
{ "language": "en", "url": "https://stackoverflow.com/questions/23333688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to differentiate application code from system code in dalvik In android dalvik, at every function call site, I want to check whether the caller is application code and the callee is system code. I know a way to do this from an article: Vetting Undesirable Behaviors in Android Apps with Permission Use Analysis i...
{ "language": "en", "url": "https://stackoverflow.com/questions/29114602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Delimiter not showing I'm trying to concatenate with delimiter the value from datagridview. Unfortunately, I'm lost using string join. Thanks, if someone can correct my mistake. private void Button_Click(object sender, EventArgs e) { string message = string.Empty; foreach (DataGridViewRow row in data...
{ "language": "en", "url": "https://stackoverflow.com/questions/44642000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS: How to prevent div from overlapping parent height or parent border I am new to CSS and hope someone can help me with this. I am trying to create a simple progress bar (for later use with JS) that contains three separate color blocks (red, yellow, green). So far I have the below which works in general but the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30830998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why some asset files are too many redirects in https? htaccess file: DirectoryIndex index.php #Options -Indexes # enable apache rewrite engine RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA] I have used this htaccess in root directory. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64463140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tatelerik for asp net mvc requires nuget package manager I downloaded telerik and installed it , i got the visual studio 2013 already installed on my PC . now when i click on new project -> c# -> web -> "telerik ASP.NET MVC Application" opotion"talerik for asp net mvc requires nuget package manager" A: I installed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31100680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect when upload finishes I am uploading an image file to a server in android. I want to know when the upload completes.Is there any way to know that. if there any state in android that automatically calls when the upload completes. OR how to check this state. A: If you're using HttpClient.execute(), it's a sync...
{ "language": "en", "url": "https://stackoverflow.com/questions/5719919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vue-router route param to component prop? I thought this would work: { path: '/course/:id', component: Course.extend({ props: { course: params.id } }) }, Sadly, it's not that simple (it's not id either). How do I do this? (I just took a course on vue, can't believe I can't remember this) A: As it is in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/42012063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Distribute Swift app without Swift framework I read in the blog post about the Swift 5.0 release that [...] applications written in Swift no longer need to be distributed with the Swift runtime libraries, reducing download size. When I tried to archive and export an app it still had the framework. macOS Deploymen...
{ "language": "en", "url": "https://stackoverflow.com/questions/55664077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I want to load images from specific folder from internal storage, how to load images? as well as video too public class ImageAdapter extends BaseAdapter { private File currentDir; String SCAN_PATH; File allFiles ; private Context context; public Integer[] images={ //I want to load images here }; public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46743544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to make a loading animation in Console Application written in JavaScript or NodeJs? How to make a loading animation in Console Application written in JavaScript or NodeJs? Example animation or other animation. 1. -- 2. \ 3. | 4. / 5. -- A: The setInterval() method calls a function or evaluates an expression at...
{ "language": "en", "url": "https://stackoverflow.com/questions/34848505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Writing own phone gap plugin for iOS step by step It been a day scratching my head for this setup. I m feeling writing a plugin code is much easier than the setup. I followed the below steps to to write a simple phone gap plugin for ios. But unfortunately, unable to locate where I missed. Kindly do printout the mis...
{ "language": "en", "url": "https://stackoverflow.com/questions/11760236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: List of commits relative to pushes (remote) I'd like to get a list of pushes relative to some remote branch, and if that's possible, I'd like to be able to list the commits relative to any specific push operation. I've tried searching all over but to no avail so far. A: The "push" is just a synching between two git...
{ "language": "en", "url": "https://stackoverflow.com/questions/56628711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collecting edges in a set from shortestPath iGraph Object I am trying to collect all the unique edges from object created from shortest_paths iGraph function. > data<-as.matrix(data) > data Q W E R T Y U I Q 0 4 7 5 0 4 0 0 W 2 0 5 7 3 2 4 9 E 2 4 0 9 2 2 7 2 R 2 2 2 0 6 0 5 8 T 0 8 8 5 0 5 9 0 Y 4 7 2 6 0 0 5 7 U...
{ "language": "en", "url": "https://stackoverflow.com/questions/48919340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: bash script modify to take parameter from echo command I have this small bash script(sendmail.sh) to send emails using mandril which works super when used like this ./sendmail.sh "my@email.com" "Email Subject" "Email body". Thanks to black @ LET However I want this script to take its email body from echo command lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/28479168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a List of Drive Files Into a Google Sheet var folder = DriveApp.getFolderById('1_gA4D7dfybJ60IdfgsnqdfdsgVoo9D76fgsdgf9cqmAnJI7g7'); var contents = folder.getFiles(); var file; var name; var sheet = SpreadsheetApp.getActiveSheet(); var date; var size; sheet.clear(); sheet.appendRow(["Nome", "D...
{ "language": "en", "url": "https://stackoverflow.com/questions/64365601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring LDAP + @Entry + base attribute - not working I have the following directory structure and am using ODM with Spring LDAP (v 2.3.1.RELEASE). The below is the directory structure am dealing with. dc=example,dc=com dc=studentBase,dc=example,dc=com I declared the base for the ldap context source in the config.xml...
{ "language": "en", "url": "https://stackoverflow.com/questions/43792804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How does Mercurial stack up against GIT and SVN? With Phil Haack and others recently tweeting about CodePlex's move to support Mercurial as a DVCS, I thought it might be worth a look. As someone who currently uses SVN for personal projects and TFS at The Office, how does Mercurial compare in terms of usability, feat...
{ "language": "en", "url": "https://stackoverflow.com/questions/2126400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: PHP - deciding a function to fire without condition I have developed a new technique for my future programs to decide which function is to be fired without if/else statements. It is to create an associative array of functions and call them by a function according to argument given. I think actual representation will...
{ "language": "en", "url": "https://stackoverflow.com/questions/18416690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .htaccess redirect all but not two I'm trying to redirect like this using .htaccess: * -> index.html /affiliate -> affiliate.html /ref/* -> ref.html But the problem is, that all links are redirected to index, how I can exclude several links from this rule? I have this code for now: <IfModule mod_rewrite.c> Rewrit...
{ "language": "en", "url": "https://stackoverflow.com/questions/70879080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: raw bitmap data to jpeg or png C++ I have bytearray where every three bytes describes 1 pixel (RGB). The task is to convert it to jpeg or png. Actually, I am using Zint (open source lib for generating barcodes) that uses libpng to generate image file and save it to file system, but in Zintthe function png_plot() ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/11350752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to forbid Google Chrome change minimal font-size of my web-page? I'm making responsive sites, and in html tag I have this: font: normal 10px/1.5 "proxima-nova-soft", sans-serif; So, in other tags I'm use rem for font-size.It's works pretty good and I don't have problems earlier.But today I find issue(my cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/32775197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tracking the meeting invitation response in OutLook and Gmail I, have a requirement where I, have to send an email invitation to the mail. The user can Accept and decline the response in the email. I, have completed the user email invitation and adding to the calendar either in Gmail or outlook using the .ics file. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47626355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: dynamic ContextMenu in TreeView vs. MVVM I have a tree of ViewModels displayed as a TreeView (using HierarchicalDataTemplate). Each ViewModel instance has different commands that can be executed on it wich again are exposed as a list of command ViewModels for each item ViewModel. How can I create a single ContextMen...
{ "language": "en", "url": "https://stackoverflow.com/questions/2508367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sum based on two columns from another table I've got this table named "A" and I want to fill the Sales SUM column with the sum of sales from another table group by date and country. The other table is named "B" and got also Date, Country and Sales columns however the number of dates and countries differ. I don't wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/64696668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start point have different stroke width than other points Why stroke width differs for start point and other points? Please refer the code below: <svg> <polyline points="10 0, 30 0,10 10,30 10" fill="none" stroke-width="2px" stroke="#19af5c"></polyline> </svg> I don't want to achieve by duplicatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/41032673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use OneDrive CSharp SDK as a Service or daemon app? I am coding against the OneDrive C# SDKand I have a few questions. Question 1. Does the OneDrive C# SDK use the Microsoft Graph API under the hood? ... If so, how can I use the SDK to pass in my client_Id and client_secret and authenticate as a service or d...
{ "language": "en", "url": "https://stackoverflow.com/questions/42093299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: need help solving sorl-thumbnail error: "'thumbnail' is not a valid tag library:" I've been pulling my hair out trying to solve this problem and I've tried everything and I have no ideas left. I keep seeing this error: Exception Value: 'thumbnail' is not a valid tag library: Could not load template library from dja...
{ "language": "en", "url": "https://stackoverflow.com/questions/1356334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HQL subqueries in hibernate I have to write hql for one of the subquery. I am getting querysyntax exception. Below is my code. public List<URPTempSensor> findTempSensorObjs(String systemId, Character isLatest) { Map<String,Object> params = new HashMap<String,Object>(); List<URPTempSensor> tSensorList = new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49996926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }