Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
NSInteger, like float, are not Objective-C types and do not follow the usual retain/release model. They're just primitives. Assigning values to the property will be sufficient. @property (readwrite, assign) NSInteger buttonCount; should be all you need. NSNumber however does follow the usual retain/release cycle, so ...
I'm having some trouble understanding something. I got a bunch of propeties in my app: @property (nonatomic, retain) AVAudioPlayer *audioPlayer; @property (readwrite) NSInteger buttonCount; @property (nonatomic, retain) NSString *soundSelected; @property (readwrite) float fadeDecrease; @property (readwrite) float fade...
Objective C: Releasing int/float properties
Rename your filepre-commit.ps1topre-commit.
I have a repo set up which is supposed to run a fairly simple pre-push/pre-commit powershell script (It doesn't really matter when the script executes). However, for the life of me I cannot get it to run. I have tried to usechmod +x .git/hooks/*andchmod ug+x .git/hooks/*I have tried editing the#!/bin/...and even remov...
Local Git Hook Pre-Commit/Pre-Push does not run (Windows)
When you load a compressed image, such as a JPEG image it will usually be uncompressed (since that is what needs to be done so that you can do something useful with the image, such as displaying or manipulating it). The uncompressed image will definitely be larger than the 44 KiB the compressed image in JPEG form occu...
I'm writing an application that needs to hold around forty 44 kb JPEGs in memory at once. I've heard that applications can use around 22 megabytes before triggering a low memory warning, so I'm pretty sure it should be able to do this. However, once I pass around a megabyte loaded, these messages start popping up in t...
Why does loading more than a megabyte of images consume all of my iPhone's memory?
<div class="s-prose js-post-body" itemprop="text"> <p>Your existing <code>dist.conf</code> is <em>designed</em> to block URIs ending with <code>.php</code>. The <code>internal</code> directive prevents a location from being directly accessed, and there is also a location which explicitly returns 404 for any URI ending ...
<div class="s-prose js-post-body" itemprop="text"> <p>I have two docker containers as below:</p> <pre><code>nginx ==&gt; working as proxy web server (nginx web server) dist ==&gt; working as a php-fpm container </code></pre> <p>And this is my <code>dist.conf</code>:</p> <pre><code>server { server_name dist.me.com;...
nginx serving only / but not any other files
I discovered this method to clear cache: [[[PINRemoteImageManager sharedImageManager] cache] removeObjectForKey: [[PINRemoteImageManager sharedImageManager]cacheKeyForURL:your_URL processorKey:nil]]; So, in your - (void)viewWillAppear:(BOOL)animated you can set again your ImageView with your_URL. That did the tr...
I'm using PINRemoteImage in my iOS App for setting image on UIImageView. I always have the same link for image, but in meantime image can change (I can upload different image), but whenever I call pin_setImageFromURL on UIImageView it always sets an old image (not if I delete app and reinstall it). I found out that ca...
PINRemoteImage delete cache
As of the announcement at the re:Invent 2018 keynote,Jetbrainsnow offers theAWS Toolkitwhich allows local and remote development of Lambda functions.Despite some lingering issues it works quite well.User exan has provided the link on AWS' sitehereThere is also a blog postwhen using PyCharm on MacOSToolkit page on Jetbr...
I am looking forward to developing some AWS lambda functions in python using PyCharm. How can I setup my IDE to develop and test the function locally? Can experts guide how to set it up? Any links or relevant tutorials will be really helpful.
How to setup PyCharm to develop AWS Lambda function on local machine?
Your method is fine. Here are more valid configurations:http to https through .htaccessI believe this is the most common variation:RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]Regarding your SEO/ranking concerns: Switching to HTTPS won't hurt your ranking - i...
I have used .htaccess file to change my site HTTP to HTTPS and it seems the code works well, but I don't know if it is in the correct way and will this hurt my SEO?The code:Options -Indexes RewriteEngine on RewriteBase / RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]Th...
Correct method to change HTTP to HTTPS by 301 Redirect? Will it hurt my SEO?
1 Yes, there are some types of caches that cannot be dropped. For instance, tmpfs filesystems are stored in page cache. But these could not be flushed while in use. You can get better picture of how much memory you really have available by using free command, and checking a...
I am currently working on optimizing the memory management of a large program. For some pupose, I want to drop the page cache in my main memory. I used sync && echo 3 > /proc/sys/vm/drop_caches as widely suggested by the internet, but it does not drop the cache to the level where it was before the program starts. Th...
Drop cache does not work
AWS CodeBuild supports alternate build specification file. A sample can be found in this AWS blog: https://aws.amazon.com/blogs/devops/create-multiple-builds-from-the-same-source-using-different-aws-codebuild-build-specification-files/ Name your build specification file differently per stage. For example, buildspec_de...
I have a single repository hosted in AWS CodeCommit with a buildspec.yml in the root that is used by AWS CodeBuild to build from the source. Is it possible to pass in a variable / read the source (AWS Pipeline arn?) or something similar, such that I can determine in AWS CodeBuild whether to do a Dev, Test or Prod bui...
How to build to Dev/Test/Prod with AWS CodeBuild
"I see that CloudFront automatically uses the closest region to the end user"You're mixing up your information here. CloudFront automatically uses the closestedge locationto the end user.S3 buckets only live in a single region. If you tell CloudFront to create a distribution for an S3 bucket in theus-east-1region, then...
I'm using CloudFront on top of a S3 bucket mostly to help me reduce the cost my hosting bill.10000 HTTP Requests on S3 cost $0.01 on US Standard Region and same requests cost 0.0075 on CloudFront's US region.I see that CloudFront automatically uses the closest region to the end user and therefor I see in some cases hea...
Is it possible to limit CloudFront to a specific region?
3 I think the Virtual Machine is the best solution because it is pretty light, can be easily exported/copied (saved in Dropbox also!) and can be destroyed easily too. This is my setup on my personal computer that I use sometimes when I work from home : OS: Windows 7 with ...
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 9 years ago. ...
The best way to install ruby on rails on linux for development [closed]
Use a Lambda function—rather than the Amazon SNS topic—as a target for the CloudWatch Events rule. Then, configure the Lambda function to publish a custom message to the Amazon SNS topic when triggered by the CloudWatch Events rule.Documented here:https://aws.amazon.com/premiumsupport/knowledge-center/change-sns-email-...
I have setup a rule in cloudwatch to monitor Glue ETL. In the state change I am sending a notification to SNS. I have modified the input transformer to get a custom body of the email but not getting how to change the subject line of the email . It still giving the default "AWS Notification Message"My Input transformer ...
How to change the default subject line for SNS in Cloudwatch?
You can't do this kind of conditional processing at the template level.But, to achieve your desired outcome, you can do one of 2 things.Option 1Pass all the parameters required for the condition to process at the template level, likeMQTT-PORTand map the correct port number when building your service. This might be the ...
Currently I have an OKD/openshift template which exposes port 1883 on a specific container:ports: - name: 1883-tcp port: 1883 containerPort: 1883 protocol: TCP hostPort: ${MQTT-PORT}Is it possible to have an if/else clause depending on parameters. For example:ports: - name: 1883-tcp port: 1883 conta...
Openshift/OKD template if/else condition
First, to be comfortable and safe, do a quick backup for your master branch.git branch backup_master masterThen, as kowsky commented, the general principle is to mergealtered_twigintomaster:git checkout master git merge altered_twigNote : at this point, it is possible (depending on the nature of your changes) that conf...
Ok, I have a git with the master branch and a altered (twig) branch.Right now they are in this way:Master Update - o o -> Altered Twig Branch | | | / |/ Master Original - oRight now, when I change the master, I need to manually incorporate the alterations ...
Branching in Git and recover to another branch
Update:This functionality was added inhttps://github.com/hashicorp/terraform-provider-aws/pull/18276and released as part ofv3.35.0 of the AWS provider.You should now be able to add tags to youraws_iam_policyresources as you'd expect:resource "aws_iam_policy" "policy" { name = "test_policy" path = "/" ...
I'm trying to create a policy following theTerraform documentationresource "aws_iam_policy" "policy" { name = "test_policy" path = "/" description = "My test policy" policy = jsonencode({ Version = "2012-10-17" Statement = [ { Action = [ "ec2:Describe*", ] ...
Include tags on aws_iam_policy resource on Terraform
pip install --proxy <address:port> <modulename>Actually,Configuring PIP to work from behind a proxygives correct answer. And I used wrong proxy address.
I have Python 3.6 and pip 10.0.1 installed on Windows 8. I am behind corporate firewall. Pip installs downloaded whls locally, no problem. But when I try to install wheels from Internet typing e.g.pip install sql, I get the following:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) afte...
pip does not install wheels from pypi.org (firewall)
Do not invoke function_2 from function_1.Write the two functions to be able to complete their respective tasks independently.In order to control the flow of execution, you should use AWS Step Functions, which lets you co-ordinate between your various lambda functions.If you want to persist information, use another stor...
In Serverless, I have the following folder structure/component_a/function_1/function_1.js (get) /component_a/function_2/function_2.js (get)What is the best way from function_1 to call function_2 using the Serverless Framework?
What is the best practice to call an api gateway method from another method?
Assuming you have access to the repository, click "Edit" from the repository header in your account, then enter you can change the homepage and description.
When I get the data of an repository via the API there is this key "homepage" which is "null" in my cases. Is there any way to to set a value for it e.g. the URL of the gh-page of this repo without using the API? Maybe via the settings of the repo or the config file or doing something like 'git config homepage "http:/...
How can I set a value for the key "homepage" without using the API?
4 When you are using the shell executor, your jobs will be executed just as if you were running that shell manually. If you then want to use a docker image for building, you just have to do it as you would do manually when building using a docker image from your shell. Fr...
I am having troubles with gitlab-ci with docker image. Searched a lot in the internet and still confused. The Problem: I need to use docker image as base for my gitlab ci build. I am using shell executor, and in my gitlab-ci.yml I defined image like this: image: "registry.gitlab.com/my_projects/my_repo:latest" I ...
Gitlab CI with shell executor and docker image as base
This is only possible if you are using NodePort type service. It's because by design the NodePort is opened on all nodes in the cluster including master nodes.From thedocsNodePort: Exposes the Service oneach Node's IPat a static port (the NodePort). A ClusterIP Service, to which the NodePort Service routes, is automati...
Is it normal that I can access a pod through any worker node IP and also through master node IP?kubectl get pods -o wideshows that the pod is on one specific worker node but I can access it from any master or woker public IP. I have 1 replica of that pod.Can someone help explain why?
Why can I access kubernetes pod from any worker and master public IP?
6 GitHub uploads were discontinued on december 11th. See the blog post for more information. Summary: You can't upload anymore and the download tab is gone. The download area and the downloads will continue to work for another 90 days. Just add /downloads to the link o...
I used to upload binary files using the downloads / add download ... button on the files tab in my repo. This functionality seems to be gone. Does anybody have any idea why? Temporary Github issue / browser issue / ...?
Github Download Page / Button not visible anymore
If your volume mapping is correct, the source code changes should reach your node.js app container. You can verify it by inspecting the source code inside the container after you make a change on docker host. I'm currently in development mode, and I have to test the source code repeatedly so I want to use bind mounts...
I'm building a NodeJS application on Docker in Swarm mode (single node). I'm using bind mount volume for NodeJS source code. Everything runs perfectly and I can see the output in localhost from NodeJS and Express, but when I change something in NodeJS code (which is in a bind mount volume), nothing changes. I have to ...
NodeJS is not detecting change in Docker Bind Mount until Swarm is restarted
I ended up with the following function (with the help of someone on the Alexa slack):function countDown(numSeconds, breakTime) { return Array.apply(null, {length: numSeconds}) .map((n, i) => {return `<say-as interpret-as="cardinal">${numSeconds-i}</say-as>` }) .join(`<break time="${breakTime ? break...
I want to be able to have alexa (audibly) countdown 15 seconds in my skill. I know I can just<break time="15s" />in SSML. But that isn't audible. I also know I can just do:15<break time="1s" /> 14<break time="1s" />or better yet (to account for the time it takes to say the number)15<break time="0.85s" /> 14<break time=...
How to make Alexa countdown in seconds
Your browser is keeping the javascript compiled by GWT for you application in cache. Easy solution, do a hard refresh of your page a couple of times (ctrl + F5, or cmd + shift + R). If you want to prevent this, see this question
I am using AppEngine with Restlet to serve my data to a GWT app in the browser as client. The Restlet-GWT edition uses GWT-RPC serialization as the transport format underneath. GWT-RPC serialization relies on the shared source between client and server to serialize/deserialize. Now, after adding a new property to one ...
After hitting the server, browser still uses a cached version
Seems the new "Timeseries" Graph can't do it (yet?). However you can select "Graph (old)" which still has this functionality.ShareFollowansweredJun 24, 2021 at 13:49fkofko9155 bronze badges21According to their support form, this feature should be available in 8.2community.grafana.com/t/grafana-8-legend-sort/49566/3. Al...
Before grafana 8 (i'm using it in combination with influxdb) it was possible to sort legend values, like this:Starting from version 8 in new charts I don't see such option:Is it possible to achieve this option on version 8?
Grafana 8 sort legend
To answer your question, we can look at the physics of what actually happens during a pull request. Let's say that you have some feature branch which is ready to be merged back to master in GitHub. The direction of code flow during the pull request isfromyour feature branchtothe master branch. So, from the point of ...
As far as I could understand, if one wants to contribute code to a repository, one would clone/pull and edit. After that, one would push the changes to, e.g. github. Aren't they actually "pushes"?
Trying to understand the workflow of a "pull request": why are they called this way?
Thekeepaction drops everything that doesn't match, so that single action is enough to do what you want.
I am trying to drop all but a few whitelisted metrics in prometheus. I can persist them selectively with something like this:metric_relabel_configs: - source_labels: [__name__] regex: (?i)(metric1|metric2|metric3) action: keepHowever I want to drop all of the other, non-matching metrics. Is there any straight...
How can I drop all but a few whitelisted metrics in prometheus?
To debug this I would first put some puts with status text in App.send_statusThen go to server and add the following line in 'crontab -e'[email protected]All the puts output should be in your mailbox shortly after execution.
I am trying to setup a cron job using thewhenevergem. I have written when the cron job should be run in the schedule.rb and also updated the crontab as mentioned in therailscastsepisode. But the cron job does not seem to be running. I am just using it in the local machine.This is the schedule.rb codeevery :sunday, :at...
Problem while writing the cron job using whenever ruby gem
IPV6 is just an extension. To find info on them its easiest to search for "DNS AAAA record".Here is the RFC you requested:http://www.ietf.org/rfc/rfc3596.txt
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.Closed10 years ago.Questions asking us torecommend or find a tool, library or favorite off-site resourceare off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead,describe the probleman...
Structure of IPv6 DNS record [closed]
mysql ... -N -e "show databases like '%';" |grep-v -F databaseidontwant |xargsmysqldump ... --databases > out.sql
I'm currently using mySQLdump to backup my dev machine and servers.There is one project I just started, however, that has a HUUUUUGE database that I don't really need backed up, and i'll be a big problem to add it to the rest of the backup cycle.I'm currently doing this:"c:\Program Files\mysql\MySQL Server 5.1\bin\mysq...
Can I get a dump of all my databases *except one* using mysqldump?
If they fork the project, will it be public or private? They do not have a paid GitHub account. No, forking a private repository keeps it private, even if the person who forked it has a free account and cannot make private repositories. We do this at work - the company has a paid account, and each developer uses the...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 years ago. Improve this question ...
Private repository collaborators and issue tracking [closed]
As long as the changes are completely independent, no. The extant pull requests may need to have conflicts resolved before they can be merged, however.
I have a set of pull requests like this in Unrelated changes Aug 1, 2022 Other stuff July 31, 2022 New code July 15, 2022 The first pull request doesn't involve any code that is touched by the other two pull requests. If I approve the Aug 1 pull request first, will that negatively impact the other pull requests in ...
Are there any issues with approving pull requests out of chronological sequence?
Services should be reachable through their DNS name. In your case "mongo" or "mongo.my-namespace" if you assigned a namespace.You should also check if you have "spec.clusterIP=None" set in your deployment file. If that would be case you are telling kubernetes that you don't want to use the standard way of service disco...
I have a cluster of MongoDB instances exposed with a headless servicek get svc NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE hello 10.0.0.90 <nodes> 8080:32361/TCP 7h kubernetes 10.0.0.1 <none> 443/TCP 7h mongo None <none> 27017/TCP 7hS...
Endpoints discovery for headless services on Kubernetes
I have finally found how to use my assets:Put your assets insrc/main/ressources/static, for example I added an image heresrc/main/ressources/static/images/loading.gifLet myplugin my plugin's identifierI am able to use my gif insrc/main/ressources/static/page.jslike this<img src="../../static/myplugin/static/images/load...
I would like to insert some pictures in my custom web page for SonarQube 6.3.1. I tried to put it in resources/static like javascript files and call it with<img src="image.png"></img>but it doesn't work.I do not really understand how SonarQube manage custom pages within the static folder. I followed theofficial guidebu...
Use local assets in SonarQube 6.3.1 custom plugin's web page
3 Had this annoying problem as well, discovered it was the httpd package that also made this page appear even after nginx was uninstalled. Though forcefully shutting down/uninstalling httpd would resolve the issue on the surface, the root issue is actually the fact that ge...
I uninstalled nginx from brew using brew uninstall nginx, but when I go to http://localhost:8080, I still get the "Welcome to Nginx" message. What I already did: Restarted my computer (3 times) Removed extra nginx folder using rm -rf /usr/local/etc/nginx Looking for nginx everywhere from root folder using sudo find /...
nginx uninstalled, localhost:8080 still showing nginx welcome page
I'm not really quite sure how it happened, but when I checked out master to merge my branch, I typed "Master" with a capital m. Rather than merging with master, I merged with Master. My solution was to make the updated to master and reset my local branch with git reset --hard origin/master as per this thread I'd love ...
I am baffled. I made a branch to make css changes to my Ruby on Rails app. Let's call the branch Update_CSSAfter I made changes, I did git statusand it showed that the css files were not added so I added them with git add app/assets/stylesheets/application.cssThen I committed my changes with git commit -am "Updated CS...
Can't push CSS changes to origin/master.. Everything up-to-date
0 You can create just one package with the configurationin json files, retrieved at run time, like shown here If you have multiple config.[envName].json files (1 per environment), then, when you run your image, you need to copy the one for the corresponding environment to c...
I'm working with Angular 5, Nginx for my front app and Node.js for my backend. Everything will run in Docker. I need to create multiple environments (staging, production,...) for the backend and the frontend. The back is easy, I use NODE_ENV in my Docker compose. But what about the front? Since I use Angular with AOT,...
Manage environments with an Angular app in Nginx
+50You can use AWS SDK for JavaScript directly from your browser. Visithttps://docs.aws.amazon.com/AWSJavaScriptSDK/latest/for the guide.Then you can call theputLogEventsmethod of AWS CloudWatchLogs API, assuming you already created log group and log stream. For guide visithttps://docs.aws.amazon.com/AWSJavaScriptSDK/l...
After about 1 hour of searching, I didn't find anything about 'how to submit a simple log to AWS CloudWatch Logs'from the frontend side. Almost all examples are for Node.js, but I need to submit the errors from the frontend, not form backend. I even did not found which package which I should use for the frontend.To sav...
How to submit the simple log with AWS CloudWatch Logs from frontend?
You cannot run a WPF application in docker. Here is a snippet of the Microsoft docs Docker is for server applications—Web sites, APIs, messaging solutions and other components that run in the background. You can’t run desktop apps in Docker because there’s no UI integration between the Docker platform and the Window...
I'm trying to dockerize a wpf application. Just a simple app for that time. for now i got this dockerfile : FROM microsoft/nanoserver WORKDIR C run "$PATH" #ENTRYPOINT ["C:\Users\TestDev\Documents\Visual Studio 2017\Projects\TestExe\TestExe\bin\Release\TestExe.exe"] RUN ["C:\Users\TestDev\Documents\Visual Studio 2017...
dockerize a wpf application and use it
Sonar Plugin isdeprecated:You may wish to use the new Sonar Runner Plugin instead of this plugin. In particular, only theSonar Runnerplugin supports Sonar 3.4and higher.Use theSonar Runner Pluginonlyapply plugin: "sonar-runner" sonarRunner { sonarProperties { property "sonar.host.url", "http://localhost:...
I want to connect Gradle (Version 2.1) with SonarQube (4.5.4 LTS), but there is this ExceptionFAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':<myProject>:sonarAnalyze'. > java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:9000/batch/ * Try: ...
Connect SonarQube (4.5.4 ) with Gradle (2.1) throws HTTP 400
Try removing the Gitter folder located at: C:\Users\yourusernamehere\AppData\Local\Programs\GitterShareFollowansweredMay 23, 2017 at 22:49killerwildkillerwild11711 gold badge22 silver badges99 bronze badges13Looks like it gets stored inC:\Users\<USER>\AppData\Roaming\GitHub Desktopnowadays.–Neil P.Mar 27, 2018 at 0:38A...
I'm trying to do a fresh install of GitHub Desktop for Windows, as I installed with the wrong settings. I uninstall it through Programs and Features. However, when I reinstall it, it skips the part where I get to chose the settings, and just installs with my old data still there (same repos, already logged in). How do ...
How do I reinstall github desktop for Windows?
Second approach is better (use heroku scheduler if on heroku), queues are more for "run as soon as possible" than "run at this particular datetime"
I'm building a reservation system in Rails 4.2 where I need to send a set of emails to users at predefined intervals (for example that they have an upcoming reservation, feedback after it's done, a link to change/cancel an existing reservation, etc.). I've looked around and foundthisandthis, but I'm trying to decide be...
Architecting a system for reminder emails
1 Have you looked at using linked servers? We had a somewhat similar data consistency issue and used a linked server setup to provide for triggered data propagation. Once you have the linked servers defined you can issue your statement pretty much as you have it listed in y...
I found this question Copy table to a different database on a different SQL Server which is close to what I want but my two databases are on two different machines. I am interested in backing 1 or two tables, not the whole database. I tried BCP backup and bulk insert but I am consistently getting error on importing d...
copying data between servers on two different machines - SQL
1 The PHP script start sending data (nginx reads) then pauses (computing time) then send more data (nginx reads). If the pause lasts longer than the specified time the connection is dropped. I think it's a correct interpretation. And it's easy to test: write a simple php-...
I'm "fine-tuning" a PHP web application served via NGINX with php-fpm as FastCGI sever. From the documentation: fastcgi_read_timeout Defines a timeout for reading a response from the FastCGI server. so far so good. But then... The timeout is set only between two successive read operations, not for the transmission ...
Understanding NGINX's fastcgi_read_timeout
As i stated in my question rcField seems to be to much for my needs, which is simple that i want store any changes to my table, and may be come back later to those changes to generate some reports.So I tested AuditTrail and Reversion Reversion seems to be a better full blown application with many features(which i do no...
I am working on an new web app I need to store any changes in database to audit table(s). Purpose of such audit tables is that later on in a real physical audit we can asecertain what happened in a situation, who edited what and what was the state of db at the time of e.g. a complex calculation. So mostly audit table w...
django AuditTrail vs Reversion
Sometimes Hostings use different php version for cronjobs. Maybe you have to set it manually.Read thishttp://guides.ovh.com/MutualiseCron
I've made a php script backing up my database in some file.sql then mailing that file to a backup mail with phpmailer.The script works fineboth on localhost and on my ovh server when I run it manually.But when it's being run ontask scheduler, it doesn't do anything.I finally found in ovh logs the error :[2015-08-27 00:...
Ovh cron error with phpmailer
0 When all blocks are the same there is no built-in preference to select a particular block for Best Fit Algorithm. Since all empty blocks can accommodate the requested 1 Kbyte memory, the selection can depend on other implementation ideas or logic. Share ...
As shown in the image, each block is 2 Kbytes in size. If I were asked to allocate 1 Kbyte of memory, which block would the Best-Fit algorithm allocate? Given that all blocks are the same size, which one should be chosen, considering all are equally suitable for Best-Fit? I expected the Best-Fit algorithm to allocate...
Best-Fit Allocation: What Happens When All Blocks Are the Same Size?
When you use relative url's, the browser will dynamically create a complete url by using the url of the resource it loaded. In other words: It uses the url as it is displayed in the address bar. In your case (www.domain.com/subfolder/index.php/key) it tries to load any relative url relative towww.domain.com/subfolder/i...
I am trying to rewrite the URL through the htaccess file so that the following URLwww.domain.com/subfolder/index.php?keycan be accessed by:www.domain.com/subfolder/index.php/keythe specified "key" will determine which page to include in the PHP code. I have the following htaccess code already, however the CSS, JS, ima...
CSS, JS and images do not display with pretty url
It's quite specific scenario. You can try to use one ofAdmission Controllers-MutatingAdmissionWebhook.An admission controller is a piece of code that intercepts requests to the Kubernetes API server prior to persistence of the object, but after the request is authenticated and authorized. The controllers consist of the...
I'm trying to configure a pod that can run in several nodes of my kubernetes cluster.Depending on the node chosen to schedule/run the pod, the configuration needed by the pod is different.For example, if the pod ends up running in node1, configuration value (e.g. a username to connect to some outside service) needs to ...
pass different configmap or env property to pod depending on which node it's running on
You could clone it to a remote server using SSH and then push it to github from there, but that's the only option I know of.Alternatively, look to see if someone else has already uploaded it if it's open source, then you can fork it on github and just push the much smaller set of updates from your local machine. If you...
Is there any way to fork a non github repo to git hub, since I have a slow connection I can't afford it to clone to my system and push to githubthanks,
How to fork a non github repo to github without cloning to my system?
You can change your predicate( [schema_name]<>'sys' AND [server_principal_name]<>'SILVER\Distributor' AND [server_principal_name]<>'SILVER\Replicator' AND [server_principal_name]<>'SILVER\Merger' AND [server_principal_name]<>'SILVER\Collecter' AND [server_principal_name]<>'SILVER\Reporter' AND [server_principal_n...
I want to filter SQL Audits so that I do not want to capture events triggered by certain users and certain schema. In one of the existing Server Audit, I found the filter predicate as( [schema_name]<>'sys' AND [server_principal_name]<>'SILVER\Distributor' AND [server_principal_name]<>'SILVER\Replicator' AND [server_...
How to add multiple filters on Server Audit of SQL Server?
Thescratchimage is the most minimal image in Docker. This is the base ancestor for all other images. Thescratchimage is actually empty. It doesn't contain any folders/files ...Thescratchimage is mostly used for building other base images. For instance, thedebianimage is built from scratch as such:FROM scratch ADD rootf...
I'm new to docker and I was trying out the first hello world example in the docs. As I understand the hello-world image is based on top of the scratch image. Could someone please explain how the scratch image works? As I understand it is essentially blank. How is the binary executed in the hello-world image then?
What is docker's scratch image?
Github defaults into amasterbranch (i.e. everytime you commit and push your updated project will be saved into this branch). However, Github enables you to create separate branches, which I believe is the solution you are looking for. If you want to make edits to your project but you are unsure you want to have those e...
My friends & I are trying to collaborate viaGitHubon a basicAndroid- Studioproject. I know how to connect ourGitHubaccounts through the website and throughAndroid- Studio, that's not the issue. In other words, we've tested out test comments to commit to see if it goes through, it does successfully. The changes are r...
GitHub collaboration using Android Studio
I think this is due to the memory issue. Your app is using lot of memory due that is app is killed..
I have an application which is dealing with many data structures, uiimageviews, videos, creating bit map context and so on. Every time the application is crashing on its continuous usage for a long time. The application is crashing with the memory warning --> Application exited abnormally with signal 9. What may be its...
memory leak - application exited with signal 9
Github pages are not a proper place for an update site. Github pages may not properly serve large binary files as explained in this issue. It may be fine if your jars are small but overall they advise against placing binaries there. Instead they recommend placing binaries in the download section of the repository. I'd...
I am using GitHub to develop an Eclipse plugin. I would like to have a public Eclipse update site for my plugin. Can I use GitHub for this? I know that GitHub can be used for hosting individual files by using the "raw" links provided on the file information pages.
Is it possible to host an Eclipse update site on Github?
Double check that no policy is using the virtual IP; I thought I had the same problem, but the policy was hidden because the rules for that interface were collapsed by default, so I missed it (and searching using ctrl-f didn't work).
The delete button is missing for some virtual IP addresses in menu Firewall->Virtual IP. No policies etc are defined for the Virtual IP. I'm using FortiGate 100A BR, Pasi
Cannot delete a virtual IP in firewall Fortigate 100A
I was successfully able to clear the cache withApplicationReadyEvent. As theCacheManagerbean is available by the time, the cache is getting cleared properly on startup@Autowired private CacheManager cacheManager; @EventListener public void onApplicationEvent(ApplicationReadyEvent event) { cacheManager.getCacheName...
On application (spring boot service) startup, need to clear the Redis cache.Redis is running in a different docker container with own volume mapping. Since it retains the old cache, the application picks the data from Redis cache instead of Database even after the application restartsTried@EventListenerforContextRefres...
Clear Redis Cache on Spring Boot Application Startup
Simply use the built-in<clock-server>functionalityin zope.conf; list them in thezope-conf-additionaloption ofplone.recipe.zope2instance:zope-conf-additional = <clock-server> method /Plone/path/to/callable period 7200 user username-to-invoke-method-with password password-for-user host localhost <...
We need to schedule some tasks in Plone 4 (notify users after n days of inactivity, etc.). What is the best way to do it? Is there something in Plone or maybe an old cron job? I would like to avoidcron4plone.
What is the best task scheduling approach in Plone 4?
Try adding the following to the.htaccessfile in the root directory of your site (public_html)RewriteEngine on RewriteBase / #prevent looping from internal redirects RewriteCond %{ENV:REDIRECT_STATUS} !200 #only rewrite gif, jpg or png RewriteRule ^(images)(/.+\.(gif|jpg|png))$ $1/%{HTTP_HOST}$2 [L,NC]Your ruleRewrite...
My software supports multiple domain names all pointed at the same directory on the server (a different database for each of course). So these domains...www.example1.com www.example2.com www.example3.com...all point to.../public_html/In the image directory.../public_html/images/I have directories that exactly match the...
Apache Rewrite: image directory based on HTTP host
I'm not aware of whether this has been tested, but you can likely use cuML's GPU-acceleratedGaussianNBwithGeneticSelectionCVas a drop-in replacement for scikit-learn'sGaussianNB.This recent blogprovides some information about potential performance.
This question already has answers here:Is scikit-learn running on my GPU?(2 answers)Closed1 year ago.I trainGeneticSelectionCVmodel oncpuwith the following code:from genetic_selection import GeneticSelectionCV from sklearn.naive_bayes import GaussianNB g = GeneticSelectionCV(estimator=GaussianNB(), scoring='accuracy')....
run GeneticSelectionCV on gpu python [duplicate]
The problem was that AWS does not like capital letters. Having a bucket with capital letters in it will not be accessible from the subdomain, because the casing is lost.
I'm trying to set up CloudFront to serve images, but accessing it currently does not work and returns the error "The specified bucket does not exist." <Error> <Code>NoSuchBucket</Code> <Message>The specified bucket does not exist</Message> <BucketName>someBucketName</BucketName> <RequestId>irrelevant</...
Amazon AWS CloudFront claims no such bucket exists
For clarity and future visitors with similar requirement, I'm posting a solution asCommunity Wikibased on hint from @alltej:Alter your job so it just always exits "0"For instance:./job.sh || exit 0
I have a kubernetes job with post-install hook. Sometimes this hook fails but I want the helm upgrade to still succeed and ignore failures in post-install job. Is this doable?
Kubernetes post-install job
2 As per the articles Link1 and Link2, GitHub public hosted machines are more secured than self-hosting machines. (At least the articles claim so) In my experience, big organizations that are very particular about security always go for self-hosting machines which require...
I'm not that familiar with Github Actions and how their runners work but my Devops team are adamant that we cannot run any github actions that require runners because the runners are public and it puts our code at risk of being accessed by 3rd parties. I know there is an option to use hosted runners, but we're not the...
Are github runners safe for actions in private repos
That's a positively ancient version of Perl. The first one I used was 5.004 in the mid-90s. Granted, things may have changed, but I think that the following quotation from thesystem()documentation is still relevant.If there is only one scalar argument, the argument is checked for shell metacharacters, and if there are ...
I have a perl code with a very long command and I want print the output to a log file. It looks like this:system ( "$cmd | tee -a $log_file" );When I run the Perl script, the system call throws "The command line is too long".If I run the system call without pipeline, it works.So my questions are:Is there a limit of ch...
How do i fix the error 'The command line is too long' if i want to have the output from a command?
If you use directiveroot .;, the real path of root directory is/<nginx_prefix_path>/..You can use commandsbin/nginx -p $(pwd) -c /path/to/nginx.confto start nginx,in which case<nginx_prefix_path>is changed to your current working directory.BTW, commandsbin/nginx -hshows the default<nginx_prefix_path>:-p prefix : se...
Normally we point nginx at a directory by using therootdirective inconf/nginx.conf.However, I am wondering if I can put something for that option so that nginx will always serve the directory that I am currently working in (that is, the output ofpwd) instead of the fixed path. I have tried setting.as the root, but that...
Is it possible to configure nginx to serve the directory from which it is run, rather than a hardcoded path?
To be able to use read in your case, you need something like this using a specialfile descriptor:while read crontab_entry; do ... read -u3 -p 'question' yn ... done 3<&0 < crontab.outbecause STDIN is already fed by the crontab output
I'm creating a script to check in an interactive prompt whether to delete a cron entry or not:function cron_check() { crontab -l result=$? if [[ $result -eq 0 ]]; then crontab -l > crontab.out cat crontab.out | while read cron_entry do # ignore commented cron entries ...
Prompt for input within a loop Linux shell
You have an old version of master with some changes on top of it. Let's say you committed 10 changes on top of the old master. If you want to know what version of master you worked on, you can do a git log (with annotations, which is now the default), and git will let you know where you diverge from the master (I gue...
Some time ago, I joined a new company and they cloned their repo on my laptop and set me up (some files needed to be changed in order for me to be able to build). Now, I need to clone this repo again and I need to set up again. Since I committed some stuff from my first repo, I thought I'd be able to compare commits o...
Git, GitHub: How to find the exact version I cloned some time ago?
Finally figured out that I was using the Github secrets variable incorrectly. This works:echo ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }} | docker login --username ${{ secrets.ACR_SERVICE_PRINCIPAL }} --password-stdin spetestregistry.azurecr.io
I am trying to run this command inside a Github Actions step running on a Windows agent:echo ${ACR_SERVICE_PRINCIPAL_PASSWORD} | docker login -u ${ACR_SERVICE_PRINCIPAL} --password-stdin spetestregistry.azurecr.ioBut it returns this error:Error: Cannot perform an interactive login from a non TTY deviceThen I tried this...
Non-interactive docker login in Github Actions
You can add a unique query string parameter on to the end of the css file url<link rel="stylesheet" type="text/css" href="/my/css/file.css?123" />Just increment the number each time you make an update.EDIT:To load it from the web.xml file use the following:<link rel="stylesheet" type="text/css" href="/my/css/file.css?<...
I am altering a css file which will make drastic changes to my site. Is there a way to force the clients to reload the css so that they pick up the new changes. Unfortunately asking thousands of people to CTRL + F5 or clear their cache isn't an option. I read on a couple of blogs about appending todays date on the css ...
How can I force a cached css file to be reloaded on a JSP (i.e. not PHP)?
just add the "online whitelist wildcard flag" to your manifest:NETWORK: *that should do the trick! more infoon the whatwg spec pagehope this helps!
I'm doing an iPhone version of a desktop site that includes a blog. The blog often embeds images from other domains (the image URLs always start with http:// in this case, obviously), but because I'm using cache-manifest, these images don't load because they aren't declared in the manifest file.I have a NETWORK: whitel...
HTML5 cache manifest: whitelisting ALL remote resources?
You can try 2 things: Dump you repo and load it again ignoring properties: svnadmin dump REPOS_PATH > full.dump svnadmin load --bypass-prop-validation NEW_REPOS_PATH < full.dump If above doesn't work, exclude your problematic revision, as described in this SO answer: $ svnadmin dump -r1:22025 my_repos > dumpfile.dum...
My SVN revision 22026 is corrupted. I have verified by using svnadmin verify command. I manually verified the 22026 file in db\revprops and in \db\revs folder. 22026 file is empty in revprops folder but content is available in revs folder. It looks like revision 22026 property file is corrupted or empty. I have used R...
SVN revision corrupted
This downloads http but also from ftp. It can upload at least http (never tried ftp), see the docs. To upload change the verb and file.send uploaddata. On Error Resume Next Set File = WScript.CreateObject("Microsoft.XMLHTTP") File.Open "GET", "http://www.pepperresources.org/LinkClick.aspx?fileticket=B1doLYYSaeY=&t...
hi friends can any one help me script to upload & download Data from FTP and if its possible to create a log report thank you friends i would be very thankful to you if help
want script to upload download files from FTP
I am not sure to understand. docker stop <id> will indeed send a SIGTERM. This is by design. If the process didn't shutdown properly within the timeout (default is 10 sec), then a SIGKILL is emitted. At the moment, we do have some issue with the signal propagation though. It is due to the pid namespace and the fact th...
I am starting mongodb via the ENTRYPOINT config in a docker file. It works fine. However, when I execute: docker stop <containerid> it seems to be sending a SIGTERM to the process. Which means the mongod.lock file is not cleared. How can I gracefully shutdown a running docker container so that the right signals are s...
How to gracefully shut down monogodb 0.8 running in docker
You are not missing anything and indeed some configuration like Quality Gate and Quality Profile can be configured only via server UI. Mostly because usually, you would like to share this configuration across the organization and different projects, so it is easier to centralize it on the server itself.Project specific...
It seems to me it is a good practice to have all build-related configuration or quality-related rules of a project defined inside the project itself (as human-readable configuration files). This has several advantages: any developer coming to the project can readily see what configuration it uses; human-readable config...
Self-contained sonar configuration through property file
Here's an example job for Prometheus. Put it in your own config. Next, add: annotations: prometheus.io/scrape: 'true' to your pod metadata. And on every container, which provides /metrics to prom, create an appropriate port, named metrics. That's it. Prometheus would scrape only those ports, and there would be no ...
I have a multi-container pod in my kubernetes deployment: java redis nginx For every of those containers, there's a container with Prometheus exporter as well. The question is how can I expose those ports to Prometheus if annotations section supports only one port per pod? annotations: prometheus.io/scrape: 'true...
Prometheus with multi-container pod on kubernetes
How are you embedding the video? If you embed the video via Youtube it should select a quality low enough to suit faster loading times, otherwise you can try lazy-loading=true in the video tag, and maybe async if you're pulling it from another source. Otherwise you'll find the most impact in performance is to limit the...
i'm hosting a page built on react on github pages, my problem is that im displaying a video and it affects performance. Should i buy a cdn to serve videos or images, or i should change server and still serving static content? The cdn would help or github pages it's slow anyway ?
how can i improve performance on github pages?
Docker allows you to specify thelogDriverin use. This answer does not care about Filebeat or load balancing.In a presentation I used syslog to forward the logs to a Logstash (ELK) instance listening on port 5000. The following command constantly sends messages through syslog to Logstash:docker run -t -d --log-driver=s...
I have a set of dockerized applications scattered across multiple servers and trying to setup production-level centralized logging with ELK. I'm ok with the ELK part itself, but I'm a little confused about how to forward the logs to my logstashes. I'm trying to use Filebeat, because of its loadbalance feature. I'd also...
Docker apps logging with Filebeat and Logstash
What you need to do is add this in the front-matter of your 404.html file:--- permalink: /404.html ---Seehttps://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/ShareFollowansweredOct 6, 2017 at 1:29EthanEthan3,53011 gold badge3030 silver badges5050 bronze badgesAdd a comment|
In myconfig.ymlI have permalinks set to pretty:permalink: prettyWhen I do this, my 404.html page is no longer showing up on my website (hosted on GitHub pages) when there is a 404 error. How do I fix this?
404 page not working with permalink: pretty using GitHub Pages + Jekyll
I have encountered this issue before with bad CSR Request. According to GoDaddy: To install a digital certificate, you must first generate and submit a Certificate Signing Request (CSR) to the Certification Authority (CA). The CSR contains your certificate-application information, including your public key. Use your W...
Amazon Cloudfront is giving me errors, either my private key doesn't match my public key certificate or my public key certificate cannot be parsed as it's invalid.Using Godaddy for my SSL certificate middle man/provider, I got a:.pem whoose contents beings with "-----BEGIN RSA PRIVATE KEY-----"(I'm assuming that's my p...
how can I identify my SSL public key certificate?
See Crontab:http://en.wikipedia.org/wiki/Cronexample crontab entry for 12:01 am:1 0 * * * /usr/bin/php /home/whatever/myscript.php > /home/whatever/outlog.txtcommand to edit the crontab entries for the logged in user:crontab -e
I'm using PHP and was wondering how can i run my PHP script to run at midnight and check if a member has been inactive for six months if so delete.
How to automate my cron php script
You can usePicasso. It's the cleaner way.
I am loading images into memory in android phone so I can pass them into a web service through a webservice.Sometimes i get out of memory error, i can already catch this exception withtry{ bm = BitmapFactory.decodeFile(path); }catch(OutOfMemoryError ofmE){ System.out.println("OUT OF MEMORY $$$$$$$$"...
Android out of memory on picture load
1 I'm posting my findings here, hoping that they can be helpful to other readers. The only odd thing about that PR was the contributor's branch name, which happened to be master like the branch he wanted to merge to. I think that might have been the problem. While investiga...
I received several pull requests from the same contributor. I followed GitHub 'Using Pull Request' advice and merged his first request without issues: git checkout master git remote add username git://github.com/username/repo.git git fetch username git merge username/pull-request1 Before merging the other pull reques...
trouble merging multiple pull requests from same contributor
33 Replace docker build -t qnmahjong with docker build -t qnmahjong . You are missing the "." The dot means you use the Dockerfile in the local directory This will create a Docker image named qnmahjong based on the instructions in the Dockerfile. You can then run the image...
This question already has answers here: docker: "build" requires 1 argument. See 'docker build --help' (17 answers) Closed 8 months ago. https://github.com/shuimuliang/qnmahjongser...
docker build go project failed [duplicate]
You must specify an option calledQSA or 'Query String Append':RewriteRule ^([a-z0-9-]+)\.html$ /index.php?cat=$1 [L,QSA]It will ensure that the original query strings are also included as part of your new URL.
My code isOptions -Multiviews RewriteEngine On RewriteBase / RewriteRule ^([a-z0-9-]+)\.html$ /index.php?cat=$1 [L]If I accessmysite.com/name-of-category.htmlit works, but if I accessmysite.com/name-of-category.html?anything=somethingit shows the webpage but$_GET["anything"]shows nothing.
HTACCESS friendly url and allow GET method
JMeter doesn't understandcerformat, as of current version (4.0) it supports the following formats:JKSPKCS12You can convert the certificate usingKeytoolorOpenSSL. Once done you can addjavax.net.ssl.keyStoresystem property pointing to the .jks or .p12 certificate and your outgoing requests will be encrypted. More informa...
I am trying to connect to https site from jmeter and I am getting the below response data in the View Results Tree:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure sun.security.ssl.Alerts.getSSLException(Alerts.java:192)To connect to the https site there is a certificate which can be expo...
Jmeter SSL Exception when connecting to https
There is not only one way, I'm pretty sure. You can create access control with mod_rewrite and[F]on any criteria you would have defined. See for exampleAccess control with mod_rewrite. That said you can perfectly do this.<Location /admin> [here your rules] </Location>TheRequiredirective has forcontextdirectory which...
I use the front controller pattern and so all requests are routed through my index.php file. I'd like to secure the 'Admin' controller (accessible at mysite/admin/) with .htpasswd. Only problem is, 'admin' is not a directory but is just a mod_rewrite. Can this be done?
Can I use .htpasswd to secure a nonexistent directory (a virtual mod_rewrite directory)?
You can do this using aGitHub App. Give the app the following permissions:Repository Administration Read/WriteOrganization Members Read/WriteYou'll need toget a tokenfor your App, and then you can make the needed calls.Note that in the future, the Organization Members Write permission may not be required for the GraphQ...
I am trying to update team repository access in GitHub using the GraphQL API, but can't figure out what permission is required.This is the GraphQL mutation (IDs replaced with dummies)mutation { updateTeamsRepository(input: { repositoryId: "R_gkOHDFeAMA", teamIds: ["T_t08M4ADOAS34T7kw"], permission: MAINTAIN }) { ...
What permissions required for GitHub updateTeamsRepository GraphQL mutation?
Yes of course this is possible, because git is adistributed repository. You can configure multiple remotes, one at GitHub and one at heroku, and just push your changes to both of them.Example:Create repository at GitHubClone this repository on your machine, now you have setup the remote "origin" to be GitHubSetup herok...
With an app in heroku, with git url like[email protected]:app.git, And a repo in githubhttps://github.com/username/other_app.gitIs possible sync the two repos for hosting the sema app in two git servers (heroku and github) ?And alsoLink Heroku app to Github repo. For what?
git with app in heroku and github
Allocating a large block is generally faster than allocating multiple small blocks. Each allocation has an overhead, so with one large allocation you pay the overhead once instead of many times.
I have a program where I allocate multiple buffers as a part of a receive queue to receive messages from a port (UDP protocol). Currently the buffers are not contiguous, but now I am considering making them contiguous so that I can easily patch them together if need be. Is it any less reliable/fast to request 1 large ...
Any faster/reliable to allocate multiple small blocks rather than 1 big block
I applied following solution with success :http://social.technet.microsoft.com/Forums/windows/en-US/78fbca5c-41ad-4fa6-8ccd-f52045333fdd/windows-7-firewall-fails-to-restore-default-policy-error-3?forum=w7itprosecurity&prof=requiredText:Ok - I think I have an answer. Looks like the Firewall polices are corrupted in som...
I'm unable to share any folders. I'm always getting the following error:An error occurred while trying to share [your folder]. Incorrect function. The shared resource was not created at this time.
Unable to share folder - Error: 'Incorrect function'
No, that's the only supported way. There are no plans to add other ways.
in order to access scraping endpoints with basic auth in Prometheus, I need to put my password in plain text in the Prometheus config file. Is there a way to store these password in some other manner? using environment variables for example I would prefer not to keep my passwords in just plain text
can Prometheus store basic auth passwords in any format other then plain text?
Please, try out the following code,server { ... server_name www.example1.com example1.com; ... location / { proxy_pass app_ip:8084; } ... } ... server { ... server_name www.example2.com example2.com; ... location / { proxy_pass app_ip:8060; } ... }app_ip is the ip of th...
I'm running a VPS with Ubuntu installed. How can I use the same VPS (same IP) to serve multiple Golang websites without specifying the port (xxx.xxx.xxx.xxx:8084) in the url?For example,Golang app 1 is listening on port 8084andGolang app 2 is listening on port 8060. I want Golang app 1 to be served when someone request...
Host Multiple Golang Sites on One IP and Serve Depending on Domain Request?
You can get the image using the aws s3 api, then write it to the tmp folder using fs. var params = { Bucket: "BUCKET_NAME", Key: "OBJECT_KEY" }; s3.getObject(params, function(err, data){ if (err) { console.error(err.code, "-", err.message); return callback(err); } fs.writeFile('/tmp/filename', ...
Good day guys. I have a simple question: How do I download an image from a S3 bucket to Lambda function temp folder for processing? Basically, I need to attach it to an email (this I can do when testing locally). I have tried: s3.download_file(bucket, key, '/tmp/image.png') as well as (not sure which parameters will ...
Download image from S3 bucket to Lambda temp folder (Node.js)
Can you not just schedule it on a single server? E.g. you have ServerA and ServerB, just add the crontab entry to ServerA?Is it actually a cron job, or are you using something like Quartz?
I have 2 nodes runing on my server in balance load and I have a cron, but I just want it to work on one node of my server, Is there any way I can do that?Thanks.
Run a cron in just one node of my server
When working with golang forks of a repo, try and work in the import path of the original repo, and update the tooling to use your forked repo.What I mean is, if you have forked the projectgithub.com/rylio/ytdl/to your own github accountgithub.com/brucewangno1/ytdlThen you might have a gopath such as:$GOPATH/src/github...
Likethis github repository, I forked the repository and made some changes to the code. When I run it, my changes are not in effect because the original code imports itself. I could simply just change the import library to mine like "import github.com/brucewangno1/ytdl". But is there any other clean way to avoid this?
What to do if I want to make changes to a forked repository only to find that I can not because the forked package import itself
I needed to change the directory in the crontab command to the working directory of the project. Making it:cd /path/to/file; python automate.py
I have a python script that I would like to run on my raspberry pi every 15 minutes. The script should do something and then post the reports into a txt file. When I run the script usingsudo ./automate.pyeverything works fine. But my crontab never posts a report. I checked the crontab logs, and the script is runnin...
Raspberry Pi Crontab Python script needs write permission
This is most probably wrong: struct header; // forward declare "struct header" typedef struct _header { int signiture; int size; struct header* next; // refer to the forward declared "struct header" struct header* prev; } header; // declare type-alias "header" do ...
Am trying to build a memory suballocator. I've some errors with the code bellow, it tells me that: free_list_ptr->next = &firstByte; free_list_ptr->prev = &firstByte; am getting gcc error warnings of warning: assignment from incompatible pointer type //primitive variable of byte as char, always positive. typedef unsi...
C programming Circular list for memory suballocator
I found the solution: I needed to start the ssh-agent dynamically for the cronjob as well. It is just like how you login for the first time and start the ssh-agent. We need to tell cronjob too to include evalssh-agent
I have a shell script which in turn calls a python script. But before the python script runs I am setting up the environment variables in order to have the right P4 configurations.shell: /home/ag/ump_prod/run.sh python script: /home/ag/ump_prod/cron.py Environment conf: /home/ag/ump_prod/env.confThe python script execu...
Run crontab job with P4
You dont need to iterrate each file, you could do something like: Dim objFSO Set objFSO = CreateObject("Scripting.FileSystemObject") Set wshNetwork = CreateObject("WScript.Network") strUser = wshNetwork.Username objFSO.CopyFile "C:\Users\" & strUser & "\Desktop\vbs\*.xlsx", "E:\test2\" You may also want to set the o...
This question already has answers here: How to copy a file from one folder to another using VBScript (6 answers) Closed 3 years ago. I want to make an automatic backup of my excel ...
backup only some files using vbs [duplicate]
I have a blog supported by django,in project's urls.py:from django.conf.urls import handler400, handler403, handler404, handler500 urlpatterns = [ url(r'^$', IndexView.as_view(), name='index'), url(r'^admin/', admin.site.urls), .... url(r'^rss/$', BlogFeed(), name='rss'), url(r'^sitemap\.xml$', sit...
I have created a Django project but I am using Apache as the webserver. Can anyone tell me how can I redirect an error code like 404 or 500 or 400 to a custom error html page instead of getting a standard error message on page in case an error was to occur ? I've tried the solutions available on the web but none seems ...
How do I redirect errors like 404 or 500 or 403 to a custom error page in apache httpd?