input
stringlengths 0
131k
| created_at
stringlengths 26
26
|
---|---|
i have a production kubernetes cluster that uses a hdd storage (external storage array by iscsi) and i was to migrate the pvcs from the hdd storage to a flash storage. i have the target ssd storage ready and configured for iscsi. i'm using a csi driver to auto-provision. the driver is first connecting to the backend storage by iscsi, then creates the mapping on the storage array and creates the pvc if does not exist. my plan is to clone all old pvcs from the old array to the new one, then change the csi config for the new array. my questions are: what do i need to change into storage class? and how can i do this migration online? will the kubernetes hosts map and use the new pvc after a restart or a pod migration to other host? if it's not possible to do it online, what would be the correct procedure to migrate the backend storage offline? i have created a test cluster to try different tests. i tried to use the cloning of the storage arrays to clone the lun where the pvc is located. so i have a new clone on the target storage. next, i will try and change the storage class to point to the new array and restart the pod and see if the new pvc on the flash storage is used. but i'm not very clear on the last past: on how to modify the storage class in order for the kubernetes to see the new lun and identify it correctly. | 2024-02-13 09:34:44.733000 |
i am trying to write a vscode snippet to convert the filename to a unique string so that it can be used in the header's include pragma. for example, if the filename is [CODE] then i want to convert it into [CODE]. to covert filename to all caps, [CODE] to replace all [CODE] and [CODE] to [CODE], [CODE] not able to combine two regexes into a single one! answer : [CODE] reference : <a href="[LINK] snippet - transform and replace filename</a> | 2024-03-20 05:40:01.637000 |
this is probably worth doing. maybe just write a method that filters out cals within 15 degrees of the moon? | 2024-03-31 19:34:38.000000 |
i have a [CODE] element styled with daisyui and opened with showmodal() using a [CODE] (here is tailwind play link ): [CODE] i want my fixed [CODE] in front of the modal. i've used [CODE] for my [CODE], [CODE] for the dialog, but it doesn't work. it works if i use [CODE] instead of [CODE]. any help is much appreciated. | 2024-03-14 16:15:55.217000 |
the idea behind my program is to go through footage, detect and recognize a face that the user provides. however, my program recognizes other peoples faces as well. any idea how i can make it better? i have used haarcascadefrontalfacealt2.xml, and i have provided 10 images of the person to be found, lets say criminal . however, the program wrongly identifies someone else's face as the criminal. providing the code i have used : [CODE] | 2024-03-13 10:37:08.927000 |
my java program used jdbc to run the query [CODE] and it failed to return a result i was expecting. when i ran the same query in sequel pro against the same database, the result was returned. anyone ever see inconsistent behavior when working with queries like this? i confirmed that there is a [CODE] in the [CODE] table which satisfies the conditions of the query ([CODE], [CODE] is [CODE], and [CODE]). i can select for it by its [CODE] and confirm this. i expect that if there is a [CODE] meeting the conditions of the query [CODE] then it will also be returned among the results of the query in my question. actual behavior was that it was not returned when the above query was run in the context of a java program using jdbc. | 2024-03-15 02:34:32.173000 |
i have a [CODE] that pipes into a [CODE] ( [LINK]>) from one library, which provides a sax interface for parsing data. i want to pipe sax stream into a new stream that takes parsed data and performs buffered inserts into a database (using async await). objective is following: get file stream from s3 parse with writable stream from htmlparser2 during parsing push chunks of data to kafka here's what i managed to do without using pipes: [CODE] but it looks like it overflows [CODE] and does not pause the original stream while running writes in [CODE]. i am searching for a method to pipe the [CODE]. as the [CODE] solely triggers event callbacks (ontext, ontag and etc), i'm unsure of how to direct parsed data to another stream through piping. edit: i have added some pauses to the original stream when the [CODE] returns false: [CODE] it seems to work (memory not consuming too much) but it shows lots of warnings: [CODE] | 2024-03-19 15:35:34.473000 |
i'm getting the following error when i attempt to make a graphql query using apollo client in my react frontend from my django/django rest/graphene backend. i have also gotten some cors errors so i have disabled cors on the client with: [CODE] and on the backend with [CODE]. i am able to make the query work just fine in postman and graphiql but not in react. here is my query: [CODE] here is my client: [CODE] here are my django routes: [CODE] here are my backend schema definitions [CODE] can someone point me in the right direction here? i'm at a loss as to why this would work everywhere except in react. :( | 2024-03-10 15:49:02.183000 |
as mentioned in the gcp announcement the gcs soft delete feature should have been activated by gcp. i can already see an increase on the total number of bytes present in the bucket (that match the 7 day default retention). however, i am not able to find any way to disable the feature in the ui or the terraform provider . do you know how to disable this feature for a bucket? i tried looking into the terraform provider as well as the cli docuementation. googling also yielded no result. | 2024-03-05 14:49:35.730000 |
i have a key-value pair collection in groovy, in a jenkins pipeline e.g. [CODE] i'm trying to pass it to a powershell script - [CODE] the above is just an (not working) example, but in the end i want to have a hashtable in powershell that reflect the groovy map that i have. i have no problems passing a single variable to powershell. but i couldn't find a way to do that with a collection. is there a good way to do that, before i start serializing my map to string and then deserializing it on the powershell side? | 2024-02-26 11:02:43.420000 |
in [[CODE]]([LINK] ), statcan ([LINK]) was **down**: - http code: 503 - response time: 23258 ms | 2024-03-31 22:01:55.000000 |
i'm exploring using the cdc resource for our etl. however at one db per client, we have several hundred databases. with the feature still in preview, what attempts/thoughts are there concerning scaling in a multi-tenant environment? recognizing that the cdc feature may not be the best tool at this time, we are trying to reduce our report latency to allow for real-time reporting. | 2024-02-22 19:05:36.850000 |
encountered the same issue. the answer given to you by microsoft support seems very strange and illogical, there can't be any security issue with returning the whole chain. i see that one particular app service of mine returns only its leaf cert, while others happily present the whole chain. maybe support guys were just too lazy to dig deeper. do you remember, was your app service hosted on ase or not? and if it was, on what version of ase? | 2024-02-11 19:16:07.283000 |
we have migrated to spring 3 now as i can see apply method of httpsecurity is deprecated with warning and in java doc it's written to use with() method, so how can i change my apply method to with method i tried to use with method but it takes two argument, one argument configurer i am aware but second argument customer i don't know, so passing null is correct ? [CODE] | 2024-03-13 04:43:08.630000 |
in [[CODE]]([LINK] ), video cdn ($vod_server) was **down**: - http code: 0 - response time: 0 ms | 2024-03-31 09:20:43.000000 |
build failure: [CODE] fails to install on [CODE]: [LINK] [CODE] ![bildschirmfoto vom 2024-04-01 01-56-04]([LINK]) | 2024-03-31 23:58:26.000000 |
you can use the onedit simple trigger to do that. whenever any value is updated in the sheet, this function will automatically be triggered. it will check if the edited value is in the range d2:d14, and if yes, it would blink the corresponding value in the c column to blue or red. [CODE] this really works but i would recommend you to try it out and check the performance once if you are expecting a very large dataset in future. | 2024-03-03 16:37:38.287000 |
you need to replace the whole line with its first 60 characters. [CODE] [CODE] remembers the first 60 characters, [CODE] matches the rest, [CODE] outputs the remembered part. | 2024-03-20 22:07:57.133000 |
i have a simple package that flows data from point a to point b - in the middle is a row count transformation that populates a variable of type [CODE]. after the data flow task, i have a simple execute sql task with an update statement: [CODE] i have mapped my variable as a parameter like so: when i execute the package, the execute sql task (named 'update log') shows success: the variable watch shows that [CODE] is populated correctly: yet the table doesn't update - and there are no errors in the output window: manually executing the [CODE] sql in ssms works fine (replacing ? with the correct value), so it doesn't appear to be a permissions issue. i've tried various iterations of the 'data type' for the parameter mapping, yet nothing works. i've even de-parameterized the [CODE] statement and run it directly in the execute sql task with hardcoded values and it still doesn't work. what am i missing? | 2024-02-22 19:05:55.963000 |
not sure if this helps anyone out, but here is an actual example. please note the answers above are correct... just not specific enough. i added a new 'web reference' by right clicking the project = add = web reference. when prompted, i named it euselfservws and specified the wsdl url. this generated the proxy classes which are stored in a folder named services. to instantiate an instance of the client: var svc = new eautoeuss.performancetest.service.servicesoapclient(servicesoapclient.endpointconfiguration.servicesoap); note the servicesoapclient object requires you to specify whether or not to use servicesoap or servicesoap12. this is an enum. to instantiate an instance with a url: var endpointaddr = new endpointaddress( [LINK] ); var svc = new eautoeuss.performancetest.service.servicesoapclient(servicesoapclient.endpointconfiguration.servicesoap, endpointaddr); | 2024-03-06 17:09:24.683000 |
you can use params to get this done. to set the initial params or props you can use [CODE] like this: [CODE] then you can access the params using the prop [CODE] like this: [CODE] or using the [CODE] hook: [CODE] you can even pass params when you navigate from another screen by passing the to the second argument of [CODE]: [CODE] you can also change the params within the [CODE] component using [CODE] and passing in the new params: [CODE] see more about passing params at [LINK]> although this is the more popular approach, there are other ways to get this done such as passing the [CODE] attribute of [CODE] an inline component, or putting the screen data in an application state. you can chose which approach you want to take, but react navigation params are probably your best option. | 2024-03-06 16:03:50.530000 |
it is the authsecret name i had the same problem but on my .env file i used to have something different than authsecret and when i set it back to auth_secret it works | 2024-03-01 04:47:28.240000 |
background: google announced kotlin as an android official programming language in 2017, giving developers an option of writing applications using a language that combines object-oriented and functional features. aims: the goal of this work is to understand the usage of kotlin features considering four aspects: i) which features are adopted, ii) what is the degree of adoption, iii)when are these features added into android applications for the first time, and iv) how the usage of features evolves along with applications' evolution. method: exploring the source code of 387 android applications, we identify the usage of kotlin features on each version application's version and compute the moment that each feature is used for the first time. finally, we identify the evolution trend that better describes the usage of these features. results: 15 out of 26 features are used on at least 50% of applications. moreover, we found that type inference, lambda and safe call are the most used features. also, we observed that the most used kotlin features are those first included on android applications. finally, we report that the majority of applications tend to add more instances of 24 out of 26 features along with their evolution. {\bf conclusions:} our study generates 7 main findings. we present their implications, which are addressed to developers, researchers and tool builders in order to foster the use of kotlin features to develop android applications. | 2019-07-21 16:52:04.000000 |
software is a great enabler for a number of projects that otherwise would be impossible to perform. such projects include space exploration, weather modeling, genome projects, and many others. it is critical that software aiding these projects does what it is expected to do. in the terminology of software engineering, software that corresponds to requirements, that is does what it is expected to do is called correct. checking the correctness of software has been the focus of a great deal of research in the area of software engineering. practitioners in the field in which software is applied quite often do not assign much value to checking this correctness. yet, as software systems become larger, potentially combined with distributed subsystems written by different authors, such verification becomes even more important. concurrent, distributed systems are prone to dangerous errors due to different speeds of execution of their components such as deadlocks, race conditions, or violation of project-specific properties. this project describes an application of a static analysis method called model checking to verification of a distributed system for the bioinformatics process. in it, we evaluate the efficiency of the model checking approach to the verification of combined processes with an increasing number of concurrently executed steps. we show that our experimental results correspond to analytically derived expectations. we also highlight the importance of static analysis to combined processes in the bioinformatics field. | 2023-02-09 01:01:35.000000 |
i'm build a layout in compose that contains a lazyhorizontalgrid with 2 rows of cards, let's say: [CODE] when i fix it in 2 rows, the lazyhorizontalgrid changes the items height to half of the screen remaining height. in other words, it fills all the remaining height. i placed a aspect ratio to try to limit the height of my items (by limiting the height of lazyhorizontalgrid itself). there will be other elements below the lazyhorizontalgrid. how can i achieve wrap_content behaviour for item's height inside lazyhorizontalgrid? things i tried: use [CODE] - i can't. i need two rows regardless of screen size user [CODE] for [CODE] - no difference at all add [CODE] at [CODE] composable - no difference at all | 2024-03-08 20:45:44.150000 |
the code in the op implements the original version of the euclidean algorithm . the worst case complexity is linear in both parameters. to see this, consider [CODE] being 1 and [CODE] some arbitrary positive integer. in that case, [CODE] iterations must be performed subtracting 1 from [CODE] until [CODE] also becomes 1. thus, in that case the complexity is [CODE]. a symmetric case exists when [CODE] and [CODE] is arbitrary giving complexity [CODE]. having arbitrary positive [CODE] and [CODE], the number of iterations is in all cases less than [CODE]. to see this, notice that after each iteration, [CODE] is strictly less than before the iteration and the algorithm stops at the latest when [CODE] is 1. thus, at most [CODE] iterations are needed. thus, the worst case complexity is [CODE] and if it assumed that [CODE], then this is equal to [CODE]. for completeness, it should be mentioned that when implemented with divisions, the complexity of the euclidean algorithm is [CODE]. | 2024-02-25 10:18:07.937000 |
unfortunately, .scrolldisabled combined with a .fixedsize does not work like it would with a uitextview. instead it completely breaks the text editor. i opened a thread about this in the developer forum . hopefully they fix it soon. | 2024-02-16 17:03:09.607000 |
it is not your stateless widget that is changing the state, it is the getx observer that is doing it. the state of the parent widget is always the same, only what is inside obx() is rebuilt | 2024-03-21 09:32:34.147000 |
clean the cache and delete the pgdg related files and re-install is ok [CODE] | 2024-03-23 02:38:14.857000 |
you can also use data-ad-status=unfilled to manipulate the dom. here's a google article on how to use it ... [LINK]> i'm doing the whole thing with just css ... i've optimized the layout to work best when i just hide the google ad container div. here's my css code snipet. [CODE] head on over to this site if you need to see a live example ... [LINK]> | 2024-02-24 23:04:23.260000 |
this error is occurring because a [CODE] endpoint is just an escape hatch to non-servant request/response processing, and so [CODE], which is servant-specific middleware, has no way of correctly handling a [CODE] endpoint in an api. in more detail, [CODE] uses endpoint-specific [CODE] instances to query the api for supported methods in order to construct a correct [CODE] header in responding to an [CODE] request. it can do this for all the servant endpoints except [CODE], which doesn't have a [CODE] instance. it might be possible to get something to work in your specific case, but my guess is that you don't need a [CODE] endpoint here at all. the examples in the servant cookbook use a [CODE] endpoint to serve static files, but only because they want to use an essentially non-servant handler function ([CODE]) to serve a whole directory. (yes, [CODE] is defined in the [CODE] package, but it's really a non-servant handler. it doesn't really use the servant api or any servant handler facilities. it's just a wrapper around [CODE] from [CODE].) in your case, it sounds like you're just trying to write a plain servant handler [CODE] that is accessing the file directly and collecting its contents in a [CODE], and you want to provide that [CODE] as the content returned in response to the client's [CODE] request. if so, instead of a [CODE] endpoint, you just want a [CODE] endpoint that returns an octet stream, something like: [CODE] and the handler can just return the [CODE]: [CODE] above, i used a lazy [CODE], which is probably best if the files are somewhat large, though you want to take care not to modify a file in place once you've started serving it. strict [CODE]s would work fine, too, especially if the files are small. update: unfortunately, as per your follow up comment, this still doesn't work, and you get an error about [CODE]. the problem is that, as mentioned above, [CODE] uses the [CODE] package, and this package only supports [CODE] endpoints. this is (barely) documented in a comment in the documentation : this is a severe limitation of [CODE] currently, as we only allow the content type to be [CODE]... thus, any routes looking like this will work: [CODE] while routes like [CODE] will fail with an error like [CODE] unfortunately, i think the most reasonable fix is to toss out [CODE] and write your own [CODE] that doesn't depend on [CODE]. this can be done with a [CODE] class with instances for the api types that enumerate all the methods for a given path: [CODE] you can test this out on your api by running things like: [CODE] then, you can write a [CODE] middleware function that constructs the correct [CODE] header based on the [CODE] result for the current request path: [CODE] anyway, here's a complete runnable example based on your original code showing this new [CODE] implementation at work. it hosts a web form at: [CODE] that lets you post a file to: [CODE] and retrieve files by numeric id at: [CODE] the middleware appears work correctly. for example: [CODE] the full example: [CODE] | 2024-03-19 22:19:13.373000 |
many different worldwide initiatives are promoting the transformation from machine dominant manufacturing to digital manufacturing. thus, to achieve a successful transformation to industry 4.0 standard, manufacturing enterprises are required to implement a clear roadmap. however, small and medium manufacturing enterprises (smes) encounter many barriers and difficulties (economical, technical, cultural, etc.) in the implementation of industry 4.0. although several works deal with the incorporation of industry 4.0 technologies in the area of the product and supply chain life cycles, which smes could use as reference, this is not the case for the customer life cycle. thus, we present two contributions that can help the software engineers of those smes to incorporate industry 4.0 technologies in the context of the customer life cycle. the first contribution is a methodology that can help those software engineers in the task of creating new software services, aligned with industry 4.0, that allow to change how customers interact with enterprises and the experiences they have while interacting with them. the methodology details a set of stages that are divided into phases which in turn are made up of activities. it places special emphasis on the incorporation of semantics descriptions and 3d visualization in the implementation of those new services. the second contribution is a system developed for a real manufacturing scenario, using the proposed methodology, which allows to observe the possibilities that this kind of systems can offer to smes in two phases of the customer life cycle: discover & shop, and use & service. | 2024-01-31 08:31:08.000000 |
suggestion: here is a simple implementation sample of attaching a pdf document from a form response to an email using google apps script. [CODE] [CODE] gets the responses from your google form. [CODE] gets the item for the response, and then using [CODE] gets the response answer itself. in this case, using an attachment from the upload file item, it should return the fileid of the attached pdf from your google form. in this test case, i only have 2 items, and did 2 sample submissions. each response is structured as an object within an array, so getting the second response and the second item is indexed by [CODE] in my sample as such: [CODE] output: references: [LINK]> [LINK]> [LINK]> | 2024-02-14 22:31:01.117000 |
can not open docs (too many redirects) | 2024-03-31 13:40:06.000000 |
i have an issue with the [CODE] package my [CODE] version is 9.5.0, and my [CODE] version is 0.70.7. the react version is 18.1.0 i use [CODE] to detect internet reachability and the problem is when i connect with wi-fi, but with no data connection the [CODE] still returns [CODE]. how can i fix it? i tried every listeners and every possible way that i found in the documentation, but i'm not getting a result. can someone help me figure out how to do this? | 2024-02-20 14:12:09.023000 |
i have images and their mask for image segmentation. first time when i run this code it didn't give me such error but now it gives an error even though i restarted and tried again doesn't work. how can i solve this problem. here is the code and it's error.: [CODE] and here is an error: [CODE] | 2024-02-17 18:13:46.390000 |
i'm having trouble with convergence of this r-code translated to python: statsmodels.glm gives correct result [CODE] sklearn gives different [CODE] - is the problem in logscalingpreprocessing because of the nature of ? [CODE] how to make all 3 codes give the same results ?? (correct in glmexample) p.s. alternative -- anyway, my [CODE]-matrix seems to be errorness - how to correct it ? p.p.s. poisson regression to model either for a non-constant 位 , poisson distribution has its variance equal to its mean , as lambda grows large the poisson looks more and more like a normal distribution, to interpret p.p.p.s. glm-course001 , n.b. choice of distribution | 2024-03-21 17:25:51.100000 |
i created a custom [CODE] based on [CODE] i need an instance in a razor page model, which has this constructor: [CODE] however i get an exception when requesting that page: system.invalidoperationexception: unable to resolve service for type 'microsoft.aspnetcore.identity.customidentityerrordescriber' while attempting to activate 'myproject.pages.registermodel'. if i change the ctor to use the default [CODE] type, then it works. interestingly, it is actually an instance of [CODE]! how can i resolve the custom type? must i register it separately (in which case must i somehow deregister the default implementation from the container)? | 2024-03-04 09:40:32.980000 |
i have an issue during uploading a file to google drive. i created a service account , added google drive api to the project, share a folder (that file will be sending) to service account id. i did all these things but i can't upload a file. [CODE] access level for this service account is a contributor. when i tested this solution on free version of google drive (with access editor) everything is working. i am using .net 6 for this. here is my code: [CODE] maybe someone had similar issue and know how to solve it ? | 2024-02-17 19:01:23.407000 |
i want to sort this array but the output is wrong . it sorts not increasing with false . it works when i change the number could someone explain it me? [CODE] [CODE] | 2024-03-02 23:06:51.543000 |
i have a dataset with non english characters with both header and the column data are non english (korean). i had changed the fonts in oracle sql developer to display non english characters but i could see only the column data is displayed in korean language but the column header displays as special character so any solution for this? i tried changing the fonts as well but still issue remains same. nls is set to utf16 and utf 8 the nls settings are also changed | 2024-03-18 09:24:59.337000 |
add the varable for python path window+r - sysdm.cpl ,3 - advance tap - evieronmetal varables new click varable name : cloudsdk_python path : c:\users\aaa\appdata\local\programs\python\python3\python.exe | 2024-02-27 07:39:58.557000 |
i am trying to create a form with rounded inputs. using the docs here i am putting the shape and fill on ion-input vs the now-deprecated usage on ion-item. however, ion-input seemingly wants to square off the left side? no amount of margin or padding seems to update it. is it a bug in ionic or am i doing something wrong? [CODE] | 2024-03-14 13:15:31.133000 |
normally the frontend does fetch requests using [CODE] to [CODE] to load the data without a full page refresh (using php). if the api accepts specific requests (mime-types and/or url-paths) then maybe reverse the logic and route the request to your php api first. other requests then default to an html response. for example: [CODE] if the api only accepts url-paths that follow a specific pattern then this should also be included in the rule (as above). other notes... however, if you were go to your browser and navigate to [CODE], it should return the html page to do html5 routing (using a static page) if you simply navigate to this url in the browser then the browser should be including [CODE] in the [CODE] header. have you examined the [CODE] and [CODE] fields of the logged request that seemingly omitted the [CODE] mime-type from the request? are you sure this is a user's direct request from the browser? and not bots/search engine traffic (although googlebot typically includes [CODE] when crawling)? unless [CODE] is sent in the [CODE] header then you cannot be sure that the ua making the request will be able to handle an html response. if a ua only accepts [CODE] (xml) then strictly speaking it's not going to accept a [CODE] response. (typically browsers send both of these mime-types in the [CODE] header when making an arbitrary request.) if a ua only accepts anything (ie. [CODE]) then that doesn't necessarily mean a [CODE] response is appropriate. typically, i see [CODE] only, for requests to embedded js files. the same applies to requests that include [CODE] only. | 2024-03-08 13:10:10.890000 |
my current file structure is [CODE] now when i try to list the file without extension it using prefix demo it also list the files in folder demo is there a way to just list a single object with demo without fetching files in folder demo also wanted to understand why and how does aws allows same file / folder at same level with same name. azure and other file system gives a conflict error | 2024-03-05 08:40:20.347000 |
i want to write a c++ wrapper class which can be used to handle multiple timer interrupts in parallel. for one interrupt at a time i have a working solution similar to this one: <a href="[LINK] lambda function as microcontroller interrupts handler</a> my wrapper class looks like this: [CODE] my test program looks like this: [CODE] nevertheless, in this case all class instances share the same static value for the instance, which makes it impossible to use this solution for handling multiple timers. any ideas how to adopt it for multiple interrupt handlers in parallel? | 2024-02-20 14:38:07.310000 |
it would be nice to know when link time occurs and display it on the dps chart. | 2024-03-31 03:02:28.000000 |
hi i've got the community edition working ok, and it seems to work as well as the old sourceforge version; however when i try to generate an offline copy of the database (where it generates a self contained html file that includes the encrypted db), it points a new browser window to a subdirectory /dump/ (which doesn't exist in the original build /target/php/ directory. there is a dump.php when run will dump the html code from the root directory, but adjusting the $htmlcontent line in dump.php to point to the clipperz index.html just seems to lead to 'no web page found' errors. i think where i've gone wrong is i've copied across the contents of /target/php/ to /var/www/clipperz and got it running, but perhaps the directory structure is not quite right? (i have to point the browser to /clipperz/beta obviously, but i don't want to mess any relative links in the code by moving the files in /beta/ up to the root directory). any tips? | 2024-03-31 14:22:25.000000 |
upgrade jre resolved the issue . the problem was with the jre and this would never show clearly in the logs. if you face similar errors try with an upgraded jre and check. | 2024-02-16 08:26:16.593000 |