query_id
stringlengths
4
64
query_authorID
stringlengths
6
40
query_text
stringlengths
66
72.1k
candidate_id
stringlengths
5
64
candidate_authorID
stringlengths
6
40
candidate_text
stringlengths
9
101k
7cf948c39ac1fb879c4ebcdf0b22f2a7a3d72e53c384846a8d1e7bad0664a3ce
['3e008afc3ba049d3b3e7373291b281d4']
I have build 3 "applications" in Google Sheets, all of them using various scripts for resetting the data and saving the data elsewhere. Each Sheet is associated with 2 or 3 scripts. However, in the Scripts folder I see a multitude of scripts. I would like to organise them e.g. in folders per application. Is there anyway of doing so?
7a102c2ca8adfa088f4ad1aff80dbb0e6d1721b9b861e8136d979374c71c3657
['3e008afc3ba049d3b3e7373291b281d4']
I figured out something crucial: Stand alone scripts CAN be accessed from Drive (https://developers.google.com/apps-script/guides/standalone) Those bound to a Sheet or Document can't (https://developers.google.com/apps-script/guides/bound) And, one needs to Connect Google Apps Scripts to Drive first: Go to Google Drive and click New > More > Connect more apps. When the "Connect apps to Drive" window appears, type "script" into the search box and press Enter. Click Connect next to the listing for Google Apps Script. Now that you've connected the app, you can create a script by selecting New > More > Google Apps Script.
45cf98e2056c1bdba1df0f7d90396e966cf1734ff161e707746e04799b76bd1b
['3e043d941dfb46f092ffd69508097e55']
It's Math was done by me, and I made a mistake in calculation in the foundation plan which led to the problem. Total number of floors are 4, height per floor is 11' and the building is a simple residential house. If column details are needed, I will share that too. Please let me know.
35535b3caa335c5b640c66e7db3faae42d429c3ce95e1d7d93c4186725a48084
['3e043d941dfb46f092ffd69508097e55']
So I figured out how to do this efficiently. What I do is every X minutes write all the data to a stream and delete the data file. This causes the data to not take up so much disc space. Then on application quit I write all that data from the stream to a compressed archive. I end up getting roughly 1 megabyte a minute from the Profiler, rather than 1 gigabyte.
060b35f1c83b138f34e2e575e2d8860eb00d2c26b1ebe73368aa89cec9f05deb
['3e1155512f7d47b7bb5c40bd4358166c']
I am stacked with this error ENOENT: no such file or directory, open 'public/images/name.ext from express-fileupload I know there are lot of the same issue, but for me seems the solution do not work the ones I found here: No such file or directory error when uploading a file using Express-fileupload - Node.js neither this one: ENOENT: no such file or directory .? And I am still getting this error. I am not sure weather it is directory public declaration or mv('directory specification') or file name. Something got to be wrong definitely Here is my project folder structure: enter image description here and here is my app.js file const express = require('express'); const cors = require('cors'); const fileUpload = require('express-fileupload') const passport = require("passport"); const path = require("path"); const {db} = require("./database/db"); const authMiddleware = require('./app/middleware/authMiddleware') const app = express(); // app.use(express.static(path.join(__dirname, "./public/"))); app.use(express.static(__dirname)); // app.use(express.static('public')) // app.use('/public', express.static('public')); // console.log('static path', express.static('public')) app.use(fileUpload()) app.use('/api/asset/:assetId/uploadimage', async(req, res, next) => { const file = req.files.file; console.log('files bs',file) try{ if(file === null){ throw new Error('Not file Specified') } // await file.mv(path.join(__dirname, `public/images/${file.name}`)) // await file.mv('public/image/' + file.name) await file.mv('public/images/' + file.name) res.status(200).json({fileName: file.name, filePath: `/uploads/${file.name}`}); } catch(err){ console.log(err) return res.status(400).send(err.message); } }) You can see the commented code, these are the ways I also tried and they did not work :( and here is the error: node_1 | files bs { node_1 | name: '20191009_122021.jpg', node_1 | data: <Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 48 00 48 00 00 ff e1 02 8a 45 78 69 66 00 00 4d 4d 00 2a 00 00 00 08 00 09 01 0f 00 02 00 00 00 08 00 00 ... 1488306 more bytes>, node_1 | size: 1488356, node_1 | encoding: '7bit', node_1 | tempFilePath: '', node_1 | truncated: false, node_1 | mimetype: 'image/jpeg', node_1 | md5: 'd2855d664bd5e5565a45da1ae06bd1ee', node_1 | mv: [Function: mv] node_1 | } node_1 | [Error: ENOENT: no such file or directory, open 'public/images/20191009_122021.jpg'] { node_1 | errno: -2, node_1 | code: 'ENOENT', node_1 | syscall: 'open', node_1 | path: 'public/images/20191009_122021.jpg' node_1 | } Please help :)
22de067165af79b3b812e413232738544bead4e4a42cdb8de2f38e4e64e2bd46
['3e1155512f7d47b7bb5c40bd4358166c']
UPDATE FOR THOSE WHO HAVE THE UPLOAD FUNCTION NOT IN THE INDEX.JS FILE FOR EXAMPLE IN /APP_NAME/ROUTES OR /APP_NAME/SERVER/SRC/ROUTE/ROUTE.JS (mern_stack version) So in my case I have made upload function in the /app/controllers/ folder My controller file location structure: /my_app_name/server/src/app/controllers/FileUploader.js My root server/index file location: /my_app_name/server/src/app.js in order to specify location for public/images where i want to store my images: /my_app_name/server/src/public/images in the /my_app_name/server/src/app/controllers/FileUploader.js I had to use require('path') and this is how it looks like: const path = require("path"); const addImages = async(req, res, next) => { const file = req.files.file; console.log('files',file) try{ if(file === null){ throw new Error('Not file Specified') } await file.mv(path.join(path.dirname('/app/server/src/'), '/src/public/images/') + file.name) res.status(200).json({fileName: file.name, filePath: `/public/images/${file.name}`}); } catch(err){ console.log(err) return res.status(400).send(err.message); } } explanation for the reason why i had to use path.join() and path.dirname() basically I could not use (path.join(__dirname, "./public/images")) or __dirname in general since it would give me out the path where is my FileUploader.js is, which is /my_app_name/server/src/app/controllers/ and then if i would of added "./public/images" it would of looked into /my_app_name/server/src/app/controllers/public/images Therefore we need to specify the path.dirname() where is your root node folder is in my case it would be path.dirname('/app/server/src/') since i have such sloppy MERN stack structure with docker and the rest you just need to join your dirname with your public/images location which is path.join(path.dirname('/app/server/src/'), '/src/public/images/') so All together it must be await file.mv(path.join(path.dirname('/app/server/src/'), '/src/public/images/') + file.name) (IF YOU HAVE THE SAME SLOPPY MERN STACK STRUCTURE LIKE ME :) ) I hope it helps somebody! Happy geeking ! :)
8964873ce2b4b725bc369e60a452c968542d7809a00d72f14cef0f5c8178e1c4
['3e16cc3a23164ec1876c62b604154278']
Yes, it is a standard DNN module. If the links module doesn't appear as a standard module in your installation, you have an installation problem. Go to your main installation folder. Go to the bin directory and make sure DotNetNuke.Modules.Links.dll is there. Go ahead and replace that with the newest version from http://www.DotNetNuke.com. Then restart your website.
f4952e1d5ba643c313e26e12fefe82c94d34775a595e46ae73d0250266829292
['3e16cc3a23164ec1876c62b604154278']
I'm just wondering what the rationale was for this decision. It seems kind of backwards. It seems to me that you could reduce the number of duplicate questions by allowing members to participate in open questions rather than forcing them to ask duplicate questions. And yes, I know this is a duplicate question. Which proves my point!
6c3b0a419b216d9efd4708e6c16e312ad47a0c60e1f0d6678ce8e87102fb7158
['3e199a7e9e694523a0f81eca930e277f']
I have created the API in my project using ASP.Net Web API and I change name of WeatherForecastController.cs to APIController.cs and chang "launchUrl": "FETL" instead of "launchUrl": "weatherforecast" in launchSettings.json So I can not run my API, but if I back to use default name as WeatherForecastController.cs and "launchUrl": "weatherforecast" in launchSettings.json, so that can be used. Why? And how to solve it? This is the old default of WeatherForecastController.cs and "launchUrl": "weatherforecast" in launchSettings.json "launchUrl": "weatherforecast" in launchSettings.json WeatherForecastController.cs API result And this is what I want to rename, but the result is unavailable. "launchUrl": "FETL" in launchSettings.json APIController.cs API result
fd4d4a03c5c7e7cc6cc1b0c2aa39c79255d0071cb6a3b815447dee09f4bcd5aa
['3e199a7e9e694523a0f81eca930e277f']
I want to download PDF or any other type of file from my API by url, then give it a name (like 1234.pfd) and save it to FileSystem.CacheDirectory, and download its using DownloadFileAsync. I tried debug and see, does it have files in it or am I mistaken? When calling to open it as well Launcher.OpenAsync (for open any file type such as .pdf or .pptx by using its Xamarin.Essential), it goes up to choose what to open with, but when I choose to be my app's pdf viewer, it bounces back to my app itself, won't open the content, or sometimes I get an error unable to identify the file. file name, path want to open
9d2d3248fda43936c038e35b87e6aa7147015f17413053c512852f695cf53086
['3e2246f68cb946059cd4b5facd8c4899']
<?xml version="1.0" encoding="utf-8"?><EmpresaLicenca xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SequenciaFornecedor>522b2266-111111</SequenciaFornecedor><LSTEmpresaCliente><EmpresaClientes><CNPJ>66.444.555/0001-09</CNPJ><NomeCliente>Empresa Teste Cliente</NomeCliente><NomeFantasia>Fantasia Teste</NomeFantasia><InscricaoEstadual>59849849</InscricaoEstadual><DataFundacao>2018-09-24T09:34:39.0922718-03:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>222.555.554-88</CPF><Nome>Felipe da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.0942703-03:00</DataChegada><CondicaoTrabalhador>VistoTemporario</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.0972694-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.0952693-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.0982688-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><CategoriaCNH>B</CategoriaCNH><DataExpedicaoCNH>2018-09-24T09:34:39.0952693-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.0972694-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.0942703-03:00</Data1Habilatacao><LSTMovimentacaoFuncionarios><MovimentacaoFuncionarios><NumeroTrabalhador>5489</NumeroTrabalhador><TempoJornadaTrabalho>6</TempoJornadaTrabalho><DescricaoJornadaTrabalho>T</DescricaoJornadaTrabalho><TipoContratoParcial>1</TipoContratoParcial><NomeFuncao>Analista</NomeFuncao><NomeDepartamento>RH</NomeDepartamento><NumeroMatricula>44448</NumeroMatricula><TipoContratacao>CLT</TipoContratacao><Aposentado>false</Aposentado><PrimeiroEmprego>false</PrimeiroEmprego><RegimePrevidenciario>RGPS</RegimePrevidenciario><CategiaTrabalhador>AgentePublico</CategiaTrabalhador><ItemCategoria>AgentePolitico</ItemCategoria><DataAdmissao>2018-09-24T09:34:39.1052644-03:00</DataAdmissao><TipoAdmissao>1</TipoAdmissao><CondicaoContratacao>1</CondicaoContratacao><RegimeJornada>44</RegimeJornada><NaturezaAtividade>1</NaturezaAtividade><MesDataBaseCategoria>3</MesDataBaseCategoria><DataDemissao>2018-09-24T09:34:39.1052644-03:00</DataDemissao><DemissaoJustaCausa>false</DemissaoJustaCausa><TipoContratoTrabalho>1</TipoContratoTrabalho><ValorRemuneracao>555.55</ValorRemuneracao><UnidadePagamento>1</UnidadePagamento><DescricaoRemuneracao>Salario</DescricaoRemuneracao><Escolaridade>FundamentalCompleto</Escolaridade><CursoTecnico>Tecnico</CursoTecnico><BancoNumero>77</BancoNumero><BancoAgencia>111</BancoAgencia><BancoConta>55555</BancoConta><Dominancia>Domi</Dominancia><Peso>85.55</Peso><Altura>1.80</Altura><Tabagista>Sim</Tabagista><UsoAlcool>Sim</UsoAlcool><UsoDrogasIlicitas>Não</UsoDrogasIlicitas><DeficienciaFisica>false</DeficienciaFisica><DeficienciaVisual>false</DeficienciaVisual><DeficienciaAuditiva>false</DeficienciaAuditiva><DeficienciaMental>false</DeficienciaMental><DeficienciaIntelectual>false</DeficienciaIntelectual><Reabilitado>false</Reabilitado><DataInclusao>2018-09-24T09:34:39.1052644-03:00</DataInclusao></MovimentacaoFuncionarios></LSTMovimentacaoFuncionarios><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail><EMAIL_ADDRESS></EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>333.555.668-89</CPF><Nome>Luis Fellipe</Nome><Sexo>Masculino</Sexo><EstadoCivil>Solteiro</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail><EMAIL_ADDRESS></EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>444.555.554-88</CPF><Nome>João da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail><EMAIL_ADDRESS></EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios></LSTFuncionarios></EmpresaClientes><EmpresaClientes><CNPJ>66.444.555/0001-09</CNPJ><NomeCliente>Empresa Cliente</NomeCliente><NomeFantasia>Fantasia Teste</NomeFantasia><InscricaoEstadual>59849849</InscricaoEstadual><DataFundacao>2018-09-24T09:34:39.110262-03:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>555.555.554-88</CPF><Nome>Jose da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoTemporario</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><CategoriaCNH>B</CategoriaCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail><EMAIL_ADDRESS><PERSON> Cliente</NomeCliente><NomeFantasia><PERSON>-09-24T09:34:39.0922718-03:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>222.555.554-88</CPF><Nome><PERSON>>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.0942703-03:00</DataChegada><CondicaoTrabalhador>VistoTemporario</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.0972694-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.0962696-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.0952693-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.0982688-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><CategoriaCNH>B</CategoriaCNH><DataExpedicaoCNH>2018-09-24T09:34:39.0952693-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.0972694-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.0942703-03:00</Data1Habilatacao><LSTMovimentacaoFuncionarios><MovimentacaoFuncionarios><NumeroTrabalhador>5489</NumeroTrabalhador><TempoJornadaTrabalho>6</TempoJornadaTrabalho><DescricaoJornadaTrabalho>T</DescricaoJornadaTrabalho><TipoContratoParcial>1</TipoContratoParcial><NomeFuncao>Analista</NomeFuncao><NomeDepartamento>RH</NomeDepartamento><NumeroMatricula>44448</NumeroMatricula><TipoContratacao>CLT</TipoContratacao><Aposentado>false</Aposentado><PrimeiroEmprego>false</PrimeiroEmprego><RegimePrevidenciario>RGPS</RegimePrevidenciario><CategiaTrabalhador>AgentePublico</CategiaTrabalhador><ItemCategoria>AgentePolitico</ItemCategoria><DataAdmissao>2018-09-24T09:34:39.1052644-03:00</DataAdmissao><TipoAdmissao>1</TipoAdmissao><CondicaoContratacao>1</CondicaoContratacao><RegimeJornada>44</RegimeJornada><NaturezaAtividade>1</NaturezaAtividade><MesDataBaseCategoria>3</MesDataBaseCategoria><DataDemissao>2018-09-24T09:34:39.1052644-03:00</DataDemissao><DemissaoJustaCausa>false</DemissaoJustaCausa><TipoContratoTrabalho>1</TipoContratoTrabalho><ValorRemuneracao>555.55</ValorRemuneracao><UnidadePagamento>1</UnidadePagamento><DescricaoRemuneracao>Salario</DescricaoRemuneracao><Escolaridade>FundamentalCompleto</Escolaridade><CursoTecnico>Tecnico</CursoTecnico><BancoNumero>77</BancoNumero><BancoAgencia>111</BancoAgencia><BancoConta>55555</BancoConta><Dominancia>Domi</Dominancia><Peso>85.55</Peso><Altura>1.80</Altura><Tabagista>Sim</Tabagista><UsoAlcool>Sim</UsoAlcool><UsoDrogasIlicitas>Não</UsoDrogasIlicitas><DeficienciaFisica>false</DeficienciaFisica><DeficienciaVisual>false</DeficienciaVisual><DeficienciaAuditiva>false</DeficienciaAuditiva><DeficienciaMental>false</DeficienciaMental><DeficienciaIntelectual>false</DeficienciaIntelectual><Reabilitado>false</Reabilitado><DataInclusao>2018-09-24T09:34:39.1052644-03:00</DataInclusao></MovimentacaoFuncionarios></LSTMovimentacaoFuncionarios><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>333.555.668-89</CPF><Nome>Luis Fellipe</Nome><Sexo>Masculino</Sexo><EstadoCivil>Solteiro</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro><PERSON>>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>444.555.554-88</CPF><Nome><PERSON>>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE>4848484844</NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios></LSTFuncionarios></EmpresaClientes><EmpresaClientes><CNPJ>66.444.555/0001-09</CNPJ><NomeCliente>Empresa Cliente</NomeCliente><NomeFantasia><PERSON>-09-24T09:34:39.110262-03:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>555.555.554-88</CPF><Nome><PERSON><PHONE_NUMBER>:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>222.555.554-88</CPF><Nome>Felipe da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataChegada><CondicaoTrabalhador>VistoTemporario</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataExpedicaoRIC><NumeroRNE><PHONE_NUMBER></NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><CategoriaCNH>B</CategoriaCNH><DataExpedicaoCNH>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.<PHONE_NUMBER>:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.<PHONE_NUMBER>:00</Data1Habilatacao><LSTMovimentacaoFuncionarios><MovimentacaoFuncionarios><NumeroTrabalhador>5489</NumeroTrabalhador><TempoJornadaTrabalho>6</TempoJornadaTrabalho><DescricaoJornadaTrabalho>T</DescricaoJornadaTrabalho><TipoContratoParcial>1</TipoContratoParcial><NomeFuncao>Analista</NomeFuncao><NomeDepartamento>RH</NomeDepartamento><NumeroMatricula>44448</NumeroMatricula><TipoContratacao>CLT</TipoContratacao><Aposentado>false</Aposentado><PrimeiroEmprego>false</PrimeiroEmprego><RegimePrevidenciario>RGPS</RegimePrevidenciario><CategiaTrabalhador>AgentePublico</CategiaTrabalhador><ItemCategoria>AgentePolitico</ItemCategoria><DataAdmissao>2018-09-24T09:34:39.1052644-03:00</DataAdmissao><TipoAdmissao>1</TipoAdmissao><CondicaoContratacao>1</CondicaoContratacao><RegimeJornada>44</RegimeJornada><NaturezaAtividade>1</NaturezaAtividade><MesDataBaseCategoria>3</MesDataBaseCategoria><DataDemissao>2018-09-24T09:34:39.1052644-03:00</DataDemissao><DemissaoJustaCausa>false</DemissaoJustaCausa><TipoContratoTrabalho>1</TipoContratoTrabalho><ValorRemuneracao>555.55</ValorRemuneracao><UnidadePagamento>1</UnidadePagamento><DescricaoRemuneracao>Salario</DescricaoRemuneracao><Escolaridade>FundamentalCompleto</Escolaridade><CursoTecnico>Tecnico</CursoTecnico><BancoNumero>77</BancoNumero><BancoAgencia>111</BancoAgencia><BancoConta>55555</BancoConta><Dominancia>Domi</Dominancia><Peso>85.55</Peso><Altura>1.80</Altura><Tabagista>Sim</Tabagista><UsoAlcool>Sim</UsoAlcool><UsoDrogasIlicitas>Não</UsoDrogasIlicitas><DeficienciaFisica>false</DeficienciaFisica><DeficienciaVisual>false</DeficienciaVisual><DeficienciaAuditiva>false</DeficienciaAuditiva><DeficienciaMental>false</DeficienciaMental><DeficienciaIntelectual>false</DeficienciaIntelectual><Reabilitado>false</Reabilitado><DataInclusao>2018-09-24T09:34:39.1052644-03:00</DataInclusao></MovimentacaoFuncionarios></LSTMovimentacaoFuncionarios><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.1012676-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>333.555.668-89</CPF><Nome>Luis Fellipe</Nome><Sexo>Masculino</Sexo><EstadoCivil>Solteiro</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE><PHONE_NUMBER></NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios><Funcionarios><CPF>444.555.554-88</CPF><Nome>João da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoPermanente</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE><PHONE_NUMBER></NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios></LSTFuncionarios></EmpresaClientes><EmpresaClientes><CNPJ>66.444.555/0001-09</CNPJ><NomeCliente>Empresa Cliente</NomeCliente><NomeFantasia>Fantasia Teste</NomeFantasia><InscricaoEstadual>59849849</InscricaoEstadual><DataFundacao>2018-09-24T09:34:39.110262-03:00</DataFundacao><CodigoCNAE>844844</CodigoCNAE><LSTFuncionarios><Funcionarios><CPF>555.555.554-88</CPF><Nome>Jose da Silva</Nome><Sexo>Masculino</Sexo><EstadoCivil>Casado</EstadoCivil><Cor>Branca</Cor><Estrangeiro>false</Estrangeiro><DataChegada>2018-09-24T09:34:39.110262-03:00</DataChegada><CondicaoTrabalhador>VistoTemporario</CondicaoTrabalhador><CasadoBrasileiro>false</CasadoBrasileiro><FilhosBrasil>false</FilhosBrasil><QTDEFilhos>2</QTDEFilhos><InformacoesFilhos>A teste</InformacoesFilhos><NomePai>Fulano</NomePai><NomeMae>Fulana</NomeMae><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><NomePais>Brasil</NomePais><Estado>PR</Estado><Municipio>Londrina</Municipio><NumeroRG>54484141</NumeroRG><OrgaoExpedicaoRG>SSP</OrgaoExpedicaoRG><DataExpedicaoRG>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRG><NumeroCTPS>5448484848484</NumeroCTPS><NumeroSerieCTPS>656</NumeroSerieCTPS><EstadoCTPS>PR</EstadoCTPS><NumeroRIC>4894894</NumeroRIC><OrgaoExpedicaoRIC>Orgão RIC</OrgaoExpedicaoRIC><DataExpedicaoRIC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRIC><NumeroRNE><PHONE_NUMBER></NumeroRNE><OrgaoExpedicaoRNE>Orgao RNE</OrgaoExpedicaoRNE><DataExpedicaoRNE>2018-09-24T09:34:39.110262-03:00</DataExpedicaoRNE><NumeroOC>545985498458</NumeroOC><OrgaoExpedicaoOC>Orgão OC</OrgaoExpedicaoOC><DataExpedicaoOC>2018-09-24T09:34:39.110262-03:00</DataExpedicaoOC><DataValidadeOC>2018-09-24T09:34:39.110262-03:00</DataValidadeOC><NumeroCNH>54664564116</NumeroCNH><EstadoCNH>PR</EstadoCNH><CategoriaCNH>B</CategoriaCNH><DataExpedicaoCNH>2018-09-24T09:34:39.110262-03:00</DataExpedicaoCNH><DataValidadeCNH>2018-09-24T09:34:39.110262-03:00</DataValidadeCNH><Data1Habilatacao>2018-09-24T09:34:39.110262-03:00</Data1Habilatacao><LSTDependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 1</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes><Dependentes><CPF>878844554</CPF><Nome>Filho 2</Nome><DataNascimento>2018-09-24T09:34:39.110262-03:00</DataNascimento><TipoDependente>Filho</TipoDependente><DeducaoIR>true</DeducaoIR><RecebeSalarioFamilia>false</RecebeSalarioFamilia></Dependentes></LSTDependentes><LSTEnderecos><Endereco><TipoEndereco>Rua</TipoEndereco><CEP>54884-155</CEP><Logradouro>Rua Teste</Logradouro><Numero>5555</Numero><Complemento>apt</Complemento><Bairro>Jardim</Bairro><Cidade>Londrina</Cidade><UF>PR</UF><Pais>Brasil</Pais></Endereco></LSTEnderecos><LSTContatos><Telefone><TipoContato>1</TipoContato><DDD>43</DDD><NumeroTelefone>5641545</NumeroTelefone><EMail>Asdd@dff.com</EMail><DescricaoContato>A</DescricaoContato></Telefone></LSTContatos></Funcionarios></LSTFuncionarios></EmpresaClientes></LSTEmpresaCliente></EmpresaLicenca>
3c316cc2b149d407742648e8b4b65a3b293594447b6466cbff28c76fe1f3cbae
['3e2246f68cb946059cd4b5facd8c4899']
"cropped" refers to something you did in the past, whereas the body being in the picture refers to the state of the picture *now*, not as it was before you cropped it. To illustrate why using the present tense is correct, it's equivalent to say: "I cropped the picture so that it *now* contains your entire body". Tenses would have to agree if you said "I cropped and edited the picture". "I cropped and edit the picture." would be incorrect.
cdbb1e493bc96625c0778fe66194f6ff5875fb30c7099cc45e471aa0c5da61c1
['3e23d8fd400e4a478f798063149fab12']
I was following this tutorial for uploading an image.I could n't figure out,how is this checking file file,if the file size exceed,it should an error. Here is the link http://www.htmlgoodies.com/beyond/php/article.php/3877766/Web-Developer-How-To-Upload-Images-Using-PHP.htm Can some one explain,how is this code checking the file size and validating it.
9923057001a2063207619680e1aaad8e085626fa3c24041110c4f8c90e24c32b
['3e23d8fd400e4a478f798063149fab12']
I have two tables named x and y. x table has two columns say _id and name. _id would be primary key, name would be a unique constraint. I'm not familiar with sqlite queries. Should the query be written like this? CREATE TABLE IF NOT EXISTS x ( _id integer primary key autoincrement, name text, unique(name)); y table has three columns _id, xid, and address. _id would be the primary key, xid would be a foreign key, address would be a unique key constraint. CREATE TABLE IF NOT EXISTS y ( _id integer primary key autoincrement, address text, xid references x(_id), unique(address)); If I'm missing or not defining anything correctly, please, correct me. Thanks in advance.
dcc37c013648e40c911154f26d3c5313703b5094d75b55fa1e347bb518bb1144
['3e2952cd57db45ac8881cdbe5c6bfb9c']
I've been googling for ages trying to find information about what object storage is in relation to cloud computing but have been unable to find anything. Can anybody provide any links with succinct overviews of it? Its not the concept of cloud storage in general I'm looking for information on, its specifically object storage, what is object storage and how does it differ from other types of storage.
6af4f9add521ff37dba9564550ab248304310adf05a89aebed7691c88d2e2cf7
['3e2952cd57db45ac8881cdbe5c6bfb9c']
I've been flicking through the book Modern C++ Design by <PERSON> and it seems interesting stuff. However it makes very extensive use of templates and I would like to find out if this should be avoided if using C++ for mobile platform development (Brew MP, WebOS, iOS etc.) due to size considerations. In Symbian OS C++ the standard use of templates is discouraged, the Symbian OS itself uses them but using an idiom known as thin templates where the underlying implementation is done in a C style using void* pointers with a thin template layered on top of this to achieve type safety. The reason they use this idiom as opposed to regular use of templates is specifically to avoid code bloating. So what are opinions (or facts) on the use of templates when developing applications for mobile platforms.
22aaca5f62a2c678f7e64027448c80529b0868854b1422597d887eddb2e574bc
['3e3061eb92614ea98086557c14dd1c33']
I have created a form where 1 customer can be stored multiple times in the database I have also created a 'Find Next' button which is working perfectly but when I make changes in the form and click on the update button the data is updated on the customer which is found first in the database and not the one that I want to update. below is the code to Update button. Private Sub Command106_Click() Dim db As DAO.Database Dim rs As DAO.Recordset Dim pn As Long Set db = CurrentDb() Set rs = db.OpenRecordset("Application", dbOpenDynaset) pn = Me.Text85.Value rs.FindFirst "[Cus_Number] = " & pn rs.Edit rs.Fields("Dec_level1").Value = Me.Dec_level1 rs.Fields("Dec_level2").Value = Me.Dec_level2 rs.Fields("Dec_level3").Value = Me.Dec_level3 rs.Fields("Date1").Value = Me.Date1 rs.Fields("Date2").Value = Me.Date2 rs.Fields("Date3").Value = Me.Date3 rs.Fields("Com_level1").Value = Me.Com_level1 rs.Fields("Com_level2").Value = Me.Com_level2 rs.Fields("Com_level3").Value = Me.Com_level3 rs.Update Me.App_level1 = Null Me.Dec_level1 = Null Me.Com_level1 = Null Me.App_level2 = Null Me.Dec_level2 = Null Me.Com_level2 = Null Me.App_level3 = Null Me.Dec_level3 = Null Me.Com_level3 = Null Me.Date1 = Null Me.Date2 = Null Me.Date3 = Null Me.Text85 = Null End Sub
0b33ae41ecc94bc588d1805979ed252e2b0acccc12c6d3a10cbc55aacb5e4d88
['3e3061eb92614ea98086557c14dd1c33']
I have multiple records with the same customer number and I using Find next method to search for the next record with the customer number is same. my code will only search for the 2nd record and not go for the 3rd or 4th search for the same customer number. below is the code can you please help Private Sub Command114_Click() Dim db As dao.Database Dim rs1 As dao.Recordset Dim pn As Long Set db = CurrentDb() Set rs1 = db.OpenRecordset("Application", dbOpenDynaset) If (Text85 & vbNullString) = vbNullString Then MsgBox "Please enter the Account no/CIF" Else pn = Me.Text85.Value rs1.FindNext "[Cus_Number] = " & pn If rs1.NoMatch Then MsgBox ("Sorry The Accountno/CIF is not found") Else Me.S_No = rs1.Fields("sno").Value Me.Cus_Name = rs1.Fields("Cus_Name").Value Me.App_level1 = rs1.Fields("App_level1").Value Me.App_level2 = rs1.Fields("App_level2").Value Me.App_level3 = rs1.Fields("App_level3").Value Me.Dec_level1 = rs1.Fields("Dec_level1").Value Me.Dec_level2 = rs1.Fields("Dec_level2").Value Me.Dec_level3 = rs1.Fields("Dec_level3").Value Me.Com_level1 = rs1.Fields("Com_level1").Value Me.Com_level2 = rs1.Fields("Com_level2").Value Me.Com_level3 = rs1.Fields("Com_level3").Value Me.Date1 = rs1.Fields("Date1").Value Me.Date2 = rs1.Fields("Date2").Value Me.Date3 = rs1.Fields("Date3").Value End If End If rs1.FindNext "[Cus_Number] = " & pn Set rs1 = Nothing End Sub
69658c17d880bdd97202d6c5b0744804726a455950ccd64df906d69b64b30d36
['3e39f0a93f21431498d60de544f5bc10']
A little riddle: you have six packets of 6, 12, 14, 15, 23 and 29 cards. Some packets have cards of pigs and others packets have cards of foxes. If you remove a packet, the cards of pigs are double than cards of foxes. Which packet you must remove? I need iterate over the packets, delete it from list and create / permute over the possible subgroups to find the correct combination. The following code resolve the problem, but I get repeated successes and I'm sure exist a more efficient and elegant way to write it. Ilustrate me, please! #!/usr/bin/env python3 from itertools import permutations packets = [6, 12, 14, 15, 23, 29] for position, packet in enumerate(packets): hypothesis = list(packets) del(hypothesis[position]) # the next conditional is not really needed, # only use it to save some operations if sum(hypothesis) % 3 == 0: for item in permutations(hypothesis, 5): if sum(item[:2]) * 2 == sum(item[2:]): print(item[:2], "and", item[2:], "removed: ", packets[position])
e23394b236955a121abc66f9e49d09670aa4a26b4a989f3ac22446bf43056202
['3e39f0a93f21431498d60de544f5bc10']
I don't know any package with this name. In debian-like systems, the name of the package is openjdk-6-jre (version 6, obviously)´ Try to find the correct name with: apt-cache search jdk Anyway if the comand: which java don't return any path, probably you don't have installed java. The oracle java is not be in the official repositories and you must donwload it directly from website and not require installation, only need copy the binaries.
063cb3b66ae8223b6af66824c8314a544a20baa78a3fe73d0bc26c56ded6946e
['3e41f239d4304656b8afc2d13006ab4e']
I am having a gridView and the data in the gridView is coming from server. Now I am having some views in it that will show for some rows and will not show for some rows depends on the sever conditions. Ex : I am having a LinearLayout which is having an imageView and 2 TextViews, this layout will be visible only for some rows based on server data. First time it is coming fine but as I scroll down/up, the view of the rows get change. For Ex: Like in the first row If I am not having this LinearLayout and in 2nd or 3rd row this layout is visible, the when I scroll down and then again scroll up, the first row also get that Layout exact same as the last scrolled position. I am using Holder pattern, can you please help me here, I am stuck here. Thank you so much in advanced.
aa80862af2048edb21ae5f2825506eec640b8cb4e31abf853ebca50bf7b760a4
['3e41f239d4304656b8afc2d13006ab4e']
Under this link How to show the last item in the List View when scrolled to get new items dynamically?, someone has posted that "I have a list view in my app which shows 10 items initially, and when i scroll to the bottom, it dynamically adds 10 items every time" Can you please post the code to implement this, as I also need the same in my android app. Thanks in Advance...
0661a7b17ebfbfc1bcce82c277280cb6fe4233e785a0d931009a8a9b4bae2446
['3e4ef451fcc544b582c76987eeac9db4']
I have a dropdown menu that I populate with items from a database. I want to populate text fields with other attributes from the same table I get my dropdown options from. The problem I'm having is retrieving the other attributes, and placing them in the text field. I have written console logs to help me see what my code is doing. At this point, every console log for every function gets returned as if the code is working as it should. The only thing that's not happening is when my code goes to the ajax processing file, it is not getting the data, so when it goes back to the main file, there is no attributes to place in the text fields. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <?php # Perform database query $query = "SELECT * FROM student"; $result = $conn->query($query) or die('Query 1 failed: ' . mysql_error()); ?> <label for="studentSelect">Student Name: </label> <select id="studentSelect"> <option value="0">Please select</option> <?php while ($row = $result->fetch_assoc()) { echo '<option value="' . $row['studentID'] . '" > "' . $row['studentFirstName'] . '" "' . $row['studentLastName'] . '"</option>'; } ?> </select> <div> <label for="element_5_1">First Name</label> <input id="element_5_1" name="element_5_1" class="element text large" type="text"> </div> <div> <span class="floatLeft"> <label for="element_5_3">Last Name</label> <input id="element_5_3" name="element_5_3" class="element text medium" style="width:14em" type="text"> </span> <span style="float:left"> <label for="element_5_4">Major</label> <input id="element_5_4" name="element_5_4" class="element text medium" style="width:4em" type="text"> </select> </span> <span style="float:left"> <label for="element_5_5">Credits Earned</label> <input id="element_5_5" name="element_5_5" class="element text medium" style="width:6em" type="text"> </span> </div> <script type="text/javascript"> function makeAjaxRequest(studentFirstName) { console.log("making request"); $.ajax({ type: "POST", data: { studentFirstName: studentFirstName }, dataType: "json", url: "process_ajax.php", success: function(json) { insertResults(json); console.log("successful post"); }, failure: function (errMsg) { alert(errMsg); } }); } $("#studentSelect").on("change", function() { var id = $(this).val(); if (id === "0") { clearForm(); console.log("cleared form"); } else { makeAjaxRequest(id); } }); function insertResults(json) { $("#element_5_1").val(json["studentFirstName"]); $("#element_5_3").val(json["studentLastName"]); $("#element_5_4").val(json["major"]); $("#element_5_5").val(json["creditsEarned"]); } function clearForm() { console.log("in clearForm"); $("#element_5_1, #element_5_3, #element_5_4, #element_5_5").val(""); } </script> I then have a separate ajax processing file <?php $host = "********.mysql.database.azure.com"; $username = "************"; $password = "*******"; $db_name = "**********"; //Establishes the connection $conn = mysqli_init(); mysqli_real_connect($conn, $host, $username, $password, $db_name, 3306); if (mysqli_connect_errno($conn)) { die('Failed to connect to MySQL: '.mysqli_connect_error()); $studentName = $_POST['studentFirstName']; $query = "SELECT * FROM student"; $result = mysql_query($query) or die('Query 2 failed: ' . mysql_error()); while ($row = mysql_fetch_assoc($result)) { if ($studentName == $row['studentFirstName']){ echo json_encode($row); } } ?> Any help at all is much appreciated!
62b79102c5a91998f44e7a3298f3473dced779c7f345841647ac818946ad9e0b
['3e4ef451fcc544b582c76987eeac9db4']
I'm trying to create a List of objects that I received from an API request. The object is Identifiable. The strange thing is, when I iterate over the titles parameter of the object in a ForEach loop, it prints out the expected results. However, when I change it to a List, it doesn't display anything, and it also doesn't give an error or any other indication something went wrong. What am I missing? Here is my object: struct Item: Identifiable, Decodable { let id = UUID() let title: String? let canonicalURL: String? let unread: Bool? let author: String? init(title: <PERSON>?, canonicalURL: String?, unread: <PERSON>?, author: <PERSON>?){ self.title = title self.canonicalURL = canonicalURL self.unread = true self.author = author } } and here is my view: @ObservedObject var articlesVM = ArticlesViewModel() var body: some View { NavigationView{ ScrollView{ ForEach (articlesVM.entries) { entry in Text(entry.title!) } //THIS WORKS List (articlesVM.entries) { entry in Text(entry.title!) } //THIS DOESNT WORK }.navigationBarTitle("Articles") .navigationBarItems(trailing: Button(action: { print("Fetching Data") self.articlesVM.fetchArticles() }, label: { Text("Fetch Articles") })) } } }
0250a96dd7eaf65a157db56a85a88364e58e8cbae0019894ce46992e526ab5c4
['3e6876bce6e14d599d73fdcd36bb8c51']
It is always a bit hard to judge from a distance, but to me it sounds like <PERSON> should maybe actually be a product manager. I was myself in similar situations in the past and sometimes struggled to implement what others told me to because really I wanted to be in charge of the specs. While I was probably a bit more compliant than <PERSON> in the end and managed to work it out with my managers I was never really happy doing that. So I would seek an open and friendly conversation with <PERSON>, asking him about his career goals and consider moving him into a product manager position or something close.
b2ca2f59b01ccf3562bcf7d88fd1734fa8ee9cfc81c7434c458f6c22b2678125
['3e6876bce6e14d599d73fdcd36bb8c51']
I used the USGS tool provided in the link below the model builder comment that split the multipart feature to 208 single part features (all in one gdb). However, now I am not sure how to get the model builder to automatically roll through all those polygons to convert them to rasters. Can i select the gdb containing all the polygons somehow? It sems I can only select input features that have been loaded onto my map document...
be5d2f316c210b7890927a31dca27b424a181ad47a5b7c04cf0dda85c6be6abd
['3e6f83673761477090d9aa2f05a1487b']
This's my code for reseed all my tables begin declare @tableName nvarchar(max); declare c cursor for select name from sys.tables; open c ; fetch next from c into @tableName ; while (@@FETCH_STATUS=0) begin DBCC CHECKIDENT (@tableName,reseed,0); print @tableName; fetch next from c into @tableName ; end close c; deallocate c; end so the error is Cannot find a table or object with the name "ր翼.㻐槺.욢ै..Ճ...". Check the system catalog. who i can execute it and why i see this error and thanks
8f1dd2f9e0fec01af217eac588c40a03a4ff5bd1ab549f086b47e1113e16fd8c
['3e6f83673761477090d9aa2f05a1487b']
public object GetBuildingInfoByBuildId(int floor_Id) { var result = (from floor in db.Floors join camp in db.Campuses on floor.CampusID equals camp.ID join build in db.Buildings on floor.BuildingID equals build.ID where (floor.ID == floor_Id) select new { Floor = floor.ID, Campus = camp.ID, Building = build.ID, floor.ID, floor.Floor_Name, camp.Campus_Name, build.Building_Name }).ToList(); return result; } or u should to create a new class like this class BuildingInfo { public int FloorId {Set ;get;} public CampusId {Set; get;} public BuildingId {Set ;get; } public sting FloorName {Set; get;} public sting Campus_Name {Set; get;} public sting Building_Name {Set ;get;} } and return the new type and i see that is better like this select new BuildingInfo() { Floor = floor.ID, Campus = camp.ID, Building = build.ID, floor.ID, floor.Floor_Name, camp.Campus_Name, build.Building_Name }).ToList();
b4d736d1a78c8130a5dbe5e7d274327fbbd48279392c69a4073449b3fd9a2bfa
['3e933f73c2b841c7a6d02c9d3705fbb7']
I use Urhosharp to display a 3D model on the Xamarin form, and I want to make the Urhosharp view become transparent so the 3D model can overlay(above) the Xamarin form content. However, it does not work if I set the background color of UrhoSurface to become transparent, and set the "clear color" of Viewport to become transparent. So how to make the background of the Urho3d become transparent? So I can display the Xamarin form content below the 3D model.
dd72727c78ab929aa0cdfaa018463752c53b994440be893fd16f0c912acbff42
['3e933f73c2b841c7a6d02c9d3705fbb7']
Well, there is a way I found that can solve this problem without manually save each parameter. Firstly, by using Animator.parameters (Documentation), we can get all parameters in the Animator. Note that it does not include the value. Animator.parameters is an array of the classAnimatorControllerParameter, which includes a property called AnimatorControllerParameterType type, which is an enum: public enum AnimatorControllerParameterType { Float = 1, Int = 3, Bool = 4, Trigger = 9 } So now, we can simply call the methods such as GetBool, GetFloat in a loop to get all the variable, then use another loop to set them by calling the method such as SetBool and SetFloat
012cd25966d04b83eea3128348c48367172103b00611f234b3543f695337dc1d
['3e93839bca8d47fc8ca8d0270c4c139e']
I need to build a multiplayer card game in AS3 and I want to know the best way to communicate between players. I am currently sending game data into a database and having AS3 call a PHP page every second to query that database and check for updates on player actions. However, I've read somewhere that this is a bad approach, and that the correct way would be to use PHP sockets. So I have a few questions: 1) Using my current method (non-socket), how many simultaneous users would I be able to support if they all queried the database every second for changes to the card deck and player turns. 2) Could someone give an explanation on PHP sockets. It's a new subject for me and I'd like to know their advantages and how they work. I've searched many tutorials but haven't found any recent ones that gave a simple explanation, nor was I able to get any of them to work. 3) What are the prerequisites for using PHP sockets? I only have intermediate experience with PHP and Flash and I am wondering if this project is too advanced for me to handle. I have no other formal programming background (e.g. Software engineering, C++, Java, command line) and I was wondering if this project would be an impossible uphill battle for me. Thanks.
fd4d6841dda5ea6f3bd2638f7e708ad49ed3083bb9078c725424f1fefcbae4da
['3e93839bca8d47fc8ca8d0270c4c139e']
Is Dependency Injection (DI) something that's more important for large enterprise applications with multiple team members? Right now I'm a single developer trying to hack out a small site to see if it gains traction. However, I am not convinced that DI will add value to the code I'm writing, despite overwhelming support by this community. I've spent the last week researching DI and implementing in my code, which is not difficult just time consuming. But I still do not see the benefits in decoupling and unit testing. Instead, it seems to make the code more difficult to understand, take longer to write, and may have performance issues. Before I waste anymore time implementing DI, I am interested in the following issues being addressed. 1) Benefits in Decoupling? I don't see how DI makes code less dependent. Code by its nature needs to depend on each other for it to work. DI just moves this dependency to another area where you don't see it. For example, suppose I had a method that calls on another static method. class User { // Static Dependency // function process_registration() { if(Form<IP_ADDRESS>validate($_POST['email'])) { Message<IP_ADDRESS>send_message("Registration Complete"); } } // Dependency Injection // function __construct($form, $message) { $this->form = $form; $this->message = $message; } function process_registration() { if($this->form->validate($_POST['email'])) { $this-message->send_message("Registration Complete"); } } } DI would not change process_registration's dependency on the Form and Message classes. Even if they were injected into the 'User' class as properties, wouldn't process_registration still depend on its class properties to work? Additionally, if I had a Container that injected the properties into the 'User' class, wouldn't the method also be dependent on Container for instantiating its class? Suppose I refactored 'process_registration' into another class in the future or reused it for a different project. The method will stop working regardless if DI is being used because the same class properties and injection container may not exist. 2) Code Readability? As you can see from the example above, the code required for the process_registration method has now doubled. More than doubled if you consider the Container class I need to modify every time I instantiate a new class, or every time I modified a class method. Aside from that the code is less intuitive now. How are properties such as $database, $form, and $message related to a User? The code is also less elegant. Previously, my static method was !Form<IP_ADDRESS>validate(), two words. Now, it's $this->form->validate(), 30% longer. This affects all my methods I've injected into the class. So now when I look at a page of code it's $this->, $this->, $this-> repeated a hundred times instead of static methods that are immediately descriptive. Instead of $user=new User($user_id); now its ioc<IP_ADDRESS>get('user')->newUser($user_id);. My point is that DI encourages non-PHP standard idiomatic code. 3) Better Performance? Rather than calling a method Just In Time when it is ready to be used, DI encourages instantiation of objects that may never be used (e.g. when validation fails or errors are thrown). This can be a performance issue if those objects have huge libraries and are heavy to load (e.g. PHPExcel). What would be the work around to this? 4) Unit Testing? Is code testing necessary for small to medium sized projects? Right now PHP informs me when there's an error in my code. They're usually pretty easy to pinpoint and fix by checking the error_log. Would this be an issue if I needed to scale up my project in the future? If not, when will DI be necessary for testing purposes? For the above reasons, I have found that it is not necessary to implement DI into my project. However, I am interested in when and where it would be necessary to implement so I can do so appropriately. Please give your own detailed examples and support with reasoning. I am not interested in links to other articles because they can be quite unclear. Thanks in advance!
e7ce10515837c673bd4aa4becbf40fb1063adb73b300278611f2662e98db9f77
['3e93fbd82c7e49d69d46eac58d34d1d0']
As suggested above, you need to unset your background image with document.getElementById('zone').style.backgroundImage= "unset";. in your function it would look like this function undo(){ document.getElementById('zone').style.backgroundImage= "unset"; document.getElementById('zone').style.backgroundColor= "grey"; document.getElementById('zone').innerHTML= "Hover Over"; } Also, i would suggest on using onmouseenter instead of onmouseover since the latter may fire multiple times when hovering an element if you're not careful with your html structure, wich can cause performance issues in bigger functions.
4cc43f0446b2e555837d74e98c5631a36140fac50c2d0d3abddb2a5a781626ee
['3e93fbd82c7e49d69d46eac58d34d1d0']
What i ended up doing was making the funcion async then returning the result of the fulfilled save(). Not sure if this is a good practice or not. router.route('/new') .post( async (req, res) => { const { errors, isValid } = validateTweet(req.body); if (!isValid) { return res.status(400).json(errors); } let tweet = new Tweet({ content: req.body.content, created_by: req.user.id }) User.findById(req.user.id, (err, user) => { if (err) return res.status(400).json(err) user.tweets.push(tweet._id); user.save(); }); tweet = await tweet.save(); return res.status(201).json(tweet); });
14e8f32a6e648486475fd3d606f4b422028cf48119922e57ab3d8c0e08250ebd
['3eb6e301dfee4455bd621c551df4d6e4']
I'm trying to play Youtube Video with the Android Youtube API. I use the YoutubePlayerFragment and add it to a view container. It works well when the view container is visible. Then I tried to make the view container invisible. It stops working and throws an error "YouTube video playback stopped because the player's view is not visible". I'm wondering is there anyway I can play the video with the view invisible?
72b6a34c37cbbcfb566b20a2906e9d31a7514eae2b9d1ebea59c37d748874d66
['3eb6e301dfee4455bd621c551df4d6e4']
By calling PermissionInfo#loadLabel(PackageManager pm), we can get the text description of a permission. Tracing this callsite, it then calls the pm.getText(String packageName, int resId, ApplicationInfo appInfo) to get the translated string for the resId in current device locale. Anyone know ways to get the translated string for resId in another locale? how to tell packageManager to use another locale other than device locale?
20df919eb86be16328ea3d79c91c87945e47ae8f45ce987f70dbab702ce0837a
['3ec2cf07c0414de582b5398ebe602fff']
We process images to extract various features from it. For it we resize the images upfront. Whenever we processed the images in an offline process with a single thread, we never faced any issue. But when we try to process multithreaded the JVM crashes inconsistently. The biggest problem is on a same set of 10K images it processes the entire set a few (2-3) times before crashing and the more memory we give using -Xmx option the more likely hood of it crashing faster ... (For eg : 12 GB it might 30K images before crashing and with 16GB it crashes within 3-4 images) . Server is a 30GB n 8 Core machine ... Monitoring "top" shows memory usage only at 20GB when crash happened though we had given -Xmx24g , so I assume it hasn't got anything to do with memory ... Be most appreciative if anyone can give me some insights of what the problem might be. I assume it's to do with threading, but I don't really know what :( The Message : # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f61cd89e403, pid=31412, tid=140052355012352 # # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libawt.so+0x78403] IntRgbBicubicTransformHelper+0x143 ============ --------------- T H R E A D --------------- Current thread (0x00007f61640a3800): JavaThread "http-8090-81" daemon [_thread_in_native, id=31607, stack(0x00007f607aced000,0x00007f607adee000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x0000000586d22158 Registers: RAX=0xfffffffffffffff0, RBX=0x0000000000000000, RCX=0x0000000000000000, RDX=0x0000000586d22158 RSP=0x00007f607ade6ae8, RBP=0x00007f607ade6b10, RSI=0x0000000000000010, RDI=0x0000000000000010 R8 =0x0000000000000000, R9 =0x00000000080c3592, R10=0x0000000000000001, R11=0x0000000000000000 R12=0x0000000000000000, R13=0x0000000000000000, R14=0x00007f607ade8ce0, R15=0x080c3592b3333358 RIP=0x00007f61cd89e403, EFLAGS=0x0000000000010203, CSGSFS=0x000000000000e033, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Top of Stack: (sp=0x00007f607ade6ae8) 0x00007f607ade6ae8: 00007f61cdad0db8 0000000000000000 0x00007f607ade6af8: 00007f607adeae50 00007f61640a39e8 0x00007f607ade6b08: 00007f60100d6fb0 00007f607adeaee0 0x00007f607ade6b18: 00007f61cd86af78 0000000000000000 0x00007f607ade6b28: 00007f607adeace0 00007f607adead80 0x00007f607ade6b38: 00007f61cdad0db8 00007f607adeae90 0x00007f607ade6b48: 00007f607adeaca0 00007f607adead40 0x00007f607ade6b58: 00007f607ade7130 00007f607ade8ce0 0x00007f607ade6b68: 00007f607adeae90 ffffff807adeae40 0x00007f607ade6b78: 00007f607adeaf38 00007f6000000000 0x00007f607ade6b88: 00007f607adeace0 00007f607adead80 0x00007f607ade6b98: 00007f607adeae20 00007f607adeaea8 0x00007f607ade6ba8: 00007f607adeaea0 00007f607adeae80 0x00007f607ade6bb8: 00007f607adeaf78 00000001c6666666 0x00007f607ade6bc8: 00007f60100d29a0 0000008000000000 0x00007f607ade6bd8: 00007f61cd89e2c0 00007f61cd869900 0x00007f607ade6be8: 419999999999999a 432997b8af8af8b0 0x00007f607ade6bf8: 00007f607ade6cd0 000000000ccccccc 0x00007f607ade6c08: 0000000000000000 0000000000000000 0x00007f607ade6c18: 001997b8af8af8b0 0000000006666666 0x00007f607ade6c28: 000ccbdc57c57c58 0000000006666666 0x00007f607ade6c38: 080c359333333358 0000000006666666 0x00007f607ade6c48: 080c359333333358 00000050f9999991 0x00007f607ade6c58: 000000461cccccbd 0000002800000000 0x00007f607ade6c68: 0000002800000028 ffffff8000000000 0x00007f607ade6c78: 00000000e3333333 0000004d0666665e 0x00007f607ade6c88: 0000005000000080 0e0bc4dc57c57c98 0x00007f607ade6c98: 00000003f999995a 0000008c00000000 0x00007f607ade6ca8: 0000005000000050 0000002800000000 0x00007f607ade6cb8: 0000000006666666 0df22d23a83a83e8 0x00007f607ade6cc8: 0000002800000000 0000008c00000000 0x00007f607ade6cd8: 0000005000000000 0000005000000000 Instructions: (pc=0x00007f61cd89e403) 0x00007f61cd89e3e3: f6 44 23 65 c0 0f af 55 a4 44 01 e7 48 63 ff 48 0x00007f61cd89e3f3: 63 d2 48 03 53 10 43 8d 1c 03 48 63 db 48 01 c2 0x00007f61cd89e403: 8b 04 8a 0d 00 00 00 ff 41 89 06 42 8b 04 aa 0d 0x00007f61cd89e413: 00 00 00 ff 41 89 46 04 8b 04 9a 0d 00 00 00 ff Register to memory mapping: RAX=0xfffffffffffffff0 is an unknown value RBX=0x0000000000000000 is an unknown value RCX=0x0000000000000000 is an unknown value RDX=0x0000000586d22158 is an unallocated location in the heap RSP=0x00007f607ade6ae8 is pointing into the stack for thread: 0x00007f61640a3800 RBP=0x00007f607ade6b10 is pointing into the stack for thread: 0x00007f61640a3800 RSI=0x0000000000000010 is an unknown value RDI=0x0000000000000010 is an unknown value R8 =0x0000000000000000 is an unknown value R9 =0x00000000080c3592 is an unknown value R10=0x0000000000000001 is an unknown value R11=0x0000000000000000 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x0000000000000000 is an unknown value R14=0x00007f607ade8ce0 is pointing into the stack for thread: 0x00007f61640a3800 R15=0x080c3592b3333358 is an unknown value Stack: [0x00007f607aced000,0x00007f607adee000], sp=0x00007f607ade6ae8, free space=998k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libawt.so+0x78403] IntRgbBicubicTransformHelper+0x143 C [libawt.so+0x44f78] Java_sun_java2d_loops_TransformHelper_Transform+0xe08 J 2084 sun.java2d.loops.TransformHelper.Transform(Lsun/java2d/loops/MaskBlit;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Ljava/awt/Composite;Lsun/java2d/pipe/Region;Ljava/awt/geom/AffineTransform;IIIIIIIII[III)V (0 bytes) @ 0x00007f6241682ab3 [0x00007f62416828e0+0x1d3] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 2084 sun.java2d.loops.TransformHelper.Transform(Lsun/java2d/loops/MaskBlit;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Ljava/awt/Composite;Lsun/java2d/pipe/Region;Ljava/awt/geom/AffineTransform;IIIIIIIII[III)V (0 bytes) @ 0x00007f6241682a39 [0x00007f62416828e0+0x159] J 1526 C2 sun.java2d.pipe.DrawImage.renderImageXform(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;Ljava/awt/geom/AffineTransform;IIIIILjava/awt/Color;)V (773 bytes) @ 0x00007f624150bdd4 [0x00007f624150b560+0x874] J 2059 C2 sun.java2d.pipe.ValidatePipe.scaleImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IIIILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z (33 bytes) @ 0x00007f624168651c [0x00007f6241685ea0+0x67c] J 2071 C2 *****************Image.resize(II)V (71 bytes) @ 0x00007f62416963e8 [0x00007f62416961c0+0x228] ..............
065b1128aed877b0fa239ba03354d70f8f3d4fcb680c0e8119f63be713d71921
['3ec2cf07c0414de582b5398ebe602fff']
Is there any way one can find out what the post request parameters are being sent to a website from Firefox ? I tried using HTTPFox plugin, though it shows the request is post, but I want to know the post parameters and their values. Eg : http://www.farfetch.com/shopping/women/dresses-1/items.aspx#ps=2&pv=180&oby=5, when "next" is pressed what is the request call being made ?
32c7c221a25ca8925a89f949b254fa50a9fba9285811d006c2d56587d6a70c23
['3ec4b4a4605f4087a3dbdad8a89b4e3b']
I am doing a shell (in C) for school assignment and I have this problem: I have read the input and have array of words. (like this: {"/bin/ls", "-l", ">", "file"}) And I want to have subarrays with all words between special symbols like '<', '>', '|'. So if my input is /bin/ls -l > f.txt > /usr/bin/wc I want to have: {{"bin/ls", "-l"}, {"f.txt"}, {"usr/bin/wc"}} So that I can easily call execv with the right arguments. Currently I have char***, which I hardly allocate with 3 cycles and then copy from char** to char*** with some not so simple algorithms. Is there any simple way of splitting array of string to array of arrays of strings? (To me it looks like a trivial task to split array to substrings, but C makes it pretty hard for me) Also, I know that I could split the input at these special symbols and then get the arrays between them, but I'm kind of interested how it can be done with splitting the array.
db22248d4dd0bb42192378b01d4f63883bafd0815044b9c89c9e10e0227fa7e1
['3ec4b4a4605f4087a3dbdad8a89b4e3b']
I am trying to write a macro that generates patterns for the core.match macro. (defmacro match2 [state i predecessor] `(match ~[state] [(~(vec (concat (repeat i '_) predecessor '(& r))) :seq)] ~i :else false)) And this works fine if I use it directly with hardcoded predecessor: (match2 ["B"] 0 ["B"]) ; 0 So far everything is fine, but if I try to pass the predecessor using function call: (match2 ["B"] 0 ((fn [] ["B"]))) ; AssertionError Invalid list syntax [] in (fn [] ["B"]) The problem is that because match2 is a macro clojure won't evaluate the function call, and will just pass the form as it is. The unevaluated form then goes to core.match (again unevaluated, because core.match is itself a macro) and core.match throws exception because the form is not correct pattern. How can I force evaluation on macro argument? Or any other workaround? I was hinted that this is usually done with a second macro, but my attempts yielded no good results.
501625893aec25a44551fe34b0ca382f11cc8e52d1a4df93d486cb39163869bb
['3ec9390084274ceda0d5ace23e1f66c0']
I have a problem with Cordova 5.4. When the keyboard shows up, my view is moved up (as is expect), but it also do it to the left. It seems that Cordova try to put the inputs elements on the center of the screen. I only want to move the view up, not to the sides. anyone has this problem and has solved it? I have the adjustResize, and the fullscreen is set to false. Thanks for the help.
c673363626c9c363933fd44adac577b4ad0e261966757c3d9fea8417bc45a000
['3ec9390084274ceda0d5ace23e1f66c0']
I posted this question to the Keycloak mailing list too and the answer was: It is the expected behavior but also a UI issue. You should not have access to that tab when the client is bearer-only. They even create an issue KEYCLOAK-10808 This is similar to what <PERSON> mention. If you want to read all the thread: Mailing list response
7cf0b7e2b7dc1b30c2fa7594e50e4ed465c6e1a38dd204f60d4438d5459d11b5
['3ecd7ce81ac54525ac1c51d5517b9669']
@Servy Right, I'm sure you also read every licence agreement when you install software and every popup message when you login into a service. I think the information should be in a much more visible place. And as to the 10 minutes it's arbitrary, you can write a good question in 5 minutes if it's a short question. So, I disagree.
22715156ec3d9c55d13233fe15c28da71ce750e01e0c2a1afdc86d1ab3f0db00
['3ecd7ce81ac54525ac1c51d5517b9669']
Now that I know where to find it I won't have a problem with it. But I don't think it does a good job of being obvious. And judging by how many new users don't post questions according to the rules, they must have trouble finding it too.
8cfcf1e95944a6e8b237581d07ab914a377cadcf627f4e1b73fac6e0f94bfbf5
['3ef34f2e50ee4cadbeed1a9b326e8c5b']
In you case, yes it is possible. With a simple conditional check you can activate or disable any feature of your app. You didn't mentioned the language you are using to develop the app. However, with an if condition check if platform is android or facebook. If it is android, don't ask for login, if it is facebook, get the user details. Simple, isn't it?
42192c459b96bc01f86a6561c862d2daf214302e00dd9044ad92b25f742592e5
['3ef34f2e50ee4cadbeed1a9b326e8c5b']
Connection pooling works at MySQL server side like this. If persistence connection is enabled into MySQL server config then MySQL keep a connection open and in sleep state after requested client (php script) finises its work and die. When a 2nd request comes with same credential data (Same User Name, Same Password, Same Connection Parameter, Same Database name, Maybe from same IP, I am not sure about the IP) Then MySQL pool the previous connection from sleep state to active state and let the client use the connection. This helps MySQL to save time for initial resource for connection and reduce the total number of connection. So the connection pooling option is actually available at MySQL server side. At PHP code end there is no option. mysql_pconnect() is just a wrapper that inform PHP to not send connection close request signal at the end of script run.
1c4f8a0be0100b1baf509b3a9bdc4ee137d32cdd36725a974ae766d6e0ca0c9c
['3f0e4eb01e964b5b95f8d5819dc5fefc']
I want to display a series of dynamic entries on my webpage.So i have used a for loop in my html5 file using jinja but keep getting this error. Request Method: GET Request URL: http://<IP_ADDRESS>:8000/ Django Version: 2.2.5 Exception Type: TemplateSyntaxError Exception Value: Invalid block tag on line 264: 'endfor'. Did you forget to register or load this tag? Exception Location: D:\anacondapython3\lib\site-packages\django\template\base.py in invalid_block_tag, line 534 Python Executable: D:\anacondapython3\python.exe Python Version: 3.7.4 Python Path: ['E:\\coding\\fyp\\travel', 'D:\\anacondapython3\\python37.zip', 'D:\\anacondapython3\\DLLs', 'D:\\anacondapython3\\lib', 'D:\\anacondapython3', 'D:\\anacondapython3\\lib\\site-packages', 'D:\\anacondapython3\\lib\\site-packages\\win32', 'D:\\anacondapython3\\lib\\site-packages\\win32\\lib', 'D:\\anacondapython3\\lib\\site-packages\\Pythonwin'] Server time: Thu, 26 Mar 2020 12:29:39 +0000 Error during template rendering In template E:\coding\fyp\travel\templates\index.html, error at line 264 Invalid block tag on line 264: 'endfor'. Did you forget to register or load this tag? 254 <div class="destination_image"> 255 <img src="images/destination_1.jpg" alt=""> 256 <div class="spec_offer text-center"><a href="#">Special Offer</a></div> 257 </div> 258 <div class="destination_content"> 259 <div class="destination_title"><a href="destinations.html">{{dest.name}}</a></div> 260 <div class="destination_subtitle"><p>{{dest.dest}}</p></div> 261 <div class="destination_price">{{dest.price}}</div> 262 </div> 263 </div> 264 {% endfor %} 265 266 267 268 </div> 269 </div> 270 </div> 271 </div> 272 </div> 273 274 <!-- Testimonials --> the part i want to make dynamic using for loops look like this: <!-- Destinations --> <div class="destinations" id="destinations"> <div class="container"> <div class="row"> <div class="col text-center"> <div class="section_subtitle">simply amazing places</div> <div class="section_title"><h2>Popular Destinations</h2></div> </div> </div> <div class="row destinations_row"> <div class="col"> <div class="destinations_container item_grid"> <!-- Destination --> {% for dest in dests % } <div class="destination item"> <div class="destination_image"> <img src="images/destination_1.jpg" alt=""> <div class="spec_offer text-center"><a href="#">Special Offer</a></div> </div> <div class="destination_content"> <div class="destination_title"><a href="destinations.html">{{dest.name}}</a></div> <div class="destination_subtitle"><p>{{dest.dest}}</p></div> <div class="destination_price">{{dest.price}}</div> </div> </div> {% endfor %} my views.py:- from django.shortcuts import render from .models import Destination # Create your views here. def cities(request): dest1=Destination() dest1.name='california' dest1.dest='the city that never sleeps' dest1.price=750 dest2=Destination() dest2.name='LA' dest2.dest='the peaceful city' dest2.price=800 dest3=Destination() dest3.name='washington' dest3.dest='the operating city' dest3.price=650 dests=[dest1,dest2,dest3] return render(request,'index.html',{'dests':dests}) my models.py:- from django.db import models # Create your models here. class Destination: id:int name:str img:str dest:str price:int ignore lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
e874190370f01cb521e0b78a52c491fe2bcb920059cea6306d1705db7b024979
['3f0e4eb01e964b5b95f8d5819dc5fefc']
my views.py: def songs(request): object_list=song_thumb.objects.all() paginator = Paginator(song_thumb, 3) page = request.GET.get('page', 1) try: artists = paginator.page(page) except PageNotAnInteger: artists = paginator.page(1) except EmptyPage: artists = paginator.page(paginator.num_pages) return render(request, 'home.html', {'page':page,'artists':artists}) my pagination.html and home.html <div class="pagination"> <span class="step-links"> {% if page.has_previous %} <a href="?page={{ page.previous_page_number }}">Previous</a> {% endif %} <span class="current"> Page {{ page.number }} of {{ page.paginator.num_pages }}. </span> {% if page.has_next %} <a href="?page={{ page.next_page_number }}">Next</a> {% endif %} </span> </div> #home.html <div class="container"> {% include "pagination.html" with page=page_obj %} </div> I am getting a typerror.It shows that object of type 'ModelBase' has no len Tracebacks: Traceback Switch to copy-and-paste view C:\Python38\lib\site-packages\django\core\handlers\exception.py in inner response = get_response(request) … ▶ Local vars C:\Python38\lib\site-packages\django\core\handlers\base.py in _get_response response = self.process_exception_by_middleware(e, request) … ▶ Local vars C:\Python38\lib\site-packages\django\core\handlers\base.py in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) … ▶ Local vars E:\coding\fyp\music\home\views.py in songs artists = paginator.page(page) … ▶ Local vars C:\Python38\lib\site-packages\django\core\paginator.py in page number = self.validate_number(number) … ▶ Local vars C:\Python38\lib\site-packages\django\core\paginator.py in validate_number if number > self.num_pages: … ▶ Local vars C:\Python38\lib\site-packages\django\utils\functional.py in get res = instance.dict[self.name] = self.func(instance) … ▶ Local vars C:\Python38\lib\site-packages\django\core\paginator.py in num_pages if self.count == 0 and not self.allow_empty_first_page: … ▶ Local vars C:\Python38\lib\site-packages\django\utils\functional.py in get res = instance.dict[self.name] = self.func(instance) … ▶ Local vars C:\Python38\lib\site-packages\django\core\paginator.py in count return len(self.object_list) … ▶ Local vars
31ca2f338ad4027fcdce89410029dad2af43e7582175908ed2173c5817785dc7
['3f18dedfb8fb43bbae3f6bf0fdcfd1cf']
"Return Value from List index() The index() method returns the index of the given element in the list. If the element is not found, a ValueError exception is raised. Note: The index() method only returns the first occurrence of the matching element.(https://www.programiz.com/python-programming/methods/list/index)" https://www.geeksforgeeks.org/enumerate-in-python/ import copy a = [1,2,2,6,7] b = copy.deepcopy(a) b.sort(reverse = True) position = [] arr=[] for i in enumerate(b):# a[7, 6, 2, 2, 1] ''' ind val (0, 7) (1, 6) (2, 2) (3, 2) (4, 1) ''' arr.append(i[0]) position=arr[<IP_ADDRESS>-1] ''' a= [1,2,2,6,7] ind=[0,1,2,3,4] reverse ... b= [7,6,2,2,1] ind= [0,1,2,3,4] reverse ... resul=[4,3,2,1] ''' print(position)
c3059c8c18a26a28ab8ae0fa3c8094297e753c8bfde3db173657d6f60a1c6814
['3f18dedfb8fb43bbae3f6bf0fdcfd1cf']
#Change command=save_employee() by command=save_employee. #If one day you need to pass parameters #command=lambda : save_employee(arg) import tkinter as tk import sqlite3 as sl con = sl.connect('nibbles.db') def save_employee(): print(firsNameEnt.get(), middleInitEnt.get(), lastNameEnt.get())#) #Create Window for Employee Entry window = tk.Tk() window.title("Add New Employee") window.columnconfigure([0,1,2,3,4,5],weight=1) window.rowconfigure([0,1,2,3,4,5],weight=1) firstNameLbl = tk.Label(text="First Name") firstNameLbl.grid(row = 0, column = 0, padx=5, pady=5) firsNameEnt = tk.Entry() firsNameEnt.grid(row = 0, column = 1, padx=5, pady=5) middleInitLbl = tk.Label(text = "Middle Initial") middleInitLbl.grid(row = 0, column = 2, padx=5, pady=5) middleInitEnt = tk.Entry() middleInitEnt.grid(row = 0, column = 3, padx=5, pady=5) lastNameLbl = tk.Label(text = "Last Name") lastNameLbl.grid(row = 0, column = 4, padx=5, pady=5) lastNameEnt = tk.Entry() lastNameEnt.grid(row = 0, column = 5, padx=5, pady=5) saveBtn = tk.Button(text="Save", command=save_employee) saveBtn.grid(row = 1, column = 5, padx=5, pady=5,sticky = "se") window.mainloop()''
bf2a462b6b7379fbb75271af5d3404a1ea2c1f6ee05959c95d848d7913546843
['3f1c9300e99c49d9b8f946984b1c5f79']
Really pushing performance to the max with nginx and php5-fpm is an art. It takes really understanding the kind of contents you are serving. For example, I don't see any try_files usage, or any kind of caching in your configuration. Do you know nginx comes with built-in memcache support? You can cache images and html/css, as well as php pages. If you care mostly for clicks, those clicks will still be counted even if displays are not. Put your banners in a tmpfs mount, don't log access_log or error_log, disable modules you don't need in php, use a recent version of mysql, use innodb to reduce table locking, play with the flushing method of innodb to reduce disk writes, increase maximum memory tables in mysql to reduce the creation of temporary files on disk when joins are requested via SQL, etc. Nginx is just one part of a very large and complex formula. I have not even mentioned Kernel params to optimize the TCP Stack and Network Card performance, Swap usage, Memory usage, or gzip compression of HTML/CSS you may be serving via OpenX (If you are). And yes, like others above me mentioned, your settings look excessive and show a lack of understanding of basic optimization concepts. In other words, hire a professional :-)
71468765e6cb3139c3339be919427d71d334ccb1f1d042a989be6de47cefede5
['3f1c9300e99c49d9b8f946984b1c5f79']
This function will take a hex string, and convert it to binary, which is what you want to actually send. the hex representation is for humans to be able to understand what is being sent, but whatever device you are communicating with, will probably need the actual binary values. // Converts a hex representation to binary using strtol() unsigned char *unhex(char *src) { unsigned char *out = malloc(strlen(src)/2); char buf[3] = {0}; unsigned char *dst = out; while (*src) { buf[0] = src[0]; buf[1] = src[1]; *dst = strtol(buf, 0, 16); dst++; src += 2; } return out; }
3b67316c8bc2116c5b33dac36f36c7cdde8becc28f122778cb0a837ce770df75
['3f2795ee5c944f6885c38588cb8e048b']
You can calculate the most common words in PHP like this: function extract_common_words($string, $stop_words, $max_count = 5) { $string = preg_replace('/ss+/i', '', $string); $string = trim($string); // trim the string $string = preg_replace('/[^a-zA-Z -]/', '', $string); // only take alphabet characters, but keep the spaces and dashes too… $string = strtolower($string); // make it lowercase preg_match_all('/\b.*?\b/i', $string, $match_words); $match_words = $match_words[0]; foreach ( $match_words as $key => $item ) { if ( $item == '' || in_array(strtolower($item), $stop_words) || strlen($item) <= 3 ) { unset($match_words[$key]); } } $word_count = str_word_count( implode(" ", $match_words) , 1); $frequency = array_count_values($word_count); arsort($frequency); //arsort($word_count_arr); $keywords = array_slice($frequency, 0, $max_count); return $keywords; }
c615f2bcb2a7c455970916a245f5684cb53a1c24b0950c273ce9dd7a99d713b4
['3f2795ee5c944f6885c38588cb8e048b']
One (of the many) solutions would be to use SciPy: from scipy.io import wavfile # the timestamp to split at (in seconds) split_at_timestamp = 42 # read the file and get the sample rate and data rate, data = wavfile.read('foo.wav') # get the frame to split at split_at_frame = rate * split_at_timestamp # split left_data, right_data = data[:split_at_frame-1], data[split_at_frame:] # split # save the result wavfile.write('foo_left.wav', rate, left_data) wavfile.write('foo_right.wav', rate, right_data)
c386dfafc32a0492b8a34e6c28bd7caab79daa9313dc737462b8a74e4027bdca
['3f290086fedd4b42bcae3e2e53576742']
I've been looking at a miRNA cluster on a genome and I found it three times. The first two are right next to each other and look exactly the same, the third sequences is on a different scaffold of the genome and is both shorter and has a number of mismatches with the first two sequences. Is there a particular name for this? The first two are most likely some sort of gene duplication, but I'm not too sure on what to call the third, Thanks
aed2229514e1292d0bde9314f2699d60f391bed55b1ebc36beaf9d2fa885a873
['3f290086fedd4b42bcae3e2e53576742']
I have a Radio Text Box in a New Form that I want to save the selections to a SharePoint field. I want options to show/hide according to a parameter passed in. For example, if the parameter is something like ...aspx?Group=A then I only show a certain section of the choices through the following code: <xsl:choose> <xsl:when test="$Group = 'A' "> <td> Choose from the right </td> <td><span class="ms-RadioText" title="Choice 1"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 1</label></span></td> <td><span class="ms-RadioText" title="Choice 2"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 2</label></span></td> </xsl:when> <xsl:when test="$Group = 'B' "> <td> Choose from the right </td> <td><span class="ms-RadioText" title="Choice 3"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 3</label></span></td> <td><span class="ms-RadioText" title="Choice 4"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 4</label></span></td> </xsl:when> I'm successful at getting the boxes to appear for the correct parameters, but when the checkboxes and chosen and the item is saved, the choices aren't saved to the item. How do I get the choices to map to the item's Choice field?
9194bca6ebc2f81c001f6089f00700fbe10ce2b1b01aadae6dac0cd3837a7760
['3f2ef6ad731a4aef92379bc88a3ca60d']
I'm curious how to do this `cmd+tab` and then `option`. I'm on Mavericks and it didn't do anything for me, so it could be that it no longer works on this OS. But I'm not clear what you mean by "go on select windows" @Am1rr3zA and @Eimantas, so I might not be doing it right. Please give some more details.
e959079d2f639777aafa58900adea3b2a8b72894ff00c4274ce5a567b4e40c47
['3f2ef6ad731a4aef92379bc88a3ca60d']
Is there a recommended process for reliably connecting a Mac to an iPhone Personal Hotspot network via Wi-Fi? Here is the method that I have been trying: turn on WiFi and Personal Hotspot on iPhone turn on WiFi on Mac This works maybe 25% of the time, and the other 75% of the time the Mac scans the Wi-Fi networks but does not see my iPhone hotstpot network. I keep repeating the above process until it connects. If I connect instead via "Join other Network..." and input my network name, security, and password, that sometimes works, and other times says "No network found." If I connect via USB cable or Bluetooth, that reliably works every time. I tried dropping the network and re-adding it on the Mac, but that didn't help: System Preferences > Network > Wi-Fi > Advanced > Wi-Fi (tab) > Preferred Networks > (select my hotspot network) > ("-") Also, is there a way to force the Mac to rescan the Wi-Fi networks? iPhone: iPhone 6 iOS: 8.3 (up to date as of 11 May 2015) Mac: MacBook Pro Retina 15" (Mid 2012) OS X: Mavericks 10.9.5 (13F1066) (kernel: Darwin 13.4.0)
d4680f879bdbcc5654303f70bbdc86177131c8a1c2fc9de008638c4abbd1af5a
['3f33e99c46a84b2b9c5bb861c5bdb833']
I was running into this issue as well while coding an application for AndroidTV. It seems that horizontal radio group focus simply does not work with dpad, even when nextFocus{direction} is set on views. Fortunately, if you are using the leanback library, you can use BrowseFrameLayout.onFocusSearchListener to manage focus yourself by doing the following: Firstly, make sure your layout and radio group do NOT have focusable or focusableInTouchMode set to true. This will cause the layout/group to receive focus instead of the individual buttons. Wrap your radio group in a BrowseFrameLayout instead of linear layout: <android.support.v17.leanback.widget.BrowseFrameLayout android:id="@+id/browse_frame_layout" android:layout_width="match_parent" android:layout_height="wrap_content"> <RadioGroup android:id="@+id/radio_group" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <RadioButton android:id="@+id/first_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="First Button Text" /> <RadioButton android:id="@+id/second_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Second Button Text" /> </RadioGroup> </android.support.v17.leanback.widget.BrowseFrameLayout> Then in your fragment or activity code, add the following: BrowseFrameLayout.OnFocusSearchListener onFocusSearchListener = new BrowseFrameLayout.OnFocusSearchListener() { @Override public View onFocusSearch(View focused, int direction) { if (focused.getId() == R.id.first_button && direction == View.FOCUS_RIGHT) { return findViewById(R.id.second_button); } else if (focused.getId() == R.id.second_button && direction == View.FOCUS_LEFT) { return findViewById(R.id.first_button); } else if (focused.getId() == R.id.first_button && direction == View.FOCUS_LEFT) { // return null to allow for default focus transition return null; } else { // return focused to avoid focus change return focused; } } }; ((BrowseFrameLayout) findViewById(R.id.browse_frame_layout)).setOnFocusSearchListener(onFocusSearchListener); That's it! As mentioned in the comments in the sample snippet, returning null will allow for the system to handle default focus transition, and returning focused will block focus change (helpful for up/down clicks on horizontal radio group for example). Returning any other view will focus that view. This code can be adjusted for any number/type of views in any direction, so while it can be annoying to implement, it is very useful. This helped me after a lot of frustration, so I hope it helps you!
21427f2169995d736c359344bd757a0faa4a5830a40b9e8a0d294ac78914af4c
['3f33e99c46a84b2b9c5bb861c5bdb833']
I usually use gson for Room TypeConverters. It allows for simple implementation that will work for all object types: public class StringMapConverter { @TypeConverter public static Map<String, String> fromString(String value) { Type mapType = new TypeToken<Map<String, String>>() { }.getType(); return new Gson().fromJson(value, mapType); } @TypeConverter public static String fromStringMap(Map<String, String> map) { Gson gson = new Gson(); return gson.toJson(map); } }
536e7d3a1a729c0a6b19f125445487e819a0bc3742d66a997c4a0d8393674376
['3f33fbb4819441fbb5a473a970c56d3e']
From the example you have given it doesn't look like you are redirecting to a different file, just modifying the querystring parameters. if you are redirecting to a different file (lets call it file2.asp) then try strQS = Request.QueryString If strQS <> "" Then strQS = "?" & strQS strURL = "file2.asp" & strQS Response.Redirect strURL Response.End somewhere at the top of file.asp
32aeff3efd059b1c9bd6a96f2c0c8d41dc10279a707a1b46b36f259a1ad4f41f
['3f33fbb4819441fbb5a473a970c56d3e']
I have a ASP.Net Core 3 razor page, a very simple reset password form, which uses a Compare Data Annotation to validate both inputs are the same, however, it doesn't seem to be working. The Required annotation triggers ok, but the Compare always returns ModelState.Valid == false and "Could not find a property named Password." as the error message. the model is [BindProperty] [Required(ErrorMessage = "Password is required.")] public string Password { get; set; } [BindProperty] [Required(ErrorMessage = "Password is required.")] [Compare(nameof(Password), ErrorMessage = "Passwords don't match")] public string ConfirmPassword { get; set; } and the cshtml is <form method="Post"> <label>New Password</label> <input asp-for="Password" type="Password" > <span asp-validation-for="Password" class="text-danger"></span> <label>Confirm Password</label> <input asp-for="ConfirmPassword" type="Password" > <span asp-validation-for="ConfirmPassword" class="text-danger"></span> <button type="Submit">Reset Password</button> </form> I've paired back the code to the complete minimum and just can't seem to see what the issue is...
9ce488f2bccc8816dd39ec208121c8ee00159dddcaa8a7f8df7eee178de11cd2
['3f736de28ffd402291912535fd55700f']
Im just starting to learn python, so I need some help here. I found this website called Twilio. One of its features is you can program a custom SMS bot. Me and my close friends have a group text. Often, we like to share memes with each other. So my idea is we can add my Twilio number to the group chat, and set up Twilio so when someone says, "Memes please", it will automatically get 5 memes from a website (like http://cleanmemes.com/ or somthing similar), and send them. If its hard to grab memes from a meme website (wich im assuming it is), its fine if i have to provide links to memes. Or <PERSON> i can put a folder on my server filled with memes? What do you think would be easiest? Can someone give me some pointers? Thanks in advance!
73009117db7b5bcf683155c1019c78d6d315a24abc0b3b5fd32aa69f4317ce0f
['3f736de28ffd402291912535fd55700f']
I am trying to put a google+ sign-in button on my website, but I get a 400 error when I try to sign in with it. this is all I get. 400. That’s an error. The requested URL was not found on this server. That’s all we know.the I have the following included in the <head>: <script src="https://apis.google.com/js/platform.js" async defer></script> <meta name="google-signin-client_id" content="620096179377-ula3qjt2s01qqhberlqq470n16kccnh5.apps.googleusercontent.com"> and the following where i wanted the button: <div class="g-signin2" data-onsuccess="onSignIn"></div>
c6c0181d562433b3deb6a977da49bbaab4fdea0c0c05183c3b58aa3395edf81f
['3f81cf9fce12446da40c2f8a6aa89468']
The post In Gen. 4, <PERSON> is “appointed” as another seed “instead of <PERSON>.” What is the ancient interpretation of this appointment? was quickly put on hold with the reason: "Questions about biblical topics but without a specific Bible passage are off-topic as hermeneutical methods cannot be applied when no text is referenced." However, in What texts are open for examination? (meta) (also linked to in comments for explanation) I currently fail to read the the original question was indeed 'in violation' of these site rules. This is not to challenge the site rules or moderator decisions. This is just a request for clarification to help me understand better how this site is supposed to work. In my eyes the original post might have been a little tad on the periphery of the subject, which should have been fine according to e.g. If there are related texts which experts in this field tend to study because the texts are so closely tied to the subject, I would include them as "on topic" for this site. Annotate those texts here, if you must, but err towards being inclusive if the experts here can authoritatively answer the questions posed. Since I do not know what to make of that: are the close reason given and the meta-post in conflict with one another or have I misread the meta-post?
9461ea065d44e9870863d07f8a9dc45d09abb41d11768d3e680fa2e94eb4288e
['3f81cf9fce12446da40c2f8a6aa89468']
The accepted answer works for me but with zsh shell ("terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\zsh.exe"), things are much slower than with bash. I don't know why but using ConEmu's cygwin/msys terminal connector greatly helped: "terminal.integrated.shell.windows": "C:\\conemu\\ConEmu\\conemu-msys2-64.exe", "terminal.integrated.env.windows": { "CHERE_INVOKING": "1", "MSYSTEM": "MINGW64", "MSYS2_PATH_TYPE": "inherit", }, "terminal.integrated.shellArgs.windows": [ "/usr/bin/zsh", "-l", "-i", ],
3afb3363a9f8d82af476d8f395162f882a738a515f70ea4d0a2f6914babc6063
['3f8cd5c7451043ef9500cf97c29c15b8']
I have been to that site and looked at the Uplift Request Form if you scroll to the bottom. This is where it asks me for my application download URLs, which are required. I am not launching the app website until one week before the app launch and the app will not display on the App Store until it is launched. Therefore, I'm not sure how to get more quota before the launch.
d23b173d0b5739e1fc2802fa74b637f7061aa97f18c15b77d79c42a3d7ecfbb7
['3f8cd5c7451043ef9500cf97c29c15b8']
I am the manager of an iOS application that uses Google Places API to find venues near the location of users. The application has not launched yet on the App Store but my analysis give me good reason to believe that the number of requests I am provided (100,000) will not be enough to support a large user base. This is because each time a user opens the app, 20 venues automatically appear nearest the user and then the user can search for venues within a 40 mile radius. I predict that every user will use approximately 40 request each time the app is opened on the users iPhone. If the use the app twice in one day, then each user will use 80 requests per day. This means that only 1,250 users can access the app in one day before I run out of quota (100,000 requests). This app will be used in large city areas so more than 1,250 will use the app. I do not want to launch my app with only 100,000 requests and it seems that I cannot uplift my quota until the app is launched on the App Store because the Uplift Request Form asks for application download URLs and it cannot be downloaded at this time. Is there a way to receive/request more quota before now before the app is launched? Thanks, <PERSON>
1076a3b45703c60d2cb140560f79cb521135267ff84433fe750900621e3aaa0f
['3f930267b9ca48a4a317a8edd45d8fca']
Try following the steps on the guide page. You may have to set the address of your dev server. Configure your app to connect to the local dev server via Wi-Fi Make sure your laptop and your phone are on the same Wi-Fi network. Open your React Native app on your device. You can do this the same way you'd open any other app. You'll see a red screen with an error. This is OK. The following steps will fix that. Open the Developer menu by shaking the device or running adb shell input keyevent 82 from the command line. Go to Dev Settings. Go to Debug server host for device. Type in your machine's IP address and the port of the local dev server (e.g. <IP_ADDRESS>:8081). On Mac, you can find the IP address in System Preferences / Network. On Windows, open the command prompt and type ipconfig to find your machine's IP address (more info). Go back to the Developer menu and select Reload JS.
fe579167f9a3a714212a82885c2962fac45835337bd4ca117abe6232bed77163
['3f930267b9ca48a4a317a8edd45d8fca']
I think Method 3 would be the best, as the helper would only be created once and executed multiple times, on every render call. Whereas in the other cases the helper would be created every time the component is rendered, leading to possible performance problems. Another point in favor of Method 3 is the testability you mentioned.
2c0cc6e8f8a1494e8af6deba8d317d1b02e6077cf9edd204163fdfee7355b854
['3f93c8bcd72244308dfcb39a989ed7a8']
It is because you are fetching only one value for attendence. In this line "String attendanceValue = getAttendanceValue(areq);" you get the attendnce for first employee. But in getAttendanceValue method while (parameters.hasMoreElements()) { String parameterName = parameters.nextElement().toString(); if (parameterName.startsWith("updateattendance")) { return areq.getParameter(parameterName); } } This code just check if its starts with updateattendance which is always satisfied for first record and that value is returned. You can Store record for different employees by checking the suffix you used for making "updateattendance" unique if it is some number then you can store it in the ArrayList with Index as the number after updateattendance. And instead of returning the Strig you can return that ArrayList
055ea5891b5d9bbf94aa9049963116ec0a59c4244fb26e60f553998f4febb0a9
['3f93c8bcd72244308dfcb39a989ed7a8']
Another simple way of doing it is as below. import java.util.HashSet; import java.util.List; import java.util.Set;public class <PERSON> { /** * @param args */ public static void main(String args[]) throws SQLException { System.out.println("Entered Main"); Test(); System.out.println(str); set.addAll(str); System.out.println(set); str.clear(); str.addAll(set); System.out.println(str); } final static List<String> str = new ArrayList<String>(); final static Set<String> set = new HashSet<String>(); public static void Test(){ str.add("A"); str.add("B"); str.add("C"); str.add("C"); str.add("D"); str.add("A"); str.add("B"); str.add("C"); str.add("C"); str.add("D"); str.add("B"); str.add("C"); str.add("B"); str.add("C"); str.add("C"); str.add("D"); str.add("B"); str.add("C"); str.add("C"); str.add("C"); str.add("D"); System.out.println(str); } Test method to populate the list is copied from <PERSON> answer.
673f0e9288b74104947a2a4a4517461b5b0af70ffd205fb2304bceaec11f645a
['3f989e8fb58344268a075cda1a563190']
I'm not entirely sure what happened but it works now. I did these two things: chmod +x pg_backup.sh -- I had already done this, and the script was running in cron, since I could get some output in the logs run dos2unix on the file to transform any CR or CRLF to LF -- I'm not sure how this would solve the issue since I wrote the script in Vim on a Mac
875dd4e7c3f776246d3133765f29e2dc42590f43adc205040b233e15b391f1e9
['3f989e8fb58344268a075cda1a563190']
I cannot comment to Digital Trauma's answer, so I will mention here that the bluetooth key format in MacOs has been altered recently, and the reversion is meanwhile no longer needed. So, when copying the key form MacOs to Linux (step 12), one needs only to transform the letters to uppercase.
476ff1cee1e0aa9186bb298a27b6134ec0c6ad806bcb33c8b706f5a52b211090
['3fa47393d7164538ae7dcb65c17c701b']
the thing is your LBS will be equipped, they will probably have a vice set up to do this. I struggled all weekend once with a cassette - I like to be self-sufficient - and very reluctantly took the wheel to a shop on the Monday, they were able to loosen it straight away.
947e0c19b7a4f5d938dabb49215bfcd4a7348e9797832a4483f681bbd558e053
['3fa47393d7164538ae7dcb65c17c701b']
What you say doesn't really surprise me. Also I'm not a die-hard advocate of buying from my LBS, in fact I avoid mine wherever possible. Nothing wrong with them, just prefer diy. Plus you'd have the same problem if you bought the Scott, the bike would leave the factory with cassette X, and if you wanted cassette Y, I'm sure your LBS would happily swap it out, but they'd still charge you for the part. Changing it yourself is is easy btw, but you'd need a cassette removal tool. Good luck whichever way you jump.
0b99ef4004af403968bee7efe88b5b5db0a847b934d4b47b9b25bc4b8622a30a
['3faf301f0649446d94aa1d6174d3d33c']
I realise this is another basic question sorry, but I can't see where to set the height of a row that is presented in an XPage. I want to be able to set the row to a height of 3 rows (or dynamically adjust if possible). thanks so much.
1494c0a77524dd67192417b3941dfecc7c23dafba62fa3de130ab31483625c14
['3faf301f0649446d94aa1d6174d3d33c']
I have an Xpage with a view within it that displays search results that are based on the values of 6 fields on the xpage (These values are assigned to sessionscope variables when they selected, which drives the view selection when the search button is hit). This all works well, but what I'd like to change is that the view is empty when the xpage is opened initially (before any values are set). Apologies for the simple question, but I haven't touched notes since 2006 and its changed a fair bit since then. Running 8.5.2.
f310dcc0e79b40ccf479b531b6898ba964e72ad98d0fa89c8679caeb902e39d2
['3fbe90949b0f4ccb8e387683d5c67beb']
Nobody expects that all answers will be refreshed after loading new answers. But the "accept mark" is kind of global information now loaded with new answers - and if the accept mark is not reset in the old answers, this newly loaded information *itself* is misleading. I feel this (and only this) shall be corrected. I guess it would be something like one jquery call in AJAX handler - if any of the newly loaded answers is accepted, just reset all previously accepted answers before updating the DOM.
13c53bf71edf3bdb2d45dd4b868f96dabce9f93e3e80ae300a662f626ac65880
['3fbe90949b0f4ccb8e387683d5c67beb']
I see - but isn't it ironic, that its the most appreciated and favourited question ever? Then its becoming more and more clear that the FAQ ignores the community value. Then the FAQ is not something which the community profits from, but artificial document made by some theoretically "QA-thinking" people, ignoring what the community really profits from. When it's fighting most valuated questions ever, then something must be wrong here.
d9f31e803b15199706e08bb7e43bd012e01024a18d5b6a8cffa680329a34a46e
['3fbf1bafdf524d1ca11558b880978ce3']
I'm trying to open a text file and write to the file but when doing so it's not working at all. Here's what I have: changeaddress = [changeaddr1, changeaddr2] address = [address_1, address_2] new_var = [] cur_addr = 0 with open('address.txt','r+') as file: for line in file: if address[cur_addr] in line: line.replace(address[cur_addr], changeaddress[cur_addr]) cur_addr += 1 new_var.append(line) with open('address.txt','w') as file: file.writelines(new_var) what I'm doing wrong? it's not working. thanks!
542b6e74e53401fffe73d2f79f4d7ce03f47e35601dbf28419b0f573280cf184
['3fbf1bafdf524d1ca11558b880978ce3']
I'm using python ipaddr it's working but if I wanna open a text file where i'm getting an ip address i'm getting an error. This is What I have: import ipaddr from itertools import islice def address1(): with open('address.txt','r+') as file: lines = islice(file, 1, 5) for line in lines: found_address = line.find('Address') if found_address != -1: address = line[found_address+len('Address:'):] #address = 192.168.0.9/25 mask = ipaddr.IPv4Network(address) resultado = mask.broadcast print resultado return resultado def get_network(): addr = '192.168.0.9/25' mask = ipaddr.IPv4Network(addr) resultado_broadcast = mask.broadcast print resultado_broadcast return resultado_broadcast #address1() #if I comment out this line and I run the next one works... get_network() #if I run this one works... My ip address from address.txt : Address <IP_ADDRESS><IP_ADDRESS>/25 mask = ipaddr.IPv4Network(address) resultado = mask.broadcast print resultado return resultado def get_network(): addr = '<IP_ADDRESS><PHONE_NUMBER> mask = ipaddr.IPv4Network(address) resultado = mask.broadcast print resultado return resultado def get_network(): addr = '<PHONE_NUMBER>' mask = ipaddr.IPv4Network(addr) resultado_broadcast = mask.broadcast print resultado_broadcast return resultado_broadcast #address1() #if I comment out this line and I run the next one works... get_network() #if I run this one works... My ip address from address.txt : Address <PHONE_NUMBER> the same I used in get_network() So why I'm getting error in address1()? output of get_network() As you can see works... but if I run address1() I got this error. Does anyone know how to make address1() work? is it possible? thanks...!
b6b29192211df749e65efe1d09d310cbb8d8ddbdc7241d580b0004b36d34ef4e
['3fc37c07a8344ad5adaa74628371fdcc']
I'm trying to do something that I'm sure is quite simple...I'm slowly teaching myself JQuery, so I've been reading forums and Googling different terms all day, but I can't seem to make it happen! I need the image of the sign to slide left (out of view) when the following div scrolls up (no problem)...but, I'd like the action to reverse when the user scrolls back down. This fiddle achieves the initial animation: http://jsfiddle.net/fr2Sw/ I've tried a whole bunch of methods that aren't working...functions like this: var canSee = false; $(window).scroll(function() { if ($(this).scrollTop() > 100) { $("#box").animate({left:"-=200px"}); canSee = true; } else if (!canSee) { $("#box").animate({left:"=0px"}); } }); Thank you so much, any help is much appreciated! If you don't mind, please explain what's happening in each function "in english" if you can :o)
1abd3e055c540c4e1ae19077034c0a7939104d4c50fda772e4313c52a8e1baa5
['3fc37c07a8344ad5adaa74628371fdcc']
I'm working on an online auction...all the bid updates are manual. Simply, there are hundreds of links (images of the pieces to bid on) on the same page. When the bidder clicks an image, a form pops up in a NEW WINDOW. The form says "Thanks for bidding on "TitleOfWork" send the form to finish..." I receive the form via email, with the TitleOfWork as the subject, so I know which bid to update. What I need, is a way to use the same form for all of the items. The only way I can think of to achieve this, is to somehow run a script to call a value (id=TitleOfWork) from the item's link and retrieve it on the new window. I've tried everything, but I can't seem to retrieve a piece of information on the NEW WINDOW from the clicked link on the first page. And it had to be a variable, because there are several hundred links, all with different titles. Does this make any sense? I'm new to .php so I've been experimenting with .localStorage, but I seem to be doing something wrong. Here's an example of how the links look: <a href="../image1.html" name="#TitleOfWork-1" id="TitleOfWork-1">Bid Now!</a> <a href="../image2.html" name="#TitleOfWork-2" id="TitleOfWork-2">Bid Now!</a> <a href="../image3.html" name="#TitleOfWork-3" id="TitleOfWork-3">Bid Now!</a> <a href="../image4.html" name="#TitleOfWork-4" id="TitleOfWork-4">Bid Now!</a> When the form pops up in the new page, I need it to access the particular #TitleOfWork from the link that was clicked. If someone could help, you'll save me from making hundreds of different forms - one for each piece!!!
8ec7b8af0e3698e42cff9654eee5d3431a08e87fce80951c1f4c9d8fcd03e6bc
['3fc3b0229ab9423896f2f5f1b99799e5']
I am not sure I understand you, but note in your code that: a) Most of the code is under mutex lock, which means they can't really run in parallel b) Thread 14 runs regardless of the number of running threads Anyway, the reason it gets stuck is: a) Your threads are running almost sequentially b) Threads 1-5 skip while and both ifs, th_no is now 5 (assuming it was initialized to 0?) c) Thread 6 raises th_no to 6 and enters second if, performing broadcast but there are no threads stuck on that condition lock d) Threads 7 and above enter first if and wait on a condition lock that will never break I would suggest the following solution. Since I haven't understood you completely, in this example only 6 threads are allowed to run regardless of their id and you'll have to make only some minor changes. pthread_mutex_lock(&lock); while(th_no >= 6){pthread_cond_wait(&cond, &lock);} th_no++; pthread_mutex_unlock(&lock); //Raise counter and unlock the mutex /* Thread function code here. Pay attention to critical code and use mutex. */ pthread_mutex_lock(&lock); //Acquire lock once again, decrease counter and broadcast if number of threads is ok now th_no--; if(th_no <= 5){ if(pthread_cond_broadcast(&cond)){ // Error as it should return 0 on success } } pthread_mutex_lock(&unlock); Let me know if this helps
41c16f57ca9dc81491433e374d67810386fae3d734bf11c1e493e56293e29b83
['3fc3b0229ab9423896f2f5f1b99799e5']
The cents variable never changes. (cents - 25) indeed returns the value of current cents minus 25, but you don't assign it to cents variable, so one of those 4 while loops will always be true. There is also another probem: get_float function returns float while change variable is int, if the user were to enter a value less than 1, such as .5, it would be casted to 0 and prompt again and again until the user enters a value greater than 1. Also note you would probably get a wrong answer for any non-integer input.
58710465a882ccd6ca81430da13ffca0433113be52f07f6f1377f4c93e95eb3e
['3fc4a189a5be426d886b76f0b6ced088']
I removed the duplicates using hook_views_pre_render(). function hook_views_pre_render(\Drupal\views\ViewExecutable $view) { if ($view->id() == 'my_view_id') { $filtered_nids = array(); foreach ($view->result as $key => $row) { if (in_array($row->nid, $filtered_nids)) { unset($view->result[$key]); // remove the duplicate } else { $filtered_nids[] = $row->nid; } } } } Probably not the best solution, but it works for my case.
75f6c17e5bdfed20ab384a7e0b1c896aa7cc5a90770ff1795e17671c1e1cb602
['3fc4a189a5be426d886b76f0b6ced088']
Saying "almost everybody" can cycle 60km per day, several days in a row, strikes me as extremely optimistic. When I first (as an adult) got a bike, doing a 30km ride took quite a lot out of me. And that was starting from being reasonably fit from playing football twice a week. After doing it for a while, a weekend ride for me is typically 50-60km, and very comfortable *now I'm used to it*. It still gets regular shocked looks when mentioned to anybody who doesn't regularly cycle as a hobby, though.
b1a394f29ef83cad1e0b7a0c2c98f9e860f7e4e3381d13e1bbe31f9709563d2f
['3fcf3de8be4f4ea992233e9e2d09051e']
Is there a way to implement a custom endpoint for my bot in node.js?. I saw the same for C# but it seems to to be implemented in node.js. Here is the link to the C# implementation: Configure Custom Endpoint for Botframework Bot A part from this, in the portal there was an option to connect the bot to an azure function, but I don't see it now. Here is the post where is saw it, on the step 3: https://blogs.msdn.microsoft.com/waws/2018/04/22/azure-bot-function/ Here is the C# code to implement and get a custom endpoint, the one it would be great to have in Node.js: httpConfiguration.MapBotFramework(botConfig => { botConfig.BotFrameworkOptions.Paths = new BotFrameworkPaths() { BasePath = "/bot", MessagesPath = "/john" }; });
19ad2b14fd6d3c0d58d7b7f90b74af8c5fb4fbd93bda81faa4ef01d74ac62bfe
['3fcf3de8be4f4ea992233e9e2d09051e']
I am using Microsoft Bot Framework V4 in node.js. In a step of a Dialog we need to combine buttons using the ChoicePrompt object but also the TextPrompt. In case the user clicks the buttons the suggested actions will be triggered, and if the user writes plain text, we handle the action using LUIS and certain intents. The problem is combining both actions. I have tried to avoid re-prompting when using the ChoicePrompt, but I couldn't manage. Also I look for other prompts that directly could combine buttons and text but it seems there's not any. First I declare the objects I am using in the prompt: class ExampleDialog extends LogoutDialog { constructor(userState, logger) { super(EXAMPLE_DIALOG); this.addDialog(new TextPrompt(TEXT_PROMPT)); this.addDialog(new ChoicePrompt(CHOICE_PROMPT)); Second, in the steps, I use the prompts declared before: async firstStep(step) { const promptOptions = { prompt: 'Text to prompt', retryPrompt: 'Retry text prompt', choices: ChoiceFactory.toChoices(['option1', 'option2', 'option3']) }; const promptAction = await step.prompt(A_PROMPT_ID, promptOptions); return promptAction; } async secondStep(step) { const thePreviousStepResult = step.result.values }
943731d10f24308cfe2cde1d6a08c10c7eaa0eedfa20f6ea6cc87923b32b7444
['3fd400d19504479c9032069ef2680bc1']
Here are two tips that might help (assuming your app is respecting the fastcgi protocol): 1. try to run the app in command line, this prove that you have execute bit and no compile errors in code. 2. check suexec.log of your apache server, this might show user/group or other errors related to your script.
d85f4032d709e836b08939a6f31c08415b05834d53996baa3139f114296c1a9b
['3fd400d19504479c9032069ef2680bc1']
I'm using Disqus on my site. The theme that I'm using has comment count shown on every post, but it shows only default WordPress comments system count. How can I integrate it with Disqus, so the comment count would show Disqus comments? Here's my site - http://tophistorie.pl
4a9cd6df65096ef26ee976535ef6acd66c621cce6781cbaca50891e262092009
['3fe6a051f9b14874a8add49bd194e106']
I'm trying to use Firebase's MLKit for face detection with Camerax. I'm having a hard time to get Image analysis's imageproxy size to match PreviewView's size. For both Image analysis and PreviewView, I've set setTargetResolution() to PreviewView width and height. However when I check the size of the Imageproxy in the analyzer, it's giving me 1920 as width and 1080 as height. My PreviewView is 1080 for width and 2042 for height. When I swap the width and the height in setTargetResolution() for Image analysis, I get 1088 for both width and height in imageproxy. My previewview is also locked to portrait mode. Ultimately, I need to feed the raw imageproxy data and the face point data into an AR code. So scaling up just the graphics overlay that draws the face points will not work for me. Q: If there are no way to fix this within the camerax libraries, How to scale the imageproxy that returns from the analyzer to match the previewview? I'm using Java and the latest Camerax libs: def camerax_version = "1.0.0-beta08"
de6eb3d869a4b906142866a665c8177749154e61b780a330c5f05afb884a7d73
['3fe6a051f9b14874a8add49bd194e106']
For CameraX, if the FEATURE_CAMERA_ANY method is still returning true when there is no Camera on device, you can add the below method. So whether FEATURE_CAMERA_ANY returns true or false when CameraX is getting initialized, Below method will make sure to do what you want if a camera is actually not available on device. private CameraSelector cameraSelector; private ProcessCameraProvider cameraAvailableCheck; private ListenableFuture<ProcessCameraProvider> cameraAvailableCheckFuture; private void checkIfAnyCameraExist() { cameraAvailableCheckFuture = ProcessCameraProvider.getInstance(context); cameraAvailableCheckFuture.addListener(new Runnable() { @Override public void run() { try { cameraAvailableCheck = cameraAvailableCheckFuture.get(); if ((cameraAvailableCheck.hasCamera(cameraSelector.DEFAULT_BACK_CAMERA) || cameraAvailableCheck.hasCamera(cameraSelector.DEFAULT_FRONT_CAMERA) )) { //Do what you want if at least back OR front camera exist } else { //Do what you want if any camera does not exist } } catch (ExecutionException | InterruptedException | CameraInfoUnavailableException e) { // No errors need to be handled for this Future. // This should never be reached. } } }, ContextCompat.getMainExecutor(this)); }
e19214627c60329ae21aa32b8c8ad956e06dce96d712ff8922a98350229a547f
['3fedbd653bb84413a5e6ee4221e8fe1a']
I can't say for sure, but it sounds an awful lot like an issue that a user of my app pointed out (which is how I ended up here, searching for clues!). For my app, it turned out that I needed to put some delay between the Control keydown event and the C (for copy, in this example) keydown. When sent at the same time as a single combination, results were very unpredictable. http://www.strokesplus.com/forum/topic.asp?whichpage=1&TOPIC_ID=477#1024
5e1c2461989e676e6f274ad40315642dddf543c84f82637aa53578a55bc080be
['3fedbd653bb84413a5e6ee4221e8fe1a']
Ok, so here's a sample of the XML structure: <config> <Ignored> <Ignore name="Test A"> <Criteria> <value>actual value</value> </Criteria> </Ignore> <Ignore name="Test B"> <Criteria> <value>actual value</value> </Criteria> </Ignore> </Ignored> <config> I would like to be able to do two things: Perform a get directly to the Test A element without having to loop all Ignore elements..like a selector on an attribute. If nothing else, I need a method of updating either of the Ignore elements and can't seem to figure it out Do I have to delete the element and recreate it? I can't seem to figure out a way to perform a put which qualifies an element (where there a many with the same name at the same level) by an attribute (which would be unique at that level). Something like: pt.put("config.Ignored.Ignore.<xmlattr>.name='Test A'.Criteria.value",some_var) Or anything else that can achieve the end goal. Thank you very much! Full disclosure: I'm pretty new to C++ and may be missing something blatantly obvious.
e6369c00008929adb543745c88d9268aa35c76182ab4462dec205cdc306de6fa
['3ff97a0db6a24c15aa042c21362f3a2f']
hm, the optionselector is an Ubuntu api module and my intention was, to get an info how to use the module the right way, with its own methods and properties. Perhaps it is buggy and some Ubuntu api developer pays attention on it. I know that I could parse the html elements if it has the class "active" or something similar. --> this would be an answer that I would exspect on normal stackoverflow.
e7083fca36e772b7cfc5f7d5342851042bbfb189f7a75956606e097c6b45d1a0
['3ff97a0db6a24c15aa042c21362f3a2f']
There is a click-package that provides more configuration-options, including ca-certificate only with username and password. But you still cannot import the ovpn-file. You have to set the options manually in the app. Get the latest (0.3.1) click-package here, you can download it directly to the phone: http://people.canonical.com/~pete/vpn-editor/ Then install it with this command from the phones terminal app: pkcon install-local --allow-untrusted ~/Downloads/com.ubuntu.developer.pete-woods.vpn-editor_0.3.1_all.click VPN-Editor should appear in the App-Scope. There you have a lot more options... Good luck.
e375509f505f6b22e500435854d7b8ef16587abae00db35b400d6521084005d7
['40074139e2554113a720f07caf26c662']
I am using a GridView in my metro app and have its source set to a CollectionViewSource. Its Selection Mode is set to Single. The problem I was initially having was preventing the initial item from being selected when the grid loaded. After some research I solved this by setting the IsSynchronizedWithCurrentItem property of ListViewBase to false. However I am also using the ItemListView_SelectionChanged(object sender, SelectionChangedEventArgs e) to handle selection changed and in here I use itemsviewsource.View.CurrentItem != null to test whether I have an item selected and process some stuff. Unfortuantely on the initial load the CurrentItem is NOT NULL. My question is, is there anything obvious I am missing in the ItemListView_SelectionChanged event (or anywhere else!) that I can use to check that I have nothing selected on the grids initial load, and bring it into line with what is shows on the UI!
40f0f00d6357f4d767150a7fe84632b98763eec305b629c1029e6140d104b34c
['40074139e2554113a720f07caf26c662']
I am using the SemanticZoom control with a grid view and collection view source. All is working fine until I attempt to select ('jump to') an empty group - this causes an unhandled Catastrophic failure. http://social.msdn.microsoft.com/Forums/nb-NO/winappswithcsharp/thread/6535656e-3293-4e0d-93b5-453864b95601 Does anybody know if there is a way to fix this - I want to 'allow' an empty group if I can. Thanks
9363fd4677e7611ca7dc75f12aeff572b32d06969e5efd688819bae3a311f0ee
['402330b59f2a4c1fbcbb32132b5675b1']
In a PHP webpage, Im opening a file in write mode, reading and than deleting the first line and closing the file. (The file has 1000's of lines) Now, what the problem is, if there are like 100 users connected to that page, all will be opening that file in write mode and than try to write it after deleting the first line. Will there be any deadlocks in this situation? For your information, we are using Windows server with IIS server and PHP5. Thanks in advance for your help.
0c1a2a4c9da9e5099f140e72b9094df6b03ebaa1e618cc52161948dcfcf644e9
['402330b59f2a4c1fbcbb32132b5675b1']
In addition to <PERSON> answer, here is a step by step guide to fix it: 1. In IE, click on gear icon (config) -> Internet Options 2. In the dialog box, click "Security" tab -> "Local intranet" -> click "Sites" button -> click "Advance" button 3. Type in your website, click "Add" button! Then close it and your are done! This worked for me after upgrading to windows 8.1 and IE 11.
2a666d49f78a14642dbc49d2f3427751de307ce4cd81716a2537ad8579c75ba7
['40243a9727e74f5eab0a6b123bfa5ce3']
Thanks for your responses. I fixed the issue by utilising the following SQL to seperate each category group to have its own order. SELECT Row_number() OVER ( partition BY createddate ORDER BY Count(loggedrecid)) AS Col_group, Count(loggedrecid), createddate, ownerteam FROM @allrequests WHERE faculty IN ( @faculty ) GROUP BY createddate, ownerteam ORDER BY createddate ASC I then added Col_group as the Series group and ordered it by Col_group All working as expected! Thanks for the assistance.
090867becce12b48f52b7075f4ef71f8320a249032ee1531647918cc0b1a7934
['40243a9727e74f5eab0a6b123bfa5ce3']
I didn't have any issues getting the anchor to work in any version of IE. I was confused however with the code you have on Fiddle as it doesn't reflect what you're actually asking. It's difficult to answer a question without some kind of clear and concise description of the issue. Though I have constructed an answer from what you were able to convey. If you want to toggle the text field when you click the A tag. You can use the following jQuery: $('#testhide').click(function() { $('#hide').toggle(); }); testhide will be the A tag id. So: <a id="testhide" href="#anchor-here">click here</a> hide is the name of the div in which the input is contained (You can call it whatever you like). So: <div id="hide" style="height:90px"> <input id="hidden" type="text"/> </div> Hope that helps. Here is a link to the edited fiddle. http://jsfiddle.net/Xynev/8/
4d0e2ad2ed60ab50dd70dbded0581a230497ec926429e914587adcba6cb2d7f7
['402dd1aa5aa44f3e8b39bc477fb7a838']
I'm trying to get an name on LDAP data base searching with an identification number. I've got this on linux using this query: ldapsearch -x -v -w *username* -D uid=xxx,ou=xxx,ou=xxx,ou=xxx,dc=xxx,dc=xxx,dc=xxx -b ou=xxx,dc=xxx,dc=xxx,dc=xxx -h xxx.xxx.xxx.xxx "uid=xxxxxxxxx" cn With this I can get the cn (name) of the uid xxxxx. I want something like that on Delphi 2007. I was searching, but a lot is just trying to connect or validate something, and I don't understand. I downloaded the library ActiveDs_TLB.pas, but don't know how to use it correctly. If someone could help me pasting the code or something like that it will be very helpful. Thanks.
7d1ed09a29d95be44dacf27b02230b05bc19072407dd5e971a236326caf38eec
['402dd1aa5aa44f3e8b39bc477fb7a838']
Well, I'm trying to do a simple script to check any updates in an application. To check this, the most simple way I found is to connect to the FTP (where have a file which says the last update) and compares X file with a Y file. If the Y file is outdated, the script should run an installer/updater. Can I do it with C? I mean, can I connect to an FTP using C? I research but nothing helpful was found. At least, why C? I actually don't know. Part cause it is the language that I have more affinity, part cause I think it's clean, I dunno. Just intuition. haha. Hope I have been clear. PS: Working on Windows.
b611ac165209e97cfc7ccebdfb74b99d7c3495a624a82dbf63ef6b94f9479e21
['403f70c7186143539cc19abf70eca97a']
Are you sure, that j variable never equals 0 ? If you have two circle like: var arr = [[1,2,3], [4,5,6], [7,8,9]]; for (var i = 0; i < arr.length; ++i) { for (var j = 0; j < arr[i].length; ++j) { arr[i][j - 1].toString() // error } } You have error, because j equals -1 in first time i.e. "undefined", undefined not have toString() method Set start value for j = 1 in the second circle and you solve this error.
b5a8891fca72c0ecca1100c83d3bee7681cfc44371206b60893c990b7a69c6d9
['403f70c7186143539cc19abf70eca97a']
Try to using flexboxes for a container and wrap icon and icon-text to div with class e.g. .icon-wrapper: .overlay { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: #f08300; } .overlay-text { color: white; font-size: 20px; text-align: center; } .icon-wrapper { display: flex; flex-direction: column; align-items: center; }
982cbf35c9769a04608f25dc14166d39f668de08ceb8f37261cef4dfcdf1da4a
['40425e7d91d64322a387c83c09d5dee4']
If you use AndroidX (as of July 2019) you may add these: <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_collapseMode="pin" app:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar" app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"/> NOTE! This was tested to work if your Toolbar is placed directly inside AppBarLayout but not inside CollapsingToolbarLayout
e0a99011554bb09ba880fc7b8dbc1a6fb27f9a847a9552aa2d8b15781101d36a
['40425e7d91d64322a387c83c09d5dee4']
I found one possibility to build the app by editing my styles.xml file, replacing every Theme.AppCompat... entry with some Theme.MaterialComponents... entry, although it's not very elegant (and breaks some app styling): <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> replaced with<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> <style name="AppTheme.CardViewStyle" parent="Widget.AppCompat.CardView"> replaced with <style name="AppTheme.CardViewStyle" parent="Widget.MaterialComponents.CardView"> <style name="AppTheme.NavigationDrawerStyle" parent="ThemeOverlay.AppCompat.Light"> replaced with <style name="AppTheme.NavigationDrawerStyle" parent="ThemeOverlay.MaterialComponents.Light"> I have also replaced some other style entries, though some of them do not have an exact corresponding style: <style name="RoundedButtonStyle" parent="Widget.AppCompat.Button.Colored"> replaced with <style name="RoundedButtonStyle" parent="Widget.MaterialComponents.Button.OutlinedButton"> <style name="AboutApplicationDialog" parent="@style/Theme.AppCompat.Light.Dialog"> replaced with <style name="AboutApplicationDialog" parent="@style/Theme.MaterialComponents.Light.Dialog"> <style name="AppTheme.EditTextStyle" parent="Widget.AppCompat.EditText"> replaced with <style name="AppTheme.EditTextStyle" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox"> If you find some other way, please answer )
9289b56ce8981fe6e9b2e3e6a25a30ed4b6ce1af0a41268f24416115e863db13
['405776745594418cb10d6e9817f7e31e']
I recently purchased a copy of my own Mac App Store app (using promo code) so that I could experience it the way my customers do. I've discovered that downloading the app from the App Store will not just install in the Applications folder, but will instead overwrite the first app it finds on my hard drive that matches the corresponding bundle ID. I found out the hard way when I noticed that it overwrote the contents of my Xcode Archives for a previous version. So, does anyone know a way to prevent this from happening? Thanks.
5cf5a0d26606a903d419cefe3d0a004eb66cb51bc6885713b0bd64f563250273
['405776745594418cb10d6e9817f7e31e']
I need help on the topic of counting labeled trees (with its nodes numbered from 1 to N) with exactly k leaves. I have thought about surjective functions that return the father of a node, but I'm not sure how to count all of them that give me correct trees. Here is the source of the question: http://www-math.mit.edu/~djk/18.310/Lecture-Notes/counting_trees.html and it's not explained in this paper. I would be very greatful if anyone could help me with a formula and, even more important, an explanation. Thank you!
1eb101a2c045c1c8d2799637b01370d11cc66b19b15a0f9e2065b30c71741729
['4058aaa0571e4c68a72f971978c96465']
I haven't been able to find any existing packages for version 10, here is how I compiled the client tools myself on the 2018.03 AMI sudo yum install -y gcc readline-devel zlib-devel wget https://ftp.postgresql.org/pub/source/v10.4/postgresql-10.4.tar.gz tar -xf postgresql-10.4.tar.gz cd postgresql-10.4 ./configure make -C src/bin sudo make -C src/bin install make -C src/include sudo make -C src/include install make -C src/interfaces sudo make -C src/interfaces install make -C doc sudo make -C doc install After this you can run pg_dump from /usr/local/pgsql/bin/pg_dump or alternatively add /usr/local/pgsql/bin to your PATH to run pg_dump anywhere
039bb4ee097b7bf0ba03e8c408da034126452e73f80e4804173b1b12c0dc29eb
['4058aaa0571e4c68a72f971978c96465']
Hello <PERSON>, it's good to see you explaining it with an example. However, I noticed that only the default states are being shown in the front-end of the widget in each of my efforts, and it doesn't actually follow the logic (based on those checkboxes) that goes inside the `widget()` function. I tried once more with that neatly written example of yours, still I have no luck. I'll be back after trying a couple more times.
cbe920d981ef7bf2650f32d47e7e0d74a37da2481c8eb0adcc7fa032574092b0
['40762d9f693d43d4b3b0878728252aa1']
<PERSON> I know the main issue/question doesn't, but looking at the commentary popping up around this issue is something I'd suggest looking into as well. There is a lot of interesting dialogue of moving away from passwords entirely and finding other authentication methods. The initial salvo is quite interesting, I suggest taking a look at some of the proposed solutions on tech crunch, mashable, or gizmodo.
26ebf2d74eeef40a130e297d8fbc411e588a6a81b1e406df82ebf0a6203c4139
['40762d9f693d43d4b3b0878728252aa1']
Without knowing the specifics of `bookstable`, you have a typo here: {{BCom}, and each row must end with \\ (missing in your "Number of courses ..." row). And the total of columns combined in multicolumns should equal your total number of columns of your table, so just put a & at the beginning of the row to produce an empty first colum.
f52b7c3083ec76b2a0832e2e7fdf6faf2edc38a5febf0a42930f58d15b89eea9
['407d6f2fadda47dbaaef0903f7c83acc']
Unfortunately this isn't supported on the BackgroundTranserService. One possible solution might be to manually create a header for your request like below: var credentials = new UTF8Encoding().GetBytes(username + ":" +password); var transferRequest = new BackgroundTransferRequest(transferUri); transferRequest.Headers["Authorization"] ="Basic " + convert.ToBase64String(credentials); Unfortunately I'm unable to test this at the minute, give it a try and let me know how you get on.
390efa5ecdfb60a95553d1734d84a6f9dddbafd85875b913b15ab078c12b8f9b
['407d6f2fadda47dbaaef0903f7c83acc']
The Get Package operation is still supported. It's likely that if you're getting a 404 response that you're using a HTTP GET method as opposed to POST. I've tested the operation using the REST Console plugin for Chrome and my package was successfully written to blob storage. The URI used was: https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deploymentslots/<deployment-slot>/package?containerUri=<container-uri>
212816e0973dd589bfbebad982d4a561b6d1c093a0baebd71b9fd322c678a241
['40859de4e44c4021b6facf3f4c1b0c16']
I have a site structure of: Country > Counties > Towns > Shops the county, counties and towns pages are all low quality pages full of links, these are there for the crawlers to navigate and occasionally a customer will not know there postalcode so will drill down this way. How best to keep the structure but not get any low quality flags against the site?
6722c354673943b4060fd15214b1b2bae2dee7862f8b3f1f8375a95701bc092d
['40859de4e44c4021b6facf3f4c1b0c16']
Programming is a lot about planning and understanding code and the underlying specs. Even if you spend 2 days on writting it, you should be able to complete it again in a lot less time. Owe up to it, make sure to explain you will need a lot less time and that you're willing to do overtime to compensate, if necessary.
f1fd2d7dff434a1281defa1aa91776a43d4c903c5e011597a566639b70151296
['408c415aded241c6bfb0a234ef24b17c']
Change the whole code to this; <?php $username =$_POST["newname"]; $password =$_POST["newpass"]; $cpassword =$_POST["conpass"]; $firstname =$_POST["firstName"]; $lastname =$_POST["lastName"]; $others =$_POST["others"]; $email =$_POST["email"]; $phone =$_POST["phone"]; $sex =$_POST["sex"]; $bg =$_POST["bg"]; $genotype =$_POST["genotype"]; $dob =$_POST["dob"]; $address =$_POST["address"]; $state =$_POST["state"]; $lga =$_POST["lga"]; $nationality =$_POST["nationality"]; $sq =$_POST["sq"]; $sa =$_POST["sa"]; $time =$_POST["time"]; $day =$_POST["day"]; ?> <?php if ($password !==$cpassword) { echo "<div align='center'><img src='./images/progress_med2.gif'>"; include ("./error1.php"); echo "<center>Sorry, but the password you provided did not match.<p><a href='javascript:window.history.go(-1)'<img src='./images/goback.jpg'></a>"; include("./error2.php"); exit; } if (eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email)) { echo "<div align='center'><img src='./images/progress_med2.gif'>"; include ("./error1.php"); echo "<center>Sorry, but your email address is not valid.<p><a href='javascript:window.history.go(-1)'<img src='./images/goback.jpg'></a>"; include("./error2.php"); exit; } ?> <?php include("./DB/config.php"); if () // define what to check? { $query = "SELECT * FROM members WHERE Username='$username'"; $results = mysql_query($query); if(mysql_num_rows($results) > 0) { include("./error1.php"); echo "<center><img src ='./images/userexist.png'>Sorry, but the .$username. you have chosen is already in existence.<P><a href='javascript:window.history.go(-1)'><img src='./images/goback.jpg'></a>"; include("./error2.php"); } else { $query = "SELECT * FROM members WHERE email='$email'"; $results = mysql_query($query); if(mysql_num_rows($results) > 0) { include("./error1.php"); echo "<center><img src ='./images/userexist.png'>Sorry, but the .$email. you have chosen is already in existence.<P><a href='javascript:window.history.go(-1)'><img src='./images/goback.jpg'></a>"; include("./error2.php"); } else { $SQL1 = "Insert into members(username,Firstname,Lastname,Others,Email,Phone,Sex,Blood_Group,Genotype,Date_Of_Birth,Address,State,LGA,Nationality,Security_Question,Security_Answer,createTime,createDate) Values ('','$username','$firstname','$lastname','$others','$email','$phone','$sex','$bg','$genotype','$dob','$address','$state','$lga','$nationality','$sq','$sa','$time','$day')"; $results1 = mysql_query($SQL1) or die(mysql_error()); header("Location: ./register_preview.php") } } } ?> Make sure you have defined the variable in if() check
8cd9b81373140af184606aa00e8b5d53dc7d6d9718caf64704a06fcdf1746071
['408c415aded241c6bfb0a234ef24b17c']
If you're having issues/errors in above answers then here is my answer, I hope it helps; Add the following code just above the <?php of your PHP file; <style type="text/css"> .error{ background: #FFC6C6; color: #000; font-size: 13px; font-family: Tahoma; border: 1px solid #F58686; padding: 3px 5px; } </style> Next change each echo statement to something like this; echo "<div class='error'>Write error code here.</div>"; exit; You can easily find and replace the echo statements if you're using Notepad++ It should work. Also its somewhat similar to <PERSON>'s answer however I think my answer is easily understandable and may be easy to implement.
52de21ccaf19d0b703fe1f3e06f982e5df4f167ea0f00f418c3fc7c3fcc826be
['40937dc8af4143e4a502778187ff8da4']
Try to replace setInterval to setTimeout behaviour, otherwise previous request will be killed if the next is submitted setTimeout(refreshChat, 0); function refreshChat() { $.ajax({ url: "http://eyesonpi.com/_/php/chat.php", type: "post", success: function (data) { $("#chatWindow").html(data); }, error: function () { $("#chatWindow").prepend("Error"); } }).always(function () { setTimeout(refreshChat, 1000); }); }
1ddc58401e28fda9118fc67f62520d41d471c10e60bc05246b98e0cd5552830b
['40937dc8af4143e4a502778187ff8da4']
It should not be a problem for the project itself, but if you're going to improve performance: use infinite/partial load in your selector (show only ~30, by scrolling remove/add chunks) or change it to a clock widget (or even customizable select-widget: check "Options With Async Search" in https://material.angularjs.org/latest/demo/select ). <select> - element is a part of OS representation That's why you're not able to customize it full enough. Win + IE hardly can process a big scope of elements (for the most JS frameworks you'll be able to track issues with performance under Internet Explorer)
18a2b6456fb8e80a8e2a476c9aac4af118527b512640c3a6cbe1d571d1801ec4
['40b0af08ff53420abf61f736734eee8d']
I would like to merge two DataFrames, but the matching key in the 2nd DataFrame is scattered in two different columns. What is the best way to merge the two DF? import pandas as pd data1 = {'key': ['abc','efg', 'xyz', 'sdf']} data2 = {'key1' : ['abc','sss','ggg','ccc'], 'key2' : ['aaa','efg','xyz', 'sdf'], 'msg' : ['happy','mad','smile','great']} df1= pd.DataFrame(data1) df2= pd.DataFrame(data2)
6e7d374f1edf21460d83961b60d3d4d5ebc0b23004a1931f5662fb8ee5483b56
['40b0af08ff53420abf61f736734eee8d']
I would like to change the value (c,d) where there is a duplicate name (a) AND condition = 'Cancel' (b) import pandas as pd data1 = {'a' : ['Mary','Mary','John','Jenny','Jenny'], 'b' : ['Approve','Cancel','Approve','Approve','Cancel'], 'c' : [100,200,300,400,500], 'd' : [200,200,300,400,500] } df1= pd.DataFrame(data1) df1 I can select the specific rows using df1[(df1.duplicated(['a'], keep=False) & (df1['b']=='Cancel'))] but struggle to find a way to change values....I am researching np.where and df.apply Thanks in advance.
e303d03732d8f6bece305c45d3fd56c10ece348a3b97a010989d0743e0679b26
['40b42efad6dc416abc98fccbde28b46f']
It should something along the lines of: static double ConvertInchesToFeet(double inches){ //code for inches to feet } static double ConvertInchesToYards(double inches){ //code for inches to Yards } static double ConvertInchesToMiles(double inches){ //code for inches to Miles } And your main would simply call them like this: double numOfFeet = ConvertInchesToFeet(inches); double numOfYards = ConvertInchestToYards(inches); double numOfMiles = ConvertInchestToMiles(inches);
e130746188751a9a92b6b9740ea95a13b149030105f8a93e10e12672072af37f
['40b42efad6dc416abc98fccbde28b46f']
I have a webpage with text area. I populate this area with a text file of my own, so the user sees the text when they load the page. I want the user to be able to edit the text in this area and they will click 'save'. This will save to MY file, so that the next time someone opens the page they will get the text that the previous user wrote. I have been looking for quite a while and cannot find what I need. Some things I found said suggest maybe some php (would prefer not). But I have yet to find a source that describes this exact situation. Here is some of my HTML code: <div class="emailEditor"> <label for="emailEditBox" class="col-2 col-form-label">Email Editor</label> <div class="col-10"> <textarea style = "min-height: 300px;" class="form-control" rows="5" id="emailEditBox"></textarea> </div> <button id="loadEmail" type="button" class="btn btn-primary" onclick="loadFile()">Load</button> <button id="saveEmail" type="button" class="btn btn-danger" onclick="saveFile()">Save</button> <button id="previewEmail" type="button" class="btn btn-success" onclick="previewFile()">Preview</button> </div> <div class="emailPreview"> <label class="col-2 col-form-label">Email Preview</label> <div class="emailOutput"> <!--Preview here (rendered output of the html file)--> </div> </div> Here is some of my Javascript and Jquery: <script> function loadFile() { var reader = new XMLHttpRequest(); reader.open('GET', "EmailTemplate.html", false); reader.send(); var text = reader.responseText; document.getElementById("emailEditBox").value = text; } function writeFile() { } </script> <script> $(function previewFile(){ $(".emailOutput").load("EmailTemplate.html"); }); </script> The load and preview part are working, but I cannot find a way to save the file.
4f9a99557243c4065a7fd2ba43cfd08128294feec2809a05d401021b81d0e487
['40b5cac6b9fe439693da094d76e910ce']
I'm developping a application and I have a problem with redirect back of redux-auth-wrapper, I followed the docuemntation, but I get this issue , I'm always do to home after login for example: I access: http://localhost:3000/admin I'm Redirected to: http://localhost:3000/login?redirect=%2Fadmin it's ritght! But after login I'm redirected to http://localhost:3000/ How can I go to /admin after login? My versions: "react-redux": "4.4.5", "react-router": "3.2.0", "react-router-redux": "4.0.6", "redux": "3.6.0", "redux-auth-wrapper": "2.0.2", My auth.js: import locationHelperBuilder from 'redux-auth-wrapper/history3/locationHelper' import { connectedRouterRedirect } from 'redux-auth-wrapper/history3/redirect' import { routerActions } from 'react-router-redux' import { Loading } from './components' const locationHelper = locationHelperBuilder({}) export const userIsAuthenticated = connectedRouterRedirect({ redirectPath: '/login', authenticatedSelector: state => state.auth.isAuthenticated, authenticatingSelector: state => state.auth.isLoading, AuthenticatingComponent: Loading, redirectAction: routerActions.replace, wrapperDisplayName: 'UserIsAuthenticated' }) export const userIsAdmin = connectedRouterRedirect({ redirectPath: '/', allowRedirectBack: false, authenticatedSelector: state => state.auth.data !== null && state.auth.data.isAdmin, redirectAction: routerActions.replace, wrapperDisplayName: 'UserIsAdmin' }) export const userIsNotAuthenticated = connectedRouterRedirect({ redirectPath: (state, ownProps) => locationHelper.getRedirectQueryParam(ownProps) || '/foo', allowRedirectBack: false, // Want to redirect the user when they are done loading and authenticated authenticatedSelector: state => state.auth.data === null && state.auth.isLoading === false, redirectAction: routerActions.replace, wrapperDisplayName: 'UserIsNotAuthenticated' }) My routes.js : import React from 'react'; import { Route , IndexRoute } from 'react-router'; import App from './components/App'; import LoginPage from './containers/LoginPage'; import LogoutPage from './containers/LogoutPage'; import AdminPage from './containers/AdminPage'; import SelectSolution from './containers/SelectSolution'; import AboutPage from './components/AboutPage.js'; import NotFoundPage from './components/NotFoundPage.js'; import { userIsAuthenticated // , userIsAdmin // , userIsNotAuthenticated } from './auth' export default ( <Route path="/" component={App}> <IndexRoute component={SelectSolution}/> <Route path="login" component={LoginPage}/> <Route path="logout" component={LogoutPage}/> <Route path="admin" component={userIsAuthenticated(AdminPage)}/> <Route path="about" component={AboutPage}/> <Route path="*" component={NotFoundPage}/> </Route> ); Someone can help me ?
69e9bc7d163336283bdb2519654b0aa4a1f96394044d6cdcbc6a19d29d35a6ee
['40b5cac6b9fe439693da094d76e910ce']
I'm a learner developer, and I'm build a app with a tree menu(react + redux + sagas), but I'm getting some errors of Mutation State, I saw what best practices is stay de state flat as possible, but I didn't finded one menu tree what work with a flat state, so my data is look this: menuTree: [{ id: 'id-root', name: 'root', toggled: true, children: [ { id: 'id-parent1', name: 'parent1', toggled: true, children: [ { id: '123', name: 'parent1_child1' }, { id: '234', name: 'parent1_child2' } ] }, { id: 'id-loading-parent', name: 'loading parent', loading: true, children: [] }, { id: 'id-parent2', name: 'parent2', toggled: true, children: [ { id: 'parent2_children1', name: 'nested parent2', children: [ { id: '345', name: 'parent2 child 1 nested child 1' }, { id: '456', name: 'parent2 child 1 nested child 2' } ] } ] } ] }], And my redux action: case types.SOLUTION__MENUCURSOR__SET: // console.log('action payload', action.payload); // console.log('state', state); const cursor = action.payload.cursor; // console.log('set menu cursor action', cursor); return { ...state, menuTree: state.menuTree.map( function buscaIdMenuTree(currentValue, index, arr){ if(currentValue.id){ if(currentValue.id.includes(cursor.id)){ currentValue.toggled = action.payload.toggled; return arr; }else{ if(currentValue.children) { currentValue.children.forEach(function(currentValue, index, arr){ return buscaIdMenuTree(currentValue, index, arr); }); } } return arr; } } )[0] }; The code works but I get Mutation State Error, so someone can help me to fix it ?
1cef8d53da192c139faf7aacd6c7b5d865b35243dc6f9d57069ddabea810c237
['40c55089ec4648f28e02a489bb39a312']
la primera correccion al problema esta en que estas siempre creando nuevas activities y no cerrandolas, esto para el caso de tu main activity. Si revisas la segunda actividad en el metodo public void atras(View view) { Intent atras = new Intent(this, MainActivity.class); startActivity(atras); } Estas creandola nuevamente, lo que debes hacer en este caso es cerrarla de la siguiente manera public void atras(View view) { finish(); } Si este no es el error, te va a servir de todas formas, para podes solucionar el problema entero, es mejor que subas el error que larga en el logcat
bf40a92d02c8fb341d01ccb120377a71d1fa6aa4e186db0909ecbe484208c7b4
['40c55089ec4648f28e02a489bb39a312']
la solucion a esto es simple, debes crear un adapter al que le ingreses itemns/componentes y no texto unicamente. Para hacer esto primero debes crear tu layout (UI_componente) <!-- Definis el texto y proximamente el color--> <TextView android:id="@+id/list_content" android:textColor="#000000" android:gravity="center" android:text="ejemplo" android:layout_margin="4dip" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <PERSON> agregar el adapter a tu ListView ArrayAdapter<String> adapter=new ArrayAdapter<String>( this, android.R.layout.itemListView, listItems){ @Override public View getView(int position, View convertView, ViewGroup parent) { View view =super.getView(position, convertView, parent); TextView textView=(TextView) view.findViewById(android.R.id.text1); /*ELEJIS EL COLOR APLICANDO LA LOGICA QUE NECESITES*/ textView.setTextColor(Color.BLUE); return view; } }; /*SETEAS EL ADAPTER*/ setListAdapter(adapter);
59ab120e0550d90c0f1b8793b0df84b8b1b33a76d4376d9125a1a9542d06aafd
['40c66332daf245e7ad0742290e3556a5']
You could use the ngChange directive on the select element like so: <select ng-model="selectedAffiliate" ng-change="GetAffiliatePoints(selectedAffiliate)"></select> When the select value changes the selectedAffiliate property on your scope is updated to hold the selected value. Then you can look up the points for that affiliate and display them somewhere.
a0524448d7240182ac6a0e668355737240e04ad9aaf63d7acf7b388884fa9969
['40c66332daf245e7ad0742290e3556a5']
I have a quick question in regards to the approach to displaying products on an e-commerce package I am putting together. The problem that I facing is that I would like visitors of the site narrow their search. For example, a use case would be: A Visitor is currently browsing a season of products (eg. Summer Collections) He / She should then be able to filter by category and brand within that season, so for example they might decide that they only want to see Pants from Clothes Galore. The problem, I ma facing is that doing a single SQL query in order to find products that match all three of these factors (so the product is in the summer collection, is a pair of pants and made by clothes galore). The thing that makes this overly difficult is that products can be in multiple categories and seasons. So there would need to be an insane amount joins in order to grab the right result. My database structure is as follows: product -> product_category <- category product -> product_season <- season product <- brand (a product can only be made by one brand) Hope someone can share their wisdom on this...
9f979c25ad36171553d859a6f041b7a59c9965623544793e3a7c66707021715e
['40d4027d76934ee7a50befd9ae99b08d']
It is quite possible that there might be a bug in the emulator.If u can test ur app without the emulator things would just work ot fine.I think there is some logical bug in the emulator that creates this problem.something like when u call alert_cast(a)){} the reference torrent_finished_alert that uare passing is not testable on the emulator and this piece of code has to coded in the emulator i.e. the dynamic cast operator.
9da83500d8ccd8c1c857b9061379026a1090ce99db31eaf35ee9f853c1fe3c53
['40d4027d76934ee7a50befd9ae99b08d']
This implementation provides constant-time performance for the basic operations (get and put), assuming the hash function disperses the elements properly among the buckets. Iteration over collection views requires time proportional to the "capacity" of the HashMap instance (the number of buckets) plus its size (the number of key-value mappings). Thus, it's very important not to set the initial capacity too high (or the load factor too low) if iteration performance is important.
bdada94350e6558e331532ccfb987f660829b7e66fa376436a234105248cf077
['40dd9beb0a9f48069c6edc645e7e399d']
You can delete whole threads by swiping to the left and delete will appear. You can delete individual messages within a thread by holding finger on the message and tap on more and then tick the messages you want gone and tap rubbish bin. Or in another way, you can have a try of iPhone Data Eraser to delete all messages on iPhone.
d3f1db6be620b8c23effbea6d6812b430101a9ea692913743aba9f20a3b12bc9
['40dd9beb0a9f48069c6edc645e7e399d']
You do realize that this is just a temporary fix to delete history on iPhone. As you use your phone, the same type of data will just accumulate again, requiring another restore as new to delete. If you restore as new, you sync when finished the iPhone Data Eraser, to restore your data. So, if you decide to do this, make sure all of your data is on your computer before you go down this route. Restoring as new returns your phone to a state just like it was when first taken out of the box.
71e112eaaa00196b3d6e638b80fc6dceae0639927daf2d639796ec757d7cb272
['40e236ade49348a18c8f6b29b5ff60d8']
To enable or disable your App Engine application, you can use the apps.patch method from the App Engine Admin API. You have to use these parameters: Path parameters: name = apps/[project-id] Query parameters: updateMask = servingStatus Request body: To enable your application: { "servingStatus": "SERVING" } To disable your application: { "servingStatus": "USER_DISABLED" }
f20625a59705891b7353b36b65e076dbb09ddce467ebf85da0b0b3e9d9e1dd18
['40e236ade49348a18c8f6b29b5ff60d8']
It seems to be an issue with this Quickstart, I tried to reproduce it and I got the same error. I searched for the components by running this: gcloud components list And there is no app-engine-python3 component for the latest Cloud SDK version (239.0.0). Anyway, the app-engine-python component has already Python 3. So, to use Python 3 you have to install this component: gcloud components install app-engine-python And then use python3 command instead of python command, e.g.: python3 main.py
306cb9cdba546fc277dd2d5d6001a8f4b829e9db6c6e9920c02dff0b22b2ed4c
['40e8d080edf94a9fb6862a27570fc592']
Let's say I look up "Coffee Shops". It gives me a list of coffee shops around and their distances. But when I choose a coffee shop and press on it, it gives me a completely different distance. For example, one of the coffee shops in the initial list Maps shows me is supposedly at a distance of 700m. However when I "click" on that coffee shop, it then shows a distance of 2km (almost 3 times more). Why is this happening?
1b64e65e9271880fb25736cca3bb25c885963722608cd2acf79e559ed908e229
['40e8d080edf94a9fb6862a27570fc592']
I was facing that exact problem even saving maps online. Here is what worked for me. Log into the server (hosting server) with administrator privileges Open the cmd (command window) and type %windir%\System32 Then look for the folder named intesrv and open it Right click inside this folder and choose Open windows command here Execute the following command, swapping for a desired value in bytes: appcmd.exe set config -section:system.WebServer/serverRuntime /uploadReadAheadSize: "" Then restart the IIS using the following command. Rebooting the Server is not required. iisreset
a4420ae2871ae79fa75217dd97b70c82cf0013e8f65862467915264d0f9da72c
['40e8d4dded28405789b23af0f1777d43']
Although I'm still not sure what caused this issue, I fixed it by running: sudo /etc/init.d/apache2 stop sudo apt-get remove --purge apache2 php5 sudo apt-get remove --purge libapache2-mod-php5 sudo apt-get install php5 apache2 libapache2-mod-php5 sudo /etc/init.d/apache2 start sudo a2enmod php5 sudo /etc/init.d/apache2 force-reload Thank you everyone for all of your help.
f0cca1ff1faf23c315a72ae3281449521c67f6af22a85046d72d8b3afdb06100
['40e8d4dded28405789b23af0f1777d43']
I'm having some trouble installing NW.js. When I run npm install nw, I get these error messages: > nw@0.12.3 postinstall /root/node_modules/nw > node scripts/install.js sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! nw@0.12.3 postinstall: `node scripts/install.js` npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the nw@0.12.3 postinstall script. npm ERR! This is most likely a problem with the nw package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/install.js npm ERR! You can get their info via: npm ERR! npm owner ls nw npm ERR! There is likely additional logging output above. npm ERR! System Linux 4.3.0-kali1-amd64 npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "nw" npm ERR! cwd /root npm ERR! node -v v4.2.6 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/npm-debug.log npm ERR! not ok code 0 I'm pretty sure the problem has to do with the first section where it talks about node being installed. I know there's an issue with Debian where the node package is actually already taken, so they use nodejs instead. I don't know enough this to fix it, I've already tried running export node=nodejs and adding it to the ~/.bashrc. Does anyone have any ideas about what I can do? I've had this problem with other npm packages as well.
7e379fa90ddd175c5e943d507b62fdeed516b69408b6cf72fa2037220987365f
['40ea4604cbff46298644a0ee991a0783']
Well,The only solution to this can be by developing a custom module, integrating those APIs. Also, without running the cron, Drupal will not know what items are in queue. You will need to use an external application developed in node.js which will monitor the entries in the database and will call a function which will post those nodes to respective social networks. You did not mention that whether you just want to delay the posting on social networks or also want to delay the node publishing.
9ef9556dcd3bb8efd57e35db0d04565f2059ae4501f2266c0e7cf10a015d2d81
['40ea4604cbff46298644a0ee991a0783']
I am not sure how do you get an array in $nid, but instead, you should call a function, written in a custom module. That function should check the current nid by taking it from the URL and return either TRUE of FALSE. In any cases, (other than known nodes), you should add logic in a function, defined in a custom module. This helps debugging & enhancements.
ab3a50a0e864037c9564d40bcb5791283cb60af673ecf9c1a421731080525987
['40ee97b52b0d4b6a94ed7c33f47161d8']
I agree to the definition from wikie (+1) for this, by the way trends may be deterministic as well (not only random walks), for instance linear, so two linear trends will be indeed very correlated. Another source of spuriousness in time series (from the dirty tricks set) is the seasonal components, that are also very likely to be correlated wrongly. "Correlation does not imply causation article" in wikipedia is also useful. http://en.wikipedia.org/wiki/Correlation_does_not_imply_causation
06ccfb1dcfca37cd09fd22adf607edc399ba0a138ec2df1f13c5d18a14d932e3
['40ee97b52b0d4b6a94ed7c33f47161d8']
I appreciate your breakdown of D-Wave technologies (especially the connectivity graph). "After that point D-Wave says that a re-design would need to be required, perhaps in the size of the unit cells, or in going from 2D to 3D, or in the physics itself." What the redesign would consist of is of interest to me. I have been considering a 100x100 matrix (10,00 cells) which could then be moved into 3d (100x100x100=1,000,000 cells).
a1c1d5794194ee7e49da635cd083806a0774b7cd303be6253fd58ee51f2212a5
['40f2ce8eaf9b4fb69ef05dd321cbc3c1']
I managed to get around this using Relay Commands as <PERSON> mentioned. It is a little dirty in parts, but I avoided putting any code in the behind file. Firstly, in your XAML - Bind your command onto a button, or whatever triggers your RelayCommand. <Button Content="Select" cmd:ButtonBaseExtensions.Command="{Binding CommandSelect}" cmd:ButtonBaseExtensions.CommandParameter="{Binding ElementName=Results, Path=SelectedItems}" /> You'll notice the command parameter Binds to another UI element - the DataGrid or ListView you wish to get the selected items of. This syntax will work in Silverlight 3 as well as WPF, as it now supports element to element binding. In your view model your Command will look something like this Private _CommandSelect As RelayCommand(Of IEnumerable) Public ReadOnly Property CommandSelect() As RelayCommand(Of IEnumerable) Get If _CommandSelect Is Nothing Then _CommandSelect = New RelayCommand(Of IEnumerable)(AddressOf CommandSelectExecuted, AddressOf CommandSelectCanExecute) End If Return _CommandSelect End Get End Property Private Function CommandSelectExecuted(ByVal parameter As IEnumerable) As Boolean For Each Item As IElectoralAreaNode In parameter Next Return True End Function Private Function CommandSelectCanExecute() As Boolean Return True End Function The Selected Items will be returned as a SelectedItemCollection, but you probably don't want this dependancy in your View Model. So typing it as IEnumerable and doing a little casting is your only option, hense the 'dirtyness'. But it keeps your code behind clean and MVVM pattern in tact!
8ba5328ec4df7a37dd4630e897a07ac81f6dee17937d0b4dcce25c1f0fae85c4
['40f2ce8eaf9b4fb69ef05dd321cbc3c1']
If we have a square with the vertices at the points $0,1,1+i,$ and $i$, how can we come up with equations to represent these lines? For example what is the equation of the line connecting $1+i$ and $i$? (I believe it is $z=(1-x)+i$ but not sure how to come up with that.
29f5c812c20295798c569be797a36201e0697a8e3d6efb6d9b71cf2d26fb2579
['40fa3aaebcc7463fb0afb62a2bb5fdec']
diving further into kivy, i began to wonder what map options were available (either google maps or something like open street maps). What i found so far: KivyMaps link So far the most usefull Module i found. It is supposed to work on mac, windows, android and iOS (experimental), BUT: i don't find the docs anywhere! I googled a lot, still i have not a clue how to use kivyMaps Kivy Mapview link Available trough garden. Good docs, but they say it works only on android. For me, it does work on Kivy + Mac, at least displaying and moving the map. Setting coordinates and changing them does not. So i guess my question is: What do you use? Are there other options available that i missed? Where are the KivyMaps docs (can somebody provide examples?)
6f9834cb1c99a48f7dc4b77c41f58a5d605b5190072ab7d7372a16171699c861
['40fa3aaebcc7463fb0afb62a2bb5fdec']
i try to asyncronously load a static google maps image via the google api. The code below is taken from the kivy reference base, it works with other images, but not if i use the google link. The link works fine in the web browser. (Also note that the source string is in one line in my original py file, that just doesn't display right here) my kv from kivy.app import App from kivy.uix.image import AsyncImage from kivy.lang import Builder class TestAsyncApp(App): def build(self): return AsyncImage( source='http://maps.googleapis.com/maps/api/'+\ 'staticmap?center=47.909,7.85&zoom=13&size=600x300') if __name__ == '__main__': TestAsyncApp().run() Help is very appreciated!
71dcdec2eabaf0d234956dbf57e427dc4b1b6bece0dff326932ac124996bd35c
['40ffb11e85b542cab93dd9b0b528a6f9']
I am creating an angular app and i have created a layout but i am having some trouble with its functionality. currently the header stays fixed in position as does the activator but the menu appearing on rollover does not and when scrolling the content in the body appears over the top of the header. i am not fantastic at css but know some. any help fixing this would be greatly appreciated :) again any help at all would be fantastic.
9b5b1506b0eccedb517bbc67d264f3eb50766ac65c5626a682ffcaba037bd638
['40ffb11e85b542cab93dd9b0b528a6f9']
This may seem like a repeat question and im sorry but i cannot fix this and its driving me mad. its probably something so simple too. I have a hidden menu that appears on rollover of another div although it is behaving very funny. when i rollover the menu appears but it does not appear correctly. i have attached a fiddle and images of how it appears on my machine and how i would like it to appear. /** Layout */ .ts-layout { } .ts-header { width: 100%; height: 74px; border-bottom: 1px solid #000; position: fixed; display: inline-block; z-index: 999; background-color: #fff; } .ts-menu-activator { width: 25px; height: 100%; background-color: #2E2E2E; color: #fff; position: fixed; display: inline-block; padding-top: 75px; border-left: 1px solid #fff; transition: 1s; transform: translateX(0); } .ts-menu-activator:hover { transition: 1s; transform: translateX(150px); } .ts-menu-activator:hover + .ts-menu-area { transition: 1s; transform: translateX(0); } .ts-menu-area { height: 100%; width: 150px; background-color: #2E2E2E; color: #fff; position: fixed; transform: translate(-150px); transition: 1s; } .ts-view { width: 100%; height: 100%; padding-left: 25px; padding-top: 75px; } /** Styling helpers */ .no-select { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .vertical-text { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -o-transform: rotate(-90deg); transform: rotate(-90deg); /* also accepts left, right, top, bottom coordinates; not required, but a good idea for styling */ -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; -o-transform-origin: 50% 50%; transform-origin: 50% 50%; /* Should be unset in IE9+ I think. */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } <div class="ts-layout" ng-controller="app.views.layout.header as vm"> <div class="ts-header"> <div class="row"> <div class="col-sm-6">Login Information</div> <div class="col-sm-6">Controls</div> </div> </div> <div class="ts-menu-activator"> <span class="vertical-text">TESTING</span> </div> <div class="ts-menu-area"> <i class="fa fa-home"></i> &nbsp;Home </div> <div class="ts-view"> <div class="container"> <div class="angular-animation-container row"> <div class="shuffle-animation col-xs-12" ui-view></div> </div> </div> </div> </div> Any help or suggestions is appreciated :) also if anyone could tell me why my text is not displaying vertically that'd be great :)
939ca060f7eaf5c4b7e7db9d0a2b722f638257b082a98b83c06de1f0a3493e47
['410214c33e2944b191f49a71bfcde4ab']
The order statement seems to be true. I have a number of @Autowired properties in my @Configuration bean. Those at the end of the list appear as null when trying to use them in my @Bean. @Configuration public class MyConfig { @Autowired private MyClass myClass; @Autowired private MyClass2 myClass2; ... @Autowired private MyArgument1 myArgument1; @Autowired private MyArgument2 myArgument2; @Bean(name = "myList") public List<MyInterface> getMyList() { //given MyArgument1 & MyArgument2 implement MyInterface List<MyInterface> myList= new ArraList<MyInterface>(); myList.add(myArgument1); //resolved as null myList.add(myArgument2); //resolved as null return myList; } } If I put them in the top of the list they are resolved properly. So.. how many should I count on being properly resolved? Need a better approach. This is working @Configuration public class MyConfig { @Autowired private MyClass myClass; @Autowired private MyClass2 myClass2; ... @Bean(name = "myList") public List<myInterface> getMyList((@Qualifier("myArgument1") MyInterface myArgument1, (@Qualifier("myArgument2") MyInterface myArgument2) { //given myArgument1 & myArgument 2 are properly labeled as @Component("myArgument1") & @Component("myArgument2") List<myInterface> myList= new ArraList<myInterface>(); myList.add(myArgument1); //resolved! myList.add(myArgument2); //resolved! return myList; } } This seems to implement the right dependency
6e738cc62c92edad5d122d8520afe686a737d005563567098e0f556e04150467
['410214c33e2944b191f49a71bfcde4ab']
The answer above (<PERSON>) is correct in the sense says two classes are "colliding". In my case I was defining my maven dependencies fine <!-- Provided Spring dependencies spring-beans, spring-context, spring-core, spring-tx --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>4.2.4.RELEASE</version> </dependency> but had an old Spring jar in my classpath in which version indeed didn't had this method java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationAwareOrderComparator.sort(Ljava/util/List;)V
6033b98fdfa8feef036034612a5e7ea123c26922ea63f2d9f5debe667ebd43a1
['4108ab756c624a9c8333d153836f8b29']
im trying to do a heap bottom up construction from Psuedo code from my text book however the output im getting is not a correct heap im getting out 2 9 8 6 5 7 anyone know where im going wrong(pseudo code is from a text book, and heap needs to be array) here is the PsuedoCode bottom up im working with //constructs a heap from elements of a given array by bottom up algorithm //input an array H[1...n] of orderable items //output a heap H[1...n] for i<- [n/2] downto 1 do k<-i; v<-H[k]; heap<-False while not heap and 2*k <= n do j<-2*k if(j<n) //there are two children if H[j] < H[j+1] j<- j+1 if v>=h[j] heap = true else H[k]<-H[j] k<-j H[k] <-V here is my code package heapbottomup; import javax.swing.Spring; public class heapbottomup { public static void main(String args[]){ int[] array = {2 ,9 ,7 ,6 ,5 ,8}; BottomUp(array); } static int[] BottomUp (int[]array){ int n = array.length-1; for(int i=(n/2);i>=1;i--){ int k =i; int v = array[k]; boolean Heap = false; while(!Heap && ((2*k)<=n)){ int j = 2*k; if (j<n){ if(array[j]<array[j+1]) j =j+1; } if(v>=array[j]){ Heap=true; } else{ array[k]= array[j]; k=j; } array[k]=v; }//end while }//end for print(array); return(array); } static void print(int[]array){ if(array==null){ System.out.println("empty"); return; } for(int i =0;i<array.length;i++){ System.out.print(array[i] + " "); } System.out.println(); }//end print }
224aa05c689b94f7efddfe811dad2045ef4520639d2663aaef9e2d84ba22bbbf
['4108ab756c624a9c8333d153836f8b29']
Hey all i have a quick question about objects of a class... im working on a hw assignment, i only want a hint in the right direction, not the whole answer.... basically we have five classes and there are 3 im working with.... the main class reads in a text file which im doing fine, the other is a Files.class Homework.class and a Name.class when i call a new homework i also create a new name new files these are the methods that i have for creating a new homework homework.class private int id; private Name name; private int section; private Files files; private int dateSubmitted; public Homework(int id, Name name, int section, Files files,int dateSubmitted){ this.id =id; this.name = name; this.section = section; // initialize the homework to given params this.files = files; this.dateSubmitted = dateSubmitted; }//end public hwk public Homework(int id, Name name, int section, int dateSubmitted){ this.id = id; this.name =name; // the second constructor for the homework class this.section = section; this.dateSubmitted = dateSubmitted; this.files = null; }// end second init homework public Homework(String first, String last, int section, int dateSubmitted){ this.id = nextAvailableUid(); this.section = section; this.dateSubmitted = dateSubmitted; this.name = new Name(first,last); this.files = null; } what im trying to do is pass in a first and last section and date which is the third HW method....... my question is in the main class how do i add a file from the main..... or in main do i have to extend the file and name class and construct it from there and pass it in as a new homework? <PERSON> in main Homework []homework = new homework[size]; Files []files = new Files[size]; Name[]name = new Name[size]; //add appropriate code to fill in from here.... or is there an easier way in main to implement all the classes... other note im not allowed to modify Homework.class, name.class, or files.class thanks in advance
c52299752698be66dd0e49d206c05dd955e830dfb304b2aae96285cf674c81e0
['412393a4138242c18675684ba947fe33']
Im trying to create a program that lists all catalan-numbers below or equal to an argument in a bash-script. This is what I currently have but its giving me a stackoverflow error (I believe the error must be in the for-loop, but I can't figure out why). I have made this program in java and it works so I think it must be some syntax error? #!/usr/bin/env bash pcat=0 Cat() { res=0 if [ $1 -le 1 ] then echo 1 return 1 fi for ((i=0; i<$1; i++)) do var1=$(($1-($i+1))) call1=$(Cat $i) call2=$(Cat $var1) res=$(( res+call1+call2 )) done echo ${res} return res } while [ $pcat -lt $1 ] do Cat $pcat pcat=$((pcat+1)) done
aea4bf8df6d485e3cb70ec83ee32df0477703a62059a292f9d1c54f638c5d29d
['412393a4138242c18675684ba947fe33']
Im relatively new to both c++ and working with SDL but I managed to create a small 2d library for vectors and Im trying to use it to give some rectangles some speed and acceleration however the animation runs so slow. I'm assuming it has something to do with the amount of calls i'm making but I can't figure it out. while (true) { screen.clear(); if (particleCreate == false) { for (int i = 0; i < numParticles; i++) { pParticles[i].position.setX(screen.SCREEN_WIDTH / 2); pParticles[i].position.setY(screen.SCREEN_HEIGHT / 2); pParticles[i].velocity.setLen((rand() * 1.0 / RAND_MAX) * 15.0); pParticles[i].velocity.setAng((rand() * 1.0 / RAND_MAX) * 360.0); pParticles[i].gravity.setY(0.5); } particleCreate = true; } for (int i = 0; i < numParticles; i++) { pParticles[i].update(); screen.drawRect(pParticles[i].position.getX(),pParticles[i].position.getY(), 5, 5); } if (screen.wait() == false) { cout << "Exiting..." << endl; screen.close(); break; } } I'm not sure how much code I should put in here but this is the main loop. EDIT: I should mention that Im using the SDL_RenderDrawRect to draw the rectangle and SDL_RenderClear to clear the screen.
0d22b840eda8af162f007de918907a6cd0d10a2475c40400e5f8b0cefa33cb72
['41300d6d7dd74a15a18e41d6f5331d11']
So, I will repair it to JSON but now I'm sending letters from website: socket.send("w") socket.send("s") and on server side are waiting JSON objects: forward = { "messageid": 1, "message": "First message" } backward = { "messageid": 2, "message": "Second message" } And depending on case I send back to client JSON: def on_message(self, message): global c if message == "w": c = "8"; if message == "s": c = "2" if c == '8' : self.write_message(json_encode(forward)) elif c == '2' : self.write_message(json_encode(backward)) Back in browser is function waiting for json object: <div id="output">First div</div> <div id="output2">Second div</div> socket.onmessage = function(msg){ var message = JSON.parse(msg.data); if(message.messageid== 1) { showServerResponse(message.message) } if(message.messageid== 2) { showServerResponse2(message.message) } } And the function to show to div: function showServerResponse(txt) { var p = document.createElement('p'); p.innerHTML = txt; document.getElementById('output').appendChild(p); } Second function is showServerResponse2(txt) sending it to 'output2'. This way you can send messages from server to client to different divs, depending on sent parameter, which was the original question. The thing is it is recommended to send every message with correct parameter, or it may be lost.
4b539eefdf743bad7e1ff8c7f6fbec49d403224241a11afa0e005ecb057accdb
['41300d6d7dd74a15a18e41d6f5331d11']
The php file is in web site directory (/var/www) and I would like to execute it from index.html which is in the same directory. The php file: <?php exec("sudo -u pi /home/pi/camcv/camcv .. "); ?> Can be run by typing php /var/www/script.php in command line from anywhere in the system, it executes properly (camera flashes, opens the window with picture, no errors). I would need it to be executable by www-data user from website. I know there are many options, I have tried submit forms, onClick actions, sending a parameter ( $_POST['xy']) then watching it with "if" structure in php file, AJAX in form of XMLHttpRequest and in form of $.ajax , I tried to include javascript jquery.min.js and have tried to add permissions in sudoers or changed ownership of folders/files with allowing to read/write/execute... all without achieving the goal. So my questions are: -Does someone have a bulletproof way to make this work ? -Can you tell me what exactly do I have to add in sudoers ? Thanks for any advice. PS: Few of the tries did redirect me to page http://(ip)/script.php so there is at least some response from the buttons. Also, XMLHttpRequest did work on Changing the text on webpage (reading and posting txt file). PSS: The function does not require any return information, I would need the page to stay on the site with the button, possibly not reloading.
dede213db82d7a2dd64518f5ef1ce713261f8a5cb44befff77ce2e03d7049ec0
['4138a48c5a47409b9f2433eb80c74afc']
hey I have recently made my first token authentication in my Ionic app .. yeah it is an easy step but implementation may take some time if you are not a language PRO.. you can try this. https://devdactic.com/user-auth-angularjs-ionic/ this is one of the finest and tested tutorial on the web for token based AUTH.. Maybe that may help you to find the error !
5906fd87b4b0e2a3ade2fc573dc1936ea814dcec124fbfc469d6278b46f5e30a
['4138a48c5a47409b9f2433eb80c74afc']
app.factory('actfactory', function ($http) { var myservice = { result: [], getdata: function () { $http.get('api calll !!') .success(function (response) { console.log(response.data); myservice.result.push(response.data); }).error(function () { if (window.localStorage.getItem("activity") !== undefined) { self.results.push(JSON.parse(window.localStorage.getItem("activity"))); } alert("please check your internet connection for updates !"); }); } }; this is my controller app.controller("activity", function ($scope,actfactory) { $scope.activityresult = actfactory.getdata(); console.log( $scope.activityresult); }); While doing console.log() in controller in am getting empty object ! and my service is console is returning fine response ? HOW to get the result in controller of the service
819acaf016f12e080259ce8b35a479fa5f94149bd0f6729a84689323818c73b9
['413e53cc1b8f46619dfddd896a43111c']
When I wire three bulbs in a series, the resistance of each bulb is around three ohms (using R=V/I). If I rewire the same bulbs into a parallel circuit, the resistance of each bulb is slightly over double (solving the same way). Why does the resistance of each bulb increase when wired in parallel?
728ec0d932d85c0d234617fb83ba9229a4ed029b6a2079005f9d1f4dbd9a1eb9
['413e53cc1b8f46619dfddd896a43111c']
Sorry, I was convinced that my firewall was right. I put INPUT, OUTPUT, and FORWARD to ACCEPT with no other rules, and that seemed to work. Just out of curiosity, what would the firewall syntax be for letting the new build grab the kickstart? I had `-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT`. Is that wrong, and do I need more? Here was my original iptables file `http://pastebin.com/R7SeH6JG`
03c6bdb597889f99eb97707d5a40edd4d95994c22a5f1c431f19273af5f970db
['413f4fc51f324dcb988296f81edcbc82']
You can add your workspace folder(s) to the exclusion list under: Settings -> Update & Security -> Windows Security -> Virus & threat protection -> Manage settings (under "Virus & threat protection settings" heading). Scroll down to Exclusions -> Add or remove exclusions. (Source) You could even add eclipse itself as an exclusion, but I personally don't recommend that for security reasons.
5412e324c221c1055ef27b06256423045640683a89e9e0b86e89ebba6d4206c1
['413f4fc51f324dcb988296f81edcbc82']
As <PERSON> already mentioned: Your desired result is not a valid python data structure. because your code contains things like this: { # ... "egress.#": "1", # <-- ok { # <-- not ok (key is missing) "egress.4820.cidr_blocks.#": "1", "egress.4820.cidr_blocks.0": "<IP_ADDRESS>/0", "egress.4820.description": "", "egress.4820.from_port": "0", "egress.4820.ipv6_cidr_blocks.#": "0", "egress.4820.prefix_list_ids.#": "0", "egress.4820.protocol": "-1", "egress.4820.security_groups.#": "0", "egress.4820.self": "False", "egress.4820.to_port": "0", }, } But if you want to completely unfold your data like this (probably not very efficient): Data: { "description": "Security group for all coporate communications" "arn": "arn" "name": "xyz.abc.corporate" "owner_id": "12345678" "tags": { "Name": "abc.xyz.pqr" "%": "2" "abc": "owned" } "revoke_rules_on_delete": "False" "egress": { "4820": { "description": "" "ipv6_cidr_blocks": { "#": "0" } "prefix_list_ids": { "#": "0" } "to_port": "0" "cidr_blocks": { "#": "1" "0": "<IP_ADDRESS>/0" } "security_groups": { "#": "0" } "self": "False" "protocol": "-1" "from_port": "0" } "#": "1" } "id": "sg-080b03" "ingress": { "1279476397": { "description": "self" "prefix_list_ids": { "#": "0" } "to_port": "0" "cidr_blocks": { "#": "0" } "security_groups": { "#": "0" } "self": "true" "protocol": "-1" "from_port": "0" } "3391123749": { "description": "eks-cluster-master" "cidr_blocks": { "#": "0" } "to_port": "443" "protocol": "tcp" "from_port": "443" } "439086653": { "description": "eks-cluster-master" "ipv6_cidr_blocks": { "#": "0" } "prefix_list_ids": { "#": "0" } "to_port": "65535" "cidr_blocks": { "#": "0" } "security_groups": { "3696519931": "sg-0007a603523411" "#": "1" } "self": "False" "protocol": "tcp" "from_port": "1025" } "2455438834": { "to_port": "443" "cidr_blocks": { "0": "<IP_ADDRESS><PHONE_NUMBER>": { "description": "self" "prefix_list_ids": { "#": "0" } "to_port": "0" "cidr_blocks": { "#": "0" } "security_groups": { "#": "0" } "self": "true" "protocol": "-1" "from_port": "0" } "3391123749": { "description": "eks-cluster-master" "cidr_blocks": { "#": "0" } "to_port": "443" "protocol": "tcp" "from_port": "443" } "439086653": { "description": "eks-cluster-master" "ipv6_cidr_blocks": { "#": "0" } "prefix_list_ids": { "#": "0" } "to_port": "65535" "cidr_blocks": { "#": "0" } "security_groups": { "<PHONE_NUMBER>": "sg-0007a603523411" "#": "1" } "self": "False" "protocol": "tcp" "from_port": "1025" } "<PHONE_NUMBER>": { "to_port": "443" "cidr_blocks": { "0": "10.10.0.0/16" } "protocol": "tcp" "description": "cluster VPC" "from_port": "443" } "#": "4" } } you can use the following code: def transformData(data, separator = '.'): def insertRecursive(dict_, key, value): # Recursive ''' inserts recursively: mydict = makeDefaultDict() insertRecursive(mydict, "deply.nested.value", 42) print(mydict["deply"]["nested"]["value"]) # prints 42 ''' l, dot, r = key.partition(separator) # partition at first separator if dot == "": # if there was no separator left dict_[l] = value else: insertRecursive(dict_[l], r, value) def makeDefaultDict(): # Recursive ''' creates a dictionary thats default value is another dict with the same properties so you can do something like this: mydict = makeDefaultDict() mydict["deply"]["nested"]["value"] = 42 ''' return defaultdict(makeDefaultDict) # actual code: result = makeDefaultDict() for key, value in data.items(): # for each entry in data: insertRecursive(result, key, value) return result
3c5ab3bc37913ef59dc37fa69f5547b786cc733e1a6d9633553c838c5f6e4803
['415a5f5bef2248319f41ed85c1f3ec09']
I'm looking for some help parsing a YAML document. Specifically i'm not sure host to print out/access the "volumes" elements. Any help would be greatly appreciated. Thanks in advance! perl code: #!/usr/bin/perl use YAML<IP_ADDRESS>Tiny; # Open the config $yaml = YAML<IP_ADDRESS>Tiny->read( 'file.yml' ); # Reading properties my $root = $yaml->[0]->{rootproperty}; my $one = $yaml->[0]->{physical_interfaces}->{e0a}; my $Foo = $yaml->[0]->{physical_interfaces}->{e0b}; print "$root\n"; print "$one\n"; print "$volume1\n"; my yaml file looks like this: file.yaml --- rootproperty: netapp1 is_netapp: Yes netapp_mode: 7mode is_metro_cluster: Yes is_vseries: Yes is_flexcache_origin: No snapmirror: enabled: Yes destination: Yes lag_threshold: 2300 physical_interfaces: e0a: netapp1-e0 e0b: netapp1-e1 mgt: netapp1-mgt volumes: - volume: vol1 reserve: 50 sched: 6 42 0 - volume: vol2 reserve: 20 sched: 0 3 0
583974af1ff051345b246b784b85731c4012ee456273e323f519db32c6832cfe
['415a5f5bef2248319f41ed85c1f3ec09']
I can't seem to figure out how to get my 2nd http post to work "queuecallback". It looks like the problem is specific to how i set the headers. Headers = my_headers. It works when i hard code it but not when i try to call it dynamically. Any help would be greatly appreciated. Thanks! const axios = require('axios'); const queuecallback = require('axios'); var my_token; var my_formated_token; var my_headers; var myJSON; function connectToAgentHandler(agent) { axios({ method: 'post', url: 'https://myapi.com/AuthorizationServer/Token', data: { username: 'myusername', password: 'mypassword', grant_type: 'password' }, headers: {'Authorization': 'basic 123456789Aghtiaqq111kkksksksk111'} } ) .then((result) => { my_token = result.data.access_token; console.log("Token:", my_token); my_formated_token = 'bearer ' + my_token; console.log("Formated Token:", my_formated_token); var my_headers = "{'Authorization': '" + my_formated_token + "'}"; console.log("My Headers:", my_headers); }); //lets execute the callback from an agent queuecallback({ method: 'post', url: 'https://myapi.com/go', data: { phoneNumber: '1111111111', skill: '12345' }, headers: my_headers } ) .then((result) => { console.log("your contactId is:", result.data.contactId); }); } });
af43a06456dc71029fdbae40611cd9424e507a9025f69cdf4c530ed89bf1303d
['416702dfcf314c029e672ecc759cfd75']
In the mentioned file I have these: `deb http://security.ubuntu.com/ubuntu trusty-security universe`, `deb http://in.archive.ubuntu.com/ubuntu/ trusty universe`, `deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe`. `lsb_release -a` shows `Description: Ubuntu 14.04.5 LTS`. Meaning the version number `14.04.5 LTS` is mentioned nowhere in source.list file. Do I need to add this manually? Please suggest.
07eb1679b0ba3ffe18184b651f4720e36c11245a33d4c2205227160157b5116e
['416702dfcf314c029e672ecc759cfd75']
Before I use this option all my rewrites were ending up at 404, however after updating `apache2.conf` and restarting `apache` 404 disappeared but all pages landed back on homepage! `phpinfo()` did not have `mod_rewrite` module enabled either. Then running CLI commnd (as suggested by <PERSON> below) everything gone golden! Why this solution did not enable `mod-rewrite` module for me but the CLI approad? Is this a combination of modifying `.conf` and running CLI command one after another to enable the module or either of these is actually enough?
709efa752b9f858f9bdb8b02b24ef290a83f80a4fc3a140a7dfa51e5a1cb1343
['417acc7b8a5a487e9486e112c0b4e548']
Thank you for your reply! They are continuous variables. Ok, let's just say I am looking at the correlation between the length of the eyeball vs the thickness of the lens in the eye. I have data for 200 eyes (100 right, 100 left) from 100 subjects. Right and left data for all variables are highly correlated.
7ccea4c7e79d41925e59b5a075af41d91aa52ce4a2da6d4b77d273adf09096bb
['417acc7b8a5a487e9486e112c0b4e548']
A path consisting of a number of disequality edges and a single equality edge A path consisting of equality edges A path consisting of a number of equality edges and a single disequality edge A path consisting of disequality edges The answer is number three, right? Who has any reasonable doubts or general short references?
edf65f65b4e46e6bf715cf836467f87a74fe9c1907e58b049768955cce807d21
['417f155e565d4ec3ae36881da9a61215']
I'm writing an application that changes the screen brightness. I also use a 3rd party widget that both changes the screen brightness and displays the current brightness value. My program and the 3rd party widget have different functions and I want to continue to use them both. However, when my application changes the screen brightness, the 3rd party widget doesn't automatically refresh to reflect this change. So, my questions are: Is it possible for my application to call the 3rd party widget to be refreshed? If so, is this done by refreshing every widget on the phone, or can I target that specific widget (by package name, for example)?
838271071cac82c7659aa9ef098d3eda4c7e15d9fd01f246dfda589aca8d1a22
['417f155e565d4ec3ae36881da9a61215']
NEWBIE ALERT! Here's the situation. I've got an Android ListActivity class (AppWindow) that contains all the methods that create and update the UI for my application. It includes a method (refreshWindow) that calls setListAdapter, and therefore must be non-static. So far, I've been using a separate class (FileHandler) to perform manipulations on files that are referenced by the AppWindow class. I've reached a point where I want to call the refreshWindow method when a certain file manipulation has been performed. However, since the refreshWindow method is non-static, it seems that I would need to instantiate AppWindow and call the method through that instance. However, I'm not sure how to do this or if it's even a good idea. Perhaps I just need to move all of the FileHandler logic into AppWindow, although I'd prefer to keep them separate. Here's a description of the situation in code form: AppWindow.java ... public class AppWindow extends ListActivity { ... void refreshWindow() { ... setListAdapter(new ListAdapter()); ... } ... } FileHandler.java ... class FileHandler extends Activity { ... static void doStuffToFiles() { ... AppWindow appWindow = new AppWindow(); appWindow.refreshWindow(); ... } ... } Should I be doing this? If so, how do I properly instantiate AppWindow?
f27203e263efcef6fb0ce77cf7daddc24ce3d011486fcfc06f5d38166c05bc5e
['41943e23af9c497499bdac85d17144f8']
I could not find an answer to this question either. The default is 500 requests per 100 seconds, and even if I increased it, after some time, I can only make 5 requests/second which matches with a limit of 500. That means the old default is always being used.
7719576ccc21af4f23d89abf4757907cb33720cbe12de63b6ddd46d01998bd76
['41943e23af9c497499bdac85d17144f8']
I am using Airflow to trigger tasks on a windows machine using ssh. I am able to authenticate and then run a python script on the windows machine itself. However, when I mark the tasks as failed, the logs say about taking the poison pill, but when I log in in the window machine, the tasks is still running. Do I need to supply any arguments to the SSHOperator, or did somebody encounter a similar error?
6ede1ba35661e54bbaf0d24ef98dc24825b39752435f2335b5d2292eb30b7f25
['41bb0c0528b34c1b9969144f626e1f3f']
Basically, the word at the top of the menu changes color on hover, but i want it to stay that color when browsing the sub-menus. I have the sub-sections change color and they stay changed color when i browse their submenus but the main one will not behave. I think it's because i have li:hover for the ones that work and a:hover for the one that doesn't (as they are not part of the a tag) but if i change it li:hover it doesn't work. I've trimmed the code of all the fat so just the basics (and the problem) are here in this jsfiddle file. I'd like a solution using just html and css because I've not learnt js yet, and i'm sure there must be a way without it. https://jsfiddle.net/StrangerStrings/wwcpw7cy/ a:hover{color: blue;} is what i've got but this won't work: li:hover{color: blue;} To repeat, I want the word 'Work' to stay blue when in the sub-menu. Thank you. I hope this website answers my call! (It's my first question, also my first proper website)
ba5baab0a0dafc8058b1a2e70c07d3bde42717015fc4067c4e24aef6fe36dde2
['41bb0c0528b34c1b9969144f626e1f3f']
onCellValueChanged: (event) => { if (event.oldValue === event.newValue) { return; } try { // apiUpdate(event.data) } catch { event.node.data[event.colDef.Field] = event.oldValue; event.node.setDataValue(event.column, event.oldValue); } } By changing the value back on node.data first, when setDataValue() triggers the change event again, oldValue and newValue are actually the same now and the function returns, avoiding the rather slow infinite loop. I think it's because you change the data behind the scenes directly without agGrid noticing with node.data = , then make a change that agGrid recognises and rerenders the cell by calling setDataValue. Thereby tricking agGrid into behaving.
480a6ef319b5f2b87a2bd0834a7d6512199c166e6cab7d077ae62931b0156840
['41da1e73740242c2be0d409afa7f6592']
You mentioned that the server is remote, however you are connecting to a localhost. Add the -h [server here] or set the ENV variable export PGHOST='[server here]' The database name should be the last argument, and not with -d. And finally that command should have not failed, my guess is that that directory does not exist. Either create it or try writing to tmp. I would ask you to try the following command: psql -h [server here] -c "copy (select * from schema.products) to STDOUT csv header" DB > /tmp/products.csv
ea2139dc4618aae9e0a93290a1a9d0c4acf7cf9a0589e9f91e7391f8c4d6f048
['41da1e73740242c2be0d409afa7f6592']
You could change the default privileges this way: ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO PUBLIC; or to give write access: ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT,INSERT,UPDATE,DELETE ON TABLES TO PUBLIC; https://www.postgresql.org/docs/9.0/static/sql-alterdefaultprivileges.html
9bd90332788beef17eec9b8f6388e4b700907dffd0f96895a21e950868bdce77
['41e6963ae36f4b89a364ddf0d6f87751']
I want to set the date or enable only the 15th and last of the month using the datetimepicker, there's something lacking with the script. <input type="text" class="form-control" id="adjustment_date" name="adjustment_date"> <script type="text/javascript"> $('#adjustment_date').datetimepicker({ format: 'MM/DD/YYYY', "defaultDate":new Date() }); </script>
7a71c2f44a9eb54ae6f14522a869c8a7c1f2a34ec7040a80f3e54712be250997
['41e6963ae36f4b89a364ddf0d6f87751']
How can i add a unique ID to the date. Basically I want to add a unique ID on date to be unique, and by clicking the add row button of the table it create a new record then will generate a new date that contains with new unique ID. So basically the actual result is that by clicking the add row button it will create another row the contains with new dates. If there is anyone could help it really much appreciated. <table class="table table-bordered" id="adj_table"> <thead> <tr> <th>Date</th> </tr> </thead> <tbody> <tr class="tbl_adj"> <td> <div class="form-group input-group"> <input type="text" class="form-control input-sm" id="adj_date"> <span class="input-group-addon"><i class="fa fa-calendar"></i></span> </div> </td> </tr> </tbody> <tfoot> <tr> <td colspan="1" style="text-align: left;"> <button class="btn btn-danger btn-block btn-sm" onclick="addTableRows()">Add Row</button> </td> </tr> </tfoot> this is my function in adding the row. function addTableRows(){ var count = $('#adj_table >tbody >tr').length; var count_length = count + 1; var newRow = $("<tr id='tr_"+count_length+"' class='tbl_adj'>"); var column = ""; column += '<td><input type="text" class="form-control input-sm"></td>'; column += '<td><input type="text" class="form-control input-sm"></td>'; column += '<td><input type="text" class="form-control input-sm"></td>'; newRow.append(column); $("#adj_table").append(newRow); } This is my date, im using daterangepicker. $('#adj_date').daterangepicker({ singleDatePicker: true, locale: { format: 'MM/DD/YYYY'}}); So basically the actual result is that by clicking the addrow button it will create another row the contains with new dates. If there is anyone could help it really much appreciated.
6752bdcee4ca5e4204e439c63ef60f1cdac97e6cad9ebe034d40b6294f6a56ef
['41f03a2000664ffd93deaf73c0e0c672']
The best choice in this setting is to store all previous hashes of passwords. Also, please do not use bcrypt. It is good and safe, but new systems (which care about security margins) should employ different techniques such as scrypt. Which actually looks like will be replaced soon as well. More info (a very nice roundup): http://www.unlimitednovelty.com/2012/03/dont-use-bcrypt.html
c1600e42c6662d50e84e22778de3b19cd81bafd17da3601d3edbb6b45a163531
['41f03a2000664ffd93deaf73c0e0c672']
What is the difference between Verb + ことが○○です and verb + 〇〇です? And when are you supposed to use one over the other? For example I wrote 映画を観ることが時間です。 It's time to watch a movie. But I was corrected to 映画を観る時間です。 But I don't really understand why. I thought こと is used to signify some kind of event. In this 時間です (It's time) and the event is 映画を観る (watch/watching a movie)
2754c7b42f088cc237cf4f657a0ede6a6730798ca458860e9eb67a481eaecd9f
['41f6306d6acf4d699179fdaac7bb87ab']
I want to search for a file, say with name having the date time stamp (DDMMYYYYhhmmss)(14122017143339). But in the server possibilities are there that the filename which I am expecting can be like either (14122017143337 OR 14122017143338 OR 14122017143339 OR 14122017143340) as there is a minute change in the seconds. Now, I am trying to search for the file with only a portion of its name say like (DDMMYYYYhhmm)only uptil the minute. Meaning the file which i am expecting should contain the string (141220171433) in its name. Can someone help on how can we achieve this Using Java? Note - Am using Selenium for my coding purposes.
4159972692839e373d4973ddd40889c166d19f8b6ef4dec903021292c9913f90
['41f6306d6acf4d699179fdaac7bb87ab']
For the above mentioned issue, I did the following - Updated the below - Java - 1.8.151 Eclipse - Oxygen And after installing the JDK I updated the policy files (local_policy.jar & US_export_policy.jar) present in folderC:/ProgramFiles/Java/jre1.8.151/jre/lib/security/ with this file --> Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8 The link to download the file is already mentioned in one of the comments above.
41f4d80b38625f50fa0f952c7325b97fd36c02fd507c9eb966e928664935fb5e
['4210fd6e141049b0b5d9583387c2e199']
seems to be solved! i'm still not sure exactly why this works now, but changing some of the api functions to the "W version" fixed it i had been trying this already but i guess some other stuff along the way must've also been fixed. thanks for the help, <PERSON>.
2a0f1ca9a308f8e5cf58f3fae04aae0e79366c4891878384904de01d3f681e23
['4210fd6e141049b0b5d9583387c2e199']
so i'm writing code for a project in an introductory class to C (converting decimals to binary) and have decided to store the binary as a decimal rather than use an array of digits. the program runs fine for numbers up to 1023, and the gives me a mess for anything 1024 and beyond heres the full code (call bclMain to run it): void bclMain(void){ int d,in,in2; do{ in=bclMenu(); switch(in){ case 1://dec to bin do{ printf("\tMENU CONVERSÃO DE DECIMAL PARA BINÁRIO\n\n"); printf("1 - 8 bits sem sinal\n"); printf("2 - 8 bits sinal e módulo\n"); printf("3 - 8 bits complemento de 1\n"); printf("4 - 8 bits complemento de 2\n"); printf("5 - 16 bits sem sinal\n"); printf("6 - 16 bits complemento de 2\n"); printf("0 - Voltar ao menu anterior\n"); in2 = selectOp(); system("cls"); switch(in2){ case 1: printf("8 bits\tsem sinal\n"); printf("Gama de valores [0,255]\n\n"); printf("valor a converter: "); d=getNum(0,255); printf("valor em binário: %d\n",decToBin(d,0,8)); break; case 2: printf("8 bits\tsinal e módulo\n"); printf("Gama de valores: [-127,127]\n\n"); printf("Valor a converter: "); d=getNum(-127,127); printf("Valor em binário: %d",decToBin(d,3,8)); break; case 3: printf("8 bits\tcomplemento de 1\n"); printf("Gama de valores: [-127,127]\n\n"); printf("Valor a converter: "); d=getNum(-127,127); printf("Valor em binário: %d",decToBin(d,2,8)); break; case 4: printf("8 bits\tcomplemento de dois\n"); printf("Gama de valores: [-128,127]\n\n"); printf("Valor a converter: "); d=getNum(-128,127); printf("Valor em binário: %d",decToBin(d,1,8)); break; case 5: printf("16 bits\tsem sinal\n"); printf("Gama de valores: [0,65535]\n\n"); printf("Valor a converter: "); d=getNum(0,65535); printf("Valor em binário: %llu",decToBin(d,0,16)); break; case 6: printf("16 bits\tcomplemento de dois\n"); printf("Gama de valores: [-32768,32767]\n\n"); printf("Valor a converter: "); d=getNum(-32768,32767); printf("Valor em binário: %llu",decToBin(d,1,16)); break; } if(in2!=0){ pause("\nprima ENTER para continuar\n"); system("cls"); } }while(in2!=0); break; case 2: do{ break; }while(in2!=0); case 0: break; default: pause("Não implementado - prima ENTER para continuar"); break; } }while(in!=0); } int bclMenu(void){ int in; system("cls"); printf("\tCONVERSOR DE BASES\n"); printf("1 - Decimal\t-> Binário\n"); printf("2 - Decimal\t-> Hexadecimal\n"); printf("3 - Binário\t-> Decimal\n"); printf("4 - Binário\t-> Hexadecimal\n"); printf("5 - Hexadecimal\t-> Decimal\n"); printf("6 - Hexadecimal\t-> Binário\n"); printf("0 - Voltar ao menu anterior\n"); in = selectOp(); system("cls"); return in; } unsigned long long int decToBin(int d,unsigned char mode,int digitNr){ //d is decimal value, mode indicates binary format to output in unsigned long long int b=0;//b stands for binary, biggest int possible, should be able to store 19 digits (we needed at least 16) unsigned char digits[16]={0},tf1; //tf1 stands for true/false 1 if(mode==0){//takes positive int and returns standard binary for it. for(int cc=0;d>0;cc++){ //printf("%d\n",(d%2) * intPow(10,cc)); b+=(d%2) * intPow(10,cc); d= d/2; }} if(mode==1){//two's complement if(d>=0) b=decToBin(d,0,digitNr); else{ b=decToBin(-d,0,digitNr); for(int cc=0;b>0;cc++){ digits[cc]=b%10; b=b/10; }//standard binary separated into digits //note - digits vector is backwards tf1=0; for(int cc=0;cc<digitNr;cc++){ //finding the first '1' and inverting everything after it if(tf1){ if(digits[cc]) digits[cc]=0; else digits[cc]=1; } else if(digits[cc]==1) tf1=1; } for(int cc=0;cc<digitNr;cc++){ b+= digits[cc] * intPow(10,cc); //printf("digit - %d, multiplied - %d\n",digits[cc],digits[cc] * intPow(10,cc)); } } } if(mode==2){ if(d>=0) b=decToBin(b,0,digitNr); else{ b=decToBin(-b,0,digitNr); for(int cc=0;b>0;cc++){ digits[cc]=b%10; b=b/10; }//standard binary separated into digits //note - digits vector is backwards for(int cc=0;cc<digitNr;cc++){ //invert all digits if(digits[cc]) digits[cc]=0; else digits[cc]=1; } for(int cc=0;cc<digitNr;cc++){ //put digits back into a number b+= digits[cc] * intPow(10,cc); } } } if(mode==3){ if(d>=0) b=decToBin(d,0,digitNr); else b=decToBin(-d,0,digitNr)+intPow(10,digitNr); } return b; } here's the utils library void pause(char msg[]){ printf("%s",msg); fflush(stdin); getchar(); fflush(stdin); } unsigned long long int intPow(int a,unsigned int b){ int cc; if(b==0) return 1; unsigned long long int c=a; for (cc=1;cc<b;cc++) a=a*c;//continuously multiply by base. return a; } int selectOp(void){ int in; fflush(stdin); printf("Qual a sua opção?\n"); scanf("%d",&in); return in; } int getNum(int min,int max){ int in; do{ scanf("%d",&in); if((min<=in)&&(in<=max)) return in; printf("valor inválido\n\nInsira novo valor: "); }while((min>in)||(in>max)); } i apologize if this is too much code or if something is unclear, this is my first post. any info you need just ask ps this is due today 23:50 london time, i am rushing through this as fast as possible
cf996d6276480ef301e37aa343b06acb5e19f7934e6efcbe897cd0fdce3a39f1
['421931660f3542689381e511592fa3a7']
You did mention how broken you car is. When the engine can still run in idle (it might be able to do even with a broken crankshaft - it might not be able to deliver power to the wheels, but it can still keep itself running), it can deliver heat and consume fuel at maybe 1 l/h (it makes sense to keep the tank sufficiently filled in the in the wintertime - even if your car doesn't break down, you can still be trapped in a traffic jam due to bad weather/road conditions). I actually had a broken crankshaft once (yes, it was an Audi - how did you know?), but the idling engine kept me warm.
aa86f7a906acfad8108c62f812fc02c5e2b6501e2da2a8498e9995baec802368
['421931660f3542689381e511592fa3a7']
Its one of the steps. But I am not stuck at that. The problem is to show the best 25 hotels on initial page load. We don't know which will be the best, we have to make a algo. that gives us the best possible guess. Filters and similarity comes when a user starts interacting. Its the second phase of the requirement.
8f43a6d5f470df4484136a819a8af3bc5894f5d38620749366c4a0e9bfb0b12d
['4223432de7e645178be7a383abd64948']
I am using multiprocessing.Pool() to parallelize some heavy computations. The target function returns a lot of data (a huge list). I'm running out of RAM. Without multiprocessing, I'd just change the target function into a generator, by yielding the resulting elements one after another, as they are computed. I understand multiprocessing does not support generators -- it waits for the entire output and returns it at once, right? No yielding. Is there a way to make the Pool workers yield data as soon as they become available, without constructing the entire result array in RAM? Simple example: def target_fnc(arg): result = [] for i in xrange(1000000): result.append('dvsdbdfbngd') # <== would like to just use yield! return result def process_args(some_args): pool = Pool(16) for result in pool.imap_unordered(target_fnc, some_args): for element in result: yield element This is Python 2.7.
6aeaa360320e8c01d97b5d479f2df35d7463b88f9ea49e1aa80467977766688e
['4223432de7e645178be7a383abd64948']
I am submitting a large form. It has many fields with unspecified values, which translate to field=&field2=&field3.... I don't want these in the GET url. Only keep fields with non-empty value. I figured out a way to do it with jquery: $('#form').live('submit', function() { $('input[value=""]', '#form').remove(); }); which I thought would do exactly what I wanted. But apparently I am missing something, because this selects and removes inputs with entered text as well, not just the empty ones. The above selector (before remove()) contains <input type=​"text" class=​"input-medium" name=​"field1" id=​"field1" value>​, so it looks as if there is no value set. There is a value set though, as confirmed by $('input[name="field1"]').val(), which correctly returns the text that is also visible on screen. What's up with that? Any ideas? Using jquery 1.7.2, Chrome <PHONE_NUMBER>.
0653091a9244e791c21c3a1d192aeefdd9504711a5b095c29315b0257fab2d79
['423e3c562a24451e8fee370b3132d3c5']
I need opinion of experts. I have GUI Desktop App, it's connected with external DB and everything works fine.I use GlassFish Server 4.1. I dont use any framefork such as Hibernate,XML,Spring. It's simple Desktop App with class Repository and methods. My question is... Is it possible to create Web Service for Java Desktop App? and what is the best way to do it cause I dont have option to create new Web Service in Java Application, only have that option when I start new web project. (Im using NetBeans). I dont know how to create wsdl from existing class. Here is my code my Repository class with few methods so u can see my point. public class Repository { static private Connection conn; static private PreparedStatement st; static private PreparedStatement st2; static private ResultSet rs ; public static List<Gender> getGender() { List<Gender> res = new ArrayList<>(); try{ conn = Database.getConnection(); st = conn.prepareStatement("select * from pitanja.gender"); rs = st.executeQuery(); res = new ArrayList<>(); while(rs.next()){ Gender g = new Gender(); g.id = rs.getInt("id"); g.tip = rs.getString("tip"); res.add(g);}} catch(SQLException | ClassNotFoundException ex){} return res; } public static void addUser(int sifra,Korisnik k) { try{ conn = Database.getConnection(); st = conn.prepareStatement("insert into korisnik(ime,prezime,br_index,gender) values (?,?,?,?)"); st.setString(1,k.ime); st.setString(2,k.prezime); st.setInt(3, k.br_index); st.setInt(4, k.gender.id); st.execute();}//izvrsi catch(SQLException | ClassNotFoundException ex){} } public static boolean UserValidation(int sifra) { boolean unique=true; try{ conn = Database.getConnection(); st = conn.prepareStatement("select * from korisnik where br_index = ? "); st.setInt(1, sifra); rs = st.executeQuery(); while (rs.next()){ unique= false;}} catch(SQLException | ClassNotFoundException ex){} return unique; } So as u can see this is just a part of my Repository methods, so I would like to hide my logic, I would like to create SOAP Web Service and after I create SOAP I will easly create Web Service Client and implement wsdl from remote machine. Thanks in advance
b532ae85a553be9f56a9dce6aa21b3514c5df8d46b23244e9890c20cb904362b
['423e3c562a24451e8fee370b3132d3c5']
my question is simple. I have Java App Project in NetBeans. My project use Derby DB and database was created via NetBeans in NetBeans. I know how to integrate a Java DB database into a NetBeans Platform application but that will take much more time and practicaly I will need to create new NetBeans Platform and do everything from begging. My question is there a posibility to create Installer that will include my existing database?! thanks in advance
1276d09c13f9802d124314298cef6387a2a1190be551f61df3b176f5539efda7
['4243f021f9d04247a5e50e0c7ba51134']
I ended up with the following solution: First, I specified a regular 2D grid using the NumPy linspace function: x_range = range(-5,6) y_range = range(-5,6) lines = np.empty((len(x_range)+len(y_range), 2, 100)) for i in x_range: # vertical lines linspace_x = np.linspace(x_range[i], x_range[i], 100) linspace_y = np.linspace(min(y_range), max(y_range), 100) lines[i] = (linspace_x, linspace_y) for i in y_range: # horizontal lines linspace_x = np.linspace(min(x_range), max(x_range), 100) linspace_y = np.linspace(y_range[i], y_range[i], 100) lines[i+len(x_range)] = (linspace_x, linspace_y) Then, I performed an arbitrary affine transformation on the grid. (This mimics the vector-matrix multiplication between activations and weights in a neural net.) def affine(z): z[:, 0] = z[:, 0] + z[:,1] * 0.3 # transforming the x coordinates z[:, 1] = 0.5 * z[:, 1] - z[:, 0] * 0.8 # transforming the y coordinates return z transformed_lines = affine(lines) Last but not least, using the (now transformed) coordinates making up each line in the grid, I applied a nonlinear function (in this case the logistic function): def sigmoid(z): return 1.0/(1.0+np.exp(-z)) bent_lines = sigmoid(transformed_lines) Plotting the new lines using matplotlib: plt.figure(figsize=(8,8)) plt.axis("off") for line in bent_lines: plt.plot(line[0], line[1], linewidth=0.5, color="k") plt.show() The result:
05955fcda7fc978f41ed53a6fd77ea4156b70debf5ae0f2d5a95a1b04cd96b71
['4243f021f9d04247a5e50e0c7ba51134']
How can i find the exact value of this? $$\sum_{n=1}^∞ \frac{f_n}{100^n}$$ Assuming that $ f_1=1$ and $f_2=1$ and $f_n=f_{n-1}+f_{n-2}$ I can approximate it to 0.01010203050813......... But what is the exact value? Should i use $\lim_{n\to ∞}$ ? And how to solve it? Thank you.
77ddd5dc8025296226e65ec030d7e7792d7da1711e80106960a2d83b60d4f0df
['4250afd1973047a3a5d1aba9b6b6473a']
One of the suggestions from a Microsoft TechEd sessions on security which I attended, to make all calls through stored procs and deny access directly to the tables. This approach was billed as providing additional security. I'm not sure if it's worth it just for security, but if you're already using stored procs, it couldn't hurt.
f4d11fc7c561a9d31724df20c44a163f3592a48548f15f16eaed0fbabe9cd327
['4250afd1973047a3a5d1aba9b6b6473a']
A free trade area such as EFTA is a much looser form of economic and political union than the EU. EFTA has negotiated access to the EU single market and has partially accepted EU laws relating to single market access. It's also largely signed up to the Schengen area free movement of people. It doesn't have EU style common policies, such as agriculture, fishing, transport and regions however and it has no plans for the sort of economic and political integration implied by eurozone membership.