text
stringlengths
15
59.8k
meta
dict
Q: Java equivalent for Oracle INSTR function I need to write the Java equivalent for INSTR Oracle function. Example in Oracle: select INSTR('vivek Srinivasamoorthy','a',14) from DUAL Output:15 How can I do this in Java? A: String.indexOf() is your friend. Keep in mind that in Oracle counting start at 1, in Java at 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36127866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to start mongodb in read only mode? I need to disable writes for a mongodb replicaset, is that possible? Something like 'FLUSH WITH READ LOCK' in mysql? A: If you connect to secondary directly, not as part of the replica set, then you will not be able to write. Or you can turn on authentication and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27049658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Reduce calls of DBI::common::Fetch (Perl) I have been trying to reduce the runtime of a program I've created. I used a Profiler, which told me that 63% of the time was spent was on DB::st::execute. I then ran a DBI Profiler, and found which of my calls were taking the longest: + 1 SELECT Gene FROM genotypegene WHERE...
{ "language": "en", "url": "https://stackoverflow.com/questions/9903952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How are role cookies encrypted? FormsAuthentication has an encrypt and decrypt method to push and pull the Authentication Ticket. Roles has a lot of the same methods, but it does not tell you what type of encryption is being used, or how to decrypt it. Can anyone point me in the right direction? I need to be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/25730905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Program/Script that runs autonomously without interaction from user I need to know whether it is possible to create a program/script that runs autonomously once initiated by an event (usually a mouse click) without any further interactions from the user ie. even if he closes his browser the script continues to run o...
{ "language": "en", "url": "https://stackoverflow.com/questions/36014014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Airflow Docker Unhealthy trigerrer Im trying to setup airflow on my machine using docker and the docker-compose file provided by airflow here : https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html#docker-compose-yaml CONTAINER ID IMAGE COMMAND CREATED ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69538129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dialogflow Messenger -- Selecting Environment How does one select an environment for the Dialogflow Messenger? We have 3 different environments (dev, QA, prod) and want to select Prod for the Dialogflow Messenger we deploy on our site. There doesn't seem to be any setting where you can select the environment? A: In...
{ "language": "en", "url": "https://stackoverflow.com/questions/74342285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why if did not execute right condition i have a code, like this public static Response updateDataFiles(String id, String checksum){ SessionFactory sf = HibernateUtil.getSessionFactory(); Session session = sf.openSession(); Transaction trans = session.beginTransaction(); Files files = (Files) session...
{ "language": "en", "url": "https://stackoverflow.com/questions/17915305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Plotting Multiple Argument Function in Matlab How can i plot f(x,y) = xsin(xy) function on the intervals 0 < x < 5 and π < y < 2π A: You could use this for a 3d plot: ezsurf('x*sin(x*y)', [0,5,pi,2*pi]) You can also use ezmesh with the same arguments to draw the mesh only (with a transparent surface)
{ "language": "en", "url": "https://stackoverflow.com/questions/23967076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MV4 Application with EF5 model first, without ViewModels or Repositories I'm building a MVC4 app, I've used EF5 model first, and kept it pretty simple. This isn't going to a huge application, there will only ever be 4 or 5 people on it at once and all users will be authenticated before being able to access any part ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14568657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add a "Copy Button" to SSRS? The users of my SSRS report always select the entire text in the report, then right-click and copy it (then they paste it elsewhere). So, it would be of great benefit if I could add a copy button that would simply copy the entire content of the report - ready for pasting. So they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29210759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get 3 rows with the most recent dates, starting with most recent I have this table: postID | postTitle | date 1 | example1 | 04/06/2014 ***15:00*** 2 | example2 | 04/06/2014 ***14:00*** 3 | example3 | 04/06/2014 ***14:20*** 3 | example4 | 04/06/2014 ***10:00*** 3 | example5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24040329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating new DDM type I'm using Liferay 7 and I need to create a custom DDM type, which I'd like to use in structure creation. Can you please guide me how can I achieve that? What I've read so far, all types are self-contained modules, so I've took dynamic-data-mapping-type-select from modules/apps/forms-and-workfl...
{ "language": "en", "url": "https://stackoverflow.com/questions/40105836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generate and commit a file in the context of a post-receive hook I need to create a git hook whose responsibility is to compile a handlebars file to .js after a push. So, for every new .hbs file pushed, I must generate a corresponding .js file and for every modified .hbs, I need to update the corresponding .js. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57661275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert data from a select query using php I wan to insert data to mysql table from another database which is connected via ODBC.But I cannot enter into the while loop, here is my code - N.B: For security I dont provide db name, user and pass. ODBC connection declared as 'connStr' <?php $connStr = odbc_c...
{ "language": "en", "url": "https://stackoverflow.com/questions/53168912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tkinter focus on popup window I have a question regarding a popup window from the main window. How do I ensure that when there's a popup window (to set date & time), the main window cannot be touched (i.e closed or press anything) until the user close the popup window. I have tried using grab_set but the main window...
{ "language": "en", "url": "https://stackoverflow.com/questions/58709452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use Coffeescript and shellJS to write executable shell scripts? I've installed coffeescript and shellJS, using NPM. I have a test script, shtest.coffee: #!/usr/local/bin/coffee require 'shelljs/global' echo 'hello' exit 1 Running the script with coffee works fine: $ coffee shtest.coffee hello Or with shjs: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19129686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tab character in SSRS Expression I have a requirement in SSRS report, wherein I need to write an expression which replaces a string having Chr(9) with a tab character. The data is fetched from stored procedure and it has tab characters [Chr(9)] which needs to be replaced with a tab in SSRS. I have tried various solu...
{ "language": "en", "url": "https://stackoverflow.com/questions/33868260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python concatenate values in rows till empty cell and continue I am struggling a little to do something like that: to get this output: The purpose of it, is to separate a sentence into 3 parts to make some manipulations after. Any help is welcome A: Select from the dataframe only the second line of each pair, whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/62985724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CheckBoxGroup Bokeh Python New in Bokeh, I'm trying to build a html page with boxgroupcheck. Below is df UC_Month dep_delayed_15min_count dep_delayed_15min_sum dep_delayed_15min_Percent UC AA-01 797 153 0.192 AA AA-02 708 128 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62282926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute JavaScript with Cucumber/Capybara tests I am looking to execute some JavaScript within a after hook in my cucumber tests, what I'm looking to do is capture any JavaScript errors and output the errors within my console. What I am having trouble with at the moment is using the method execute_script to run a pi...
{ "language": "en", "url": "https://stackoverflow.com/questions/29341469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Undefined variable in blade after redirect I am using Laravel 7 and PHP 7.4. I have form in my project. User can submit the form and I can generate report on values the user provided with. Initial issue was that the form was resubmitting on page refresh that was undesirable. I tried to prevent it with redirect-> but...
{ "language": "en", "url": "https://stackoverflow.com/questions/63412014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Embedded YouTube video views on iOS app are not counted I added embedded Youtube video to my iOS app. It's work, but not counted as view counts! I couldn't find its access on YouTube studio. The video is YouTube Live Stream. Doesn't playing via API consider as right view counts? I feel the criteria is blackbox. Sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/63112614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Neural network with a single out with tensorflow I want to make a neural network that has one single output neuron on the last layer that tells me the probability of there being a car on an image (the probability going from 0 - 1). I'm used to making neural networks for classification problems, with multiple output ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48003535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing Android Activity with Robolectric, duplicated Otto provider I have a little problem figuring out how to test my Activity using Robolectric 2.2. I am probably not correctly setting up the lifecycle or the entire test... In my Activity, I have a Otto producer like this: @Produce public GetAlarmList produceAlar...
{ "language": "en", "url": "https://stackoverflow.com/questions/20929572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How would I get the top role of a bot(client) in discordpy So right now my setup is if memb.id != 'EzLife#9391' and memb.id != message.guild.owner.id and memb.top_role < client.top_role: but the issue is that the client is a bot and the bot has no top role. I tried to get the member of the bot by doing clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/64442236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to show add to cart button after hover through product box in woocommerce? I have a problem when making a wordpress theme integrated with woocommerce like cannot show "add to cart" button when hovering a cursor in product box and only show when hovering a cursor to bottom in product box like GIF below: woocomme...
{ "language": "en", "url": "https://stackoverflow.com/questions/34205282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you add a permission to a cmake target without repeating the default permissions? I would like to turn on the setuid bit for a program I'm installing using install(TARGETS... in cmake. I can do this using the PERMISSIONS clause and specify SETUID. But when I do this, I lose all the default permissions unless...
{ "language": "en", "url": "https://stackoverflow.com/questions/32914041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automatically test classes that use C# System Class Methods? I want to run Unit Tests on some C# classes that call methods from the System Classes. Specifically, in this case, Image.FromFile(); When I build my main project, everything compiles and runs smoothly, but when I try to run these automated tests, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/57683668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java inner class access outer class variable I have a question about inner class access. I am not experienced in Java, so please bear with me. Below is the code i wrote: public class MainFrame extends JFrame { ... private String selectedNodeString = NULL; //outer class variable private JPanel createControl...
{ "language": "en", "url": "https://stackoverflow.com/questions/25985956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i display my firebase data on my text? Flutter how can i display my firebase data on my text view in flutter? i have made a database where i store the users name in. What i want to do now is display that name from my database in firebase to my textview. i can't seem to figure it out. this is my code for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74142402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF not deserializing JSON - Parameters in web service are null I am having the same issues as per this question: WCF not deserializing JSON input I am at a loss and desperate for a solution. I have scoured the net for answers, but I have found only this question that matches my exact problem. My datacontract parame...
{ "language": "en", "url": "https://stackoverflow.com/questions/6384504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ruby: CSV.open with encoding fallback option When opening a CSV file in Ruby with CSV.open, is there a way to set encoding fallback similar to how it's set in String.encode? Example: CSV.open('file.csv', encoding: 'windows-1252:utf-8') I would like to set something like this: CSV.open('file.csv', encoding: 'windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/55102576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: neo4j & .NetCore Docker setup I want to setup my neo4j database and my .NetCore Web Api with Docker. I created the following docker-compose file : version: '3.4' services: server: image: ${DOCKER_REGISTRY-}server network_mode: "bridge" build: context: . dockerfile: Server/Dockerfile st...
{ "language": "en", "url": "https://stackoverflow.com/questions/62516069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: EntityList / EntityCollection - MVVM Example I'm working with the new EntityList in the April toolkit to expose a collection in a ViewModel. I also have FK exposed as EntityCollections. I thought I would expose the collection as IEnumerable, which handles the exposure of a collection using generic interfaces. Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/5959223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XSLT How to add Logic I have the following collection in an XML document: <events> <event> <type>Downloaded</type> <result>Sucess</result> </event> <event> <type>Processed</type> <result>Sucess</result> </event> </events> Now in my XSLT I have a table with a TD - I want the value...
{ "language": "en", "url": "https://stackoverflow.com/questions/1461839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert php array into a comma separated list of strings I have the following array: $arr = [ 0 => 'value1', 1 => 'value2', 2 => 'value3' ]; The select function of my db class takes arguments in the following format: DB::table('users')->select('value1', 'value2', 'value3') How can I convert my array t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39208705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Google API in flutter? I want to use Google Cloud Natural Language in my Flutter app,I got Google API package This works for flutter and theGoogle API_AUTH dependence is working for 0.2.1. How do I implement them ? A: The accepted answer is most likely written towards an older version of the SDK I just c...
{ "language": "en", "url": "https://stackoverflow.com/questions/48477625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Linker script: insert absolute address of the function to the generated code I have a question related to gcc's linker. I'm working with embedded stuff (PIC32), but PIC32's compiler and linker are based on gcc, so, main things should be common for "regular" gcc linker and PIC32 linker. In order to save flash space (...
{ "language": "en", "url": "https://stackoverflow.com/questions/18173045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android - Cannot connect to external IP address over mobile 3G/4G network using sockets Right now, I am writing a server/client program to allow a user to control different parts of their computer from an android phone on the fly. The server runs on the computer and the client runs from the android phone. I am using...
{ "language": "en", "url": "https://stackoverflow.com/questions/18292815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS SQL Temporary table looping Need help on sql looping query my table : my expecting output: I am able to get 1 line only.. declare @ID nvarchar(50) = (select EMP_ID from HRS_WORKFLOW01); CREATE TABLE #TEMP(EMP_ID NVARCHAR(200),EMP_L1 NVARCHAR(200),EMP_L2 NVARCHAR(200),EMP_L3 NVARCHAR(200),EMP_L4 NVARCHAR(...
{ "language": "en", "url": "https://stackoverflow.com/questions/39951299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Angular UI Router Loading View, But Not Controller I'm getting very odd behavior from a very simple angular app using ui-router. All the templates are being loaded and displayed properly, but only 1 of the controllers is ever called, the DashboardCtrl. I can't explain this at all. var adminPanel = angular.module('ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/33636332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: x86 How to add all the positive integers in an array I have this code below, and this seems to be adding up ALL the integers in an array, instead of taking ONLY the positive. I'm kind of confused how to fix this problem as I am new to x86 Assembly Programming. Thank you for your help! int addpos(int* X, int length){...
{ "language": "en", "url": "https://stackoverflow.com/questions/21464976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Electron Fetches Resources of React From Root Dir I spent the last week trying some of recipes to glue Electron + React, but, each of them has its cons. Today, thought to do it by: * *create-react-app ... *npm install electron --save-dev *Put all Electron logic into build dir of React (must do some work to keep...
{ "language": "en", "url": "https://stackoverflow.com/questions/52322648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to show small and large image in fixed height and width light box 2 Run the snippet will clear the actual issue raised here snippets contains two link images by clicking on image you will find the size difference.i want to show that images in fixed size instead of showing in their original sizes // Uses Node, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43593192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read banned words from a text file I am currently trying to build a moderator-bot that automatically scans a chat for banned words and then times people out when saying them. Currently I have those banned words in a string-list but I'd want the bot to actually take the words out of a .txt file so I can easily have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39926943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: ByPass jQuery Plug-in OnClick Function I am using the following jQuery plug-in, i.e: http://flowplayer.org/tools/scrollable.html The issue I am having though is that, as part of the call to the api, it seems to make us of the onClick() function within the plug-in js file. I actually want to use the onClick function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1253327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enabling asp-prerender-module in ASP.NET CORE giving error I'm getting this error on enabling asp-prerender-module in ASP.NET CORE: NodeInvocationException: Prerendering failed because of error: TypeError: Cannot read property 'document' of undefined at Rb.object.module.exports.module.exports at Function.Fusi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48556728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass values to IN operator in a Worklight SQL adapter I have started to work with SQL adapters in Worklight, but I do not understand how can I pass values to an IN condition when invoking my adapter procedure. A: You will need to edit your question with your adapter's XML as well as implementation JavaScript... Als...
{ "language": "en", "url": "https://stackoverflow.com/questions/16012017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: function still working after global variable change Ok I have the code: $(document).ready(function(){ if(selected == 0){ $(".color").mouseover(function(){ var image = $(this).children('img').attr('src'); $(this).children('img').css("border", "2px solid #000000"); $("#itemMainImg").attr("s...
{ "language": "en", "url": "https://stackoverflow.com/questions/34253730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sql left join issue not giving result of non matching from right table i want all records from left table and matching record from right table but below query not giving correct result: select a.date,b.amt,b.code,c.type from (select date from t where date is between '2017-04-01' and '2018-09-30')a on a.date = b....
{ "language": "en", "url": "https://stackoverflow.com/questions/51312636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: My custom slide doesnt go in a row Please take a look at this http://jsfiddle.net/CztkH/6/ I want to run my slide in a row (like how we play films). But i cant make it slide in a row :(. Please help me Q.Q Here is my javascript that run the slide: function doDoubleSlide(obj1, obj2){ obj1.hide("slide", {direction...
{ "language": "en", "url": "https://stackoverflow.com/questions/13233915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV make on Ubuntu with opencv_contrib fails due to opencv_xphoto I'm trying to build OpenCV on Ubuntu 15.10 with opencv_contrib (to use the nonfree modules). I did the following: cmake -D CMAKE_BUILD_TYPE=RELEASE -DOPENCV_EXTRA_MODULES_PATH=/home/myname/Downloads/opencv_contrib-master/modules -D CMAKE_INSTALL_PR...
{ "language": "en", "url": "https://stackoverflow.com/questions/35825391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is comparison on various objects in python When I do the is comparison on a list is acts differently than on a number or string. For example: >>> a=[1,2,3] # id = 4344829768 >>> b=[1,2,3] # id = 4344829960 >>> a is b False >>> c=1 # id = 4304849280 >>> d=1 >>> c is d True Why is this so?
{ "language": "en", "url": "https://stackoverflow.com/questions/58469563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript groupBy "Cannot be used to index type '{}'" when trying to add key to reduce object I'm trying to get the following function to compile without TS erros: function groupBy<Item>(items: Item[], key: keyof Item) { return items.reduce((acc, item) => { (acc[item[key]] = acc[item[key]] || []).push(item); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62134312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IOS how to POST GET DELETE PUT Rest Api I am building my App conected to a Rest API and until now I only made a GET request with the following code : //Start login process NSString *emailstring = email.text; NSString *passstring = pass.text; // Create the URL from a string. NSURL *url = [NSURL URLWithString:[NSStri...
{ "language": "en", "url": "https://stackoverflow.com/questions/12047717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: propriety: opacity into my background color in css I would like to use the propriety: opacity into my background color. However, when I use this propriety, all the elements become transparent. I just want to change the background color. Thank you for your help. body{ margin: 0px; padding: 0px; } header{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60790642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read PNG file with c I want to read a PNG image file with C without any library. From PNG (Portable Network Graphics) Specification Version 1.0 any PNG file has a signature that distinguishes it from other image formats. The signature is the first 8 bytes of the image. Some sources like the above RFC mentioned the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/70098489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash: recursively write a line to a file from column maximum Linking back to my previous question, I found the problem not to be entirely solved. Here's the problem: I have directories named RUN1, RUN2, and RUN3 Each directory has some files. Directory RUN1 has files mod1_1.csv, mod1_2.csv, mod1_3.csv. Directory RUN...
{ "language": "en", "url": "https://stackoverflow.com/questions/42709021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Devise and rvm having issues I am trying to run: rails generate devise User and I am getting the following error: /home/zach/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/inflector/methods.rb:238:in `const_get': uninitialized constant User (NameError) from /home/zach/.rvm/gems/ruby-2.1.2/gems...
{ "language": "en", "url": "https://stackoverflow.com/questions/25277103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get_terms() order not follow hierarchy Here is how I get all terms, including children, of a custom hierarchical taxonomy: $args = array( 'taxonomy' => 'obra_tema', ); $themes = get_terms($args); Very simple. But instead the list look like that: * *Books *Cars *Others *DVD (child of Others) The fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/54554283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 4 font files added but only 2 styles displayed I'm trying to manually add a custom font to my localhost installation of WP, what I did so far: * *download the font (Computer Modern) from fontsquirrel in .woff format *take the 4 files needed (Serif): Roman (cmunrm), Bold (cmunbx), Oblique (cmunti), Bold Oblique (...
{ "language": "en", "url": "https://stackoverflow.com/questions/57934933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: webapp doesnt start after spring-boot update to 1.3.1 I hope you can help me with this problem and couldn't find a solution. I am working on a Webapplication with gradle 2.4, Java 8, Spring-boot and a H2-DB. We started with Spring-Boot 1.2.2 a while ago and decided to update Spring-Boot to 1.3.1. But with this Versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/34795548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass multiple variables in foreach php I'd like to pass multiple variables in a foreach loop to add the value from $array_sma[] into my database. But so far I can only insert the value from $short_smas, while I'd also like to insert the values from $mid_smas. I have tried nested foreach but it's multiplying t...
{ "language": "en", "url": "https://stackoverflow.com/questions/49454647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github's JIRA ticket integration: add comment I've set up the JIRA plugin that github provides and it works well, with a commit message like this: I made the thing work! [#PROJ-57 transition:21] It'll do that transition (In my case it's a 'close issue' transition) but I'd really like it to also post a commend to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/15431106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a vector by combining rows of a data frame in R? I have a data frame say 'a' qq ee rr tt 1 2 3 4 2 44 66 77 9 0 0 4 I want a create a vector like: vec <- c(1,2,3,4,2,44,66,77,9,0,0,4) how do I do this? A: Take the transpose which also converts it to a matrix, and then convert t...
{ "language": "en", "url": "https://stackoverflow.com/questions/17693390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing different UIButtons through a general Method. Are Selectors/Senders the answer? I have about 20 buttons added from Interface Builder, and when pressed they change colour like so: -(IBAction)button1:(id)sender { if(playerTurn == YES) { button1.backgroundColor = [UIColor redColor]; } } But...
{ "language": "en", "url": "https://stackoverflow.com/questions/13893228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: After submit i get an Error trying to diff '[object Object]'. Only arrays and iterables are allowed Error Explaination After i click the submit button the data is save successfully to database but the above error shows.Ill share my related code below. Is there any way to solve this issue my api data format this my a...
{ "language": "en", "url": "https://stackoverflow.com/questions/72210610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to select text in textbox I've got this here wizard step with a couple of text boxes. For some reason I cannot highlight/select the text in the textbox in IE or FF and I have no idea why, not even after spending a couple of hours googling the problem. I could really use another set of eyes on this. Let m...
{ "language": "en", "url": "https://stackoverflow.com/questions/6268653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing underline from a part of the link I have some hyperlinks with content before it . Like in picture. This is the code I am using . a { font-size: 14px; text-decoration: none; color: $grey; font-weight: bold; text-decoration: underline; &:hover { cursor: pointer; } &:before { content...
{ "language": "en", "url": "https://stackoverflow.com/questions/53097991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the wrong with this code? I'm new in SSMS, and I'm trying to execute this code: use master create database SQL20145Db2 on primary ( name = Sql2015Data2, filename='C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Sql2015Data2', size=4MB, MaxSize=15, FileGrowth= 20% ) log on (Name=Sql2015Log2, fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/28459204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice architecture, for multiple websites with commonality We are looking to build multiple custom websites for different customer contracts, with tailored functionality, but all around the same theme and concept. There will be about 70% commonality in functionality across all websites, but enough difference...
{ "language": "en", "url": "https://stackoverflow.com/questions/19911992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Moving android device to another access point programatically Im looking for a way to move an android device to another access point on the network if the access point is being overloaded with devices. I wish to do this programatically if possible. Thanks in advance. My thinking was that I could write something with...
{ "language": "en", "url": "https://stackoverflow.com/questions/24336171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Listview - clickable items with youtube links? I've already created a listview, that has 40 names of songs, and a standard adapter for it. Do you have any idea about how I can make the items clickable with links? Edit: Thank you all :) A: If the order / items are static you can store the links as strings in...
{ "language": "en", "url": "https://stackoverflow.com/questions/27065114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hive - Count number of occurrences of character I am trying to count number of occurrences of pipe symbol in Hive - (6) select length(regexp_replace('220138|251965797?AIRFR?150350161961|||||','^(?:[^|]*\\|)(\\|)','')) from smartmatching limit 10 This is what I am trying and I am not getting it right. A: This will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36736022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQLite Exception: no such column I am using a SQLite database and I got this this error: Caused by: android.database.sqlite.SQLiteException: no such column: coin (code 1): , while compiling: SELECT _id, name, age, coin, log FROM person_tb1 WHERE name = ? I have no idea why it show me this! I have tried it before...
{ "language": "en", "url": "https://stackoverflow.com/questions/33442385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA iterating over rows of range to create a dictionary of string to array? I have a excel workbook with the third sheet looks like this: A B C D E F 1 test test test test test 1 test1 test1 test1 test1 test1 1 test2 test2 test2 tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/71430420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the switch statement below to polymorphism in javascript and also how to access the different classes let type = document.querySelector('#productType'); type.addEventListener('change', function() { switch (type.value) { case 'DVD': document.querySelector('.DVD').classList.add('visible'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74041010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: KitKat: Service is null after exiting main activity I have a service and I need to check if it's still running after some time from a static context. [I noticed this happens only on Android KitKat] What I did: My service: public class Servizio extends Service { public static Service servizio; [...Other thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/21073136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Returning an event from a jQuery function How do I return an event to the calling function to do something once the function has completed running. jQuery Function $.fn.myFunction(){ this.each(function(){ var it = $(this) setTimeout(function(){ /* Return an event */ }, 3000); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59032158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble with python regex matching I am tying to write a regular expression to match the dates in a string. timeStamps = '25-12-2017 25:12:2017 25.12.2017' pattern = r'(\d{2}(?:-|:|.)){2}\d{4}' [ re.search(pattern,ts) for ts in timeStamps.split()] re.search is working without any problem and works exactly the way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44355538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does the Testcafe Roles work behind the scenes I am curious about behind the scenes logic of Roles. I do understand they do some cookies and local storage magic and I am guessing there is some window magic involved as well I am guessing that because in one of our tests one of our window properties is disappearin...
{ "language": "en", "url": "https://stackoverflow.com/questions/56024493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Concatenate Column and value as property To existing JSON object in another column In SQL Server Let's say I have the following table Product A: You can use a nested FOR JSON subquery, which breaks open the original JSON using OPENJSON and re-aggregates it SELECT p.ProductID, p.ProductName, ( SELECT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71223725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python3, hmac returns wrong output?! ARM71, 32bit I've asked another question here recently, regarding python, flask with a badsignature exception for sessions (https://stackoverflow.com/questions/37158432/python-flask-session-cookie-bad-signature-exception) , and I've been working with this problem now for a while,...
{ "language": "en", "url": "https://stackoverflow.com/questions/37209712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In LINQ, what is the main difference/usefulness between .Any<> and .Where<> to test for records existance For example, if I had a Linq to SQL data context, or if I had ADO.NET Entity Framework entities that mapped to a database table, and I want to test for a single Customer... Is there much difference between: MyDa...
{ "language": "en", "url": "https://stackoverflow.com/questions/1404039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fetching the lineitem field from item table when adding the item as lineitem in SO - Netsuite I am Learning netsuite, I am trying to fetch the Customfield "custitem_celigo_sfnc_salesforce_id" from item, on sales order module when adding that item in SO line items here is my sample /** *@NApiVersion 2.x *@NScriptTy...
{ "language": "en", "url": "https://stackoverflow.com/questions/69276570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Failed to decode downloaded font" when using gulp-iconfont I'm using gulp-iconfont v4 to generate fonts from SVGs in a folder. I'm using a swig template to generate a .scss file and include that in my app.scss. When I serve the files I get the following error in the console: Failed to decode downloaded font and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/32190878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS transform: How can I make transform value a combination of two different classes? HTML: <a class="button">TEST</a> CSS: .button{transform: translateY(-50%)} .scale{transform: scale(1.1)} JS: $(document).ready(function(){ setTimeout(function(){ $('.button').addClass('scale'); setTimeout(...
{ "language": "en", "url": "https://stackoverflow.com/questions/71489896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loan calculator alteration I created a program that calculates loans, but it doesn't go under the guidelines of what my professor asked. Can show me the correct alteration. Source Code would be awesome and time saving, but you don't have to. Heres the problem: Write a program that lets the user enter the loan amount...
{ "language": "en", "url": "https://stackoverflow.com/questions/3329632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to search text from page with next and previous functionality in jquery I am implementing the Text search functionality on page .I found lot of links .But i need more functionality . Here is good example http://jsfiddle.net/z7fjW/137/ function searchAndHighlight(searchTerm, selector) { if(searchTerm) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17520307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "could not find/install babel plugin 'proposal-decorators':" codesandbox I am working with a react app locally and when i deploy it to codesandbox it appears this error: could not find/install babel plugin 'proposal-decorators': Cannot find plugin 'proposal-decorators' or 'babel-plugin-proposal-decorators' I already...
{ "language": "en", "url": "https://stackoverflow.com/questions/71474224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i make cmd prompt not show "echo is off" when i type @echo off I have a problem. I'm coding a batch file in Notepad, and when I type "@echo off" (without the quotes) it turns off echo but also displays "ECHO is off" (again, without the quotes) in the CMD Prompt window. Please help me!! A: You could try doing...
{ "language": "en", "url": "https://stackoverflow.com/questions/22578913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove .php extension from live website url I referred alexcican website and put the code in my htaccess. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It works in my localhost, but doesn't work in thesvn link or live website. Please help. A: Are you using apac...
{ "language": "en", "url": "https://stackoverflow.com/questions/36495869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swagger express sequelize I'm trying to set up a swagger, but I'm running into an error Resolver error at paths./projects.post.parameters.0.schema.$ref Could not resolve reference: #/models/Projects Below is my project code routes/projects.js const Projects = require("../models").Projects; module.exports = (app) =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/56235214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Merging two digitally signed PDFs with Zend_Pdf Scenario: I have a webservice that signs PDFs, I'm using PHP, the Zend framework, and TCPDF. A PDF is to be submitted to the webservice, where a signature page is created, then merged with the incoming PDF, and then the merged document is signed. I've got TCPDF to crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/10955659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL statement using WHERE AND OR I try to execute the following, what am I missing here ? DELETE FROM escrow WHERE host = '$name' OR challenger = '$name' AND id='$match_id' A: When you use AND and OR together in any circumstances in any programming language ALWAYS use brackets. There is an implicit order which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33448553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the font / typeface of a button in RemoteViews of an Android Widget? How can I change the font / typeface of a button in an Android widget? When working with normal view is this no problem: // Within the app Button myButton = (Button)rootView.findViewById(R.id.myAppButton); myButton.setTypeface(someTyp...
{ "language": "en", "url": "https://stackoverflow.com/questions/66473369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GIFs in Python and encoding I need to convert GIF to binary because I need to concatenate then the gif with a text string(which is in binary), because I am doing a Web Server in Python. The rest of the code already performs well and is able to load pictures, texts and htmls. For gifs I have this: elif format == "gif...
{ "language": "en", "url": "https://stackoverflow.com/questions/71453092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails Heroku change column data type I run this command for deploying database to heroku heroku run rails db:migrate But I got this error rails aborted! StandardError: An error has occurred, this and all later migrations canceled: PG::UndefinedObject: ERROR: type "dateti" does not exist LINE 1: ALTER TABLE "users...
{ "language": "en", "url": "https://stackoverflow.com/questions/72721732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel9 Auth::user() retuns null I am learning Laravel Framework. I am trying to redirect the user to Dashboard and get the user credential right after s/he is successfully registered. The problem is that I can register but when directed to Dashboard I get null object of a just registered user. DashboardController...
{ "language": "en", "url": "https://stackoverflow.com/questions/73230555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }