Posts by ALE_ROM • 303 points
21 posts
- 
		-1 votes1 answer24 viewsQ: How to insert an object just after the iteration element in the javascript’s for ofI have a array I need to sweep with the for of javascript and need to check if my current element has the id == 2 If there is, I need to clone it and put it right after the current element. Example:… javascriptasked ALE_ROM 303
- 
		0 votes2 answers39 viewsA: Remove list duplicity with PythonI found a solution: [x for x in consulta_limite if not ([y['conta'] for y in consulta_limite].count(x['conta']) > 1 and not [z['saldo_devedor'] for z in consulta_limite].count(x['saldo_devedor'])… 
- 
		-1 votes2 answers39 viewsQ: Remove list duplicity with PythonI need to remove objects that have the same conta, saldo_devedor, and that the limite be equal to 0. list = [ { 'conta': u'1.3.02', 'saldo_devedor': 999.08, 'limite': 2500.0 }, { 'conta': u'1.3.02',… 
- 
		2 votes1 answer86 viewsQ: PHP 5 deprecated functions for migrating to PHP 7, function @I’m having to migrate an entire project done in PHP 5 to PHP 7, when running a diagnostic tool, it points out that some functions use the @ and are depreciated for example: /** * Creates a copy of a… 
- 
		2 votes1 answer61 viewsQ: Capture with regex certain part of the stringIn this sentence, /comprar/volkswagen/gol/11184529, I’d like to capture if the word exists comprar what comes next without the /, I would like to capture the word volkswagen (but it could be another… 
- 
		1 votes1 answer256 viewsQ: how to remove object from the lodash arrayPeople almost do not use lodash and I am not able to remove an element from the array using remove. example: seat = { x:1, y:2 }; selectedSeats = [{ x:1, y:1 }, { x:1, y:2 }];… javascriptasked ALE_ROM 303
- 
		1 votes0 answers60 viewsQ: Search for registration in Mongo and updateI need some help to make a update in a specific record. Below is the document I want to change. { "_id":"ddc07497-003d-3dff-8f82-24b9b980a568", "date":"2018-04-19T17:14:29.699Z", "messages":[ {… 
- 
		-1 votes1 answer911 viewsQ: Remove object from the current array in foreach?I need to remove from the array the current object being processed: arrai = [{parent:1,dialog_node:2}, {parent:1,dialog_node:3}, {parent:1,dialog_node:4}, {parent:9,dialog_node:1},… javascriptasked ALE_ROM 303
- 
		0 votes1 answer396 viewsQ: Using variables dynamically in VueI would like to know how to use the propriedade of a Objeto to concatenate the string component and become the class name in the v-for My object: data(){ return{ user: {name:""} } } I wish my class… 
- 
		0 votes1 answer290 viewsA: Error Unsupported projection option: $project "code":2,"Codename":"Badvalue"I identified the error, the $filter only works with Aggregate db.getCollection('conversations').aggregate({$match:'watson':true}, but it’s still not filtering right 
- 
		0 votes1 answer290 viewsQ: Error Unsupported projection option: $project "code":2,"Codename":"Badvalue"I’d like to search where I want only the records where watson is equal to true and node-visited is equal to Bem-vindo I was doing it this way db.getCollection('conversations').find({'watson':true},… 
- 
		0 votes1 answer52 viewsA: Component takes props of array type, but the value received is an Observer in Vue.jsSolved, in vdd the problem was in the function call in the component, it mounted the component with the default value passed in the parent component, which initialized with this.valores = [], when… 
- 
		0 votes1 answer52 viewsQ: Component takes props of array type, but the value received is an Observer in Vue.jsI have a problem with my project with Vue. when I pass an array as props to my other component, it even gives a console.log() it prints an Observer, but not the array I passed it. this.values =… 
- 
		0 votes1 answer95 viewsQ: Perform a related table search on Laravel and pageI would like to search all people of a certain class based on the class code using Laravel: And right after paginate, to make a list. Pupil public function turmas() { return… 
- 
		0 votes1 answer54 viewsA: Problems when accessing route in Windows to delete using Vue.jsIt is necessary to put a header. It was like this: this.$http.delete(this.$root.baseUrl + 'user/delete/'+id,{headers:{ 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }})… 
- 
		0 votes1 answer54 viewsQ: Problems when accessing route in Windows to delete using Vue.jsI’m wanting to delete a record, but when accessing the route of the Laravel using the this. $http.delete gives me the error 419 Unknown status Lockable method public function destroy(Request… 
- 
		0 votes0 answers87 viewsQ: Regex to check a stringI’m having trouble creating a regex, I’d like him to identify SP or sp or São paulo, then any other words and again check if you have, outro or Minas gerais(other states), in this sequence, example… 
- 
		1 votes1 answer41 viewsQ: Increment content found by regex and increment with other stringsI need more help with regex, how do I find in a text a certain pattern and include something next to the string you found. EX: "programacao": "11h Abertura – Som Mecânico 12h30 Lino e Orquestra… 
- 
		1 votes1 answer32 viewsQ: Check occurrence in REGEX for php filesIn php, I have to open a system file and check if after occurrence 10 of a char in the case ";" what is the content right after it. example: TPD;62384;P;;;;N;62308;N;;C;N;N;;F;02 what would be the… 
- 
		0 votes1 answer1044 viewsQ: How to trigger Button Onclick event with jqueryI need to hit the button when I click. I did it in jquery in a generic way by passing the parameter of a given button to execute the script to it. <button id="buttonprofissional" type="button"… 
- 
		10 votes3 answers220 viewsQ: What is the { } in the code below? and what is the definition for?$objeto->{'getEndereco' . ucfirst($tipo)}()->getCep();