How can I change a full string name? I'm using Laravel and would I have to do that using an "explode"? Could you help me in order to achieve the situation below? Example: Carlos Marinz Dutra For: DUTRA, Carlos Marinz
I'm using Blazor Server on a ASP.NET Core MVC 3.1 website for some components that need Blazor power. Everything works fine, however, I'm not able to navigate from a Blazor component to an ASP.NET MVC route. For navigation, I've set the following property : [Inject] public NavigationManager NavigationManager { get; set; } When I call NavigationManager.NavigateTo("/games/details/" + gameId, true), I have the following error : Error: System.InvalidOperationException: 'RemoteNavigationManager' has not been initialized. at Microsoft.AspNetCore.Components.NavigationManager.AssertInitialized() at Mi
We migrated from oracle c12 to c19. And now we have simple test case that fails: //arrange string data = new string('x', 5000); var connection = tm.GetConnection(); var createTableCmd = connection.CreateCommand(false); createTableCmd.Text = "CREATE TABLE xx_temp (id NUMBER, text_long NCLOB, text_short NVARCHAR2(2000))"; createTableCmd.ExecuteNonQuery(); //act var insertCmd = connection.CreateCommand(false); insertCmd.Text = "INSERT INTO XX_TEMP (text_long) VALUES (@p1)"; var param = new OracleParameter("@p1", OracleDbType.NClob, data.Length, System.Data.ParameterDirection.Input); param.Value =
Writing a user-manual that is written in chapters, each describing a different aspect of the functions. Some of those functions are ready and closed, some still in development or ready but not described yet. Those have to follow the application menu's order, so often will be inserted somewhere in the middle of the document. A new index by chapters is made, a new alphabetical index as well. Each time the page numbering of the existing chapters is changed as well. That forces me to run a new PDF and a full new paper version. When I could number by chapter, I could offer the two new indexes plus
Suppose I have values in cell A4, A8, A12,......A1600 Now, I am using an IF function to fill those empty cells in Column A. For example, assume it to be, =IF(NOT(MOD(ROW(),4) = 0), 1,) Now, here I used a pretty simple task as example. (But this is not the scenario. I have complex tasks in my mind. I used the example for making it simple). Here, The problem will happen is, it will be A1 - 1 A2 - 1 A3 - 1 A4 - FALSE A5 - 1 ............ ............ A1599 - 1 A1600 - FALSE But my goal is to keep those cells untouched. Such as, when, condition in IF is not met or more specifically IF is in false b
We do have a Scala-Sbt-Project with a lot subprojects. Usually, we call the compile or test task on the root (aggregate). I am searching for a way, how to get an overview for the used time of the tasks for each subproject. Because (especially the tests) are to too slow (4,5 hours), I want to see, which subprojects are so slow. I am interested especially in the compile an test phase. Does anybody have a hint? Is there a hidden functionality in sbt or in scalatest, or is there a good plugin anywhere to find out where all the time got eaten? Would be really nice to have an overview with the used
I'm working on one customer's project in which they are using 20+ Excel reports. These Excel file fetching data from Database. There are multiple VBA macros are written in Excel files to do some manual calculations, filtering of data etc. Also each Excel workbook file contains multiple sheets. And after Excel report gets ready, they send it over an email. Now customer wanted to do all this process in PowerBI. All Excel files with VBA macros should get converted to PowerBI reports. How we can achieve this? How we can add excel VBA macro codes to PowerBI reports ? Did anyone go through the simil
I'm digging here around trying to find a solution, how to merge several OpenApi v3 component definitions in one file. Let's imagine a situation: You decided to split your OpenApi into multiple files in different folders. (see image below) Now you need to combine all your components.v1.yaml into a single schema (i named it blueprint.v1.yaml). Usually, I use swagger-cli to merge all $ref dependencies, but now it's not a case, because I can not refer to the whole components/schemas object list And use it to build a single OpenApi file with all fields filled: info, components, paths and so on with
This function is takes in two arguments, a vector of type Vec<T> and an element of type T, and returns the number of elements that matched the argument and were successfully removed from the vector. The order of the other elements should stay the same. I've added this to the .h file and tried to call this function from a test.cpp file with the lines: int num_ele = remove_matching_elements(v, 22); cout << num_ele << endl; //where v is {11, 22, 33, 11, 55, 33} template <class T> int remove_matching_elements(Vec<T>& v, const T& t) { int counter = 0; int i; for(i = 0; i < v.size(); i++){ if(v[i] =
The Problem: I have a react native project which uses react-native-svg for importing my logos. I created my custom Bottom Tab Bar with react-navigation and it looks like this: So the problem is just I exported my svg when it looks like this in my adobe xd file (just the purple button): So you can see, there is clearly a shadow but not in my project. What am I doing wrong? I use the component like this: import Logo from "../assets/icons/add_icon.svg" And then render it with <Logo /> Here is the svg (btw when I open it with browser it shows the shadow): https://pastebin.com/w9YZysgS Why is there
I have this data where I want to cut out the date, and print everything from the initials to the end. I mapped the initials. 30th Mar 2020 5:53:18 pm Charlie Brown: BJ: Bloomberg Runs 30th Mar 2020 5:53:27 pm Charlie Brown: DS: ICE DATA = INC1018483661 30th Mar 2020 6:42:43 pm Boris Yeltsin: Cortese's ICE logs is for the Bloomberg Runs issue 30th Mar 2020 6:43:28 pm Charlie Brown: yeap 31st Mar 2020 4:11:22 am Ishtar Johnson: VK : RE: XS2018777099 & XS2018777172 - INC1018491954 31st Mar 2020 6:31:17 am Tommy Boy: NW: RE: SABSM 6.125 YTW - INC1018495843 31st Mar 2020 7:26:40 am Tommy Boy: AP: R
I need to change cultures at runtime according to resource files for each culture. Expected User clicks a button that switches from current language to the other language. The texts in the page are refreshed according to resource files for each culture. Actual User clicks a button that switches from current language to the other language. The texts in the page are refreshed according to resource files for each culture. As soon as the user does any action on any component (I have several radio buttons, buttons and checkboxes) the texts go back to what was written in the first time. It's like th
I have an animated SVG file. I tried with those packages. but it' doesn't work. Is there any way to use SVG animated file in Flutter? lottie_flutter fluttie flare_flutter
Using Asterisk as the PBX for a client and they have a situation I can't seem to program my way around. They have taken in a bunch of DDI's to act as an agent for a number of companies - almost like a secretarial type situation. What the client wants is an easy way to transfer this to the intended company (they understand they'll be paying for the outbound leg of the call). They don't want a huge pause while someone looks up the number in an online directory etc. This is a huge use-case for click-to-call but I can't find a way to tie the extension to the workstation of the user easily (that th
I keep getting this while trying to install PyGObject for Python 3.7 in Pycharm. I at first got the error where cl.exe couldn't be found, but I did some research and would that apparently C++ toolkit was missing even though I could locate cl.exe. I reinstalled pip, toolkit, and added cl.exe to PATH, and this new error came up: ERROR: Command errored out with exit status 1 Command: Collecting PyGObject Using cached PyGObject-3.36.0.tar.gz (714 kB) Installing build dependencies: started Installing build dependencies: finished with status 'error' ERROR: Command errored out with exit status 1: com
I am working on a class ex1 which needs one static member variable y. That static member variable is a pointer to an object of class ex2 which has its own constructor and destructor. Now I know how to initialize the variable y by defining it outside the class. But how to call the destructor for variable y? I need to use delete statement, but where to place that statement. I need to call both constructor and destructor of class ex2. An equivalent code of my problem is shown below with the output: #include<iostream> class ex2 { public: int n; ex2(int num) { n = num; std::cout << "Constructor of
I built a power query in Excel that pulls data from the newest file in a shared folder. It is an "OLE DB Query" with an SQL command type (not sure if that is relevant information but thought I would include it.) The file is updated with new data automatacically and is saved out manually (unfortunately, not always using the same naming convention) in the shared folder twice per day (around 9:45AM and 4:30PM). I would like to make the query refresh at those times; however, when I go into the Query Properties under "Usage" and then under "Refresh Control" the only options are: "Enable Background
I have 4 Columns, First is Date type which will be Axis Value (X- Axis), 3 Decimal Type Value (Values Field) which will represent as Line Chart i.e. 3 Lines inside the chart. Problem? When I drag and drop the Decimal Type Value inside the Values Field in Line Chart, it takes as SUM. I already selected Don't Summarize in Column tools tab with Uncategorised as Data Category. The problem is when I click the down arrow in the Values Field, it doesn't shows "Don't Summarize" Option. Now I need my data as it is, no sum no count, nothing. How Can I achieve that?
I'm trying to create some cloud functions to: call Google Directions API using Axios create a document at Firestore based on the API result Return the document reference to my iOS App. (I'm on Blaze plan, pay as you go) I'm having trouble to create the following functions as my Node / JS knowledge is very basic. Could someone please have a quick a look and let me know what I'm missing? Obs.: The code is deploying to firebase with no warnings and erros. I'm pretty sure that the problem is the way that I'm trying to return my callbacks. Thanks in advance EDIT I've made a few changes on the code,
Is there any shorter logic than this to achieve leap year test with fewer conditions? #include <stdio.h> int isleap(int year) { return (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)); } int main() { for (int year = 1600; year <= 2020; year++) { printf("%d: %s\n", year, isleap(year) ? "Leap Year" : "Not a Leap Year"); } return 0; }
I'm trying to add an organization with ldapadd command and I keep getting Inappropriate authentication (48) error. My command - ldapadd -x -D "cn=Directory Administrators,dc=mit,dc=example,dc=com" -W -f my_org.ldif This is what I get - Enter LDAP Password: ldap_bind: Inappropriate authentication (48) This is my ldif file - my_org.ldif dn: cn=em,dc=mit,dc=example,dc=com ou: em objectClass: top objectclass: organizationalunit This is my output for ldapsearch -x -w -D 'cn=Directory Administrators,dc=mit,dc=example,dc=com' -b 'dc=mit,dc=example,dc=com' '(objectclass=*)' # extended LDIF # # LDAPv3
I wanted to create a jenkins job which can list me all jenkins job with it is count of number of builds it has executed. Jenkins API or Groovy may work. Below API provide me list of all build ids for particular job but I'm looking for count for build executed for that job. http://[jenkins_server]/job/[jobname]/api/xml?tree=builds[id] Also I'm refering this : https://stackoverflow.com/a/28039134/12897205 Let me know if I can go for any plugin
Anyone knows what causes this error? Been struggling with this issue since morning. This error just started and prevents fetching from the DB. After researching i found this link but he just says it was an OPTIMISTIC_LOCK and does not specify how to fix it. When i debug, i notice that i fetch some data then the error shows. The data is in the DB and i am struggling. Please assist: The link i found on internet is below: Transaction cannot proceed STATUS_MARKED_ROLLBACK when running on jboss standalone 11:32:39,036 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-38) SQL Err
I'm using polylang on my wordpress page. I want to translate the pages, but keep the blog in only one language. I've used this hook: function turn_blogposts_translation_off( $post_types, $is_settings ) { unset( $post_types['post'] ); return $post_types; } add_filter( 'pll_get_post_types', 'turn_blogposts_translation_off', 10, 2 ); which does disable translations for posts, but if I am viewing my page in the second language, no blog posts are shown, since there are none in that language. How can I show English posts (main language) while viewing the site in other languages?
As per below, I want to create a record into another database remotely which will work when I changed c1 to some string in insert query but when I use c1 object it will through error as per the title. Please note: it's working fine on same remote without @, and using c1 object, tried other solution but no avail, can someone help me with a script for this dbms_lob. And its remote to another remote db insert set define off; Declare c1 clob default ' '; begin dbms_lob.append(c1,chr(10));dbms_lob.append(c1,q'[DOCTYPE]'); Insert into SYSTEM_CONFIG@rtfqa (CONFIG_ID,NAME,VALUE_OLD,TYPE,SUB_TYPE,FROM_
So , i created an azure bastion named "test" under the virtual network "RemoteAccess-Bastion-VN".Under this virtual network i also created a subnet "AzureBastionSubnet" with "/27" range.And when i try to connect my VM through bastion i dont see my bastion , i am asked once again to create a new bastion.I dont know where i am wrong.I think i followed the steps correctly and now i am stuck. I have attached the pic showing how it looks when i try to connect through bastion , it should show the login credentials page but instead it is asking me to create a new bastion. Thank You
I'm using Ionic 4. I want to show a default value in ion-select-option. Option's values come from the server. API works all values show but on click of ion-select. But I want to show the default value. I have already initialized userData.business_type in the constructor. I have updated my question you can see that. when my page load no value shown in ion-select only drop-down button show but when I click on the drop-down button then value shown. But I want to show the first value by default when page visible to the user. Response {"success":1,"service_details":[{"id":"1","name":"Job\/Service",
I'm running tomcat 9 server. My request fails with 502 Gateway Timeout after 15mins of my request.any one know how to increase default time out in apache tomcat 9? or anyother reason behind this?
I'm configuring an entrypoint to be executed after the container is started: COPY entrypoint.sh /entrypoint.sh RUN ["chmod", "+x", "/entrypoint.sh"] ENTRYPOINT exec /entrypoint.sh However, I'm not able to see the output of entrypoint.sh execution when issuing docker-compose up. The only output is: service exited with code 2 The container is killed so I cannot do docker logs <container_id>. I've tried with the docker events command but I don't see any logs related to entrypoint.sh. I know the entrypoint file has an error, but I'd like to see the output of the execution. Any ideas?