text
stringlengths
15
59.8k
meta
dict
Q: How to internationalize a google workspace addon? I wrote a Gmail addon which is using different languages. But I cannot manage to translate the title in the sidebar nor the hover text of the icon. See yellow marks in screenshot. At first I thought the text is coming from the marketplace but it seems to be from man...
{ "language": "en", "url": "https://stackoverflow.com/questions/74740616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What difference does it make change the order which you import modules on Python? So i was trying to learn the basics of creating GUI's with Tkinter, and i found this code in a tutorial: from tkinter import * from PIL import ImageTk, Image class Window(Frame): def __init__(self, master=None): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48877086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flutter animations: how to keep position of parent widget I'm having some trouble with an animation in Flutter. There are 3 circles next to each other. When one of them is pressed, I want it to expand and collapse. The animation works, but the whole row of circles moves downward when it happens, to keep the top marg...
{ "language": "en", "url": "https://stackoverflow.com/questions/56405744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send a message or event into Server Unity3D? I am learning about Networking in Unity. I am confused on how can I send a message or event from client to server. I have these script already that successfully connect my client to server. This is my server script: using System.Collections; using System.Collection...
{ "language": "en", "url": "https://stackoverflow.com/questions/51484610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correctly get access to nested object in JavaScript I have the JS-object, that in Chrome's console looks as folllow: data: Object comparisonType: "IN" dateValue: "" numericalValue: 0 screeningCriterionId: "-4" screeningField.displayName: "Prop1" screeningField.fieldName: "Prop2" screeningField.groupName: "Pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/13759052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i efficiently use redux in react making request to backend server? I am new to using react and also new to redux, I am working on a project which uses Django for Back-end and React for Front-end. I want to use redux for data state management but i can not seem to be doing it right. The problem is that the req...
{ "language": "en", "url": "https://stackoverflow.com/questions/71480859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove customAnimations from childFragmentManager Android The code to apply custom animations is this, though when I pass childFragmentManager to a bottom sheet dialog fragment the same animations are applied which is not even overridding. .childFragmentManager .beginTransaction() .setCustomAn...
{ "language": "en", "url": "https://stackoverflow.com/questions/72046055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keyboard layout related issue I run on Ubuntu 14.04. I have an issue related to the keyboard layout in GUI mode. I managed to fix it in the GUI by using: setxkbmap -layout us [1] and adding it to the ~/.bashrc. That works fine. However, the problem is that when I log to the text-mode terminal I receive an error - Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/28215264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Generate Scripts For All Triggers in Database Using Microsoft SQL Server Management Studio I'd like to generate an SQL Script that contains the SQL to create all of the triggers that exist in our database. The triggers were added directly via the SSMS query pane so, there is currently no source other than th...
{ "language": "en", "url": "https://stackoverflow.com/questions/13200511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Ineligible app Submission to Facebook What features does my canvas app need, in order to submit the application on the App Center? Facebook gave me this response: Ineligible Submission Your app does not have high enough ratings and user engagement to be eligible for the App Center at this time. A: Are you tryi...
{ "language": "en", "url": "https://stackoverflow.com/questions/19616719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: iOS Swift Getting Lazy Map Collection Values I am trying to get the value for "alert" but not having very much luck. LazyMapCollection<Dictionary<AnyHashable, Any>, AnyHashable>(_base: [AnyHashable("google.c.a.e"): 1, AnyHashable("google.c.a.ts"): 1475009164, AnyHashable("google.c.a.udt"): 0, AnyHashable("gcm.n.e"):...
{ "language": "en", "url": "https://stackoverflow.com/questions/39734141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unknown error communicating between PHP and Actionscript I've got a problem that's either insanely simple or complex, it's up to you to find out. I've been working on trying to incorporate the URL Loader class into the beginners graphics program - Stencyl. I am fluent in HTML, CSS and PHP but actionscript is complet...
{ "language": "en", "url": "https://stackoverflow.com/questions/19301202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Struggling to get .fadeIn jQuery to work on a homepage image transition script I'm unsure if fadeIn is even the right transition (newbie), but I'm basically trying to have a crossfade between homepage images that change every 3 seconds. The changing is working successfully, but I don't know how to get them to fade. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74002067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I set an input mask property to a text filed of access database so that it will add leading zeros? I have a table field of text data type. I want to set an input mask property so that it add leading zeros to make 12 digits number. say, Input: 1256 it will automatically converted as 000000001256 how can I do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17055101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to reload a shiny app when CSV file changes I have a shiny app which generates a distance matrix. It reads a database saved in a csv file, load as a data.frame and then it calculates the distance matrix. This app runs in a host and is used in the same network by other pc using options(shiny.host = '0.0.0.0') and...
{ "language": "en", "url": "https://stackoverflow.com/questions/74122361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase 3 permission denied after first-time sign-in with Google, works after second time I have a Google sign-in implemented according to instructions: https://firebase.google.com/docs/auth/android/google-signin#authenticate_with_firebase Authentication and sign-in work fine, the user is authenticated and signed-...
{ "language": "en", "url": "https://stackoverflow.com/questions/38111682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails i18n Attributes Not Working via JSON API We have a RoR 4.2.5.1 API server and an AngularJS frontend. I'm trying get the internationalism working and have setup my en.yml as so en: activerecord: attributes: nas: calledstationid: 'AP Mac' errors: models: nas: attri...
{ "language": "en", "url": "https://stackoverflow.com/questions/35113584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android XML layout checkbox "onclick" method bind to a function not found in MainActivity Is it possible in Android to bind the "onclick" method from a checkbox to a function defined in a java class file directly in the XML file? something like this //XML layout File .... <CheckBox android:id="@+id/checkbox_...
{ "language": "en", "url": "https://stackoverflow.com/questions/61817232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Query on Optional fields with QueryDSL I've had some trouble trying to figure out how QueryDSL is working with Java 8 Optional attributes. I have configured QueryDSL, and queries like tests?field=valueare working on the String attributes. But as some of the getters of my class have Optional return types, the QTest ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58879134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Curl Proxy, how to define $_FILES['foo']['name'] I'm using CURL to make a PHP Proxy that forward a multipart form. The form have an input type="file". The proxy receive the following data: array 'foo' => array 'name' => string 'wt.jpg' (length=6) 'type' => string 'image/jpeg' (length=10) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5097403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the time complexity of an algorithm with the setTimeout function? Given the following sorting algorithm, what is the time complexity of the sort? function sort(arr) { arr.forEach(i => { setTimeout(() => console.log(i), i) }) } const n = [100, 1000000, 10000, 3600000, 3, 5, 0, 1, 9]; sort(n); Output...
{ "language": "en", "url": "https://stackoverflow.com/questions/63459610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Clojure: Rename and select keys from map with one iteration In Clojure, I want to both rename-keys and select-keys from a map. The simple way of doing is with: (-> m (rename-keys new-names) (select-keys (vals new-names))) But this will itetate over the entire map twice. Is there a way to do it with one iter...
{ "language": "en", "url": "https://stackoverflow.com/questions/30186390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why the string is always empty? I try to use LINQ to read XML file. However, the string which store the value of selected attribute is always empty. Here is the code: string output = ""; XDocument loaded = XDocument.Load(@"d:\input.xml"); var ta = from tmp in loaded.Descendants("NewDataSet.T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7298045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to control colors assigned to data groups? Code: mtcars %>% group_by(cyl,am) %>% ggvis(~mpg, fill = ~factor(cyl)) %>% layer_densities() The code above plots density graphs for each group of "cyl" and assigns different colors according to three levels of cyl: (4,6,8). But I don't have control over what color is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35183653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ignoring RegisterValidateFunction() for flag pointer 0x10ef76ec0: no flag found at that address in Xcode How can I fix the issue? W0721 13:54:19.105928 1 commandlineflags.cc:1503] Ignoring RegisterValidateFunction() for flag pointer 0x10ef76ec0: no flag found at that address A: This problem occurs because your co...
{ "language": "en", "url": "https://stackoverflow.com/questions/51454279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Check if numpy array is in list of numpy arrays I have a list of numpy arrays and a single numpy array. I want to check if that single array is a member of the list. I suppose there exist a method and I haven't searched properly... This is what I came up with: def inList(array, list): for element in list: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23979146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: JSONP works in jQuery but not in mootools I'm trying to convert my code to Mootools (I like the coding paradigm better). I am doing cross-domain AJAX where I own both domains (closed network). I am just requesting simple JSON from my server. I get these errors in Mootools (jQuery works): Resource interpreted as Sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/5629137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sort data from mysql table using php Can you help me how to sort my data from MySQL table ? I want to sort is by using the table head : <?php if(isset($_POST['search'])) { $valueTosearch = $_POST['searchvalue']; $query = "SELECT * FROM `admin` WHERE CONCAT(`id`, `name`, `gender`, `user_group`, `...
{ "language": "en", "url": "https://stackoverflow.com/questions/40170383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android get data from gmail, attachment is json What I want: Get data from json in gmail attachment. Description: Open Gmail, click attachment which is json file. Json file handle data which I need to procesing. In Manifest I declarated <intent-filter> <action android:name="android.intent.action.VIE...
{ "language": "en", "url": "https://stackoverflow.com/questions/55407288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to load a STL vector with a constant If I have a vector<double> that has already been resized to be 1200, what is the best way to load that vector with the same value in each slot? The value is not known at compile time. Right now I just use a loop through all 1200 slots and set each slot equal to the value. I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/60309383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSF PrimeFaces datatable filtering I 'record' objects and I put them in a datatable. A record has a boolean value 'Ignored', my idea is to make a filter so that it either shows all ignored records or everything. Here is my code: <p:column headerText="Status" filterMatchMode="equals" filterBy="#{record.ignored}"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45635217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Splash with 9 patch ruins next activity I have a splash screen with my company's logo in the center of it with a little progress bar under it. I launch the splash as the first activity, and before that happens I display an image of the splash (without the progress bar, just the logo) using the app's theme background...
{ "language": "en", "url": "https://stackoverflow.com/questions/24739943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing App Store Data Is there a way to access app logo, category, price and other app store information using the app store url. Want my app to be able to access app store information from the apps url. Is this possible? A: You can use the iTunes Search API: http://www.apple.com/itunes/affiliates/resources/d...
{ "language": "en", "url": "https://stackoverflow.com/questions/35441733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Microsoft JET SQL Query Logging or "How do I debug my customer's program?" The problem: We use a program written by our biggest customer to receive orders, book tranports and do other order-related stuff. We have no other chance but to use the program and the customer is very unsupportive when it comes to problems w...
{ "language": "en", "url": "https://stackoverflow.com/questions/153053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android Espresso: checking if a TextView is showing a formatted string from resource Suppose you have a formatted string like this: <string name="saving">You saved %1$s with %2$s</string> now if you want to check if your TextView is showing it correctly, so naturally, something like this would work: Espresso.onVie...
{ "language": "en", "url": "https://stackoverflow.com/questions/59873971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to draw ellipses in Scilab with orientation? The existing functions xarc draw an ellipse, but the semi-major axes are aligned with the plot axes. Is there a way to 'rotate' the ellipse so it has an orientation that is not with the plot axes? A: If the arc is the only element drawn in the axes, then you can actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/71056092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to communicate my server using GSM modem ip address in java? I am using sim900 gsm model for my server to connect from gprs network. My server is connected to lan. I want to connect my server from ethernet and gprs. I have installed this server in phytech board with arch linux os and gsm model is connected throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/35145432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting number to hours? Hello I have this using javascript : var newhour = 20.5; hour.setHours(newhour); The problem is when I do console.log(hour) I get 20:05 but I would like to get 20:30. How can I do this ? Thank you a lot ! A: You need to convert 0.5 into the number of minutes: var newhour = 20.5; va...
{ "language": "en", "url": "https://stackoverflow.com/questions/58727397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nginx container exits with code 1 when upstream node is not available OVERVIEW Nginx runs in Docker container, also NodeJS application (worker) runs in another one, all managed by Docker Compose. Configuration has an upstream: container of worker 1 is also up and running, while node with worker 2 is not. upstream n...
{ "language": "en", "url": "https://stackoverflow.com/questions/48490111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why .config directory is not listed when excluded from gitignore using wildcard (*) and git status? I know the question is a bit cryptic, I couldn't word it exactly in a single sentence (might need some help on that). I initialized git in my home directory (i.e, ~/, on Arch Linux) to backup my dot-files (mainly conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/70098335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "window" is undefined during server side rendering with nashorn and webpack4 I'm tring to create isomorphic application using SpringMVC, Nashorn, webpack4 and VueJS. I faced with a problem during evaluation of javascript (webpack4 bundle) by Nashorn engine. It's throws ScriptExceptions like: * *"window" is undef...
{ "language": "en", "url": "https://stackoverflow.com/questions/51640886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using generic List and ArrayList I'm trying to fill a list with all controls ID contained in an aspx page. If I use ArrayList for that purpose, that list is generated OK. Example function: AddControls1. But if I use generic List, I got a NullReferenceException error. Example function: AddControls2. What I'm doing wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/17497225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UnauthorizedAccessException when creating a registry key I'm researching on how to add a shortcut in the windows context menu to my application. I came across this article and I tried it out. This is the code it uses to create a key in the registry. private void btnAddMenu_Click(object sender, System.EventArgs e) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10042095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how can i delete whole day rows on condition column values.. pandas i have below times series data frames i wanna delete rows on condtion (check everyday) : check aaa>100 then delete all day rows (in belows, delete all 2015-12-01 rows because aaa column last 3 have 1000 value) .... date time aaa 201...
{ "language": "en", "url": "https://stackoverflow.com/questions/48556510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium screenshot_as_png not working using chrome on Ubuntu 18 I'm trying to screenshot a specific web_element using screenshot_as_png method but an error is being raised. Everything works fine when I run this program on my Windows 10, but it fails on my AWS EC2 Ubuntu 18.04 main.py from selenium import webdriver ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60491358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NoMethodError in UsersController#edit with undefined method `signed_in?' class UsersController < ApplicationController before_filter :signed_in_user, only: [:index, :edit, :update] before_filter :correct_user, only: [:edit, :update] private def user_params params.require(:user).permit(:name, :email, :...
{ "language": "en", "url": "https://stackoverflow.com/questions/20562970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple subplots to personalize I make some subplots by using: fig, ax = plt.subplots(nrows=2, ncols=3, sharex=True, sharey=True) Then, I would like to personalize the subplots, e.g., with: plt.subplots_adjust(hspace = 0., wspace= 0.) However, I would like to personalize the ticks as well, like removing the ticks...
{ "language": "en", "url": "https://stackoverflow.com/questions/19315087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rapid fire with logitech lua script? When writing lua scripts for my logitech g502, I've gotten rapid fire to work, but it will continue to execute mouse presses after the mouse one button is released as long as the ctrl key is held. I am wondering if there is any kind of iteration that would allow me to signal a fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/58121181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finishing Activity from another activity Say I have 3 activities A, B and C. A leads to B which leads to C. I would like to be able to move back and forth between A and B but I want to finish both A and B once C gets started. I understand how to close B when starting C via the intent but how do I also close A when C...
{ "language": "en", "url": "https://stackoverflow.com/questions/15556138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert after parent of element What sort of selector would be I need in order to insert after the parent (divouter) of the test3 class in the example below? Thanks. <div class='divouter'> <div class='divinner'> <input class=test1></input> </div> </div> <div class='divouter'> <div class='divinner'...
{ "language": "en", "url": "https://stackoverflow.com/questions/2262659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Failed to reset MySQL password Recently I tried to reset mySQL password using command prompt using this instruction https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/resetting-permissions-windows.html . I did exactly as in the instruction but my it didn't turn out as how it is supposed to be. It just stopped t...
{ "language": "en", "url": "https://stackoverflow.com/questions/58051492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django restframework unique error not processed When I did not fill in the necessary fields, Django would return a message to the client, but when the field was unique, an error message would appear. Why didn't Django handle it? models.py class UserModel(models.Model): email = models.EmailField(unique=True) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68554183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create an Array from Keys in JSON Data I need to create an array from a list of Keys in JSON data. The current data looks like this: { "Investment": [ { "name": "Average", "value": "170.0" } ], "Recordkeeping Administration": [ { "name": "Average", "value": "88.0" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31993460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle SQL Results duplicating with join I am trying to use the following code : SELECT a.part_no, sum(a.BUY_QTY_DUE) AS Tot_Ord, sum(b.REVISED_QTY_DUE) AS S_O_Tot FROM CUSTOMER_ORDER_JOIN a LEFT OUTER JOIN SHOP_ORD b ON a.part_no= b.part_no AND b.contract = '20' AND b.state = 'Planned' WHERE a.PART_NO...
{ "language": "en", "url": "https://stackoverflow.com/questions/53411348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace text grabbed from Wikipedia I grab some text from wikipedia and there's a tricky part. In some articles there is this(ignore bad formatting): (pron.: /ˌhjuˠˈlɒri/) I need this gone; however there might be useful data in this way: (pron.: /ˈliːsə ˈɛdəlstiːn/; born May 21, 1966) I have noticed t...
{ "language": "en", "url": "https://stackoverflow.com/questions/16535142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery AJAX see redirect as status 200 not 302? I am using jQuery and the jQuery.form plugin to submit my form (also using ASP.Net MVC). Problem is the user is in a section of the site that uses forms authentication and if their auth cookie expires during their time on the page instead of getting back a status of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1268165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Function being called faster I hava made a flappy bird game and there are 2 frames. frame 1 is for playing while 2 is for death. I put a trace call on a function to see how many times is it called due to a problem. I found out that the more i die , the speedy my function call gets and the gravity is increased more t...
{ "language": "en", "url": "https://stackoverflow.com/questions/44436084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add a FooterView here? I have a custom adapter which formats for me, alphabet headers and then corresponding names underthem, but I want to put a unique footer at the bottom that will display the number of contacts, for example "Total number of contacts in list: 21" class LetterAdapter extends ArrayAdapter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7937611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Copy file to my website from remote site $link = "http://vcdn8.yobt.tv/content/a8/68/e6/a868e6dc4688ecfc0c26de00ed08db7f871427/vid/1_1024x576.mp4"; copy($link, '../video/video12465123.mp4'); I'm trying to copy this video but always stop at between 1 mb - 2 mb , and it says 500 Internal Server Error The server...
{ "language": "en", "url": "https://stackoverflow.com/questions/21515736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File splitter in C++ I'm trying to make a file splitter/joiner in C++ and I have trouble with my split function. I used an MP4 file for a quick test and the result was: every other parts are OK but the last part always doesn't work. I don't understand this. Can anyone please explain it to me? Here is my split functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/29698626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS SSL Certificate Not Propagating Throughout The Site I have a SSL Cert from AWS, and the front page works. We have a CLB, that uses it. However, if I go any deeper than this, it will not be a secure connection. We have a splash page as the site is being developed (that has no access to the rest of the page), how...
{ "language": "en", "url": "https://stackoverflow.com/questions/47461163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement pagination for string array in collection view in swift 4 import UIKit class ProductListViewController: UIViewController,UICollectionViewDelegate,UICollectionViewDataSource { @IBOutlet weak var productListCell: UICollectionView! var manArray = ["Men","m1","m2","m3","m4","m5","m6","m7"] v...
{ "language": "en", "url": "https://stackoverflow.com/questions/50998733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error number 2202 when creating user group for sql server 2008 using C# VS 2008 in Vista I'm trying to create user group for registered in SQL Server 2008. This is my code : [DllImport("Netapi32.dll", CharSet=CharSet.Unicode)] internal static extern int NetLocalGroupAdd([In, MarsharAS(UnmanagedType.LPWStr)] st...
{ "language": "en", "url": "https://stackoverflow.com/questions/12690950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't get my UIButton to show up as semi-transparent I'm adding a UIButton as a subView in a popup and I can't get it to show up semi-transparently. The background for the main view of the popup does show up semi-transparently, but this UIButton stays fully opaque. Can someone tell my why the code below is not wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/6631317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Array of extends T> in Java Is it possible to declare an array of something that extends some class? I can do: Map[] foo; T[] foo; //(in generic class) Map... foo; //(as argument declaration for "implicit" array) T... foo; //(as argument declaration in generic class for "implicit" array) But I need somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/36117112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Progamming Principles and Practice using C++ by Bjarne Stroustrup , chapter 12 : A Display Model , First example I'm currently reading Progamming Principles and Practice using C++ by Bjarne Stroustrup . And I'm trying to code this example in the book. #include "Simple_window.h" #include "Graph.h" int main() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71325878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Events for fs createReadStream Not Always Being Called I have an fs filestream being used to serve file downloads which are dynamically created. I get this stream and pipe it to my response object after setting appropriate headers. I also set a couple stream events so that if there's an error or the stream ends, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15163567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find the second occurrence of string in a file with quoted text and return name of that String I have a file abc.txt containing quoted strings. For the following input ./executeSQL.sh alt_tbl.sql /scratch/app/product/fmw/obpinstall/patchStage/1000050165/files/obp/ identifyInvalidObjects.sql Current time : 15:01:34 S...
{ "language": "en", "url": "https://stackoverflow.com/questions/33952263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: get javascript variable value and store it to django variable and use it vice versa I want to store the javascript values in my django variables or use it in my view query //javascript values want to store in django var js_latitude = 122.33; var js_longitude = 12.22; django_latitude = js_latitude django_longitude ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61884784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for Mediawiki replacement I am using the Replace Text extension in MW 1.23 (which uses MySQL regexps) and I want to run regexes that will result in replacements like the ones in the examples below. The point is that it should find only matches that have a single Greek (extended/polytonic) word between the tags...
{ "language": "en", "url": "https://stackoverflow.com/questions/41509436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot retrieve ALL datatable names from database I am developing some code to tabulate the datatable names and their corresponding columns from a database. I want to have the list that I can see on the MS SQL Report Builder - Query Designer: Here's my code: SqlConnection conn = new SqlConnection("Data Source = ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/72197955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Custom Authentication using AbstractAuthenticationProcessingFilter with permitted paths and Also enabling method security with roles I am trying to implement a custom token based authentication with authentication filter: public class AuthAuthenticationFilter extends AbstractAuthenticationProcessingFilter { @Ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/73472935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to instantiate a scikit-learn model from a string variable? I have a list of models as parameters in a YAML file. When I read them into my Python script, they appear there as strings: my_model = "LinearRegression()" print(type(my_model)) #output: <class 'str'> I want to initialize my sklearn model as: model = L...
{ "language": "en", "url": "https://stackoverflow.com/questions/74141661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails form token not available for ajax forms? In grails it is easy to add tokens to prevent form double submission and also the click hijacking. Just add useToken="true" to the form tag: <g:form ... useToken="true" > But, this is not available for formRemote tag. I know that I can do normal form and write js cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/14975542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: material-ui component style customization – change color of select component to white I want to use a dropdown menu of the material-ui components (see https://material-ui.com/components/selects/). Therefore, I copied the specific component out of the example: Component return <div> <FormControl variant="outlined" cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/59474264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using a DocumentTermMatrix with a neural net classifier to make predictions in R I have been trying to learn how to use a DocumentTermMatrix to make predictions in R. I have been using the following link as a reference to try and make predictions for a different dataset. https://rpubs.com/cen0te/naivebayes-sentimen...
{ "language": "en", "url": "https://stackoverflow.com/questions/40835490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to run 2 functions simultaneously in vuejs I wanted to run 2 functions simultaneously in VUE. One function will be called when component is mounted and it will be running every 10 seconds. The other function will start executing when we click on the button. Now my problem is when I click the button the function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73815405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I play an audio (or audio/video) file from a DLL written in C++? We want to play audio (and video) files from a DLL. RenderSharedEvent/TimerDriven works, but for a number of reasons we prefer to do playback at a higher level- Media Foundation, or even the deprecated MediaPlay or waveOut functions would work. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/13128191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem extracting Youtube search results I am new to Python and have learned basis of Web Scraping with bs4. here i tried to extract all the links of Youtube search results , it doesn't work like on other sites. i analyzed the search result html data and the links of search results were in anchor tag with id "video...
{ "language": "en", "url": "https://stackoverflow.com/questions/56054147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create pdf programmatically in specific format? I have all the data in NSData object but I dont know how to create a pdf that will display in this format. The main problem is that product does not have a fixed content size, there will be more and more depending upon the customer, how much he/she purchases. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/12472118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: No matching constructor for initialization of "Type" I am writing a board game using C++ (with SFML2.2 library, Xcode 6.1.1). I created two classes: block and board. The idea is to create a 4x4 vector of blocks inside board. The codes are below: In block.h #ifndef __Game1024__block__ #define __Game1024__block__ #inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/28153581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access to object in module Im doing some logic which parse json data to object and I want to expose in some module specific object outside that other module can use, I try with the following which doesnt work,any other idea? var jsonObject; module.exports = { parse: function () { //here I do the parsing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31781710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Setting CSS classes with current_user I'm having trouble arriving at an approach to this problem. tl;dr I want to be able to set the css class of an li to the name of the current_user that posted the chat. Then based on that class, I'll apply different styling. This is for a chat window and I want all the current us...
{ "language": "en", "url": "https://stackoverflow.com/questions/17636353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meteor: change a user password WITHOUT logout? Accounts.setPassword(userId, password); Before Meteor v1.0.2, the user was not logout when calling this function. Since v1.0.2, I quote from https://github.com/meteor/meteor/blob/devel/History.md, "Expire a user's password reset and login tokens in all circumstances whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/27693329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why am I getting error: initializing argument 1 of 'Item::Item(int)' [-fpermissive] in Eclipse when I try to compile my C++ code? I'm new to C++, and have finally given up on trying to get this to compile after staring at it for too long. The compiler seems to be rejecting the constructor prototype in the header fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/14224421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: why my custom tld not accessible from /WEB-INF/lib/ In my web application I'd placed my custom.tld file in /WEB-INF/lib/custom.tld and referenced in my web.xml as <jsp-config> <taglib> <taglib-uri>customTldUri</taglib-uri> <taglib-location>/WEB-INF/lib/custom.tld</taglib-location> </taglib> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/28512046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copy from HTML div without copying the formatting style I have a div which has a bunch of styling (font-family, font-size, background-color, etc.) and I'd like to be able to copy text from it, and paste it into a rich text editor (Google Docs or Gmail for eg.) without it pasting the styles. I know I can use the "pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/67064042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scala / Spray: Return all rejections as JSON I'm writing a JSON API using Spray 1.2.1 and I would like to return all HTTP Responses in the following format by default. { "type":"error", "status":404, "message":"Not Found" } My own custom rejections / exceptions will have less generic content in the 'message' field, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23531290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CLion doesn't sort include statements on commit I'm using clang-format to define rules for sorting my include statements. This works perfectly when using the "Code > Reformat Code" button or pressing CTRL + ALT + L within a file. However, even when setting the "Reformat code" checkbox in the CLion commit dialog, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/73290845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is possible to make screen shot in ipad programmatically? Possible Duplicate: screenshots programmatically in IPad with the image name Is possible to make screenshot programmatically like this? I want to be able to take screenshots of the current screen, which is not necessarily my app, i.e., my app may be in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9568273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assigning id to validation message I am trying to assign id to span where validation message is dynamically shown. Am I doing some thing wrong? <div>@Html.ValidationMessageFor(model => model.Title,new{id="prjTitle"})</div> It throws Argument type is not assignable to parameter string A: just use the correct o...
{ "language": "en", "url": "https://stackoverflow.com/questions/21100548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jenkins and local PyCharm running tests using different path I am checking out a project from git repo. The project was run on Jenkins. One of the unit tests file is reading the file with filename: filename = os.path.join(self.config_dir, name, 'my_parameters.json') This works fine on Jenkins, but failed to work on...
{ "language": "en", "url": "https://stackoverflow.com/questions/51410897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem with mapping table in NHibernate I rewrite application from ASP.NET to Silverlight and use NHibernate 2. Tables in my db looks like this: alt text http://img268.imageshack.us/img268/4940/tablesqp.jpg In Dziecko table I have reference to id of Opiekun and Grupy. In ASP it's ok for me but in videos Summer with...
{ "language": "en", "url": "https://stackoverflow.com/questions/2750655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiline regular expressions with python requests module I am iterating over a web page line by line using requests, but trying to capture some multi-line regular expressions: import requests r = requests.get(url) for line in r.iter_lines(): pat = re.search(regex, line) if pat: print pat.group(1...
{ "language": "en", "url": "https://stackoverflow.com/questions/26597009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Classroom.Courses.CourseWork.patch I am trying to update the "state" of an assignment within Google Classroom using Google Apps Script. The current state of the assingment is DRAFT. I am trying in two different codes and get two different errors: function publicarBorradores() { var courseId = "320315007220" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69036227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I return an object (ie. List) from an object mocked with NSubstitute? I am using NSubstitute to mock one of my classes/interfaces. One of the functions implemented by my class should return an object of type List. But when I try to use _mockedObject.MyFunction().Returns(myList), it gives me an error saying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57383809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS Tests/ Moq - ExpectedException failing I'm trying to create unit test for one of my method using MS test and Moq. Below is my interface, implementation class and method. public interface IDocumentManagementHandler { Task AddData(long documentId, string metadataCategoryName, List<KeyValuePair<string, st...
{ "language": "en", "url": "https://stackoverflow.com/questions/73868159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make php date dropdown function 'sticky' Out of coffee and brain's given up... ...can anyone help to make this form date dropdown function retain selected month on $_POST ['submit'] or isset($missing) in the case of there being an error/missing field etc function createMonths($id='month_select', $selected=null) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1636915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ruby on rails - thin - HTTP GET URL > 1024 When I use an URL bigger than 1024 appear this in the console of the rails server. Invalid request: HTTP element REQUEST_PATH is longer than the 1024 allowed length. /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/thin-1.6.1/lib/thin/request.rb:84:in `execute' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22171418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QuantLib's HestonModelHelper class is throwing error I have below QuantLib model in python - import QuantLib as ql import pandas as pd day_count = ql.Actual365Fixed() calendar = ql.UnitedStates() calculation_date = ql.Date(6, 11, 2015) spot = ql.SimpleQuote(659.37) risk_free_rate = ql.SimpleQuote(0.01) dividend_rate...
{ "language": "en", "url": "https://stackoverflow.com/questions/62693773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }