text
stringlengths
15
59.8k
meta
dict
Q: What does tf.nn.embedding_lookup function do? tf.nn.embedding_lookup(params, ids, partition_strategy='mod', name=None) I cannot understand the duty of this function. Is it like a lookup table? Which means to return the parameters corresponding to each id (in ids)? For instance, in the skip-gram model if we use tf.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/34870614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "171" }
Q: RUSAGE_SELF returns memory usage in bytes? I am still not very clear about the unit of RUSAGE_SELF after going through the documentation of Python resource. What actually RUSAGE_SELF returns? Memory usage of the whole program in bytes? resource.getrusage(resource.RUSAGE_SELF).ru_maxrss What exactly is the unit? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21357240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: task scheduler not working for python win32 I am running the following Python code from jupyter and powershell and it is running flawlessly. When I put this in window scheduler, it doesn't run. It doesn't show any error either. Could you please help solve the problem? Are there better options to schedule my Python c...
{ "language": "en", "url": "https://stackoverflow.com/questions/73208815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Ordering Convention for which tags to specify first I typically place the rules in my CSS in the same order as they are in the HTML. But what about global rules like how I format my input,textarea,p,tr,th and stuff like that? Is there a convention on which order the rules should go in? Obviously there are situat...
{ "language": "en", "url": "https://stackoverflow.com/questions/4879344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Chrome not animating until css are loaded In my head I include very small css file for loading animation. I am downloading large Angular2 application, and I want to display loading. What I experience is that animation does not start until all css are loaded from server. <link rel="stylesheet" href="~/dist/load.css" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47606673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to update a list of structs Let's say that I have a list of structs, with an id as one of its keys: users = [ %User{id: 1, attempts: 5}, %User{id: 2, attempts: 12}, %User{id: 3, attempts: 2} ] What would the best way (the most elixir way) to update the number of attempts to 99 of the user with id == ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58475762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Background image not displaying in JLabel/JFrame in Java game I am making a java game and at it's heart, it consists of a JFrame that holds a a JLabel that holds the background image. Early in the project this was being displayed. However, after I implemented a Game render method that put healthbars and a character ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25635204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android UI issue after update the ConstraintLayout to 1.1.0 After updating the ConstraintLayout to 1.1.0 the layout is showing white background only.its working fine in constraint-layout:1.0.2'.Please check my XML.In constraint-layout:1.0.2' it show the result. in 1.1.0 is showing only the outline card view only.pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/50288776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Expression performance of overload operator? * *(i++) and (i = i + 1) *(i += n) and (i = i + n) which is better (performance)? A: It doesn't matter The compiler will convert statements like that to (what it thinks, and often is) their most efficient form. I'd recommend you write statements like this in the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/9367525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to properly apply filter for the query presented? I have a table as under declare @t table(bucket bigint null) insert into @t select 1 union all select 2 union all select -1 union all select 5 Now let me write the below query (filter by Bucket 0 - All values are coming) declare @Bucket bigint = 0 –filter by 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/53121834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switching threads multiple times in Rx chain Let's assume I have a following case for Android: * *Request list of groups from network *Show some UI elements for each group *Request items for each group *Show UI elemets for each item I want to do this using RxJava: webService.requestGroups() .flatMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/46070235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Android ClickableSpan not calling onClick I am creating a ClickableSpan, and it is displaying properly with the proper text underlined. However, the clicks are not registering. Do you know what I am doing wrong??? Thanks, Victor Here is the code snippet: view.setText("This is a test"); ClickableSpan span = new Click...
{ "language": "en", "url": "https://stackoverflow.com/questions/8641343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "189" }
Q: c# EF Model has foreign key to another model Consider the following two models: public class Category { public int Id {get;set;} public string Name {get;set;} public int Type {get; set;} ..other properties } public class Person { public int PersonId {get; set;} public string Name {get; set;} public in...
{ "language": "en", "url": "https://stackoverflow.com/questions/42541825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a chance that street and zipcode data wasn't enough to populate full address I have a form where I ask the user to input their mailing address. Would there be any issues with asking only street address and zipcode and omitting city and state? User zipcode in conjunction with zipcode database would result i...
{ "language": "en", "url": "https://stackoverflow.com/questions/6604394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing additional constraints in R's nnls I am using the R interface to the Lawson-Hanson NNLS implementation of an algorithm for non-negative linear least squares that solves ||A x - b||^2 with the constraint that all elements of vector x ≥ 0. This works fine but I would like to add further constrains. Of int...
{ "language": "en", "url": "https://stackoverflow.com/questions/8107660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Terraform and Jenkins Guys I want to automate terraform with Jenkins pipeline And My terraform is installed on different Vm and Jenkins Also. I know there is the Terraform Plugin. But it seems like The Terraform Has to be installed on the same vm as Jenkins(or on /var/lib/jenkins/workspace) Is there anyway to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/50090845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git workflow for different versions of a framework We have the following setup: Three apps which are similar to each other with the common code extracted into a framework. Each app is managed in their own git repository and includes the framework as a git submodule. The problem is that the apps are now developed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9018254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is Stream.findAny a short-circuit operation? Consider this code Object found = collection.stream() .filter( s -> myPredicate1(s)) .filter( s -> myPredicate2(s)) .findAny() Will it process entire stream, and call both myPredicate1 and myPredicate2 for all elements of the collection? Or will as many predi...
{ "language": "en", "url": "https://stackoverflow.com/questions/44180155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dynamic setting the timestamp fields in superset dashboards I'm building few dashboards in Apache superset. All my available timestamp fields are in UTC timezone. (for example fields are, class_start_time & class_end_time). I want that in the timezone the dashboard is opened all the timestamp fields will be automati...
{ "language": "en", "url": "https://stackoverflow.com/questions/73727629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MS Access SQL Left Joins Not Working Can't get this ms JET sql query (querying a 2007 Access database that I didn't write) to work. Error mentions "too few parameters, expects 4". I believe it has to do with my JOINs. Anyone know what I'm missing? SELECT TOP 500 [Load Items].[LoadItemsID] AS load_order_line_id, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51071236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Complex query on more than one child in cloud functions Here is the structure of my firebase database: /UserData /DeviceMgmt /Counters /NumberOfAll: /NumberOfSelected /TotalDownloaded ... /Devices /pushId1 /uid /signOutTime ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51499191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RoR: How to use *_path in a model? I need to generate a “report” in a model. This “report” has to include links. However, all the *_path functions seems to be unavailable in the model classes (a simple test show me that new_post_path raises an Exception in my models, but works fine in my controllers) Is there any wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/3398230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: At what point should data be sent back to server? A good example would be the stackexchange "rate" button. When a post is upvoted the arrow changes color immediately. However there is a grace period for one to edit one's vote decision (oops! voted by mistake?). Is the upvote action processed immediately or does is o...
{ "language": "en", "url": "https://stackoverflow.com/questions/4714181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get releases for golang/go with go-github Learning Go and try to get the release list of golang/go with go-github. Here is my code: package main import ( "github.com/google/go-github/github" "fmt" ) func main() { client := github.NewClient(nil) opt := &github.ListOptions{Page: 2, PerPage: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34100738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't insert any values in Judy I'm getting strange behavior with Judy Array. The documentation just says you can use it like an usual PHP array. But whatever I do it seems to me that it won't store any information. For example if I do this: $this->_history = new Judy(Judy::STRING_TO_MIXED); $this->_history['test'] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19482950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Associative table many on many with varying level of entity specificity I have the need to associate a message or a group of messages with a display or a group of displays. A message has a type, and a display has a type and a location ( for example, a city) I would like to associate a message or all messages of a ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/44624803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Apple Catalyst support iPhone There are many resources and tutorials mentioning iPad and/or iOS being compatible with Apple's Catalyst framework, So, the same source-code runs on Mac OS X as well. But does Catalyst support iPhone? (Please tell me your personal experience to clarify this, and not that the name o...
{ "language": "en", "url": "https://stackoverflow.com/questions/66150433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selectize.js destroy() method changes select value I'm using selectize.js in my project. What I need to do is clone part of the form (with selectized elements) and append it to the end of the form. I've decided to destroy selectized elements before cloning, and after appending new subform initialize selectize again....
{ "language": "en", "url": "https://stackoverflow.com/questions/27911184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Debug Dockerized Flask app in VSCode not breaking on breakpoints I followed this tutorial to set up debug in my VSCode. My launch.json file is below. { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go....
{ "language": "en", "url": "https://stackoverflow.com/questions/73328360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use geometry manager grid inside . which already has slaves managed by pack I found the code below on the net, and I tried to adapt it to my personal needs in my code but I have as error: tkinter.TclError: cannot use geometry manager grid inside . which already has slaves managed by pack. Here is the code I f...
{ "language": "en", "url": "https://stackoverflow.com/questions/55799607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assigning colors to a d3.js bar chart? I'm trying to create a color-coded bar chart using d3. I am SO CLOSE. Here's my bl.ocks chart: http://bl.ocks.org/sconnors37/b99070b055f125c9dff1/1cb53954be3f20e3c4492066eccd749b5cf04bbe What I'm trying to do is assign color values based on the "teams" field in my .tsv file. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/28946525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Material-UI CardContent has a 3px Bottom Padding Note: I already looked into this question: Cant remove padding-bottom from Card Content in Material UI But the accepted answer did not fix my issue. I am using the Material UI React Library attempting to recreate the below image: I am completely new to using the Mate...
{ "language": "en", "url": "https://stackoverflow.com/questions/54263946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exception when adding new method in a working Service using gRPC-Web and protobuf-net I am getting the following exception: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: The type initializer for 'DefaultProxyCache1' threw an exception. System...
{ "language": "en", "url": "https://stackoverflow.com/questions/62732593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the input data structure for HERMES toolbox for EEG connectivity analysis? I wanted to use HERMES for connectivity analysis of my EEG dataset which includes 32 subjects and 40 trials for each subject. There are two conditions/classes. I do not know how my data should be defined to be known by HERMES! Could y...
{ "language": "en", "url": "https://stackoverflow.com/questions/34895301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error installing PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56 on Magento 1.9.2.4 I'm getting the following error and have no idea why. All my extensions are properly installed to not effect any code code. Any ideas? sudo sh ./PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh ./PATCH_SUPEE-9767_CE_1.9.3.0_v...
{ "language": "en", "url": "https://stackoverflow.com/questions/44478570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Tools to determine video orientation I receive videos from different devices and want to encode them using the correct orientation. I've seen some of examples of how to determine the orientation of a video from a iPhone. With exiftool and mediainfo I can indeed tell if an iPhone video has to be rotated. However, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/9807857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: assign process id to an asynchronous request tornado I would like to create consistent logs so that I can compute statistics on each tornado request, I have a request as below: @tornado.web.asynchronous def post(self): try: process_id = uuid.uuid4() logging.info("Incoming request (process_id:...
{ "language": "en", "url": "https://stackoverflow.com/questions/29365861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: executing samtools in terminal: "command not found", but it is installed I have samtools installed, and I have used it before on my computer. I am trying to get it to work now, but when I type in samtools in terminal (mac os), it returns "command not found". I have navigated into my samtools folder too and it is sti...
{ "language": "en", "url": "https://stackoverflow.com/questions/63889019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strange behaviour in Material datepicker I'm trying to use materialize date picker (http://materializecss.com/forms.html). With that, I want to popup the date picker when I click on an icon. I have implemented two implementations where the only difference between the two is putting an alert('clicked') with the code....
{ "language": "en", "url": "https://stackoverflow.com/questions/29832007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: VBA define property in a variable I am new to the forum, and also new to VBA (only started learning it a week ago). Is it possible to define a property in a variable? I have a line that looks kind of like this: Cells(i, j).Formula = "=" & .Cells(i, j).Address(External:=True, RowAbsolute:=False, ColumnAbsolute:=False...
{ "language": "en", "url": "https://stackoverflow.com/questions/27605146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to build lighter version of opencv_java3 for android? I'm following these lines to build OpenCV's libraries for Android. Usage Linux: $ export ANDROID_NDK=/absolute/path/to/the/android-ndk $ mkdir build && cd build $ cmake -DCMAKE_TOOLCHAIN_FILE=path/to/the/android.toolchain.cmake .. $ make -j8 The built libope...
{ "language": "en", "url": "https://stackoverflow.com/questions/41983647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Outlook + Perl + Win32::Ole: How do you select calendar entries sorted by date? Current code opens up an Outlook Calendar database as follow: my $outlook = Win32::OLE->GetActiveObject('Outlook.Application') || Win32::OLE->new('Outlook.Application', 'Quit'); my $namespace = $outlook->GetNamespace("MAPI"); ## only f...
{ "language": "en", "url": "https://stackoverflow.com/questions/78916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compress a size of 1024*1024*1024*4 sparse array I have a sparse array which is size of 1024 * 1024 * 1024 * 4. This array's item is byte. So the memory for the array is 4G. It is a sparse array, that is, non-zero item only about 600M. Hopefully, a storage structure can be proposed to compress the sparse arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/40449996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: GCDWebServer always aborts on options check I started using GCDWebServer version 3.1 in an app last year, and this line in the addHandlerWithMatchBlock method of GCDWebServer.m always caused the system to abort immediately: GWS_DCHECK(_options == nil); I ended up just changing it to this to avoid the problem: GWS_D...
{ "language": "en", "url": "https://stackoverflow.com/questions/37195995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sql Group by datetime I have a MySql table : +--------------------+----------------+ | datetime | energy | +--------------------+----------------+ | 2010-06-15 10:00:00| 1| | 2010-06-15 10:15:00| 3| | 2010-06-15 10:30:00| 6| | 2010-06-15 10:45:00| ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44302509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dyamically Assign JSON Property by Depth I would like to assign a variable on a json object by layers of depth. For Example: veryDeepTree[branch][branch][branch][branch] = value would be achieved by executing the function: assignByDepth(4, value, branch) A: One way you can do this is by using a recursive functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/43947109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Error Eclipse Project library see my screen : http://it.tinypic.com/r/xpa240/8 I can not fix these errors. It seems that it does not generate the class R. I've tried everything! Clean the project, Install all tools help me thanks A: The R class is generated automatically by the Android Eclipse plugin when it can. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26282161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integer array of resource ids returns 0 I have a set of resource ids stored in an array. This is accessed inside the recycler view to populate an image view. The problem is when I access the array, all values returned is 0. // arrays.xml <array name="array_category_icons"> <item>@drawable/autumn</item> <item...
{ "language": "en", "url": "https://stackoverflow.com/questions/43307243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Saving the current data before updating the form in Django I would like to create a history of changes in one of my models. That every time I will update it, the current data will be saved to a different table and at the same time, the new data enters to another table. How will I be able to do that? I saw examples a...
{ "language": "en", "url": "https://stackoverflow.com/questions/31850849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update ProgressBar with respect to downloaded data while downloading text data from web using Asynctask in android I want to show progressbar wrt to downloaded data from the web. Whether I have to create dynamically or have to reference by Id by creating it in xml.I am a little bit confused. Here is my code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28791405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: App crashes with storage exception,while dealing with images in firebase storage Following is my piece of code. this code runs in a loop for many images and images are shown( the whole code runs as expected). and suddenly app crashes with this error. Error:: StorageException: StorageException has occurred. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41198011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot access a disposed Object C# I am having a hard time. I am new to this. Can someone help me with this. Every time I call the _clientSocket.Close(); I got an error message. Cannot access a disposed object. Object name: System.net.Sockets.Socket There's no error in my code. It can run smooth but every time I...
{ "language": "en", "url": "https://stackoverflow.com/questions/52043648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change default value for Job Activity Monitor Is there a way for me to programmatically (some config table, I'm hoping) change the default value in the Auto Refresh setting to 5 seconds instead of 60, and to set the Auto Refresh to ON? I need a way to make this a permanent setting - hopefully so that it applies to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/34929065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running an axios.get inside a map function is returning a promise I have a React application where I get a list of books' ids from my DB and I display them using these IDs to get the information from the GoogleBooks API. So I'm mapping through my props and for each book, I'll go for the API using the axios.get(). My...
{ "language": "en", "url": "https://stackoverflow.com/questions/57893376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git subtree push failed for behind its remote counterpart I have a github repository and wanted to make a mockup live with my domain. Since the index.html is located inside a folder named "development" (but not directly in the root), what I did was a. Create another github repo called "USERNAME.github.io" b. Add the...
{ "language": "en", "url": "https://stackoverflow.com/questions/37269796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logic behind HTML5 Placeholder I am working with a form. Each input field name is identified by its Placeholder. My form working fine in Chrome and Mozilla but fail in IE7 and IE8 because these browser does not support Placeholder attributes of HTML5. My form is divided into 4 parts. When user fills the first part a...
{ "language": "en", "url": "https://stackoverflow.com/questions/17990024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending emails from outlook with Python not working I have been running some code for a while which automates some emails using win32com.client. All has been working for months but today I am getting an error. import win32com.client olMailItem = 0 obj = win32com.client.Dispatch("Outlook.Application") newMail = obj....
{ "language": "en", "url": "https://stackoverflow.com/questions/58267574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't find resource for bundle java.util I have tow properties files : config-app.properties config-dev.properties and i try to read from the fist witch read also from the second like that : the java code: String smtpHostName = ResourceBundle.getBundle("config-app").getString("smtp.host.name"); config-app.propertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/25853512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: guild.icon & guild.iconURL() not working in embed thumbnail I want to set guild icon as the thumbnail of embed but neither guild.icon nor guild.iconURL() work bot.on('message', message => { if(message.author.bot) return; if(message.channel.name === 'verify') { if(message.content === '!verify') { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61479351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: semantic versioning Gradle plugin I am looking for a good gradle plugin that might help me manage my versioning better, since I have been relying on custom tasks and manually updating. What are the go-to gradle plugins? I tried looking around on plugins.gradle.com, but there are frankly a ton of different plugins th...
{ "language": "en", "url": "https://stackoverflow.com/questions/70268346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mobile ci-cd pipeline on jenkins for flutter apps On Windows Machine while building flutter build apk on jenkins fails archieving the build apk */.*apk some one could me help me on this please? Need and guidance on that to rectify the problems on
{ "language": "en", "url": "https://stackoverflow.com/questions/74401501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RESTful web services on JBoss WildFly 13 works from browser & curl but not from Unit tests - 404 error I have an Application deployed on JBoss WildFly 13.0.0.Final as an EAR running on EE8 on macOS High Sierra 10.13.6. All the methods work fine when called from the Applications web pages. I can ping successfully 'My...
{ "language": "en", "url": "https://stackoverflow.com/questions/52006939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter Products by Distribution Center Quantity Channel advisor REST API I am working on a django project in which I am fetching products from Channel Advisor platform using the file export feature. I am using the filter '$filter=ProfileID eq and TotalQuantity gt 0'. https://developer.channeladvisor.com/working-wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/67807386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass text value to another text I want to build a category list scrollview in android studio using java. I having truble to understand how to pass value from TextView to anthor TextView with same value in other activity. activity_first.xml <TextView android:id="@+id/PersonName" android:layout...
{ "language": "en", "url": "https://stackoverflow.com/questions/68248909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print local variables of an OpenMP parallel region in gdb? I'm stuck with debugging local variables inside an OpenMP parallel region. Taking this code in consideration: #include<omp.h> #include<stdio.h> int main(){ int a = 0; #pragma omp parallel shared(a) { int m_a = a + omp_get_thread_num()...
{ "language": "en", "url": "https://stackoverflow.com/questions/55128846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scrolling down to div, while hiding first div, makes the page jump down I've got this JSFiddle The problem is, when I fade out the first div, the page jumps down - so the scrolling is conflicting with the fade out. Can anyone help me? Thank you. $(function(){ setTimeout(function(){ $('html, body') .c...
{ "language": "en", "url": "https://stackoverflow.com/questions/29330669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't login with new LDAP user on Alfresco via CMIS I have an Alfresco Enterprise edition version 5.1.2 running on Java version 1.8.0-65 that uses external LDAP server (OpenLDAP) as a directory server. Alfresco synchronizes with the LDAP server on startup, and is configured with synchronization settings Auto Create ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47792218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sapply() on multiple columns of looped-over named variabled I used the assign() function to create 20 data frames and assign them with content using read.csv() and a for loop like follows data_names=paste0("data_",countries$country) for (i in 1:dim(data_names)[1]) { assign(data_names[i], read.csv(file=files[i]...
{ "language": "en", "url": "https://stackoverflow.com/questions/59181219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write multidimensional vector data to a file in C++ I have a vector of objects obj (of class Holder) with N elements with members like x and y which are also vectors of double type with M elements. I would like to write a text file creating an MxN matrix from this. I have tried lots of different things to no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25974034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing AdvertisingIdClient in Play Services 9.2.1 I added play-services-ads-lite to my project, but apparently it doesn't contain com.google.android.gms.ads.identifier.AdvertisingIdClient. which of the following libraries do I have to include?
{ "language": "en", "url": "https://stackoverflow.com/questions/38662987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating your own TTS function with custom voice? So there are some programs out there that allow you to clone your own voice and use it for TTS, but I want to use this custom TTS within my own code. How would I go about it? I did research some but it's hard to know where to start.
{ "language": "en", "url": "https://stackoverflow.com/questions/74353678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mule HTTP parameter I created a service where you call the mule service via http: <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8086" path="idnum" doc:name="HTTP"/> so if you want to call this service you type: http://localhost:8086/idnum but what i want is for the http to accep...
{ "language": "en", "url": "https://stackoverflow.com/questions/25929687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do multi-language regex for a SPA routing in laravel? im using vue and laravel to do SPA application. in my app im using vue-router in history mode, and its works like magic. to make my SPA work properly even when you refresh a page im using: Route::get('/{vue?}', function() { return view('main'); })-...
{ "language": "en", "url": "https://stackoverflow.com/questions/45880312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mapping Super Keys to Control in xorg.conf? I've been attempting to switch my super and control keys in X on a macbook and have been half successful. I'd like to avoid creating a custom .Xmodmap if possible, as there is a temporary 100% cpu bug that pops up every time the custom map is loaded. After some diging, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14094456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: PHPUnit "no test executed" when I make a coverage report, in Laravel I triying to make a report of a coverage of my tests and I cant because when I execute the follow command: phpunit --coverage-html C:\Users\user\report.html I get the follow error: PHPUnit 3.7.21 by Sebastian Bergmann. Configuration read from C:\x...
{ "language": "en", "url": "https://stackoverflow.com/questions/60528708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Way around getting "ON" value overwritten when writing LEFT JOINs with same column name Whenever I have two tables I want to join where some of the rows will have matches and some won't, I can't figure out how to get around the issue of the column I'm using for the ON condition getting overwritten with '' when it do...
{ "language": "en", "url": "https://stackoverflow.com/questions/33529034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Shortcut for "my_var.condition ? statement : my_var" I have this statement : username.blank? ? firstname : username There is a shortcut or a way to avoid repeating 'username' ? A: As it seems you're using ActiveSupport, there is simple way to do this: username.presence || firstname
{ "language": "en", "url": "https://stackoverflow.com/questions/22683338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Detecting CDROM media removal/insertion in Linux Is there a clean way to detect or receive events when a user inserts or removes a CD on a Linux platform? A: Udev monitors hardware and forwards events to dbus. You just need some dbus listener. A quick check using the dbus-monitor tool shows this in my system: dbus-...
{ "language": "en", "url": "https://stackoverflow.com/questions/5112298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Only arrow functions in eslint? I prefer this: const foo = x => x + 1; to this: function foo(x) { return x + 1; } Is there an eslint rule to enforce this? A: You can use ESLint's built-in no-restricted-syntax rule to disallow the FunctionExpression and FunctionDeclaration AST nodes: { "rules": { "no-re...
{ "language": "en", "url": "https://stackoverflow.com/questions/52669325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Google Maps: KML Icon elements not showing up today, worked last week A simple KML file that maps.google.com displayed properly last week not longer displays the Icon elements. Segments are showing up as before, but no Icons. The Icons are showing up in the detail panel but not on the map. Could Google have updated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10807767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: populating object data from flaskSQLAlchemy into wtfforms fields I'm trying to populate data from User model like username and email into the form so the the admin can update them using the user_id passed in the route to query the user. But i'm doing a custom validation in the form to check if the field didn't chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/58711133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set up and connect to local SQLEXPRESS database using SQL Server Management Studio 2008 r2 and adodbapi For testing purposes, I am attempting to setup a SQL Server database on my local machine and connect to it using adodbapi in Python. I used SQL Server Management Studio 2008 r2 to create a database and table. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13535822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kotlin callbackFlow awaitClose trigger problem when delay I couldn't understand something about callbackFlow. I have two implementation. There is only difference both of them is using delay or any other suspend function which includes delay. When I run 1. implementation, awaitClose block doesn't run but there is no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73501193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vertical Alignment - Foundation 5 - Simple Javascript I've used the technique explained here (js.fiddle link) to achieve vertical alignment for a section on my page. The problem I have is that I would like to re-use this same technique on a different part of my page. At the moment this works, but obviously the heig...
{ "language": "en", "url": "https://stackoverflow.com/questions/20938696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JS Accordion open first tab by default I want to open first tab by default on my accordion. I have been trying different solutions, but nothing worked for me. Here is my JS and HTML: $('.accordion').each(function () { var $accordian = $(this); $accordian.find('.accordion-head').on('click', func...
{ "language": "en", "url": "https://stackoverflow.com/questions/30230134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MVC partialview not showing session variable When I load the edit.cshtml view a Session["Order_Number"] is being set in the controller and passed to the View. For some reason this session variable is not be passed to partialview. Getting error: The name 'ordernumber' does not exist in the current context Edit.csht...
{ "language": "en", "url": "https://stackoverflow.com/questions/27819684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Indeed API search for particular company I am developing a job portal and using the Indeed API. In my request to the Indeed API I am using following parameters to search: $params = array( "q" => $query, "co" => $country, "jt" => $jt, "salary" => $salary, "start" => $start, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37592883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django - inclusion tag In my html, there is a div containing all the comments. I need to restrict the amount of comments to be shown. So, I created an inclusion tag: <div class="past_comments"> {% limit_amount_in_a_page page_nr=page_nr topic_id=topic.id amount=4 %} </div> @register.inclusion_tag('post/comment_b...
{ "language": "en", "url": "https://stackoverflow.com/questions/47166251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript contentEditable of certain classes only I have the following script that makes an HTML page editable document.body.contentEditable = 'true'; document.designMode='on'; I am wanting to only allow my users to edit sections with a class of "edit". Is this possible? A: Yes that's possbile. let el_array = doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/64389650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 2 forms on same page - jquery context I have 2 identical forms on a page both have an id I get the id var parentForm = $(this).closest("form").attr("id"); alert(parentForm); then try and get the vale of the fields based on the context. first_name = $('input[name=first_name]', parentForm).val(); alert(first_name); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32090509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making postgresql query more readable I have the following sql query: SELECT distinct(date(survey_results.created_at)), ROUND( COUNT(*) FILTER (WHERE ( scores#>>'{medic,social,total}' in('high', 'medium'))) OVER(order by date(survey_results.created_at) ) * 1.0 / (CASE (COUNT(*) FILTER (WHERE (s...
{ "language": "en", "url": "https://stackoverflow.com/questions/48404837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Foreign Keys are evil? Sorry for posting under an assumed name but I have to keep it anonymous due to corporate restrictions and generally to protect the innocent. I've been a professional developer for about 18 years and though I'm not a DBA I've worked closely with them over the years and have formed what I feel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22020218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the advantages, disadvantages and example use cases of the different PowerShell module / script types? At the time of this post there are a number different PowerShell module / script types as listed on the offical MSDN page. The page lists Script Modules, Binary Modules, Manifest Modules and Dynamic Module...
{ "language": "en", "url": "https://stackoverflow.com/questions/30423056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jquery Scrolltop to bottom in bootstrap modal dialog I would like to create a button, when click , the modal will appear and then scroll to the bottom : my button code : <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> Launch demo scrolltop to bottom my modal code : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35028560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gmaps4rails not rendering in specified div id I am using Gmaps4Rails (Google Maps for Rails) in Active Admin. Everything well so far except for when I had to add multiple maps on the same show page. gem 'gmaps4rails', '~> 2.1', '>= 2.1.2' I extracted the importing of scripts to an html that I call only one time in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53696296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ServiceStack Custom Registration Validator Issue I want to override the default Registration validator that is enabled when the Registration feature is added. I have added my own CustomRegistrationValidator as per the ServiceStack documentation (basic rules for now, to be expanded later): public class CustomRegistra...
{ "language": "en", "url": "https://stackoverflow.com/questions/24451926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type 'FormGroup | null' is not assignable to type 'AbstractControlLike' with Angular material stepControl <mat-step [editable]="true" [stepControl]="productDetailsFormGroup$ | async"> <ng-template matStepLabel>Product details</ng-template> <ng-template matStepContent> <fetebird...
{ "language": "en", "url": "https://stackoverflow.com/questions/73836098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Some CSS, worked well in dev, does not work in build version In vue.js, Most of css I used works well but some css for example, In Home.vue <template> ... </template> <script> ... </script> <style> h1 {font-size:2.6em;font-weight:bold;color: #848381;} </style> in dev mod, at my notebook, h1 css works well. But when...
{ "language": "en", "url": "https://stackoverflow.com/questions/52350346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: titanium maps user location near annotation Im building an app with titanium and i am creating multiple annotations on a google map. My question is if somehow i can check if user location is inside an annotation and lets say fire an alert. Is this possible? In a similar project with javascript i was creating circles...
{ "language": "en", "url": "https://stackoverflow.com/questions/16569907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I Need to fetch GPO policy attached with the specific GPO and what delegation permissions are linked to the GPO I Need to fetch GPO policy attached with the specific GPO and what delegation permissions are linked to the GPO, for eg we have a delegation tab where we add Machin/ User level permission instead of Authe...
{ "language": "en", "url": "https://stackoverflow.com/questions/73670362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }