text
stringlengths
15
59.8k
meta
dict
Q: Android Studio- Attempt to invoke interface method 'android.graphics.Canvas android.view.SurfaceHolder.lockCanvas()' on a null object reference Very much a newbie to Android Studio and StackOverflow, so please forgive me in advance. I've tried to make a simple android program that outputs its own framerate. When I r...
{ "language": "en", "url": "https://stackoverflow.com/questions/49740383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Stock Portfolio Rebalancing based on Factors (excel Solver imitation) Would like to calculate optimal weights and stock combo to add to portfolio to minimize certain exposures. For example, I have below portfolio of stocks with stock sensitivity to 5 factors and sumproduct to get total portfolio sensitivities...
{ "language": "en", "url": "https://stackoverflow.com/questions/75537342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ aligned unaligned property of arrays EDIT:This is from a working project of mine. Working. I declared some char arrays at the beginning of .cpp file(even before the #include parts). Then i could use these arrays with "instructions for 16-Byte aligned variables". Question: what happens if i use this .cpp file in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11645596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does scoping in julia 1.0.0 with for-loops make sense to beginners? In julia 1.0.0, I get the following for-loop scoping behavior: julia> counts = 0 0 julia> for i in 1:10 counts += 1 end ERROR: UndefVarError: counts not defined I found the solution was to make the counts variable global inside the for lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/52187073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Twilio 11200 errors in sms status callback We are using node.js to send SMS to customers, and recently added the status callback to log sent and delivered statuses. We are also now seeing a ton of 11200 errors in our Twilio logs on calls that apparently were successful. Looking at the debugger, I see this in the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/49289113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert into else update from array Hoping someone can point me in the right direction with this as i'm not able to get this working. This is what happens: My client uploads a (Rightmove) .blm file to server, Script unpacks the zip file and using a parser gets the properties into an array.. From here I'm able to INSE...
{ "language": "en", "url": "https://stackoverflow.com/questions/11498536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mercurial hg status displaying ignored files Can anyone tell me why mercurial is displaying ignored files for the 'hg status' command? Here's the confirmation that mercurial is indeed ignoring the files: $ hg addremove $ hg commit nothing changed Now, have a look at the status output. I ran this immediately a...
{ "language": "en", "url": "https://stackoverflow.com/questions/5390129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: AS3 - Show splash screen until all is code is loaded I am developing an adobe air mobile app and after I launch it, if I click the buttons right away, the sound does not play. If I wait a few seconds, the buttons function normally. How do I have a movie clip/splash screen show on top until all is loaded so I don't h...
{ "language": "en", "url": "https://stackoverflow.com/questions/13907661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: woocommerce product with multiple categories, active category in sidebar I need some food for thought on this because I have had trouble finding a decent solution here. There is a woocommerce shop, categories on the left side (sidebar) and on the right side products. A product can have multiple categories; for examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/17490933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Re-design suggestions for the attached code segment My program needs to run like this: ./myprogram inputType [Can be I1, I2 or I3] Most of the functions of this program are like: void Foo::foo (IType inputType) { // Some common code if (inputType == I1) ... // some I1 specific code if (inputType == I2) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14436789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happens after modifying Kafka topic replication factor? According to the docs, you just modify a topic to increase the replication factor. > bin/kafka-topics.sh --zookeeper zk_host:port/chroot --create --topic my_topic_name --partitions 20 --replication-factor 3 --config x=y Unfortunately, it doesn't s...
{ "language": "en", "url": "https://stackoverflow.com/questions/31194995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit Testing for the following : Tring to set up a unit testing for the following code, but I keep getting this: Comparing two different types of values. Expected string but received undefined. as an error Test : import {prepadSigned} from './utils'; describe('prepadSigned', () => {test('should prepend `...
{ "language": "en", "url": "https://stackoverflow.com/questions/53935426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Task. How to find out the amount that will remain on the user's wallet after js purchases There are three arrays, the data comes from the back-end and we do not know exactly which names or products will come, we need to calculate how much the user has spent and how much he has left in his wallet. It should be borne ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69754807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to set default value of select box with non-existed value in Angularjs Maybe this can has duplicated or maybe there's a way to solve this, but I couldn't find any way to solve this. So please don't be angry with my silly question and give me some information or way to solve this. Please see this fiddle. Set defa...
{ "language": "en", "url": "https://stackoverflow.com/questions/46480744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to temporarily override import behavior? I am using a module, module_1, that is able to use module_2 if it is installed on the system, but falls back on other implementation if it is not. The way it checks if module_2 is: # module_1.__init__.py try: import module_2 _MODULE2 = True except ImportError: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50883988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RocketMq:how can get RocketMQ topic and tags using Api How can I get all the tags in the topic of RocketMQ A: it seems cannot be done for now. when consumeing the topic, consumers would get all tags A: Tags are only stored in messages, there is no global place to store all tags of a topic, so only consumers can sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/72642387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iphone sdk 4.3 - Skip through a list of images by using accelerometer Firstly, I wanted to say hello to the community. I have been a passive reader for a couple of weeks and have to say that stackoverflow is a great resource to learn. Recently, I am playing around with developing small iphone apps for myself in orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7051345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: find duplicate 1kb chunks from a file TL;DR: How to identify duplicate non overlapping 1kb chunks from a file which is large and can be binary file too? I recently came across this question in one of the challenges. We are given a file name. This file's size will be in multiples of 1kb. We have to perform dedup o...
{ "language": "en", "url": "https://stackoverflow.com/questions/48276187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you integrate the new Google Sign-In on a Xamarin.Android app? I am attempting to follow Google's instructions on how to add the new Google Sign-In (not the old Google+ Sign-In) to my Xamarin.Android app. For the life of me, I cannot find the correct Google Play Services NuGet package or Xamarin component tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/34639015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why is a Segmentation fault (core dumped) happening in my doubly linked list? So from what I've read from other seg fault errors, it deals with accessing memory you shouldn't have access to (bad memory, or didn't use malloc()). For some reason there is no seg fault error when I make 2 nodes, but anything else gets a...
{ "language": "en", "url": "https://stackoverflow.com/questions/32673833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a view 100% window height? I'm brand new to react native. I'm trying to figure out how to make a box full height. I have tried to add flex property to both container and view, but the height is not 100%. export default class LinksScreen extends React.Component { render() { return ( <ScrollVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/55309458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: grep'ing the files output from a previous grep I don't know if this is possible, or if grep is the wrong tool, or what, but what I want to do is this: grep -rsI "some_string" *.c Then pipe the list of files where were results were found into a second grep: grep -rsI "second_string" <list of files from first grep> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12465867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create XML doc with Linq to XML I have an ASP .Net site where i am attempting to create a page to allow the user to create an XML document. New with XML so I'm not sure if im missing something here but all i am trying to do is create an XML document using Linq to XML. I saw this example as part of my research Dim x...
{ "language": "en", "url": "https://stackoverflow.com/questions/23372547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mailboxer mark message as read Using the rails gem mailboxer I have just started using it but I see that the SocialStream code base is quite heavy and doesnt provide a simple overview I'd like to know how to properly work with notifications, so that if a message is sent, the receiver user clicks the message (in part...
{ "language": "en", "url": "https://stackoverflow.com/questions/19347096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AndroidStudio 2.1.1 changes made in xml doesn't get updated on run I am now using AndroidSudio 2.1.1 for my android development. When I make any changes in xml files (layout , color, string, drawable etc) and then run my app, I don't see any changes in my output. I have to clean or re-build my project to see the cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/37967556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Weighted effect coding in R I have a data set with a categorical variable and a continuous dependent variable, and I want to know the effect of deviation of mean of each category from the overall mean. str(dat) 'data.frame': 380 obs. of 2 variables: $ Pgene_3X : num 0 0 0.08 0 0.048 ... $ CT : Fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/37394126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get averages from a dictionary in Python Get averages from a python dictionary for example if i have the next dictionary: students={'Dan':(5,8,8), 'Tim':(7), 'Richard':(9,9)} And i would like to print de dictionary in the next form: results={'Dan':(7), 'Tim':(7), 'Richard':(9)} is there any function that i can use...
{ "language": "en", "url": "https://stackoverflow.com/questions/61218789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Coordinates intersecting with bounding box after forcing right hand rule I am trying to query for locations within a bounding box. The bounding box of the country Russia renders east-to-west, covering basically all of Canada and none of Russia (which is obviously incorrect) and returns cities in Canada, Poland, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58189965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Akeneo error after installation / Cache Error My akeneo installation works very fine and without any error. But when I want to start the application, the following error occurs: Warning: require(web/akeneo/pim-community-standard/var/cache/prod/doctrine/orm/Proxies/__CG__PimBundleCatalogBundleEntityLocale.php): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60447878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display a tool tip on current document I am developing a code editor like VS. I want to display a tool tip window when mouse cursor lands on a text. The ToolTip.Show() method asks for a IWin32Window parameter... Please tell me how to display the tool tip in the current document just as Visual Studio Intellisense wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/4264144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: export Intellij project including libraries to Eclipse I have an intellij project which is using log4j and junit libraries (in my external libraries section). I need to export the project to Eclipse project including the libraries. The intellij option for exporting to eclipse is just generating the .project and .cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/44447330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Youtube iFrame player in IOS Webview loads very slowly I'm using the standard YouTube iFrame player as defined here within a Webview on IOS. Everything works as it should, except the videos consistently take over 6 seconds to load on a broadband network. When I use Safari to load the exact same video on the Youtbue....
{ "language": "en", "url": "https://stackoverflow.com/questions/23919633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress get_avatar function not correct working My code doing this, listing which author have posted in the current category. But get_avatar function not correct working. Im Using Simple Local Avatar Plugin. It is working author.php don't have any problem. But when i use it my this code, it is listing same and wro...
{ "language": "en", "url": "https://stackoverflow.com/questions/14309952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How / Where does Adonis cache views? I am learning adonisjs. The .env file has an option to set CACHE_VIEWS=true. What exactly does this do? Some frameworks store the cached views in a file, and some in memory, but how does Adonis cache views? A: This variable is readed in your configuration file. Then it's used in...
{ "language": "en", "url": "https://stackoverflow.com/questions/42987679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qmake scope syntax with "contains" function I wrote some qmake which looked like this: contains( DEFINES, SOME_DEF ): DEFINES+=SOME_OTHER_DEF The result was to ALWAYS execute what I thought was conditional, i.e. DEFINES+=SOME_OTHER_DEF I changed the line to: contains( DEFINES, SOME_DEF ){ DEFINES+=SOME_OTHER_DEF } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46078270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Process not working I have tried calling a Process(console application) using the following code: ProcessStartInfo pi = new ProcessStartInfo(); pi.UseShellExecute = false; pi.RedirectStandardOutput = true; pi.CreateNoWindow = true; pi.FileName = @"C:\fakepath\go.exe"; p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7211942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: var_dump returns NULL Json object after json_decode Hello I make a curl POST action in terminal(i tried also in POSTMAN) for post some data in a php file The curl call is : curl -iX POST http://localhost/rest_api/index.php -H 'Content-Type: application/json' -d '{ "id": "urn:ngsi-ld:Building:store005",...
{ "language": "en", "url": "https://stackoverflow.com/questions/63327439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload file to S3 (digital ocean) without saving temp file in node.js I need to save file in S3 Digital Ocean space by URL. It can't be downloaded and then saved to S3, because we use firebase-functions, and there restricted to use file system. Is there way to save it directly from url or other ways? For exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/73973806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 2 FlexLayout - Change page content with breakpoints I'm learning Angular and right now I'm to make a login form, similar to Gmail page using Angular2, Angular Material and Flex-Layout (all from Angular). So far everything is fine the only problem is I don't know how to change the card div so it fills the ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/45622730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: whats the best way to model dependencies in SQL relational database if i have a table called projects and a project can have a dependency on one or many other projects, what is the best way to model this in db tables. i have one table called Projects with columns: ID, Name i was thinking of having a new column calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/1818101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PBEWithSHAAnd128BitRC4 implementation in java I am using IBM JRE and i want to implement PBEWithSHAAnd128BitRC4 algorothm for my cipher so which alorithm should i use for my SecretKeyFactory and SecretKeySpec ,below is the secret key supporting algos which i got from provider.getInfo() methode for IBMJCE provider. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/16085467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to match values from one file to another in Python I have two files: values_list.txt val1, "Sean" val11, "Smith" val111, "25" val2, "Bob" val22, "Rogers" val222, "30" val3, "Michael" val33, "Jones" val333, "40" val4, "Aaron" val44, "Michaels" val444, "41" val5, "John" val55, "Brown" val555, "26" insert_values.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/69201845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Highstock dataGrouping option I have gone through the highstock datagrouping documenation(https://api.highcharts.com/highstock/series.column.dataGrouping), But little unclear about this data grouping option, Things I have noticed is, Data grouping is enabled by default in highstock, I n which we can force the datagr...
{ "language": "en", "url": "https://stackoverflow.com/questions/50960966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Security break to shell Our server had a break-in and the hacker left this trail (my server hang with this message on the screen) sh-4.2# eboot sh: eboot: command not found sh-4.2# rebooot sh: rebooot: command not found sh-4.2# reboot sh: reboot: command not found sh-4.2# restart sh: restart: command not found sh-4....
{ "language": "en", "url": "https://stackoverflow.com/questions/40234265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Leanback UI on Mobile/Tablet for Android I am currently developing a mobile app for phone/tablet devices that looks like the Leanback sample app. I really like the Leanback UI used for Android TV. Unfortunately, on Android studio, I can't use Leanback with mobile projects. Is there some kind of customized versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/38458142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access children of a custom element shadow dom I have a custom element using mr. Ruyadornos simple-slider element. (I am working on chrome) won-thumbnail.html <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="SimpleSlider/simple-slider.html"> <polymer-element name="won-thu...
{ "language": "en", "url": "https://stackoverflow.com/questions/28191102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create custom IN-function t-sql depending levenshtein distance I am actually not good in functions in SQL, i am more a java/android programmer. But for a school project i need to check if a String is in some array in T-SQL. But i am comparing data from two different companies, and they both have some flaws in their ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16524131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ionic do action when all images and content loaded Creating an Ionic app but need a way to show a loading spinner until everything is 100% loaded. I currently have in my controller: $ionicLoading.show(); I then do an API call and will remove the ionic loader in the promise. However, images are still being loaded et...
{ "language": "en", "url": "https://stackoverflow.com/questions/35873750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access static method on generic class I'd like to access a static method on a class, but have that class passed in a generic. I've done the following: class Base{ public static String getStaticName(){ return "Base"; } } class Child extends Base{ public static String getStaticName(){ return "Child"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5897446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No valid local directories in property: mapred.local.dir I am running the VM in pseudo mode. Due to some resource related issues (Name Node in safe mode, not able to leave) I had to format and restart the namenode of my Cloudera 4.x. I didn't have any other choice. I used the steps provided here: Writing to HDFS cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/31427241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NullPointerException for progressbar in fragment for Universal Image Loader in onActivityCreated I'm getting a strange NPE which I'm unable to diagnose. I know that it is coming from referencing my ProgressBar spinner, but I can't figure out why, because I am instantiating it in onCreateView for the fragment. Below ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24357669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Php how to display the video? I have a code and I would like to edit it so that the video uploaded shows up on my webpage and is then stored in the upload folder. Code: <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "mp3", "mp4", "wma"); $allowType = array("video/mp4","audio/mp3","audio/wma","image/png","...
{ "language": "en", "url": "https://stackoverflow.com/questions/22618352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DOM GetElementByTagName I am attempting to collect all the H1 tags from a block of code. I am attempting to use this within a class and im keep getting errors and im unsure if it is because of the insertion into the class or if im coding it wrong as i am new to DOM coding. Error: Fatal error: Call to undefined met...
{ "language": "en", "url": "https://stackoverflow.com/questions/12848483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to populate TextFields with data from network calls in SwiftUI? I get User Profile information from a API call and want to populate the existing data (like name, gender etc) into my user profile field. However, I have no idea how to assign the state variables (fullName) of TextFields. The following code is a su...
{ "language": "en", "url": "https://stackoverflow.com/questions/62381056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I add a row to an HTML form? I'm making a simple app where there are a series of either drop downs or text boxes. Once the user has filled these in the resulting strings are then concatenated and displayed to the user. Now I need a simple function where the user can press a '+' button and adds a row. Ideally...
{ "language": "en", "url": "https://stackoverflow.com/questions/8603390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Read and Write objectname and object coordinate position i am doing some sort of animation that record the object position frame by frame. I want to save the frameNo, objectname and the object coordinate position x,y,z into textfile and i can able retrieve the data. What is the best way to implement it? palmT...
{ "language": "en", "url": "https://stackoverflow.com/questions/23600320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Pass template class instance type alias to non-member template function Is there a way to pass template class instances type alias (ClassTmplt/DerivedFloat::InternalType) to external non-member template function (DoSomething) using Base class object pointer (like in two last test() function commented lines)? class B...
{ "language": "en", "url": "https://stackoverflow.com/questions/47803594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customizing JSON.Net output Back story: I started to use the JSON serializer build into .net but quickly ran into a fair few limitation. With the way that I need to publish data, its more for producing summaries of object graphs rather than full data dumps. I never know how big these graphs are going to be, where th...
{ "language": "en", "url": "https://stackoverflow.com/questions/5747121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IntelliJ java.lang.ClassNotFoundException: com.intellij.ide.plugins.PluginManager during startup I use IntelliJ IDEA Community Edition 2017.1.4 x64 and got following error message during application starting process: Internal error. Please report to http://jb.gg/ide/critical-startup-errors java.lang.ClassNotFound...
{ "language": "en", "url": "https://stackoverflow.com/questions/44967048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android game speed on screen size I have had a recurring problem which has continued to surface the past couple of years and I'd like to finally resolve it. So I have an Android game which is a bit like Space Invaders (enemies in a line move across the screen). The issue I have is with supporting different screen s...
{ "language": "en", "url": "https://stackoverflow.com/questions/18484828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net MVC Model Class key identifier I am new to ASP.Net MVC and I am trying to get a better understanding of ASP.Net MVC. I did a couple tutorials and made a few models in those tutorials. One question that kept popping up in my head was: When would I use public int Id { get; set; } and when would I be using publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43833657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a RPC call to telegram api? More than 1 week I am trying to communicate with Telegram using RPC call. I readed more than 20 webpage in SO a telegram RPC call documentation to be able to do that, but still I can not. I need your help for this. I imported tl-core and mtproto an telegram api from github sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/32289907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Logstash Indexing Error - Aggregate plugin: For task_id pattern '%{id}', there are more than one filter Am using Elasticsearch 5.5.0 and logstash 5.5.0 on Linux - AWS ec2-instance. Have a logstash_etl.conf file which resides in /etc/logstash/conf.d: input { jdbc { jdbc_connection_string => "jdbc:mysql:...
{ "language": "en", "url": "https://stackoverflow.com/questions/49701823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using legacy projects containing 'System.Web.HttpContext' in ASP.NET Core3.1 We have some legacy projects, written with .Net Framework which should be used by an API project which is written by ASP.NET Core3.1. The problem is that these legacy projects are using 'System.Web.HttpContext' that you know does not exist ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59642906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Return model data inside model function in cakePHP I'm a beginner in cakePHP and I'm kind of stuck about retrieving data. I have a controller, in which I want to get a users deposit amount. Therefore I have a user model and a deposit model. The deposit model looks like this: <?php App::uses('AppModel', 'Model'); cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/44302357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installation of rdyncall package for R Hi I have a problem with installation rdyncall. rdyncall is in archive and I tried this: url = "http://cran.r-project.org/src/contrib/Archive/rdyncall/rdyncall_0.7.5.tar.gz" pkgFile = "rdyncall_0.7.5.tar.gz" download.file(url = url, destfile = pkgFile) install.packages(pkgs...
{ "language": "en", "url": "https://stackoverflow.com/questions/27721969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zend 1 not working with psr-4 namespaces I am working on zend framework 1 But I want to use \ instead of _ Like class IndexController extends Zend_Controller_Action This is working fine but when I changed this by class IndexController extends \Zend\Controller\Action Then its giving me a error Fatal error: Canno...
{ "language": "en", "url": "https://stackoverflow.com/questions/31260530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kivy VM buildozer I need your help because I have a kivy application and I am trying to use buildozer in the VM. (I followed these steps if you are interested: https://kivy.org/docs/guide/packaging-android-vm.html) My code is in Python3 so I downloaded the Crystax NDK as it is written in the readme here: https://pyp...
{ "language": "en", "url": "https://stackoverflow.com/questions/44852431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a Spring Boot admin server that also contains Sleuth Dependencies I am developing a Spring Boot Admin Server. When I add Sleuth dependencies (for tracing requests and responses in a distributed architecture), I am getting an exception on startup. When I comment out the Sleuth dependencies in my POM, the app...
{ "language": "en", "url": "https://stackoverflow.com/questions/39941829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Typing Vuex actions I am using Vue3 and Vuex4 with TS. Let's say my actions look like this in Vuex: anAction: async ( { commit, state }: { commit: Commit; state: MyStoreState }, { parameter1, parameter2 }: { parameter1: string, parameter2: number } ) => { /* some code */ commit("...", /* so on so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72894831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: config and settings component for C# I'm starting to design a config and settings component for an application. I need an easy way to read dictionary style settings and also a way to store simple arrays into a persistence level. is there a commonly used component already available ? (something like log4net for loggi...
{ "language": "en", "url": "https://stackoverflow.com/questions/965116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to install C++ lib Duckx? I want to use this lib DuckX. I followed tutorial, git clone https://github.com/amiremohamadi/DuckX.git cd DuckX mkdir build cd build cmake .. cmake --build . It went on without any error. However, when I entered sample directory and execute g++ sample1.cpp -lduckx, it got the followin...
{ "language": "en", "url": "https://stackoverflow.com/questions/65776725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When resuming music player then music resumes but not the play and pause button states Below is the code which I use.By this code the background music plays on all activities.But when I come back to this activity using home button then music plays normally but the drawables will not resumed. That Mean if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38671110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort elements to specified data-* order I have a list of items in a <ul>: <li data-number="1"> Pierce </li> <li data-number="2"> Annie </li> <li data-number="3"> Jeff </li> <li data-number="4"> Abed </li> <li data-number="5"> Britta </li> Actually, the list is much longer with real data, but bear with me. As you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/8767472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: add viewbag list of string to checkboxes I have a variable listSiteGroup that contains list of strings, and I put it in ViewBag ViewBag.listSiteGroup = listSiteGroup; how do I show each of my string to checkboxes? I want to show it to the user like this [ ]sitegroup 1 [ ]sitegroup 2 [ ]sitegroup 3 [ ]sitegroup 4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47050838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Introduction images in android app How to make activity which shows introduction images when android app is launched for the first time? I have 4 images that describe the app. So I want those images to show up when the app runs for the first time and user can swipe from one image to the next in order to unblock wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/30601813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Crash :Critical failure: the LastResort font is unavailable in ios7 Iam inserting the contacts from the address book in to the sqlite3 database. for only some contacts my app is getting crashed at sqlite3_finalize(statement) this statement. and this is happening in ios7. The crash log is as follows "Critical fai...
{ "language": "en", "url": "https://stackoverflow.com/questions/21007399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ReferenceError: Function Not Defined. What am I missing? Can't seem to figure out why I keep getting this ReferenceError: OnLoad is not defined error. Since the time of my previous commit, I have changed lines 28-30 and that is all. How can this cause my javascript to not be loaded properly? I have only changed the...
{ "language": "en", "url": "https://stackoverflow.com/questions/36849244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql server query with a too "ORs" clauses I have a dictionary container with next info: {ID=412, CATEG=1}, {ID=413, CATEG=2}, {ID=414, CATEG=3}, {ID=415, CATEG=4} I need to construct a string query for execute it in SQL SERVER, something like that: select * from PASSAGES psg where (psg.ID = 413 AND psg.CATEGO...
{ "language": "en", "url": "https://stackoverflow.com/questions/38374861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel file name changed dynamically I used an excel template. In my ssis package at first the template is copied in the working directory and package execute. In the next run the excel file which is already existed in the working directory it moved into BACKUP folder and again the template file copied. It works good...
{ "language": "en", "url": "https://stackoverflow.com/questions/23782339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not being able to Load Image from a function To HTML Canvas I am trying to place the screenshot image into html canvas but not being able to. I have taken screenshot of current tab by using following chrome API. Trying to make a chrome extension. /* background.js */ let id = 100; //calling chrome api chrome.browserA...
{ "language": "en", "url": "https://stackoverflow.com/questions/69054987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to parse CSV that is passed as a parameter to a method I have a string that contains content of CSV file. I need to extract those values to my objects. I don't get CSV from CSV file I receive it as a parameter (data). And in exmple they use file.csv to parse data. I have tried to load it in MemoryStream but with...
{ "language": "en", "url": "https://stackoverflow.com/questions/18959797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort dates in Perl I need help sorting in perl. I have an array of dates in this format. DD-MMM-YY. Example 19-FEB-12. I have spent quite a lot of time already, but couldn't get it work. I'm very new to perl as well. Any amount of help is appreciated. Thanks!! A: An easy way is to convert the dates to YYYYMMDD for...
{ "language": "en", "url": "https://stackoverflow.com/questions/10987507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sort object by key by using lodash but key has lost after sorted I want to sort some Object look likes this data = { "imH3i4igFNxM3GL": { "name": "Nacky", "age": 12 }, "vuzPuZUmyT8Z5nE": { "name": "Emmy", "age": 20 }, "OkIPDY1nGj...
{ "language": "en", "url": "https://stackoverflow.com/questions/43852690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error when adding parameter for reportsviewer VB.Net I am new to VB.NET and I'm trying to add a parameter for filtering a reportsviewer. When I added the Client_Name_, the following error pops up - How can it be solved? I scoured everywhere for solutions but to no avail.
{ "language": "en", "url": "https://stackoverflow.com/questions/35117513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can AWS RDS be used as a MySQL host only? Is it possible to use AWS' RDS MySQL solution in tandem with my current file server host? By that, I mean, can I connect to the RDS MySQL server as I am with my hosts current database? I've tried the AWS documentation but it seems a bit flaky in this area. Thank you, A: A...
{ "language": "en", "url": "https://stackoverflow.com/questions/38998203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is select N + 1 ever better than eager join? i am using nhibernate profiler and seeing a few places where it is giving me a "Select n + 1" warning. The obvious fix is to make some upfront eager joins but it got me thinking if in certain cases its actually simpler or faster to live with Select N + 1 compared to doin...
{ "language": "en", "url": "https://stackoverflow.com/questions/4582214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: String not storing in a structure properly typedef struct class { char* CLASS_ID; char* CLASS_NAME; } What would cause those two strings to lose their values over the course of 30-40 unrelated lines of code? (Assigned to a pointer returned from a function called getString()). A: Perhaps getString() returns a...
{ "language": "en", "url": "https://stackoverflow.com/questions/5278266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create AWS cache clusters in VPC with CloudFormation I am creating an AWS stack inside a VPC using CloudFormation and need to create ElastiCache clusters on it. I have investigated and there is no support in CloudFormation to create cache clusters in VPCs. Our "workaround" was to to create the cache cluster when som...
{ "language": "en", "url": "https://stackoverflow.com/questions/15730704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Different datatype from endpoint created a basic Api Rest service in Laravel 4.2 (the project was created in this version), and local responses me corresponding datatype (Int), but when execute endpoint from online server, receive different datatype(String) to local(Int), appreciate someone who knows the reason of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/73146518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CCButton not working completely when pressed in Cocos2D v3 iOS I have a gameplay scene, over which I add a CCNode as a child. My Game Over node has a replay CCButton in it. The button is supposed to restart the game play scene. The problem is, when I press the "Restart" button, it goes through the lines but it does...
{ "language": "en", "url": "https://stackoverflow.com/questions/23323511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Actionscript 2.0 How to get keyPress working for number 1 I'm trying to get on (keyPress "<1>") working for my calculator so when I press one, the number one appears in the text box. But there is no keyPress "<1>" for the number one, I heard there is something called KeyCode is needed, and I found the keycode for 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18908744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: p5 - Syntax error: expected ; but got hour I have the following code: function setup() { createCanvas(500, 500); angleMode(DEGREES); } function draw() { background(0); translate(width/2, height/2); let hour = hour(); } I get an error on let hour = hour(); saying that there was supposed to be a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/48393329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Syntax highlighting using RSyntaxTextArea library in java netbeans swing Text is highlighted for java syntax when i am doing it in a seperate class i.e. TextEditorDemo , but not getting the same result when i am executing the code in action listener of a JCombo Box in swing and initialising the JtextArea msg1 (here)...
{ "language": "en", "url": "https://stackoverflow.com/questions/46608019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: For loop variable is empty in gmake I have a list of header files created thus: expand=$(1)/$(1).h HDRS=$(foreach x, $(DIRS), $(call expand,$(x))) Which yields a list like a/a.h b/b.h ... but when I use this in a for loop: for i in $(HDRS) ; do \ echo $$i \ cp $$i $(some_dir) \ done $$i is empty. And the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/51105808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meteor.js: Understanding sort parameters within a find{} method I am doing exercises in the book "Getting Started With Meteor.js Javascript Framework" and there is a section where a template called categories is created, then a {#each} loop thumbs through a collection.This is done with the intent of printing the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/15180519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Magento 2 : How to setup an option for customers to buy one year free shipping? I`m a beginner in Magento 2. I did setup a shopping cart app with flat rate shipping. But now client wants to add a link in cart for buying premium membership, so that this particular users can shop without shipping charges for one year....
{ "language": "en", "url": "https://stackoverflow.com/questions/45211294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Generate a table of multiple top X records, where top # comes from another table I'm using SQL Server 2012. I need to generate an output that includes the results for multiple "top" queries, where the # of "top" rows returned in each query varies based on the value in another table. My first table, call it T...
{ "language": "en", "url": "https://stackoverflow.com/questions/36508175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: use where clause to search from a substring SQL Server Hi I have column which contains below values: names ----------------- johnDoeKing Joseph MaxSecond Plank ----------------- Now I have an input string: johnDoeMaxAlexPaul is there a way I can use where clause which will return JohnDoeKing and MaxSecond from my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47983391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Swipe To Push View Controller Like Whatsapp messages details i want to ask what is the best way we need to work when we want to pan a view to push view controller, we want to make something similar like whatsapp messages status view like the following photo we try swipe gesture and also pan gesture but we want to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/68609089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }