Vote count: 0 I am trying to create my own custom configuration section with following: Code in the web.config file:...
ادامه مطلبVote count: 0 I have a project with Apache-Samza and I have a problem with duplicate data. This is my checkpoint configuration : task.checkpoint.factory=org.apache.samza.checkpoint.kafka.KafkaCheckpointManagerFactory task.checkpoint.system=kafka task.checkpoint.replication.factor=2 task.commit.ms=20000 On the documentation We can read this : If task.checkpoint.factory is configured, this property determines how often a checkpoint is written. The value is the time between checkpoints, in milliseconds. The frequency of checkpointing affects failure recovery: if a container fails unexpectedly (e.g. due to crash or machine failure) and is restarted, it resumes processing at the last checkpoint. ...
ادامه مطلبVote count: 0 please I am new in hosting projects. I am trying to deploy a laravel project to a shared hosting platform but it keeps giving me this error 500 -Inteal Server Error. It is currently working in my localhost. I have checked other site but with no avail even though .htaccess has been said to be the course but i am yet to figure it out. I have been trying for 5days but have not gotten it. This is my .htacess file Options -MultiViews RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ inde...
ادامه مطلبVote count: 0 I'm trying to do simple batch script (cmd) that will check if required packages are installed, if not it will install them and then will call my command. I've managed to check if node is installed using: node -v >nul 2>nul if %errorlevel%==9009 ( echo Install node.js and restart this script goto :EOF ) now I'm trying to check if specific npm package exists. I'm able to display error when package is not installed using: npm list bootprint --depth=0 >nul 2>nul || echo bootprint not found! but every line after after that isn't evaluated. Below is my full code: @echo off setlocal EnableDelayedExpansion ::check if node.js is installed node -v >nul 2>nul if %errorlevel%==9009 ( echo...
ادامه مطلبVote count: 0 I appreciate if someone can help me out with this issuse. I am starting a development for kibana plugin and installed all necessary packages. My environment is below. kibana 5.0.0 alpha5 (Used git clone from the git repository) I want to start the devlopment server other than 127.0.0.1:5601 so I have created config/kibana.dev.yml as below # Kibana is served by a back end server. This setting specifies the port to use. server.port: 5601 # This setting specifies the IP address of the back end server. server.host: "0.0.0.0" However, this seems not to be applied when I start the kibana server from npm start. It keeps starting at...
ادامه مطلبVote count: 0 We have a digital asset management (DAM) server that we host for a client. We had a little difficulty in installing the DAM to begin with as we have to employ an Apache VirtualHost in order to pass through 443 requests to 80 and then 8080. for the most part it works fine except for when trying to download an asset we are faced with a 'General Run Time Error'(see below). enter image description here I am convinced that the Virtual Host is causing the issue as the download button will work fine when accessed locally. Please find the config below: Serveame localhost DocumentRoot /opt/razuna_tomcat_1_8/tomcat/webapps/razuna ErrorLog /var/log/apache2/error_razuna.log CustomLog /var/...
ادامه مطلبVote count: 0 I have a simple form that will upload multiple files. I have created a custom file type in order to store other relevant data in the upload and i am trying to validate the files uploaded but the model fails to bind from my custom file type so the model.isvalid always retus false So i am trying to create a custom validation override that will work with my file structure but the value is always empty and i cant figure out the reason. The file property is : [Required(ErrorMessage = "Please select a file to upload")] [Display(Name = "Upload Files")] [ValidateFile] public virtual ICollection Files { get; set; } public class ValidateFileAttribute : ValidationAttribute { public overri...
ادامه مطلبVote count: 0 I did the following changes in mosquitto.conf password_file "etcmosquittopasswordfile.txt". allow_anonymous false. But still when i send the command mosquitto_pub -u admin -P (wrong password) -m "1" -t "topic" and mosquitto_sub -u admin -t "topic" I am still receiving, at the broker the message i am publishing. Should that be NOT happening? i created the password file using mosquitto_passwd -c "etcmosquittopasswordfile.txt" admin I am getting a feeling I am doing a very silly mistake. But just cant put a finger on it asked 21 secs agoshantanu Let's block ads!...
ادامه مطلبVote count: 0 I put together a form to submit data into a MySQL database. It worked before just fine I get an error - no response from mysqli coection but no mysql_error appears. I understand there is some room here from SQL injection - please discard that. Coection PHP Page Form PHP Page Attraction *...
ادامه مطلبVote count: 0 If you have encountered this fatal error because of Linters This is the way to fix Choose the target you are working on Choose Build Phase tab At Run Swift Linter section, remove the path of .swiftlint.yml file if (any) or tail the path of .swiftlint.yml to the root directory Command B to recompile code base The reason is the compiler will find the configuration in the present directory if any otherwise the root directory will be set by default asked 1 min agoJane chicken Let's block ads!...
ادامه مطلبVote count: 0 I am trying to add a onclicklistener and uncomment this line. Here is my modified code stolen from here @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_deviceitem_list, container, false); ToggleButton scan = (ToggleButton) view.findViewById(R.id.scan); // Set the adapter mListView = (AbsListView) view.findViewById(android.R.id.list); ((AdapterView) mListView).setAdapter(mAdapter); // Set OnItemClickListener so we can be notified on item clicks //mListView.setOnItemClickListener(this); mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void on...
ادامه مطلبVote count: 0 so in the code below, i'm doing a left outer join. But the thing I dont understand is : when the 2 tables are joined on dog_guid, apart from all of the rows from the reviews table which happens to be on the left, How can we process the condition WHERE d.dog_guid IS NULL as d.dog_guid has a NULL value and wont be a result of the join at all right ? Please help me out :) SELECT r.dog_guid AS rDogID, d.dog_guid AS dDogID, r.user_guid AS rUserID, d.user_guid AS dUserID, AVG(r.rating) AS AvgRating, COUNT(r.rating) AS NumRatings, d.breed, d.breed_group, d.breed_type FROM reviews r LEFT JOIN dogs d ON r.dog_guid=d.dog_guid AND r.user_guid=d.user_guid WHERE d.dog_guid IS NULL GROUP BY ...
ادامه مطلبVote count: 0 but I have noticed that my bridge variable is nil whenever I call on it from another method. I believe this is because the bridge is only set when calling on a bridged method from javascript. I have tried everything from creating delegate to create a SingleTon class. None of the above work and I caot figure out why it is only available in the method that I called from Javascript. Here is my class Helper.h #import "RCTBridge.h" #import "AppDelegate.h" #import "RCTEventEmitter.h" @interface Helper : RCTEventEmitter -(void) auth; @end Here is my .m file: Helper.m #import "AppDelegate.h" #import "Helper.h" #import "RCTBridge.h" #import "RCTEventDispatcher.h" @implementation Helper ...
ادامه مطلبVote count: 0 I'm new to coding (currently leaing c++ & I know a little of C)... was reading about functions in math.h and read about ero... According to the site I referred :- Domain error (input argument is outside the range in which the operation is mathematically defined, e.g. std::sqrt(-1), std::log(-1), or std::acos(2)). If MATH_ERO bit is set, EDOM is assigned to ero. If MATH_ERREXCEPT bit is set, FE_INVALID is raised. So I tried writing a small program with that knowledge... #include #include #include using namespace std; #define MATH_ERO 1 int main (void) { ero = 0; cout...
ادامه مطلبVote count: 0 i want to make edit-update function.. this is my code : Admin Controller public function edit_ist($id_prog) { $program_studi = ProgramStudi::find($id_prog); retu view('edit_ist_program_studi',compact('program_studi')); } public function update_ist($id_prog) { $istUpdate = Request::all(); $program_studi = ProgramStudi::find($id_prog); $program_studi->update($istUpdate); retu redirect('administrator'); } Form open in view edit_ist_program_studi {{ Form::model($program_studi,['method'=>'PATCH','route'=>['update_prodi',$program_studi->id_prog]])}} Routes: Route::patch('admin_page/edit_prodi/{id_prog}', ['as' => 'update_prodi', 'uses' => 'AdminController@update_ist']); But i found e...
ادامه مطلبVote count: 0 Hope someone can help me out here. I've written a python script that I want to run under CRON every 5 minutes. In keeping with the general security practice of least privilege, I: created a user "custom" to use for custom scripts created a group "custom" (don't want anything ruing under nobody to have access) and; put the script (monitor) in /home/custom/bin The shebang in the script is: #!/usr/bin/env python2.7 The only permission given to user custom is: Inherited from Name Description Action User - System: Shell account access Indicates whether the user is able to login for example via SSH. Ruing the script with the command /home/custom/bin/monitor from the command line work...
ادامه مطلبVote count: 0 I am new to uwp and I am trying to lea how to make a background task. I tried to follow the instruction I have found online but caot seem to get it working. I am not getting an explicit error but my background task is not writing to the debug console. Any help would greatly be appreciated. This is my main xaml This is my mainpage class This is my Background Task in the Windows Runtime Component Project("MyBackgroundTask") This is my manifest This is before I press the button This is after I press the button asked 32 secs agoDavid Wruck Let's block ads!...
ادامه مطلبVote count: 0 It has to be something simple that I'm missing, since this is my first try on MVC. Seems nothing works but the default route. This were my steps: Create new solution from an MVC5 template (Which comes with a HomeController and a Controller/Action/Id by default on the RouterConfig.Configuration. Add --> Controller named Foo --> Create an ActionResult named Details Add a View named Details Run the MVC project Appears the home page, and I change the url from localhost:50212 to localhost:50212/Foo/Details Result: I get a 404 Is it that the MVC AreaRegistration does not happen automatically on compile time? I went to the Global.asax and tried placing on Application_Start AreaRegistr...
ادامه مطلبVote count: 0 This worked, and then I migrated to webpack, and now it doesn't. It's worth noting the content shows up if I refresh the route in the browser. this is my app.html when I change from one view to another nav is supposed to update RPF and app.ts import { Router, RouterConfiguration } from "aurelia-router"; export class App { private router: Router; configureRouter( config: RouterConfiguration, router: Router ): void { config.title = 'RPF'; config.map( [ { route: [ '', 'home' ], name: 'home', nav: false, viewPorts: { content: { moduleId: 'main/home' }, authn: { moduleId: 'authn/login' }, } }, { route: 'manage-content', name: 'home', title: 'Manage Content', nav: true, viewPorts: { ...
ادامه مطلبVote count: 0 The PlacePicker is a useful widget added in com.google.android.gms:play-services-places:9.4.0. Find the description here: PlacePicker The documentation clearly states that you need the ACCESS_FINE_LOCATION permission for it to work. On Marshmallow and above you also must ask the user to grant this permission.But it seems to work without doing any of this!My app does provide a maps API key not define the permission in the AndroidManifest not ask the user to grant this permission at any time But ruing the app on an Marshmallow device DOES start the PlacePicker and I can correctly select a place (not possible without the API key). go to "My Location" via the MyLocation-Button (pos...
ادامه مطلب