Vote count: 0 I'm writing a small web application. I have a computer with created database with which I work. Application using servlet, jsp, postgresql, Maven ... When I completed yet placed on githab ... As a person who downloads it to run my project on my computer? It is as necessary at home to create a database or what? asked 33 secs agoAnton Let's block ads!...
ادامه مطلبVote count: 0 I've Wordpress site with WPML installed. I've done 2 things recently: This is done to improve SEO. However while I got that working without much problem using: # BEGIN HTTPS RewriteEngine On RewriteCond %{SERVER_PORT} ^80$ #RewriteCond %{HTTPS} !^on$ #RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] # END HTTPS # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress In apache.conf file Serveame evotec.xyz, ServerAlias evotec.pl www.evotec.pl and so on. I'm having probl...
ادامه مطلبVote count: 0 My mapping is: "alarmName" : { "type" : "string", "norms" : { "enabled" : false }, "analyzer" : "lowercase_analyzer" } and setting is: "analysis" : { "analyzer" : { "lowercase_analyzer" : { "filter" : [ "lowercase" ], "tokenizer" : "keyword" } } } I index some events with alarmName = "pro profile".but when i query with: { "query" : { "term" : { "alarmName" : "pro profile" } } } i get nothing.for all other words with space every things are OK, but for this words(pro profile) i have this problem.This is a bug?This is for that profile contains pro? asked 1 min agoArman Let's block ads!...
ادامه مطلبVote count: 0 First of all sorry to bring up another similar issue. But none of the other questions could not answer my challenges. I created a github project here https://github.com/winster/collapsingtoolbar. activity_scrolling.xml...
ادامه مطلبVote count: 0 This is my first website and I am very new to php (started leaing it two days ago) so please excuse my bad code. This is what my form looks like: First Name Last Name Phone Number Email Address Password Confirm Password My purpose for wanting a new page (post.php) is that I want to check if both password inputs match, that they are at least 8 characters and that no field is left blank. On that new page it will say whether anything is missing or if everything is good to go. Also do you have any tips on how to store that information from different users. (I thought of using fwrite to write into a .txt file, but wouldn't that erase the previous user information?) asked 1 min agoMo...
ادامه مطلبVote count: 0 Making a short little program which takes 3 numbers and tells you the largest one. Im a very new leaer so the code is really basic, but it should work. https://gist.github.com/anonymous/32cd9a53a876e8b5714e3344d6a1898a#file-gistfile1-txt Basically, if I input the numbers as 1,2,3/3,2,1/2,3,1, the result is expected (it says that 3 is the largest number, which it should. But if I enter in something like 2,1,3, it says that 2 is the largest number. this shouldn't make sense since it should it should check if both number1 and number2 are larger than number 3, which they arent, but it still outputs 2 as the largest. is there any fault with my code. remember, im a begier (like chapt...
ادامه مطلبVote count: 0 Is there another way to get a function from another page? My code: function getvoucher(id){ var url="http://inactive/test.php?id=" + id; $.get(url, function(data,status){ retu data; However, the console tells me that my get method is wrong, is there another way I could do this? asked 20 secs agojasmine825 Let's block ads!...
ادامه مطلبVote count: 0 I'm writing a template class which should behave like a container. Ier data is a vector of smart pointers to the generic class T. Header #include #include namespace Foo { template class AstrContainer { public: typedef boost::shared_ptr p_element; typedef std::vector v_p_elements; protected: v_p_elements _vData; public: AstrContainer(); virtual ~AstrContainer(); typename v_p_elements::iterator begin(); typename v_p_elements::iterator end(); }; } Source #include "AstrContainer.hpp" namespace Foo { template AstrContainer::AstrContainer() { } template AstrContainer::~AstrContainer() { } typename v_p_elements::iterator AstrContainer::begin() // - - - ERROR LINE 1 - - - { retu _vData...
ادامه مطلبVote count: 0 I am trying to couple wx.ListBox with wx.combo.Comboctrl. A sample code is below. For some reason, the items in the ListBox are not clickable/selectable. I wonder how I can make it work. Thanks! import wx, wx.combo class MainFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, title="", size=(300, 100)) gbs = wx.GridBagSizer() ComboCtrlBox = wx.combo.ComboCtrl(self) ComboCtrlPopup = ListBoxComboPopup() ComboCtrlBox.SetPopupControl(ComboCtrlPopup) ComboCtrlPopup.ListBox.Append("Apple") ComboCtrlPopup.ListBox.Append("Banana") ComboCtrlPopup.ListBox.Append("Orange") gbs.Add(ComboCtrlBox, pos = (0, 0), span = (1, 1), flag = wx.EXPAND|wx.ALL, border = 10) gbs...
ادامه مطلبVote count: 0 Every time when i try to install some package via composer in yii2. I have error like in picture. How can i fix this? Help me please! asked 20 secs agoIldar Nasurlaev Let's block ads!...
ادامه مطلبVote count: 0 I've been having a problem using Visual Studio to coect to a networked sql server with a networked user, a local administrator, and a domain administrator. Here's the coection string in Visual Studio: string coecitonstring = "Server=development;Database=testdb;User Id=TestUser;Password=TestPassword;"; co = new SqlCoection(coecitonstring); 1) Ruing Visual Studio as non-administrator and as an administrator, I get the following error. {"A network-related or instance-specific error occurred while establishing a coection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote coections...
ادامه مطلبVote count: 0 My Code. https://github.com/shingo-nakanishi/jekyll-dojo/tree/d2cf2ebb5a0cfe22864da7278bf38128a4b148b5 jekyll work in local but not work github. The page build failed with the following error: Your SCSS file css/main.scss has an error on line 36: File to import not found or unreadable: minima. For more information, see https://help.github.com/articles/page-build-failed-invalid-sass-or-scss. Why work in local? How to work in github? asked 48 secs agoshingo.nakanishi Let's block ads!...
ادامه مطلبVote count: 0 I need two modules (vfio and vfio_pci) to be loaded before another (nouveau). Right now, the setup I have, obtained via: echo options vfio-pci ids=$MY_VGA_ID,$MY_VGA_AUDIO_ID > /etc/modprobe.d/vfio.conf printf "vfionvfio_pcin" > /etc/modules-load.d/vfio.conf update-initramfs -u works, but I assume it does so by accident. What's the easiest, most standard way, to make sure the ordering is the one I need? asked 27 secs agoMarcus Let's block ads!...
ادامه مطلبVote count: 0 I am working on an upgrade for a Drupal instance. I've upgraded to 7.5.0 and also went to /update.php and upgraded the modules along with it. Now when I go to one of the pages that uses a webform and try to submit, nothing happens. On the production site, I get immediate client-side validation. On my local instance, no errors are given until I click on an input field and then off of it, but if I click the submit button I get no errors and no submit action happens (even if I fill out the form). Can anyone please guide me in the right direction here? This problem seems to stem from the process of updating all modules at /update.php asked 40 secs agoLansana Let's block ads!...
ادامه مطلبVote count: 0 Trying to automate decommission in sensu of shutedterminated instances in AWS via ec2_node handler in sensu-aws plugin. i dont have AIM role assigned to instance and dont have credential file with AWS access for sensu user. i want to use json config to include keys. handler-ec2_node.rb file have a template of json config: { "aws": { "access_key": "adsafdafda", "secret_key": "qwuieohajladsafhj23nm", "region": "us-east-1c" } } I created such file in conf.d directory setting appropriate credentials but get an error: 'require_credentials': unable to sign request without credentials set (Aws::Errors::MissingCredentialsError). looks like sensu does not use my credentials. or this key...
ادامه مطلبVote count: 0 i am trying to use gradient for my charts with angularjs1 using angular-chart.js version 1.0.0 but it seems that fillcolor does not recognize gradient here is my code down below var app = angular.module('starter', ['ionic', 'ngCordova', 'chart.js', 'ionic-modal-select']).controller('graphCtrl', function($scope) { var ctx = document.getElementById('base2').getContext('2d'); var gradient =ctx.createLinearGradient(0, 0, 0, 400); gradient.addColorStop(0, 'rgba(243, 103, 101,0.5)'); gradient.addColorStop(1, 'rgba(0, 89, 179,0.5)'); $scope.labels2 = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; $scope.data2 = [ [65, -59, 80, 81, -56, 55, -40], [28, 4...
ادامه مطلبVote count: 0 I am ruing below piece of code on button click but nothing is inserted in dummy_tbl table. DECLARE vRowNumber number; BEGIN FOR ii IN 1..wwv_flow.g_f01.count LOOP vRowNumber := WWV_Flow.g_f01(ii); insert into galaxy_apex.dummy_tbl values(vRowNumber); END LOOP; COMMIT; END The call reached to the pl/sql block when I insert some error in it. what am I doing wrong?? asked 18 secs agoShravan Yadav Let's block ads!...
ادامه مطلبVote count: 0 So, I've been struggling on this for a while and have searched on here for hours without finding anything that really helped. I have a custom class Streak. When the user creates a new Streak in my Main Activity, I want for that streak to be added to a list of total streaks, which I would then access from an AllStreaks activity. I have tried using Gson, but received errors. What I have below is working for the time being, but since my global variable has to be declared as new. I don't really want to use a MySQL database as this info needs to be quickly editable and I don't want to have to constantly coect to that to potentially change just one detail. Sorry if my code is a mess ...
ادامه مطلبVote count: 0 I am having some problems writing to a text using the correct format. I am pulling some windows event logs and saving the output to a text file. When I issue the following 2 commands $event = get-winevent -filterhashtable @{logname='ForwardedEvents'; id=4688} $event | format-list >> C:scriptsfile01.txt I get something like this saved to the text file with a bunch of white space and the line broken up because it is too long: New Process Name: C:WindowsSystem32SearchFilterHost.exe Is there anyway to make the output look like this instead: New Process Name: C:WindowsSystem32SearchFilterHost.exe thanks asked 31 secs agoChris Topher Let's block ads!...
ادامه مطلبVote count: 0 I have an array of objects like this: var bridges = {"countyCd:15 createdDate:"0001-01-01T00:00:00" createdUserId:0 createdUserIdZ:null createdUseame:null description:"SR 1@.-CENTRAL RR COMP OF IND" districtId:null encryptedId1:null encryptedId2:null isDirty:false modelState:null nbiNumber:10 routeNbr:"1" routeTypeCd:"SR" transactionType:null updatedDate:"0001-01-01T00:00:00" updatedUserId:0 updatedUserIdZ:null updatedUseame:null", [...]....} I have another array like this [countyCd, nbiNumber] How can create another array keeping just two properties so it becomes like bridges = {"countyCd:15 nbiNumber:10" , [...]....} asked 34 secs agow2olves Let's block ads!...
ادامه مطلب