Jump to content

Pedroalves

Members
  • Content count

    420
  • Joined

  • Last visited

Community Reputation

1 Comum

About Pedroalves

  • Birthday 12/08/1986

Informações Pessoais

  • Sexo
    Masculino
  • Localização
    Viana do Castelo Portugal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Pedroalves

    windows notificações de segurança maluco

    ok obrigada pela ajuda acabei por desistalar o antivirus e usar o windows defender
  2. o problema é o seguinte eu criei um gráfico e agora quero buscar dados mas so consigo por a funcionar se por assim estou a usar o angular 7, nodejs e mongodb let TotalSell = function() { var data = { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], datasets: [{ label: 'My First dataset', fillColor: 'rgba(220,220,220,0.2)', strokeColor: 'rgba(220,220,220,1)', pointColor: 'rgba(220,220,220,1)', pointStrokeColor: '#fff', pointHighlightFill: '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data: [65, 59, 80, 81, 56, 55, 40, 84, 64, 120, 132, 87] }] }; var options = { maintainAspectRatio: false, // Sets the chart to be responsive responsive: true, ///Boolean - Whether grid lines are shown across the chart scaleShowGridLines: true, //String - Colour of the grid lines scaleGridLineColor: 'rgba(0,0,0,.05)', //Number - Width of the grid lines scaleGridLineWidth: 1, //Boolean - Whether the line is curved between points bezierCurve: false, //Number - Tension of the bezier curve between points bezierCurveTension: 0.4, //Boolean - Whether to show a dot for each point pointDot: true, //Number - Radius of each point dot in pixels pointDotRadius: 4, //Number - Pixel width of point dot stroke pointDotStrokeWidth: 1, //Number - amount extra to add to the radius to cater for hit detection outside the drawn point pointHitDetectionRadius: 20, //Boolean - Whether to show a stroke for datasets datasetStroke: true, //Number - Pixel width of dataset stroke datasetStrokeWidth: 2, //Boolean - Whether to fill the dataset with a colour datasetFill: true, // Function - on animation progress onAnimationProgress: function() { }, // Function - on animation complete onAnimationComplete: function() { }, //String - A legend template legendTemplate: '<ul class="tc-chart-js-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>' }; // Get context with jQuery - using jQuery's .get() method. var ctx = $("#TotalSell").get(0).getContext("2d"); // This will get the first returned node in the jQuery collection. var chart1 = new Chart(ctx).Line(data, options); //generate the legend var legend = chart1.generateLegend(); //and append it to your page somewhere $('#TotalSellLegend').append(legend); }; <div class="col-sm-6"> <h5 class="over-title margin-bottom-15" style="text-align:center;">Total Sell</h5> <canvas id="TotalSell" class="full-width"></canvas> <div class="margin-top-20"> <div class="inline pull-left"> <div id="TotalSellLegend" class="chart-legend"></div> </div> </div> </div> o meu problema é como ponho a mostrar dados sem inserir dados aqui data: [65, 59, 80, 81, 56, 55, 40, 84, 64, 120, 132, 87] }] o meu objectivo é quando por a minha base de dados ele for buscar los a minha base de dados ou seja não quero ter que inserir manualmente no data:[] basicamente quero passar de dados staticos para dinamicos o que estou a fazer de errado
  3. o meu windows notificação em vez em quando diz me que tenho a firewall do windows e do avast desabilidado mas quando abro o meu avast vou a firewall e ele esta activo o que pode ser virus ja reparei a instalação do meu antivirus alguem me pode ajudar
  4. estou a usar o nodejs com express e mysql eu o seguinte problema quero numa simples rota multiplos metados router.get('/Administration/Alliances', (req, res) => controllerAdmin.findcidade3(connection, req, res)); router.get('/Administration/Alliances', (req, res) => controlleruser.findAlianca(connection, req, res)); quer o findcidade e o findaliance render o mesmo ficherio
  5. obrigada pela ajuda o meu pc estava infectado ?? ou era apenas lixo como adwares
  6. acho que não detectou trojan mais tenho que fazer um scan novamente o trojans que eu falo são estes: JS:ScriptIP-inf[Trj] ele pediu-me para actualizar a versao e eu disse que não fiz bem devida ter actualizado a versão segue-se o log # ------------------------------- # Malwarebytes AdwCleaner 7.2.1.0 # ------------------------------- # Build: 06-26-2018 # Database: 2018-08-17.2 # Support: https://www.malwarebytes.com/support # # ------------------------------- # Mode: Clean # ------------------------------- # Start: 08-19-2018 # Duration: 00:00:03 # OS: Windows 10 Pro # Cleaned: 5 # Failed: 0 ***** [ Services ] ***** No malicious services cleaned. ***** [ Folders ] ***** Deleted C:\Users\Public\Documents\Downloaded Installers ***** [ Files ] ***** No malicious files cleaned. ***** [ DLL ] ***** No malicious DLLs cleaned. ***** [ WMI ] ***** No malicious WMI cleaned. ***** [ Shortcuts ] ***** No malicious shortcuts cleaned. ***** [ Tasks ] ***** No malicious tasks cleaned. ***** [ Registry ] ***** Deleted HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run|Web Companion Deleted HKLM\Software\Wow6432Node\Classes\Interface\{47A1DF02-BCE4-40C3-AE47-E3EA09A65E4A} Deleted HKLM\Software\Wow6432Node\Classes\CLSID\{47A1DF02-BCE4-40C3-AE47-E3EA09A65E4A} Deleted HKLM\Software\Wow6432Node\Classes\CLSID\{B9D64D3B-BE75-4FA2-B94A-C4AE772A0146} ***** [ Chromium (and derivatives) ] ***** No malicious Chromium entries cleaned. ***** [ Chromium URLs ] ***** No malicious Chromium URLs cleaned. ***** [ Firefox (and derivatives) ] ***** No malicious Firefox entries cleaned. ***** [ Firefox URLs ] ***** No malicious Firefox URLs cleaned. ************************* [+] Delete IFEO [+] Delete Prefetch [+] Delete Tracing Keys [+] Reset Chromium Policies [+] Reset IE Policies [+] Reset Proxy Settings ************************* AdwCleaner[S00].txt - [1718 octets] - [19/08/2018 11:36:58] ########## EOF - C:\AdwCleaner\Logs\AdwCleaner[C00].txt ##########
  7. eu estou a tentar a criar um sistema que gera recursos aos jogadores como acontece com os jogos online tipo ogame ou ikaria eu quero por exemplo a mina esta a nivel 1 produz 20 unidades a hora a nivel 2 produz 32 unidades a hora socidamente eu em php tentei server loop push mas em nodejs não sei por onde começar estou a usar o nodejs e express com mysq
  8. segue-se o log ~ ZHPCleaner v2018.8.16.160 by Nicolas Coolman (2018/08/16) ~ Run by Pedro Quesado (Administrator) (19/08/2018 00:18:46) ~ Web: https://www.nicolascoolman.com ~ Blog: https://nicolascoolman.eu/ ~ Facebook : https://www.facebook.com/nicolascoolman1 ~ State version : Version KO ~ Certificate ZHPCleaner: Legal ~ Type : Repair ~ Report : C:\Users\Pedro\Desktop\ZHPCleaner.txt ~ Quarantine : C:\Users\Pedro\AppData\Roaming\ZHP\ZHPCleaner_Reg.txt ~ UAC : Activate ~ Boot Mode : Normal (Normal boot) Windows 10 Pro, 64-bit (Build 17134) ---\\ Alternate Data Stream (ADS). (0) ~ No malicious or unnecessary items found. ---\\ Services (0) ~ No malicious or unnecessary items found. ---\\ Browser internet (1) DELETED data: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\zonemap\domains\webcompanion.com\\http [Bad : Sensitive Websites] =>PUP.Optional.LavasoftWebCompanion ---\\ Hosts file (1) ~ The hosts file is legitimate (2) ---\\ Scheduled automatic tasks. (0) ~ No malicious or unnecessary items found. ---\\ Explorer ( File, Folder) (2) MOVED file: C:\Users\Pedro\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\BitTorrent.lnk [Bad : C:\Users\Pedro\AppData\Roaming\BitTorrent\BitTorrent.exe](.BitTorrent Inc..) =>BitTorrent (P2P) MOVED folder: C:\Users\Pedro\AppData\Local\SlimWare Utilities Inc =>.SUP.SlimWareUtilities ---\\ Registry ( Key, Value, Data) (6) DELETED key*: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorrent [BitTorrent Inc.] =>BitTorrent (P2P) DELETED key*: HKCU\Software\Lavasoft\Web Companion [] =>PUP.Optional.LavasoftWebCompanion DELETED key*: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\webcompanion.com [] =>PUP.Optional.LavasoftWebCompanion DELETED key*: HKLM\SOFTWARE\Wow6432Node\Lavasoft\Web Companion [] =>PUP.Optional.LavasoftWebCompanion DELETED key: HKLM\SOFTWARE\Lavasoft\Web Companion [] =>PUP.Optional.LavasoftWebCompanion DELETED key*: [X64] HKLM\SOFTWARE\Wow6432Node\SlimWare Utilities Inc [] =>.SUP.SlimWareUtilities ---\\ Summary of the elements found (3) https://nicolascoolman.eu/2017/03/12/superfluous-lavasoftwebcompanion/ =>PUP.Optional.LavasoftWebCompanion https://nicolascoolman.eu/2017/01/27/repaquetage-et-infection/ =>BitTorrent (P2P) https://nicolascoolman.eu/2017/03/03/superfluous-slimwareutilities/ =>.SUP.SlimWareUtilities ---\\ Other deletions. (50) ~ Registry Keys Tracing deleted (48) ~ Remove the old reports ZHPCleaner. (2) ---\\ Result of repair ~ Repair carried out successfully ~ Browser not found (Google Chrome) ~ Browser not found (Opera Software) ---\\ Statistics ~ Items scanned : 2036 ~ Items found : 0 ~ Items cancelled : 0 ~ Items options : 0/7 ~ Space saving (bytes) : 0 ~ End of clean in 00h00mn21s ---\\ Reports (2) ZHPCleaner--19082018-00_18_25.txt ZHPCleaner-[R]-19082018-00_19_07.txt
  9. segue-se o resultado Fix result of Farbar Recovery Scan Tool (x64) Version: 02.08.2018 Ran by Pedro Quesado (18-08-2018 14:31:13) Run:1 Running from C:\Users\Pedro\Desktop Loaded Profiles: Pedro Quesado (Available Profiles: Pedro Quesado & Pedro & Administrador) Boot Mode: Normal ============================================== fixlist content: ***************** CloseProcesses: HKU\S-1-5-21-2955925240-1096623219-443652941-1000\...\Run: [Web Companion] => C:\Program Files (x86)\Lavasoft\Web Companion\Application\WebCompanion.exe --minimize GroupPolicy: Restriction ? <==== ATTENTION GroupPolicy\User: Restriction ? <==== ATTENTION HKU\S-1-5-21-2955925240-1096623219-443652941-1000\Software\Microsoft\Internet Explorer\Main,Start Page = hxxp://google.pt/ SearchScopes: HKU\S-1-5-21-2955925240-1096623219-443652941-1000 -> {C0C3A6C6-03BC-4195-8FCB-AEA091301353} URL = hxxps://search.yahoo.com/yhs/search?hspart=lvs&hsimp=yhs-awc&type=lvs__webcompa__1_0__ya__ch_WCYID10427__180526__yaie&p={searchTerms} FF NewTab: Mozilla\Firefox\Profiles\ixdg9mn0.default -> hxxps://search.yahoo.com/yhs/web?hspart=lvs&hsimp=yhs-awc&type=lvs__webcompa__1_0__ya__hp_WCYID10427__180526__yaff Task: {00e220a5-0824-47f5-afe6-5609c16178de} - no filepath ShortcutWithArgument: C:\Users\Pedro\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Node.js\Node.js command prompt.lnk -> C:\Windows\SysWOW64\cmd.exe (Microsoft Corporation) -> /k "C:\Program Files (x86)\nodejs\nodevars.bat" Task: {18515B67-9C76-4549-9D17-25C9BD18495B} - System32\Tasks\Adobe Acrobat Update Task => C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\AdobeARM.exe [2018-03-21] (Adobe Systems Incorporated) CreateRestorePoint: Emptytemp: Hosts:
  10. fiz um com o meu antivirus e detetou 3 trojan e tenho o pc bastante lento segue-se os links https://www.cjoint.com/c/HHmudNyXmWu https://www.cjoint.com/c/HHmufArE0Bu
  11. Pedroalves

    problema com os tabs

    ja consegui resolver o problema como ponho o nodejs a buscar dados e mostrar no express
  12. Pedroalves

    problema com os tabs

    não estou a conseguir por os meu tabs a mudar o texto quando carrego por exemplo no geral ele devia mudar pro texto do geral mas não consigo por estou a usar o nodejs com express news.js extends layout block content h1 Last News section#page-title h1.mainTitle br .tabbable ul#myTab2.nav.nav-tabs.nav-justified li.active a(href='#All', data-toggle='tab') | All li a(href='#Geral', data-toggle='tab') | General li a(href='#Events', data-toggle='tab') | Events li a(href='#Updates', data-toggle='tab') | Updates li a(href='#Sales', data-toggle='tab') | Sales li a(href='#Community', data-toggle='tab') | Community .tab-content #All.tab-pane.fade.in.active p | Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. p | Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. #Geral.tab-pane.fade p | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo. p | Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. #Events.tab-pane.fade p | Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. p | Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. #Updates.tab-pane.fade p | Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. p | Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. #Sales.tab-pane.fade p | Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. p | Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. #Community.tab-pane.fade p | Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. p | Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. news.js var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.render('news', { title: ' Last news' }); $(document).ready(function(){ $(".nav-tabs a").click(function(){ $(this).tab('show'); }); }); }); module.exports = router; o que estou a fazer mal
  13. quando tento inserir novo dados com o ckeditor da me a descricão esta indefenido mas se o tirar da textarea ele funciona bem <button class="btn btn-primary btn-o pull-right" data-toggle="modal" data-target=".bs-example-modal-lg"> Novo Servico </button> <br> <div ng-app="sa_app" ng-controller="controller" ng-init="show_data()"> <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <ul class="nav nav-pills nav-justified" > <li class="active"><a data-toggle="pill" href="#home">Dados</a></li> <li><a data-toggle="pill" href="#Descricao">Descricao</a></li> </ul> <div class="tab-content"> <div id="home" class="tab-pane fade in active"> <label>Nome do Servico</label> <input type="text" name="nome" ng-model="nome" class="form-control"> <br/> <label>Quantidade</label> <input type="text" name="quantidade" ng-model="quantidade" class="form-control"> <br/> <label>Nome da Empresa</label> <select ng-init="show_data1()" class="form-control" name="Nome" ng-model="Nome"> <option ng-repeat="x1 in names1" value={{x1.id}}>{{x1.Nome}}</option> <option>Selecione Empresa</option> </select> <br/> <label>Descontos</label> <select ng-init="show_descontos()" class="form-horizontal" name="descontos" ng-model="descontos"> <option ng-repeat="desc in desco" value={{desc.id}}>{{desc.taxa}}</option> <option>Selecione o Descontos</option> </select> <label>IVA</label> <select ng-init="show_iva()" class="form-horizontal" name="iva" ng-model="iva"> <option ng-repeat="iva in ivas" value={{iva.id}}>{{iva.txt}}</option> <option>Selecione Iva</option> </select> <br/> <label>Preco Sem iva</label> <input type="text" name="precosiva" ng-model="precosiva" class="form-control"> <br/> <input type="hidden" ng-model="id"> </div> <div id="Descricao" class="tab-pane"> <label>Descrição</label> <!--textarea class="form-control ckeditor" cols="5" name="descricao" id="descricao" ng-model="descricao" rows="5"></textarea--> <textarea class="form-control" cols="5" name="descricao" id="descricao" ng-model="descricao" rows="5"></textarea><!---Work --> <br/> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary btn-o" data-dismiss="modal"> Close </button> <button type="button" class="btn btn-primary" name="insert" ng-click="insert()" value="{{btnName}}" data-dismiss="modal"> Save changes </button> </div> </div> </div> </div> <script> var app = angular.module("sa_app", ['ui.bootstrap']); app.filter('startFrom', function() { return function(input, start) { if(input) { start = +start; //parse to int return input.slice(start); } return []; } }); app.controller("controller", function($scope, $http,$timeout) { $scope.btnName = "Insert"; $scope.insert = function() { if ($scope.nome == null) { alert("Insira o nome do Servico"); } else if ($scope.descricao == null) { // alert("Insira a descricao"); alert($scope.descricao); } else if ($scope.quantidade == null) { alert("insira a quantidade"); } else if ($scope.Nome == null) { alert("insira a Nome da Empresa"); } else if ($scope.precosiva == null) { alert("insira a O Valor do Preço"); } else if ($scope.descontos == null) { alert("insira a O Valor do Desconto"); } else if ($scope.iva == null) { alert("insira a O Valor do IVA"); } else { $http.post( "servicos/insert.php", { 'nome': $scope.nome, 'quantidade': $scope.quantidade, 'Nome': $scope.Nome, 'precosiva': $scope.precosiva, 'descontos': $scope.descontos, 'iva': $scope.iva, 'descricao': $scope.descricao, 'btnName': $scope.btnName, 'id': $scope.id } ).success(function(data) { alert(data); $scope.nome = null; $scope.descricao = null; $scope.quantidade = null; $scope.Nome=null; $scope.precosiva = null; $scope.descontos = null; $scope.iva = null; $scope.btnName = "Insert"; $scope.show_data(); }); } } $scope.show_data = function() { $http.get("servicos/display.php") .success(function(data) { $scope.names = data; $scope.currentPage = 1; //current page $scope.entryLimit = 5; //max no of items to display in a page $scope.filteredItems = $scope.names.length; //Initially for no filter $scope.totalItems = $scope.names.length; }); } $scope.show_data1 = function() { $http.get("servicos/display1.php") .success(function(data) { $scope.names1 = data; }); } $scope.show_descontos = function() { $http.get("servicos/descontos.php") .success(function(data) { $scope.desco = data; }); } $scope.show_iva = function() { $http.get("servicos/iva.php") .success(function(data) { $scope.ivas = data; }); } $scope.update_data = function(id,nome,descricao,quantidade,Nome,precoiva,descontos,iva) { $scope.id = id; $scope.nome = nome; $scope.descricao =descricao; $scope.quantidade = quantidade; $scope.Nome=Nome; $scope.precosiva = precoiva; $scope.descontos= descontos; $scope.iva = iva; $scope.btnName = "Update"; } $scope.setPage = function(pageNo) { $scope.currentPage = pageNo; }; $scope.filter = function() { $timeout(function() { $scope.filteredItems = $scope.filtered.length; }, 10); }; $scope.sort_by = function(predicate) { $scope.predicate = predicate; $scope.reverse = !$scope.reverse; }; $scope.delete_data = function(id) { if (confirm("Are you sure you want to delete?")) { $http.post("servicos/delete.php", { 'id': id }) .success(function(data) { // alert(data); $scope.show_data(); }); } else { return false; } } }); </script>
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.