text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Does service still run in foreground after "show notifications" is un-checked? I know that to run as a foreground service, you need to show a notification. My app runs a service as a foreground service, and it shows a notification.
However, if the user goes into Settings -> Apps- > My app -> and un-checks "show not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23615970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Referral lost after redirect I have a website (www.accent.jobs) which contains a language selection tool on the www. subdomain.
When choosing a language, a cookie is set, so the user only sees the language selection page once, and automatically get redirected the right way next time.
What I notice in Analytics, is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13579577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: COM component not activated due to privilege issue We have developed an office add-in. Its working fine with every other system except one. In that particular system when we try to load the app, it fails with a generic error (This app could not be started. Close this dialog to ignore the problem or click "Restart" t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32964191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: React Native - How to build expo react native app so that it does not require Expo android app to open i have Developed a React Native app using expo. I build it using expo amd downloaded and installed apk file but still using Expo app to open app in the android phone. But i want that it can be installed and run wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63440871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why does gitlab show more tabs than the one in the sublime editor? I write code in sublime with tab width:4. When I push my code to gitlab, it shows with 1 more tab in the indentation. What's wrong here ? How should I setup my sublime to prevent this ?
A: The underlying issue you're having here is that you're using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65073971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does this regexp mean - "\p{Lu}"? I stumble across this regular expression in c# I would like to port to javascript, and I do not understand the following:
[-.\p{Lu}\p{Ll}0-9]+
The part I have a hard time with is of course \p{Lu}. All regexp websites I visited never mention this modifier.
Any idea?
A: These ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25977309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Define a Class Function Operator How can I define in PHP a class Foo that allows to do something like:
$foo = new Foo();
$foo->bar;
$foo();
A: You're asking about invokable objects, or treating objects as functions. To be able to do that, you need to implement __invoke() method, like this:
class Foo {
public f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39333129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: jQuery not stopping POST after executing I'm using ASP.Net MVC 4, and in one of my views I'm going to be using jQuery. The jQuery is written on the create page. It is as follows:
\View:
<table>
<tr>
<td><h2>Strategy Types</h2></td>
</tr>
<tr class ="strategyType">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22238009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a tool that can convert common image formats (.bmp, jpg,..) to .emf files? I'm using the GoDiagrams suite which seems to recommend .emf files for node images since they scale better on resizing. Bitmaps get all blurry.
Google doesn't show up any good tools that seem to do this... So to reiterate I'm looking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery UI Sortable update database Hey I'm working on a CMS for a website I'm building and in the CMS I have all my fields with the data and I'm using jQuery UI Sortable so I can sort them, what I'm wondering is what is the best way to update the order field in my database when I drop my element? Would I use Ajax? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15540188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inheritence vs Composition - An OOP Architectural Consideration I'm having trouble figuring out a clean way to implement my layering.
Here are the layers I have (lower layers support upper layers, either through inheritence
or composition):
Business Logic Layer (BLL)
Datastore Layer (DSL)
Database Layer (DBL), Web-S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11525364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: concurrency problems in interceptor tracking MDC I have the following interceptor that tracks request/response based on saving and restoring some vars stored in MDC context for every request.
public class LoggingInterceptor implements DeferredResultProcessingInterceptor {
private final HelloSeeYouLogger helloSee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51848695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is anybody happily using Google Analytics with big websites? (million+ pages, million+ monthly visitors) I was a happy customer of Google Analytics starting from the Urchin times. But something strange happened a few months ago and GA started showing a fake URL called "(other)" that is credited between 5% and 45% of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/927113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to join two tables in database Laravel I'm trying to join two tables (products table and Images table), so in products table each product has multiple images(stored in a row named image) so I want to display images of each product in images table. In images table I have a foreign key named product_id references(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56821633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Numeric type as DependencyProperty How to register custom property which based on numeric type?
public class NumberBox : TextBox
{
public static readonly DependencyProperty FormatProperty = DependencyProperty.Register("FormatValue", typeof(Type), typeof(NumberBox), new UIPropertyMetadata(default(Double))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24060270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get the window width in angularJS on resize from a controller? Ho can I get the window width in angularJS on resize from a controller? I want to be able to get it so I can display some div with <div ng-if="windowWidth > 320">
I can get the windowWidth on the initial page load but not on resize...
'use s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41175143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Reset variables inside a 'foreach' loop As I have really many variables inside my foreach loop, it would be great if I could reset them all at once instead of:
$variable_one = ''; // Reset to: It is blank for each loop
$variable_two = '';
...
$variable_hundred = '';
A: If I were you and had these number of var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41659108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JavaScript: escape vs. unescape I saw some sites were using the JavaScript escape() and unescape() functions interchangeably.
Some used:
document.write('<img height="1" width="1" style="border-style:none;" alt="" src="..."/>');
whereas, this was also pretty common (note: they first "escape" the string, then "unesca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4891992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pass ID of row to Detail Page with PDO I'm trying to update a master/detail setup from mysql to PDO in order to be compatible with PHP7. I have got the master page working exactly as it should - it produces a table that lists audio files and when you click on a title the idea is that you are taken to a detail page w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45403663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to populate listview with a lot of information without blocking? I am creating an array of ListViewItems on a background thread and then i populate my listview with it on the ui thread. The problem is that if the array is too big the ui blocks while the listview is updated.
Is there a way to populate the listvie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1052475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merge two files by one column - awk I have two different scripts to merge files by one matching column.
file1.tsv - 4 columns separated by tab
1 LAK c.66H>T p.Ros49Kos
2 OLD c.11A+1>R p.Ill1639Los
3 SRP c.96V-T>X p.Zub%D23
4 HRP c.1S>T p.Lou33aa
file2.tsv - 14 columns, separated by tab
LAK "empty_column"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52057225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyQt Segmentation fault in addItems for a combox When I run the following code it generates a segmentation fault:
from PyQt4 import QtGui
import sys
app=QtGui.QApplication(sys.argv)
methodNameComboBox=QtGui.QComboBox()
methodNameComboBox.addItems(['a','b'])
methodNameComboBox.show()
sys.exit(app.exec_())
but chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27797236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java compiler error variable is already defined I am new to programming and am having difficulty figuring this error out:
C:....>javac Power.java
Power.java:12: error: variable i is already defined in method main(String[])
`for(int **i** = 0; i < upper_limit + 1; i++)`
Here is the entire program. I'm sure the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29371118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: back press on fragment finishing activity I have an activity with fragments that it navigates too. When you hit back on the fragment it should return back to the activity. But when you hit back at the moment the app closes.
Now thats not totally undesired behaviour as I would like the app to close when you hit back ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50872638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emacs project management for Scala I would like to ask if any of you have any experience {and,or} could point me to a project management extension for Emacs that works well with {Scala,Ensime,SBT}. It would also be amazing if it didn't require too much hacking. I did some scheme in the past but I have little experie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7541762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Microsoft azure cannot access data from sencha 2 mobile application I have configured my Azure back end to only allow actions from authenticated users. I can authenticate my self using my Google account, but after authenticating I still cannot access any data on that table. I have my Ext.azure.Authentication.login('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24134291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Name Broken Horizontal Bar Chart Plotly JS I am trying to create a nice horizontal bar with plotlyjs but the lines name are been broken.
Horizontal Bar Chart Example
The last line is impossible to put a full name. How can i break in 2 lines?
A: Found it!!!
As it is used on Vertical Barchart,
https://plotly.com/java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64164013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Netbeans - Oracle DB - AWS " amazon RDB " - java 8 I want to connect my java file to amazon oracle database.
DataSource.java
public class DataSource {
private static String dbName = System.getenv("PUBLIC");
private static String userName = System.getenv("root");
private static String password = System.getenv("3dee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47570926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ansible Jinja error while using int|abs {% set shutdown_port = (tomcat_services[current_app_name]["service_port"] +5)|int|abs %}
I am using the above in tomcat contect.xml to get the shutdown port +5 of service port.
when i run the playbook "AttributeError: 'int' object has no attribute 'startswith'"
can some bod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50068805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to capture the output of a command without it displaying in stdout How can I capture the output of a command and check for what it says without the command displaying in stdout? For example:
def update!
`git pull origin master`
if $?.exitstatus > 0
puts 'Failed to update'
elsif $?.suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41274671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: google.script.run breaks $(document).ready or $(':checkbox').change(evaluateCheckbox); When I run google.script.run.withSuccessHandler(buildCheckboxes).withFailureHandler(fail).getNumber(); it breaks $(document).ready or $(':checkbox').change(evaluateCheckbox); (not sure which is not working). But if I directly acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26879396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a spread operator to a functions parameter Using spread operator I can get the maximum value of two arrays using Math.max(...firstArr, ...secondArr), and get's the right value, I am trying not to add a spread operator MANUALLY, I am trying to add automatically by creating function, I am trying to add or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42288098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to control image size that is in a ASP file? I have this form that works fine, however, in my Logo.aspx file, I have 3 logos on the head of the form.
However, the Logos in the asp file pushes the third image to the right.
Is their a way to control the size of the logos in the front end?
This issue only occurs i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39301537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way query the node's status before submitting one job? Before submitting one job, could I query one node's status, if the node is free, then submit it into the node; if not ,then submit the job into another free node.
I want the job to run on the total node, not sharing with other jobs. Is there any way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19603754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Invalid Bundle - Invalid Asset Catalog. One of the files named Assets.car is not a valid Asset Catalog file I have build a react-native app which I want to submit to Testflight.
I have tried a lot but keep getting this message:
Invalid Bundle - Invalid Asset Catalog. One of the files named Assets.car is not a valid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45820323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Whats the difference between Cookie SESSION= and session_id in database for spring session I am using spring session with JDBC postgres for session management. Whenever a new session gets created spring creates it and send the sessionid back to the browser in the cookie parameter SESSION and browser sends it back fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51517246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the value of a CSS property in SASS? I'd like to store the current value of a property for later use. It's already been solved for jQuery.
The issue is that I'm using a @mixin to apply a CSS hack in several places (Justified Block List) and I'd like to restore the font-size property in .block-list * (curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9394514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Compare Javascript Ajax Response with String I'm trying to compare the result from from ajax call with a string. My result is returning the correct result but i can't get the if statement to compare this with my string, any ideas?
$.ajax({
type: "POST",
url: "sessionCheck.php",
data: {i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54291662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex to get a word in a pattern I don't know how best to word this. I have a set of patterns:
Usa-Texas
Usa-Chicago
USa-Washinton
.
.
Usa-{some USA state}
Now, I need a regex(java) to extract only the USA. I am just wondering why this didn't work : "(//busa//b)" It wasn't extracting the USA..
A: use this to fix ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33766354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Importing a joomla plugin I have trouble importing my own plugin. I have tried numerous methods (e.g. JLoader and differnt variations of names to be imported), all of them failed.
This is the plugin's php content:
http://pastebin.com/mw7p52pV
This is its XML definition:
http://pastebin.com/mzcB0ejp
This is how I cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23181408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python PEP 302 and __name__ attribute Currently i am creating a custom import hook, which seems to work pretty well (still under development). When i read the PEP 302 i came accross the __name__ attribute, which is descriped like this:
The __name__ attribute must be set. If one uses imp.new_module() then the attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34949477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery UI & document.ready in Chrome I have a very large and complex jQuery UI application that is designed to work with Chrome (the other browsers do not matter at this stage). I have noted the following
*
*The time required to process all of my customization code under $(document).ready is less than 2s.
*Once ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22472906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Encrypted data contain White spaces? When we encrypt any Magnetic strip data. Does that encrypted data contain spaces?
I am referring to this document http://sagan.gae.ucm.es/~padilla/extrawork/magexam1.html
Where the card data converts into SHINTRACK1, SHINTRACK2, TRACK1 and TRACK2.
So similarly card photo wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63811112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Best way to trigger a Page activation workflow I have a requirement where I have around 800 pages under a path in /content hierarchy. Now, the content in some of those pages will get updated on a nightly basis though some automated process. I have a requirement to trigger a page activation workflow for all the pages... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28020082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: money.js convert currency from one value to other and backwards I have to input field one with $ and other with ¥, what I'm trying to achieve is: when input number in $ it will show how much it will be in ¥ and when input in ¥ it will show in $
Html: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46677055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can`t remove a new line I have a model, wich has a unique token, to be changed every time the model is saved.
i`m using before_filter to change the token, and it is working, the problem is:
class Confirmation < ActiveRecord::Base
attr_accessible :item_id, :item_type
before_save :define_token
def to_param
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7166183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bind together sparse model matrices by row names I am trying to construct a large sparse matrix with a split-apply-combine approach by separately calling sparse.model.matrix() from the package Matrix on subsets of columns of a dataframe and then binding them together into a full matrix. I have to do this because of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33205666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OGRFeature setting multiple fields Hi all to start off with:
Using Gdal compiled with Xerces
Coding in C++ with the QT Creator version 5.4.1
So my problem is im trying to use Gdal to create my own Esri shapefile, I get a strange runtime error when trying to add multiple fields
Example:
// Create a ogr feeature
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31320656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hashing function and keys While going through Kathy Sierra's book I stumbled across this code fragment:
m.put("k1", new Dog("aiko")); // add some key/value pairs
m.put("k2", Pets.DOG);
m.put(Pets.CAT, "CAT key");
Dog d1 = new Dog("clover");
m.put(d1, "Dog key");
m.put(new Cat(), "Cat key");
Maps are used to store... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10189326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: implementing time based queue for hashmap I am working on an application where i need to have a fixed length for a HashMap. Initially the hashmap was restricted based on size so i used removeEldestEntry method of LinkedHashMap to achieve that.
Code:
public class FixedLengthHashMap<K,V> extends LinkedHashMap<K,V> {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50690691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regular Expression for Job Status (Autosys) I have an output like below:
Name1 12/26/2013 12:05:04 12/26/2013 12:05:08 SU 34066553/1 0
Name2 12/26/2013 12:05:10 12/26/2013 12:05:14 SU 34066553/1 0
Name3 12/26/2013 12:05:04 12/26/2013 12:11:13 FA 34066553/1 5
Name4 ----- 12/26/2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20855852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective-C / Xcode project : Where to put structs? I always try to keep my Xcode projects very well organized but I recently asked myself where to put struct data types.
Normal I use a lot of classes even when a struct would do. Since classes are always separate files there are much easier to organize and easier t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1782430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I schedule my computer to shutdown at a certain time? I run a program which has a lot of computation that takes a lot of time for outputs. I thought that it might be a good idea if I could turn off the PC after the output has been received. so I used the code below (which works fine by the way):
def shutdown... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44077422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why "**" does not bind more tightly than negation in OCaml? after this question, I don't know what to think.
In OCaml, if you do something like -1.0**2.0 (because of the typing you need to have float), you obtain 1.00. According to the standard order of operations, the result should be -1 (as in python).
I wasn't ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/937497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking if a string begins with integer after line breaks I'm using Apache POI to read in from a .doc file, as a result, I have an arraylist of strings containing large amounts of line breaks, and tabs, from the original document formatting
I need to check if a string, from this, contains an integer as it's first c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30288192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get event of changing current keyboard layout in Unix? I searched simple solution, but could not find.
I need getting event of changing system keyboard layout for setting this in my application.
QApplication::keyboardInputLocale() is not suitable, because I need to catch system layout, not the application.
Xk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7978891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error "No overload for method 'EndExecuteNonQuery' takes 0 arguments" While executing the following code :
private void button1_Click(object sender, EventArgs e)
{
SqlConnection cn = new SqlConnection(global::DataBase.Properties.Settings.Default.Database1ConnectionString);
try
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29428992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can not load GIF from GeoNames link with Glide 1 GeoNames
Glide.with(this)
.load("https://www.geonames.org/flags/x/ad.gif")
.into(imageViewFlag_info);
2 Giphy
Glide.with(this)
.load("https://media.giphy.com/media/98uBZTzlXMhkk/giphy.gif")
.into(imageViewFlag_info);
1 and 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67046584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I print unsigned char as ascii I'm trying to convert unsigned char to ascii text. How can I do it?
I have tried this, but it is wrong:
typedef struct mtmheader
{
unsigned char objName[20];
unsigned char msgType[2];
}mtmheader;
mtmheader h;
processMTMHeader(datap,&h, endmmsgp );
printf("Name, type: %... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21675497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting permissions of uploaded file to allow reading in ASP.NET I have an ASP.NET web application in which I am trying to open a text file located within a subdirectory of my webroot. The text file was uploaded through the same web application using SAFileUp. I am using the FileInfo object as such to read the text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5709184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: promisePool is ignoring concurrency limit and running all promises at once all.
I am trying to implement a PromisePool from es6-promise-pool
. However, when I run my code, all of the promises are executing at once instead of obeying the concurrency limit.
relevent code:
// individual promise
var writeGpsProjection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52545491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android WebView doesn't show unity builded web pages properly I have developed an application in unity then I export it to WebGl then I have created a web page. When I preview the page on Android's Chrome browser there is no any problem, It shows the page in high quality however when I open the page in android WebVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57974095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bitwise operation positive number to negative Performance and optimisation debates aside.
I'm looking for a way in Javascript to take a number let it be 5 and using bitwise operations change it to -5.
The problem with flipping the bits is that 0 becomes 1 ergo ~5 becomes -6.
Is there a way to do this purely through ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32379524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make UIAlertController appear over the top of anything and everything? I am developing an app using Visual Studio 2022 that uses ZXing.Net.Mobile,Forms to scan barcodes, everything is working as expected except I am unable to display the UIAlertController message over the top of everything. My code is:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71324514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there mistake in passing parameters to push_relabel_max_flow()? So this is my code to get max flow though network using push_relabel_max_flow function in Boost C++ lib.
#include <string>
#include <boost/graph/adjacency_list.hpp>
#include <iostream>
#include <boost/graph/push_relabel_max_flow.hpp>
typedef boost::a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43438735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Request.ContentType always empty on my requests? I have a base controller class that attempts to look at Request.ContentType to see if its a json request or a regular HTML request. The base controller then sets a simple enum on the base class and the appropriate controller returns the correct type. However,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1625707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attempt at "Longest Substring Without Repeating Characters" in Java I am attempting to do the longest substring without repeating characters problem in Java. I am trying to do two nested loop, and use a counter to keep track of how many characters are not repeated. When it finds a repeated character, it will reset t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64584635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: laravel filter return all the records im trying to search using three inputs, in the first scenario when i search using all the inputs it return the result, in the second scenrio when i search by using only one field it return all the records what im trying to do is when i search with one field it return a specsific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69875726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In kotlin android tailrec function returns 0 I tried to use this tutorial youtube tutorial. I have a function as follows:
fun fact(x:Int):Int{
tailrec fun factTail(y:Int, z:Int):Int{
return if(y == 0) {
z
} else {
factTail(y - 1, y * z)
}
}
return factTail(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46763795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Time Comparisons PHP Nightmare I'm having an issue with time comparisons with PHP - I think I must be doing something stupid but I've been trying different things for hours now and I'm just hitting a brick wall.
I'm pulling data from EVE's API and then doing a check for whither there is still subscription there and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18468259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access violation in release without debugger I'm having a problem with my project where it operates fine when compiled in debug mode, and works fine in release mode while the debugger is attached in Visual Studio, but if I run it in release with no debugger, I get an access violation deep within bullet physics.
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27950598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Representing closeness among elements of a double vector I have a double vector:
r = -50 + (50+50)*rand(10,1)
Now i want to ideally have all the numbers in the vector equal upto a tolerance of say 1e-4. I want to represent each r with a scalar say s(r) such that its value gives an idea of the quality of the vector.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41916750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacing part of string with a HTML Element I'm using plain Javascript to replace part of a string with an HTML Element.
I'm using the following script to do what I need, consider var data to be an array of objects where data[objectAtIndex].text has the following example string {0} is the right answer, but it can a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29261960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: check if SQL field has UNIQUE constraint via ADODB VBA I am writing vba code to update SQLSERVER tables.
I want to check all values for a new record are ok, before actually trying to update them.
How can I check if a field has UNIQUE constrain?
I have tried listing all properties and attributes, but the propertie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44108049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I link/join/relate the types of two function parameters in TypeScript? Based on the similar question about linking class fields, how do I get TypeScript to recognize that the value of one parameter to a function (whose value is determined at runtime) restricts the type of another?
Example code (playground):
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72890232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create new arrays from object array based on user_id? I'm having trouble looping through an object array and displaying data from it under certain conditions.
I want the webpage to display the following:
<p>John Doe</p> <p>William Green</p> <p>Jane Smith</p>
I know how to do this by defining $user[0]->first_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56943724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: My footer doesn't show all the content when the screen size gets shorter My footer's last part(the "address" part disappear when the screen's height is shorter than some certain points, around 938), I wonder why?
The HTML looks like this:
<div className="container-fluid footer">
<div className="cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62238155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Run com.google.example.games.bc and fails I try to run the ButtonClick example of google, and I get this exception:
10-12 15:50:22.744 7085-7085/com.google.example.games.bc E/﹕ Device driver API match
Device driver API version: 23
User space API version: 23
10-12 15:50:22.744 7085-7085/com.google.examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26325303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# ssl stream wont stop buffering before sending I am trying to use C# to connect over a ssl socket to a server and send xml data back and forth. It seems that data won't be sent till it has reached a certain packet size 1000 bytes, upon which all the packets are just smashed on top of each other. Is there a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1341636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to hide header of TreeTableView? Is there any way to hide the header of a TreeTableView in JavaFX?
I am asking, because I have treestructured data which I always want to present within three columns, whereas two of them always will have the same size. So there is no need for the user to modify any columnspecifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22450645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js callback within a loop has wrong iterator value
for(var i in companyTickerList) {
console.log('i = ' + i);
//construct url
var url = base_url + companyTickerList[i];
console.log('url = ' + url);
request(url, function(error, response, xml) {
if(!error && response.statusCode == 200) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36389324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing parameters from command line to C++ Searching the net for examples how to pass command line parameters to a C++ code, I came up with an abandoned post where this process is being explained. This code was not working and after a few amendments I came up with the following (working) code:
#include <iostream>
#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39063819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I count how often a method was called within 10 milliseconds? I have a sensorlistener which runs the method "onsensorchanged" every single time an event has occured. Now I want to know how often this method is executed within 10 millisecond.
I have a timespan (current Timestamp- previous Timestamp), which sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55618042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to store an Encrypted type in flutter sharedprefrence Am designing an app in flutter and I have successfully encrypted a string using encrypt. now i want to store this encrypted data in sharedpreference so i can retrieve it later and decrypt it before using. I have tried setString() it does not work as it seem '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63592608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Importing filename from variable I'm have variable 'filename' with contents 'code.h', i'm need do this,
#include <filename>
why it's not working? Or #include not works with variables?
A: #include is for other header files not variables. If you want to conditionally include header files you can use precompiler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61949180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PostgreSQL WHERE IN LIKE query I was wondering if it's possible to do a query using the IN clause where the options inside it are LIKE clauses, for example I have my existing SQL which returns the same results as I intend it just seems like a round about way to do it.
SELECT *
FROM pg_stat_activity
WHERE application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38073291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Named page-router-outlet adds blue header on top of the app I am using nativescript and Angular and trying to implement tabs. Everything is good however i get blue line with word 'client' on top of the app. It comes from page-router-outlet. I know it sounds crazy but i do not have any items with word 'client' in my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60082574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R : Split string based on list of words I have 2 columns say ID and Hours. ID is self-explanatory. Hours column consists of hours for which an entity is open on each weekday as mentioned below. Note certain entities might be open intermittently in a day as shown in id 2.
ID | Hours
---
1 | {"sunday":[["10:00","21:30... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45943928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: linq to sql select new keyword and assign column alias name i wants to assign column alias to another column in linq to sql select new keyword my code is
var query=from d in db.tblAttributeDatas
select new
{
a=d.strValue,
b=a
};... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30323540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make mysqli_query compare a variable identicly? Here is my code;
if ($_SERVER['QUERY_STRING']) {
$qrystring = $_SERVER['QUERY_STRING'];
$q = "SELECT * FROM accounts WHERE username = '$qrystring'";
$r = mysqli_query($dbc, $q);
if ($r) {
if (mysqli_num_rows($r) > 0) {
echo 'Yay account a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5654132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Openstack API not providing precise data I am using Openstack - Stein in CentOS 7.9
I was using python to collect data about the openstack nova performance, like server names and id in the openstack project, i have 3 instance(server) created, i can see all three instance in openstack cli, but when i connect to api m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73772437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using Collections.binarySearch to remove duplicates from a pre-populated ArrayList For an assignment, I have been given the task of reading in a pre-populated file as an ArrayList, sorting it, and removing all duplicates. I have been tasked to doing this with the binarySearch API. He's being rather specific. I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24318202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get into Firebase complex object containing another object I've got Angular2 project connected directly with Firebase.
The structure of my database is presented in the picture below. So we've got couple of objects.
Main is orders, then the key od order, some extra information and another object "items" which contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50453188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading XML data from SQL Server with Hear and Node values I have the following XML data in a file "Test1.xml":
<TextValuess>
<TextValues Name="Value1" Override="true" Type="String">
<DEV>Source=DEV;Catalog=DEV_DMT;Integrated Security=SSPI;</DEV>
<INT10>Source=LAB;Catalog=TST_INT10;Integrated Security=SSPI;</IN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53845142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot open Utilities 'FilterOptions' I'm trying to run a code like this in Mathematica:
(* initialize everything *)
ClearAll["Global`*"]
Remove["Global`*"]
(* all *nb are in $WorkingDirectory *)
$WorkingDirectory = "/Users/U1/Workspace/BCOASMBH/Core/Fortran/"
(* Load Assumptions and format.m *)
Get[FileNameJoin[{$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62830064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c++ template member function with partial spezialisation outside class this code use a template member that work different for std::vector and other types. So far it works fine. But what is the correct syntax to define the get methode for std::vector outside the class ? i am aware about using traits and other helper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66249376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create object set with multiple properties I have an object with multiple boolean (and integer) properties. I want to create a collection of objects with lot of different properties to have a good dataSet used for tests.
For example
public class A
{
public int value {get; set;} //want to try beetween 0 and 5
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35840905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Label with as: :boolean value in simple_form I have the following code :
<%= profile.simple_fields_for :options, OpenStruct.new(@user.profile.options) do |option| %>
<div class="hint">
<%= option.label :display_profile %>
<%= option.input :display_profile,
as: :boolean,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60114778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send last debounced request while request param is changing? I was using React.useCallBack() to produced a debounced function, something like:
const debouncedFunction = React.useCallback(
_.debounce(function, 2000),
[someInputValue]
)
and trigger it using React.useEffect(), like:
React.useEffect(() =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65774515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to force ignore the :hover pseudoclass for iPhone/iPad users? I have some css menus on my site that expand with :hover (without js)
This works in a semi-broken way on iDevices, for example a tap will activate the :hover rule and expand the menu, but then tapping elsewhere doesn't remove the :hover. Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2741816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.