text
stringlengths
15
59.8k
meta
dict
Q: Zooming in without scaling graphics I'm learning Opengl for 2D, (in particular using the java slick2D library, but that might not be a factor for this question). I discovered I can change push a new transformation matrix, for instance to transform world coordinates into screen (view) coordinates. I want to use this...
{ "language": "en", "url": "https://stackoverflow.com/questions/16108952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL subquery returns more then 1 row I am trying to run this query : select r.rolekey from roles r where r.rolekey in (select r.rolekey from roles r where r.role_name like (concat('%', replace (( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58944645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: viewDidLoad UIView with CGPoint() I want to create my own custom segue animation in which I want to make presenting VC appear from the button.origin at size(1,1) and shift to CGPoint(0,0) and stretch to full screen size. VC1 segues to VC2 and passes VC1's button.frame via override func prepareForSegue(segue: UIStory...
{ "language": "en", "url": "https://stackoverflow.com/questions/29402649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why my localhost doesn't load a website? PHP - Fedora I'm working on Fedora 32 and I have a problem with php project. So, when I enter localhost/ProjectDir in my web browser, it lists all files that are in ProjectDir. And that's fine... but when I try to test run my project (website of that project), so I enter *loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/66101432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: neo4jclient merge query cause unhandled exception I want to use merge in my neo4jclient c# application, so I read this link and create a query like the below one : resultList.ForEach( tweets => client.Cypher .Merge("(tweet:Tweet {newtweet})") .OnCreate() .Set("tweet = {newtweet}") .WithParams(new Tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/32658527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I split an array of this format to this? How can I do the below change in PHP? Input: [hiddenAllPrefered] => Array ( [0] => 14477,14478,14479,14485,14486,14487 ) Output should be like this: [hiddenAllPrefered] => Array ( [0] => 14477,14478,14479 [1] => 14485,14486,14487 ) A: try this as a boilerp...
{ "language": "en", "url": "https://stackoverflow.com/questions/43715931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: FMOD error in borland turbo c++ 4.5 when I'm trying to compile it gives me 26 errors however everything is at its right place but won't able to understand the errors mostly constant is too long. Plz help I want to play a mp3 file through C programming. *errors are shown in the jpg image #include "inc/fmod.h" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8509794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deserializing a multidimensional JSON string I'm new here, so please excuse any lapses in proper question procedure! Basically, I'm trying to deserialize a json array from the Pearson Dictionary Web API. Here's the JSON (I removed some excess results indices to conserve space): { "status": 200, "offset": 0, "l...
{ "language": "en", "url": "https://stackoverflow.com/questions/32293130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: translate text of ion select's ok and cancel buttons I want to translate ok and cancel buttons of ionic ion-select to local languages. These two OK and CANCEL buttons should be translated. Can anyone guide me how to do that? A: If using ngx-translate you can do the following: <ion-select formControlName="myContro...
{ "language": "en", "url": "https://stackoverflow.com/questions/45181236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Execution in FixedThreadPool gets slower as time goes by I have around 100000 tasks need to be done, I know that they are CPU intensive, but will only take a short execution time (When CPU is fast enough). I use ExecutorService executor = Executors.newFixedThreadPool(8); I choose 8 because my CPU has 8 cores. Then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36843866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show the default timezone from a date time string in PHP I'm trying to pull out the timezone from a string I'm receiving from an API to display it separately. After reading a ton of answers none of them seem to cover this simple task I'm trying to do. The string comes as 2019-01-17T10:00:00-05:00 1- If I do echo d...
{ "language": "en", "url": "https://stackoverflow.com/questions/54046082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to manage rounding in angular filter? I am developing an angular filter that rounds of to 6 decimals. What I cant figure out how to round to 2 decimals when the decimals contain only zeros. So 1.00000 would convert to 1.00. This is what my filter looks like: app.filter('customCurrency',function ($filter) { r...
{ "language": "en", "url": "https://stackoverflow.com/questions/31398678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extern stuct in C source files I am trying to have a dictionary_object structure named dict_obj available in two separate .c files. This is while trying to write a pthread TCP server for a class. I have not worked much with C before and am having a difficult time getting this figured out. I'm not sure if I'm declari...
{ "language": "en", "url": "https://stackoverflow.com/questions/13300060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mcrypt_encrypt adds unwanted bytes I'm trying to encrypt some data using the MCRYPT_RIJNDAEL_128 algoritm. But somehow when I encrypt and afterwards decrypt, the decrypted data has randomly added bytes. The input: string(13) "test@test.com" The output: string(16) "test@test.com" As you can see the output has 16 ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/25489509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom tag that evaluates its body based on the variables of the tag Ok, now this is something for the hard core JSTL wizards I guess ;-) I would like to have a tag whose body does not substitute the variables of the surrounding page. It should only take the variables into account that have been specified in the bod...
{ "language": "en", "url": "https://stackoverflow.com/questions/32404445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove an incremental element in HTML using JavaScript So I want to create a function that will let me add/remove an element in the HTML, I'm already done with the "add" part that increments the id value onchange (example: id=tag1, id=tag2, etc). My problem is on the "remove" part, I don't know how to put an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70255598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Genymotion virtual device loads too slow I use Genymotion 2.7.2 with VirtualBox 5.0.4. I run my virtual machine (Google Nexus 5 - 6.0.0 - API 23) but my machine loads too slow (10 - 15 min) with this long black screen (view image).I check in a running window on VirtualBox and I get some command line in this picture ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38483108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i limit function-(slot play) just for 5 turn - with do/while loop I wanna create a slot machine with 3 number by javascript - but I want to finish my function when three numbers are equal. I think that if I write it with do/while it will be work, but I can't do it this is my js code: function myF() { var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53968946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: By what logic, should instance constructors have access to static fields I was wondering why do instance constructor have access to static fields? If I initialize static fields via static constructors, and by mistake again initialize them through instance constructors, then the second initialization overwrites the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/43508579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do I make UILabel's text flush with the top of its bounds? If I create a UILabel, set its text and call sizeToFit, there is still a small vertical gap between the top of the text and the top of the UILabel's bounds. How do I either eliminate the vertical gap, or calculate it so that I can extend -[UILabel drawTe...
{ "language": "en", "url": "https://stackoverflow.com/questions/12793020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Many to many relation for same rank tables For example I have online store with keyboards and mouses tables. And on the product(keyboard or mouse) page I want to show Recommended to buy with... section where other product (keyboard or mouse) will appear. So on Keyboard#1 page may be recommended Keyboard#2 and Mouse#...
{ "language": "en", "url": "https://stackoverflow.com/questions/67090763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the external ip in Objective-C I looked for some code that will help me to get the ip that the iPhone connect with. I find this one: - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int success = 0; // retr...
{ "language": "en", "url": "https://stackoverflow.com/questions/5450621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to do batch processing in Pro*c enter code hereI want to do batch processing using host array in pro c. But when the records are not equal to array length*n (n is 1 ,2 ,3 ...) then my program is failed to fetched row. I dont know how to fetch remaining records. int empid[20]; my table contains 24 records. so a...
{ "language": "en", "url": "https://stackoverflow.com/questions/47182227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Include Xml File In Other Xml File Iwant to include or call dependencies xml file in testng xml file any helps???? I want Include dependencies.xml: <groups> <group name="publierlivraison" depends-on="creerlivraison"></group> </groups> File in TestNG.xml : <test name="Managetestss" preserve-...
{ "language": "en", "url": "https://stackoverflow.com/questions/55160846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirecting old anchor links to new anchor links I'm overhauling a website that someone else built for my organization. It was originally set up with "not so great" anchor links which included spaces. I have replaced those anchors with new ones that will work better. Example: One of the old anchors looked like this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35401679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: delete more than 1 records using single prepared statement I am executing two prepared statement for deleting two records of different id. i want to delete both records in a single prepared statement execution my code is like this String sqlDelete,sqlSelect2; sqlDelete = "delete from vul_detail where scanno=? and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18998540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: View with gradient is staying white after setting LayoutParams So I want a stylish gradient look for my app. Therefore I tried to also color the navigation bar with a gradient. I'm getting the height of the bar first and then change the layout params. The color is after resizing white. Has anyone of you an idea why ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59793221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails and Capistrano missing gems I have a problem with missed gems when i tried to deploy rails app to vps. Can you help me? capistrano.log bundle check --path /home/root/apps/appname/shared/bundle DEBUG [09094abf] [31mThe following gems are missing[0m [31m * net-scp (1.2.1)[0m [31m * sshkit (1.11.4)[0m [31m...
{ "language": "en", "url": "https://stackoverflow.com/questions/40526599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python argparse get all parameters after specific flag as list I'm trying to make argparser like in gdb program.py --valid-arg1 value1 --valid-arg2 value2 --args binary --bin-arg1 bin_arg1_value --bin-arg2 bin_arg2_value... The problem is I need treat all arguments after --args just as values, and get them as a...
{ "language": "en", "url": "https://stackoverflow.com/questions/46073120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Routing mach with regex I have this in RouteConfig.cs: routes.MapRoute(null, "Login/{token}/{nameII}", new { controller = "InicioPareja", action = "Login" //, token = UrlParameter.Optional, nameII = UrlParameter.Optional } ,new {token = @"/[0-9a-f]+/i{12}",nameII = @"^\w{1,20}$/" } ); If I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20785325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display multiple images from a site in recyclerview kotlin I want to display images like this : This site has well over 200 apps and i am trying to show their apps in my recycler view. I don't want to save them one by one but i couldn't find any documentation on how to pull image data from URL in Kotlin. dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75457490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create class instance and run it method in one string? Python How to create class instance and run it method in one string? Or not create any instance and call this method straight? For example, i have class Car and method run_car(). How to call run_car() in one string? car = Car() car.run_car()
{ "language": "en", "url": "https://stackoverflow.com/questions/66931808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Material images android Is there any generator of these images? I have seen a lot of images like that in android apps, so i think there must be a generator. I have searched for it, but found nothing. Maybe anyone know how to create such assets? A: There is a tool called Material Design Background Generator that ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/40615501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show value calculated from input form to the screen I'm new to react, and am trying to get a form to accept input from 2 lists, and output a calculated value to the screen. I used create-react-app to create the app and used the form sample from the react-bootstrap docs. I now can get the user's input, and g...
{ "language": "en", "url": "https://stackoverflow.com/questions/59397502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: libGDX 1.4.1 can't slow down animations This is what I have: ... private Array<Sprite> fireballFadeOutAnim; private Array<Sprite> bucketFadeOutAnim; private TextureAtlas fballAnimSheet; private TextureAtlas bucketAnimSheet; private Animation catch_animation; private Animation visual_feedback; private float elapsedT...
{ "language": "en", "url": "https://stackoverflow.com/questions/26874690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Countdown timer to specific date I'm trying to make a countdown timer that displays total number of days, hours, minutes and seconds remaining to specific date. That's what I've up to now created. protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Main); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17185298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: how do I create a list of combinations from a series of ranges of numbers For a list of numerical values of n length, e. g. [1, 3, 1, 2, ...], I would like to create a list of the lists of all possible combinations of values from range[x+1] where x is a value from the list. The output might look something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/18423100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ways to dynamically render a real world 3d environment in Unity3D Using Unity3D and C# I am attempting to display a 3d version of a real world location. Inside my Unity3D app, the user will specify the GPS coordinates of a location, then my app will have to generate a 3d plane(anything doesn't have to be a plane) of...
{ "language": "en", "url": "https://stackoverflow.com/questions/11094203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fill Datagridview in each new identical TabPages I have TabControl with 1 TabPages and contains DataGridView. I create TabPages2 from TabPages1 with code : Dim Frm As New TabFormPage Dim MoreTabs As TabPage = Frm.TabPage1 Dim i As Integer For i = 1 To TabControl1.TabPages.Count MoreTabs.Text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30152597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: has anyone figured out a way to use the back-facing camera on android in any browser with getusermedia? I can’t seem to find the settings anywhere. I also tried searching the phone to set front-facing as default but had no luck. I’m using an xiaomi 1s if that helps.sorry ,my english is poor
{ "language": "en", "url": "https://stackoverflow.com/questions/16860701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subdomain overwiting CodeIgniter session I have 2 CodeIgniter installations, 1 on mydomain.com another on sub.mydomain.com. I am trying to get sub.mydomain.com to be able to access the CI session created by mydomain.com. I have edited the cookie section of both config files to: $config['cookie_prefix'] = ""; $con...
{ "language": "en", "url": "https://stackoverflow.com/questions/9881092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Guidance with a translation in Linq to Xml Can someone help with an explanation of what does this mean: ... .Select(Func<XElement, XElement>selector) Please an example of what should go in as parameter will be appreciated. Also found it a little bit difficult naming this question. Suggestion will also be appreciate...
{ "language": "en", "url": "https://stackoverflow.com/questions/1827892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If the address of a function can not be resolved during deduction, is it SFINAE or a compiler error? In C++0x SFINAE rules have been simplified such that any invalid expression or type that occurs in the "immediate context" of deduction does not result in a compiler error but rather in deduction failure (SFINAE). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2892087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: C# Progress Bar is not showing progress I have a progress bar on my program and I am trying to add value to it after each "DataTable" has been processed, however it only updates after everything is done. here is the code: int c = 0; OdbcConnection cn = openOdbcDB(); foreach(DataSet ds in allDataSets) { foreach(D...
{ "language": "en", "url": "https://stackoverflow.com/questions/18210162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Snap to Ticks and move Ticks position in Custom Range slider I am very new to this and i am trying to figure out how to solve my issue. I am trying to design an Range slider for controling the speed of an machine application. I have been searching here for many hours now but i can not find the right result for my is...
{ "language": "en", "url": "https://stackoverflow.com/questions/68606114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why AVL sort is not in place? I was recently told that AVL sort is not in place. Can anyone please explain it? From the below code, I am not sure where I assign extra space when sorting. In this code, when a data structure is built or an element are inserted, elements are ordered by their key. Reference for the clai...
{ "language": "en", "url": "https://stackoverflow.com/questions/70285592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unhandled exception is not being caught by the handlers We have registered for the unhandled exceptions in the following way. The application is a remoting server. If an unhandled exception is thrown from the remoting server it is not handled by the unhandled exception handlers. What could be the problem? [STAThread...
{ "language": "en", "url": "https://stackoverflow.com/questions/7329785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OPENSSL error: could not find native static library `C`, perhaps an -L flag is missing? I get the following error when I try to run the below code for a DTLS client server program using rust through visual studio code and its terminal. I have already installed openssl libraries using vcpkg and set the environment va...
{ "language": "en", "url": "https://stackoverflow.com/questions/72185223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress if logged out, Laravel if logged in Well, the title explains it well... I do use Laravel for a control panel and Wordpress as the frontend facing the "outside world". I need to use the same URL for both, I've accomplished it partially processing Wordpress as a Laravel view, but I have troubles with the Lar...
{ "language": "en", "url": "https://stackoverflow.com/questions/25491904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: maven download plugin to add downloaded resource to jar I am using download-maven-plugin to download some of resources to be used in my project. The download is successful and I can use the downloaded file. However, what I want is to include the downloaded file in the JAR. Note : The resource file will be included ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47689426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not import copy_reg I am hosting my Web2py app on PythonAnyware and have an issue importing copy_reg which web2py apparently needs. In previous versions this was no issue. The trace back is as follows: Traceback (most recent call last): File "/home/richdijk/web2py/gluon/restricted.py", line 220, in restricted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25023485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Run an activity in background I'm using an activity to get MMS attachment once a MMS is received. I have completed the MMS listener for this and it will call the activity, which will use getContentResolver() to grab the attachment. I want the activity to run in the background, without showing the empty UI to the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/6935259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: git reset --mixed delete newly added file? I'm working with git on Github with a C++ project. I have done the following in this order: * *Codding existing and new .cpp and .h files. Also added a big .stl file. *Add the new files to git *Create commit "A" with this changes *Tried to push commit "A" to Github. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/70591327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how can i add an attribute onClick oto my links generated automatically? I would like to add an attribute onClick to my links generated automatically with jquery. I select the parent div and then search if it has a link child, then add the attribute onClick. It works on localhost but not on server there is my code :...
{ "language": "en", "url": "https://stackoverflow.com/questions/22480088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between 2 DTD tag I want to know what is difference between this 2 ELEMENT tag : <!ELEMENT bank (account*, customer*, depositor*)> and <!ELEMENT bank (account | customer | depositor )*> thanks. A: In a nutshell, the first ELEMENT declaration is saying the child elements have to be in a specific order. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8832426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parsley Form Validation Error Okay, I'm still a javascript student so I need some help. I'm using parsley.js for form validation and then jquery ajax to submit the form. I keep getting this luke warm message in the console to bind parsley to an existing element. I've followed all the instructions but continue to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/25836868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF DataGrid selected row stays highlighted even when user clicks another control Is it possible to turn off the selected row highlighting when a user clicks another control in the window? Thanks in advance. A: You could set the SelectedIndex to -1 in the LostFocus event, thus losing the selected item and removing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4378492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Quickstart.py - failed to connect to all addresses I installed the Python libraries on my local PC, I also added my GA-4 Property ID. When I attempt to run the script I get the following error, note that the error actually makes sense because the IP Address failing doesn't have a valid SSL certificate: Traceback (mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/74605351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mootools Fx.slide not working IE6 I have some javascript that is built on top of mootools that is basically giving a div some show/hide functionality. window.addEvent('domready', function(){ /*var mySlide = new Fx.Slide('customise_text').hide() var mySlide2 = new Fx.Slide('customise_link').hide() $('customise').addE...
{ "language": "en", "url": "https://stackoverflow.com/questions/3085588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas merge columns, but not the 'key' column This may seem like a stupid question, but this has been bugging me for some time. df1: imp_type value 1 abc 2 def 3 ghi df2: id value2 1 123 2 345 3 567 Merginge the 2 df's: df1.merge(df2, left_on...
{ "language": "en", "url": "https://stackoverflow.com/questions/22208218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Inno Setup for Windows service? I have a .Net Windows service. I want to create an installer to install that windows service. Basically, it has to do the following: * *Pack installutil.exe (Is it required?) *Run installutil.exe MyService.exe *Start MyService Also, I want to provide an uninstaller which runs...
{ "language": "en", "url": "https://stackoverflow.com/questions/1449994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: libpcap or PF_PACKET? I understand this question has been discussed many times: Should I use libpcap or PF_PACKET (the data link socket) to capture packets? Based on my research, libpcap is suggested over PF_PACKET almost everywhere, mainly due to its portability. However, for my current project (which is used in a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26364888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to use python to export the bake image form blender I want to make some operationi automatic.But I met some trouble in export the image after I bake it.At first I try to use "bpy.ops.object.bake_image()" to bake the image.But the result image can not be active in uv editor. The bake was success,but the result im...
{ "language": "en", "url": "https://stackoverflow.com/questions/42469844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compare Positions of Values in Php Array $commands = array(); for($p = 0; $p < $commandCount ; $p++){ $commands[$p] = $_POST['select'.$p]; } So I have this Array $commands. In this Array, a List of Commands is stored. I have to check on which Position the Command "mark" is stored and if a certain...
{ "language": "en", "url": "https://stackoverflow.com/questions/48846566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript image change causes embeded UserControls to flicker I have a n html page being displayed in IE. It has some buttons made up of images with mouseover/mouseout events on them in JavaScript, and a bunch of embedded .Net UserControls. When the mouseover/mouseout events fire, I change the images src to someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/866955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any good spec or library for uri-templating(routing) in java or scala I'm trying to create a mvc framework for myself in scala. Routers are necessary. I have a route file, contains: / "App.index" /users "Users.index" /users/{id} "Users.show" /articles/{year}/{month}/{day} "Article.li...
{ "language": "en", "url": "https://stackoverflow.com/questions/5126932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery condition remove disable I have a class that has the value of total <span class="price-value">0</span> and a class of a radio button class="radio-livraison element-radio-input" disabled="disabled" is is possible to disable the radio button and enable it only if total is more than 28; example you can't che...
{ "language": "en", "url": "https://stackoverflow.com/questions/49189513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DB2/400 SQL : How to insert PDF file in Blob Column? I would like to know if my SQL insert code is OK. Here is my table : -- Create table Create table FNS_CHAMP_DEV ( IDAUTO Integer not null generated always as identity ( start with 0, increment by 1, no cache) primary key, BB_COL BLOB, CB_...
{ "language": "en", "url": "https://stackoverflow.com/questions/54711276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I need Sum and Bank class to calculate Money? I am reading Test Driven Development: By Example. I am on chapter 13. Chapter 12 and 13 introduced Plus operation to Money object. A Money object can plus by other Money object. The author added two classes (Bank and Sum) and one interface (IExpression) to the sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/10395916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getline going over specified amount I have this code.... file_parser::file_parser(string file){ txtfile.open(file.c_str(), ios::in); if (!txtfile.good()){ string error=err(0," "+file+" not found. Exit code ",1); throw file_parse_exception(error); } while (!...
{ "language": "en", "url": "https://stackoverflow.com/questions/9425019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add line breaks e.g. \\n in a Apache POI HWPF Document I have to modify Word Document in the old .doc format. Using Apache POI with the HWPF representation of the document. I struggled to insert line breaks into any table cell. In the modified document line breaks look like empty boxes. table cell with adde...
{ "language": "en", "url": "https://stackoverflow.com/questions/68757906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does module resolution in TypeScript work for global values (i.e. describe)? While using jest on its own the corresponding typescript definitions got detected right after installing @types/jest. I then started to implement integration tests with cypress. Since cypress is using mocha, I now incorrectly see refere...
{ "language": "en", "url": "https://stackoverflow.com/questions/56149741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Webview Custom Back Button I need to make custom back button in WebView. Its any way to get OnBackPress with custom button? Just have a full screen webview, and i want to make button to going back in the webview. Thanks.
{ "language": "en", "url": "https://stackoverflow.com/questions/67403897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a scenario-by-scenario pass/fail report with JBehave I want to generate a report from JBehave that just lists the name of each scenario and a PASS/FAIL status. Bonus points if it gives a PASS/FAIL status for a story based on the the scenario results (if all scenarios pass the story passes). Something like: PAS...
{ "language": "en", "url": "https://stackoverflow.com/questions/25212694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 1-2-3 star level awards algorithm What I am trying to do is to have individual star counts per level based on player performance. (1-2-3 star awards.) This will be based on what region the player reaches. I know how to award the stars but keeping track of it all is throwing me problems. First lets say a player p...
{ "language": "en", "url": "https://stackoverflow.com/questions/21413668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to specify probabilities as a command line argument for my dna generator? I wrote some code that can spit out a dna sequence of specified length, number of copies, specified probabilities, etc. In IDLE the program works fine as I preset the probabilities I want. I want this program to run efficiently from the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/21766248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: neighbour list with poly2nb() works on 2004 census shapefile but not on 2011 I'm trying to construct neighbours list from polygon list for Lower Layer Super Output Areas (LSOA) in London. I got my shapefiles from the London Datastore, by downloading here: https://data.london.gov.uk/dataset/statistical-gis-boundary-f...
{ "language": "en", "url": "https://stackoverflow.com/questions/57675328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to release the GIL in Cython for a multithreaded C++ class? I have a C++ class with some methods that use std::thread that I'm making accessible to Python via Cython. Do you know where in my Cython code I'd want to put the nogill directive? Would I want to put it when I declare the class methods or when I create...
{ "language": "en", "url": "https://stackoverflow.com/questions/42763186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: python logging to terminal, redirect to workspace/file I started tinkering with logging and BLE. Now I got this piece of code I took from the bgapi package. I think I kind of understand how it works, but I'd like to see the output in a file or in the workspace. How would I achieve this? def pipe_logs_to_terminal(sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/50380264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't seem to remove any annotations I have some pins that the user can add. In the callout there is a button. When the user presses the button, I want a new pin to drop in that location, and I want to get rid of the pin that the user pressed (different types of pins). Basically the first pin is draggable, and when...
{ "language": "en", "url": "https://stackoverflow.com/questions/3971125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a data frame aggregating the daily ticket numbers to monthly count? I am having the list of ticket numbers for each date. Date column is transformed to data but the ticket number column is a text. Created Ticket 01-Jan-19 a1 02-Jan-19 a2 03-Jan-19 a3 04-Jan-19 a4 05-Jan-19 a5 06-Jan-19 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56689366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ Join/Grouping issues So I am stuck again... I have three tables that I am trying to join and group with linq; Company, Notices and Requests. * *A company could have many notices. *A notice have a SubcategoryId and a CompanyId *A request have a SubcategoryId. My aim here is to get a list of companies and fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/20722083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do WebAudio scriptProcessorNodes *require* an output to be connected? Here is a link to a simple jsFiddle which measures the loudness of a live input using web-audio (it outputs the values as a percentage to the console). http://jsfiddle.net/XSnsF/ I was planning to have one input and no outputs, since there's no ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/19482155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bootstrap 3 2 Column Full Height Fixed Header and Footer I'm having issues trying to make a 3 column full height layout work, but with a fixed nav, and fixed footer. I can get the basics to work, 2 columns, with fixed nav and footer, but when I attempt to enable full height on the columns it tends to break completel...
{ "language": "en", "url": "https://stackoverflow.com/questions/23281197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems running FFprobe with Ruby I am fairly new to Ruby and programming, less than a year experience. This is ruby 1.9.3 and the newest ffmpeg for Ubuntu from FFmpeg. Files I am using are basic .avi, some v210 .mov, other quicktime/finalcutpro types of files. I am trying to write an automated probing tool that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/13939107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid a reflow when changing box-shadow or text-shadow properties? This is my test css: .btn { display: block; height: 30px; width: 30px; background-color: red; position: relative; } .btn:hover { box-shadow: 0 0 0 1px black; text-shadow: 0 0 1px black; } Applied to a simple div wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/23327725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Download file from tag library in jsp file I created a tag library to display a table same as 'display tag' with some other features. Now I would like to add download option to the tag library. I tried it with just changing the content type and resetting the response but that was not possible as the contents before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22625347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gitlab - path to git command I have took over sel-hosted gitlab from former co-worker. I have a qustion about git version/location which gitlab use because I wanted to do upgrade which require git 2.31.x and later. Server is CentOS 7.9. I have found several different versions in the system. How do I find which one i...
{ "language": "en", "url": "https://stackoverflow.com/questions/70080191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does SomeMethod(() => x.Something) mean in C# (Note the code is an example) I have the following syntax: SomeMethod(() => x.Something) What do the first brackets mean in the expression? I'm also curious how you can get the property name from argument that is being passed in. Is this posssible? A: What do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/1370236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Input definition optional keys I generated an action with sails generate action task/update-task. I now am trying to create an input parameter that should be an object with optional keys: inputs: { fields: { type: { body: 'string?', rruleSetStr: 'string?', }, required: true, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55113532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iteration with the list monad I'm having trouble understanding how the iterative behavior of the list monad can be derived from its definition. instance Monad [] where m >>= f = concatMap f m return x = [x] fail s = [] Discussions I've read seem to pass over the question of how >>= creates a control struct...
{ "language": "en", "url": "https://stackoverflow.com/questions/71540156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need help converting a expression in python to C# Maybe someone in either of the camps can tell me whats going on here: Python: temp = int('%d%d' % (temp2, temp3)) / 10.0; I'm working on parsing temperature data, and found a piece of python that I can't understand. What is going on here? Is python adding together t...
{ "language": "en", "url": "https://stackoverflow.com/questions/24551020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create only one button to perform multiple tasks? I have created one button named as battery-saver in the android, now i want that when i click on the battery saver button then the "WIFI" and "BLUETOOTH" should be turned off. So, can anybody help me for the code of this that when I click on the button then...
{ "language": "en", "url": "https://stackoverflow.com/questions/49497066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Understanding std::move and unique_ptr I am new to c++11 and trying to understand to meaning of std::move and unique_ptr and wrote the following code, which I use std::move on a unique_ptr in two different ways: void unique_ptr_plain_move() { unique_ptr<int> intptr(new int(10)); unique_ptr<int> intptr2; print...
{ "language": "en", "url": "https://stackoverflow.com/questions/21537935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Springboot jersey with multiple source paths (servlets) I am starting to use Springboot in my application. My web.xml looks like this <servlet> <servlet-name>Internal Tools</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <init-param> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41312473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SVG Rect Ignores Height? Here is a working demo of a rectangle. I'd like to move the height property to css and well, it doesn't work and gives me a blank. It happens in firefox and chrome. Is there a different name for it? I don't understand why I can't use a css file. The fill color works. Working example. css: re...
{ "language": "en", "url": "https://stackoverflow.com/questions/14383014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can I develop Windows 8 Apps without installing 2012 Express for Windows 8? Microsoft provides two free tools, designed to work together, that help you develop, test, and deploy Windows Store apps: Microsoft Visual Studio Express 2012 for Windows 8 and Blend for Visual Studio. (These tools require Windows 8.) I al...
{ "language": "en", "url": "https://stackoverflow.com/questions/14588066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Construct json with multiple identical keys in Qt5 I want to generate a json that looks like this: { "myRepeatedKey": "test_data_1", "myRepeatedKey": "test_data_2", "myRepeatedKey": "test_data_3", "myRepeatedKey": "test_data_4" } using Qt5. My naive approach looks like this: QVariantMap map; map_fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/28653461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .Net Xml Deserialization I have the following XElement <Issue Type="Duplicate" Distance="1"> <Record> <ID>6832</ID> <Name_First>JAMES </Name_First> <Name_Last>SMITH</Name_Last> <Company>SMITH CO.</Company> </Record> <Record> <ID>6831</ID> <Name_First>JAMES</Name_Firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/3866107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get Model name in a partial view Is there any way to get the name of current model in a partial view? I want to do something like: @if(Model.Name=="Something"){ .... } else{ ... } A: you can use try something like @model.GetType().Name
{ "language": "en", "url": "https://stackoverflow.com/questions/40828259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }